Closed nagendragd closed 3 years ago
Thanks for reporting this issue! My recent addition of constant folding for concatenations of number literals did not correctly handle literals where the leading X/Z digit is implicitly truncated. It should now be fixed. Please let me know if it's working for you.
Thanks Zach, issue fixed now! Much appreciated!
When I run the attached file through sv2v, I get the error:
sv2v: invalid based literal digits: (2,25,268435455,268435455,28,25) CallStack (from HasCallStack): error, called at src/Language/SystemVerilog/AST/Number.hs:239:9 in main:Language.SystemVerilog.AST.Number
Invocation of sv2v is as: sv2v \ --define=SYNTHESIS \ ../rtl/*_pkg.sv \ -I../vendor/lowrisc_ip/ip/prim/rtl \ -I../dv/fcov \ $file \
Any clues on what this is due to?
I pulled the latest sv2v code off github and installed it: sv2v --version sv2v v0.0.6-31-g8e1f2bb
Thanks Nagendra ibex_tracer.sv.txt