From 8786435aba803a3892d77c246ef74338b3c0ca36 Mon Sep 17 00:00:00 2001 From: Neel Date: Sat, 21 Jul 2018 11:49:57 +0530 Subject: [PATCH] fix naming --- src/bsv/bsv_lib/slow_peripherals_template.bsv | 2 +- src/bsv/peripheral_gen.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bsv/bsv_lib/slow_peripherals_template.bsv b/src/bsv/bsv_lib/slow_peripherals_template.bsv index 5964471..7a175fd 100644 --- a/src/bsv/bsv_lib/slow_peripherals_template.bsv +++ b/src/bsv/bsv_lib/slow_peripherals_template.bsv @@ -366,7 +366,7 @@ package slow_peripherals; endinterface // NEEL EDIT interface iocell_side=pinmux.iocell_side; - interface pad_configa= gpioa.pad_config; + interface pad_config0= gpioa.pad_config; method Action external_int(Bit#(32) in); wr_interrupt<= in; endmethod diff --git a/src/bsv/peripheral_gen.py b/src/bsv/peripheral_gen.py index c31e081..bd479ea 100644 --- a/src/bsv/peripheral_gen.py +++ b/src/bsv/peripheral_gen.py @@ -84,7 +84,8 @@ class PBase(object): ret.append( " rule con_%s%d_%s_in;" % (name, count, pname)) - ret.append(" {1}.{2}({0});".format(ps_, n, fname)) + n_ = "{0}{1}".format(n, count) + ret.append(" {1}.{2}({0});".format(ps_, n_, fname)) ret.append(" endrule") return '\n'.join(ret) -- 2.30.2