Skip to content

Commit

Permalink
[hardware] vid fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
sharafat-10xEngineers committed Dec 19, 2022
1 parent b6832ec commit 3bb509b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hardware/src/masku/masku.sv
Original file line number Diff line number Diff line change
Expand Up @@ -562,25 +562,25 @@ module masku import ara_pkg::*; import rvv_pkg::*; #(
unique case (vinsn_issue.vtype.vsew)
EW8 : begin
for (int index = 1; index < (NrLanes*DataWidth)/8; index++) begin
alu_result_vm [(index*8) +: 7] = (((NrLanes * DataWidth)/8) <= vinsn_issue.vl) ? index : index-(((vinsn_issue.vl/((NrLanes * DataWidth)/8))-iteration_count_d)*32);
alu_result_vm [(index*8) +: 7] = (iteration_count_d <= 1)/*(((NrLanes * DataWidth)/8) <= vinsn_issue.vl)*/ ? index : index-(((vinsn_issue.vl/((NrLanes * DataWidth)/8))-iteration_count_d)*32);
alu_result_vm_m = alu_result_vm & mask;
end
end
EW16: begin
for (int index = 1; index < (NrLanes*DataWidth)/16; index++) begin
alu_result_vm [(index*16) +: 15] = (((NrLanes * DataWidth)/8) <= vinsn_issue.vl) ? index : index-(((vinsn_issue.vl/((NrLanes * DataWidth)/8))-iteration_count_d)*16);
alu_result_vm [(index*16) +: 15] = (iteration_count_d <= 1)/*(((NrLanes * DataWidth)/8) <= vinsn_issue.vl)*/ ? index : index-(((vinsn_issue.vl/((NrLanes * DataWidth)/8))-iteration_count_d)*16);
alu_result_vm_m = alu_result_vm & mask;
end
end
EW32: begin
for (int index = 1; index < (NrLanes*DataWidth)/32; index++) begin
alu_result_vm [(index*32) +: 31] = (((NrLanes * DataWidth)/8) <= vinsn_issue.vl) ? index : index-(((vinsn_issue.vl/((NrLanes * DataWidth)/8))-iteration_count_d)*8);
alu_result_vm [(index*32) +: 31] = (iteration_count_d <= 1)/*(((NrLanes * DataWidth)/8) <= vinsn_issue.vl)*/ ? index : index-(((vinsn_issue.vl/((NrLanes * DataWidth)/8))-iteration_count_d)*8);
alu_result_vm_m = alu_result_vm & mask;
end
end
EW64: begin
for (int index = 1; index < (NrLanes*DataWidth)/64; index++) begin
alu_result_vm [(index*64) +: 63] = (((NrLanes * DataWidth)/8) <= vinsn_issue.vl) ? index : index-(((vinsn_issue.vl/((NrLanes * DataWidth)/8))-iteration_count_d)*4);
alu_result_vm [(index*64) +: 63] = (iteration_count_d <= 1)/*(((NrLanes * DataWidth)/8) <= vinsn_issue.vl)*/ ? index : index-(((vinsn_issue.vl/((NrLanes * DataWidth)/8))-iteration_count_d)*4);
alu_result_vm_m = alu_result_vm & mask;
end
end
Expand Down

0 comments on commit 3bb509b

Please sign in to comment.