Add a few extra imports for convenience
authorCesar Strauss <cestrauss@gmail.com>
Thu, 24 Sep 2020 22:26:16 +0000 (19:26 -0300)
committerCesar Strauss <cestrauss@gmail.com>
Thu, 24 Sep 2020 22:26:16 +0000 (19:26 -0300)
src/nmutil/sim_tmp_alternative.py

index 4af3c07bd909a8d2ff1fcd0b8b07ddc0a92f70ab..e615ad5b8405e27510c4a192bf9113cfa403c1a6 100644 (file)
@@ -28,14 +28,16 @@ or, even::
 import os
 
 try:
-    from nmigen.sim import Simulator as RealSimulator
+    from nmigen.sim import Simulator as RealSimulator, Delay, Settle, Tick
     detected_new_api = True
 except ImportError:
     detected_new_api = False
     try:
-        from nmigen.sim.pysim import Simulator as RealSimulator
+        from nmigen.sim.pysim import (Simulator as RealSimulator,
+                                      Delay, Settle, Tick)
     except ImportError:
-        from nmigen.back.pysim import Simulator as RealSimulator
+        from nmigen.back.pysim import (Simulator as RealSimulator,
+                                       Delay, Settle, Tick)
 
 nmigen_sim_environ_variable = os.environ.get("NMIGEN_SIM_MODE") \
                               or "pysim"