-
Notifications
You must be signed in to change notification settings - Fork 903
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
synth failure #4844
Comments
You are submitting a bug report produced using fuzzing tools. With such bug reports, it is often hard to tell whether the issue reported is an issue in Yosys or an issue with the test harness. You were instructed how to submit such bug reports properly and you are not following the instructions. As such I am closing your report as invalid. |
Sorry, I uploaded the wrong file, here is the minimal test case, the problem occurs with the assignment of reg161 thus causing the synthesis to fail. |
Thanks. For other readers, it seems that:
means
|
I have reduced your testcase further using C-Reduce. Here is the actually minimal testcase: module a(b, c, d);
output b;
input c;
input d;
always b <= $signed(f) << (0 ? 0 : g);
endmodule I have done this by putting your code into #!/bin/sh
yosys issue4844.v -p synth
[ $? -eq 136 ] and running C-Reduce as: $ creduce --not-c issue4844.sh issue4844.v |
What happens is that in the following code: Lines 250 to 257 in 6225abe
I'm not actually sure what exactly this code is doing so I'll let someone else fix it. |
Oh also
|
@povik @nakengelhardt It looks like this bug was introduced in #3972. |
By setting
I think we should run ubsan on CI and I've filed #4845 to do that. I ran the testsuite with UBSan enabled and got this:
Aside from the issue in astsimplify introduced in 2cab4ff, all of the instances of UB are either in |
So, it's really a flaw in yosys isn't it? |
Yes, definitely, and a fairly important one in my opinion. |
Version
Yosys 0.48+47 (git sha1 cbb95cb, clang++ 18.1.8 -fPIC -O3)
On which OS did this happen?
Linux
Reproduction Steps
rtl.v.log
Expected Behavior
Synthesize Success
Actual Behavior
synthesis failed,2.5. Executing CHECK pass (checking for obvious problems).
Checking module module128...
Checking module module150...
浮点数例外 (核心已转储)
The text was updated successfully, but these errors were encountered: