projects
/
shakti-peripherals.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
typo
[shakti-peripherals.git]
/
src
/
peripherals
/
spi
/
spi.bsv
diff --git
a/src/peripherals/spi/spi.bsv
b/src/peripherals/spi/spi.bsv
index 2f639d670ad117af7b8c302cc872563bb632cdfc..56a0965a520d7aef98b182ec2cbee56e7e24846a 100644
(file)
--- a/
src/peripherals/spi/spi.bsv
+++ b/
src/peripherals/spi/spi.bsv
@@
-72,7
+72,7
@@
package spi;
endmethod
interface io_out = interface Get
method ActionValue#(Bit#(2)) get;
endmethod
interface io_out = interface Get
method ActionValue#(Bit#(2)) get;
-
ActionValue#(Bit#(4)) temp2 =
qspi.out.io_out.get;
+
let temp2 <-
qspi.out.io_out.get;
Bit#(2) temp;
temp[0] = temp2[0];
temp[1] = temp2[1];
Bit#(2) temp;
temp[0] = temp2[0];
temp[1] = temp2[1];
@@
-81,7
+81,7
@@
package spi;
endinterface;
interface io_out_en = interface Get
method ActionValue#(Bit#(2)) get;
endinterface;
interface io_out_en = interface Get
method ActionValue#(Bit#(2)) get;
-
ActionValue#(Bit#(4)) temp2 =
qspi.out.io_out_en.get;
+
let temp2 <-
qspi.out.io_out_en.get;
Bit#(2) temp;
temp[0] = temp2[0];
temp[1] = temp2[1];
Bit#(2) temp;
temp[0] = temp2[0];
temp[1] = temp2[1];
@@
-106,7
+106,7
@@
package spi;
// 0=TOF, 1=SMF, 2=Threshold, 3=TCF, 4=TEF 5=request_ready
method Bit#(6) interrupts;
// 0=TOF, 1=SMF, 2=Threshold, 3=TCF, 4=TEF 5=request_ready
method Bit#(6) interrupts;
- return qspi.interr
i
pts;
+ return qspi.interr
u
pts;
endmethod
endmodule
endmethod
endmodule