From 7929d63b38c15901f9b49711dd8fcbbde2c83948 Mon Sep 17 00:00:00 2001 From: whitequark Date: Fri, 6 Nov 2020 01:52:00 +0000 Subject: [PATCH] examples: clean up oudated code. --- examples/basic/ctr.py | 2 +- examples/basic/gpio.py | 1 - examples/basic/sel.py | 1 - examples/basic/uart.py | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) 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) -- 2.30.2