From: Luke Kenneth Casson Leighton Date: Wed, 8 Dec 2021 12:48:11 +0000 (+0000) Subject: fix to nmutil workaround for detecting new Simulator API X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=42b17b6c32ff7c2d83e164771b519cc7eef8fdd8;p=nmutil.git fix to nmutil workaround for detecting new Simulator API the engine argument if already provided, just use that --- 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)