From d52b01274849574f0c405c7ba60c86a86dd1b1ce Mon Sep 17 00:00:00 2001 From: Cesar Strauss Date: Wed, 28 Oct 2020 07:27:23 -0300 Subject: [PATCH] Also export Passive from the chosen Simulator module --- src/nmutil/sim_tmp_alternative.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/nmutil/sim_tmp_alternative.py b/src/nmutil/sim_tmp_alternative.py index b0ed141..2b2e3a2 100644 --- a/src/nmutil/sim_tmp_alternative.py +++ b/src/nmutil/sim_tmp_alternative.py @@ -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" -- 2.30.2