diff --git a/common/firmware/hdl/LinkAggregatorCore.vhd b/common/firmware/hdl/LinkAggregatorCore.vhd index 7f139d05e22a69b964ba7c385a0fc6ef3d9c9c12..0d51e7d2dc70c5855bfa4fcdfe22a051991c7397 100644 --- a/common/firmware/hdl/LinkAggregatorCore.vhd +++ b/common/firmware/hdl/LinkAggregatorCore.vhd @@ -231,7 +231,7 @@ begin begin if rising_edge(clk_p) then if packet_start_buffered = '1' then - if unsigned(count_cache) >= thresholds_l(i) and (unsigned(count_cache) <= thresholds_u(i) or thresholds_u(i) = "0000") then + if unsigned(count_cache) >= thresholds_l(i) and (unsigned(count_cache) <= thresholds_u(i) or to_integer(unsigned(thresholds_u(i))) = 0) then bx_valid_array(N_LINKS*j + i) <= '1'; else bx_valid_array(N_LINKS*j + i) <= '0';