hdlparse icon indicating copy to clipboard operation
hdlparse copied to clipboard

verilog parser struggled with 'output' as part of port name

Open Blechzwerg opened this issue 6 years ago • 0 comments

lex.run(text) in parse_verilog(text) failed to correctly interpret portname that contain 'output' or 'input' as part of their name.

I could resolve this by adding word boundaries (\b) to the regexp in 'module' and 'module_port' (here lines 22 and 35, eg.:

  'module_port': [
    (r'\s*(input|inout|output)\b\s*(reg|supply0|sup...
                              ^^^

regards, b. ;-)

Blechzwerg avatar May 14 '18 13:05 Blechzwerg