MyHDL Discourse

Preserve hierarchy

#1

Hello,

I see that for all the myhdl sub modules that during conversion, the hierarchy is flattened.
Is there an easy solution to preserve hierarchies ?
Is this feature available now ?

Thank you

0 Likes

#2

Hi,
The way MyHDL currently works flattens the hierarchy. There is no option to keep it in the converted design.
However, this is in the todo list.

1 Like

#3

The preserve hierarchy is only partially supported, you will have to manually pull the different sub-blocks together.

1 Like

#4

Hello felton,

Thank you very much for the reply.
Is it by using some conditional instantiation ?
Is there any documentation for it to do the best way?

Thanks

0 Likes

#5

No there is not any documentation currently, in the old mailing-list (is gmane back online yet?) there are some conversations that elude to the procedure.

I personally have not experimented with preserving hierarchy, although I was part of the conversations way back when. I will poke around and see if I can find some of the old conversations and/or put together a simple example.

Regards,
Chris

1 Like