You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromnmigenimport*fromnmigen_boards.versa_ecp5importVersaECP5PlatformclassTop(Elaboratable):
defelaborate(self, platform):
m=Module()
input=platform.request("eth_clk125", 0) # This is an inputm.d.comb+=input.i.eq(1)
returnmif__name__=="__main__":
VersaECP5Platform().build(Top())
Traceback (most recent call last):
File "bidir.py", line 16, in <module>
VersaECP5Platform().build(Top())
File "/home/jeanthomas/.local/lib/python3.8/site-packages/nmigen/build/plat.py", line 90, in build
plan = self.prepare(elaboratable, name, **kwargs)
File "/home/jeanthomas/.local/lib/python3.8/site-packages/nmigen/build/plat.py", line 162, in prepare
fragment._propagate_ports(ports=self.iter_ports(), all_undef_as_ports=False)
File "/home/jeanthomas/.local/lib/python3.8/site-packages/nmigen/hdl/ir.py", line 462, in _propagate_ports
self._prepare_use_def_graph(parent, level, uses, defs, ios, self)
File "/home/jeanthomas/.local/lib/python3.8/site-packages/nmigen/hdl/ir.py", line 436, in _prepare_use_def_graph
subfrag._prepare_use_def_graph(parent, level, uses, defs, ios, top)
File "/home/jeanthomas/.local/lib/python3.8/site-packages/nmigen/hdl/ir.py", line 428, in _prepare_use_def_graph
add_defs(value._lhs_signals())
File "/home/jeanthomas/.local/lib/python3.8/site-packages/nmigen/hdl/ir.py", line 396, in add_defs
assert defs[sig] is self
AssertionError
Ideally the error message would point to the faulty assignment line.
The text was updated successfully, but these errors were encountered:
I wrote that code a while ago, and it's not very good. It'd probably be easier for me to fix it myself if I have to sit down and remember how it works.
Ideally the error message would point to the faulty assignment line.
The text was updated successfully, but these errors were encountered: