Skip to content

Commit

Permalink
Merge pull request #2420 from ThalesSiliconSecurity/AXI_Agent/Corr
Browse files Browse the repository at this point in the history
Fix the AXI agent bug
  • Loading branch information
JeanRochCoulon committed May 2, 2024
2 parents c98a211 + a0a3ffd commit 2c55632
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ function void uvma_axi_amo_synchronizer_c::add_w_trs(uvma_axi_base_seq_item_c ax
w_trs_class.push_back(axi_item.aw_id);

if(w_trs_item_bp.size() > 0) begin

do begin

w_trs_queue[axi_item.aw_id][i].mon_req.w_valid = w_trs_item_bp[0].w_valid;
Expand All @@ -200,11 +201,12 @@ function void uvma_axi_amo_synchronizer_c::add_w_trs(uvma_axi_base_seq_item_c ax
w_trs_id[w_trs_queue[axi_item.aw_id][i-1].mon_req.aw_id].push_back(axi_item.write_trs_id);
w_trs_class.delete(0);
end

end
end

if(axi_item.w_valid && axi_item.w_ready) begin
if(w_trs_queue.size() > 0 && w_trs_queue[w_trs_class[0]].size() > 0) begin
if(w_trs_queue.size() > 0 && w_trs_queue[w_trs_class[0]].size() > 0 && w_trs_queue[w_trs_class[0]][$].mon_req.w_trs_status == ADDR_DATA_NOT_COMPLETE) begin
`uvm_info( "Core Test", $sformatf("NEW W_TRS"), UVM_HIGH)
foreach(w_trs_queue[w_trs_class[0]][i]) begin

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ function void uvma_axi_synchronizer_c::add_w_trs(uvma_axi_base_seq_item_c axi_it
end

if(axi_item.w_valid && axi_item.w_ready) begin
if(w_trs_queue.size() > 0 && w_trs_queue[w_trs_class[0]].size() > 0) begin
if(w_trs_queue.size() > 0 && w_trs_queue[w_trs_class[0]].size() > 0 && w_trs_queue[w_trs_class[0]][$].mon_req.w_trs_status == ADDR_DATA_NOT_COMPLETE) begin

`uvm_info( "Core Test", $sformatf("NEW W_TRS"), UVM_HIGH)
foreach(w_trs_queue[w_trs_class[0]][i]) begin
Expand Down

0 comments on commit 2c55632

Please sign in to comment.