projects
/
pinmux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3ff4276
)
added comments in mux.bsv
author
rishucoding
<rishucoding@gmail.com>
Tue, 17 Jul 2018 05:50:49 +0000
(11:20 +0530)
committer
rishucoding
<rishucoding@gmail.com>
Tue, 17 Jul 2018 05:50:49 +0000
(11:20 +0530)
src/bsv/bsv_lib/mux.bsv
patch
|
blob
|
history
diff --git
a/src/bsv/bsv_lib/mux.bsv
b/src/bsv/bsv_lib/mux.bsv
index 0be0742675e8896656bdee59c101f00422e8c9b1..e892d5b5743c0d6d49db38cc552b3d2b3c36b952 100644
(file)
--- a/
src/bsv/bsv_lib/mux.bsv
+++ b/
src/bsv/bsv_lib/mux.bsv
@@
-42,6
+42,7
@@
package mux;
let ionum=valueOf(ionum_);
rule rl_wr_respond;
// Get the wr request
let ionum=valueOf(ionum_);
rule rl_wr_respond;
// Get the wr request
+ //aw is write address, w is write data
let aw <- pop_o (s_xactor.o_wr_addr);
let w <- pop_o (s_xactor.o_wr_data);
let b = AXI4_Lite_Wr_Resp {bresp: AXI4_LITE_OKAY, buser: aw.awuser};
let aw <- pop_o (s_xactor.o_wr_addr);
let w <- pop_o (s_xactor.o_wr_data);
let b = AXI4_Lite_Wr_Resp {bresp: AXI4_LITE_OKAY, buser: aw.awuser};
@@
-59,6
+60,8
@@
package mux;
endrule
rule rl_rd_respond;
endrule
rule rl_rd_respond;
+ // Get the read request
+ //ar is read address, r is read data
let ar<- pop_o(s_xactor.o_rd_addr);
Bit#(32) temp=0;
AXI4_Lite_Rd_Data#(`DATA,`USERSPACE) r = AXI4_Lite_Rd_Data {rresp: AXI4_LITE_OKAY, rdata: ?, ruser: 0};
let ar<- pop_o(s_xactor.o_rd_addr);
Bit#(32) temp=0;
AXI4_Lite_Rd_Data#(`DATA,`USERSPACE) r = AXI4_Lite_Rd_Data {rresp: AXI4_LITE_OKAY, rdata: ?, ruser: 0};