New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sign extension is not working properly when signed value is assigned to unsigned structure element #882
Comments
Original Redmine Comment Thanks for the test, I added your test to git. However, it passes for me against verilator trunk, and also against VCS. If you can get it to disagree between verilator & vcs I'll take a look. |
Original Redmine Comment Hi Wilson, It seems the testcase does PASS in verilator despite an error, and I am not sure you noticed it:
This is because a $stop is missing in the comparison function. I asked a friend to run the simulation on ncsim, and I have tried "Riviera-PRO version 2014.10.81.5580" on http://www.edaplayground.com/ and there is no error reported, same as in ModelSim.
Regards, |
Original Redmine Comment Fifty places to copy the correct macro from, and I picked the one exception! Anyhow fixed in git towards 3.869. |
Original Redmine Comment In 3.870. |
Author Name: Iztok Jeras (@jeras)
Original Redmine Issue: 882 from https://www.veripool.org
Original Date: 2015-02-09
Original Assignee: Wilson Snyder (@wsnyder)
Hi,
Sign extension is not working properly when signed value is assigned to unsigned structure element. While it is working properly if the destination is a normal unsigned variable.
A regression test is attached, I did not know which of the existing tests would be appropriate, so I created a new file. The test is passing if run using ModelSim using the edited driver.pl from Issue #878.
Regards,
Iztok Jeras
The text was updated successfully, but these errors were encountered: