Closed rodrigomelo9 closed 4 years ago
Good catch! That's exactly the right fix. I never saw it before because I only used it to calculate the final carry-in (for overflow calculations). Yes, I accept PRs. Just make sure to run ./v2h.py on the updated verilog file too.
Let me start saying that, after patch the 0 values/empty-strings of your files, it is the only remain Verilator complain :-) (there are still some iverilog complains, may be also related with other things to be changed).
It can be solved changing
carryin = 1'b0;
bycarryin = {WORD_WIDTH{1'b0}};
in theinitial
block. I don't know if you accept PR (let me know for future cases).