From d833cac70a8f983db13cad2b1b35de7beca51853 Mon Sep 17 00:00:00 2001 From: Tim Fischer Date: Wed, 7 Aug 2024 18:08:40 +0200 Subject: [PATCH] shfl_unit: Fix bitwidth of masks --- hw/snitch_cluster/src/snitch_shuffle_unit.sv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/snitch_cluster/src/snitch_shuffle_unit.sv b/hw/snitch_cluster/src/snitch_shuffle_unit.sv index dcf6c4b18b..ce04c4b7d0 100644 --- a/hw/snitch_cluster/src/snitch_shuffle_unit.sv +++ b/hw/snitch_cluster/src/snitch_shuffle_unit.sv @@ -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];