From 42b17b6c32ff7c2d83e164771b519cc7eef8fdd8 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 8 Dec 2021 12:48:11 +0000 Subject: [PATCH] fix to nmutil workaround for detecting new Simulator API the engine argument if already provided, just use that --- src/nmutil/sim_tmp_alternative.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nmutil/sim_tmp_alternative.py b/src/nmutil/sim_tmp_alternative.py index 2b2e3a2..a90b6e7 100644 --- a/src/nmutil/sim_tmp_alternative.py +++ b/src/nmutil/sim_tmp_alternative.py @@ -47,7 +47,7 @@ nmigen_sim_environ_variable = os.environ.get("NMIGEN_SIM_MODE") \ def Simulator(*args, **kwargs): """Wrapper that allows run-time selection of simulator engine""" - if detected_new_api: + if detected_new_api and 'engine' not in kwargs: kwargs['engine'] = nmigen_sim_environ_variable return RealSimulator(*args, **kwargs) -- 2.30.2