From: whitequark Date: Fri, 14 Dec 2018 19:08:06 +0000 (+0000) Subject: back.pysim: fix implicit boolean conversion. X-Git-Tag: working~243 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=71304c9fe72ae3c46ebcf4a6d41726e9197d1aa8;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]