How to avoid Constant-0 drivers added to undriven nets #3695
Replies: 3 comments
-
The error you copied does not come from |
Beta Was this translation helpful? Give feedback.
-
Hi, thank you so much for your answer. I tried removing the
So it looks like still yosys performs some kind of "optimization" and creates a wrong activity file without those pins. Actually I can see a decreasing amount of connection between the
But of course |
Beta Was this translation helpful? Give feedback.
-
No idea, again that error is happening in other tools that I don't know anything about. Please ask the developers of OpenFPGA about bugs in their tools! |
Beta Was this translation helpful? Give feedback.
-
Good morning everyone.
I am trying to synthesise a very simple HDL design composed by a LSFR which basically implements a shift register whose input bit is a linear function of the previous content of the register. I made this test just to debug some strange behaviour I got during the implementation of a bigger design.
A hint of this test design can be found in the following code snippet:
RTL simulation works fine and I get the expected output signals but when I synthesise this design with yosys, I am getting the expected behaviour just for
data_o0 - data_o3
anddata_o10 - data_o12
, whereas the other outputs are seen as non-driven and thus yosys adds a constant-0 driver. In fact, during the yosysopt
step, I get the following warning:The synthesis script I am using is the following one:
The point is that I need those "copy" output signals having the same values (
r_lsfr[0]
) without having them treated like undriven nets.Has anybody ever had an issue like this? How can I tell yosys these are needed signals?
Thanks for the help!
Beta Was this translation helpful? Give feedback.
All reactions