Verilator bug in signed/unsigned expression eval #737
Closed
Comments
|
Original Redmine Comment Stay tuned. I'm using this bug and the others as motivation to audit and cleanup all of the WIDTH related fixup code. |
|
Original Redmine Comment Fixed in git towards 3.857. |
|
Original Redmine Comment In 3.860. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Author Name: Clifford Wolf (@cliffordwolf)
Original Redmine Issue: 737 from https://www.veripool.org
Original Date: 2014-04-09
Original Assignee: Wilson Snyder (@wsnyder)
The term "(p1 + p2)" below is part of an unsigned expression and thus should
be zero-extended. Verilator fb4928b however performs signed bit extension
and thus returns an incorrect result.
Crosscheck: Vivado 2013.4, XST 14.7, Quartus 13.1, Xsim 2013.4 and Modelsim
10.1d implement this correctly.
Self-contained test case:
http://svn.clifford.at/handicraft/2014/verilatortest/test006.v
http://svn.clifford.at/handicraft/2014/verilatortest/test006.cc
http://svn.clifford.at/handicraft/2014/verilatortest/test006.sh
The text was updated successfully, but these errors were encountered: