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-Tag: locally_working~76 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ee15538cf01c000a8e146f64ae3ec67251ef5685;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 = ""