reformat header
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 24 Jul 2018 08:08:01 +0000 (09:08 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 24 Jul 2018 08:08:01 +0000 (09:08 +0100)
src/peripherals/spi/spi.bsv

index 6c3c13f9a0417d29f9eb2c32fdd8c66e3a9b73d6..8dd0dc22457bee8c729ebb9e5f001e7fbed54f82 100644 (file)
@@ -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;