From 11a667017572d577c18e1b595f41510efa600353 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 24 Jul 2018 09:17:44 +0100 Subject: [PATCH] reformat header --- src/peripherals/spi/spi.bsv | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/peripherals/spi/spi.bsv b/src/peripherals/spi/spi.bsv index 850cdba..f427e28 100644 --- a/src/peripherals/spi/spi.bsv +++ b/src/peripherals/spi/spi.bsv @@ -72,12 +72,18 @@ package spi; endmethod interface io_out = interface Get method ActionValue#(Bit#(2)) get; - return qspi.out.io_out[1:0]; + Bit#(2) temp; + temp[1] = qspi.out.io_out[1]; + temp[0] = qspi.out.io_out[0]; + return temp; endmethod endinterface; interface io_out_en = interface Get method ActionValue#(Bit#(2)) get; - return qspi.out.io_out_en[1:0]; + Bit#(2) temp; + temp[1] = qspi.out.io_out_en[1]; + temp[0] = qspi.out.io_out_en[0]; + return temp; endmethod endinterface; interface io_in = interface Put -- 2.30.2