Strange Verilator behavior with power, signdness and more #735
Comments
|
Original Redmine Comment Yes that was weird, the number library had "hidden state" that confused the generated C code. 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: 735 from https://www.veripool.org
Original Date: 2014-04-08
The following module should output 0x00000000 for a=0 and 0x010000ff for a=1. But Verilator GIT 5c39420 outputs 0xffffffff for a=1 instead.
Interestingly the output value for y3 is correct, but setting y3 to a constant value (or otherwise removing the calculation for y3) makes the problem go away. Replacing a with 1 in the assign statements also does make the problem disappear.
Self-contained test case:
http://svn.clifford.at/handicraft/2014/verilatortest/test004.v
http://svn.clifford.at/handicraft/2014/verilatortest/test004.cc
http://svn.clifford.at/handicraft/2014/verilatortest/test004.sh
The text was updated successfully, but these errors were encountered: