From: whitequark Date: Fri, 14 Dec 2018 19:08:06 +0000 (+0000) Subject: back.pysim: fix implicit boolean conversion. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=76503a18194eb6da40645db9304826cbd9f9b947;p=nmigen.git back.pysim: fix implicit boolean conversion. --- diff --git a/nmigen/back/pysim.py b/nmigen/back/pysim.py index 47d84fa..db4a678 100644 --- a/nmigen/back/pysim.py +++ b/nmigen/back/pysim.py @@ -53,7 +53,7 @@ class _RHSValueCompiler(ValueTransformer): return lambda state: value.value def on_Signal(self, value): - if self.sensitivity: + if self.sensitivity is not None: self.sensitivity.add(value) if self.signal_mode == "curr": return lambda state: state.curr[value]