From: whitequark Date: Fri, 14 Dec 2018 13:25:51 +0000 (+0000) Subject: back.pysim: skip VCD signal population if VCD is not requested. X-Git-Tag: working~267 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7fc9f98b98daf13eb79239861b90ede796e35274;p=nmigen.git back.pysim: skip VCD signal population if VCD is not requested. --- 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()