From: whitequark Date: Fri, 6 Nov 2020 01:52:00 +0000 (+0000) Subject: examples: clean up oudated code. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7929d63b38c15901f9b49711dd8fcbbde2c83948;p=nmigen.git examples: clean up oudated code. --- diff --git a/examples/basic/ctr.py b/examples/basic/ctr.py index 9752299..044cc53 100644 --- a/examples/basic/ctr.py +++ b/examples/basic/ctr.py @@ -1,5 +1,5 @@ from nmigen import * -from nmigen.cli import main, pysim +from nmigen.cli import main class Counter(Elaboratable): diff --git a/examples/basic/gpio.py b/examples/basic/gpio.py index 3dd0da0..6905db4 100644 --- a/examples/basic/gpio.py +++ b/examples/basic/gpio.py @@ -1,4 +1,3 @@ -from types import SimpleNamespace from nmigen import * from nmigen.cli import main diff --git a/examples/basic/sel.py b/examples/basic/sel.py index b4797ec..da45423 100644 --- a/examples/basic/sel.py +++ b/examples/basic/sel.py @@ -1,4 +1,3 @@ -from types import SimpleNamespace from nmigen import * from nmigen.cli import main diff --git a/examples/basic/uart.py b/examples/basic/uart.py index afbe487..2a3b106 100644 --- a/examples/basic/uart.py +++ b/examples/basic/uart.py @@ -103,7 +103,7 @@ if __name__ == "__main__": args = parser.parse_args() if args.action == "simulate": - from nmigen.back.pysim import Simulator, Passive + from nmigen.sim import Simulator, Passive sim = Simulator(uart) sim.add_clock(1e-6)