From 283cb596dcce04b3ff23164f85abb31be7b05764 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 21 Mar 2018 13:29:38 +0000 Subject: [PATCH] partial conversion to use ifacedef --- src/interface_decl.py | 2 +- src/pinmux_generator.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/interface_decl.py b/src/interface_decl.py index 2dd0a6c..92d0b9a 100644 --- a/src/interface_decl.py +++ b/src/interface_decl.py @@ -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 diff --git a/src/pinmux_generator.py b/src/pinmux_generator.py index b496d22..5ca1ba8 100644 --- a/src/pinmux_generator.py +++ b/src/pinmux_generator.py @@ -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") # ====================================================================== -- 2.30.2