]> jspc29.x-matter.uni-frankfurt.de Git - trbnet.git/commitdiff
*** empty log message ***
authorhadeshyp <hadeshyp>
Wed, 27 Feb 2013 14:34:03 +0000 (14:34 +0000)
committerhadeshyp <hadeshyp>
Wed, 27 Feb 2013 14:34:03 +0000 (14:34 +0000)
gbe2_ecp3/trb_net16_gbe_transmit_control.vhd

index 39ae703f70ff5b8462a3e33b827d9bd2fb15cf7a..cf0fbc38fd99dc70f8ce29758c97836e6b622b7b 100644 (file)
@@ -379,7 +379,10 @@ begin
   if rising_edge(CLK) then
     if (RESET = '1') then
       sent_packets_ctr <= (others => '0');
-    elsif (tx_current_state = CLEANUP and MC_FLAGS_OFFSET_IN(13) = '0') then
+    --elsif (tx_current_state = CLEANUP and MC_FLAGS_OFFSET_IN(13) = '0') then
+    elsif (tx_current_state = TRANSMIT_DATA and PC_EOD_IN = '1' and PC_FLAGS_OFFSET_IN(13) = '0') then
+      sent_packets_ctr <= sent_packets_ctr + x"1";
+    elsif (tx_current_state = TRANSMIT_CTRL and ctrl_construct_current_state = CLOSE and MC_FLAGS_OFFSET_IN(13) = '0') then
       sent_packets_ctr <= sent_packets_ctr + x"1";
     end if;
   end if;