From: Jan Michel Date: Fri, 17 May 2024 12:51:32 +0000 (+0200) Subject: fix old reset signal in sync_control, enable ECP5_RESET by default. X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=4eb4b722978ef2853e8c8a1202bf849d25bd9374;p=trbnet.git fix old reset signal in sync_control, enable ECP5_RESET by default. --- diff --git a/media_interfaces/med_ecp5_sfp_sync.vhd b/media_interfaces/med_ecp5_sfp_sync.vhd index 62e2775..220d973 100644 --- a/media_interfaces/med_ecp5_sfp_sync.vhd +++ b/media_interfaces/med_ecp5_sfp_sync.vhd @@ -13,7 +13,7 @@ use work.med_sync_define.all; entity med_ecp5_sfp_sync is generic( - USE_NEW_ECP5_RESET : integer := c_NO; + USE_NEW_ECP5_RESET : integer := c_YES; SERDES_NUM : integer range 0 to 3 := 0; IS_SYNC_SLAVE : integer := c_YES --select slave mode ); diff --git a/media_interfaces/med_ecp5_sfp_sync_2.vhd b/media_interfaces/med_ecp5_sfp_sync_2.vhd index 5a7d723..2b542a8 100644 --- a/media_interfaces/med_ecp5_sfp_sync_2.vhd +++ b/media_interfaces/med_ecp5_sfp_sync_2.vhd @@ -13,7 +13,7 @@ use work.med_sync_define.all; entity med_ecp5_sfp_sync_2 is generic( - USE_NEW_ECP5_RESET : integer := c_NO; + USE_NEW_ECP5_RESET : integer := c_YES; DUAL : integer := 0; --which Dual to use IS_SYNC_SLAVE : int_array_t(0 to 1) := (c_YES, c_NO) --select slave mode ); diff --git a/media_interfaces/sync/med_sync_control.vhd b/media_interfaces/sync/med_sync_control.vhd index c1ce4e2..b17ea4c 100644 --- a/media_interfaces/sync/med_sync_control.vhd +++ b/media_interfaces/sync/med_sync_control.vhd @@ -117,7 +117,7 @@ begin rst_n_tx <= not (CLEAR or sd_los_i or make_link_reset_real_i or RESET) when (IS_SYNC_SLAVE = 1 and IS_TX_RESET = 1) else not (CLEAR or make_link_reset_real_i or RESET); -rst_n <= (CLEAR or sd_los_i or make_link_reset_real_i or RESET) when USE_NEW_ECP5_RESET = 0 +rst_n <= not (CLEAR or sd_los_i or make_link_reset_real_i or RESET) when USE_NEW_ECP5_RESET = 0 else (CLEAR or sd_los_i); reset_i <= (RESET or sd_los_i or make_link_reset_real_i);