From: Luke Kenneth Casson Leighton Date: Tue, 24 Jul 2018 04:15:13 +0000 (+0100) Subject: convert qspi to get/put X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0e9d509fbfc1b0f0fd0299601bc3012bb1dae3a1;p=shakti-peripherals.git convert qspi to get/put --- diff --git a/src/peripherals/qspi/qspi.bsv b/src/peripherals/qspi/qspi.bsv index ae4aa36..a63940f 100644 --- a/src/peripherals/qspi/qspi.bsv +++ b/src/peripherals/qspi/qspi.bsv @@ -47,7 +47,7 @@ package qspi; /*(* always_ready, result="clk_o" *) */ interface Get#(Bit#(1)) clk_o; /*(* always_ready, result="io_o" *) */ - interface Get#(Bit#(4)) io_o; + interface Get#(Bit#(4)) io_out; /*(* always_ready, result="io0_sdio_ctrl" *) */ method Bit#(9) io0_sdio_ctrl; /*(* always_ready, result="io1_sdio_ctrl" *) */ @@ -57,10 +57,10 @@ package qspi; /*(* always_ready, result="io3_sdio_ctrl" *) */ method Bit#(9) io3_sdio_ctrl; /*(* always_ready, result="io_enable" *)*/ - interface Get#(Bit#(4)) io_enable; + interface Get#(Bit#(4)) io_outen; /*(* always_ready, always_enabled *) */ //method Action io_i ((* port="io_i" *) Bit#(4) io_in); // in - interface Put#(Bit#(4)) io_i; + interface Put#(Bit#(4)) io_in; /*(* always_ready, result="ncs_o" *) */ interface Get#(Bit#(1)) ncs_o; endinterface @@ -1309,12 +1309,12 @@ package qspi; return delay_ncs==1?dcr_ckmode:rg_clk; endmethod endinterface; - interface io_o = interface Get + interface io_out = interface Get method ActionValue#(Bit#(4)) get; return rg_output; endmethod endinterface; - interface io_enable = interface Get + interface io_out_en = interface Get method ActionValue#(Bit#(4)) get; return rg_output_en; endmethod