projects
/
pinmux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add SVG generator
[pinmux.git]
/
src
/
pinmux_generator.py
diff --git
a/src/pinmux_generator.py
b/src/pinmux_generator.py
index 52267f4870cfe536f181d37287b5fa5f7b01a889..859634eb4a76f1e83666d32945d20504ff9c8630 100644
(file)
--- a/
src/pinmux_generator.py
+++ b/
src/pinmux_generator.py
@@
-21,6
+21,7
@@
import os.path
import sys
import json
from spec import modules, specgen, dummytest
import sys
import json
from spec import modules, specgen, dummytest
+from spec.ifaceprint import create_sv
def printhelp():
def printhelp():
@@
-99,10
+100,10
@@
if __name__ == '__main__':
ps.fastbus)
pm, chip = module.pinparse(ps, pinspec)
litexmap = ps.pywrite(pyf, pm)
ps.fastbus)
pm, chip = module.pinparse(ps, pinspec)
litexmap = ps.pywrite(pyf, pm)
- chip = json.dumps(chip)
+
j
chip = json.dumps(chip)
with open("%s/litex_pinpads.json" % pinspec, "w") as f:
with open("%s/litex_pinpads.json" % pinspec, "w") as f:
- f.write(chip)
-
+ f.write(
j
chip)
+ create_sv("%s/%s.svg" % (pinspec, pinspec), 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