09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

is a 32-bit value coded by the following polynomial (for more details refer to Section 29.5.3:<br />

MAC frame reception):<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 most significant bit determines the register to be used (hash table high/hash table low),<br />

and the other 5 bits determine which bit within the register. A hash value of 0b0 0000 selects<br />

bit 0 in the selected register, and a value of 0b1 1111 selects bit 31 in the selected register.<br />

For example, if the DA of the incoming frame is received as 0x1F52 419C B6AF (0x1F is the<br />

first byte received on the MII interface), then the internally calculated 6-bit Hash value is<br />

0x2C and the HTH register bit[12] is checked for filtering. If the DA of the incoming frame is<br />

received as 0xA00A 9800 0045, then the calculated 6-bit Hash value is 0x07 and the HTL<br />

register bit[7] is checked for filtering.<br />

If the corresponding bit value in the register is 1, the frame is accepted. Otherwise, it is<br />

rejected. If the PAM (pass all multicast) bit is set in the ETH_MACFFR register, then all<br />

multicast frames are accepted regardless of the multicast hash values.<br />

The Hash table high register contains the higher 32 bits of the multicast Hash table.<br />

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

HTH<br />

rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw<br />

Bits 31:0 HTH: Hash table high<br />

This field contains the upper 32 bits of Hash table.<br />

Ethernet MAC hash table low register (ETH_MACHTLR)<br />

Address offset: 0x000C<br />

Reset value: 0x0000 0000<br />

The Hash table low register contains the lower 32 bits of the multi-cast Hash table.<br />

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

Ethernet MAC MII address register (ETH_MACMIIAR)<br />

Address offset: 0x0010<br />

Reset value: 0x0000 0000<br />

The MII address register controls the management cycles to the external PHY through the<br />

management interface.<br />

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

HTL<br />

rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw<br />

Bits 31:0 HTL: Hash table low<br />

This field contains the lower 32 bits of the Hash table.<br />

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

Reserved<br />

PA MR<br />

Reserved<br />

CR MW MB<br />

rw rw rw rw rw rw rw rw rw rw rw rw rw rw rc_<br />

w1

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

Saved successfully!

Ooh no, something went wrong!