From 71304c9fe72ae3c46ebcf4a6d41726e9197d1aa8 Mon Sep 17 00:00:00 2001 From: whitequark Date: Fri, 14 Dec 2018 19:08:06 +0000 Subject: [PATCH] back.pysim: fix implicit boolean conversion. --- nmigen/back/pysim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] -- 2.30.2