From 3245a19eb3496d483f2054aeeac5a2974d15ffb1 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 24 Jun 2018 15:36:34 +0100 Subject: [PATCH] change ioN_cell to methods, stop using GenericIOType --- src/test_bsv/pinmux.bsv | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/test_bsv/pinmux.bsv b/src/test_bsv/pinmux.bsv index 2fea0b5..fb0e9d7 100644 --- a/src/test_bsv/pinmux.bsv +++ b/src/test_bsv/pinmux.bsv @@ -40,15 +40,18 @@ package pinmux; // Each IO cell will have 8 input field (output from pin mux // and on output field (input to pinmux) // interface declaration between IO-0 and pinmux - (*always_ready*) method GenericIOType io0_cell; + (*always_ready,always_enabled*) method Bit#(1) io0_cell_outen; + (*always_ready,always_enabled*) method Bit#(1) io0_cell_out; (*always_ready,always_enabled,result="io"*) method Action io0_inputval (Bit#(1) in); // interface declaration between IO-1 and pinmux - (*always_ready*) method GenericIOType io1_cell; + (*always_ready,always_enabled*) method Bit#(1) io1_cell_outen; + (*always_ready,always_enabled*) method Bit#(1) io1_cell_out; (*always_ready,always_enabled,result="io"*) method Action io1_inputval (Bit#(1) in); // interface declaration between IO-2 and pinmux - (*always_ready*) method GenericIOType io2_cell; + (*always_ready,always_enabled*) method Bit#(1) io2_cell_outen; + (*always_ready,always_enabled*) method Bit#(1) io2_cell_out; (*always_ready,always_enabled,result="io"*) method Action io2_inputval (Bit#(1) in); // interface declaration between UART-0 and pinmux @@ -265,17 +268,20 @@ package pinmux; endinterface; interface peripheral_side = interface PeripheralSide - method io0_cell=cell0_mux_out; + method io0_cell_out=cell0_mux_out; + method io0_cell_outen=cell0_mux_outen; method Action io0_inputval(Bit#(1) in); cell0_mux_in<=in; endmethod - method io1_cell=cell1_mux_out; + method io1_cell_out=cell1_mux_out; + method io1_cell_outen=cell1_mux_outen; method Action io1_inputval(Bit#(1) in); cell1_mux_in<=in; endmethod - method io2_cell=cell2_mux_out; + method io2_cell_out=cell2_mux_out; + method io2_cell_outen=cell2_mux_outen; method Action io2_inputval(Bit#(1) in); cell2_mux_in<=in; endmethod -- 2.30.2