added comments in mux.bsv
authorrishucoding <rishucoding@gmail.com>
Tue, 17 Jul 2018 05:50:49 +0000 (11:20 +0530)
committerrishucoding <rishucoding@gmail.com>
Tue, 17 Jul 2018 05:50:49 +0000 (11:20 +0530)
src/bsv/bsv_lib/mux.bsv

index 0be0742675e8896656bdee59c101f00422e8c9b1..e892d5b5743c0d6d49db38cc552b3d2b3c36b952 100644 (file)
@@ -42,6 +42,7 @@ package mux;
     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};
@@ -59,6 +60,8 @@ package mux;
                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};