From: Luke Kenneth Casson Leighton Date: Thu, 22 Mar 2018 07:05:53 +0000 (+0000) Subject: use auto-generated wiredefs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e4ca6f2f89c650e9e1cbb385da2ea2c32fcd4ede;p=pinmux.git use auto-generated wiredefs --- diff --git a/src/pinmux_generator.py b/src/pinmux_generator.py index 3d05526..d656326 100644 --- a/src/pinmux_generator.py +++ b/src/pinmux_generator.py @@ -156,37 +156,37 @@ with open("./bsv_src/pinmux.bsv", "w") as bsv_file: bsv_file.write( '''\n // following wires capture signals to IO CELL if uart-{0} is // allotted to it'''.format(i)) - bsv_file.write(uartwires.format(i)) + bsv_file.write(uartinterface_decl.wirefmt(i)) for i in range(0, N_SPI): bsv_file.write( '''\n // following wires capture signals to IO CELL if spi-{0} is // allotted to it'''.format(i)) - bsv_file.write(spiwires.format(i)) + bsv_file.write(spiinterface_decl.wirefmt(i)) for i in range(0, N_TWI): bsv_file.write( '''\n // following wires capture signals to IO CELL if twi-{0} is // allotted to it'''.format(i)) - bsv_file.write(twiwires.format(i)) + bsv_file.write(twiinterface_decl.wirefmt(i)) for i in range(0, N_SD): bsv_file.write( '''\n // following wires capture signals to IO CELL if sd-{0} is // allotted to it'''.format(i)) - bsv_file.write(sdwires.format(i)) + bsv_file.write(sdinterface_decl.wirefmt(i)) for i in range(0, N_JTAG): bsv_file.write( '''\n // following wires capture signals to IO CELL if jtag-{0} is // allotted to it'''.format(i)) - bsv_file.write(jtagwires.format(i)) + bsv_file.write(jtaginterface_decl.wirefmt(i)) for i in range(0, N_PWM): bsv_file.write( '''\n // following wires capture signals to IO CELL if pwm-{0} is // allotted to it'''.format(i)) - bsv_file.write(pwmwires.format(i)) + bsv_file.write(pwminterface_decl.wirefmt(i)) bsv_file.write("\n") # ==================================================================== # ========================= Actual pinmuxing ========================#