From: whitequark Date: Fri, 12 Jul 2019 12:17:18 +0000 (+0000) Subject: back.pysim: correctly add gtkwave traces for signals with decoders. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c88696d7c74bb9ee0fc3cc20d950624ed39868c6;p=nmigen.git back.pysim: correctly add gtkwave traces for signals with decoders. --- diff --git a/nmigen/back/pysim.py b/nmigen/back/pysim.py index a32a967..76ef2d6 100644 --- a/nmigen/back/pysim.py +++ b/nmigen/back/pysim.py @@ -849,7 +849,7 @@ class Simulator: def add_trace(signal, **kwargs): signal_slot = self._signal_slots[signal] if self._vcd_names[signal_slot] is not None: - if len(signal) > 1: + if len(signal) > 1 and not signal.decoder: suffix = "[{}:0]".format(len(signal) - 1) else: suffix = ""