From: Luke Kenneth Casson Leighton Date: Tue, 24 Jul 2018 08:17:44 +0000 (+0100) Subject: reformat header X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=11a667017572d577c18e1b595f41510efa600353;p=shakti-peripherals.git reformat header --- 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