X-Git-Url: https://git.libre-soc.org/?p=shakti-peripherals.git;a=blobdiff_plain;f=src%2Fperipherals%2Fspi%2Fspi.bsv;h=f427e28c5f62415b539eeb6c65cb6d05a3c91d48;hp=850cdba5a166fb7705d0c75c1c84e3f8c0ea0cdc;hb=11a667017572d577c18e1b595f41510efa600353;hpb=ca3665c63945f71e1a7d464a376fc451ddfb1526 diff --git a/src/peripherals/spi/spi.bsv b/src/peripherals/spi/spi.bsv index 850cdba..f427e28 100644 --- a/src/peripherals/spi/spi.bsv +++ b/src/peripherals/spi/spi.bsv @@ -72,12 +72,18 @@ package spi; endmethod interface io_out = interface Get method ActionValue#(Bit#(2)) get; - return qspi.out.io_out[1:0]; + Bit#(2) temp; + temp[1] = qspi.out.io_out[1]; + temp[0] = qspi.out.io_out[0]; + return temp; endmethod endinterface; interface io_out_en = interface Get method ActionValue#(Bit#(2)) get; - return qspi.out.io_out_en[1:0]; + Bit#(2) temp; + temp[1] = qspi.out.io_out_en[1]; + temp[0] = qspi.out.io_out_en[0]; + return temp; endmethod endinterface; interface io_in = interface Put