From: Luke Kenneth Casson Leighton Date: Wed, 21 Mar 2018 13:29:38 +0000 (+0000) Subject: partial conversion to use ifacedef X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=283cb596dcce04b3ff23164f85abb31be7b05764;p=pinmux.git partial conversion to use ifacedef --- 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") # ======================================================================