MyHDL

Preserve hierarchy

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

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

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

1 Like

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

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

Hello Chris,

Did you find the example about preserving hierarchy while conversion?
It would be great if you could provide some info on it.

Regards
Sheshu