10.7 EMAC Configuration Register Summary

Table 10-4 shows that each descriptor comprises a sequence of three 32-bit memory locations.

The following table summarizes each of the registers covered in this document. The EMAC base address is 0x40041000.

Table 10-13. EMAC M-AHB Register Map
Register NameAddress OffsetRegister TypeReset ValueDescription
Table 10-200x180R/W0x0Transmit control register
Table 10-210x184R/W0x0Pointer to transmit descriptor
Table 10-220x188R/W0x0Transmit status register
Table 10-230x18CR/W0x0Receive control register
Table 10-240x190R/W0x0Pointer to receive descriptor
Table 10-250x194R/W0x0Receive status register
Table 10-260x198R/W0x0Interrupt mask register
Table 10-270x19CRO0x0Interrupts register
Table 10-14. EMAC PE-MCXMAC Register Map
Register NameAddress OffsetRegister TypeReset ValueDescription
Table 10-280x00R/W0x80000000MAC configuration register
Table 10-290x04R/W0x00007000MAC configuration register
Table 10-300x08R/W0x40605060Inter packet gap and interframe gap register
Table 10-310x0CR/W0x00A1F037Definition of half-duplex register
Table 10-320x10R/W0x00000600Sets the maximum frame size in both transmit and receive directions.
Reserved0x14R/W0x0Reserved
Reserved0x18R/W0x0Reserved
Table 10-330x1CR/W0x0This test bit is used to predict back off times in Half-duplex mode.

This allows the MAC to be paused for testing purpose only.

Table 10-340x20R/W0x0This resets MII MGMT, determines MGMT clock frequency, and causes the MII MGMT to suppress preamble generation.
Table 10-350x24R/W0x0MONITORS link fails
Table 10-360x28R/W0x0This represents 5-bit PHY address field and 5-bit register address field.
Table 10-370x2CWO0x0Control register for MII management write cycle that uses 16-bit data and the pre-configured PHY and register addresses.
Table 10-380x30RO0x0Following an MII Mgmt read cycle, the 16-bit data can be read from this location.
Table 10-390x34RO0x0This indicates MII management block is currently performing an MII Mgmt read or write cycle.
Table 10-400x38R/W0x0This configures PERMII for 10 Mbps or 100 Mbps speed.
Table 10-410x3CRO0x0This indicates the serial MII PHY has detected a jabber condition on the link.

This also indicates the serial MII PHY has detected a valid link.

This indicates the serial MII PHY is operating in full-duplex mode.

Table 10-420x40R/W0x0The register fields hold the station address. Station address is the 48-bit programmed receive frame’s destination address.
Table 10-430x44R/W0x0The register fields hold the station address. The station address is the 48-bit programmed receive frame’s destination address.
Table 10-15. EMAC A-MCXFIFO Register Map
Register NameAddress OffsetRegister TypeReset ValueDescription
Table 10-440x48R/W0x0Definition of A-MCXFIFO configuration register 0
Table 10-450x4CR/W0x0FFFFFFFDefinition of A-MCXFIFO configuration register 1
Table 10-460x50R/W0x1FFF1FFFDefinition of A-MCXFIFO configuration register 2
Table 10-470x54R/W0xFFF0FFFDefinition of A-MCXFIFO configuration register 3
Table 10-480x58R/W0x0Definition of A-MCXFIFO configuration register 4
Table 10-490x5CR/W0x3FFFFDefinition of A-MCXFIFO configuration register 5
Table 10-500x60R/W0x0The FIFO RAM access register 0 is intended for non-real-time RAM testing and debug
Table 10-510x64R/W0x0The FIFO RAM access register 1 is intended for non-real-time RAM testing and debug
Table 10-520x68R/W0x0The FIFO RAM access register 2 is intended for non-real-time RAM testing and debug
Table 10-530x6CRO0x0The FIFO RAM access register 3 is intended for non-real-time RAM testing and debug
Table 10-540x70R/W0x0The FIFO RAM access register 4 is intended for non-real-time RAM testing and debug
Table 10-550x74R/W0x0The FIFO RAM access register 5 is intended for non-real-time RAM testing and debug
Table 10-560x78R/W0x0The FIFO RAM access register 6 is intended for non-real-time RAM testing and debug
Table 10-570x7CRO0x0The FIFO RAM access register 7 is intended for non-real-time RAM testing and debug
Table 10-16. EMAC PE-MSTAT Transmit and Receive Counters Register Map
Register NameAddress OffsetRegister TypeReset ValueDescription
Table 10-580x80R/W0x0Transmit and receive 64 byte frame counter
Table 10-590x84R/W0x0Transmit and receive 65 to127 byte frame counter
Table 10-600x88R/W0x0Transmit and receive 128 to 255 byte frame counter
Table 10-610x8CR/W0x0Transmit and receive 256 to 511 byte frame counter
Table 10-620x90R/W0x0Transmit and receive 512 to 1023 byte frame counter
Table 10-630x94R/W0x0Transmit and receive 1024 to 1518 byte frame counter
Table 10-640x98R/W0x0Transmit and receive 1519 to 1522 byte good VLAN frame count
Table 10-17. EMAC PE-MSTAT Receive Counters Register Map
Register NameAddress OffsetRegister TypeReset ValueDescription
Table 10-650x9CR/W0x0The statistic counter register is incremented by the byte count of all frames received.
Table 10-660XA0R/W0x0Incremented for each frame received packet.
Table 10-670XA4R/W0x0This is incremented for each frame received that has an integral 64 to 1518 length and contains a frame check sequence error.
Table 10-680XA8R/W0x0This is incremented for each multicast good frame of lengths smaller than 1518 (non VLAN) or 1522 (VLAN) excluding broadcast frames.
Table 10-690xACR/W0x0This is incremented for each broadcast good frame of lengths smaller than 1518 (non VLAN) or 1522 (VLAN) excluding multicast frames.
Table 10-700XB0R/W0x0This is incremented for each MAC control frame received.
Table 10-710XB4R/W0x0This is incremented each time a valid PAUSE MAC control frame is received.
Table 10-720XB8R/W0x0This is incremented each time a MAC control frame is received, which contains an op code other than a PAUSE.
Table 10-730xBCR/W0x0This is incremented for each received frame from 64 to 1518, which contains an invalid FCS and is not an integral number of bytes.
Table 10-740XC0R/W0x0This is incremented for each frame received in which the 802.3 length field does not match the number of data bytes actually received (46 – 1500 bytes).
Table 10-750XC4R/W0x0This is incremented each time a valid carrier is present and at least one invalid data symbol is detected.
Table 10-760XC8R/W0x0This is incremented each time a false carrier is detected.
Table 10-770xCCR/W0x0This is incremented each time a frame is received, which is less than 64 bytes in length and contains a valid frame check sequence (FCS).
Table 10-780xD0R/W0x0This is incremented each time a frame is received, which exceeds1518 (non VLAN) or 1522 (VLAN) bytes and contains a valid FCS.
Table 10-790xD4R/W0x0This is incremented for each frame received, which is less than 64 bytes in length and contains an invalid FCS.
Table 10-800xD8R/W0x0This is incremented for frames received, which exceed 1518 (non VLAN) or 1522 (VLAN) bytes and contains an invalid FCS.
Table 10-810xDCR/W0x0This is incremented for frames received, which are streamed to system but are later dropped due to lack of system resources.
Table 10-18. EMAC PE-MSTAT Transmit Counters Register Map
Register NameAddress OffsetRegister TypeReset ValueDescription
Table 10-820XE0R/W0x0This is incremented for each transmitted byte including fragments of frames which are involved in collisions.
Table 10-830XE4R/W0x0This is incremented for each transmitted packet.
Table 10-840XE8R/W0x0This is incremented for each transmitted multicast valid frame.
Table 10-850xECR/W0x0This is incremented for each transmitted broadcast frame.
Table 10-860XF0R/W0x0This is incremented each time a valid PAUSE MAC control frame is transmitted.
Table 10-870XF4R/W0x0This incremented for each frame, which is deferred on its first transmission attempt.
Table 10-880XF8R/W0x0This is incremented for aborted frames, which are deferred for an excessive period of time (3036 byte times).
Table 10-890xFCR/W0x0This is incremented for each transmitted frame that experiences exactly one collision during the transmission.
Table 10-900x100R/W0x0This is incremented for each transmitted frame that experiences 2 to 15 collisions (including any late collisions) during the transmission.
Table 10-910x104R/W0x0This is incremented for each transmitted frame that experiences a late collision during a transmission attempt.
Table 10-920x108R/W0x0This is incremented for each frame that experiences 16 collisions during the transmission and is aborted.
Table 10-930x10CR/W0x0This is incremented by the number of collisions experienced during the transmission of a frame.
Table 10-940x110R/W0x0This is incremented each time a valid PAUSE MAC control frame is transmitted and honored.
Table 10-950x114R/W0x0This is incremented each time PAUSE frame is honored.
Table 10-960x118R/W0x0This is incremented for each oversized transmitted frame with an incorrect FCS value.
Table 10-970x11CR/W0x0This is incremented for each valid sized packet with an incorrect FCS value.
Table 10-980x120R/W0x0This is incremented for each valid size frame with a Type Field signifying a Control frame.
Table 10-990x124R/W0x0This is incremented for each oversized transmitted frame with a correct FCS value.
Table 10-1000x128R/W0x0This is incremented for each frame which is less than 
64 bytes with a correct FCS value.
Table 10-1010x12CR/W0x0This is incremented for each frame which is less than 
64 bytes, with an incorrect FCS value.
Table 10-1020x130RO0x0This indicates the transmit and receive counters and the receive counters carry the bits. The carry register bits are cleared on carry register write when the respective bit is asserted.
Table 10-1030x134RO0x0This indicates the transmit counters carry bits. The carry register bits are cleared on carry register write when the respective bit is asserted.
Table 10-1040x138R/W0xFE01FFFFThe rollover condition of each transmit and receive counter and receive counters can be discreetly masked from causing an interrupt by internal masking.
Table 10-1050x13CR/W0xFFFFFThe rollover condition of each transmit counter can be discreetly masked from causing an interrupt by internal masking.
Table 10-19. EMAC M-SGMII Register Map
Register NameAddress OffsetRegister TypeReset ValueDescription
Table 10-1060x00R/W0x0This enables the loopback and the auto-negotiation.

The PHY address for the M-SGMII is 0x1E.

Table 10-1070x01RO0x0001This enables the MF PREMABLE suppression enable. This indicates the auto-negotiation complete, associated PHY auto-negotiation ability, and link status.

The PHY address for the M-SGMII is 0x1E.

RESERVED0x02R/W0x0Reserved
RESERVED0x03R/W0x0Reserved
Table 10-1080x04R/W0x0This indicates that the link is up when the M-SGMII is integrated into a PHY and is communicating with the SGMII module in a MAC. It also indicates the link is transferring data in full-duplex mode and link speed.

The PHY address for the M-SGMII is 0x1E.

Table 10-1090x05RO-This indicates that the link is transferring data in 
full-duplex mode. This also indicates the speed of the link.

The PHY address for the M-SGMII is 0x1E.

Table 10-1100x06RO0x0This indicates that the device supports the next page function.

This also indicates that the new page is received and stored in the applicable AN LINK PARTNER ABILITY or AN NEXT PAGE register.

The PHY address for the M-SGMII is 0x1E.

Table 10-1110x07R/W0x0This indicates the additional next pages to follow and message page.

Message pages are formatted pages, which carry a predefined message code that is enumerated in IEEE® 802.3u/Annex 28C.

The PHY address for the M-SGMII is 0x1E.

Table 10-1120x08RO-The link partner asserts this bit to indicate additional Next Pages to follow.

This indicates the message page and the link partner’s ability to comply with the message.

The PHY address for the M-SGMII is 0x1E.

Table 10-1130x0FRO0xA000This indicates that the PHY can be operated in 1000BASE-X FULL-DUPLEX, 1000BASE-X HALF-DUPLEX, 1000BASE-T FULL-DUPLEX, 1000BASE-T HALF-DUPLEX.

The PHY address for the M-SGMII is 0x1E.

Table 10-1140x10R/W0x0This enables the M-SGMII to transmit the jitter test patterns, which are defined in the IEEE 802.3z 36A.

This selects the jitter pattern that is to be transmitted in diagnostics mode.

The PHY address for the M-SGMII is 0x1E.

Table 10-1150x11R/W0x0This allows the auto-negotiation function to sense either a gigabit MAC in the auto-negotiation bypass mode or an older gigabit MAC without the auto-negotiation capability.

This defines the M-SGMII as being in 1000BASE-X or SerDes mode.

This allows the SerDes PHY to perform the code group alignment based upon the detection of a comma.

The PHY address for the M-SGMII is 0x1E.

The following code snippet shows the minimal configuration required for MAC to make it functional in 1000 Mbps mode of operation.

CFG1= 32'h0000_0035 //Rx/Tx flow control enable, Rx/Tx-Enable
CFG2 = 32'h0000_7202 //Preamble=7, byteMode, CRC-enable
STATION_ADDRESS1 = 32'hA5A4_A3A2 //Station Address 1-4
STATION_ADDRESS2 = 32'hA1A0_0000 //Station Address 5-6
FIFO_CFG0 = 32'h0000_FF00 //Enable FIFO transmit and receive modules
FIFO_CFG3 = 32'h007F_FFFF // Tx-FIFO high watermark=128