From: Luke Kenneth Casson Leighton Date: Tue, 24 Jul 2018 08:31:05 +0000 (+0100) Subject: still getting compile errors X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f91679ac65fb4552d3110f14dffd84e066c99fef;p=shakti-peripherals.git still getting compile errors --- 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;