projects
/
shakti-peripherals.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca3665c
)
reformat header
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Tue, 24 Jul 2018 08:17:44 +0000
(09:17 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Tue, 24 Jul 2018 08:17:44 +0000
(09:17 +0100)
src/peripherals/spi/spi.bsv
patch
|
blob
|
history
diff --git
a/src/peripherals/spi/spi.bsv
b/src/peripherals/spi/spi.bsv
index 850cdba5a166fb7705d0c75c1c84e3f8c0ea0cdc..f427e28c5f62415b539eeb6c65cb6d05a3c91d48 100644
(file)
--- 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