Skip to content

Commit

Permalink
[hardware] Fix mask logical
Browse files Browse the repository at this point in the history
  • Loading branch information
mp-17 committed Nov 15, 2024
1 parent dc064e5 commit cc60372
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hardware/src/masku/masku.sv
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ module masku import ara_pkg::*; import rvv_pkg::*; #(
logic found_one, found_one_d, found_one_q;

// How many elements we are processing per cycle
logic [idx_width(NrLanes*DataWidth)-1:0] delta_elm_d, delta_elm_q;
logic [idx_width(NrLanes*DataWidth):0] delta_elm_d, delta_elm_q;

// MASKU Alu: is a VRF word result or a scalar result fully valid?
logic out_vrf_word_valid, out_scalar_valid;
Expand Down Expand Up @@ -589,6 +589,7 @@ module masku import ara_pkg::*; import rvv_pkg::*; #(
// Mask logical: pass through the result already computed in the ALU
// This operation is never masked
// This operation always writes to multiple of VRF words, and it does not need vd
// This operation can overwrite the destination register without constraints on tail elements
[VMANDNOT:VMXNOR]: alu_result_vm_m = masku_operand_alu_seq;
// Comparisons: mask out the masked out bits of this pre-computed slice
[VMFEQ:VMSGT]: alu_result = alu_result_compressed
Expand Down Expand Up @@ -694,7 +695,7 @@ module masku import ara_pkg::*; import rvv_pkg::*; #(
end

// alu_result propagation mux
if (vinsn_issue.op inside {[VMSBF:VID]})
if (vinsn_issue.op inside {[VMSBF:VMXNOR]})
alu_result = alu_result_vm_shuf;

/////////////////
Expand Down

0 comments on commit cc60372

Please sign in to comment.