projects
/
pinmux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
149a9e8
)
fix names
author
Neel
<neelgala@gmail.com>
Sat, 21 Jul 2018 06:26:23 +0000
(11:56 +0530)
committer
Neel
<neelgala@gmail.com>
Sat, 21 Jul 2018 06:26:23 +0000
(11:56 +0530)
src/bsv/peripheral_gen.py
patch
|
blob
|
history
diff --git
a/src/bsv/peripheral_gen.py
b/src/bsv/peripheral_gen.py
index 519ca60eaaec1caf942cc560638c02b2d9033eed..d424778ee096163fa0a27ccc18090567d4518c69 100644
(file)
--- a/
src/bsv/peripheral_gen.py
+++ b/
src/bsv/peripheral_gen.py
@@
-63,7
+63,10
@@
class PBase(object):
ps_ = ps + '_out'
else:
ps_ = ps
ps_ = ps + '_out'
else:
ps_ = ps
- n_ = "{0}{1}".format(n, count)
+ if not n.startswith('gpio'): # XXX EURGH! horrible hack
+ n_ = "{0}{1}".format(n, count)
+ else:
+ n_ = n
ret.append(" {0}({1}.{2});".format(ps_, n_, fname))
fname = None
if p.get('outen'):
ret.append(" {0}({1}.{2});".format(ps_, n_, fname))
fname = None
if p.get('outen'):
@@
-294,7
+297,7
@@
class pwm(PBase):
return " import pwm::*;"
def slowifdecl(self):
return " import pwm::*;"
def slowifdecl(self):
- return " interface PWMIO pwm{0}
_o
;"
+ return " interface PWMIO pwm{0};"
def num_axi_regs32(self):
return 4
def num_axi_regs32(self):
return 4