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

Peripheral constructor breaks when a DomainRenamer is used #5

Open
jeanthom opened this issue Jun 22, 2020 · 0 comments
Open

Peripheral constructor breaks when a DomainRenamer is used #5

jeanthom opened this issue Jun 22, 2020 · 0 comments

Comments

@jeanthom
Copy link

This is the kind of error message you get when instantiating a Peripheral inside a DomainRenamer:

Traceback (most recent call last):
  File "headless-ecpix5.py", line 241, in <module>
    soc = DDR3SoC(clk_freq=int(platform.default_clk_frequency),
  File "headless-ecpix5.py", line 204, in __init__
    self.dramcore = DomainRenamer("dramsync")(gramCore(
  File "/home/jeanthomas/.local/lib/python3.8/site-packages/gram-0.0.0-py3.8.egg/gram/core/__init__.py", line 14, in __init__
  File "/home/jeanthomas/.local/lib/python3.8/site-packages/lambdasoc/periph/base.py", line 64, in __init__
    self.name      = name or tracer.get_var_name(depth=2 + src_loc_at).lstrip("_")
  File "/home/jeanthomas/.local/lib/python3.8/site-packages/nmigen/tracer.py", line 45, in get_var_name
    raise NameNotFound
nmigen.tracer.NameNotFound

As a workaround, you can manually define the peripheral name.

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

No branches or pull requests

1 participant