There is inconsistency in its output before and after synthesis:
The left image shows the simulation output of the original design, and the right image shows the simulation output after yosys synthesis
yosys_5_22.zip
Looking forward to your reply and best wishes.
Expected Behavior
Consistent output before and after synthesis
I also conducted the above test using Vivado and it did not encounter this issue
Version
Yosys 0.39+165
On which OS did this happen?
Linux
Reproduction Steps
Considering the following code (I have tried my best to minimize test cases)
When given the testbench as follows:
There is inconsistency in its output before and after synthesis:
The left image shows the simulation output of the original design, and the right image shows the simulation output after yosys synthesis
yosys_5_22.zip
Looking forward to your reply and best wishes.
Expected Behavior
Consistent output before and after synthesis I also conducted the above test using Vivado and it did not encounter this issue
Actual Behavior
Inconsistent output before and after synthesis