projects
/
pinmux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
46c4550
)
argh reorder functions to not be recursively dependent
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Sat, 24 Apr 2021 20:46:45 +0000
(21:46 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Sat, 24 Apr 2021 20:46:45 +0000
(21:46 +0100)
src/pinmux_generator.py
patch
|
blob
|
history
diff --git
a/src/pinmux_generator.py
b/src/pinmux_generator.py
index 3e92bf062353d043b1a5258dc759d54212c0ecaa..52267f4870cfe536f181d37287b5fa5f7b01a889 100644
(file)
--- a/
src/pinmux_generator.py
+++ b/
src/pinmux_generator.py
@@
-89,20
+89,20
@@
if __name__ == '__main__':
with open(fname, "w") as of:
with open(pyname, "w") as pyf:
ps = module.pinspec()
with open(fname, "w") as of:
with open(pyname, "w") as pyf:
ps = module.pinspec()
- pm, chip = module.pinparse(ps, pinspec)
- litexmap = ps.pywrite(pyf, pm)
pinout, bankspec, pin_spec, fixedpins = ps.write(of)
#chip['litex.map'] = litexmap
pinout, bankspec, pin_spec, fixedpins = ps.write(of)
#chip['litex.map'] = litexmap
- chip = json.dumps(chip)
- with open("%s/litex_pinpads.json" % pinspec, "w") as f:
- f.write(chip)
-
if testing:
dummytest(ps, output_dir, output_type)
else:
specgen(of, output_dir, pinout,
bankspec, ps.muxwidths, pin_spec, fixedpins,
ps.fastbus)
if testing:
dummytest(ps, output_dir, output_type)
else:
specgen(of, output_dir, pinout,
bankspec, ps.muxwidths, pin_spec, fixedpins,
ps.fastbus)
+ pm, chip = module.pinparse(ps, pinspec)
+ litexmap = ps.pywrite(pyf, pm)
+ chip = json.dumps(chip)
+ with open("%s/litex_pinpads.json" % pinspec, "w") as f:
+ f.write(chip)
+
else:
if output_type == 'bsv':
from bsv.pinmux_generator import pinmuxgen as gentypes
else:
if output_type == 'bsv':
from bsv.pinmux_generator import pinmuxgen as gentypes