]> jspc29.x-matter.uni-frankfurt.de Git - trbnet.git/commitdiff
*** empty log message ***
authorhadeshyp <hadeshyp>
Thu, 13 Aug 2009 13:25:14 +0000 (13:25 +0000)
committerhadeshyp <hadeshyp>
Thu, 13 Aug 2009 13:25:14 +0000 (13:25 +0000)
media_interfaces/trb_net16_med_ecp_sfp_4_gbe.vhd

index 2a50c5d5c16f7d646dbe8a4d32f692756e931a1d..efdc8654ea2bfde6e3510f26f2fa1a8abea58515 100755 (executable)
@@ -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
 ---------------------------------------------------------------------