SPRUIM2H May 2020 – October 2023 AM2431 , AM2432 , AM2434 , AM6411 , AM6412 , AM6421 , AM6422 , AM6441 , AM6442
Table 12-1323 lists the memory-mapped registers for the CPSW0_ALE. All register offset addresses not listed in Table 12-1323 should be considered as reserved locations and the register contents should not be modified.
Instance | Base Address |
---|---|
CPSW0_NUSS_ALE | 0800 0000h |
Offset | Acronym | Register Name | CPSW0_NUSS_ALE Physical Address |
---|---|---|---|
0003E000h | CPSW_ALE_MOD_VER | ALE Module and Version Register | 0803 E000h |
0003E004h | CPSW_ALE_STATUS | ALE Status Register | 0803 E004h |
0003E008h | CPSW_ALE_CONTROL | ALE Control Register | 0803 E008h |
0003E00Ch | CPSW_ALE_CTRL2 | ALE Control 2 Register | 0803 E00Ch |
0003E010h | CPSW_ALE_PRESCALE | ALE Prescale Register | 0803 E010h |
0003E014h | CPSW_ALE_AGING_CTRL | ALE Aging Control Register | 0803 E014h |
0003E01Ch | CPSW_ALE_NXT_HDR | ALE Next Header Register | 0803 E01Ch |
0003E020h | CPSW_ALE_TBLCTL | ALE Table Control Register | 0803 E020h |
0003E034h | CPSW_ALE_TBLW2 | ALE LUT Table Word 2 Register | 0803 E034h |
0003E038h | CPSW_ALE_TBLW1 | ALE LUT Table Word 1 Register | 0803 E038h |
0003E03Ch | CPSW_ALE_TBLW0 | ALE LUT Table Word 0 Register | 0803 E03Ch |
0003E040h + formula | CPSW_Iy_ALE_PORTCTL0_y | ALE Port Control 0 to 4 Registers | 0803 E040h + formula |
0003E090h | CPSW_ALE_UVLAN_MEMBER | ALE Unknown VLAN Member Mask Register | 0803 E090h |
0003E094h | CPSW_ALE_UVLAN_URCAST | ALE Unknown VLAN Unregistered Multicast Flood Mask Register | 0803 E094h |
0003E098h | CPSW_ALE_UVLAN_RMCAST | ALE Unknown VLAN Registered Multicast Flood Mask Register | 0803 E098h |
0003E09Ch | CPSW_ALE_UVLAN_UNTAG | ALE Unknown VLAN Force Untagged Egress Mask Register | 0803 E09Ch |
0003E0B8h | CPSW_ALE_STAT_DIAG | ALE Statistic Output Diagnostic Register | 0803 E0B8h |
0003E0BCh | CPSW_ALE_OAM_LB_CTRL | ALE OAM Loopback Control Register | 0803 E0BCh |
0003E0FCh | CPSW_ALE_EGRESSOP | ALE Egress Operation Register | 0803 E0FCh |
0003E100h | CPSW_ALE_POLICECFG0 | ALE Policing Config 0 Register | 0803 E100h |
0003E104h | CPSW_ALE_POLICECFG1 | ALE Policing Config 1 Register | 0803 E104h |
0003E108h | CPSW_ALE_POLICECFG2 | ALE Policing Config 2 Register | 0803 E108h |
0003E10Ch | CPSW_ALE_POLICECFG3 | ALE Policing Config 3 Register | 0803 E10Ch |
0003E110h | CPSW_ALE_POLICECFG4 | ALE Policing Config 4 Register | 0803 E110h |
0003E118h | CPSW_ALE_POLICECFG6 | ALE Policing Config 6 Register | 0803 E118h |
0003E11Ch | CPSW_ALE_POLICECFG7 | ALE Policing Config 7 Register | 0803 E11Ch |
0003E120h | CPSW_ALE_POLICETBLCTL | Policing Table Control Register | 0803 E120h |
0003E124h | CPSW_ALE_POLICECONTROL | ALE Policing Control Register | 0803 E124h |
0003E128h | CPSW_ALE_POLICETESTCTL | ALE Policing Test Control Register | 0803 E128h |
0003E12Ch | CPSW_ALE_POLICEHSTAT | ALE Policing Hit Status Register | 0803 E12Ch |
0003E134h | CPSW_ALE_THREADMAPDEF | ALE THREAD Mapping Default Value Register | 0803 E134h |
0003E138h | CPSW_ALE_THREADMAPCTL | ALE THREAD Mapping Control Register | 0803 E138h |
0003E13Ch | CPSW_ALE_THREADMAPVAL | ALE THREAD Mapping Value Register | 0803 E13Ch |
CPSW_ALE_MOD_VER is shown in Figure 12-686 and described in Table 12-1325.
Return to Summary Table.
The Module and Version Register identifies the module identifier and revision of the ALE module.
Instance | Physical Address |
---|---|
CPSW0_NUSS_ALE | 0803 E000h |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
MODULE_ID | |||||||
R-29h | |||||||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
MODULE_ID | |||||||
R-29h | |||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RTL_VERSION | MAJOR_REVISION | ||||||
R-8h | R-1h | ||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
CUSTOM_REVISION | MINOR_REVISION | ||||||
R-0h | R-4h | ||||||
LEGEND: R = Read Only; -n = value after reset |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-16 | MODULE_ID | R | 29h | ALE module ID. |
15-11 | RTL_VERSION | R | 8h | RTL Version. |
10-8 | MAJOR_REVISION | R | 1h | Major Revision. |
7-6 | CUSTOM_REVISION | R | 0h | Custom Revision. |
5-0 | MINOR_REVISION | R | 4h | Minor Revision. |
CPSW_ALE_STATUS is shown in Figure 12-687 and described in Table 12-1327.
Return to Summary Table.
The ALE status provides information on the ALE configuration and state. The RAMDEPTH is used to determine how IPv6 entries are stored in the table. IPv6 entries are stored in two entries where IPv6 Entry Hi is designated by the odd slice index and Lo is designated by the even slice index. The slice index is above the ram depth like {SlixeIndex,RamIndex}. So for a 64 deep RAM index of 0x005, the Hi portion of the IPv6 entry is located at 0x005|0x040 and the Lo portion is located at 0x005&(~0x040).
Instance | Physical Address |
---|---|
CPSW0_NUSS_ALE | 0803 E004h |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
UREGANDREGMSK12 | UREGANDREGMSK08 | RESERVED | |||||
R-1h | R-0h | R-X | |||||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | |||||||
R-X | |||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
POLCNTDIV8 | |||||||
R-4h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RAMDEPTH128 | RAMDEPTH32 | RESERVED | KLUENTRIES | ||||
R-0h | R-0h | R-X | R-0h | ||||
LEGEND: R = Read Only; -n = value after reset |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31 | UREGANDREGMSK12 | R | 1h | When set, the unregistered multicast field is a mask versus an index on 12 bit boundary in the ALE table. |
30 | UREGANDREGMSK08 | R | 0h | When set, the unregistered multicast field is a mask versus an index on 8 bit boundary in the ALE table. |
29-16 | RESERVED | R | X | |
15-8 | POLCNTDIV8 | R | 4h | This
is the number of policer engines the ALE implements divided by
8. |
7 | RAMDEPTH128 | R | 0h | The number of ALE entries per slice of the table when this is set it indicates the depth is 128 if both ramdepth128 and ramdepth32 are zero the depth is 64. |
6 | RAMDEPTH32 | R | 0h | The number of ALE entries per slice of the table when this is set it indicates the depth is 32 if both ramdepth128 and ramdepth32 are zero the depth is 64. |
5 | RESERVED | R | X | |
4-0 | KLUENTRIES | R | 0h | This
is the number of table entries total divided by 1024. |
CPSW_ALE_CONTROL is shown in Figure 12-688 and described in Table 12-1329.
Return to Summary Table.
The ALE Control Register is used to set the ALE modes used for all ports.
Instance | Physical Address |
---|---|
CPSW0_NUSS_ALE | 0803 E008h |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
ENABLE_ALE | CLEAR_TABLE | AGE_OUT_NOW | RESERVED | MIRROR_DP | |||
R/W-0h | R/W-0h | R/W-0h | R/W-X | R/W-0h | |||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
UPD_BW_CTRL | RESERVED | MIRROR_TOP | |||||
R/W-0h | R/W-X | R/W-0h | |||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
UPD_STATIC | RESERVED | UVLAN_NO_LEARN | MIRROR_MEN | MIRROR_DEN | MIRROR_SEN | RESERVED | EN_HOST_UNI_FLOOD |
R/W-0h | R/W-X | R/W-0h | R/W-0h | R/W-0h | R/W-0h | R/W-X | R/W-0h |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
LEARN_NO_VLANID | ENABLE_VID0_MODE | ENABLE_OUI_DENY | ENABLE_BYPASS | BCAST_MCAST_CTL | ALE_VLAN_AWARE | ENABLE_AUTH_MODE | ENABLE_RATE_LIMIT |
R/W-0h | R/W-0h | R/W-0h | R/W-0h | R/W-0h | R/W-0h | R/W-0h | R/W-0h |
LEGEND: R/W = Read/Write; -n = value after reset |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31 | ENABLE_ALE | R/W | 0h | Enable ALE. |
30 | CLEAR_TABLE | R/W | 0h | Clear ALE address table. Setting this bit causes the ALE
hardware to write all table bit values to zero. |
29 | AGE_OUT_NOW | R/W | 0h | Age
Out Address Table Now. Setting this bit causes the ALE hardware
to remove (free up) any ageable table entry that does not have a
set touch bit. |
28-26 | RESERVED | R/W | X | |
25-24 | MIRROR_DP | R/W | 0h | Mirror Destination Port. This field defines the port to which
destination traffic destined will be duplicated. |
23-21 | UPD_BW_CTRL | R/W | 0h | The
UPD_BW_CTRL field allows for up to 8 times the rate in which
adds, updates, touches, writes, and aging updates can occur. |
20-18 | RESERVED | R/W | X | |
17-16 | MIRROR_TOP | R/W | 0h | Mirror To Port. This field defines the destination port for the
mirror traffic. |
15 | UPD_STATIC | R/W | 0h | Update Static Entries. A static Entry is an entry that is not
agable. |
14 | RESERVED | R/W | X | |
13 | UVLAN_NO_LEARN | R/W | 0h | Unknown VLAN No Learn. This field when set will prevent source addresses of unknown VLAN IDs from being automatically added into the look up table if learning is enabled. |
12 | MIRROR_MEN | R/W | 0h | Mirror Match Entry Enable. This field enables the match mirror
option. |
11 | MIRROR_DEN | R/W | 0h | Mirror Destination Port Enable. This field enables the
destination port mirror option. |
10 | MIRROR_SEN | R/W | 0h | Mirror Source Port Enable. This field enables the source port
mirror option. |
9 | RESERVED | R/W | X | |
8 | EN_HOST_UNI_FLOOD | R/W | 0h | Unknown unicast packets flood to host. |
7 | LEARN_NO_VLANID | R/W | 0h | Learn No VID. |
6 | ENABLE_VID0_MODE | R/W | 0h | Enable VLAN ID = 0 Mode. |
5 | ENABLE_OUI_DENY | R/W | 0h | Enable OUI Deny Mode. When set, any packet with a non-matching
OUI source address will be dropped to the host unless the packet
destination address matches a supervisory destination address
table entry. |
4 | ENABLE_BYPASS | R/W | 0h | ALE
Bypass. When set, packets received on non-host ports are sent to
the host. |
3 | BCAST_MCAST_CTL | R/W | 0h | Rate
Limit Transmit mode. |
2 | ALE_VLAN_AWARE | R/W | 0h | ALE
VLAN Aware. Determines how traffic is forwarded using VLAN
rules. |
1 | ENABLE_AUTH_MODE | R/W | 0h | Enable MAC Authorization Mode. Mac authorization mode requires
that all table entries be made by the host software. |
0 | ENABLE_RATE_LIMIT | R/W | 0h | Enable Broadcast and Multicast Rate Limit |
CPSW_ALE_CTRL2 is shown in Figure 12-689 and described in Table 12-1331.
Return to Summary Table.
The ALE Control 2 Register is used to set the extended features used for all ports.
Instance | Physical Address |
---|---|
CPSW0_NUSS_ALE | 0803 E00Ch |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
TRK_EN_DST | TRK_EN_SRC | TRK_EN_PRI | RESERVED | TRK_EN_IVLAN | RESERVED | TRK_EN_SIP | TRK_EN_DIP |
R/W-0h | R/W-0h | R/W-0h | R/W-X | R/W-0h | R/W-X | R/W-0h | R/W-0h |
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
DROP_BADLEN | NODROP_SRCMCST | DEFNOFRAG | DEFLMTNXTHDR | RESERVED | TRK_BASE | ||
R/W-0h | R/W-0h | R/W-0h | R/W-0h | R/W-X | R/W-0h | ||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | MIRROR_MIDX | ||||||
R/W-X | R/W-0h | ||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
MIRROR_MIDX | |||||||
R/W-0h | |||||||
LEGEND: R/W = Read/Write; -n = value after reset |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31 | TRK_EN_DST | R/W | 0h | Trunk Enable Destination Address. This field enables the destination MAC address to be used with the hash function G(X) = 1 + X + X^3 and affect the trunk port transmit link determination. |
30 | TRK_EN_SRC | R/W | 0h | Trunk Enable Source Address. This field enables the source MAC address to be used with the hash function G(X) = 1 + X + X^3 and affect the trunk port transmit link determination. |
29 | TRK_EN_PRI | R/W | 0h | Trunk Enable Priority. This field enables the VLAN Priority
bits to be used with the hash function G(X) = 1 + X + X^3 and
affect the trunk port transmit link determination. |
28 | RESERVED | R/W | X | |
27 | TRK_EN_IVLAN | R/W | 0h | Trunk Enable Inner VLAN. This field enables the inner VLAN ID value (C-VLANID) to be used with the hash function G(X) = 1 + X + X^3 and affect the trunk port transmit link determination. |
26 | RESERVED | R/W | X | |
25 | TRK_EN_SIP | R/W | 0h | Trunk Enable Source IP Address. This field enables the source
IP address to be used with the hash function G(X) = 1 + X + X^3
and affect the trunk port transmit link determination. |
24 | TRK_EN_DIP | R/W | 0h | Trunk Enable Destination IP Address. This field enables the
destination IP address to be used with the hash function G(X) =
1 + X + X^3 and affect the trunk port transmit link
determination. |
23 | DROP_BADLEN | R/W | 0h | Drop
Bad Length will drop any packet that the 802.3 length field is
larger than the packet. |
22 | NODROP_SRCMCST | R/W | 0h | No Drop Source Multicast will disable the dropping of any source address with the multicast bit set. |
21 | DEFNOFRAG | R/W | 0h | Default No Frag field will cause an IPv4 fragmented packet to be dropped if a VLAN entry is not found. |
20 | DEFLMTNXTHDR | R/W | 0h | Default limit next header field will cause an IPv4 protocol or IPv6 next header packet to be dropped if a VLAN entry is not found and the protocol or next header does not match the CPSW_ALE_NXT_HDR register values. |
19 | RESERVED | R/W | X | |
18-16 | TRK_BASE | R/W | 0h | Trunk Base - This field is the hash formula starting value. |
15-9 | RESERVED | R/W | X | |
8-0 | MIRROR_MIDX | R/W | 0h | Mirror Index. This field is the ALE lookup table entry index
that when a match occurs will cause this traffic to be mirrored
to the MIRROR_TOP port. |
CPSW_ALE_PRESCALE is shown in Figure 12-690 and described in Table 12-1333.
Return to Summary Table.
The ALE Prescale Register is used to set the Broadcast and Multicast rate limiting prescaler value.
Instance | Physical Address |
---|---|
CPSW0_NUSS_ALE | 0803 E010h |
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 |
RESERVED | ALE_PRESCALE | ||||||||||||||||||||||||||||||
R/W-X | R/W-0h | ||||||||||||||||||||||||||||||
LEGEND: R/W = Read/Write; -n = value after reset |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-20 | RESERVED | R/W | X | |
19-0 | ALE_PRESCALE | R/W | 0h | ALE
Prescale. The input clock is divided by this value for use in
the multicast/broadcast rate limiters. |
CPSW_ALE_AGING_CTRL is shown in Figure 12-691 and described in Table 12-1335.
Return to Summary Table.
The ALE Aging Control sets the aging interval which will cause periodic aging to occur. This value specifies the minimum time between aging starts.
Instance | Physical Address |
---|---|
CPSW0_NUSS_ALE | 0803 E014h |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
PRESCALE_2_DISABLE | PRESCALE_1_DISABLE | RESERVED | |||||
R/W-0h | R/W-0h | R/W-X | |||||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
ALE_AGING_TIMER | |||||||
R/W-0h | |||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
ALE_AGING_TIMER | |||||||
R/W-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
ALE_AGING_TIMER | |||||||
R/W-0h | |||||||
LEGEND: R/W = Read/Write; -n = value after reset |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31 | PRESCALE_2_DISABLE | R/W | 0h | ALE Prescaler 2 Disable. When set will divide the aging interval by 1000. This bit is designed for device verification and should not be used in production software. Combination of PreScale1Disable and PreScale2Disable will divide the aging interval by 1,000,000 for test purposes. |
30 | PRESCALE_1_DISABLE | R/W | 0h | ALE Prescaler 1 Disable. When set will divide the aging interval by 1000. This bit is designed for device verification and should not be used in production software. Combination of PreScale1Disable and PreScale2Disable will divide the aging interval by 1,000,000 for test purposes. |
29-24 | RESERVED | R/W | X | |
23-0 | ALE_AGING_TIMER | R/W | 0h | ALE
Aging Timer. |
CPSW_ALE_NXT_HDR is shown in Figure 12-692 and described in Table 12-1337.
Return to Summary Table.
The ALE Next Header is used to limit the IPv6 Next header or IPv4 Protocol values found in the IP header. It is enabled via the DEFLMTNXTHDR bit in the VLAN entry. All four IP_NXT_HDR0 to IP_NXT_HDR3 bits are compared when enabled, so if only one is required, set them all to the one value to be tested.
Instance | Physical Address |
---|---|
CPSW0_NUSS_ALE | 0803 E01Ch |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
IP_NXT_HDR3 | IP_NXT_HDR2 | ||||||||||||||
R/W-0h | R/W-0h | ||||||||||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
IP_NXT_HDR1 | IP_NXT_HDR0 | ||||||||||||||
R/W-0h | R/W-0h | ||||||||||||||
LEGEND: R/W = Read/Write; -n = value after reset |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-24 | IP_NXT_HDR3 | R/W | 0h | The IP_NXT_HDR3 is the forth protocol or next header compared when enabled. |
23-16 | IP_NXT_HDR2 | R/W | 0h | The IP_NXT_HDR2 is the third protocol or next header compared when enabled. |
15-8 | IP_NXT_HDR1 | R/W | 0h | The IP_NXT_HDR1 is the second protocol or next header compared when enabled. |
7-0 | IP_NXT_HDR0 | R/W | 0h | The IP_NXT_HDR0 is the first protocol or next header compared when enabled. |
CPSW_ALE_TBLCTL is shown in Figure 12-693 and described in Table 12-1339.
Return to Summary Table.
The ALE table control register is used to read or write that ALE table entries. After writing to this register any read or write to any ALE register will be stalled until the read or write operation completes.
Instance | Physical Address |
---|---|
CPSW0_NUSS_ALE | 0803 E020h |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
TABLEWR | RESERVED | ||||||
R/W-0h | R/W-X | ||||||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | |||||||
R/W-X | |||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | TABLEIDX | ||||||
R/W-X | R/W-0h | ||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
TABLEIDX | |||||||
R/W-0h | |||||||
LEGEND: R/W = Read/Write; -n = value after reset |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31 | TABLEWR | R/W | 0h | Table Write. This bit is used to write the table words to the
lookup table. |
30-9 | RESERVED | R/W | X | |
8-0 | TABLEIDX | R/W | 0h | The table index is used to determine which lookup table entry is read or written. |
CPSW_ALE_TBLW2 is shown in Figure 12-694 and described in Table 12-1341.
Return to Summary Table.
The ALE Table Word 2 is the most significant word of an ALE table entry.
Instance | Physical Address |
---|---|
CPSW0_NUSS_ALE | 0803 E034h |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | |||||||||||||||
R/W-X | |||||||||||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | TABLEWRD2 | ||||||||||||||
R/W-X | R/W-0h | ||||||||||||||
LEGEND: R/W = Read/Write; -n = value after reset |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-7 | RESERVED | R/W | X | |
6-0 | TABLEWRD2 | R/W | 0h | Table Entry bits [70:64] |
CPSW_ALE_TBLW1 is shown in Figure 12-695 and described in Table 12-1343.
Return to Summary Table.
The ALE Table Word 1 is the middle word of an ALE table entry.
Instance | Physical Address |
---|---|
CPSW0_NUSS_ALE | 0803 E038h |
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 |
TABLEWRD1 | |||||||||||||||||||||||||||||||
R/W-0h | |||||||||||||||||||||||||||||||
LEGEND: R/W = Read/Write; -n = value after reset |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | TABLEWRD1 | R/W | 0h | Table Entry bits [63:32]. |
CPSW_ALE_TBLW0 is shown in Figure 12-696 and described in Table 12-1345.
Return to Summary Table.
The ALE Table Word 0 is the least significant word of an ALE table entry.
Instance | Physical Address |
---|---|
CPSW0_NUSS_ALE | 0803 E03Ch |
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 |
TABLEWRD0 | |||||||||||||||||||||||||||||||
R/W-0h | |||||||||||||||||||||||||||||||
LEGEND: R/W = Read/Write; -n = value after reset |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | TABLEWRD0 | R/W | 0h | Table Entry bits [31:0]. |
CPSW_Iy_ALE_PORTCTL0_y is shown in Figure 12-697 and described in Table 12-1347.
Return to Summary Table.
The ALE Port Control Register sets the port specific modes of operation.
Offset = 0003E040h + (y * 4h); where y = 0h to 2h
Instance | Physical Address |
---|---|
CPSW0_NUSS_ALE | 0803 E040h + formula |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
Iy_REG_Py_BCAST_LIMIT | |||||||
R/W-0h | |||||||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
Iy_REG_Py_MCAST_LIMIT | |||||||
R/W-0h | |||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
Iy_REG_Py_DROP_DOUBLE_VLAN | Iy_REG_Py_DROP_DUAL_VLAN | Iy_REG_Py_MACONLY_CAF | Iy_REG_Py_DIS_PAUTHMOD | Iy_REG_Py_MACONLY | Iy_REG_Py_TRUNKEN | Iy_REG_Py_TRUNKNUM | |
R/W-0h | R/W-0h | R/W-0h | R/W-0h | R/W-0h | R/W-0h | R/W-0h | |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Iy_REG_Py_MIRROR_SP | RESERVED | Iy_REG_Py_NO_SA_UPDATE | Iy_REG_Py_NO_LEARN | Iy_REG_Py_VID_INGRESS_CHECK | Iy_REG_Py_DROP_UN_TAGGED | Iy_REG_Py_PORTSTATE | |
R/W-0h | R/W-X | R/W-0h | R/W-0h | R/W-0h | R/W-0h | R/W-0h | |
LEGEND: R/W = Read/Write; -n = value after reset |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-24 | Iy_REG_Py_BCAST_LIMIT | R/W | 0h | Broadcast Packet Rate Limit. Each prescale pulse loads this
field into the port broadcast rate limit counter. |
23-16 | Iy_REG_Py_MCAST_LIMIT | R/W | 0h | Multicast Packet Rate Limit. Each prescale pulse loads this
field into the port multicast rate limit counter. |
15 | Iy_REG_Py_DROP_DOUBLE_VLAN | R/W | 0h | Drop
Double VLAN. When set cause any received packet with double
VLANs to be dropped. |
14 | Iy_REG_Py_DROP_DUAL_VLAN | R/W | 0h | Drop Dual VLAN. When set will cause any received packet with dual VLAN stag followed by ctag to be dropped. |
13 | Iy_REG_Py_MACONLY_CAF | R/W | 0h | Mac
Only Copy All Frames. When set a Mac Only port will transfer all
received good frames to the host. |
12 | Iy_REG_Py_DIS_PAUTHMOD | R/W | 0h | Disable Port authorization. When set will allow unknown
addresses to arrive on a switch in authorization mode. |
11 | Iy_REG_Py_MACONLY | R/W | 0h | MAC
Only. When set enables this port be treated like a MAC port for
the host. |
10 | Iy_REG_Py_TRUNKEN | R/W | 0h | Trunk Enable. This field is used to enable a port into a trunk.
|
9-8 | Iy_REG_Py_TRUNKNUM | R/W | 0h | Trunk Number. This field is used as the trunk number when the
Iy_REG_Py_TRUNKEN is also set. |
7 | Iy_REG_Py_MIRROR_SP | R/W | 0h | Mirror Source Port. This field enables the source port mirror
option. |
6 | RESERVED | R/W | X | |
5 | Iy_REG_Py_NO_SA_UPDATE | R/W | 0h | No Source Address Update. When set will not update the source addresses for this port. |
4 | Iy_REG_Py_NO_LEARN | R/W | 0h | No Learn. When set will not learn the source addresses for this port. |
3 | Iy_REG_Py_VID_INGRESS_CHECK | R/W | 0h | VLAN Ingress Check. When set if a packet received is not a member of the VLAN, the packet will be dropped. |
2 | Iy_REG_Py_DROP_UN_TAGGED | R/W | 0h | If Drop Untagged. When set will drop packets without a VLAN tag. |
1-0 | Iy_REG_Py_PORTSTATE | R/W | 0h | Port
State. Defins the current port state used for lookup operations.
|
CPSW_ALE_UVLAN_MEMBER is shown in Figure 12-698 and described in Table 12-1349.
Return to Summary Table.
The ALE Unknown VLAN Member Mask Register is used to specify the member list for unknown VLAN ID.
Instance | Physical Address |
---|---|
CPSW0_NUSS_ALE | 0803 E090h |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
RESERVED | |||||||
R/W-X | |||||||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | |||||||
R/W-X | |||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | |||||||
R/W-X | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | UVLAN_MEMBER_LIST | ||||||
R/W-X | R/W-0h | ||||||
LEGEND: R/W = Read/Write; -n = value after reset |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-5 | RESERVED | R/W | X | |
4-0 | UVLAN_MEMBER_LIST | R/W | 0h | Unknown VLAN Member List. |
CPSW_ALE_UVLAN_URCAST is shown in Figure 12-699 and described in Table 12-1351.
Return to Summary Table.
The ALE Unknown VLAN Unregistered Multicast Flood Mask Register is used to specify which egress ports unregistered multicast addresses egress for the unregistered VLAN ID.
Instance | Physical Address |
---|---|
CPSW0_NUSS_ALE | 0803 E094h |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
RESERVED | |||||||
R/W-X | |||||||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | |||||||
R/W-X | |||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | |||||||
R/W-X | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | UVLAN_UNREG_MCAST_FLOOD_MASK | ||||||
R/W-X | R/W-0h | ||||||
LEGEND: R/W = Read/Write; -n = value after reset |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-5 | RESERVED | R/W | X | |
4-0 | UVLAN_UNREG_MCAST_FLOOD_MASK | R/W | 0h | Unknown VLAN Unregister Multicast Flood Mask. |
CPSW_ALE_UVLAN_RMCAST is shown in Figure 12-700 and described in Table 12-1353.
Return to Summary Table.
The ALE Unknown VLAN Registered Multicast Flood Mask Register is used to specify which egress ports registered multicast addresses egress for the unregistered VLAN ID.
Instance | Physical Address |
---|---|
CPSW0_NUSS_ALE | 0803 E098h |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
RESERVED | |||||||
R/W-X | |||||||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | |||||||
R/W-X | |||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | |||||||
R/W-X | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | UVLAN_REG_MCAST_FLOOD_MASK | ||||||
R/W-X | R/W-0h | ||||||
LEGEND: R/W = Read/Write; -n = value after reset |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-5 | RESERVED | R/W | X | |
4-0 | UVLAN_REG_MCAST_FLOOD_MASK | R/W | 0h | Unknown VLAN Register Multicast Flood Mask. Each bit represents
the port to which registered multicast are sent for unregistered
VLANs. |
CPSW_ALE_UVLAN_UNTAG is shown in Figure 12-701 and described in Table 12-1355.
Return to Summary Table.
The ALE Unknown VLAN force Untagged Egress Mask Register is used to specify which egress ports the VLAN ID will be removed.
Instance | Physical Address |
---|---|
CPSW0_NUSS_ALE | 0803 E09Ch |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
RESERVED | |||||||
R/W-X | |||||||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | |||||||
R/W-X | |||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | |||||||
R/W-X | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | UVLAN_FORCE_UNTAGGED_EGRESS | ||||||
R/W-X | R/W-0h | ||||||
LEGEND: R/W = Read/Write; -n = value after reset |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-5 | RESERVED | R/W | X | |
4-0 | UVLAN_FORCE_UNTAGGED_EGRESS | R/W | 0h | Unknown VLAN Force Untagged Egress Mask. Each bit represents the port where the VLAN will be removed for unregistered VLANs. |
CPSW_ALE_STAT_DIAG is shown in Figure 12-702 and described in Table 12-1357.
Return to Summary Table.
The ALE Statistic Output Diagnostic Register allows the output statistics to diagnose the SW counters. This register is for diagnostice only.
Instance | Physical Address |
---|---|
CPSW0_NUSS_ALE | 0803 E0B8h |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
RESERVED | |||||||
R/W-X | |||||||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | |||||||
R/W-X | |||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
PBCAST_DIAG | RESERVED | PORT_DIAG | |||||
R/W-0h | R/W-X | R/W-0h | |||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | STAT_DIAG | ||||||
R/W-X | R/W-0h | ||||||
LEGEND: R/W = Read/Write; -n = value after reset |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-16 | RESERVED | R/W | X | |
15 | PBCAST_DIAG | R/W | 0h | When set and the PORT_DIAG is set to zero, will allow all ports to see the same stat diagnostic increment. |
14-10 | RESERVED | R/W | X | |
9-8 | PORT_DIAG | R/W | 0h | The port selected that a received packet will cause the selected error to increment. |
7-4 | RESERVED | R/W | X | |
3-0 | STAT_DIAG | R/W | 0h | When
non-zero will cause the selected statistic to increment on the
next frame received. |
CPSW_ALE_OAM_LB_CTRL is shown in Figure 12-703 and described in Table 12-1359.
Return to Summary Table.
The ALE OAM Control allows ports to be put into OAM Loopback, only non-supervisor packet are looped back to the source port.
Instance | Physical Address |
---|---|
CPSW0_NUSS_ALE | 0803 E0BCh |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | |||||||||||||||
R/W-X | |||||||||||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | OAM_LB_CTRL | ||||||||||||||
R/W-X | R/W-0h | ||||||||||||||
LEGEND: R/W = Read/Write; -n = value after reset |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-3 | RESERVED | R/W | X | |
2-0 | OAM_LB_CTRL | R/W | 0h | The
OAM_LB_CTRL bit field allows any port to be put into OAM
loopback, that is any packet received will be returned to the
same port with an CPSW_ALE_EGRESSOP of 0xFF which swaps the source and
destination address. |
CPSW_ALE_EGRESSOP is shown in Figure 12-704 and described in Table 12-1361.
Return to Summary Table.
The Egress Operation register allows enabled classifiers with IPSA or IPDA match to use the CPSW Egress Packet Operations Inter VLAN Routing sub functions. If the packet was destined for the host, but matches a clasifier that has a programmed egress opcode, it will be forwarded to the destination ports where the destination ports will use the thier egress opcode entry to modify the packet. InterVLAN Routing and mirroring need to be understood, they are orthogonal functions.
Instance | Physical Address |
---|---|
CPSW0_NUSS_ALE | 0803 E0FCh |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
EGRESS_OP | |||||||
R/W-0h | |||||||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
EGRESS_TRK | TTL_CHECK | RESERVED | |||||
R/W-0h | R/W-0h | R/W-X | |||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | |||||||
R/W-X | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | DEST_PORTS | ||||||
R/W-X | R/W-0h | ||||||
LEGEND: R/W = Read/Write; -n = value after reset |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-24 | EGRESS_OP | R/W | 0h | The Egress Operation defines the operation performed
by the CPSW Egress Packet Operations 0h = NOP : 1-n: Defines which egress Operation will be performed. This allows Inter VLAN routing to be configured for high bandwidth traffic, reducing CPU load. FFh: Swaps source address (SA) and destination address (DA) of packet, this is intended to allow OAM diagnostics for a link. |
23-21 | EGRESS_TRK | R/W | 0h | The
Egress Trunk Index is the calculated trunk index from the SA, DA
or VLAN if modified to that InterVLAN routing will work on
trunks as well. |
20 | TTL_CHECK | R/W | 0h | The
TTL Check will cause any packet that fails TTL checks to not be
routed to the Inter VLAN Routing sub functions. |
19-3 | RESERVED | R/W | X | |
2-0 | DEST_PORTS | R/W | 0h | The
Destination Ports is a list of the ports the classified packet
will be set to. |
CPSW_ALE_POLICECFG0 is shown in Figure 12-705 and described in Table 12-1363.
Return to Summary Table.
The Policing Config 0 holds the port, frame priority and ONU address index as well as match enables for port, frame priority and ONU address matching.
Instance | Physical Address |
---|---|
CPSW0_NUSS_ALE | 0803 E100h |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
PORT_MEN | TRUNKID | RESERVED | PORT_NUM | RESERVED | |||
R/W-0h | R/W-0h | R/W-X | R/W-0h | R/W-X | |||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | PRI_MEN | PRI_VAL | |||||
R/W-X | R/W-0h | R/W-0h | |||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
ONU_MEN | RESERVED | ONU_INDEX | |||||
R/W-0h | R/W-X | R/W-0h | |||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
ONU_INDEX | |||||||
R/W-0h | |||||||
LEGEND: R/W = Read/Write; -n = value after reset |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31 | PORT_MEN | R/W | 0h | Port
Match Enable. |
30 | TRUNKID | R/W | 0h | Trunk ID. |
29-27 | RESERVED | R/W | X | |
26-25 | PORT_NUM | R/W | 0h | Port
Number. |
24-20 | RESERVED | R/W | X | |
19 | PRI_MEN | R/W | 0h | Priority Match Enable. |
18-16 | PRI_VAL | R/W | 0h | Priority Value. |
15 | ONU_MEN | R/W | 0h | OUI
Match Enable. |
14-9 | RESERVED | R/W | X | |
8-0 | ONU_INDEX | R/W | 0h | OUI
Table Entry Index. |
CPSW_ALE_POLICECFG1 is shown in Figure 12-706 and described in Table 12-1365.
Return to Summary Table.
The Policing Config 1 holds the match enable/match index for the L2 Destination and L2 source addresses.
Instance | Physical Address |
---|---|
CPSW0_NUSS_ALE | 0803 E104h |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
DST_MEN | RESERVED | DST_INDEX | |||||
R/W-0h | R/W-X | R/W-0h | |||||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
DST_INDEX | |||||||
R/W-0h | |||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
SRC_MEN | RESERVED | SRC_INDEX | |||||
R/W-0h | R/W-X | R/W-0h | |||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
SRC_INDEX | |||||||
R/W-0h | |||||||
LEGEND: R/W = Read/Write; -n = value after reset |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31 | DST_MEN | R/W | 0h | Destination Address Match Enable - Enables frame L2 destination address match for the selected policing/classifier entry |
30-25 | RESERVED | R/W | X | |
24-16 | DST_INDEX | R/W | 0h | Destination Address Table Entry Index - Specifies the ALE L2 destination address lookup table index to match for the selected policing/classifier entry |
15 | SRC_MEN | R/W | 0h | Source Address Match Enable - Enables frame L2 source address match for the selected policing/classifier entry |
14-9 | RESERVED | R/W | X | |
8-0 | SRC_INDEX | R/W | 0h | Source Address Table Entry Index - Specifies the ALE L2 source address lookup table index to match for the selected policing/classifier entry |
CPSW_ALE_POLICECFG2 is shown in Figure 12-707 and described in Table 12-1367.
Return to Summary Table.
The Policing Config 2 holds the match enable/match index for the Outer VLAN and Inner VLAN addresses.
Instance | Physical Address |
---|---|
CPSW0_NUSS_ALE | 0803 E108h |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
OVLAN_MEN | RESERVED | OVLAN_INDEX | |||||
R/W-0h | R/W-X | R/W-0h | |||||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
OVLAN_INDEX | |||||||
R/W-0h | |||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
IVLAN_MEN | RESERVED | IVLAN_INDEX | |||||
R/W-0h | R/W-X | R/W-0h | |||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
IVLAN_INDEX | |||||||
R/W-0h | |||||||
LEGEND: R/W = Read/Write; -n = value after reset |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31 | OVLAN_MEN | R/W | 0h | Outer VLAN Match Enable. |
30-25 | RESERVED | R/W | X | |
24-16 | OVLAN_INDEX | R/W | 0h | Outer VLAN Table Entry Index. |
15 | IVLAN_MEN | R/W | 0h | Inner VLAN Match Enable. |
14-9 | RESERVED | R/W | X | |
8-0 | IVLAN_INDEX | R/W | 0h | Inner VLAN Table Entry Index. |
CPSW_ALE_POLICECFG3 is shown in Figure 12-708 and described in Table 12-1369.
Return to Summary Table.
The Policing Config 3 holds the match enable/match index for the Ether Type and IP Source address.
Instance | Physical Address |
---|---|
CPSW0_NUSS_ALE | 0803 E10Ch |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
ETHERTYPE_MEN | RESERVED | ETHERTYPE_INDEX | |||||
R/W-0h | R/W-X | R/W-0h | |||||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
ETHERTYPE_INDEX | |||||||
R/W-0h | |||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
IPSRC_MEN | RESERVED | IPSRC_INDEX | |||||
R/W-0h | R/W-X | R/W-0h | |||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
IPSRC_INDEX | |||||||
R/W-0h | |||||||
LEGEND: R/W = Read/Write; -n = value after reset |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31 | ETHERTYPE_MEN | R/W | 0h | EtherType Match Enable. |
30-25 | RESERVED | R/W | X | |
24-16 | ETHERTYPE_INDEX | R/W | 0h | EtherType Table Entry Index. |
15 | IPSRC_MEN | R/W | 0h | IP
Source Address Match Enable. |
14-9 | RESERVED | R/W | X | |
8-0 | IPSRC_INDEX | R/W | 0h | IP
Source Address Table Entry Index. |
CPSW_ALE_POLICECFG4 is shown in Figure 12-709 and described in Table 12-1371.
Return to Summary Table.
The Policing Config 4 holds the match enable/match index for the IP Destination address.
Instance | Physical Address |
---|---|
CPSW0_NUSS_ALE | 0803 E110h |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
IPDST_MEN | RESERVED | IPDST_INDEX | |||||
R/W-0h | R/W-X | R/W-0h | |||||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
IPDST_INDEX | |||||||
R/W-0h | |||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | |||||||
R/W-X | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | |||||||
R/W-X | |||||||
LEGEND: R/W = Read/Write; -n = value after reset |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31 | IPDST_MEN | R/W | 0h | IP
Destination Address Match Enable. |
30-25 | RESERVED | R/W | X | |
24-16 | IPDST_INDEX | R/W | 0h | IP
Destination Address Table Entry Index. |
15-0 | RESERVED | R/W | X |
CPSW_ALE_POLICECFG6 is shown in Figure 12-710 and described in Table 12-1373.
Return to Summary Table.
If the counter is negative the packet will be marked RED, else it can be YELLOW or GREEN based on the CIR counter. If only this counter is used (CIR_IDLE_INC_VAL = 0h), then packets are marked RED or GREEN based on PIR counter only.
Instance | Physical Address |
---|---|
CPSW0_NUSS_ALE | 0803 E118h |
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 |
PIR_IDLE_INC_VAL | |||||||||||||||||||||||||||||||
R/W-0h | |||||||||||||||||||||||||||||||
LEGEND: R/W = Read/Write; -n = value after reset |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | PIR_IDLE_INC_VAL | R/W | 0h | Peak
Information Rate Idle Increment Value. |
CPSW_ALE_POLICECFG7 is shown in Figure 12-711 and described in Table 12-1375.
Return to Summary Table.
If the counter is positive the packet will be marked GREEN, else it can be YELLOW or RED based on the PIR counter. If only this counter is used (PIR_IDLE_INC_VAL= 0h), then packets are marked YELLOW or GREEN based on CIR counter only.
Instance | Physical Address |
---|---|
CPSW0_NUSS_ALE | 0803 E11Ch |
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 |
CIR_IDLE_INC_VAL | |||||||||||||||||||||||||||||||
R/W-0h | |||||||||||||||||||||||||||||||
LEGEND: R/W = Read/Write; -n = value after reset |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | CIR_IDLE_INC_VAL | R/W | 0h | Committed Information Idle Increment Value. |
CPSW_ALE_POLICETBLCTL is shown in Figure 12-712 and described in Table 12-1377.
Return to Summary Table.
The Policing Table Control is used to read or write the selected policing/classifier entry. The selected policing/classifier entry is only read or written after this register is written based on the value of the WRITE_ENABLE bit.
Instance | Physical Address |
---|---|
CPSW0_NUSS_ALE | 0803 E120h |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
WRITE_ENABLE | RESERVED | ||||||
R/W-0h | R/W-X | ||||||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | |||||||
R/W-X | |||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | |||||||
R/W-X | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | POL_TBL_IDX | ||||||
R/W-X | R/W-0h | ||||||
LEGEND: R/W = Read/Write; -n = value after reset |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31 | WRITE_ENABLE | R/W | 0h | Write Enable - Setting this bit will write the CPSW_ALE_POLICECFG0-7 to the POL_TBL_IDX selected
policing/classifier entry. |
30-5 | RESERVED | R/W | X | |
4-0 | POL_TBL_IDX | R/W | 0h | Policer Entry Index - This field specifies the
policing/classifier entry to be read or written. |
CPSW_ALE_POLICECONTROL is shown in Figure 12-713 and described in Table 12-1379.
Return to Summary Table.
The Control Enables color marking as well as internal ALE packet dropping rules.
Instance | Physical Address |
---|---|
CPSW0_NUSS_ALE | 0803 E124h |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
POLICING_EN | RESERVED | RED_DROP_EN | YELLOW_DROP_EN | RESERVED | YELLOWTHRESH | ||
R/W-0h | R/W-X | R/W-0h | R/W-0h | R/W-X | R/W-0h | ||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
POLMCHMODE | PRIORITY_THREAD_EN | MAC_ONLY_DEF_DIS | RESERVED | ||||
R/W-0h | R/W-0h | R/W-0h | R/W-X | ||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | |||||||
R/W-X | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | |||||||
R/W-X | |||||||
LEGEND: R/W = Read/Write; -n = value after reset |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31 | POLICING_EN | R/W | 0h | Policing Enable. |
30 | RESERVED | R/W | X | |
29 | RED_DROP_EN | R/W | 0h | RED
Drop Enable. |
28 | YELLOW_DROP_EN | R/W | 0h | WELLOW Drop Enable. |
27 | RESERVED | R/W | X | |
26-24 | YELLOWTHRESH | R/W | 0h | Yellow Threshold. |
23-22 | POLMCHMODE | R/W | 0h | Policing Match Mode. |
21 | PRIORITY_THREAD_EN | R/W | 0h | Priority Thread Enable. |
20 | MAC_ONLY_DEF_DIS | R/W | 0h | MAC
Only Default Disable. |
19-0 | RESERVED | R/W | X |
CPSW_ALE_POLICETESTCTL is shown in Figure 12-714 and described in Table 12-1381.
Return to Summary Table.
The Policing Test Control enables the ability to determine which policing entry has been hit and whether they reported a red or yellow rate condition.
Instance | Physical Address |
---|---|
CPSW0_NUSS_ALE | 0803 E128h |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
POL_CLRALL_HIT | POL_CLRALL_REDHIT | POL_CLRALL_YELLOWHIT | POL_CLRSEL_ALL | RESERVED | |||
R/W-0h | R/W-0h | R/W-0h | R/W-0h | R/W-X | |||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | |||||||
R/W-X | |||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | |||||||
R/W-X | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | POL_TEST_IDX | ||||||
R/W-X | R/W-0h | ||||||
LEGEND: R/W = Read/Write; -n = value after reset |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31 | POL_CLRALL_HIT | R/W | 0h | Policer Clear. This bit clears all the policing/ classifier hit
bits. |
30 | POL_CLRALL_REDHIT | R/W | 0h | Policer Clear RED. This bit clears all the policing/ classifier
RED hit bits. |
29 | POL_CLRALL_YELLOWHIT | R/W | 0h | Policer Clear YELLOW. This bit clears all the policing/
classifier YELLOW hit bits. |
28 | POL_CLRSEL_ALL | R/W | 0h | Police Clear Selected. This bit clears the selected policing/
classifier hit, redhit and yellowhit bits. |
27-5 | RESERVED | R/W | X | |
4-0 | POL_TEST_IDX | R/W | 0h | Policer Test Index. This field selects which policing/ classifier hit bits will be read or written. |
CPSW_ALE_POLICEHSTAT is shown in Figure 12-715 and described in Table 12-1383.
Return to Summary Table.
The policing hit status is a read only register that reads the hit bits of the selected policing/classifier.
Instance | Physical Address |
---|---|
CPSW0_NUSS_ALE | 0803 E12Ch |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
POL_HIT | POL_REDHIT | POL_YELLOWHIT | RESERVED | ||||
R-0h | R-0h | R-0h | R-X | ||||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | |||||||
R-X | |||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | |||||||
R-X | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | |||||||
R-X | |||||||
LEGEND: R = Read Only; -n = value after reset |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31 | POL_HIT | R | 0h | Policer Hit. |
30 | POL_REDHIT | R | 0h | Policer Hit RED. |
29 | POL_YELLOWHIT | R | 0h | Policer Hit YELLOW. |
28-0 | RESERVED | R | X |
CPSW_ALE_THREADMAPDEF is shown in Figure 12-716 and described in Table 12-1385.
Return to Summary Table.
The THREAD Mapping Default Value register is used to set the default thread ID when no classifier is matched.
Instance | Physical Address |
---|---|
CPSW0_NUSS_ALE | 0803 E134h |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
RESERVED | |||||||
R/W-X | |||||||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | |||||||
R/W-X | |||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
DEFTHREAD_EN | RESERVED | ||||||
R/W-0h | R/W-X | ||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | DEFTHREADVAL | ||||||
R/W-X | R/W-0h | ||||||
LEGEND: R/W = Read/Write; -n = value after reset |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-16 | RESERVED | R/W | X | |
15 | DEFTHREAD_EN | R/W | 0h | Default Tread Enable. |
14-6 | RESERVED | R/W | X | |
5-0 | DEFTHREADVAL | R/W | 0h | Default Thread Value. |
CPSW_ALE_THREADMAPCTL is shown in Figure 12-717 and described in Table 12-1387.
Return to Summary Table.
The THREAD Mapping Control register allows the highest matched classifier to return a particular thread ID for traffic sent to the host. This allows particular classifier matched traffic to be placed an a particular hosts queue.
Instance | Physical Address |
---|---|
CPSW0_NUSS_ALE | 0803 E138h |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | |||||||||||||||
R/W-X | |||||||||||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | CLASSINDEX | ||||||||||||||
R/W-X | R/W-0h | ||||||||||||||
LEGEND: R/W = Read/Write; -n = value after reset |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-5 | RESERVED | R/W | X | |
4-0 | CLASSINDEX | R/W | 0h | Classifier Index - This is the classifier index entry that the thread enable and thread value will be read or written by the CPSW_ALE_THREADMAPVAL register. Classifier
Index. |
CPSW_ALE_THREADMAPVAL is shown in Figure 12-718 and described in Table 12-1389.
Return to Summary Table.
The THREAD Mapping Value register is used to set the thread ID for a particular classifier entry.
Instance | Physical Address |
---|---|
CPSW0_NUSS_ALE | 0803 E13Ch |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
RESERVED | |||||||
R/W-X | |||||||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | |||||||
R/W-X | |||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
THREAD_EN | RESERVED | ||||||
R/W-0h | R/W-X | ||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | THREADVAL | ||||||
R/W-X | R/W-0h | ||||||
LEGEND: R/W = Read/Write; -n = value after reset |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-16 | RESERVED | R/W | X | |
15 | THREAD_EN | R/W | 0h | Thread Enable. |
14-6 | RESERVED | R/W | X | |
5-0 | THREADVAL | R/W | 0h | Thread Value. |