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

index dbbd023d78fbab54349de4b8332b0b8c02f9f2b6..03f78d8b6e1748d8e7e331d1fd6bfaeed067db15 100644 (file)
@@ -72,17 +72,21 @@ package spi;
        endmethod
       interface io_out = interface Get
         method ActionValue#(Bit#(2)) get;
+            Bit#(4) temp2;
             Bit#(2) temp;
-            temp[1] = qspi.out.io_out.get[1];
-            temp[0] = qspi.out.io_out.get[0];
+            qspi.out.io_out.get(temp2);
+            temp[0] = temp2[0];
+            temp[1] = temp2[1];
             return temp;
         endmethod
       endinterface;
       interface io_out_en = interface Get
         method ActionValue#(Bit#(2)) get;
+            Bit#(4) temp2;
             Bit#(2) temp;
-            temp[1] = qspi.out.io_out_en.get[1];
-            temp[0] = qspi.out.io_out_en.get[0];
+            qspi.out.io_out_en.get(temp2);
+            temp[0] = temp2[0];
+            temp[1] = temp2[1];
             return temp;
         endmethod
       endinterface;