SPRUJ42E March 2022 – October 2024 AM2631 , AM2631-Q1 , AM2632 , AM2632-Q1 , AM2634 , AM2634-Q1
PRODUCTION DATA
The ALE Control Register is used to set the ALE modes used for all ports.
Return to Summary Table
Instance Name | Physical Address |
---|---|
CPSW0 | 5283 E008h |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
ENABLE_ALE | CLEAR_TABLE | AGE_OUT_NOW | RESERVED | MIRROR_DP | |||
R/W | R/W | R/W | NONE | R/W | |||
0h | 0h | 0h | 0h | 0h | |||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
UPD_BW_CTRL | RESERVED | MIRROR_TOP | |||||
R/W | NONE | R/W | |||||
0h | 0h | 0h | |||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
UPD_STATIC | LRN_HOST_DST | UVLAN_NO_LEARN | MIRROR_MEN | MIRROR_DEN | MIRROR_SEN | RESERVED | EN_HOST_UNI_FLOOD |
R/W | R/W | R/W | R/W | R/W | R/W | NONE | R/W |
0h | 0h | 0h | 0h | 0h | 0h | 0h | 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 | R/W | R/W | R/W | R/W | R/W | R/W | R/W |
0h | 0h | 0h | 0h | 0h | 0h | 0h | 0h |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31 | ENABLE_ALE | R/W | 0h | Enable ALE 0 - Drop all packets 1 - Enable ALE packet processing |
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. Software must perform a clear table operation as part of the ALE setup/configuration process. Setting this bit causes all ALE accesses to be held up for 64 clocks while the clear is performed. Access to all ALE registers will be blocked (wait states) until the 64 clocks have completed. This bit cannot be read as one because the read is blocked until the clear table is completed at which time this bit is cleared 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. This bit is cleared when the age out process has completed. This bit may be read. The age out process takes four times the number of table entries clock cycles (4096 cycles for 1K addresses) best case (no ale packet processing during ageout) and sixty five times the number of table entries clock cycles (66560 cycles for 1K addresses) absolute worst case. |
28:26 | RESERVED | NONE | 0h | Reserved |
25:24 | MIRROR_DP | R/W | 0h | Mirror Destination Port - This field defines the port to which destination traffic destined will be duplicated. That is all traffic that is forwarded to this port will also be mirrored to the mirror_top port. |
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. At frequencies of 350Mhz, the table update rate should be at it lowest or 5 Million updates per second. When operating the switch core at frequencies or above, the upd_bw_ctrl can be programmed more aggressive. If the upd_bw_ctrl is set but the frequency of the switch subsystem is below the associated value, ALE will drop packets due to insufficient time to complete lookup under high traffic loads. 0 - 350Mhz, 5M 1 - 359Mhz, 11M 2 - 367Mhz, 16M 3 - 375Mhz, 22M 4 - 384Mhz, 28M 5 - 392Mhz, 34M 6 - 400Mhz, 39M 7 - 409Mhz, 45M |
20:18 | RESERVED | NONE | 0h | Reserved |
17:16 | MIRROR_TOP | R/W | 0h | Mirror To Port - This field defines the destination port for the mirror traffic. If the traffic is received or transmitted on the mirror destination port it will not be duplicated. Traffic defined as mirror traffic only may be dropped by the switch due to congestion. |
15 | UPD_STATIC | R/W | 0h | Update Static Entries - A static Entry is an entry that is not agable. When clear this bit will prevent any static entry (agable bit clear) from being updated due to port change. When set it allows static entries (agable bit clear) to update the source port if required. This bit should normally be '0' for most switch configurations. |
14 | LRN_HOST_DST | R/W | 0h | Learn Host Destination - This field is set to only learn unicast packet source addresses that are destined to the host port. This bit is only valid for 3 port switches and allows the ALE table to only contain addresses the host port is concerned about. This bit is affectively disabled when en_host_uni_flood is set since any unknown unicast is also sent to the host port for extended bridging operations. |
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. When this bit is set any traffic whose destination, source, VLAN or OUI matches the mirror_midx entry index will have that traffic also sent to the mirror_top port. |
11 | MIRROR_DEN | R/W | 0h | Mirror Destination Port Enable - This field enables the destination port mirror option. When this bit is set any traffic destined for the mirror_dp port will have its transmit traffic also sent to the mirror_top port. |
10 | MIRROR_SEN | R/W | 0h | Mirror Source Port Enable - This field enables the source port mirror option. When this bit is set any port with the pX_mirror_sp set in the ALE Port Control registers set will have its received traffic also sent to the mirror_top port. |
9 | RESERVED | NONE | 0h | Reserved |
8 | EN_HOST_UNI_FLOOD | R/W | 0h | Unknown unicast packets flood to host 0 - unknown unicast packets are not sent to the host 1 - unknown unicast packets flood to host port as well as other ports |
7 | LEARN_NO_VLANID | R/W | 0h | Learn No VID - 0 - VID is learned with the source address 1 - VID is not learned with the source address (source address is not tied to VID). Determines the entry type. |
6 | ENABLE_VID0_MODE | R/W | 0h | Enable VLAN ID = 0 Mode 0 - Process the priority tagged packet with VID = PORT_VLAN[11:0]. 1 - Process the priority tagged packet with VID = 0. |
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. When cleared, any packet source address matching an OUI address table entry will be dropped to the host unless the destination address matches with 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. It is expected that packets from the host are directed to the particular port. 0 - no bypass 1 - bypass the ALE |
3 | BCAST_MCAST_CTL | R/W | 0h | Rate Limit Transmit mode 0 - Broadcast and multicast rate limit counters are received port based 1 - Broadcast and multicast rate limit counters are transmit port based |
2 | ALE_VLAN_AWARE | R/W | 0h | ALE VLAN Aware - Determines how traffic is forwarded using VLAN rules. 0 - Simple switch rules, packets forwarded to all ports for unknown destinations. 1 - VLAN Aware rules, packets forwarded based on VLAN members |
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. There is no auto learning of addresses in authorization mode and the packet will be dropped if the source address is not found (and the destination address is not a multicast address with the super table entry bit set). 0 - The ALE is not in MAC authorization mode 1 - The ALE is in MAC authorization mode |
0 | ENABLE_RATE_LIMIT | R/W | 0h | Enable Broadcast and Multicast Rate Limit 0 - Broadcast/Multicast rates not limited 1 - Broadcast/Multicast packet reception limited to the port control register rate limit fields. |