projects
/
pinmux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fdff864
)
fix(stage2): Fixed gtkw redundancy
author
Andrey Miroshnikov
<andrey@technepisteme.xyz>
Fri, 14 Oct 2022 13:32:58 +0000
(13:32 +0000)
committer
Andrey Miroshnikov
<andrey@technepisteme.xyz>
Fri, 14 Oct 2022 13:32:58 +0000
(13:32 +0000)
src/stage2.py
patch
|
blob
|
history
diff --git
a/src/stage2.py
b/src/stage2.py
index e3b8e2e574fa2200bcaac19de68b8fabd2a8d807..6c131c0c0c867a0a68a0b894996a50db6b195a3f 100644
(file)
--- 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'))
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, [])
traces.append(temp_traces)
temp_traces = ("Pad %s Peripherals" % pad, [])