zachjs / sv2v

SystemVerilog to Verilog conversion
BSD 3-Clause "New" or "Revised" License
561 stars 55 forks source link

Spaces in binary constants aren't parsed correctly #154

Closed mkorbel1 closed 3 years ago

mkorbel1 commented 3 years ago

A constant definition such as:

5'b  01010

gives an error related to undefined variable "b"

zachjs commented 3 years ago

Thank you for filing this issue! The specification is far more generous in allowing whitespace in number literals than I previously realized. This should be fixed as of 25fe57f75a5ac7fb2258578ad4fde915eff10a05.