Datasheet
KSZ8795CLX
DS00002112B-page 84 2016-2017 Microchip Technology Inc.
4.6 Dynamic MAC Address Table
Table 4-19 is read-only.
Examples:
1. Dynamic MAC Address Table Read (read the 1st entry), and retrieve the MAC table size
Write to Register 110 with 0x18 (read dynamic table selected)
Write to Register 111 with 0x0 (trigger the read operation) and then
Read Register 112 (71:64)
Read Register 113 (63:56); // the above two registers show # of entries
Read Register 114 (55:48) // if Bit[55] is 1, restart (reread) from this register
2 Bits[28:16] 9 2 1
2 Bits[44:32] 10 2 2
2 Bits[60:48] 11 2 3
:::::
:::::
:::::
1023 Bits[12:0] 4092 1023 0
1023 Bits[28:16] 4093 1023 1
1023 Bits[44:32] 4095 1023 2
1023 Bits[60:48] 4095 1023 3
TABLE 4-19: DYNAMIC MAC ADDRESS TABLE
Address Name Description Mode Default
Format of Dynamic MAC Address Table (1K entries)
71 MAC Empty 1 = There is no valid entry in the table.
0 = There are valid entries in the table.
RO 1
70 - 61 No. of Valid
Entries
Indicates how many valid entries in the table.
0x3ff means 1K entries
0x1 and Bit[71] = 0: means 2 entries
0x0 and Bit[71]= 0: means 1 entry
0x0 and Bit[71] = 1: means 0 entry
RO 0
60 - 59 Time Stamp 2-bit counters for internal aging RO —
58 - 56 Source Port The source port where FID+MAC is learned.
000 = Port 1
001 = Port 2
010 = Port 3
011 = Port 4
100 = Port 5
RO 0x0
55 Data Ready 1 = The entry is not ready, retry until
this bit is set to 0.
0 = The entry is ready.
RO —
54 - 48 FID Filter ID RO 0x0
47 - 0 MAC
Address
48-bit MAC address RO 0x0
TABLE 4-18: VLAN ID AND INDIRECT REGISTERS (CONTINUED)
Indirect Address
High/Low Bit[9-0]
for VLAN Sets
Indirect Data
Registers Bits for
Each VLAN Entry
VID Numbers
VID Bit[12-2] in
VLAN Tag
VID Bit[1-0] in
VLAN Tag