Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Note upfront: I'm not sure if this is actually a bug, so I've put what I expect and then actually get below. I'd appreciate any insight into what I'm misunderstanding or doing wrong if in fact it is not a bug. Thank you very much.
Steps to reproduce the issue
yosys -s simple.ys
simple.blif
andsimple-back-from-yosys.v
files based on the expected and actual behavior sections below.Expected behavior
When I generate a
.blif
file from a Verilog file, I expect the directions of the connections to be the same as in the original Verilog file, in particular for output/input ports.For example, given this very simple Verilog file:
after I run the following Yosys script:
I would expect to get the following
.blif
file:Actual behavior
When I generate a
.blif
file from the above Verilog file using the above script, I actually getIn particular, the 3rd-to-last line
.names outer inner
is different.More Information
I included the
dump
command before and afteropt_clean
in the above Yosys script to show where I think the possible problem (if this is determined to be a problem) is occurring.The dump before
opt_clean
:the dump after
opt_clean
:(the difference is in the second-to-last lines, in the
connect
command).Additionally, this is effecting the Verilog output; the following is what I get:
(again, I would expect the second-to-last line to be
assign outer = inner;
)A Less Trivial/Real-World Example
The above Verilog file was the smallest I could make that would exhibit what I think is a problem. However, I initially encountered this with a less trivial set of Verilog files found here.
To run them
yosys -s yosys_v2b.ys
bsg_fifo_1r1w_small_unhardened.blif
,ready_o
is the input to this net andready_lo
is the output, while in the original Verilog,ready_lo
is in the input andready_o
is the output.Note that this Yosys script has additional optimizations and passes and still has the purported error.
Beta Was this translation helpful? Give feedback.
All reactions