From ae528bde689b16a5c078dc85dd6a12c9dfbc83d8 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 22 Jul 2018 10:00:22 +0100 Subject: [PATCH] rename template to slowt --- src/bsv/pinmux_generator.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bsv/pinmux_generator.py b/src/bsv/pinmux_generator.py index b221365..3a3fe25 100644 --- a/src/bsv/pinmux_generator.py +++ b/src/bsv/pinmux_generator.py @@ -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)) -- 2.30.2