rename template to slowt
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 22 Jul 2018 09:00:22 +0000 (10:00 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 22 Jul 2018 09:00:22 +0000 (10:00 +0100)
src/bsv/pinmux_generator.py

index b221365871981953e3d61e436b6ab18ff46cac1b..3a3fe251e045d0226d43b8541e8f54f88ae0ca45 100644 (file)
@@ -92,12 +92,12 @@ def pinmuxgen(pth=None, verify=True):
     write_slow(slow, slowt, p, ifaces, iocells)
 
 
-def write_slow(slow, template, p, ifaces, iocells):
+def write_slow(slow, slowt, p, ifaces, iocells):
     """ write out the slow_peripherals.bsv file.
         joins all the peripherals together into one AXI Lite interface
     """
-    with open(template) as bsv_file:
-        template = bsv_file.read()
+    with open(slowt) as bsv_file:
+        slowt = bsv_file.read()
     imports = ifaces.slowimport()
     ifdecl = ifaces.slowifdeclmux()
     regdef = ifaces.axi_reg_def()
@@ -113,7 +113,7 @@ def write_slow(slow, template, p, ifaces, iocells):
     ifacedef = ifaces.mk_ext_ifacedef()
     ifacedef = ifaces.mk_ext_ifacedef()
     with open(slow, "w") as bsv_file:
-        bsv_file.write(template.format(imports, ifdecl, regdef, slavedecl,
+        bsv_file.write(slowt.format(imports, ifdecl, regdef, slavedecl,
                                        fnaddrmap, mkslow, mkcon, mkcellcon,
                                        pincon, inst, mkplic,
                                        numsloirqs, ifacedef))