MAC_Configuration
Module Instance | Base Address | Register Address |
---|---|---|
emac0 | 0xFF700000 | 0xFF700000 |
emac1 | 0xFF702000 | 0xFF702000 |
Offset: 0x0
Access: RW
Bit Fields | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
Reserved |
twokpe RW 0x0 |
Reserved |
cst RW 0x0 |
tc RW 0x0 |
wd RW 0x0 |
jd RW 0x0 |
be RW 0x0 |
je RW 0x0 |
ifg RW 0x0 |
dcrs RW 0x0 |
|||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
ps RW 0x0 |
fes RW 0x0 |
do RW 0x0 |
lm RW 0x0 |
dm RW 0x0 |
ipc RW 0x0 |
dr RW 0x0 |
lud RW 0x0 |
acs RW 0x0 |
bl RW 0x0 |
dc RW 0x0 |
te RW 0x0 |
re RW 0x0 |
prelen RW 0x0 |
MAC_Configuration Fields
Bit | Name | Description | Access | Reset | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
27 | twokpe | When set, the MAC considers all frames, with up to 2,000 bytes length, as normal packets. When Bit 20 (Jumbo Enable) is not set, the MAC considers all received frames of size more than 2K bytes as Giant frames. When this bit is reset and Bit 20 (Jumbo Enable) is not set, the MAC considers all received frames of size more than 1,518 bytes (1,522 bytes for tagged) as Giant frames. When Bit 20 (Jumbo Enable) is set, setting this bit has no effect on Giant Frame status. |
RW | 0x0 | ||||||||||||||||||
25 | cst | When set, the last 4 bytes (FCS) of all frames of Ether type (type field greater than 0x0600) are stripped and dropped before forwarding the frame to the application. This function is not valid when the IP Checksum Engine (Type 1) is enabled in the MAC receiver.
|
RW | 0x0 | ||||||||||||||||||
24 | tc | When set, this bit enables the transmission of duplex mode, link speed, and link up or down information to the PHY in the RGMII. When this bit is reset, no such information is driven to the PHY.
|
RW | 0x0 | ||||||||||||||||||
23 | wd | When this bit is set, the MAC disables the watchdog timer on the receiver. The MAC can receive frames of up to 16,384 bytes. When this bit is reset, the MAC does not allow more than 2,048 bytes (10,240 if JE is set high) of the frame being received. The MAC cuts off any bytes received after 2,048 bytes.
|
RW | 0x0 | ||||||||||||||||||
22 | jd | When this bit is set, the MAC disables the jabber timer on the transmitter. The MAC can transfer frames of up to 16,384 bytes. When this bit is reset, the MAC cuts off the transmitter if the application sends out more than 2,048 bytes of data (10,240 if JE is set high) during transmission.
|
RW | 0x0 | ||||||||||||||||||
21 | be | When this bit is set, the MAC allows frame bursting during transmission in the GMII half-duplex mode.
|
RW | 0x0 | ||||||||||||||||||
20 | je | When this bit is set, the MAC allows Jumbo frames of 9,018 bytes (9,022 bytes for VLAN tagged frames) without reporting a giant frame error in the receive frame status.
|
RW | 0x0 | ||||||||||||||||||
19:17 | ifg | These bits control the minimum IFG between frames during transmission. In the half-duplex mode, the minimum IFG can be configured only for 64 bit times (IFG = 100). Lower values are not considered. In the 1000-Mbps mode, the minimum IFG supported is 80 bit times (and above).
|
RW | 0x0 | ||||||||||||||||||
16 | dcrs | When set high, this bit makes the MAC transmitter ignore the (G)MII CRS signal during frame transmission in the half-duplex mode. This request results in no errors generated because of Loss of Carrier or No Carrier during such transmission. When this bit is low, the MAC transmitter generates such errors because of Carrier Sense and can even abort the transmissions.
|
RW | 0x0 | ||||||||||||||||||
15 | ps | This bit selects between GMII and MII
|
RW | 0x0 | ||||||||||||||||||
14 | fes | This bit selects the speed in the RGMII interface: * 0: 10 Mbps * 1: 100 Mbps This bit generates link speed encoding when TC (Bit 24) is set in the RGMII, SMII, or SGMII mode.
|
RW | 0x0 | ||||||||||||||||||
13 | do | When this bit is set, the MAC disables the reception of frames when the gmii_txen_o is asserted in the half-duplex mode. When this bit is reset, the MAC receives all packets that are given by the PHY while transmitting. This bit is not applicable if the MAC is operating in the full-duplex mode.
|
RW | 0x0 | ||||||||||||||||||
12 | lm | When this bit is set, the MAC operates in the loopback mode at GMII or MII. The (G)MII Receive clock input is required for the loopback to work properly, because the Transmit clock is not looped-back internally.
|
RW | 0x0 | ||||||||||||||||||
11 | dm | When this bit is set, the MAC operates in the full-duplex mode where it can transmit and receive simultaneously.
|
RW | 0x0 | ||||||||||||||||||
10 | ipc | When this bit is set, the MAC calculates the 16-bit ones complement of the ones complement sum of all received Ethernet frame payloads. It also checks whether the IPv4 Header checksum (assumed to be bytes 2526 or 2930 (VLAN-tagged) of the received Ethernet frame) is correct for the received frame and gives the status in the receive status word. The MAC also appends the 16-bit checksum calculated for the IP header datagram payload (bytes after the IPv4 header) and appends it to the Ethernet frame transferred to the application (when Type 2 COE is deselected). When this bit is reset, this function is disabled. When Type 2 COE is selected, this bit, when set, enables the IPv4 header checksum checking and IPv4 or IPv6 TCP, UDP, or ICMP payload checksum checking. When this bit is reset, the COE function in the receiver is disabled and the corresponding PCE and IP HCE status bits are always cleared.
|
RW | 0x0 | ||||||||||||||||||
9 | dr | When this bit is set, the MAC attempts only one transmission. When a collision occurs on the GMII or MII interface, the MAC ignores the current frame transmission and reports a Frame Abort with excessive collision error in the transmit frame status. When this bit is reset, the MAC attempts retries based on the settings of the BL field (Bits [6:5]). This bit is applicable only in the half-duplex mode.
|
RW | 0x0 | ||||||||||||||||||
8 | lud | This bit indicates whether the link is up or down during the transmission of configuration in the RGMII, SGMII, or SMII interface
|
RW | 0x0 | ||||||||||||||||||
7 | acs | When this bit is set, the MAC strips the Pad or FCS field on the incoming frames only if the value of the length field is less than 1,536 bytes. All received frames with length field greater than or equal to 1,536 bytes are passed to the application without stripping the Pad or FCS field. When this bit is reset, the MAC passes all incoming frames, without modifying them, to the Host.
|
RW | 0x0 | ||||||||||||||||||
6:5 | bl | The Back-Off limit determines the random integer number (r) of slot time delays (4,096 bit times for 1000 Mbps and 512 bit times for 10/100 Mbps) for which the MAC waits before rescheduling a transmission attempt during retries after a collision. This bit is applicable only in the half-duplex mode. * 00: k = min (n, 10) * 01: k = min (n, 8) * 10: k = min (n, 4) * 11: k = min (n, 1) where <i> n </i>= retransmission attempt. The random integer <i> r </i> takes the value in the range 0 <= r < kth power of 2
|
RW | 0x0 | ||||||||||||||||||
4 | dc | When this bit is set, the deferral check function is enabled in the MAC. The MAC issues a Frame Abort status, along with the excessive deferral error bit set in the transmit frame status, when the transmit state machine is deferred for more than 24,288 bit times in the 10 or 100 Mbps mode. If the MAC is configured for 1000 Mbps operation, or if the Jumbo frame mode is enabled in the 10 or 100 Mbps mode, the threshold for deferral is 155,680 bits times. Deferral begins when the transmitter is ready to transmit, but is prevented because of an active carrier sense signal (CRS) on GMII or MII. Defer time is not cumulative. When the transmitter defers for 10,000 bit times, it transmits, collides, backs off, and then defers again after completion of back-off. The deferral timer resets to 0 and restarts. When this bit is reset, the deferral check function is disabled and the MAC defers until the CRS signal goes inactive. This bit is applicable only in the half-duplex mode.
|
RW | 0x0 | ||||||||||||||||||
3 | te | When this bit is set, the transmit state machine of the MAC is enabled for transmission on the GMII or MII. When this bit is reset, the MAC transmit state machine is disabled after the completion of the transmission of the current frame, and does not transmit any further frames.
|
RW | 0x0 | ||||||||||||||||||
2 | re | When this bit is set, the receiver state machine of the MAC is enabled for receiving frames from the GMII or MII. When this bit is reset, the MAC receive state machine is disabled after the completion of the reception of the current frame, and does not receive any further frames from the GMII or MII.
|
RW | 0x0 | ||||||||||||||||||
1:0 | prelen | These bits control the number of preamble bytes that are added to the beginning of every Transmit frame. The preamble reduction occurs only when the MAC is operating
|
RW | 0x0 |