if( rising_edge(SYSCLK) ) then
last_fifo_tx_empty(i) <= fifo_tx_empty(i);
first_idle(i) <= not last_fifo_tx_empty(i) and fifo_tx_empty(i);
- if( (last_fifo_tx_empty(i) = '1') ) then -- or (tx_allow_qtx(i) = '0')
+ if( (last_fifo_tx_empty(i) = '1') or tx_allow(i) = '0') then
tx_data(i*16+15 downto i*16) <= x"50bc";
tx_k(i*2+1 downto i*2) <= "01";
tx_correct(i*2+1 downto i*2) <= first_idle(i) & '0';
end process;
+THE_SERDES_INPUT_PROC: process( sysclk )
+begin
+ if( rising_edge(sysclk) ) then
+ last_fifo_tx_empty <= fifo_tx_empty;
+ first_idle <= not last_fifo_tx_empty and fifo_tx_empty;
+ if( (last_fifo_tx_empty = '1') or (tx_allow = '0') ) then
+ tx_data <= x"50bc";
+ tx_k <= "01";
+ tx_correct <= first_idle & '0';
+-- elsif send_resync = '1' then
+-- tx_data <= x"FEFE";
+-- tx_k <= "11";
+ else
+ tx_data <= fifo_tx_dout(15 downto 0);
+ tx_k <= "00";
+ tx_correct <= "00";
+ end if;
+ end if;
+end process THE_SERDES_INPUT_PROC;
+
+
---------------------------------------------------------------------
--LED Signals
---------------------------------------------------------------------