@@ -2569,7 +2569,6 @@ void pform_module_define_port(const struct vlltype&li,
25692569 list<named_pexpr_t >*attr,
25702570 bool keep_attr)
25712571{
2572- data_type_t *packed_type = 0 ;
25732572 ivl_variable_type_t data_type = IVL_VT_NO_TYPE;
25742573 bool signed_flag = false ;
25752574
@@ -2601,6 +2600,7 @@ void pform_module_define_port(const struct vlltype&li,
26012600 data_type = vec_type->base_type ;
26022601 signed_flag = vec_type->signed_flag ;
26032602 prange = vec_type->pdims .get ();
2603+ vtype = 0 ;
26042604 } else if (real_type_t *rtype = dynamic_cast <real_type_t *>(vtype)) {
26052605 data_type = IVL_VT_REAL;
26062606 signed_flag = true ;
@@ -2614,7 +2614,6 @@ void pform_module_define_port(const struct vlltype&li,
26142614 } else if (vtype) {
26152615 if (vtype->figure_packed_base_type () != IVL_VT_NO_TYPE) {
26162616 data_type = vtype->figure_packed_base_type ();
2617- packed_type = vtype;
26182617 } else {
26192618 VLerror (li, " sorry: Given type %s not supported here (%s:%d)." ,
26202619 typeid (*vtype).name (), __FILE__, __LINE__);
@@ -2631,10 +2630,10 @@ void pform_module_define_port(const struct vlltype&li,
26312630
26322631 cur->set_signed (signed_flag);
26332632
2634- if (packed_type) {
2635- cur->set_data_type (packed_type );
2633+ if (vtype)
2634+ cur->set_data_type (vtype );
26362635
2637- } else if (prange == 0 ) {
2636+ if (prange == 0 ) {
26382637 cur->set_range_scalar ((type == NetNet::IMPLICIT) ? SR_PORT : SR_BOTH);
26392638
26402639 } else {
@@ -2966,8 +2965,7 @@ vector<pform_tf_port_t>*pform_make_task_ports(const struct vlltype&loc,
29662965 }
29672966
29682967 if (/* real_type_t*real_type = */ dynamic_cast <real_type_t *> (vtype)) {
2969- ret = pform_make_task_ports (loc, pt, IVL_VT_REAL,
2970- true , 0 , ports);
2968+ ret = do_make_task_ports (loc, pt, IVL_VT_REAL, vtype, ports);
29712969 }
29722970
29732971 if (dynamic_cast <string_type_t *> (vtype)) {
@@ -3442,7 +3440,6 @@ void pform_set_data_type(const struct vlltype&li, data_type_t*data_type, list<pe
34423440 }
34433441
34443442 else if (/* real_type_t*real_type =*/ dynamic_cast <real_type_t *> (data_type)) {
3445- pform_set_net_range (names, 0 , true , 0 );
34463443 vt = IVL_VT_REAL;
34473444 }
34483445
0 commit comments