examples: clean up oudated code.
This commit is contained in:
parent
bb6a233626
commit
6e7dbe004e
|
@ -1,5 +1,5 @@
|
||||||
from nmigen import *
|
from nmigen import *
|
||||||
from nmigen.cli import main, pysim
|
from nmigen.cli import main
|
||||||
|
|
||||||
|
|
||||||
class Counter(Elaboratable):
|
class Counter(Elaboratable):
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
from types import SimpleNamespace
|
|
||||||
from nmigen import *
|
from nmigen import *
|
||||||
from nmigen.cli import main
|
from nmigen.cli import main
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
from types import SimpleNamespace
|
|
||||||
from nmigen import *
|
from nmigen import *
|
||||||
from nmigen.cli import main
|
from nmigen.cli import main
|
||||||
|
|
||||||
|
|
|
@ -103,7 +103,7 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
if args.action == "simulate":
|
if args.action == "simulate":
|
||||||
from nmigen.back.pysim import Simulator, Passive
|
from nmigen.sim import Simulator, Passive
|
||||||
|
|
||||||
sim = Simulator(uart)
|
sim = Simulator(uart)
|
||||||
sim.add_clock(1e-6)
|
sim.add_clock(1e-6)
|
||||||
|
|
Loading…
Reference in a new issue