From 7cf217339e67345f1ba630c3d760e4f6751b5efc Mon Sep 17 00:00:00 2001 From: rishucoding Date: Tue, 17 Jul 2018 11:20:49 +0530 Subject: [PATCH] added comments in mux.bsv --- src/bsv/bsv_lib/mux.bsv | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bsv/bsv_lib/mux.bsv b/src/bsv/bsv_lib/mux.bsv index 0be0742..e892d5b 100644 --- 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 + //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}; -- 2.30.2