From 87591e68cee8f5d3d0370a55ab298639b375ea74 Mon Sep 17 00:00:00 2001 From: Neel Date: Tue, 24 Jul 2018 13:58:02 +0530 Subject: [PATCH] using get put interfaces for accessing --- src/peripherals/spi/spi.bsv | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/peripherals/spi/spi.bsv b/src/peripherals/spi/spi.bsv index f427e28..553f875 100644 --- a/src/peripherals/spi/spi.bsv +++ b/src/peripherals/spi/spi.bsv @@ -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,7 +93,7 @@ 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; -- 2.30.2