Skip to content

Commit

Permalink
INIT read: only assign buffer_in_valid_o if datapath req valid
Browse files Browse the repository at this point in the history
  • Loading branch information
da-gazzi authored and micprog committed Aug 6, 2024
1 parent a6b190c commit 94c141c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/idma_init_read.sv
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ module idma_init_read #(
// once valid data is applied, it can be pushed in all the selected (mask_in) buffers
// be sure the response channel is ready
assign in_valid = read_rsp_i.rsp_valid & in_ready & r_dp_ready_i;
assign buffer_in_valid_o = in_valid ? mask_in : '0;
assign buffer_in_valid_o = in_valid ? (r_dp_valid_i ? mask_in : '0 ):'0;

// r_dp_ready_o is triggered by the last element arriving from the read
assign r_dp_ready_o = r_dp_valid_i & r_dp_ready_i & read_rsp_i.rsp_valid & in_ready;
Expand Down

0 comments on commit 94c141c

Please sign in to comment.