Skip to content

Commit

Permalink
[hardware] Fix vcpop/vfirst
Browse files Browse the repository at this point in the history
  • Loading branch information
mp-17 committed Nov 15, 2024
1 parent d24493d commit a7bfa7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hardware/src/masku/masku.sv
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ module masku import ara_pkg::*; import rvv_pkg::*; #(
end
// VCPOP, VFIRST: mask the current slice and feed the popc or lzc unit
[VCPOP:VFIRST] : begin
vcpop_operand = (!vinsn_issue.vm) ? masku_operand_vd_seq & masku_operand_m_seq : masku_operand_vd_seq;
vcpop_operand = (!vinsn_issue.vm) ? masku_operand_alu_seq & masku_operand_m_seq : masku_operand_alu_seq;
end
default:;
endcase
Expand Down Expand Up @@ -1123,7 +1123,7 @@ module masku import ara_pkg::*; import rvv_pkg::*; #(
// Clear the iteration counter
iteration_cnt_clr = 1'b1;

if(&result_final_gnt_d) begin
if(&result_final_gnt_d || vd_scalar(vinsn_commit.op)) begin
// Mark the vector instruction as being done
pe_resp.vinsn_done[vinsn_commit.id] = 1'b1;

Expand Down

0 comments on commit a7bfa7f

Please sign in to comment.