Texas Instruments TMS320DM643X DMP 사용자 설명서

다운로드
페이지 120
www.ti.com
2.8.1.4
Transmit DMA Engine
2.8.1.5
Transmit FIFO
2.8.1.6
MAC Transmitter
2.8.1.7
Statistics Logic
2.8.1.8
State RAM
2.8.1.9
EMAC Interrupt Controller
2.8.1.10
Control Registers and Logic
2.8.1.11
Clock and Reset Logic
2.8.2
EMAC Module Operational Overview
Peripheral Architecture
The transmit DMA engine is the interface between the transmit FIFO and the CPU. It interfaces to the
CPU through the bus arbiter in the EMAC control module.
The transmit FIFO consists of three cells of 64–bytes each and associated control logic. The FIFO buffers
data in preparation for transmission.
The MAC transmitter formats frame data from the transmit FIFO and transmits the data using the
CSMA/CD access protocol. The frame CRC can be automatically appended, if required. The MAC
transmitter also detects transmission errors and passes statistics to the statistics registers.
The Ethernet statistics are counted and stored in the statistics logic RAM. This statistics RAM keeps track
of 36 different Ethernet packet statistics.
State RAM contains the head descriptor pointers and completion pointers registers for both transmit and
receive channels.
The interrupt controller contains the interrupt related registers and logic. The 18 raw EMAC interrupts are
input to this submodule and masked module interrupts are output.
The EMAC is controlled by a set of memory-mapped registers. The control logic also signals transmit,
receive, and status related interrupts to the CPU through the EMAC control module.
The clock and reset submodule generates all the EMAC clocks and resets. For more details on reset
capabilities, see
After reset, initialization, and configuration, the host may initiate transmit operations. Transmit operations
are initiated by host writes to the appropriate transmit channel head descriptor pointer contained in the
state RAM block. The transmit DMA controller then fetches the first packet in the packet chain from
memory. The DMA controller writes the packet into the transmit FIFO in bursts of 64-byte cells. When the
threshold number of cells, configurable using the TXCELLTHRESH bit in the FIFO control register
(FIFOCONTROL), have been written to the transmit FIFO, or a complete packet, whichever is smaller, the
MAC transmitter then initiates the packet transmission. The SYNC block transmits the packet over the MII
interfaces in accordance with the 802.3 protocol. Transmit statistics are counted by the statistics block.
Receive operations are initiated by host writes to the appropriate receive channel head descriptor pointer
after host initialization and configuration. The SYNC submodule receives packets and strips off the
Ethernet related protocol. The packet data is input to the MAC receiver, which checks for address match
and processes errors. Accepted packets are then written to the receive FIFO in bursts of 64-byte cells.
The receive DMA controller then writes the packet data to memory. Receive statistics are counted by the
statistics block.
34
Ethernet Media Access Controller (EMAC)/
SPRU941A – April 2007
Management Data Input/Output (MDIO)