5 scc ethernet channel frame reception, 6 the content-addressable memory (cam) interface, Scc ethernet channel frame reception -6 – Freescale Semiconductor MPC8260 User Manual

Page 790: The content-addressable memory (cam) interface -6

Advertising
background image

SCC Ethernet Mode

MPC8260 PowerQUICC II Family Reference Manual, Rev. 2

25-6

Freescale Semiconductor

25.5

SCC Ethernet Channel Frame Reception

The Ethernet receiver handles address recognition and performs CRC, short frame, maximum DMA
transfer, and maximum frame length checking with almost no core intervention. When the core enables the
Ethernet receiver, it enters hunt mode as soon as RENA is asserted while CLSN is negated. In hunt mode,
as data is shifted into the receive shift register one bit at a time, the register contents are compared to the
contents of the SYN1 field in the data synchronization register (DSR). This compare function becomes
valid a certain number of clocks after the start of the frame (depending on PSMR[NIB]). If the two are not
equal, the next bit is shifted in and the comparison is repeated. If a double-zero or double-one fault is
detected between bits 14 to 21 from the first received preamble bit, the frame is rejected. If a double-zero
fault is detected after 21 bits from the first received preamble bit and before detection of the start frame
delimiter (SFD), the frame is also rejected. When the incoming pattern is not rejected and matches the
DSR, the SFD has been detected; hunt mode is terminated and character assembly begins.

When the receiver detects the first bytes of the frame, the Ethernet controller performs address recognition
on the frame. The receiver can receive physical (individual), group (multicast), and broadcast addresses.
Ethernet receive frame data is not written to memory until the internal address recognition process
completes, which improves bus usage with frames not addressed to this station.

If a match is found, the Ethernet controller fetches the next RxBD and, if it is empty, starts transferring the
incoming frame to the RxBD associated data buffer. If a collision is detected during the frame, the RxBDs
associated with this frame are reused. Thus, there will be no collision frames presented to you except late
collisions, which indicate serious LAN problems. When the data buffer has been filled, the Ethernet
controller clears the E bit in the RxBD and generates an interrupt if the I bit is set. If the incoming frame
exceeds the length of the data buffer, the Ethernet controller fetches the next RxBD in the table and, if it
is empty, continues transferring the rest of the frame to this buffer. The RxBD length is determined by
MRBLR in the SCC general-purpose parameter RAM, which should be at least 64 bytes.

During reception, the Ethernet controller checks for a frame that is either too short or too long. When the
frame ends, the receive CRC field is checked and written to the buffer. The data length written to the last
BD in the Ethernet frame is the length of the entire frame and it enables the software to correctly recognize
the frame-too-long condition.

The Ethernet controller then sets the L bit in the RxBD, writes the other frame status bits into the RxBD,
and clears the E bit. Then it generates a maskable interrupt, which indicates that a frame has been received
and is in memory. The Ethernet controller then waits for a new frame. It receives serial data
least-significant bit first.

25.6

The Content-Addressable Memory (CAM) Interface

The Ethernet controller has one option for connecting to an external CAM—a serial interface. The reject
signal (REJECT) is used to signify that the current frame should be discarded. The PowerQUICC II’s
internal address recognition logic can be used in combination with an external CAM. See

Section 25.10,

“SCC Ethernet Address Recognition.

The PowerQUICC II outputs a receive start (RSTRT) signal when the start frame delimiter is recognized.
This signal is asserted for one bit time on the second destination address bit. The CAM control logic uses
RSTRT (in combination with the RXD and RCLK signals) to store the destination or source address and

Advertising