28.06.2015 Views

AR8327/AR8327N Seven-port Gigabit Ethernet Switch - La Fibre

AR8327/AR8327N Seven-port Gigabit Ethernet Switch - La Fibre

AR8327/AR8327N Seven-port Gigabit Ethernet Switch - La Fibre

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.

Table 2-20. Enhanced MAC Pattern Mask<br />

14:13 TYPE MASK<br />

15 Reserved<br />

16 [7:6] RULE VALID 2'b00:start; 2'b01:continue; 2'b10:end; 2'b11:start&end<br />

[5] FRAME WITH CTAG<br />

MASK<br />

[4]<br />

FRAME_WITH_CTAG<br />

1'b1: consider FRAME_WITH_CTAG<br />

1'b0: ignore FRAME_WITH_CTAG<br />

1'b1: frame with CTAG<br />

1'b0: frame without CTAG<br />

[3] CVID MASK 1'b1:mask;1'b0:range<br />

[2:0] RULE TYPE These three bits must be 3'b111 to indicate the Enhanced MAC Rule.<br />

2.8 Register Access<br />

The MDIO interface allows users to access the <strong>Switch</strong> internal registers and MII registers. The figure<br />

shown below is the format to access MII registers in the embedded PHY. The PHY address is from<br />

0x00 up to 0x04. The Op code “10” indicates the read command and “01” is the write command.<br />

The <strong>Switch</strong> internal registers are 32-bits wide, but the MDIO access is only 16-bits wide. So it needs 2<br />

times access to complete the internal registers access. Moreover the address spacing is more than 10<br />

bits sup<strong>port</strong>ed by MDIO, So it needs to write the upper address bits to internal registers, like page<br />

mode access method. For example, the register address bit 18 to 9 are treated as page address and will<br />

be written out first as High_addr[9:0], refer the Table 1 below. Then the register could be accessed via<br />

Tables 2, where Low_addr[7:1] is the address bit [8:2] of register and Low_add[0] is 0 for Data[15:0] or<br />

Low_addr[0] is 1 for Data[31:16].<br />

1. First, write high-address command.<br />

Where High_Addr[9:0] is address[18:9] for register, as follows:<br />

2. Second, read/write 32 bit register data<br />

command.<br />

Table 2: where Low_Addr[7:1] is address [8:2] of register and Low_Addr[0] is 0 for Data[15:0], 1 for<br />

Data[31:16]<br />

TA<br />

start Op 2'b10 Low_addr[7:0]<br />

[1:0]<br />

Data[15:0]<br />

36 • <strong>AR8327</strong>/<strong>AR8327</strong>N <strong>Seven</strong>-<strong>port</strong> <strong>Gigabit</strong> <strong>Ethernet</strong> <strong>Switch</strong> Atheros Communications, Inc.<br />

36 • June 2011 COMPANY CONFIDENTIAL

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

Saved successfully!

Ooh no, something went wrong!