Fix missing warning when port is unsized.
This patch fixes an incorrect optimization that was skipping a call to set the port width when there was no width (a scalar). The problem with this is that since a (0,0) pair was not added to the list, later when the width was define to (1,0) the checking code did not have the (0,0) to tell that there was a mismatch in the port size. Section 12.3.3 States that the two sizes shall be identical, so yes this is an error even though it is very minor.
This commit is contained in:
parent
15058a31b9
commit
86e6817505
3
pform.cc
3
pform.cc
|
|
@ -1694,8 +1694,7 @@ void pform_set_port_type(const struct vlltype&li,
|
|||
; cur ++ ) {
|
||||
perm_string txt = *cur;
|
||||
pform_set_port_type(txt, pt, li.text, li.first_line);
|
||||
if (range)
|
||||
pform_set_net_range(txt, range, signed_flag, IVL_VT_NO_TYPE);
|
||||
pform_set_net_range(txt, range, signed_flag, IVL_VT_NO_TYPE);
|
||||
}
|
||||
|
||||
delete names;
|
||||
|
|
|
|||
Loading…
Reference in New Issue