From 1e12094f45b43a39ea106b42ea4022826d85e1d5 Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Sun, 7 Sep 2025 14:58:16 -0700 Subject: [PATCH] stats: Clean up casts Signed-off-by: Alex Forencich --- src/stats/tb/taxi_stats_counter/test_taxi_stats_counter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stats/tb/taxi_stats_counter/test_taxi_stats_counter.py b/src/stats/tb/taxi_stats_counter/test_taxi_stats_counter.py index 50d6780..4f98a52 100644 --- a/src/stats/tb/taxi_stats_counter/test_taxi_stats_counter.py +++ b/src/stats/tb/taxi_stats_counter/test_taxi_stats_counter.py @@ -69,7 +69,7 @@ async def run_test_acc(dut, idle_inserter=None, backpressure_inserter=None): tb = TB(dut) byte_lanes = tb.axil_master.read_if.byte_lanes - counter_size = max(dut.STAT_COUNT_W.value // 8, byte_lanes) + counter_size = max(int(dut.STAT_COUNT_W.value) // 8, byte_lanes) await tb.cycle_reset() @@ -100,7 +100,7 @@ async def run_stress_test(dut, idle_inserter=None, backpressure_inserter=None): tb = TB(dut) byte_lanes = tb.axil_master.read_if.byte_lanes - counter_size = max(dut.STAT_COUNT_W.value // 8, byte_lanes) + counter_size = max(int(dut.STAT_COUNT_W.value) // 8, byte_lanes) stat_inc_width = len(dut.s_axis_stat.tdata) stat_id_width = len(dut.s_axis_stat.tid)