Closed WeneneW closed 1 month ago
Out of curiosity, are you running a fuzzer on Yosys?
This is almost certainly #4395 again. Please stop making new issues for the same problem.
Out of curiosity, are you running a fuzzer on Yosys?
You're right, I've indeed been doing some fuzzing work recently.
This is almost certainly #4395 again. Please stop making new issues for the same problem.
I apologize for wasting your time. I initially thought these were two different questions. Once again, I'm sorry about that.
@WeneneW Are you writing a paper?
@WeneneW Are you writing a paper?
We are working on a fuzz testing tool to enhance the stability of comprehensive tool. During its operation, the fuzz testing tool will identify potential defects, helping to improve the overall quality of the comprehensive tool.
Version
Yosys 0.39+165
On which OS did this happen?
Linux
Reproduction Steps
Hello, I have been studying string designs in Verilog recently. Here is the original Verilog design.
The original Verilog design appears to treat empty characters as zero during testing with the testbench, resulting in an output of 1. However, after synthesis with Yosys, the output is instead 0. The synthesized code is as follows
Its inconsistent output is as follows:
![97e649ca754528f0b26e79d4cd4abb79](https://github.com/YosysHQ/yosys/assets/168843330/27dd2f60-96ad-4217-832b-98403e5ea412)
Similarly, I have written a script for it to facilitate reproduction. yosys_5_14.zip
The directory structure of the compressed package is as follows: rtl.v is the original design. Files with the syn_ prefix represent the synthesized versions. You can compare the vvp.log files located in the identity and yosys directories. Additionally, you can rerun simulations on the synthesized files by executing bash run_sim.sh.
Expected Behavior
Consistent output before and after synthesis In order to eliminate interference, I also simulated the Verilog file synthesized by Vivado, and the results were consistent with those before synthesis![01133758f449038d83d150344e424deb](https://github.com/YosysHQ/yosys/assets/168843330/df5084ec-412e-49d2-8d75-121a621e41da)
Actual Behavior
Inconsistent output before and after synthesis