From fdff8644dad482daa130942959d1e4358f1abd6a Mon Sep 17 00:00:00 2001 From: Andrey Miroshnikov Date: Fri, 14 Oct 2022 13:08:40 +0000 Subject: [PATCH] fix(stage2): Added separated port signals to gtkw output --- src/stage2.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/stage2.py b/src/stage2.py index 4a1d5e1..e3b8e2e 100644 --- a/src/stage2.py +++ b/src/stage2.py @@ -497,6 +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')) + traces.append(temp_traces) temp_traces = ("Pad %s Peripherals" % pad, []) for mux in requested[pad].keys(): @@ -522,12 +526,6 @@ def gen_gtkw_doc(module_name, requested, filename): temp_traces[1].append(('%s_i' % name_format, 'in')) traces.append(temp_traces) - # master port signal - temp_traces = ('Misc', [ - ('port[%d:0]' % ((n_ports-1).bit_length()-1), 'in') - ]) - traces.append(temp_traces) - #print(traces) write_gtkw(filename+".gtkw", filename+".vcd", traces, style, -- 2.30.2