STAT_RESET(15 downto 10) <= (others => '0');
STAT_RESET(16) <= RX_CDR_LOL;
STAT_RESET(17) <= RX_LOS;
-STAT_RESET(18) <= QUAD_RST; --RX_PCS_RST;
-STAT_RESET(19) <= TX_PCS_RST;
+STAT_RESET(18) <= '0';--QUAD_RST; --RX_PCS_RST;
+STAT_RESET(19) <= '0';--TX_PCS_RST;
STAT_RESET(20) <= TX_LOL;
STAT_RESET(21) <= rst_n;
STAT_RESET(22) <= rst_n_tx;
-STAT_RESET(31 downto 23) <= start_timer(start_timer'left downto start_timer'left - 8);
+STAT_RESET(30 downto 23) <= (others => '0');
+STAT_RESET(31) <= start_timer(start_timer'left);
gen_link_reset : if IS_SYNC_SLAVE = 1 generate
media_med2int_i.stat_op(11) <= led_tx; -- or last_led_tx;
media_med2int_i.stat_op(10) <= led_rx or last_led_rx;
media_med2int_i.stat_op(9) <= tx_allow; --led_ok
-media_med2int_i.stat_op(8) <= rx_allow;
-
-media_med2int_i.stat_op(7 downto 4) <= (others => '0');
+media_med2int_i.stat_op(8 downto 5) <= (others => '0');
+media_med2int_i.stat_op(4) <= rx_allow;
media_med2int_i.stat_op(3 downto 0) <= x"0" when rx_allow = '1' and tx_allow = '1' else x"7";
DEBUG_OUT(0) <= tx_allow;