RTimothyEdwards / netgen

Netgen complete LVS tool for comparing SPICE or verilog netlists
Other
109 stars 25 forks source link

' might be causing problems when used as part of a net name #91

Open d-m-bailey opened 5 months ago

d-m-bailey commented 5 months ago

From the netgen lvs log

Parameter list mismatch in /UG_X8_NOR_0: Not enough parameters in call!
line number 10291 = 'XUG_X8_NOR_0 UG_X8_NOR_0/OUT_uq0 DN' UP' VDD GND UG_X8_NOR'

Parameter list mismatch in /UG_X8_DFF_0_3: Too many parameters in call!
line number 10333 = 'XUG_X8_DFF_0_3 UG_X8_DFF_0_3/D UG_X8_DFF_0_3/D UG_X8_DFF_0_1/Q UG_X8_DFF_0_1/D UG_X8_DFF_0_3/Q
+ VDD GND UG_X8_DFF_0'

Parameter list mismatch in /UG_X8_DIVIDER_PFD_0: Not enough parameters in call!
line number 10442 = 'XUG_X8_DIVIDER_PFD_0 UG_X8_DIVIDER_PFD_0/UP UG_X8_VCO_DIVIDER_0/OUT UG_X8_DIVIDER_PFD_0/DN'
+ UG_X8_VCO_DIVIDER_0/OUT' CLK_DIV UG_X8_DIVIDER_PFD_0/DN UG_X8_DIVIDER_PFD_0/UP'
+ FREF VDD GND UG_X8_DIVIDER_PFD'

Parameter list mismatch in /UG_X8_VCO_DIVIDER_0: Too many parameters in call!
line number 10445 = 'XUG_X8_VCO_DIVIDER_0 CLK_VCO CLK_VCO' N P VBIAS_VCO UG_X8_VCO_DIVIDER_0/OUT UG_X8_VCO_DIVIDER_0/VCONT
+ UG_X8_VCO_DIVIDER_0/UG_X8_DIVIDER_0/OUT1 UG_X8_VCO_DIVIDER_0/UG_X8_DIVIDER_0/OUT1'
+ UG_X8_VCO_DIVIDER_0/OUT' VDD VBIAS_DIV GND UG_X8_VCO_DIVIDER'

but the port counts actually match if ' is considered a standard character.

.subckt UG_X8_NOR OUT_uq0 B A VDD GND

.subckt UG_X8_DFF_0 D Q' CLK CLK' Q VDD GND

.subckt UG_X8_DIVIDER_PFD UP CLK DN' CLK' CLK_DFF DN UP' FREF VDD GND

.subckt UG_X8_VCO_DIVIDER CLK CLK' N P VBIAS_VCO OUT VCONT UG_X8_DIVIDER_0/OUT1 UG_X8_DIVIDER_0/OUT1'
+ OUT' VDD VBIAS_DIV GND

Is it possible to only consider ' to be a special character if it's part of a parameter calculation (ie, after an =)?