Force output assignments to occur at the end? #3729
-
Hi there, I've been working with Yosys for a while, doing a techmap + abc + write_verilog script, and I noticed that sometimes the resulting netlist will use Is there a way to explicitly control the behavior of these output nets? Specifically, I'd like to ensure outputs are not reused by later cells, and that all output assignments happen via So instead of a cell being expressed like
I would like to export it like
I'm fine with multiple assignments happening in the same |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Are you sure you should be using Verilog as your intermediate netlist format? It sounds like a more restricted format would serve your needs better. |
Beta Was this translation helpful? Give feedback.
There are BLIF and EDIF, which are both industry standard netlist interchange formats. They have some significant flaws (but so does Verilog). It is worth taking a look at them, I think.
Alternatively, you could ingest RTLIL, Yosys' own netlist interchange format.