Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hirarchy of submodules is not obvious from verilog #54

Closed
anuejn opened this issue Mar 31, 2019 · 4 comments
Closed

Hirarchy of submodules is not obvious from verilog #54

anuejn opened this issue Mar 31, 2019 · 4 comments

Comments

@anuejn
Copy link
Contributor

anuejn commented Mar 31, 2019

When adding a submodule to a submodule, the hirarchy is not obvious from the generated verilog.

Given the first submodule is named parent and its child child, I would suggest to name the verilog submodule for the child parent__child instead of child only.

What do you think?

@whitequark
Copy link
Contributor

This would seriously mess up presentation in gtkwave, making it almost completely unreadable.

Maybe an attribute called nmigen.path? I.e. (* nmigen.path = "parent/child" *) as an addition to the current naming.

@anuejn
Copy link
Contributor Author

anuejn commented Apr 1, 2019

Hm... that would be an option but not that nice imho.
maybe we should consider to fix gtkwave than for that use case.

@whitequark
Copy link
Contributor

Sure, but gtkwave needs to be fixed first.

@whitequark
Copy link
Contributor

I've added an attribute. I don't think anything else can be done here without breaking gtkwave (or without gtkwave being fixed).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants