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:
c4efa63
)
reformat header
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Tue, 24 Jul 2018 08:08:01 +0000
(09:08 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Tue, 24 Jul 2018 08:08:01 +0000
(09:08 +0100)
src/peripherals/spi/spi.bsv
patch
|
blob
|
history
diff --git
a/src/peripherals/spi/spi.bsv
b/src/peripherals/spi/spi.bsv
index 6c3c13f9a0417d29f9eb2c32fdd8c66e3a9b73d6..8dd0dc22457bee8c729ebb9e5f001e7fbed54f82 100644
(file)
--- a/
src/peripherals/spi/spi.bsv
+++ b/
src/peripherals/spi/spi.bsv
@@
-79,7
+79,11
@@
package spi;
endinterface;
interface io_in = interface Put
method Action put(Bit#(2) in);
- Bit(#4) temp = { 0, 0, in[1], in[0] };
+ Bit(#4) temp;
+ temp[3] = 0;
+ temp[2] = 0;
+ temp[1] = in[1];
+ temp[0] = in[0];
qspi.out.io_in(temp);
endmethod
endinterface;