projects
/
pinmux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b6a5b0
)
slight logic change which seems to work on generating mux selector
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Fri, 23 Mar 2018 05:20:20 +0000
(
05:20
+0000)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Fri, 23 Mar 2018 05:20:20 +0000
(
05:20
+0000)
src/actual_pinmux.py
patch
|
blob
|
history
diff --git
a/src/actual_pinmux.py
b/src/actual_pinmux.py
index e5aa4994b8da15d9e34bd93e2edfa801db158fa6..82a0ef2db1d6f6f0ae0b2ec757f0e8eb350b19de 100644
(file)
--- a/
src/actual_pinmux.py
+++ b/
src/actual_pinmux.py
@@
-49,15
+49,10
@@
def init(p):
global dedicated_wire
for cell in p.muxed_cells:
p.pinmux += " %s_out=" % cn(cell[0])
- i = 0
- while (i < len(cell) - 1):
+ for i in range(0, len(cell) - 2):
p.pinmux += "wr%s" % cn(cell[0]) + \
"==" + str(i) + "?" + cell[i + 1] + "_io:\n\t\t\t"
- if i + 2 == len(cell) - 1:
- p.pinmux += cell[i + 2] + "_io"
- i = i + 2
- else:
- i = i + 1
+ p.pinmux += cell[i + 2] + "_io"
p.pinmux += ";\n"
# ======================================================== #