use auto-generate on interface definitions
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 22 Mar 2018 05:07:01 +0000 (05:07 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 22 Mar 2018 05:07:01 +0000 (05:07 +0000)
src/interface_decl.py
src/pinmux_generator.py

index 50f8ce7f0b2b67ebc510f057adf94ac1dcf18b0b..01be3799dacab61b725c7adeee1fc57c017ad913 100644 (file)
@@ -105,7 +105,6 @@ class Interface(object):
 
     def ifacedef(self, *args):
         res = '\n'.join(map(self.ifacefmtpin, self.pins))
-        print res
         res = res.format(*args)
         return '\n' + res + '\n'
 
index 5ca1ba8120740fe32156f6c497444ab5e0106076..eeb0c06bb4726c0e553856d94a21541610dff4f8 100644 (file)
@@ -212,13 +212,13 @@ with open("./bsv_src/pinmux.bsv", "w") as bsv_file:
     for i in range(0, N_IO):
         bsv_file.write(io_interface.ifacedef(i))
     for i in range(0, N_UART):
-        bsv_file.write(uartinterface_def.format(i))
+        bsv_file.write(uartinterface_decl.ifacedef(i))
     for i in range(0, N_SPI):
         bsv_file.write(spiinterface_def.format(i))
     for i in range(0, N_TWI):
-        bsv_file.write(twiinterface_def.format(i))
+        bsv_file.write(twiinterface_decl.ifacedef(i))
     for i in range(0, N_SD):
-        bsv_file.write(sdinterface_def.format(i))
+        bsv_file.write(sdinterface_decl.ifacedef(i))
     for i in range(0, N_JTAG):
         bsv_file.write(jtaginterface_def.format(i))
     for i in range(0, N_PWM):