From: hadeshyp Date: Wed, 27 Feb 2013 14:34:03 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: oldGBE~10 X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=4b82cf187ff2f0fea26deaf9c6cd0c95b8752113;p=trbnet.git *** empty log message *** --- diff --git a/gbe2_ecp3/trb_net16_gbe_transmit_control.vhd b/gbe2_ecp3/trb_net16_gbe_transmit_control.vhd index 39ae703..cf0fbc3 100644 --- a/gbe2_ecp3/trb_net16_gbe_transmit_control.vhd +++ b/gbe2_ecp3/trb_net16_gbe_transmit_control.vhd @@ -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;