Statistics Counters - Statistics Counters - 1.2 English - PG251

USXGMII Ethernet Subsystem Product Guide (PG251)

Document_ID
PG251
Release_Date
2024-05-30
Version
1.2 English

The statistics counters provide histograms of the classification of traffic and error counts. These counters can be read either by a 1 on pm_tick or by writing a 1 to TICK_REG, depending on the value of MODE_REG[30] (that is, tick_reg_mode_sel). pm_tick will be used when MODE_REG[30] = 0 and TICK_REG will be used when MODE_REG[30] = 1 (1 =default).

The counters employ an internal accumulator. A write to the TICK_REG register causes the accumulated counts to be pushed to the readable STAT_*_MSB/LSB registers and simultaneously clear the accumulators. The STAT_*_MSB/LSB registers can then be read. In this way all values stored in the statistics counters represent a snap-shot over the same time interval.

The STAT_CYCLE_COUNT_MSB/LSB register contains a count of the number of RX core clock cycles between TICK_REG writes. This allows for easy time-interval based statistics.

Statistic counter registers are cleared according to the following conditions:

  • Applying s_axi_aresetn clears both TX and RX statistics counter registers
  • Applying PM Tick clears both TX and RX statistics counter registers
  • Applying rx_reset clears the RX statistics counter registers only
  • Applying tx_reset clears the TX statistics counter registers only
Table 1. Statistics Counters
Hex Address Register Name/Link to Description
0x0500 STATUS_CYCLE_COUNT_LSB: 0500
0x0504 STATUS_CYCLE_COUNT_MSB: 0504
0x0648 STAT_RX_FRAMING_ERR_LSB: 0648
0x064C STAT_RX_FRAMING_ERR_MSB: 064C
0x0660 STAT_RX_BAD_CODE_LSB: 0660
0x0664 STAT_RX_BAD_CODE_MSB: 0664
0x06A0 STAT_TX_FRAME_ERROR_LSB: 06A0
0x06A4 STAT_TX_FRAME_ERROR_MSB: 06A4
0x0700 STAT_TX_TOTAL_PACKETS_LSB: 0700
0x0704 STAT_TX_TOTAL_PACKETS_MSB: 0704
0x0708 STAT_TX_TOTAL_GOOD_PACKETS_LSB: 0708
0x070C STAT_TX_TOTAL_GOOD_PACKETS_MSB: 070C
0x0710 STAT_TX_TOTAL_BYTES_LSB: 0710
0x0714 STAT_TX_TOTAL_BYTES_MSB: 0714
0x0718 STAT_TX_TOTAL_GOOD_BYTES_LSB: 0718
0x071C STAT_TX_TOTAL_GOOD_BYTES_MSB: 071C
0x0720 STAT_TX_PACKET_64_BYTES_LSB: 0720
0x0724 STAT_TX_PACKET_64_BYTES_MSB: 0724
0x0728 STAT_TX_PACKET_65_127_BYTES_LSB: 0728
0x072C STAT_TX_PACKET_65_127_BYTES_MSB: 072C
0x0730 STAT_TX_PACKET_128_255_BYTES_LSB: 0730
0x0734 STAT_TX_PACKET_128_255_BYTES_MSB: 0734
0x0738 STAT_TX_PACKET_256_511_BYTES_LSB: 0738
0x073C STAT_TX_PACKET_256_511_BYTES_MSB: 073C
0x0740 STAT_TX_PACKET_512_1023_BYTES_LSB: 0740
0x0744 STAT_TX_PACKET_512_1023_BYTES_MSB: 0744
0x0748 STAT_TX_PACKET_1024_1518_BYTES_LSB: 0748
0x074C STAT_TX_PACKET_1024_1518_BYTES_MSB: 074C
0x0750 STAT_TX_PACKET_1519_1522_BYTES_LSB: 0750
0x0754 STAT_TX_PACKET_1519_1522_BYTES_MSB: 0754
0x0758 STAT_TX_PACKET_1523_1548_BYTES_LSB: 0758
0x075C STAT_TX_PACKET_1523_1548_BYTES_MSB: 075C
0x0760 STAT_TX_PACKET_1549_2047_BYTES_LSB: 0760
0x0764 STAT_TX_PACKET_1549_2047_BYTES_MSB: 0764
0x0768 STAT_TX_PACKET_2048_4095_BYTES_LSB: 0768
0x076C STAT_TX_PACKET_2048_4095_BYTES_MSB: 076C
0x0770 STAT_TX_PACKET_4096_8191_BYTES_LSB: 0770
0x0774 STAT_TX_PACKET_4096_8191_BYTES_MSB: 0774
0x0778 STAT_TX_PACKET_8192_9215_BYTES_LSB: 0778
0x077C STAT_TX_PACKET_8192_9215_BYTES_MSB: 077C
0x0780 STAT_TX_PACKET_LARGE_LSB: 0780
0x0784 STAT_TX_PACKET_LARGE_MSB: 0784
0x0788 STAT_TX_PACKET_SMALL_LSB: 0788
0x078C STAT_TX_PACKET_SMALL_MSB: 078C
0x07B8 STAT_TX_BAD_FCS_LSB: 07B8
0x07BC STAT_TX_BAD_FCS_MSB: 07BC
0x07D0 STAT_TX_UNICAST_LSB: 07D0
0x07D4 STAT_TX_UNICAST_MSB: 07D4
0x07D8 STAT_TX_MULTICAST_LSB: 07D8
0x07DC STAT_TX_MULTICAST_MSB: 07DC
0x07E0 STAT_TX_BROADCAST_LSB: 07E0
0x07E4 STAT_TX_BROADCAST_MSB: 07E4
0x07E8 STAT_TX_VLAN_LSB: 07E8
0x07EC STAT_TX_VLAN_MSB: 07EC
0x07F0 STAT_TX_PAUSE_LSB: 07F0
0x07F4 STAT_TX_PAUSE_MSB: 07F4
0x07F8 STAT_TX_USER_PAUSE_LSB: 07F8
0x07FC STAT_TX_USER_PAUSE_MSB: 07FC
0x0808 STAT_RX_TOTAL_PACKETS_LSB: 0808
0x080C STAT_RX_TOTAL_PACKETS_MSB: 080C
0x0810 STAT_RX_TOTAL_GOOD_PACKETS_LSB: 0810
0x0814 STAT_RX_TOTAL_GOOD_PACKETS_MSB: 0814
0x0818 STAT_RX_TOTAL_BYTES_LSB: 0818
0x081C STAT_RX_TOTAL_BYTES_MSB: 081C
0x0820 STAT_RX_TOTAL_GOOD_BYTES_LSB: 0820
0x0824 STAT_RX_TOTAL_GOOD_BYTES_MSB: 0824
0x0828 STAT_RX_PACKET_64_BYTES_LSB: 0828
0x082C STAT_RX_PACKET_64_BYTES_MSB: 082C
0x0830 STAT_RX_PACKET_65_127_BYTES_LSB: 0830
0x0834 STAT_RX_PACKET_65_127_BYTES_MSB: 0834
0x0838 STAT_RX_PACKET_128_255_BYTES_LSB: 0838
0x083C STAT_RX_PACKET_128_255_BYTES_MSB: 083C
0x0840 STAT_RX_PACKET_256_511_BYTES_LSB: 0840
0x0844 STAT_RX_PACKET_256_511_BYTES_MSB: 0844
0x0848 STAT_RX_PACKET_512_1023_BYTES_LSB: 0848
0x084C STAT_RX_PACKET_512_1023_BYTES_MSB: 084C
0x0850 STAT_RX_PACKET_1024_1518_BYTES_LSB: 0850
0x0854 STAT_RX_PACKET_1024_1518_BYTES_MSB: 0854
0x0858 STAT_RX_PACKET_1519_1522_BYTES_LSB: 0858
0x085C STAT_RX_PACKET_1519_1522_BYTES_MSB: 085C
0x0860 STAT_RX_PACKET_1523_1548_BYTES_LSB: 0860
0x0864 STAT_RX_PACKET_1523_1548_BYTES_MSB: 0864
0x0868 STAT_RX_PACKET_1549_2047_BYTES_LSB: 0868
0x086C STAT_RX_PACKET_1549_2047_BYTES_MSB: 086C
0x0870 STAT_RX_PACKET_2048_4095_BYTES_LSB: 0870
0x0874 STAT_RX_PACKET_2048_4095_BYTES_MSB: 0874
0x0878 STAT_RX_PACKET_4096_8191_BYTES_LSB: 0878
0x087C STAT_RX_PACKET_4096_8191_BYTES_MSB: 087C
0x0880 STAT_RX_PACKET_8192_9215_BYTES_LSB: 0880
0x0884 STAT_RX_PACKET_8192_9215_BYTES_MSB: 0884
0x0888 STAT_RX_PACKET_LARGE_LSB: 0888
0x088C STAT_RX_PACKET_LARGE_MSB: 088C
0x0890 STAT_RX_PACKET_SMALL_LSB: 0890
0x0894 STAT_RX_PACKET_SMALL_MSB: 0894
0x0898 STAT_RX_UNDERSIZE_LSB: 0898
0x089C STAT_RX_UNDERSIZE_MSB: 089C
0x08A0 STAT_RX_FRAGMENT_LSB: 08A0
0x08A4 STAT_RX_FRAGMENT_MSB: 08A4
0x08A8 STAT_RX_OVERSIZE_LSB: 08A8
0x08AC STAT_RX_OVERSIZE_MSB: 08AC
0x08B0 STAT_RX_TOOLONG_LSB: 08B0
0x08B4 STAT_RX_TOOLONG_MSB: 08B4
0x08B8 STAT_RX_JABBER_LSB: 08B8
0x08BC STAT_RX_JABBER_MSB: 08BC
0x08C0 STAT_RX_BAD_FCS_LSB: 08C0
0x08C4 STAT_RX_BAD_FCS_MSB: 08C4
0x08C8 STAT_RX_PACKET_BAD_FCS_LSB: 08C8
0x08CC STAT_RX_PACKET_BAD_FCS_MSB: 08CC
0x08D0 STAT_RX_STOMPED_FCS_LSB: 08D0
0x08D4 STAT_RX_STOMPED_FCS_MSB: 08D4
0x08D8 STAT_RX_UNICAST_LSB: 08D8
0x08DC STAT_RX_UNICAST_MSB: 08DC
0x08E0 STAT_RX_MULTICAST_LSB: 08E0
0x08E4 STAT_RX_MULTICAST_MSB: 08E4
0x08E8 STAT_RX_BROADCAST_LSB: 08E8
0x08EC STAT_RX_BROADCAST_MSB: 08EC
0x08F0 STAT_RX_VLAN_LSB: 08F0
0x08F4 STAT_RX_VLAN_MSB: 08F4
0x08F8 STAT_RX_PAUSE_LSB: 08F8
0x08FC STAT_RX_PAUSE_MSB: 08FC
0x0900 STAT_RX_USER_PAUSE_LSB: 0900
0x0904 STAT_RX_USER_PAUSE_MSB: 0904
0x0908 STAT_RX_INRANGEERR_LSB: 0908
0x090C STAT_RX_INRANGEERR_MSB: 090C
0x0910 STAT_RX_TRUNCATED_LSB: 0910
0x0914 STAT_RX_TRUNCATED_MSB: 0914
0x0918 STAT_RX_TEST_PATTERN_MISMATCH_LSB: 0918
0x091C STAT_RX_TEST_PATTERN_MISMATCH_MSB: 091C