From: Cesar Strauss Date: Thu, 24 Sep 2020 22:26:16 +0000 (-0300) Subject: Add a few extra imports for convenience X-Git-Tag: 24jan2021_ls180~14 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3fb1297fe496e222a33bc7d4f88947372a472652;p=nmutil.git Add a few extra imports for convenience --- diff --git a/src/nmutil/sim_tmp_alternative.py b/src/nmutil/sim_tmp_alternative.py index 4af3c07..e615ad5 100644 --- a/src/nmutil/sim_tmp_alternative.py +++ b/src/nmutil/sim_tmp_alternative.py @@ -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"