X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fspec%2Fifaceprint.py;h=51088f52bdbbe56c728d9217eb5b2b452c394ee4;hb=9786e9bc10e517ad980e6df3264f6c5d699a53ac;hp=e15d102192dbd4ab9c99165b704a2c35bc039ee0;hpb=cc3fcc845f9b99589ea0e235ed13726a829a251c;p=pinmux.git diff --git a/src/spec/ifaceprint.py b/src/spec/ifaceprint.py index e15d102..51088f5 100644 --- a/src/spec/ifaceprint.py +++ b/src/spec/ifaceprint.py @@ -3,7 +3,7 @@ from copy import deepcopy -def display(of, pins, banksel=None): +def display(of, pins, banksel=None, muxwidth=4): of.write("""\ | Pin | Mux0 | Mux1 | Mux2 | Mux3 | | --- | ----------- | ----------- | ----------- | ----------- | @@ -13,7 +13,7 @@ def display(of, pins, banksel=None): pdata = pins.get(pin) if banksel: skip = False - for mux in range(4): + for mux in range(muxwidth): if mux not in pdata: continue name, bank = pdata[mux] @@ -22,7 +22,7 @@ def display(of, pins, banksel=None): if skip: continue res = '| %3d |' % pin - for mux in range(4): + for mux in range(muxwidth): if mux not in pdata: res += " |" continue