diff --git a/common/sv/x_monitor.sv b/common/sv/x_monitor.sv index f4711cd7..43051cea 100644 --- a/common/sv/x_monitor.sv +++ b/common/sv/x_monitor.sv @@ -155,6 +155,8 @@ package x_monitor_pkg; // analysis port from the monitor xil_analysis_port #(axi4stream_monitor_transaction) axis_ap; + T agent; + // int transfer_size; // int all_transfer_size; @@ -170,8 +172,10 @@ package x_monitor_pkg; this.tx_sink_type = CYCLIC; // this.transfer_size = 0; // this.all_transfer_size = 0; + + this.agent = agent; - this.axis_ap = agent.monitor.item_collected_port; + this.axis_ap = this.agent.monitor.item_collected_port; endfunction /* new */ @@ -199,6 +203,7 @@ package x_monitor_pkg; axi4stream_transaction transaction; xil_axi4stream_data_beat data_beat; + xil_axi4stream_strb_beat keep_beat; int num_bytes; logic [7:0] axi_byte; @@ -209,9 +214,11 @@ package x_monitor_pkg; // all bytes from a beat are valid num_bytes = transaction.get_data_width()/8; data_beat = transaction.get_data_beat(); + keep_beat = transaction.get_keep_beat(); for (int j=0; j