From ace285b9b596fb1305c3e6820a50fc8a648df3b4 Mon Sep 17 00:00:00 2001 From: Neel Date: Sat, 21 Jul 2018 16:10:38 +0530 Subject: [PATCH] fix external interrupt, remove redundant method --- src/bsv/bsv_lib/slow_peripherals_template.bsv | 3 --- src/bsv/peripheral_gen.py | 6 +----- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/bsv/bsv_lib/slow_peripherals_template.bsv b/src/bsv/bsv_lib/slow_peripherals_template.bsv index b167d6c..1f1d1c8 100644 --- a/src/bsv/bsv_lib/slow_peripherals_template.bsv +++ b/src/bsv/bsv_lib/slow_peripherals_template.bsv @@ -360,9 +360,6 @@ package slow_peripherals; // NEEL EDIT interface iocell_side=pinmux.iocell_side; interface pad_config0= gpioa.pad_config; - method Action external_int(Bit#(`NUM_EINTS) in); - wr_interrupt<= in; - endmethod // NEEL EDIT OVER /*===================================*/ endmodule diff --git a/src/bsv/peripheral_gen.py b/src/bsv/peripheral_gen.py index 7da27a5..805db2c 100644 --- a/src/bsv/peripheral_gen.py +++ b/src/bsv/peripheral_gen.py @@ -283,10 +283,6 @@ class eint(PBase): size = len(self.peripheral.pinspecs) return " `define NUM_EINTS %d" % size - def slowifdeclmux(self): - size = len(self.peripheral.pinspecs) - return " method Action external_int(Bit#(%d) in);" % size - def mkslow_peripheral(self, size=0): size = len(self.peripheral.pinspecs) return " Wire#(Bit#(%d)) wr_interrupt <- mkWire();" % size @@ -312,7 +308,7 @@ class eint(PBase): size = len(self.peripheral.pinspecs) ret.append(eint_pincon_template.format(size)) ret.append(" rule con_%s%d_io_in;" % (name, count)) - ret.append(" wr_interrupt({") + ret.append(" wr_interrupt <= ({") for idx, p in enumerate(self.peripheral.pinspecs): pname = p['name'] sname = self.peripheral.pname(pname).format(count) -- 2.30.2