Closed acomodi closed 4 years ago
In the future, you want to make it easy as possible for someone to fix this for you so please put some effort into reducing this testcase. The srl_init_tester.v
and rom.v
files are not necessary here, and basys3_top.v
can be reduced significantly. This not only makes it easier to identify the problem, but can also be used as a testcase so that it doesn't get broken in the future.
@eddiehung Sure, you are right. Actually the only thing that is necessary in the design is the LUT2 instantiation. I have reduced the top.v file with only that.
Here is the new zip: test.zip
And the command to reproduce it:
yosys -p "tcl synth.tcl" top.v
Thanks @acomodi, doing the same would be very helpful in the future and encourages a prompt fix. Please give #1972 a try!
@eddiehung Tested the initial design and works! Thanks
Steps to reproduce the issue
test.zip
The
test.zip
archive contains a test design and the tcl synthesis script.Reproduce:
yosys -p "tcl synth.tcl" basys3_top.v rom.v srl_init_tester.v
Yosys version:
Yosys 0.9+2406 (git sha1 2b1fb8c0, clang 6.0.0-1ubuntu2 -fPIC -Os)
Expected behavior
Please describe the behavior you would have expected from the tool.
No errors produced
Actual behavior
Please describe how the behavior you see differs from the expected behavior.
ABC fails as the
input.lut
temporary file seems to be wrong. In details, the design contains an explicitLUT2
instance, which seems to be replicated in theinput.lut
file as follows:The LUT2 is instantiated in
basys3_top.v
.By removing one fo the LUT2 lines, abc correctly builds.