-
Notifications
You must be signed in to change notification settings - Fork 896
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
Yosys seems to be inconsistent with the original design. #4693
Comments
I get the same results simulating this before and after synthesis using iverilog, assigning the result 0. This seems in keeping with the LRM. from 1800-2023:
The sign extension of |
synthesis_4693.zip |
I suspect this is an issue with whatever simulator you are using for comparison, not yosys. Your syn_yosys.v in that zip shows that the output If |
Maybe your issue is that in your identity testbench you include |
The file This is not a Yosys issue. |
Thank you very much for your reply. Your patient and meticulous reply solved my problem. I sincerely thank you for your outstanding contribution to the community. |
Yosys should have a policy for fuzzer generated bug reports where they are summarily closed if they're not immediately actionable. |
Version
0.46+135
On which OS did this happen?
ubuntu22.04
Reproduction Steps
My Verilog original design is as follows:
The content of the testbench file is as follows:
Commands used for synthesis:
then,you can simulate them by the above testbench,
please note that
include"syn_yosys"
should changed toinclude"rtl.v"
when you simulate the rtl.v.Looking forward to your reply.
Expected Behavior
The simulation before and after synthesis is consistent.
Actual Behavior
Inconsistent output before and after synthesis!
The text was updated successfully, but these errors were encountered: