printhelp()
sys.exit(1)
module = modules[pinspec]
- pinout, bankspec, fixedpins = module.pinspec()
- specgen(output_dir, pinout, bankspec, fixedpins)
+ pinout, bankspec, pinspec, fixedpins = module.pinspec()
+ specgen(output_dir, pinout, bankspec, pinspec, fixedpins)
else:
gentypes = {'bsv': bsvgen}
if output_type not in gentypes:
from spec.interfaces import Pinouts
-def specgen(pth, pinouts, bankspec, fixedpins):
+def specgen(pth, pinouts, bankspec, pinbanks, fixedpins):
""" generates a specification of pinouts (tsv files)
for reading in by pinmux
"""
p = map(str, p)
p = map(str.lower, p)
g.write('\t'.join(p) + '\n')
+
+ # lists bankspec, shows where the pin-numbers *start*
+ print ("# Pin Bank starting points and lengths\n")
+ for bank, pinstart in bankspec.items():
+ print ("* %s %d %d" % (bank, pinstart, pinbanks[bank]))
* ULPI OTG PHY, TI TUSB1210 <http://ti.com/product/TUSB1210/>
""")
- return pinouts, bankspec, fixedpins
+ return pinouts, bankspec, pinbanks, fixedpins