From 4b82cf187ff2f0fea26deaf9c6cd0c95b8752113 Mon Sep 17 00:00:00 2001 From: hadeshyp Date: Wed, 27 Feb 2013 14:34:03 +0000 Subject: [PATCH] *** empty log message *** --- gbe2_ecp3/trb_net16_gbe_transmit_control.vhd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.43.0