From 571aca26f168b5fe740c3b83482fb18446e8ade0 Mon Sep 17 00:00:00 2001
From: Eric Kooistra <kooistra@astron.nl>
Date: Mon, 8 May 2023 16:44:22 +0200
Subject: [PATCH] Support g_fifo_af_xon

---
 libraries/base/ring/src/vhdl/ring_mux.vhd | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libraries/base/ring/src/vhdl/ring_mux.vhd b/libraries/base/ring/src/vhdl/ring_mux.vhd
index 0c6977776a..b907a921bb 100644
--- a/libraries/base/ring/src/vhdl/ring_mux.vhd
+++ b/libraries/base/ring/src/vhdl/ring_mux.vhd
@@ -46,6 +46,7 @@ ENTITY ring_mux IS
     g_use_empty         : BOOLEAN := TRUE;
     g_use_error         : BOOLEAN := TRUE;
     g_use_sync          : BOOLEAN := TRUE;
+    g_fifo_af_xon       : NATURAL := 0;  -- >=0, Nof words below max (full) at which fifo is considered almost full for snk_out.xon
     g_fifo_size         : t_natural_arr := array_init(1024, 2)  -- must match c_nof_input
   );
   PORT (
@@ -94,8 +95,8 @@ BEGIN
     g_use_in_channel    => TRUE,
     g_use_error         => g_use_error,
     g_use_sync          => g_use_sync,
+    g_fifo_af_xon       => g_fifo_af_xon,
     g_fifo_size         => g_fifo_size
-    
   )
   PORT MAP (
     rst => dp_rst,
-- 
GitLab