]> jspc29.x-matter.uni-frankfurt.de Git - trbnet.git/commitdiff
*** empty log message ***
authorhadeshyp <hadeshyp>
Thu, 23 Apr 2009 20:50:52 +0000 (20:50 +0000)
committerhadeshyp <hadeshyp>
Thu, 23 Apr 2009 20:50:52 +0000 (20:50 +0000)
media_interfaces/trb_net16_med_ecp_fot.vhd
media_interfaces/trb_net16_med_ecp_fot_4.vhd

index 10f6c7f140df6db1f9b7c77dd85ca681f9a9b21e..cf49fdb0b13d8c46c26ebca44d9fc4aa858ab9f2 100644 (file)
@@ -319,7 +319,7 @@ begin
         end if;
       end process;
 
-    fifo_reset <= reset or quad_rst;
+    fifo_reset <= reset or quad_rst or not rx_allow;
 
   --RX Control (25)
   ---------------------
@@ -350,7 +350,7 @@ begin
           else
             rx_data_reg(7 downto 0) <= buf_rx_data(7 downto 0);
             if( rx_allow = '1' ) then
-              if( (rx_k = '0') and (is_idle_word = '0') and (rx_starting = '0') ) then
+              if( (buf_rx_k = '0') and (is_idle_word = '0') and (rx_starting = '0') ) then
                 rx_fifo_write_en <= '1';
               else
                 rx_fifo_write_en <= '0';
@@ -483,7 +483,8 @@ begin
 
     STAT_DEBUG(31 downto 0) <= FSM_STAT_DEBUG(31 downto 0);
     STAT_DEBUG(39 downto 32) <= rx_data_reg(7 downto 0);
-    STAT_DEBUG(63 downto 40) <= (others => '0');
+    STAT_DEBUG(40)           <= rx_fifo_write_en;
+    STAT_DEBUG(63 downto 41) <= (others => '0');
 
 
 
index 70e4686d268e220ab626fe7964a1c04d244fc2f0..85e6d9047f889c3c8fc949839088bbc70a4c362b 100644 (file)
@@ -542,7 +542,7 @@ begin
           else
             rx_data_reg((i+1)*8-1 downto i*8) <= buf_rx_data((i+1)*8-1 downto i*8);
             if( rx_allow(i) = '1' ) then
-              if( (rx_k(i) = '0') and (is_idle_word(i) = '0') and (rx_starting(i) = '0') ) then
+              if( (buf_rx_k(i) = '0') and (is_idle_word(i) = '0') and (rx_starting(i) = '0') ) then
                 rx_fifo_write_en(i) <= '1';
               else
                 rx_fifo_write_en(i) <= '0';
@@ -675,7 +675,8 @@ begin
 
     STAT_DEBUG(i*64+31 downto i*64+0) <= FSM_STAT_DEBUG(i*32+31 downto i*32);
     STAT_DEBUG(i*64+39 downto i*64+32) <= rx_data_reg(i*8+7 downto i*8);
-    STAT_DEBUG(i*64+63 downto i*64+40) <= (others => '0');
+    STAT_DEBUG(i*64+40)                <= rx_fifo_write_en(i);
+    STAT_DEBUG(i*64+63 downto i*64+41) <= (others => '0');
 
   end generate;