From 7480bf1ca9b36eaa0208400fdbc144432066bbb7 Mon Sep 17 00:00:00 2001 From: Eric Kooistra <kooistra@astron.nl> Date: Wed, 8 Sep 2021 14:44:10 +0200 Subject: [PATCH] Corrected missing RETURN in function, this only showed at simulation run time in Modelsim, not at compile time. --- libraries/base/common/src/vhdl/common_mem_pkg.vhd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/base/common/src/vhdl/common_mem_pkg.vhd b/libraries/base/common/src/vhdl/common_mem_pkg.vhd index 0e55fc1db9..27fcd79466 100644 --- a/libraries/base/common/src/vhdl/common_mem_pkg.vhd +++ b/libraries/base/common/src/vhdl/common_mem_pkg.vhd @@ -207,6 +207,7 @@ PACKAGE BODY common_mem_pkg IS FOR I IN copi_arr'RANGE LOOP v_copi_arr(I) := RESET_MEM_COPI_CTRL(copi_arr(I)); END LOOP; + RETURN v_copi_arr; END; FUNCTION RESET_MEM_MISO_CTRL(miso : t_mem_miso) RETURN t_mem_miso IS @@ -228,6 +229,7 @@ PACKAGE BODY common_mem_pkg IS FOR I IN cipo_arr'RANGE LOOP v_cipo_arr(I) := RESET_MEM_CIPO_CTRL(cipo_arr(I)); END LOOP; + RETURN v_cipo_arr; END RESET_MEM_CIPO_CTRL; -- Resize functions to fit an integer or an SLV in the corresponding t_mem_miso or t_mem_mosi field width -- GitLab