From ae7580f47b07f8f9ef0f502c34801ff565cf1dbc Mon Sep 17 00:00:00 2001
From: Leon Hiemstra <hiemstra@astron.nl>
Date: Wed, 9 Mar 2016 12:25:01 +0000
Subject: [PATCH] increased the fifo size

---
 libraries/io/eth/src/vhdl/eth_buffer.vhd | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libraries/io/eth/src/vhdl/eth_buffer.vhd b/libraries/io/eth/src/vhdl/eth_buffer.vhd
index d04b92c5da..2a0772c45f 100644
--- a/libraries/io/eth/src/vhdl/eth_buffer.vhd
+++ b/libraries/io/eth/src/vhdl/eth_buffer.vhd
@@ -58,9 +58,9 @@ END eth_buffer;
 
 ARCHITECTURE str OF eth_buffer IS
 
-  CONSTANT c_nof_frames       : NATURAL := 2;                                                     -- support at least 2 max size frames in the FIFO
+  CONSTANT c_nof_frames       : NATURAL := 4;                                                     -- support at least 2 max size frames in the FIFO
   CONSTANT c_fifo_nof_words   : NATURAL := 2**(ceil_log2(c_nof_frames * c_eth_frame_nof_words));  -- = 1024 > 2*380
-  CONSTANT c_fifo_almost_full : NATURAL := c_fifo_nof_words-64;                                   -- use sufficient margin to account for latencies
+  CONSTANT c_fifo_almost_full : NATURAL := c_fifo_nof_words-380-20;                               -- use sufficient margin to account for 1 packet (1520 bytes) + 20 latency
   
   TYPE t_state_enum IS (
     s_idle,
-- 
GitLab