09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Ethernet (ETH): media access control (MAC) with DMA controller <strong>RM0090</strong><br />

destination address, QTag prefix, length/type, LLC data and PAD (that is, all fields<br />

except the preamble, SFD). The generating polynomial is the following:<br />

Gx ( ) x 32<br />

x 26<br />

x 23<br />

x 22<br />

x 16<br />

x 12<br />

x 11<br />

x 10<br />

x 8<br />

x 7<br />

x 5<br />

x 4<br />

x 2<br />

= + + + + + + + + + + + + + x + 1<br />

The CRC value of a frame is computed as follows:<br />

● The first 2 bits of the frame are complemented<br />

● The n-bits of the frame are the coefficients of a polynomial M(x) of degree (n – 1). The<br />

first bit of the destination address corresponds to the x n – 1 term and the last bit of the<br />

data field corresponds to the x 0 term<br />

● M(x) is multiplied by x 32 and divided by G(x), producing a remainder R(x) of degree<br />

≤ 31<br />

● The coefficients of R(x) are considered as a 32-bit sequence<br />

● The bit sequence is complemented and the result is the CRC<br />

● The 32-bits of the CRC value are placed in the frame check sequence. The x 32 term is<br />

the first transmitted, the x 0 term is the last one<br />

Figure 330. MAC frame format<br />

46-1500 bytes<br />

7 bytes<br />

1 byte<br />

6 bytes<br />

6 bytes<br />

2 bytes<br />

4 bytes<br />

Preamble<br />

SFD<br />

Destination address<br />

Source address<br />

MAC client length/type<br />

MAC client data<br />

PAD<br />

Frame check sequence<br />

MSB LSB<br />

Bit transmission order (right to left)<br />

913/1416 Doc ID 018909 Rev 3<br />

Bytes within<br />

frame transmitted<br />

top to bottom<br />

ai15629

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!