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

nMigen doesn't like clock domains with underscores #489

Closed
DaKnig opened this issue Aug 25, 2020 · 1 comment
Closed

nMigen doesn't like clock domains with underscores #489

DaKnig opened this issue Aug 25, 2020 · 1 comment
Labels

Comments

@DaKnig
Copy link

DaKnig commented Aug 25, 2020

as the title suggests; the MCVE errors out with Domain 'cd_40' is used but not defined but changing all occurrences of cd_40 to cd40 fixes the issue.

MCVE:
https://paste.debian.net/1161171/

@whitequark
Copy link
Member

This is a feature: https://github.com/nmigen/nmigen/blob/630c0fd99af6cf52d14c4b57067933d7c96cdf86/nmigen/hdl/cd.py#L15-L19

So if you assign a domain to cd_40 the domain itself will be named just "40".

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

No branches or pull requests

2 participants