Also export Passive from the chosen Simulator module
authorCesar Strauss <cestrauss@gmail.com>
Wed, 28 Oct 2020 10:27:23 +0000 (07:27 -0300)
committerCesar Strauss <cestrauss@gmail.com>
Wed, 28 Oct 2020 10:27:23 +0000 (07:27 -0300)
src/nmutil/sim_tmp_alternative.py

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