X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fperipherals%2Fspi%2Fspi.bsv;h=8dd0dc22457bee8c729ebb9e5f001e7fbed54f82;hb=9d61afe002fd89e99df51bec424561e1dc9c6324;hp=6c3c13f9a0417d29f9eb2c32fdd8c66e3a9b73d6;hpb=c4efa63c0a1cf95a7d470457caf254f0e6e3e7e9;p=shakti-peripherals.git diff --git a/src/peripherals/spi/spi.bsv b/src/peripherals/spi/spi.bsv index 6c3c13f..8dd0dc2 100644 --- a/src/peripherals/spi/spi.bsv +++ b/src/peripherals/spi/spi.bsv @@ -79,7 +79,11 @@ package spi; endinterface; interface io_in = interface Put method Action put(Bit#(2) in); - Bit(#4) temp = { 0, 0, in[1], in[0] }; + Bit(#4) temp; + temp[3] = 0; + temp[2] = 0; + temp[1] = in[1]; + temp[0] = in[0]; qspi.out.io_in(temp); endmethod endinterface;