use auto-generated wiredefs
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 22 Mar 2018 07:05:53 +0000 (07:05 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 22 Mar 2018 07:05:53 +0000 (07:05 +0000)
src/pinmux_generator.py

index 3d05526184dbbab9a9d1db253ee6dcd28280df73..d656326030a99e1c0755ee82481e03a8b2ef9482 100644 (file)
@@ -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 ========================#