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 553f8753125246b6658a0309629140555b6113bc..03f78d8b6e1748d8e7e331d1fd6bfaeed067db15 100644
(file)
--- a/
src/peripherals/spi/spi.bsv
+++ b/
src/peripherals/spi/spi.bsv
@@
-72,17
+72,21
@@
package spi;
endmethod
interface io_out = interface Get
method ActionValue#(Bit#(2)) get;
endmethod
interface io_out = interface Get
method ActionValue#(Bit#(2)) get;
+ Bit#(4) temp2;
Bit#(2) temp;
Bit#(2) temp;
- temp[1] = qspi.out.io_out.get[1];
- temp[0] = qspi.out.io_out.get[0];
+ qspi.out.io_out.get(temp2);
+ temp[0] = temp2[0];
+ temp[1] = temp2[1];
return temp;
endmethod
endinterface;
interface io_out_en = interface Get
method ActionValue#(Bit#(2)) get;
return temp;
endmethod
endinterface;
interface io_out_en = interface Get
method ActionValue#(Bit#(2)) get;
+ Bit#(4) temp2;
Bit#(2) temp;
Bit#(2) temp;
- temp[1] = qspi.out.io_out_en.get[1];
- temp[0] = qspi.out.io_out_en.get[0];
+ qspi.out.io_out_en.get(temp2);
+ temp[0] = temp2[0];
+ temp[1] = temp2[1];
return temp;
endmethod
endinterface;
return temp;
endmethod
endinterface;
@@
-97,7
+101,7
@@
package spi;
endmethod
endinterface;
interface clk_o = qspi.out.clk_o;
endmethod
endinterface;
interface clk_o = qspi.out.clk_o;
- interface ncs_o = qspi.ncs_o;
+ interface ncs_o = qspi.
out.
ncs_o;
endinterface;
interface slave = qspi.slave;
endinterface;
interface slave = qspi.slave;