Current --keep-hierarchy status #124
-
Greetings everyone. I've picked up I've noticed while processing "standard" designs like PicoRV32 from Yosys (yes, it's in Verilog but it shouldn't be a problem for the plugin) that even when using In the help message I've noticed the following:
(This "may crash" is also bugging me.) Am I correct to assume that this flattening is by design and there is no current way (or need) to keep the module hierarchy for RTLIL as is? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @Muxianesty, the help for these options needs updating. With
No,
What does you script look like when you're not seeing the hierarchy preserved? |
Beta Was this translation helpful? Give feedback.
Hi @Muxianesty,
the help for these options needs updating. With
--keep-hierarchy
the frontend attempts to preserve the hierachy and will error out if it's unable to do so (mainly due to hierarchical references or due to non-modport interface port connections),--best-effort-hierarchy
is similar but allows for selective flattening in cases which would otherwise error out.No,
--keep-hierarchy
disables flattening. See e.g. this Ibex hierarchy as pulled from the CI: