
www.ti.com | EMAC Functional Architecture |
•Initialize the TXnHDP registers to zero.
•Enable the desired transmit interrupts using the TXINTMASKSET and TXINTMASKCLEAR registers.
•Set the appropriate configuration bits in the MACCONTROL register.
•Set up the transmit channel(s) buffer descriptors in host memory.
•Enable the transmit DMA controller by setting the TXEN bit in the TXCONTROL register.
•Write the appropriate TXnHDP registers with the pointer to the first descriptor to start transmit operations.
2.12.2Transmit Channel Teardown
The host commands a transmit channel teardown by writing the channel number to the TXTEARDOWN register. When a teardown command is issued to an enabled transmit channel, the following occurs:
•Any frame currently in transmission completes normally.
•The TDOWNCMPLT flag is set in the next SOP buffer descriptor in the chain, if there is one.
•The channel head descriptor pointer is cleared.
•A transmit interrupt is issued, informing the host of the channel teardown.
•The corresponding TXnCP register contains the value FFFF FFFCh.
•The host should acknowledge a teardown interrupt with an FFFF FFFCh acknowledge value.
Channel teardown may be commanded on any channel at any time. The host is informed of the teardown completion by the set teardown complete buffer descriptor bit (TDOWNCMPLT). The EMAC does not clear any channel enables due to a teardown command. A teardown command to an inactive channel issues an interrupt that software should acknowledge with an FFFF FFFCh acknowledge value to TXnCP (note that there is no buffer descriptor). Software may read the interrupt acknowledge location (TXnCP) to determine if the interrupt was due to a commanded teardown. The read value is FFFF FFFCh if the interrupt was due to a teardown command.
2.13 Receive and Transmit Latency
The transmit FIFO contains twenty four
Transmit underrun cannot occur for packet sizes of TXCELLTHRESH times 64 bytes (or less). For larger packet sizes, transmit underrun can occur if the memory latency is greater than the time required to transmit a
The EMAC transmit FIFO uses 24 cells; thus, underrun cannot happen for a normal size packet (less than 1536 packet bytes). Cell transmission can be configured to start only after an entire packet is contained in the FIFO; for a
Receive overrun is prevented if the receive memory cell latency is less than the time required to transmit a
Latency to system'sinternal and external RAM can be controlled through the use of the transfer node priority allocation register in the TCI6486/C6472 devices. Latency to descriptor RAM is low because RAM is local to the EMAC, as it is part of the CPPI buffer manager.
2.14 Transfer Node Priority
The TCI6486/C6472 devices contain a
Although the EMAC has internal FIFOs to help alleviate memory transfer arbitration problems, the average transfer rate of data read and written by the EMAC to internal or external DSP memory must be at least equal to the Ethernet wire rate. In addition, the internal FIFO system cannot withstand a single memory latency event greater than the time it takes to fill or empty a TXCELLTHRESH number of internal
SPRUEF8F | C6472/TCI6486 EMAC/MDIO | 63 |
Submit Documentation Feedback |
|
|
Copyright ©