still getting compile errors
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 24 Jul 2018 08:31:05 +0000 (09:31 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 24 Jul 2018 08:31:05 +0000 (09:31 +0100)
src/peripherals/spi/spi.bsv

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