diff --git a/CHANGELOG.md b/CHANGELOG.md index 4bace86a6..b69fe0b70 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Bump upload and delete artifact actions - Fix synthesis-unfriendly constructs - Fix vector slicing bug in operand requesters + - Fix the iteration_cnt_d update even when result_queue is full ### Added diff --git a/hardware/src/masku/masku.sv b/hardware/src/masku/masku.sv index 1ea497dc4..10e091520 100644 --- a/hardware/src/masku/masku.sv +++ b/hardware/src/masku/masku.sv @@ -358,7 +358,7 @@ module masku import ara_pkg::*; import rvv_pkg::*; #( // iteration count for masked instrctions always_comb begin - if (vinsn_issue_valid && (&masku_operand_alu_valid || &masku_operand_vs2_seq_valid)) begin + if (vinsn_issue_valid && (&masku_operand_alu_valid || &masku_operand_vs2_seq_valid) && !result_queue_full) begin iteration_count_d = iteration_count_q + 1'b1; end else begin iteration_count_d = iteration_count_q;