From: Cesar Strauss Date: Wed, 28 Oct 2020 10:27:23 +0000 (-0300) Subject: Also export Passive from the chosen Simulator module X-Git-Tag: 24jan2021_ls180~8 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d52b01274849574f0c405c7ba60c86a86dd1b1ce;p=nmutil.git Also export Passive from the chosen Simulator module --- 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"