projects
/
shakti-peripherals.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reformat header
[shakti-peripherals.git]
/
src
/
peripherals
/
spi
/
spi.bsv
diff --git
a/src/peripherals/spi/spi.bsv
b/src/peripherals/spi/spi.bsv
index 6c3c13f9a0417d29f9eb2c32fdd8c66e3a9b73d6..dc40722d6b89202e5aeb1b25cb285069dd825593 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);
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;
qspi.out.io_in(temp);
endmethod
endinterface;