typo
[shakti-peripherals.git] / src / peripherals / spi / spi.bsv
index 553f8753125246b6658a0309629140555b6113bc..56a0965a520d7aef98b182ec2cbee56e7e24846a 100644 (file)
@@ -72,17 +72,19 @@ package spi;
        endmethod
       interface io_out = interface Get
         method ActionValue#(Bit#(2)) get;
+            let temp2 <- qspi.out.io_out.get;
             Bit#(2) temp;
-            temp[1] = qspi.out.io_out.get[1];
-            temp[0] = qspi.out.io_out.get[0];
+            temp[0] = temp2[0];
+            temp[1] = temp2[1];
             return temp;
         endmethod
       endinterface;
       interface io_out_en = interface Get
         method ActionValue#(Bit#(2)) get;
+            let temp2 <- qspi.out.io_out_en.get;
             Bit#(2) temp;
-            temp[1] = qspi.out.io_out_en.get[1];
-            temp[0] = qspi.out.io_out_en.get[0];
+            temp[0] = temp2[0];
+            temp[1] = temp2[1];
             return temp;
         endmethod
       endinterface;
@@ -97,14 +99,14 @@ package spi;
         endmethod
       endinterface;
       interface clk_o = qspi.out.clk_o;
-      interface ncs_o = qspi.ncs_o;
+      interface ncs_o = qspi.out.ncs_o;
     endinterface;
 
     interface slave = qspi.slave;
 
   // 0=TOF, 1=SMF, 2=Threshold, 3=TCF, 4=TEF 5=request_ready
        method Bit#(6) interrupts;
-               return qspi.interripts;
+               return qspi.interrupts;
        endmethod
 
   endmodule