KS8995M
Micrel
Dynamic MAC Address
This table is ready only. The contents are maintained by KS8995M only.
Address
Name
Description
Mode
Default
Format of Dynamic MAC Address Table (1K entries)
68
67-58
MAC empty
No of valid entries
1, there is no valid entry in the table.
0, there are valid entries in the table.
Indicates how many valid entries in the table:
0x3ff means 1K entries
0x1 means 2 entries
0x0 and bit 68 = 0: means 1 entry
0x0 and bit 68 = 1: means 0 entry
2-bit counters for internal aging.
1, The entry is not ready, retry until this bit is set to 0.
0, The entry is ready.
The source port where FID+MAC is learned.
000 port 1
001 port 2
010 port 3
011 port 4
100 port 5
Filter ID
48 bit MAC address
RO
RO
1
0
57-56
55
54-52
Time stamp
Data ready
Source port
RO
RO
RO
0x0
51-48
47-0
FID
MAC address
RO
RO
0x0
0x0
Table 14. Dynamic MAC Address Table
Examples:
(1) Dynamic MAC Address Table Read (read the 1st entry), and retrieve the MAC table size
Write to reg110 with 0x18 (read dynamic table selected)
Write to reg111 with 0x0 (trigger the read operation )
Then
Read reg112 (68-64)
Read reg113 (63-56) ; // the above two registers show # of entries
Read reg114 (55-48) // if bit 55 is 1, restart(reread) from this register
Read reg115 (47-40)
Read reg116 (39-32)
Read reg117 (31-24)
Read reg118 (23-16)
Read reg119 (15-8)
Read reg120 (7-0)
(2) Dynamic MAC Address Table Read (read the 257th entry), without retrieving # of entries info
Write to reg110 with 0x19 (read dynamic table selected)
Write to reg111 with 0x1 (trigger the read operation)
Then
Read reg114 (55-48) // if bit 55 is 1, restart (reread) from this register
Read reg115 (47-40)
Read reg116 (39-32)
Read reg117 (31-24)
Read reg118 (23-16)
Read reg119 (15-8)
Read reg120 (7-0)
M9999-120403
56
December 2003