From 09cc2f761eb9b5d23c4d0947afb005d893613d6c Mon Sep 17 00:00:00 2001
From: Reinier van der Walle <walle@astron.nl>
Date: Fri, 23 Jul 2021 15:37:13 +0200
Subject: [PATCH] fixed syntax errors

---
 libraries/base/ring/src/vhdl/ring_pkg.vhd | 2 +-
 libraries/base/ring/src/vhdl/ring_tx.vhd  | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libraries/base/ring/src/vhdl/ring_pkg.vhd b/libraries/base/ring/src/vhdl/ring_pkg.vhd
index 0dbb79b317..11a4e1e5c2 100644
--- a/libraries/base/ring/src/vhdl/ring_pkg.vhd
+++ b/libraries/base/ring/src/vhdl/ring_pkg.vhd
@@ -137,7 +137,7 @@ PACKAGE BODY ring_pkg IS
 
   FUNCTION func_nof_hops_to_source_rn(hops, this_rn, N_rn : STD_LOGIC_VECTOR; lane_dir : NATURAL) RETURN STD_LOGIC_VECTOR IS
   BEGIN
-    RETURN TO_UVEC(nof_hops_to_source_rn(TO_UINT(hops), TO_UINT(N_rn), TO_UINT(N_rn), lane_dir),hops'LENGTH);
+    RETURN TO_UVEC(func_nof_hops_to_source_rn(TO_UINT(hops), TO_UINT(N_rn), TO_UINT(N_rn), lane_dir),hops'LENGTH);
   END;
   
 END ring_pkg;
diff --git a/libraries/base/ring/src/vhdl/ring_tx.vhd b/libraries/base/ring/src/vhdl/ring_tx.vhd
index 113e3f92de..4e8d6c7d3f 100644
--- a/libraries/base/ring/src/vhdl/ring_tx.vhd
+++ b/libraries/base/ring/src/vhdl/ring_tx.vhd
@@ -115,7 +115,7 @@ BEGIN
   p_hop: PROCESS(validated_sosi)
   BEGIN
     tx_sosi <= validated_sosi;
-    IF TO_UINT(validate_sosi.channel) >= TO_UINT(N_rn)-1 THEN
+    IF TO_UINT(validated_sosi.channel) >= TO_UINT(N_rn)-1 THEN
       tx_sosi.channel <= (OTHERS => '0');
     ELSE
       tx_sosi.channel <= INCR_DP_CHANNEL(validated_sosi.channel, 1, c_dp_stream_channel_w);
@@ -194,7 +194,7 @@ BEGIN
     p_hop_to_src_rn: PROCESS(validated_sosi, this_rn, N_rn)
     BEGIN
       monitor_sosi <= validated_sosi;
-      monitor_sosi.channel <= nof_hops_to_source_rn(validated_sosi.channel, this_rn, N_rn, g_lane_direction);
+      monitor_sosi.channel <= func_nof_hops_to_source_rn(validated_sosi.channel, this_rn, N_rn, g_lane_direction);
     END PROCESS;
 
     u_dp_demux : ENTITY dp_lib.dp_demux
-- 
GitLab