From e5b41bcd6648919570d245bd7edd0747189460a7 Mon Sep 17 00:00:00 2001 From: Blaise Tine Date: Tue, 5 Dec 2023 04:57:52 -0800 Subject: [PATCH] wctl unit bug fix --- hw/rtl/core/VX_wctl_unit.sv | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hw/rtl/core/VX_wctl_unit.sv b/hw/rtl/core/VX_wctl_unit.sv index d628e16c..35503add 100644 --- a/hw/rtl/core/VX_wctl_unit.sv +++ b/hw/rtl/core/VX_wctl_unit.sv @@ -29,7 +29,6 @@ module VX_wctl_unit import VX_gpu_pkg::*; #( ); `UNUSED_PARAM (CORE_ID) localparam LANE_BITS = `CLOG2(NUM_LANES); - localparam LANE_WIDTH = `UP(LANE_BITS); localparam PID_BITS = `CLOG2(`NUM_THREADS / NUM_LANES); localparam PID_WIDTH = `UP(PID_BITS); localparam WCTL_WIDTH = $bits(tmc_t) + $bits(wspawn_t) + $bits(split_t) + $bits(join_t) + $bits(barrier_t); @@ -50,7 +49,7 @@ module VX_wctl_unit import VX_gpu_pkg::*; #( wire is_join = (execute_if.data.op_type == `INST_SFU_JOIN); wire is_bar = (execute_if.data.op_type == `INST_SFU_BAR); - wire [LANE_WIDTH-1:0] tid; + wire [LANE_BITS-1:0] tid; if (LANE_BITS != 0) begin assign tid = execute_if.data.tid[0 +: LANE_BITS]; end else begin