migen
migen copied to clipboard
tutorial out of date (was: Issue with importing Signal)
In your documentation I've seen you import in these 2 ways:
>>> from migen.fhdl.std import *
or
>>> from migen.fhdl import *
However, when I try to do run this command:
>>> a = Signal(1)
NameError: name 'Signal' is not defined
but this works when I do:
>>> from migen import *
>>> a = Signal(1)
Is this due to some change along the way in regards to how the modules are setup?
>>> type(Signal())
migen.fhdl.structure.Signal
migen.fhdl.std
has been removed. Where in the documentation is it still mentioned?
It was a tutorial from 2014. Is from migen.fhdl import *
the correct import statement to use Signal()
?
No, usually you want from migen import *
.