with open(fname, "w") as of:
with open(pyname, "w") as pyf:
ps = module.pinspec()
- pm = module.pinparse(ps, pinspec)
- pinout, bankspec, pin_spec, fixedpins = ps.write(pyf, of, pm)
+ pinout, bankspec, pin_spec, fixedpins = ps.write(of)
if testing:
dummytest(ps, output_dir, output_type)
else:
specgen(of, output_dir, pinout,
bankspec, ps.muxwidths, pin_spec, fixedpins,
ps.fastbus)
+ pm = module.pinparse(ps, pinspec)
+ ps.pywrite(pyf, pm)
else:
if output_type == 'bsv':
from bsv.pinmux_generator import pinmuxgen as gentypes
self.scenarios.append((name, needed, eint, pwm, descriptions))
- def write(self, pyf, of, pinmap):
+ def pywrite(self, pyf, pinmap):
- fns = python_dict_fns(pyf, pinmap, self, self.function_names)
+ python_dict_fns(pyf, pinmap, self, self.function_names)
+
+ def write(self, of):
of.write("""# Pinouts (PinMux)
auto-generated by [[pinouts.py]]