From 7ca23fe88077b88df725213ff81e2198858c3f03 Mon Sep 17 00:00:00 2001
From: Erik Kooistra <kooistra@astron.nl>
Date: Fri, 22 May 2015 10:10:44 +0000
Subject: [PATCH] Debug: for single board application force bck_id = 0 to avoid
 need to set the bck_id input.

---
 .../libraries/unb2_board/src/vhdl/ctrl_unb2_board.vhd      | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/boards/uniboard2/libraries/unb2_board/src/vhdl/ctrl_unb2_board.vhd b/boards/uniboard2/libraries/unb2_board/src/vhdl/ctrl_unb2_board.vhd
index 9d92727895..16f921086c 100644
--- a/boards/uniboard2/libraries/unb2_board/src/vhdl/ctrl_unb2_board.vhd
+++ b/boards/uniboard2/libraries/unb2_board/src/vhdl/ctrl_unb2_board.vhd
@@ -220,6 +220,8 @@ END ctrl_unb2_board;
 
 ARCHITECTURE str OF ctrl_unb2_board IS
 
+  SIGNAL ID_single_board        : STD_LOGIC_VECTOR(g_aux.id_w-1 DOWNTO 0);
+  
   -- Clock and reset
   SIGNAL i_xo_ethclk            : STD_LOGIC;
   SIGNAL i_xo_rst               : STD_LOGIC;
@@ -394,6 +396,8 @@ BEGIN
   -- System info
   cs_sim <= is_true(g_sim);
   
+  ID_single_board <= "000000" & ID(1 DOWNTO 0);   -- Debug: for single board application force bck_id = 0 to avoid need to set the bck_id input
+  
   u_mms_unb2_board_system_info : ENTITY work.mms_unb2_board_system_info
   GENERIC MAP (
     g_sim         => g_sim,
@@ -409,7 +413,8 @@ BEGIN
     mm_rst      => i_mm_rst,
 
     hw_version  => VERSION,
-    id          => ID,
+    --id          => ID,
+    id          => ID_single_board,
 
     reg_mosi    => reg_unb_system_info_mosi, 
     reg_miso    => reg_unb_system_info_miso,
-- 
GitLab