Skip to content

Commit

Permalink
shfl_unit: Fix bitwidth of masks
Browse files Browse the repository at this point in the history
  • Loading branch information
fischeti committed Aug 7, 2024
1 parent 08c495a commit d833cac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hw/snitch_cluster/src/snitch_shuffle_unit.sv
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ module snitch_shuffle_unit #(
// Mask
// ----------------------

logic [FLEN/8:0] vec_mask;
logic [FLEN/8:0][2:0] element_mask;
logic [FLEN/8-1:0] vec_mask;
logic [FLEN/8-1:0][2:0] element_mask;

for (genvar i = 0; i < FLEN/8; i++) begin
assign vec_mask[i] = operands_i[1][(i*4)+3];
Expand Down

0 comments on commit d833cac

Please sign in to comment.