reformat header
[shakti-peripherals.git] / src / peripherals / spi / spi.bsv
index f427e28c5f62415b539eeb6c65cb6d05a3c91d48..dbbd023d78fbab54349de4b8332b0b8c02f9f2b6 100644 (file)
@@ -73,16 +73,16 @@ package spi;
       interface io_out = interface Get
         method ActionValue#(Bit#(2)) get;
             Bit#(2) temp;
-            temp[1] = qspi.out.io_out[1];
-            temp[0] = qspi.out.io_out[0];
+            temp[1] = qspi.out.io_out.get[1];
+            temp[0] = qspi.out.io_out.get[0];
             return temp;
         endmethod
       endinterface;
       interface io_out_en = interface Get
         method ActionValue#(Bit#(2)) get;
             Bit#(2) temp;
-            temp[1] = qspi.out.io_out_en[1];
-            temp[0] = qspi.out.io_out_en[0];
+            temp[1] = qspi.out.io_out_en.get[1];
+            temp[0] = qspi.out.io_out_en.get[0];
             return temp;
         endmethod
       endinterface;
@@ -93,11 +93,11 @@ package spi;
             temp[2] = 0;
             temp[1] = in[1];
             temp[0] = in[0];
-            qspi.out.io_in(temp);
+            qspi.out.io_in.put(temp);
         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;