Fix commit 8313d6e7.
authorwhitequark <whitequark@whitequark.org>
Fri, 6 Nov 2020 01:54:25 +0000 (01:54 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 31 Dec 2021 15:21:06 +0000 (15:21 +0000)
nmigen/cli.py

index 7d5ed895a8842c7a52365501f6915d9fb25c9abe..51e9a953eb285625a3aa35a9b6257ad2c5cef419 100644 (file)
@@ -2,7 +2,7 @@ import argparse
 
 from .hdl.ir import Fragment
 from .back import rtlil, cxxrtl, verilog
-from .sim import pysim
+from .sim import Simulator
 
 
 __all__ = ["main"]
@@ -67,7 +67,7 @@ def main_runner(parser, args, design, platform=None, name="top", ports=()):
 
     if args.action == "simulate":
         fragment = Fragment.get(design, platform)
-        sim = pysim.Simulator(fragment)
+        sim = Simulator(fragment)
         sim.add_clock(args.sync_period)
         with sim.write_vcd(vcd_file=args.vcd_file, gtkw_file=args.gtkw_file, traces=ports):
             sim.run_until(args.sync_period * args.sync_clocks, run_passive=True)