-
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
That is very extreme. Generally hierarchical will have somewhat worse results (as seen in rtl#1) but rtl#2 seems crazy. Is there some huge amount of logic that can be removed by optimization in the flat case? Are you certain your results are correct? |
Beta Was this translation helpful? Give feedback.
-
Can you provide a test case? |
Beta Was this translation helpful? Give feedback.
-
It is a bit incomplete as a test case as you didn't provide any script to run in yosys. I made one up and I see the general trend you describe. I also see a lot of constants being passed through the hierarchy in your netlist. Those case can't be optimized when running hierarchical synthesis. In the flat case they can. I suspect you have effectively disabled almost all the logic in your design this way and so yosys optimizes it away. Its a bit hard to tell in a large generated .v file - is that your intent? |
Beta Was this translation helpful? Give feedback.
-
Also in flat:
|
Beta Was this translation helpful? Give feedback.
It is a bit incomplete as a test case as you didn't provide any script to run in yosys. I made one up and I see the general trend you describe.
I also see a lot of constants being passed through the hierarchy in your netlist. Those case can't be optimized when running hierarchical synthesis. In the flat case they can. I suspect you have effectively disabled almost all the logic in your design this way and so yosys optimizes it away. Its a bit hard to tell in a large generated .v file - is that your intent?