From 41ec08e8f9187474538532215ff46f80160e2cfc Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 24 Jul 2018 09:26:08 +0100 Subject: [PATCH] reformat header --- src/peripherals/spi/spi.bsv | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/peripherals/spi/spi.bsv b/src/peripherals/spi/spi.bsv index dbbd023..03f78d8 100644 --- a/src/peripherals/spi/spi.bsv +++ b/src/peripherals/spi/spi.bsv @@ -72,17 +72,21 @@ package spi; endmethod interface io_out = interface Get method ActionValue#(Bit#(2)) get; + Bit#(4) temp2; Bit#(2) temp; - temp[1] = qspi.out.io_out.get[1]; - temp[0] = qspi.out.io_out.get[0]; + qspi.out.io_out.get(temp2); + temp[0] = temp2[0]; + temp[1] = temp2[1]; return temp; endmethod endinterface; interface io_out_en = interface Get method ActionValue#(Bit#(2)) get; + Bit#(4) temp2; Bit#(2) temp; - temp[1] = qspi.out.io_out_en.get[1]; - temp[0] = qspi.out.io_out_en.get[0]; + qspi.out.io_out_en.get(temp2); + temp[0] = temp2[0]; + temp[1] = temp2[1]; return temp; endmethod endinterface; -- 2.30.2