projects
/
pinmux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9576ae6
)
add `define generator
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Fri, 20 Jul 2018 05:11:44 +0000
(06:11 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Fri, 20 Jul 2018 05:11:44 +0000
(06:11 +0100)
src/bsv/peripheral_gen.py
patch
|
blob
|
history
diff --git
a/src/bsv/peripheral_gen.py
b/src/bsv/peripheral_gen.py
index 270bc80222b427c66acee2adf416536dfbc00915..90f7b43237bbefc4bca4497ac27a321975494773 100644
(file)
--- a/
src/bsv/peripheral_gen.py
+++ b/
src/bsv/peripheral_gen.py
@@
-1,12
+1,12
@@
class PBase(object):
pass
- def axi_reg_def(self, start, name, i
dx
):
+ def axi_reg_def(self, start, name, i
facenum
):
name = name.upper()
offs = self.num_axi_regs32()*4
end = start + offs - 1
- return (" `define%(name)s%(i
dx)dBase
'h%(start)08x'\n" \
- " `define%(name)s%(i
dx)dEnd
'h%(end)08x'\n" % locals(),
+ return (" `define%(name)s%(i
facenum)dBase
'h%(start)08x'\n" \
+ " `define%(name)s%(i
facenum)dEnd
'h%(end)08x'\n" % locals(),
offs)