no longer use *interface_def, spi and jtag remove Bit#(1), is this ok?
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 22 Mar 2018 05:11:25 +0000 (05:11 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 22 Mar 2018 05:11:25 +0000 (05:11 +0000)
src/pinmux_generator.py

index eeb0c06bb4726c0e553856d94a21541610dff4f8..3d05526184dbbab9a9d1db253ee6dcd28280df73 100644 (file)
@@ -214,13 +214,13 @@ with open("./bsv_src/pinmux.bsv", "w") as bsv_file:
     for i in range(0, N_UART):
         bsv_file.write(uartinterface_decl.ifacedef(i))
     for i in range(0, N_SPI):
-        bsv_file.write(spiinterface_def.format(i))
+        bsv_file.write(spiinterface_decl.ifacedef(i))
     for i in range(0, N_TWI):
         bsv_file.write(twiinterface_decl.ifacedef(i))
     for i in range(0, N_SD):
         bsv_file.write(sdinterface_decl.ifacedef(i))
     for i in range(0, N_JTAG):
-        bsv_file.write(jtaginterface_def.format(i))
+        bsv_file.write(jtaginterface_decl.ifacedef(i))
     for i in range(0, N_PWM):
         bsv_file.write(pwminterface_decl.ifacedef(i))
     bsv_file.write(footer)