partial conversion to use ifacedef
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 21 Mar 2018 13:29:38 +0000 (13:29 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 21 Mar 2018 13:29:38 +0000 (13:29 +0000)
src/interface_decl.py
src/pinmux_generator.py

index 2dd0a6cd25928a2cfaf9098f3c6091e617899091..92d0b9aa2d994f9f903027d0c9c0c0e1aa8868e4 100644 (file)
@@ -91,7 +91,7 @@ class Interface(object):
         return name
 
     def ifacefmtoutfn(self, name):
-        return name
+        return "wr%s" % name
 
     def ifacefmtinfn(self, name):
         return "wr%s" % name
index b496d229b16e0f13c399f39f7ac86a4a2e16ca68..5ca1ba8120740fe32156f6c497444ab5e0106076 100644 (file)
@@ -222,7 +222,7 @@ with open("./bsv_src/pinmux.bsv", "w") as bsv_file:
     for i in range(0, N_JTAG):
         bsv_file.write(jtaginterface_def.format(i))
     for i in range(0, N_PWM):
-        bsv_file.write(pwminterface_def.format(i))
+        bsv_file.write(pwminterface_decl.ifacedef(i))
     bsv_file.write(footer)
     print("BSV file successfully generated: bsv_src/pinmux.bsv")
     # ======================================================================