Skip to content

Current --keep-hierarchy status #124

Closed Answered by povik
Muxianesty asked this question in Q&A
Discussion options

You must be logged in to vote

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.

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?

No, --keep-hierarchy disables flattening. See e.g. this Ibex hierarchy as pulled from the CI:

2.2. Analyzing design hierarchy..
Top module:  \ibex_core
Used module:     \ibex_wb_st…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Muxianesty
Comment options

@povik
Comment options

Answer selected by Muxianesty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants