From c88696d7c74bb9ee0fc3cc20d950624ed39868c6 Mon Sep 17 00:00:00 2001 From: whitequark Date: Fri, 12 Jul 2019 12:17:18 +0000 Subject: [PATCH] back.pysim: correctly add gtkwave traces for signals with decoders. --- 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 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 = "" -- 2.30.2