From 3fb1297fe496e222a33bc7d4f88947372a472652 Mon Sep 17 00:00:00 2001 From: Cesar Strauss Date: Thu, 24 Sep 2020 19:26:16 -0300 Subject: [PATCH] Add a few extra imports for convenience --- src/nmutil/sim_tmp_alternative.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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" -- 2.30.2