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

index 850cdba5a166fb7705d0c75c1c84e3f8c0ea0cdc..f427e28c5f62415b539eeb6c65cb6d05a3c91d48 100644 (file)
@@ -72,12 +72,18 @@ package spi;
        endmethod
       interface io_out = interface Get
         method ActionValue#(Bit#(2)) get;
-            return qspi.out.io_out[1:0];
+            Bit#(2) temp;
+            temp[1] = qspi.out.io_out[1];
+            temp[0] = qspi.out.io_out[0];
+            return temp;
         endmethod
       endinterface;
       interface io_out_en = interface Get
         method ActionValue#(Bit#(2)) get;
-            return qspi.out.io_out_en[1:0];
+            Bit#(2) temp;
+            temp[1] = qspi.out.io_out_en[1];
+            temp[0] = qspi.out.io_out_en[0];
+            return temp;
         endmethod
       endinterface;
       interface io_in = interface Put