From f91679ac65fb4552d3110f14dffd84e066c99fef Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 24 Jul 2018 09:31:05 +0100 Subject: [PATCH] still getting compile errors --- src/peripherals/spi/spi.bsv | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/peripherals/spi/spi.bsv b/src/peripherals/spi/spi.bsv index 03f78d8..2f639d6 100644 --- a/src/peripherals/spi/spi.bsv +++ b/src/peripherals/spi/spi.bsv @@ -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; -- 2.30.2