projects
/
pinmux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanup templates in peripheral_gen base
[pinmux.git]
/
src
/
bsv
/
peripheral_gen
/
base.py
diff --git
a/src/bsv/peripheral_gen/base.py
b/src/bsv/peripheral_gen/base.py
index 83af2c07e598f505f05e4cd7a41a88ed32e4dd98..44602380823b47b9a21d0fa123a971b4e9048d0d 100644
(file)
--- a/
src/bsv/peripheral_gen/base.py
+++ b/
src/bsv/peripheral_gen/base.py
@@
-347,9
+347,8
@@
else"""
else:
spc = ck
ck = self.get_clk_spc(ctype)
else:
spc = ck
ck = self.get_clk_spc(ctype)
- template = """\
-Ifc_sync#({0}) {1}_sync <-mksyncconnection(
- {2}, {3});"""
+ template = "Ifc_sync#({0}) {1}_sync <-mksyncconnection(\n" + \
+ " {2}, {3});"
for p in self.peripheral.pinspecs:
typ = p['type']
pname = p['name']
for p in self.peripheral.pinspecs:
typ = p['type']
pname = p['name']
@@
-390,9
+389,8
@@
Ifc_sync#({0}) {1}_sync <-mksyncconnection(
else:
spc = ck
ck = self.get_clk_spc(ctype)
else:
spc = ck
ck = self.get_clk_spc(ctype)
- template = """\
-Ifc_sync#({0}) {1}_sync <-mksyncconnection(
- {2}, {3});"""
+ template = "Ifc_sync#({0}) {1}_sync <-mksyncconnection(\n" + \
+ " {2}, {3});"""
n_ = "{0}{1}".format(name, count)
n_ = '{0}_{1}'.format(n_, pname)
n_ = "{0}{1}".format(name, count)
n_ = '{0}_{1}'.format(n_, pname)