hub: Increase elastic buffer size

If the input and output clock enables are exactly aligned, the elastic
buffer can overflow (as it waits for 2 entries before offering, and
there's a cycle of latency). Increase the size so we don't run into that
situation.

Fixes: b351beb ("Add hub")
Signed-off-by: Sean Anderson <seanga2@gmail.com>
This commit is contained in:
Sean Anderson 2023-03-06 22:03:05 -05:00
parent 52bc62814e
commit 9ea09f539a
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ module hub (
parameter WISHBONE = 1;
parameter PORT_COUNT = 4;
parameter ELASTIC_BUF_SIZE = 3;
parameter ELASTIC_BUF_SIZE = 5;
parameter ENABLE_COUNTERS = 1;
parameter COUNTER_WIDTH = 15;
parameter [23:0] OUI = 0;