From 0432b6b5ac6dfef95dca7cf2f9ecff2df035c76d Mon Sep 17 00:00:00 2001
From: Reinier van der Walle <walle@astron.nl>
Date: Thu, 27 Aug 2020 17:07:28 +0200
Subject: [PATCH] Added dedicated reg_mem constant

---
 libraries/base/dp/src/vhdl/dp_selector_arr.vhd | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/libraries/base/dp/src/vhdl/dp_selector_arr.vhd b/libraries/base/dp/src/vhdl/dp_selector_arr.vhd
index 4fbd981607..e69e1f3615 100644
--- a/libraries/base/dp/src/vhdl/dp_selector_arr.vhd
+++ b/libraries/base/dp/src/vhdl/dp_selector_arr.vhd
@@ -61,8 +61,9 @@ ENTITY dp_selector_arr IS
 END dp_selector_arr;
 
 ARCHITECTURE str OF dp_selector_arr IS
+  CONSTANT c_selector_mem_reg : t_c_mem := (c_mem_reg_rd_latency, 1, 1, 1, '0');
 
-  SIGNAL reg_selector_en : STD_LOGIC_VECTOR(c_mem_reg.dat_w*c_mem_reg.nof_dat-1 DOWNTO 0);
+  SIGNAL reg_selector_en : STD_LOGIC_VECTOR(c_selector_mem_reg.dat_w*c_selector_mem_reg.nof_dat-1 DOWNTO 0);
   SIGNAL n_en            : STD_LOGIC;
   SIGNAL switch_select   : STD_LOGIC;
 
@@ -73,7 +74,7 @@ BEGIN
 
   u_mms_common_reg : ENTITY common_lib.mms_common_reg
   GENERIC MAP (
-    g_mm_reg       => c_mem_reg
+    g_mm_reg       => c_selector_mem_reg
   )
   PORT MAP (
     mm_rst         => mm_rst,
-- 
GitLab