From 7fc9f98b98daf13eb79239861b90ede796e35274 Mon Sep 17 00:00:00 2001 From: whitequark Date: Fri, 14 Dec 2018 13:25:51 +0000 Subject: [PATCH] back.pysim: skip VCD signal population if VCD is not requested. --- nmigen/back/pysim.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nmigen/back/pysim.py b/nmigen/back/pysim.py index 18318b9..88cd7a3 100644 --- a/nmigen/back/pysim.py +++ b/nmigen/back/pysim.py @@ -281,6 +281,9 @@ class Simulator: normalize(signal.reset, signal.shape()) self._state.curr_dirty.add(signal) + if not self._vcd_writer: + continue + if signal not in self._vcd_signals: self._vcd_signals[signal] = set() -- 2.30.2