From: hadeshyp Date: Thu, 13 Aug 2009 13:25:14 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: oldGBE~397 X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=ae05789de7abf617e237b14eacf5c12cc7092585;p=trbnet.git *** empty log message *** --- diff --git a/media_interfaces/trb_net16_med_ecp_sfp_4_gbe.vhd b/media_interfaces/trb_net16_med_ecp_sfp_4_gbe.vhd index 2a50c5d..efdc865 100755 --- a/media_interfaces/trb_net16_med_ecp_sfp_4_gbe.vhd +++ b/media_interfaces/trb_net16_med_ecp_sfp_4_gbe.vhd @@ -821,7 +821,7 @@ begin 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'; @@ -834,6 +834,27 @@ begin 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 ---------------------------------------------------------------------