X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fperipherals%2Fspi%2Fspi.bsv;h=56a0965a520d7aef98b182ec2cbee56e7e24846a;hb=c262af4c1d675df4a95eed876f79825b585f7383;hp=553f8753125246b6658a0309629140555b6113bc;hpb=87591e68cee8f5d3d0370a55ab298639b375ea74;p=shakti-peripherals.git diff --git a/src/peripherals/spi/spi.bsv b/src/peripherals/spi/spi.bsv index 553f875..56a0965 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; @@ -97,14 +99,14 @@ package spi; endmethod endinterface; interface clk_o = qspi.out.clk_o; - interface ncs_o = qspi.ncs_o; + interface ncs_o = qspi.out.ncs_o; endinterface; interface slave = qspi.slave; // 0=TOF, 1=SMF, 2=Threshold, 3=TCF, 4=TEF 5=request_ready method Bit#(6) interrupts; - return qspi.interripts; + return qspi.interrupts; endmethod endmodule