You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The -Dfoo=bar syntax is great, and aligns well with tools like cmake, but doesn't match up with the industry standard +define+foo=bar syntax. +define also typically allows multiple defines in one long string.
The text was updated successfully, but these errors were encountered:
I'm a little hesitant to add another way to define macros. The current -D interface matches that of iverilog and the open source Yosys Verilog frontend; verilator supports both.
If there is interest, I would happily consider a pull request, though I think it may be a bit tricky to do with the command line parser that sv2v uses.
As a workaround, you could consider converting such strings before passing them to sv2v, e.g., sed -E 's/\+define//' | sed -E 's/\+/ -D/g'.
The
-Dfoo=bar
syntax is great, and aligns well with tools like cmake, but doesn't match up with the industry standard+define+foo=bar
syntax.+define
also typically allows multiple defines in one long string.The text was updated successfully, but these errors were encountered: