Skip to content

Commit

Permalink
hw/ip/spatz: check en signal before resetting accumulator
Browse files Browse the repository at this point in the history
  • Loading branch information
Navaneeth-KunhiPurayil committed Oct 30, 2024
1 parent adc027b commit 1bf31f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/ip/spatz/src/spatz_mxu.sv
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ module spatz_mxu
// Enable a read if we need an operand
// If the accumulators are to be used i.e. load_vd=1'b0 then also check that the accumulators have a valid result
mx_read_enable[1:0] = (load_vd | (~load_vd & accu_result_valid_q[part_col])) ? {2{part_col == 0 || part_col == 4}} : 2'b0;
if ((~load_vd & accu_result_valid_q[part_col]))
if ((~load_vd & accu_result_valid_q[part_col] & ipu_en))
accu_result_valid_d[part_col] = 1'b0;
mx_read_enable[2] = load_vd;
end
Expand Down

0 comments on commit 1bf31f9

Please sign in to comment.