From: Andrey Miroshnikov Date: Fri, 14 Oct 2022 13:32:58 +0000 (+0000) Subject: fix(stage2): Fixed gtkw redundancy X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=78073b1511796a8d993db0ef6fd6a1093acd5720;p=pinmux.git fix(stage2): Fixed gtkw redundancy --- 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, [])