From 78073b1511796a8d993db0ef6fd6a1093acd5720 Mon Sep 17 00:00:00 2001 From: Andrey Miroshnikov Date: Fri, 14 Oct 2022 13:32:58 +0000 Subject: [PATCH] fix(stage2): Fixed gtkw redundancy --- src/stage2.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/stage2.py b/src/stage2.py index e3b8e2e..6c131c0 100644 --- a/src/stage2.py +++ b/src/stage2.py @@ -497,9 +497,10 @@ def gen_gtkw_doc(module_name, requested, filename): temp_traces[1].append(('%s__i' % pad, 'in')) temp_traces[1].append(('%s__o' % pad, 'out')) temp_traces[1].append(('%s__oe' % pad, 'out')) - # Port signal - temp_traces[1].append(('%s_port[%d:0]' - % (pad, (n_ports-1).bit_length()-1), 'in')) + # Port signal - only exists if more than one periph per pad + if len(requested[pad]) >= 1: + temp_traces[1].append(('%s_port[%d:0]' + % (pad, (n_ports-1).bit_length()-1), 'in')) traces.append(temp_traces) temp_traces = ("Pad %s Peripherals" % pad, []) -- 2.30.2