g_app_led_red:BOOLEAN:=FALSE;-- when TRUE use external LED control via app_led_red
g_dbg_led_red:BOOLEAN:=FALSE;-- [when g_app_led_red=FALSE]: when TRUE connect pout_debug_wave to the LEDs; otherwise let ctrl_unb1_board toggle them
g_app_led_green:BOOLEAN:=FALSE;-- when TRUE use external LED control via app_led_green
g_dbg_led_green:BOOLEAN:=FALSE;-- [when g_app_led_green=FALSE]: when TRUE connect pout_debug_wave to the LEDs; otherwise let ctrl_unb1_board toggle them
g_aux:t_c_unb1_board_aux:=c_unb1_board_aux
);
PORT(
--
-- >>> SOPC system with conduit peripheral MM bus
--
-- System
cs_sim:OUTSTD_LOGIC;
xo_clk:OUTSTD_LOGIC;-- 25 MHz ETH_clk
xo_rst:OUTSTD_LOGIC;
xo_rst_n:OUTSTD_LOGIC;
mm_clk:INSTD_LOGIC;-- 125 MHz from xo_clk PLL in SOPC system
mm_locked:INSTD_LOGIC;
mm_rst:OUTSTD_LOGIC;
dp_rst:OUTSTD_LOGIC;
dp_clk:OUTSTD_LOGIC;-- 200 MHz from CLK system clock
dp_phs_clk_vec:OUTSTD_LOGIC_VECTOR(g_dp_phs_clk_vec_w-1DOWNTO0);-- divided and phase shifted from 200 MHz CLK system clock when a PLL is used
dp_pps:OUTSTD_LOGIC;-- PPS in dp_clk domain
dp_rst_in:INSTD_LOGIC;-- externally wire OUT dp_rst to dp_rst_in to avoid delta cycle difference on dp_clk
dp_clk_in:INSTD_LOGIC;-- externally wire OUT dp_clk to dp_clk_in to avoid delta cycle difference on dp_clk (due to dp_clk <= i_dp_clk assignment)
this_chip_id:OUTSTD_LOGIC_VECTOR(c_unb1_board_nof_chip_w-1DOWNTO0);-- [2:0], so range 0-3 for FN and range 4-7 for BN
this_bck_id:OUTSTD_LOGIC_VECTOR(c_unb1_board_nof_uniboard_w-1DOWNTO0);-- [1:0] used out of ID[7:3] to index boards 3..0 in subrack