examples: clean up oudated code.

This commit is contained in:
whitequark 2020-11-06 01:52:00 +00:00
parent bb6a233626
commit 6e7dbe004e
4 changed files with 2 additions and 4 deletions

View file

@ -1,5 +1,5 @@
from nmigen import *
from nmigen.cli import main, pysim
from nmigen.cli import main
class Counter(Elaboratable):

View file

@ -1,4 +1,3 @@
from types import SimpleNamespace
from nmigen import *
from nmigen.cli import main

View file

@ -1,4 +1,3 @@
from types import SimpleNamespace
from nmigen import *
from nmigen.cli import main

View file

@ -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)