Statistics Counters - 9.0 English - PG051

Tri-Mode Ethernet MAC LogiCORE IP Product Guide (PG051)

Document ID
PG051
Release Date
2024-12-11
Version
9.0 English

The Statistics counters are defined to be either 32 or 64 bits wide with 64 bits set as the default. When defined as 64 bits wide, the counter values are captured across two registers. In all cases, a read of the lower 32-bit value causes the upper 32 bits to be sampled. A subsequent read of the upper 32-bit location returns this sampled value.

Note: If a different upper 32-bit location is read, an error is returned.
Table 1. Statistics Counter Definitions
Name Increment Bit No. Address Description
Received bytes NA 0x200-0x204 A count of bytes of frames received (destination address to frame check sequence inclusive).
Transmitted bytes NA 0x208-0x20C A count of bytes of frames transmitted (destination address to frame check sequence inclusive).
RX Undersize frames NA 0x210-0x214 A count of the number of frames received that were fewer than 64 bytes in length but otherwise well formed.
RX Fragment frames NA 0x218-0x21C A count of the number of frames received that were fewer than 64 bytes in length and had a bad frame check sequence field.
RX 64-byte Frames 4 0x220-0x224 A count of error-free frames received 64 bytes in length.
RX 65-127-byte Frames 5 0x228-0x22C A count of error-free frames received between 65 and 127 bytes in length.
RX 128-255-byte Frames 6 0x230-0x234 A count of error-free frames received between 128 and 255 bytes in length.
RX 256-511-byte Frames 7 0x238-0x23C A count of error-free frames received between 256 and 511 bytes in length.
RX 512-1023-byte Frames 8 0x240-0x244 A count of error-free frames received between 512 and 1023 bytes in length.

RX 1024-MaxFrameSize

byte Frames

9 0x248-0x24C A count of error-free frames received between 1024 bytes and the specified IEEE 802.3-2008 maximum legal length.
RX Oversize Frames 10 0x250-0x254 A count of otherwise error-free frames received that exceeded the maximum legal frame length specified in IEEE 802.3-2008. If Jumbo frames are enabled this counter increments when the received frame length exceeds the maximum legal length. If Jumbo frames are not enabled, it increments only if the received frame length is greater than the maximum legal length and less than or equal to the value specified in RX Maximum Frame Configuration Register
TX 64-byte Frames 11 0x258-0x25C A count of error-free frames transmitted that were 64 bytes in length.
TX 65-127-byte Frames 12 0x260-0x264 A count of error-free frames transmitted between 65 and 127 bytes in length.
TX 128-255-byte Frames 13 0x268-0x26C A count of error-free frames transmitted between 128 and 255 bytes in length.
TX 256-511-byte Frames 14 0x270-0x274 A count of error-free frames transmitted between 256 and 511 bytes in length.
TX 512-1023-byte Frames 15 0x278-0x27C A count of error-free frames transmitted that were between 512 and 1023 bytes in length.

TX 1024-MaxFrameSize

byte Frames

16 0x280-0x284 A count of error-free frames transmitted between 1024 and the specified IEEE 802.3-2008 maximum legal length.
TX Oversize Frames 17 0x288-0x28C A count of otherwise error-free frames transmitted that exceeded the maximum legal frame length specified in IEEE 802.3-2008.
RX Good Frames 18 0x290-0x294 A count of error-free frames received.

RX Frame Check

Sequence Errors

19 0x298-0x29C A count of received frames that failed the CRC check and were at least 64 bytes in length.
RX Good Broadcast Frames 20 0x2A0-0x2A4 A count of frames successfully received and directed to the broadcast group address.
RX Good Multicast Frames 21 0x2A8-0x2AC A count of frames successfully received and directed to a non-broadcast group address.
RX Good Control Frames 22 0x2B0-0x2B4 A count of error-free frames received that contained the special control frame identifier in the length/type field.

RX Length/Type

Out of Range

23 0x2B8-0x2BC A count of frames received that were at least 64 bytes in length where the length/type field contained a length value that did not match the number of MAC user data bytes received. The counter also increments for frames in which the length/type field indicated that the frame contained padding but where the number of MAC user data bytes received was greater than 64 bytes (minimum frame size). The exception is when the Length/Type Error Checks are disabled in the chosen MAC, in this case, the counter does not increment.

RX Good VLAN

Tagged Frames

24 0x2C0-0x2C4 A count of error-free VLAN frames received. This counter only increments when the receiver is configured for VLAN operation.
RX Good Pause Frames 25 0x2C8-0x2CC A count of error-free frames received that contained the MAC Control type identifier 88-08 in the length/type field, contained a destination address that matches either the MAC Control multicast address or the configured source address of the MAC, the PAUSE opcode, and were acted upon by the MAC.
RX Bad Opcode 26 0x2D0-0x2D4 A count of error-free frames received that contained the MAC Control type identifier 88-08 in the Length/Type field but were received with an opcode other than the PAUSE (legacy) opcode or the Priority Flow Control opcode (when the core is generated with Priority Flow Control support).
TX Good Frames 27 0x2D8-0x2DC A count of error-free frames transmitted.
TX Good Broadcast Frames 28 0x2E0-0x2E4 A count of error-free frames that were transmitted to the broadcast address.
TX Good Multicast Frames 29 0x2E8-0x2EC A count of error-free frames that were transmitted to a group destination address other than broadcast.
TX Good Underrun Errors 30 0x2F0-0x2F4 A count of frames that would otherwise be transmitted by the core but could not be completed due to the assertion of TX_UNDERRUN during the frame transmission.
TX Good Control Frames 31 0x2F8-0x2FC A count of error-free frames transmitted that contained the MAC Control Frame type identifier 88-08 in the length/type field.

TX Good VLAN

Tagged Frames

32 0x300-0x304 A count of error-free VLAN frames transmitted. This counter only increments when the transmitter is configured for VLAN operation.
TX Good Pause Frames 33 0x308-0x30C A count of error-free PAUSE frames generated and transmitted by the MAC in response to an assertion of pause_req.
TX Single Collision Frames 34 0x310-0x314 A count of frames involved in a single collision but subsequently transmitted successfully (half-duplex mode only).
TX Multiple Collision Frames 35 0x318-0x31C A count of frames involved in more than one collision but subsequently transmitted successfully (half-duplex mode only).
TX Deferred 36 0x320-0x324 A count of frames whose transmission was delayed on its first attempt because the medium was busy (half-duplex mode only).
TX Late Collisions 37 0x328-0x32C A count of the times that a collision has been detected later than one slot Time from the start of the packet transmission. A late collision is counted twice—both as a collision and as a late Collision (half-duplex mode only).
TX Excess Collisions 38 0x330-0x334 A count of the frames that, due to excessive collisions, are not transmitted successfully (half-duplex mode only).
TX Excess Deferral 39 0x338-0x33C A count of frames that deferred transmission for an excessive period of time (half-duplex mode only).
RX Alignment Errors 40 0x340-0x344 Asserted for received frames of size 64-bytes and greater which contained an odd number of received nibbles and which also contained an invalid FCS field (half-duplex mode only).
TX Good PFC Frames 41 0X348-0X34C A count of error-free frames transmitted that contained the MAC Control Frame type identifier 88-08 in the length/type field and PFC opcode 01-01.
RX Good PFC Frames 42 0X350-0X354 A count of error-free frames received that contained the MAC Control type identifier 88-08 in the length/type field, a destination address that matched either the MAC Control multicast address or the configured source address of the MAC, the PFC opcode, and were acted upon by the MAC.
  1. All bits are read-only.