X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fperipherals%2Fspi%2Fspi.bsv;h=a66989e0797b1e8d1375aed5d7a42652e542daf8;hb=bb724f1b0c41c7d30467e18b6080186dfe61550c;hp=dbbd023d78fbab54349de4b8332b0b8c02f9f2b6;hpb=969fd998f9317eead3915022a6b430188364d32f;p=shakti-peripherals.git diff --git a/src/peripherals/spi/spi.bsv b/src/peripherals/spi/spi.bsv index dbbd023..a66989e 100644 --- a/src/peripherals/spi/spi.bsv +++ b/src/peripherals/spi/spi.bsv @@ -72,17 +72,19 @@ package spi; endmethod interface io_out = interface Get method ActionValue#(Bit#(2)) get; + let temp2 <- qspi.out.io_out.get; Bit#(2) temp; - temp[1] = qspi.out.io_out.get[1]; - temp[0] = qspi.out.io_out.get[0]; + temp[0] = temp2[0]; + temp[1] = temp2[1]; return temp; endmethod endinterface; interface io_out_en = interface Get method ActionValue#(Bit#(2)) get; + let temp2 <- qspi.out.io_out_en.get; Bit#(2) temp; - temp[1] = qspi.out.io_out_en.get[1]; - temp[0] = qspi.out.io_out_en.get[0]; + temp[0] = temp2[0]; + temp[1] = temp2[1]; return temp; endmethod endinterface;