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
While this is not the valid way to implement this in nmigen, if you try to use this code as-is in nmigen, the error is misleading:
File "/usr/lib/python3.8/site-packages/nmigen/hdl/dsl.py", line 75, in __getattr__
raise AttributeError("'{}' object has no attribute '{}'; did you mean 'd.{}'?"
AttributeError: 'ORGate' object has no attribute 'comb'; did you mean 'd.comb'?
If my understanding is right, the direct alternative to the above code in nmigen is to inherit from Elaboratable and use the elaborate() mechanism.
In that case, the error check should hint at this accordingly, instead of incorrectly hinting to use d.comb.
The text was updated successfully, but these errors were encountered:
Consider the following migen code:
While this is not the valid way to implement this in nmigen, if you try to use this code as-is in nmigen, the error is misleading:
If my understanding is right, the direct alternative to the above code in nmigen is to inherit from
Elaboratable
and use theelaborate()
mechanism.In that case, the error check should hint at this accordingly, instead of incorrectly hinting to use
d.comb
.The text was updated successfully, but these errors were encountered: