Skip to content
Snippets Groups Projects
Commit 00da54eb authored by Marco Riggirello's avatar Marco Riggirello
Browse files

More robust threshold condition in LinkAggregatorCore

parent f1cedbc9
Branches
Tags
2 merge requests!405 bits thresholds registers,!35Added configurable threshold for each input link
Pipeline #6150711 passed
...@@ -231,7 +231,7 @@ begin ...@@ -231,7 +231,7 @@ begin
begin begin
if rising_edge(clk_p) then if rising_edge(clk_p) then
if packet_start_buffered = '1' then if packet_start_buffered = '1' then
if unsigned(count_cache) >= thresholds_l(i) and (unsigned(count_cache) <= thresholds_u(i) or to_integer(unsigned(thresholds_u(i))) = 0) then if unsigned(count_cache) >= thresholds_l(i) and (unsigned(count_cache) <= thresholds_u(i) or thresholds_u(i) < thresholds_l(i)) then
bx_valid_array(N_LINKS*j + i) <= '1'; bx_valid_array(N_LINKS*j + i) <= '1';
else else
bx_valid_array(N_LINKS*j + i) <= '0'; bx_valid_array(N_LINKS*j + i) <= '0';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment