From 86e6817505fbdf97cbf607cd571ebb0bca7b21f1 Mon Sep 17 00:00:00 2001 From: Cary R Date: Thu, 16 Aug 2007 19:45:51 -0700 Subject: [PATCH] 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. --- pform.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pform.cc b/pform.cc index 33c926f4b..4939ec783 100644 --- a/pform.cc +++ b/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;