From 76503a18194eb6da40645db9304826cbd9f9b947 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