93. Ethernet switch (ETHSW)

This section applies to STM32MP25xx devices only.

93.1 Introduction

Copyright TTTech Industrial Automation AG, 2021.

This section describes the three-port Gigabit Ethernet switch (ETHSW) with time sensitive networking (TSN) features.

93.2 ETHSW main features

Note: The ETHSW is a configurable peripheral and the figures hereafter may contain features not available in this version. The ETHSW does not include:

93.3 ETHSW functional description

93.3.1 ETHSW block diagram

Figure 1126 here-below shows the ETHSW block diagram. Each of the individual building blocks are detailed in the functional description chapters.

Note: The ETHSW internal buses are using the Avalon protocol, as shown on Figure 1126. An AHB to Avalon bridge (see Section 93.3.10: AHB2Avalon) is implemented for the ETHSW register accesses.

Figure 1126. Block diagram

Block diagram of DEIP Core Flex showing AHB interface, internal Avalon bus, AC, FRTC_0, FRTC_1, FPTS, FSC, IBC, ACM, FES, Interface adapters, and ports 0, 1, 2.

The block diagram shows the DEIP Core Flex internal architecture of the Ethernet switch (ETHSW):

MSv68745V2

Block diagram of DEIP Core Flex showing AHB interface, internal Avalon bus, AC, FRTC_0, FRTC_1, FPTS, FSC, IBC, ACM, FES, Interface adapters, and ports 0, 1, 2.

93.3.2 ETHSW pins and internal signals

Table 985 and Table 986 show the Ethernet peripheral pins and ETHSW internal input/output signals, respectively.

Table 985. Ethernet peripheral pins

OTP mapping (OTP) • wplock: – • • • words/ OTP0 OTP_HW_WORD0 OTP1 OTP_HW_WORD1 OTP2 OTP_HW_WORD2 OTP3 OTP_HW_WORD3k( ) 1 wplo c Name/description y - - -RM0457 provides the bit-level Detailed description OTP check word (virgin → non virgin) OTP security word to close security state BSECXW OTP word for re-opening (CLOSE → OPEN) via RMA OTP Word for re-opening (CLOSE → OPEN) via RMA
Table 985and Table 986 input/output signals, respectively.show the Ethernet peripheral pins and ETHSW internal
Port name Digital port typeDescription
ETH1_COLInputCollision detection signal, MII only.
ETH1_CRSInputCarrier sense signal, MII only
ETH1_REF_CLKInputRMII reference clock
ETH1_RX_CLKInputMII/RGMII timing reference for Rx data transfers
ETH1_RDX[4]InputReceive data. 4 pins for MII and RGMII, 2 for RMII.
ETH1_RX_DVInputReceive data valid
ETH1_CRS_DVInputCarrier Sense (CRS) and RX_Data Valid (RX_DV) multiplexed on alternate clock cycles
ETH1_RX_CTLInputETH_RX_CLK, and ETH_RX_ER (logical XOR between ETH_RX_CTL
ETH1_RX_ERInputReceive error
ETH1_TX_CLKInputMII timing reference for Tx data transfers
ETH1_GTX_CLKOutputRGMII timing reference for Tx data transfers
ETH1_TX[4]OutputTransmit data. 4 pins for MII and RGMII, 2 for RMII.
ETH1_TX_ENOutputTransmit data enable
ETH1_TX_CTLOutputlogical XOR between ETH_TX_EN and ETH_TX_ER values on falling edge of ETH_TX_CLK
ETH2_COLInputCollision detection signal, MII only.
ETH2_CRSInputCarrier sense signal, MII only
ETH2_REF_CLKInputRMII reference clock
ETH2_RX_CLKInputMII/RGMII timing reference for Rx data transfers
ETH2_RDX[4]InputReceive data. 4 pins for MII and RGMII, 2 for RMII.
ETH2_RX_DVInputReceive data valid
ETH2_CRS_DVInputCarrier Sense (CRS) and RX_Data Valid (RX_DV) multiplexed on alternate clock cycles
ETH2_RX_CTLInputETH_RX_CLK, and ETH_RX_ER (logical XOR between ETH_RX_CTL
ETH2_RX_ERInputReceive error
ETH2_TX_CLKInputMII timing reference for Tx data transfers
RM0457 Rev 5 5519/ 5881
Table 985. Ethernet peripheral pins (continued)
Port nameDigital port typeDescription
ETH2_GTX_CLKOutputRGMII timing reference for Tx data transfers
ETH2_TX[4]OutputTransmit data.
4 pins for MII and RGMII, 2 for RMII.
ETH2_TX_ENOutputTransmit data enable
ETH2_TX_CTLOutputMultiplexing of ETH_TX_EN on the rising edge of ETH_TX_CLK, and a logical XOR between ETH_TX_EN and ETH_TX_ER values on falling edge of ETH_TX_CLK
ETH3_REF_CLKInputRMII reference clock
ETH3_RX_CLKInputMII/RGMII timing reference for Rx data transfers
ETH3_RDX[4]InputReceive data.
4 pins for MII and RGMII, 2 for RMII.
ETH3_CRS_DVInputCarrier Sense (CRS) and RX_Data Valid (RX_DV) multiplexed on alternate clock cycles
ETH3_RX_CTLInputAfter demultiplexing, this pin provides ETH_RX_DV on the rising edge of ETH_RX_CLK, and ETH_RX_ER (logical XOR between ETH_RX_CTL values on rising edge and falling edge of ETH_RX_CLK).
ETH3_TX_CLKInputMII timing reference for Tx data transfers
ETH3_GTX_CLKOutputRGMII timing reference for Tx data transfers
ETH3_TX[4]OutputTransmit data.
4 pins for MII and RGMII, 2 for RMII.
ETH3_TX_ENOutputTransmit data enable
ETH3_TX_CTLOutputMultiplexing of ETH_TX_EN on the rising edge of ETH_TX_CLK, and a logical XOR between ETH_TX_EN and ETH_TX_ER values on falling edge of ETH_TX_CLK
ETH3_PHY_IRQInputPHY interrupt (directly connected to GIC)
ETH3_PPS_OUTOutputPTP pulse-per-second output of the ETHSW. Pulse length is 20 µs.
Table 986. ETHSW internal input/output signals
Signal nameSignal typeDescription
ck_icn_p_ethswDigital inputETHSW Ethernet switch peripheral clocks: register access and PTP clock
ck_ker_ethswDigital inputETHSW kernel clock
ck_ker_ethswrefDigital inputInternal RMII clock
ethsw_resetnDigital inputETHSW reset
ethsw_irq_combinedDigital outputETHSW interrupt

Table 986. ETHSW internal input/output signals (continued)

Signal nameSignal typeDescription
cfg_if_selDigital inputPHY interface type selection for the RMII/RGMII adapters.
This signal is controlled by the ETHSW_CFG_I_SEL bit in the RCC.
ethsw_time_data
[95:0]
Digital outputETHSW time data from FRTC0/1 (as per TIM_MUX0 bit in ETHSW IBC time interface mux demux control register (ETHSW_IBC_TIME_MUX_CTRLR)).
Bits 15:0 subnanoseconds, bits (45:16) nanoseconds, bits (47:46) unused, bits (95 down to 48) seconds. Time data corresponds the time at time_ack signal edge. Synchronous to ck_icn_p_ethsw/2.

93.3.3 ETHSW reset and clocks

The ETHSW can be reset with the ETHSWRST bit in the RCC_ETHSWCFGR register.

It must be supplied with the following clocks:

Refer to the RCC section for more details.

93.3.4 FES Ethernet switch

FES is an Ethernet switch that has multiple Ethernet Media Access Controller (MAC) functional entities. FES provides MII/GMII interfaces for Ethernet PHY devices and optionally for a host system CPU (see Figure 1127).

Figure 1127. FES overview

Block diagram of the FES overview showing off-chip and on-chip components.

The diagram illustrates the FES (Fast Ethernet Switch) architecture, divided into Off-chip and On-chip sections.

Off-chip components:

On-chip components:

Block diagram of the FES overview showing off-chip and on-chip components.

Features of FES

The standard and optional features of FES include:

Host system interface

FES has a special feature in its Ethernet interfaces that is helpful when the interface is connected to a host system CPU. This FES feature is called Management mode. By using the Management mode it is possible for the CPU to send/receive packets to/from any other port independent from the MAC address table and other configurations.

Introduction to Ethernet and switching

This chapter contains an introduction to Ethernet, Ethernet switching, Precision Time Protocol (IEEE 1588v2) and Time Sensitive Networking (TSN) technologies.

Ethernet Media Access Control (MAC)

The Media Access Control (MAC) protocol is used to provide the data link layer of Ethernet protocol. The MAC protocol encapsulates data by adding a 14-byte header before the payload and a 32-bit Cyclic Redundancy Check (CRC) checksum after the payload. In addition to this, there is a 7-byte preamble and a 1-byte Start Frame Delimiter (SFD) before the header, see Figure 1128.

In case of Virtual LAN (VLAN) tagging being used, the header is 4 bytes longer because of an additional type field and a VLAN tag. This also increases the Ethernet frame's maximum length from 1518 bytes to 1522 bytes (without preamble and SFD). This means that an Ethernet bridge should support forwarding of up to at least 1522-byte frames.

Figure 1128. Ethernet frame formats

Diagram showing Ethernet frame formats for 802.3 and 802.1Q. The 802.3 frame includes preamble, SFD, destination address, source address, type, data payload, and CRC. The 802.1Q frame adds VLAN TPID and TCI fields. A detailed view of the TCI field shows priority, DEI, and VLAN identifier.

The diagram illustrates two Ethernet frame formats: 802.3 and 802.1Q.

802.3 Frame Format:

802.1Q Frame Format:

TCI Field Detail:

Diagram showing Ethernet frame formats for 802.3 and 802.1Q. The 802.3 frame includes preamble, SFD, destination address, source address, type, data payload, and CRC. The 802.1Q frame adds VLAN TPID and TCI fields. A detailed view of the TCI field shows priority, DEI, and VLAN identifier.

Preamble and Start Frame Delimiter (SFD)

Between every frame, there is a small idle time called an Interframe Gap. The length of the Interframe Gap is 96 bits. After an Interframe Gap a node starts its transmission by sending a preamble sequence consisting of 56 alternating 1's and 0's. The purpose of the preamble sequence is to synchronize the receiver(s) before the actual data arrives. After the preamble comes a Start Frame Delimiter ("0x5D") that indicates the starting point of the actual frame (the header).

MAC header consists of three parts:

Ethernet nodes are usually capable of choosing whether they want to receive only frames sent to their own Ethernet address and the broadcast address, or also frames sent to some, or all of the multicast addresses. The nodes may also choose to receive all the frames, including those destined for other nodes. This is called promiscuous mode.

CRC

The 32-bit cyclic redundancy check (CRC) checksum at the end of the frame provides an error detection mechanism. The CRC checksum is calculated and added to the frame when the frame is sent, and it is checked when the frame is received at the opposite end. Frames received with an invalid CRC checksum contain an error and should be discarded by the receiver.

Media Independent Interface (MII/GMII)

Media Independent Interface (MII) is a standardized interface between MAC and PHY. MII interface can exist in different forms, it can for example be a physical connector between two devices or it can be just signals between two devices on a circuit board. It is also possible that an MII interface exists inside a single chip, between two functional blocks. The idea of the MII interface is that it is independent of the physical medium. In practice this means that the same Ethernet MAC can be used with various kinds of Ethernet media. The MII interface standard supports both 10-Mbps and 100-Mbps transfer rates. For gigabit media there is GMII (Gigabit Medium Independent Interface).

Media Access Control (MAC) bridge

MAC bridges allow communications between end-stations attached to separate LANs (network segments). A bridge has an own separate MAC for each LAN it connects to and it is able to bridge traffic between the LANs transparent to logical link control (LLC) and network layer protocols, just as if the stations were attached to the same LAN. MAC bridges with more than two ports are commonly called switching hubs or Ethernet switches.

Functional entities of an Ethernet switch can be divided roughly into three parts: Forwarding Process, Address Learning Process and MAC address table (forwarding database). The Forwarding Process forwards Ethernet frames between the ports according to MAC address table updated by the Address Learning Process. The Address Learning Process observes all the received frames and learns which stations are in which network segments by storing their MAC addresses into the MAC address table.

Ethernet frames whose destination is known by the switch to be in the network segment behind another port are forwarded to that port. If the destination is known to be behind the same port where from the frame was received, the switch discards the frame. Ethernet frames whose destination is unknown (the address is not yet stored to the MAC address table, or the address information is deleted from the MAC address table because of being too old) are forwarded to every other port than the source port. In addition, frames with broadcast (and multicast) destination addresses are forwarded by switches to every other port that the source port as they are supposed to reach every station in the network.

MAC Address table

The operations on the MAC address table can be broken down to three different processes; a learning process, a lookup process and an aging process.

The learning process compares the source addresses of the received frames to the addresses in the MAC address table. If the entry is found to be already in the table, the port mapping information is updated if it has changed (the network topology has changed), and the entry is refreshed so that the aging process does not remove it prematurely. If the address entry cannot be found from the table, it is added there. If the table is already full, it may be necessary to remove some other entry from the table. Note that if the network topology changes and nodes are moved from a switch port to another, the switch does not have correct information on the whereabouts of the node until it transmits something, or the aging process removes the entry. Until then frames destined to the node is forwarded to wrong port and they do not reach their destination.

The lookup process compares the destination addresses of the received frames to the addresses in the MAC address table. According to this information the forwarding process either discards the frame or forwards it to another or to all other ports. Note that frames are never forwarded to the port from where they were received, as that would cause duplicate frames to the network.

The aging process removes entries from the MAC address table. The entries are removed when they have not been refreshed by the learning process for some time. In many switches this aging time is configurable, but not always, in which case the default value of five minutes is typically used. The aging process helps keeping the MAC address table small, which may in some cases affect the time taken by address lookup (depending on the search algorithm used). The other reason for the aging process to exist is to be able to react to network topology changes in case there are nodes that do not transmit too often or nodes that do not initiate any communication by themselves.

Shared Media versus Dedicated Media

“There are no shared-medium implementations of Ethernet at data rates above 10Mb/s.”[10]

Shared Ethernet, where technologies like Carrier Sense Multiple Access (CSMA) and Collision Detection (CD) are used for gaining access to the physical medium, is legacy technology. Today's Ethernet is switched, which means that every end node has a dedicated port in an Ethernet switch. In switched Ethernet every network segment consists of an end-node, an Ethernet switch and a point-to-point link between them.

Switched Ethernet has many advantages over a shared media:

Cut-through versus Store-and-Forward operation

According to the IEEE standard 802.1D “Media Access (MAC) Bridges” [5], every port of the MAC bridge has an individual MAC entity examining all the frames transmitted to the medium by the other node(s). The CRC checksums of the received frames are checked by calculating the CRC of the received frames and comparing it to the CRC checksum at the end of the frame. Frames with erroneous CRC checksums should be silently discarded.

The so-called cut-through switches that start to forward the frame before it is fully received, do not conform with the standard in this respect because they are not able to discard the received frames if they have an erroneous CRC checksum. The opposite of cut-through operation is store-and-forward operation, in which case frames are fully received and their CRC checksums are checked before they are forwarded.

Spanning Tree Protocol

Spanning Tree Protocol (STP) is a protocol that automatically removes loops from a switched Ethernet network. A loop-free topology is achieved by disabling some of the network links, to form a tree topology from the mesh topology. Loop-free topology is needed because if there was a loop in the network, Ethernet frames would circulate in the loop for infinite time.

According to the standard (IEEE 802.1D) the Spanning Tree Protocol configures full, simple, and symmetric connectivity throughout a bridged Local Area Network that comprises individual LANs interconnected by bridges. The Spanning Tree Protocol (STP) configures the port state of each bridge port in the bridged Local Area Network. STP ensures that the stable connectivity provided by each bridge between its ports and by the individual LANs to which those ports attach is predictable, manageable, full, simple, and symmetric. STP further ensures that temporary loops in the active topology do not occur if the network has to reconfigure in response to the failure, removal, or addition of a network component, and that erroneous station location information are removed from the Filtering Database after reconfiguration. [5]

STP and its improved version Rapid Spanning Tree Protocol (RSTP) [4] use configuration messages sent to a specific multicast MAC address to create and maintain the network topology. In addition to the STP protocol stack, support for STP requires the bridge to support certain port states (Disabled, Learning and Forwarding) and capture the STP configuration messages for the STP protocol stack.

Precision Time Protocol

Precision Time Protocol (PTP), defined in IEEE standard 1588 [6], is a protocol enabling precise synchronization of device clocks in packet-based networks, for example Ethernet. Devices running PTP are automatically synchronized to the most accurate clock in the network. The protocol supports system wide synchronization accuracy in submicrosecond range with minimal network and local clock computing resources. It is used for example by test and measurement, power-line management, industrial automation and telecom applications.

PTP accuracy is based on an assumption that the delay in Ethernet is approximately constant and symmetric. Because of the packet based traffic in Ethernet, Ethernet switches in the path of the packets cause variable delay for packet throughput, thus degrading PTP

synchronization accuracy. Transparent PTP clock functionality removes these problems and enables precise synchronization of clocks in switched Ethernet.

Transparent clock

Transparent clock timestamps PTP event frames in receive and in transmission ports and calculates the delay caused by the switch by subtracting the receive timestamp from the transmission timestamp. In PTP end-to-end transparent one step switch, the calculated delay is added to the correction field of the PTP event frame. A PTP slave that receives the PTP event message corrects the delay calculation by removing the effect of the PTP transparent clocks by subtracting the correction field value from the calculated total packet transmission delay. PTP peer-to-peer transparent clock measures the delay of the ingress path and includes that also in the correction field value.

FRER (Frame Replication and Elimination for Reliability)

IEEE Standard 802.1CB (Frame Replication and Elimination for Reliability, FRER) [9] defines a method for frame replication and duplicate removal whose principles are quite similar to HSR and PRP. The standard even specifies some compatibility with HSR/PRP, and for compatibility reasons it uses, for example, the same sequence number space as HSR/PRP.

The main difference between HSR/PRP and FRER is that when HSR/PRP functionality is configured for ports, the FRER functionality is configured for streams. This means that in case of FRER a port can be simultaneously sending and receiving both FRER and non-FRER traffic. So, when in case of HSR/PRP the network topology is basically the same for all the traffic, with FRER different streams can experience totally different network topology. FRER uses Redundancy Tag (R-TAG) presented in Figure 1129. The EtherType of R-TAG is 0xF1C1. The Reserved bits in the R-TAG are transmitted as zero and ignored at receive.

Figure 1129. Redundancy tagged frame

Diagram of a Redundancy tagged frame structure. The main frame consists of: preamble (7 bytes), SFD (1 byte), destination address (6 bytes), source address (6 bytes), VLAN TPID (2 bytes), TCI (2 bytes), R-TAG type (2 bytes), R-TAG (4 bytes), type (2 bytes), data payload (64-1522 bytes), and CRC (4 bytes). The TCI field is expanded to show priority (3 bits), CFI (1 bit), and VLAN identifier (12 bits). The R-TAG field is expanded to show Reserved (16 bits) and Sequence Number (16 bits).
preambleSFDdestination addresssource addressVLAN TPIDTCIR-TAG typeR-TAGtypedata payloadCRC
7 bytes1 B6 bytes6 bytes2 B2 B2 B4 B2 B64-1522 bytes4 B

priorityCFIVLAN identifier
3 bits1 b12 bits

ReservedSequence Number
16 bits16 bits
Diagram of a Redundancy tagged frame structure. The main frame consists of: preamble (7 bytes), SFD (1 byte), destination address (6 bytes), source address (6 bytes), VLAN TPID (2 bytes), TCI (2 bytes), R-TAG type (2 bytes), R-TAG (4 bytes), type (2 bytes), data payload (64-1522 bytes), and CRC (4 bytes). The TCI field is expanded to show priority (3 bits), CFI (1 bit), and VLAN identifier (12 bits). The R-TAG field is expanded to show Reserved (16 bits) and Sequence Number (16 bits).

Traffic shaping and policing

Traffic shaping and traffic policing are techniques for rate limiting. Traffic rate is measured and if the rate exceeds the configured rate, actions are taken to force the rate to comply with the configured profile.

The difference between shaping and policing is that a shaper is able to delay frames and a policer just drops the excess traffic. Shaping consumes more hardware resources than

policing as it requires buffering of the frames. As no buffer is infinite in size, shaping may also lead into dropping of frames if the traffic rate continuously exceeds the configured rate.

Policers typically employ so called Token bucket principle (see Figure 1130).

Figure 1130. Token bucket

Diagram of the Token Bucket principle. Tokens arrive at a constant rate into a bucket. Frames arrive and are checked against tokens. If tokens are available, the frame is conforming. If not, the frame is exceeding.

The diagram illustrates the Token Bucket principle. At the top, four pink rectangles represent 'Tokens at constant rate' entering a green bucket. The bucket is labeled 'Token bucket size == Burst limit'. Below the bucket, a series of purple rectangles represent 'Frames' entering a green circle. From the circle, two paths emerge: one labeled 'Conforming' leading to two pink rectangles, and another labeled 'Exceeding' leading to two purple rectangles.

Diagram of the Token Bucket principle. Tokens arrive at a constant rate into a bucket. Frames arrive and are checked against tokens. If tokens are available, the frame is conforming. If not, the frame is exceeding.

Tokens arrive at the bucket with a constant rate that corresponds to the configured data rate. When a frame arrives, tokens are consumed for the frame. If the rate of the frames exceeds the rate of the tokens for a longer period, the bucket runs out of tokens. In that case the frames that are left without tokens are marked as exceeding the configured rate, and they may be treated in a different way than the other frames that conform to the configured rate.

Scheduled traffic

In critical control applications a very short and guaranteed maximum forwarding latency and end-to-end delay may be required. If the important traffic is periodic it is possible to arrange time slots for the important frames and to stop the less important traffic well before these time slots. In practice Scheduled traffic means that there is a schedule in the network nodes telling which TX queues of which ports are able to transmit at what time. For this to work the network nodes need to be well time synchronized with each other.

Preemptable traffic

Frame preemption means that transmission of a less time-critical frame whose transmission has already started can be interrupted so that a time-critical frame can be sent instead. After the time-critical frame has been sent, the transmission of the interrupted frame continues from the location where it was interrupted. A less time-critical (preemptable) frame may be interrupted (preempted) multiple times.

The SFD (Start Frame Delimiter) is replaced with an SMD (Start mPacket Delimiter) telling whether the frame is preemptable, non-preemptable (express), continuation fragment of a preempted frame, or a frame used for verifying whether the other end of the link supports

Frame preemption or not. When a frame is preempted, a special CRC called mCRC is added to the end of the frame for the receiving end to be able to distinguish it from frames that have not been preempted (see Figure 1131). The continuation fragments of the preempted frame then have one octet shorter (6 octets instead of the typical 7 octets) preamble, making room for an extra fragment count field located between the SMD and the data [9].

Figure 1131. Ethernet frame with preemption

Diagram showing five Ethernet frame structures: Express frame, Preemptable frame (first fragment not preempted), Preemptable frame (first fragment preempted), Continuation fragment (preempted), and Continuation fragment (not preempted).

The diagram illustrates five Ethernet frame structures with their respective field sizes and labels:

Diagram showing five Ethernet frame structures: Express frame, Preemptable frame (first fragment not preempted), Preemptable frame (first fragment preempted), Continuation fragment (preempted), and Continuation fragment (not preempted).

Notable is that the SMD for express frames (frames that cannot be preempted) is the same as the SFD (0xD5), so express frames are exactly like normal Ethernet frames. The full list of possible SMD values is presented in Table 987.

Table 987. SMD values

SMDNotationMeaning
0xD5SMD-EExpress frame, non-preemptable.
0xE6, 0x4C, 0x7F, 0xB3SMD-SFirst fragment of a preemptable frame. It can be the only fragment too (CRC/mCRC indicates whether it is preempted or not).
A 2-bit frame counter value is encoded into the SMD-S value as well.
0x61, 0x52, 0x9E, 0x2ASMD-CContinuation fragment of preempted frame. A 2-bit frame counter value is encoded into the SMD-C value as well.
0x07SMD-VA frame used for verifying preemption support of the other link partner.
0x19SMD-RA response to SMD-V.

Functional description

The functional blocks of FES are presented in Figure 1132. The functionality of FES can be controlled via configuration registers accessed using an AHB interface. The configuration registers are defined in Section 93.5: ETHSW registers.

Figure 1132. FES block diagram

FES block diagram showing the internal structure of the Ethernet Switch. The diagram is enclosed in a box labeled 'FES'. Inside, there is a 'Forwarding core' block containing a 'Buffer manager' (with 'Memory control' and 'Buffer'), 'Queues', and 'Configuration registers'. The 'Configuration registers' are connected to an 'AHB' interface. Below the 'Forwarding core', there are three port blocks (Port 0, Port 1, Port 2). Each port block contains 'Inbound' and 'Outbound' processing units, each with a 'MAC' block. The 'Forwarding core' is connected to the 'Inbound' and 'Outbound' units of each port via 'Queues'. The 'Inbound' units are connected to 'RGMII' or 'RMII/RGMII' interfaces, which are then connected to the ports. Port 0 is labeled '(internal)', while Port 1 and Port 2 are labeled '(external)'.
FES block diagram showing the internal structure of the Ethernet Switch. The diagram is enclosed in a box labeled 'FES'. Inside, there is a 'Forwarding core' block containing a 'Buffer manager' (with 'Memory control' and 'Buffer'), 'Queues', and 'Configuration registers'. The 'Configuration registers' are connected to an 'AHB' interface. Below the 'Forwarding core', there are three port blocks (Port 0, Port 1, Port 2). Each port block contains 'Inbound' and 'Outbound' processing units, each with a 'MAC' block. The 'Forwarding core' is connected to the 'Inbound' and 'Outbound' units of each port via 'Queues'. The 'Inbound' units are connected to 'RGMII' or 'RMII/RGMII' interfaces, which are then connected to the ports. Port 0 is labeled '(internal)', while Port 1 and Port 2 are labeled '(external)'.

FES consists of three main blocks: Forwarding core and Inbound and Outbound processing. The Inbound and Outbound processing blocks include either Ethernet Media Access Control (MAC) or DMA engine, depending on the port configuration.

The Forwarding core is responsible for managing the frames inside the switch. The Forwarding core is common to all the ports and it does the actual forwarding of frames between ports. As frames may need to spend time inside the switch, they are stored into a

buffer memory. The Forwarding core does the memory management for the buffer memory and it is also responsible for the queuing of the frames.

Every port has its own inbound and outbound processing. The inbound and outbound processing of a port is mostly independent from the other ports, exceptions to this are the MAC address tables, policers and stream recognition functionalities. Ports have GMII/MII interfaces to transfer Ethernet frames.

Figure 1133. FES forwarding path (GMII/MII port)

A block diagram showing the FES forwarding path. It consists of three main sections: Inbound processing, Forwarding core, and Outbound processing. Inbound processing includes HW time stamping, MAC, and Frame analysis and modification, forwarding decision. Forwarding core includes RX processing, Memory control, Buffer, CTRL info, and TX processing. Outbound processing includes Frame modification, MAC, and HW time stamping. Arrows show the flow of data from Inbound to Forwarding core to Outbound processing.

The diagram illustrates the data flow for a forwarded frame within the FES. It is organized into three main functional blocks:

Dashed lines indicate the detailed internal components of the Inbound and Outbound processing blocks, while solid arrows show the primary data path.

A block diagram showing the FES forwarding path. It consists of three main sections: Inbound processing, Forwarding core, and Outbound processing. Inbound processing includes HW time stamping, MAC, and Frame analysis and modification, forwarding decision. Forwarding core includes RX processing, Memory control, Buffer, CTRL info, and TX processing. Outbound processing includes Frame modification, MAC, and HW time stamping. Arrows show the flow of data from Inbound to Forwarding core to Outbound processing.

Figure 1133 presents the processing path of a forwarded frame inside FES. The path contains Inbound processing, Outbound processing and Forwarding core functions. Inbound processing contains Ethernet MAC and data processing blocks that are able to

analyze and modify the frame. Every port has its own Inbound processing functionality that uses a MAC address table common to all ports.

The Forwarding core contains RX and TX processing blocks for controlling Inbound and Outbound processing blocks. The memory controller block manages the memory used for storing frames and their control information. Storing of frames is needed because there can be more frames forwarded to an output port than its capacity. Frame data is stored into a buffer memory, and the state of the frame is managed via a CTRL info data structure. Every frame is associated with one CTRL info structure. CTRL info data structure contains all the needed information about the state of the frame, including the destination port and the whereabouts of the memory buffers where the frame data is stored. Frames are stored into the buffer memory in chunks of 512 bytes. This means that every stored frame consumes N × 512 bytes of buffer memory, where N equals 1 to 3. When frames are stored into the buffer memory waiting to be transmitted from an output port, they are in a TX queue of the output port. The TX queues contain pointers to the frames; no actual frame data is moved from a place to another when queuing the frames.

The main function of Outbound processing is to send frames from buffer memory to Ethernet (MII/GMII port). Outbound processing contains functionality for retrieving data from the buffer memory, timestamping functions for PTP use, and Ethernet MAC functionality for sending data to the medium (MII/GMII port). Each port has its own individual Outbound processing entity.

Inbound processing (GMII/MII ports)

Inbound processing receives frames from Ethernet and transfers them to the buffer memory. The functionality of Inbound processing blocks are described in subparagraphs in this chapter.

During reception, Inbound processing does the following:

RX MII

The RX MII receives frames from the Ethernet PHY. When RX MII is operational, and frames arrive from the network, it writes the frames received from the network to the RX preprocess block. While the frame is being received, RX MII calculates CRC over the frame. When the reception of the frame is complete, it indicates the status of the CRC calculation. Frames with invalid CRC are discarded by the Forwarding core (except when Cut-Through) and MAC RX error counter is incremented.

RX MII block indicates the start of the frame to the Timestamp block via the Time interface. The timestamp point for a frame is defined in Figure 1134.

Figure 1134. Ethernet frame timestamp point

Diagram of an Ethernet frame structure showing the timestamp point. The frame consists of a preamble, followed by the Start of Frame Delimiter (SFD), then the Destination address (Dst address), and other fields indicated by an ellipsis. An arrow points to the boundary between the SFD and the Dst address, labeled 'Timestamp point'.
preambleSFDDst address...

↑
Timestamp point

Diagram of an Ethernet frame structure showing the timestamp point. The frame consists of a preamble, followed by the Start of Frame Delimiter (SFD), then the Destination address (Dst address), and other fields indicated by an ellipsis. An arrow points to the boundary between the SFD and the Dst address, labeled 'Timestamp point'.

There are four kinds of errors that can occur while RX MII is receiving a frame. These are: Size error, CRC error, Octet error and Line error.

Size error indicates that the received frame is over 1536-byte long (without preamble and SFD, with CRC). In that case the frame is truncated to 1536 bytes, and a Size error is generated incrementing MAC RX Error counter.

CRC error signals that the CRC checksum in the received frame was not the same as the one that was calculated while receiving the frame. This is the result of an error in the data of the received frame and an indication that the frame should be discarded. Size error, Octet error and Line error usually also cause a CRC error to the received frame.

Octet error occurs when the received frame contains an uneven number of half bytes (nibbles). This kind of frame is not valid.

Line error indicates that, while receiving the Frame, the PHY reported an error to RX MII.

All the frames received with an error are dropped by the Forwarding core (except when Cut-Through) and the corresponding error counters are incremented (see ETHSW FES port x counter control register (ETHSW_FESx_CNT_CTRLR) (x = 0 to 2)). In addition, frames whose size is less than 64 bytes are discarded.

Timestamp

The Timestamp block uses the start-of-frame indication from RX MII block to determine the exact value of the reception time. The reception time of the frame is then given to the RX preprocess block and to PTP Modify block (port 0 only).

The Timestamp block is external to FES. FES communicates with the Timestamp block using Time interface. Time interface uses time presentation that has an accuracy of 2⁻¹⁶ nanoseconds and a timestamp length of 96 bits. The actual accuracy depends on the system clock frequency used, and the type of clock.

Frame preemption

The frames with SMD-V or SMD-R are used for verifying preemption support. They are forwarded to the management ports for software handling of the verify protocol. The frames with SMD-S are either the first fragments or the only fragments of preemptable frames. The next fragments are marked with SMD-C. Frames with SMD-C include also an encoded fragment count. The last fragment is recognized by having a CRC instead of mCRC (CRC XOR 0x0000 FFFF). Both the frame count and fragment count are 2-bit counters.

The frame count is encoded into SMD-S as presented in Table 988 and to SMD-C as presented in Table 989.

Table 988. Encoding of frame count in SMD-S
SMD-S[frame_count]Value
SMD-S[0]0xE6
SMD-S[1]0x4C
SMD-S[2]0x7F
SMD-S[3]0xB3
Table 989. Encoding of frame count in SMD-C
SMD-C[frame_count]Value
SMD-C[0]0x61
SMD-C[1]0x52
SMD-C[2]0x9E
SMD-C[3]0x2A

Encoding of the Fragment Count in Continuation Fragments is presented in Table 990.

Table 990. Encoding of fragment count
FRAG_COUNT[frame_count]Value
FRAG_COUNT[0]0xE6
FRAG_COUNT[1]0x4C
FRAG_COUNT[2]0x7F
FRAG_COUNT[3]0xB3

Forwarding decision

A Forwarding decision in FES is made based on information from the following sources:

Regardless of a frame being dropped or not, it is always received to the buffer memory of the forwarding core, which means that it goes through the whole Inbound processing chain. If the frame is to be dropped, the memory resources allocated by the frame are freed right after the reception.

The forwarding decision is presented in Figure 1135. Note that frames coming into a disabled port are also received to the buffer memory, but because their forwarding decision is not to forward them to any port, they are dropped. However, this behavior can be changed and frames can be forwarded from disabled ports to other ports by using IPO (Inbound Port Ordinance).

Figure 1135. Forwarding decision

Flowchart for forwarding decision logic in an Ethernet switch, including stages for Frame recognition, MACsec, VLAN, DMAC, SMAC, IPO, FRER, PSFP, Policer, and Management Trailer.

The flowchart illustrates the forwarding decision process for an Ethernet switch, starting from frame recognition and ending with the final forwarding decision. It is organized into several functional blocks: Frame recognition & preemption, MACsec, VLAN, DMAC, SMAC, IPO, FRER, PSFP, Policer, and Management Trailer.

Frame recognition & preemption: The process starts with 'Start' and 'MII/GMII RX data becomes valid after valid interframe gap'. It proceeds through 'Cut-through' (NO leads to 'Oversize or undersize' check, YES leads to 'CRC OK?' check). If 'Oversize or undersize' is YES or 'CRC OK?' is NO, the frame is 'DROP'ped.

MACsec: If 'CRC OK?' is YES, it checks 'MACsec forwarding decision'. If 'No change in forwarding decision', it proceeds. If 'Forward only to ports in management mode', it restricts forwarding. A note indicates 'Cut-through is disabled when MACsec is enabled'.

VLAN: This block determines the VLAN ID (VID). It checks 'VLAN Tagged?'. If NO, 'VID=Default VLAN'. If YES, it checks 'VID==0?'. If YES, 'VID=Default VLAN for Priority Tagged Frames'. It then checks 'VID enabled for the input port'. If NO, the frame is 'DROP'ped. The 'PortMask' is updated based on the VID.

DMAC: This block handles destination MAC address (DMAC) forwarding. It uses 'HSR/PRP/MAC Table based forwarding decision'. It checks 'Engineered Traffic?' (Bit 15 in VLANx_FID register). If YES, it enables 'All zeros' for the 'PortMask'. A note states 'Do not forward to disabled ports (and not to those in learning state)'.

SMAC: This block handles source MAC address (SMAC) processing. It checks 'Found in SMAC table?'. If YES, it updates the 'PortMask from SMAC table'. It also checks 'Input Port state' (Enabled or Disabled or Learning). If Disabled or Learning, it enables 'All zeros' for the 'PortMask'.

IPO, FRER, PSFP, Policer: These blocks represent various packet processing stages: Ingress Port Offload (IPO), Frame Reordering (FRER), Packet Shaping and Forwarding (PSFP), and Policing.

Management Trailer: The final block checks 'Management mode?'. If YES, it checks 'Management Trailer bits all zero?'. If YES, it uses the 'Forward Mask from Management Trailer'. If NO, it keeps the original decision. A note states 'When Management Trailer bits are all 0's keep original decision. Otherwise override.'

The final output is the 'Forward' decision, which is influenced by the 'PortMask' throughout the process.

Flowchart for forwarding decision logic in an Ethernet switch, including stages for Frame recognition, MACsec, VLAN, DMAC, SMAC, IPO, FRER, PSFP, Policer, and Management Trailer.

Inbound Port Ordinance

The Inbound Port Ordinance (IPO) functionality checks the source and the destination MAC addresses of all the received frames. The user can configure using the register interface what kind of a treatment should frames with certain source or destination MAC addresses then get. The alternatives for configured MAC addresses are the following:

It is also possible to enable or disable:

Figure 1136 shows how IPO affects the forwarding decision.

Figure 1136. IPO

Flowchart of the IPO (Ingress Port Offload) logic. The process starts with 'N=0 Initialize IPO slot counter'. It checks for a match to source or destination entry. If a match is found, it performs port mask logic (AND with Allow mask N, OR with Mirror mask N) and checks if it's a first copy. If not, duplicates are dropped from ports where Allow bit==0 and Mirror bit==1. Then N is incremented (N++) and checked up to N==15 to find a second match (source/destination depending on the first match), applying a similar mask and duplicate filtering sequence.
graph TD
    Start([N=0 Initialize IPO slot counter]) --> Match1{IPO address N match? (first match)}
    Match1 -- YES --> Enable1[enable]
    Match1 -- NO --> N15_1{N==15?}
    N15_1 -- NO --> NInc1[N++]
    NInc1 --> Match1
    N15_1 -- YES --> End[ ]
    
    Enable1 --> AND1[AND]
    AND1 --> OR1[OR]
    OR1 --> Match2{First copy?}
    Match2 -- NO --> Drop1[Drop duplicates from those ports whose Allow bit==0 and Mirror bit == 1]
    Match2 -- YES --> NInc2[N++]
    Drop1 --> NInc2
    
    NInc2 --> Match3{IPO address N match? (second match)}
    Match3 -- YES --> Enable2[enable]
    Match3 -- NO --> N15_2{N==15?}
    N15_2 -- NO --> NInc2
    N15_2 -- YES --> End
    
    Enable2 --> AND2[AND]
    AND2 --> OR2[OR]
    OR2 --> Match4{First copy?}
    Match4 -- NO --> Drop2[Drop duplicates from those ports whose Allow bit==0 and Mirror bit == 1]
    Match4 -- YES --> End
    Drop2 --> End
Flowchart of the IPO (Ingress Port Offload) logic. The process starts with 'N=0 Initialize IPO slot counter'. It checks for a match to source or destination entry. If a match is found, it performs port mask logic (AND with Allow mask N, OR with Mirror mask N) and checks if it's a first copy. If not, duplicates are dropped from ports where Allow bit==0 and Mirror bit==1. Then N is incremented (N++) and checked up to N==15 to find a second match (source/destination depending on the first match), applying a similar mask and duplicate filtering sequence.

The MAC addresses for the IPO are configured using IPO registers, from ETH­SW FES port x IPO command register (ETHSW_FESx_IPO_CMDR) (x = 0 to 2) to ETH­SW FES port x ethernet address part 2 register (ETHSW_FESx_ETH_ADDR_2R) (x = 0 to 2).

The IPO goes through the MAC addresses configured in the IPO registers in ascending order for every incoming frame. It finds the first matching rule for both source and destination MAC addresses in the frame and applies both rules to the forwarding decision (in the order the matches were found). The effect of IPO matches to the forwarding decision can be seen in Figure 1135. The other settings for the matching frame (priority, whether to send without HSR/PRP tag) are taken from the latest match (if any).

Priority

When an incoming frame is VLAN tagged, its priority is defined by the PCP (Priority Code Point) bits in the VLAN tag and the priority configured in the Priority Regeneration Table for the PCP (see ETHSW FES port x priority regeneration table low register (ETHSW_FESx_PRIO_REGENLR) (x = 0 to 2) and ETHSW FES port x priority regeneration table high register (ETHSW_FESx_PRIO_REGENHR) (x = 0 to 2)). If the incoming frame had no VLAN tag, its priority is defined by the port default PCP (in PORT_VLAN register) and by the priority for the port default PCP configured in the Priority Regeneration Table, see Figure 1137. The priority then defines the PCP for the outgoing frame, and also via Queue Table into which the TX queue the frame is put.

Figure 1137. Frame priority

Diagram showing Frame priority processing. It depicts Priority Regeneration Table with inputs from PCP in the frame or Port Default PCP from PORT_VLAN register, resulting in Priority. The Priority goes through overrides: SMAC overrides (from Static MAC address table match), IPO overrides (from IPO match), and PSFP priority overrides (from priority input signals), eventually leading to Queue Table for Queue number output and PCP for output frame.

Figure 1137 shows the frame priority logic flow:

Diagram showing Frame priority processing. It depicts Priority Regeneration Table with inputs from PCP in the frame or Port Default PCP from PORT_VLAN register, resulting in Priority. The Priority goes through overrides: SMAC overrides (from Static MAC address table match), IPO overrides (from IPO match), and PSFP priority overrides (from priority input signals), eventually leading to Queue Table for Queue number output and PCP for output frame.

IPO (Inbound Port Ordinance), SMAC table and PSFP schedule can be configured to override the priorities for selected frames as presented in Figure 1137. As can be seen in Figure 1137, priority from SMAC table affects the PCP of the outgoing frame, whereas priority from IPO and PSFP schedule can only affect the queue selection.

Drop Eligibility

The DEI (Drop Eligible Indicator) bit (see Figure 1128) in the VLAN tag can be used to indicate Drop Eligibility of Ethernet frames. Frames marked as Drop Eligible should be dropped before the frames not marked as Drop Eligible by the network nodes in case of network congestion. In FES the usage of DEI bit can be enabled/disabled per port by using the USE_DEI bit in register PORT_VLAN1 (ETHSW FES port x port VLAN configuration register 1 (ETHSW_FESx_VLAN1R) (x = 0 to 2)). Decoding and encoding of Drop Eligibility in the DEI bit of the VLAN tag is presented in Figure 1138 and Figure 1139.

Figure 1138. Decoding Drop Eligibility of RX frame

Flowchart for decoding drop eligibility of an RX frame. It starts with 'Frame arrives', checks if 'VLAN-tagged?'. If NO, 'Drop Eligible = FALSE'. If YES, checks 'Use_DEI == TRUE?'. If NO, 'Drop Eligible = FALSE'. If YES, checks 'DEI bit == 1?'. If NO, 'Drop Eligible = FALSE'. If YES, 'Drop Eligible = TRUE'.
graph TD; Start([Start]) -->|Frame arrives| VLAN{VLAN-tagged?}; VLAN -- NO --> DropFalse([Drop Eligible = FALSE]); VLAN -- YES --> UseDEI{Use_DEI == TRUE?}; UseDEI -- NO --> DropFalse; UseDEI -- YES --> DEI{DEI bit == 1?}; DEI -- NO --> DropFalse; DEI -- YES --> DropTrue([Drop Eligible = TRUE]);

Use_DEI register setting of the input port

DEI bit in the received frame

Flowchart for decoding drop eligibility of an RX frame. It starts with 'Frame arrives', checks if 'VLAN-tagged?'. If NO, 'Drop Eligible = FALSE'. If YES, checks 'Use_DEI == TRUE?'. If NO, 'Drop Eligible = FALSE'. If YES, checks 'DEI bit == 1?'. If NO, 'Drop Eligible = FALSE'. If YES, 'Drop Eligible = TRUE'.

Figure 1139. Encoding Drop Eligibility for TX frame

Flowchart for encoding drop eligibility for a TX frame. The process starts with 'Start', then 'Frame is sent out'. A decision 'VLAN-tagged?' leads to 'YES' or 'NO'. 'NO' leads to 'No DEI'. 'YES' leads to 'Use_DEI == TRUE?'. 'NO' leads to 'DEI = 0'. 'YES' leads to 'Drop Eligible?'. 'NO' leads to 'DEI = 0'. 'YES' leads to 'DEI = 1'. Annotations: 'Use_DEI register setting of the output port' and 'Frame could have been Drop Eligible already when it came in, or Policer marked it Drop Eligible'.
graph TD
    Start([Start]) --> Frame[Frame is sent out]
    Frame --> VLAN{VLAN-tagged?}
    VLAN -- NO --> NoDEI([No DEI])
    VLAN -- YES --> UseDEI{Use_DEI == TRUE?}
    UseDEI -- NO --> DEI0_1([DEI = 0])
    UseDEI -- YES --> DropEligible{Drop Eligible?}
    DropEligible -- NO --> DEI0_1
    DropEligible -- YES --> DEI1([DEI = 1])
  

Use_DEI register setting of the output port

Frame could have been Drop Eligible already when it came in, or Policer marked it Drop Eligible

Flowchart for encoding drop eligibility for a TX frame. The process starts with 'Start', then 'Frame is sent out'. A decision 'VLAN-tagged?' leads to 'YES' or 'NO'. 'NO' leads to 'No DEI'. 'YES' leads to 'Use_DEI == TRUE?'. 'NO' leads to 'DEI = 0'. 'YES' leads to 'Drop Eligible?'. 'NO' leads to 'DEI = 0'. 'YES' leads to 'DEI = 1'. Annotations: 'Use_DEI register setting of the output port' and 'Frame could have been Drop Eligible already when it came in, or Policer marked it Drop Eligible'.

Traffic policing

Traffic policing provides means for limiting the rates of data flows by dropping the frames that exceed the configured rate.

FES has a 128 meters that can be used to measure and limit rates of data flows. Using the IPO (Inbound Port Ordinance) or the Static MAC Address Table (MAC Address table) the user can configure which frames are mapped to which meter.

Figure 1140. Metering principle

Diagram illustrating the metering principle with two token buckets. The first bucket (CIR/CBS) fills tokens at a constant rate. Frames are checked against tokens: conforming frames are marked 'green' and tokens are removed; exceeding frames are marked 'red' and tokens are not removed. Overflow tokens from the first bucket are added to a second bucket (EIR/EBS). The second bucket also fills tokens at a constant rate. Frames exceeding the first bucket but conforming to the second are marked 'yellow' and tokens are removed; exceeding frames are marked 'red' and tokens are not removed.

The diagram illustrates the metering principle using two token buckets. At the top left, 'Tokens at Constant Rate' (represented by four purple rectangles) are added to a bucket. Below this, 'Frames' (represented by four purple rectangles) enter a decision point. If tokens are available, a frame is marked 'Conforming "green"' (represented by two green rectangles) and tokens are removed. If tokens are not available, the frame is marked 'Exceeding' (represented by two purple rectangles) and tokens are not removed. Overflow tokens from the first bucket are added to a second bucket. The second bucket also receives 'Tokens at Constant Rate' (two purple rectangles). Frames that exceeded the first bucket but have tokens available in the second bucket are marked 'Conforming "yellow"' (represented by one yellow rectangle) and tokens are removed. Frames that exceed both buckets are marked 'Exceeding "red"' (represented by one red rectangle) and tokens are not removed.

Diagram illustrating the metering principle with two token buckets. The first bucket (CIR/CBS) fills tokens at a constant rate. Frames are checked against tokens: conforming frames are marked 'green' and tokens are removed; exceeding frames are marked 'red' and tokens are not removed. Overflow tokens from the first bucket are added to a second bucket (EIR/EBS). The second bucket also fills tokens at a constant rate. Frames exceeding the first bucket but conforming to the second are marked 'yellow' and tokens are removed; exceeding frames are marked 'red' and tokens are not removed.

The principle of the metering system is presented in Figure 1140. There are two Token buckets in each meter (see Figure 1130), filled with tokens at configurable rate. In addition, the size of the buckets is user-configurable. The rate at which the first bucket is filled with tokens corresponds to Committed Information Rate (CIR) and the size of the bucket corresponds to Committed Burst Size (CBS). The rate at which the second bucket is filled with tokens corresponds to Excess Information Rate (EIR) and the size of the bucket corresponds to Excess Burst Size (EBS). The frames conforming to the CIR/CBS are marked "green" as they are considered well behaving. The frames not conforming to CIR/CBS but conforming to EIR/EBS are marked "yellow" and they are dropped more easily if the switch is running out of free buffer memory. The "yellow" frames that are sent out with VLAN tags can have their DEI (Drop Eligible Indicator) bits set if the network supports using DEI bit. The rest of the frames (the "red" frames) are dropped (refer to Figure 1141 for the effect of the Policer on forwarding decision and compare it to the whole forwarding decision in Figure 1135). All the frames that have to be forwarded somewhere are mapped to some policer (see policer mapping in Figure 1142).

Figure 1141. Policing

Flowchart of the Policing process. It starts with a decision 'All zeroes?'. If NO, it checks 'Mapped to policer by IPO or SMAC'. If NO, it maps to a default policer. If YES, it checks 'Mapped to policer by Stream filter' (only if PSP enabled). Then it checks 'MarkAllFramesRedEnable?'. If YES, it marks all frames red. If NO, it checks 'Drop Eligible?'. If YES, it checks 'Color blind?'. If NO, it goes to Meter 0. If YES, it goes to Meter 1. Meter 0 has a 'green' path (Drop Eligible = FALSE) and an 'Exceeds' path to Meter 1. Meter 1 has a 'yellow' path (Drop Eligible = TRUE) and a 'red' path (Drop Eligible = TRUE). The 'red' path sets MarkAllFramesRed = TRUE. A 'DropOnYellow?' decision follows. Finally, an 'AND' gate combines 'All zeros' and the 'enable' signal to produce the output.
graph TD
    Start(( )) --> AllZeroes{All zeroes?}
    AllZeroes -- NO --> MappedIPO{Mapped to policer by IPO or SMAC}
    AllZeroes -- YES --> NoMetering[No metering, if not forwarded anywhere]
    MappedIPO -- NO --> DefaultPolicer[Map to default policer (Policer number = input port number, Policer priority = High)]
    MappedIPO -- YES --> MappedStreamFilter{Mapped to policer by Stream filter}
    MappedStreamFilter -- YES --> OverridePolicer[Override Policer number and Policer priority with values from Stream filter]
    MappedStreamFilter -- NO --> MarkAllFramesRedEnable{MarkAllFramesRedEnable?}
    MarkAllFramesRedEnable -- YES --> MarkAllFramesRed{MarkAllFramesRed?}
    MarkAllFramesRedEnable -- NO --> DropEligible{Drop Eligible?}
    MarkAllFramesRed -- YES --> MarkAllFramesRedTrue[MarkAllFramesRed = TRUE]
    MarkAllFramesRed -- NO --> DropEligible
    DropEligible -- YES --> ColorBlind{Color blind?}
    DropEligible -- NO --> Meter0[Meter 0]
    ColorBlind -- YES --> Meter1[Meter 1]
    ColorBlind -- NO --> Meter1
    Meter0 -- Exceeds --> Meter1
    Meter0 -- Conforms --> DropEligibleFalse[Drop Eligible = FALSE]
    Meter1 -- Exceeds --> DropEligibleTrue[Drop Eligible = TRUE]
    Meter1 -- Conforms --> DropEligibleTrue
    DropEligibleTrue --> DropOnYellow{DropOnYellow?}
    DropOnYellow -- YES --> Enable[enable]
    DropOnYellow -- NO --> MarkAllFramesRedTrue
    MarkAllFramesRedTrue --> Enable
    AllZeroes --> AllZerosBox[All zeros]
    AllZerosBox --> AND[AND]
    Enable --> AND
    AND --> Output[ ]
    
Flowchart of the Policing process. It starts with a decision 'All zeroes?'. If NO, it checks 'Mapped to policer by IPO or SMAC'. If NO, it maps to a default policer. If YES, it checks 'Mapped to policer by Stream filter' (only if PSP enabled). Then it checks 'MarkAllFramesRedEnable?'. If YES, it marks all frames red. If NO, it checks 'Drop Eligible?'. If YES, it checks 'Color blind?'. If NO, it goes to Meter 0. If YES, it goes to Meter 1. Meter 0 has a 'green' path (Drop Eligible = FALSE) and an 'Exceeds' path to Meter 1. Meter 1 has a 'yellow' path (Drop Eligible = TRUE) and a 'red' path (Drop Eligible = TRUE). The 'red' path sets MarkAllFramesRed = TRUE. A 'DropOnYellow?' decision follows. Finally, an 'AND' gate combines 'All zeros' and the 'enable' signal to produce the output.

In FES, each meter (bucket) is implemented as a 16-bit counter that counts tokens. The value in the counter is equivalent to number of bytes; for each accepted frame the counter value is decremented with the size of the frame. When calculating the length of a frame, preamble and SFD are not counted, while CRC is counted (refer to Figure 1128). The bucket size and token rate are separately configurable for each individual bucket. See ETHSW FES policer read/write command register (ETHSW_FES_POLICER_CMDR) for how to use indirect access to configure these values. The default values for token rate and bucket size are greater than the maximum line rate and frame size.

The token rate (the policed rate) is configured with the parameters Basic Rate and Rate Scale. The resulting rate can be calculated using the formula:

\[\text{Rate(Bytes/ s)} = \text{BasicRate} \times \frac{\text{clk}}{16^{\text{RateScale}}}\]

where

clk = system clock speed (typically 125 MHz)

BasicRate = configured value for Basic Rate in the register

RateScale = configured value for Rate Scale in the register

RateScale values 0 and 7 are reserved. The maximum rate that can be configured is more than the maximum speed of gigabit Ethernet with all usable clk clock speeds.

Default policer

All the frames that are not mapped to any policer by Per-Stream Policing, Static MAC address table or IPO configuration, are mapped to the default policer of the port (see Figure 1142 for how frames are mapped to policers). The default policer for a port is the same as the number of the port. If the user wants to drop all the frames that are not mapped to another policer by Per-Stream Policing (IPO) or by the Static MAC address table, the rate of the default policer must be set to zero. If the user does not want to drop any of these frames, the rate of the default policer can be set to the maximum value.

Figure 1142. Mapping frames to policers

Flowchart showing the logic for mapping frames to policers, starting from frame arrival, defaulting to input port number, evaluating SMAC and IPO generic policing enable bits and configuration, looking up SMAC table entry usage and IPO match, and finally checking PSFP stream filter table settings before reaching END.
graph TD
    Start([Frame arrives]) --> P1[Policer Number = Input Port Number<br/>(Default Policer)]
    P1 --> D1{Policing based on SMAC Table enabled with generic?}
    D1 -- NO --> D2{Policing based on IPO enabled with generic?}
    D1 -- YES --> D3{Policing based on IPO enabled with generic?}
    D2 -- "Neither IPO nor SMAC (NO)" --> D7
    D2 -- "Just IPO (YES)" --> D5{IPO Match}
    D3 -- "Just SMAC (NO)" --> D4{Destination Address found in SMAC Table?}
    D3 -- "Both IPO and SMAC (YES)" --> D3_config["Check the Policer configuration bit in GENERAL register."]
    D3_config --> D3_bit{Policer Configuration bit?}
    D3_bit -- SMAC --> D4
    D3_bit -- IPO --> D5
    D4 -- NO --> D7{PSFP based policing enabled with generic?}
    D4 -- YES --> D6{"Is the SMAC Table entry used for altering Policer Number?<br/>Entry Usage == 1?"}
    D6 -- NO --> D7
    D6 -- YES --> P2[Policer Number = Policer number in SMAC Table entry] --> D7
    D5 -- NO --> D7
    D5 -- YES --> P3[Policer Number = Policer number from the first IPO match] --> D7
    D7 -- NO --> End([END])
    D7 -- YES --> D8{"Is the enable bit set in Stream Filter Table?<br/>Policer Number enabled?"}
    D8 -- NO --> End
    D8 -- YES --> P4[Policer Number = Policer number in Stream Filter Table] --> End
Flowchart showing the logic for mapping frames to policers, starting from frame arrival, defaulting to input port number, evaluating SMAC and IPO generic policing enable bits and configuration, looking up SMAC table entry usage and IPO match, and finally checking PSFP stream filter table settings before reaching END.

Precision Time Protocol

FES supports PTP message transportation directly over Ethernet (IEEE 1588-2008 [6] Annex F) and over User Datagram Protocol (UDP) over Internet Protocol version 4 (IEEE 1588-2008 [14] Annex D). PTP_MOD[1:0] setting in ETHSW FES general control register (ETHSW_FES_GEN_CTRLR) selects which of the two modes is selected.

End-to-end transparent clock functionality

FES implements PTP version 2 End-to-end transparent clock functionality in one-step mode with pure hardware. Inbound processing chain recognizes IEEE 1588 PTP version 2 [6] event messages that need to have special processing inside Ethernet switches providing PTP transparent clock functionality. In practice what is done to the recognized frames is that FES adds the frame residence time inside the switch to the PTPv2 event message correctionField. The correctionField is modified in Outbound processing path. The modified message types include Sync, Delay_Req, Pdelay_Req and Pdelay_Resp messages.

Peer-to-peer transparent clock support

From FES point of view, Peer-to-peer transparent clock support differs from End-to-end transparent clock support by only a little: In Peer-to-peer transparent clock the line delay associated with the ingress path is also added to the correction field of Sync messages. For this purpose, there are dedicated registers (ETHSW FES PTP RX sync delay subnanosecond register (ETHSW_FESx_PTP_RX_SYNCD_SNSR) (x = 0 to 2), ETHSW FES PTP RX sync delay nanosecond low register (ETHSW_FESx_PTP_RX_SYNCD_NSLR) (x = 0 to 2) and ETHSW FES PTP RX sync delay nanosecond high register (ETHSW_FESx_PTP_RX_SYNCD_NSHR) (x = 0 to 2)) for the delay for sync messages and dedicated registers (ETHSW FES PTP RX event delay subnanosecond register (ETHSW_FESx_PTP_RX_EVENTD_SNSR) (x = 0 to 2), ETHSW FES PTP RX event delay nanosecond register (ETHSW_FESx_PTP_RX_EVENTD_NSR) (x = 0 to 2)) for the delay for the other event messages. For End-to-end transparent clock, the same values are written into the registers for sync messages and other event messages. For Peer-to-peer transparent clock, there has to be software that determines the link delay and writes it into these registers, after which FES is able to make the corrections automatically.

Ordinary and Boundary clock support

IEEE 1588 PTP Ordinary and Boundary clock implementations are able to achieve significantly better performance if there are hardware features to assist in timestamping and modifying of the PTP frames. Typically, such features are located in the Ethernet Controller or in the Ethernet PHY. FES port 0 has the features built-in.

Timestamp recording

At inbound and outbound of the ports, timestamps of PTP event message (Sync, Delay_Req, Pdelay_Req and Pdelay_Resp) frames are stored for the user to read. In addition to the timestamp, certain fields of the PTP message are also stored for the user to be able to recognize to which frame each stored timestamp corresponds.

FES is able to store timestamps for up to eight frames per port at a time; four frames in inbound direction and four frames in outbound direction. The software has to fetch the stored timestamps before FES is able to store more of them (TRANSFER bit in the ETHSW FES timestamp command register (ETHSW_FES_TS_CMDR)).

Frame modification

At inbound of port 0, the PTP Sync messages are modified when PTP frame modification feature is enabled (Modify Sync Frames MOD_SYNCF bit in ETHSW FES

general control register (ETHSW_FES_GEN_CTRLR)). The Sync messages are modified so that the exact receive time of the frame is written to the originTimestamp Field (offset of 34 octets from the start of PTP header).

Time Trailer

At outbound of port 0, timestamps of PTP event message (Sync, Delay_Req, Pdelay_Req and Pdelay_Resp) frames can be added to the frames themselves. When the feature is enabled (TIM_TRL bit in ETHSW FES general control register (ETHSW_FES_GEN_CTRLR)), a Time Trailer (see Figure 1143) is added between the Ethernet frame payload data and Management Trailer (Management Trailer). If Management Trailer is not enabled, the Time Trailer is added between the Ethernet frame payload data and the CRC. The Time Trailer contains the exact time the frame was sent out of port 0. The time presentation in the trailer includes 30 bits for nanoseconds and two bits for seconds (presenting two lowest bits of the seconds). A Time Trailer is never added to other frames than PTP event messages. Note that the nanoseconds value can, in some cases, be more than 999,999,999. The software using the timestamp in the trailer can handle the situation by subtracting 1,000,000,000 from the nanoseconds value and adding 1 to seconds.

Figure 1143. Ethernet frame with Time Trailer

Diagram of an Ethernet frame with a Time Trailer. The main frame consists of five blocks: Ethernet Header, Data, Time Trailer (highlighted in green), Management Trailer, and CRC. A dashed line connects the Time Trailer block to a detailed view below. The detailed view shows the Time Trailer structure: a 'Seconds' field (bits 31 to 30) and a 'Nanoseconds' field (bits 29 to 0).
Ethernet HeaderDataTime TrailerManagement TrailerCRC

SecondsNanoseconds
Bit31 3029 0
Diagram of an Ethernet frame with a Time Trailer. The main frame consists of five blocks: Ethernet Header, Data, Time Trailer (highlighted in green), Management Trailer, and CRC. A dashed line connects the Time Trailer block to a detailed view below. The detailed view shows the Time Trailer structure: a 'Seconds' field (bits 31 to 30) and a 'Nanoseconds' field (bits 29 to 0).

Management Trailer

The FES ports 0 can be configured to a special mode called Management mode. In Management mode the port is able to support the following features:

When in Management mode, every frame sent and received to/from the port is equipped with a Management Trailer. FES inserts a Management Trailer to every frame it sends out of the port and FES expects every frame received from the port to have a Management Trailer.

Figure 1144. Ethernet frame with 8-bit Management Trailer

Diagram of an Ethernet frame with an 8-bit Management Trailer. The frame consists of an Ethernet Header, Data, Management Trailer, and CRC. The Management Trailer is expanded to show bits 7 through 0: MAC sec (bit 7), SMD 1 (bit 6), SMD 0 (bit 5), ..., Port 2 (bit 2), Port 1 (bit 1), and Port 0 (bit 0).
Ethernet HeaderDataManagement TrailerCRC

MAC secSMD 1SMD 0...Port 2Port 1Port 0
Bit: 765...210
Diagram of an Ethernet frame with an 8-bit Management Trailer. The frame consists of an Ethernet Header, Data, Management Trailer, and CRC. The Management Trailer is expanded to show bits 7 through 0: MAC sec (bit 7), SMD 1 (bit 6), SMD 0 (bit 5), ..., Port 2 (bit 2), Port 1 (bit 1), and Port 0 (bit 0).

Figure 1145. Ethernet frame with 16-bit Management Trailer

Diagram of an Ethernet frame with a 16-bit Management Trailer. The frame consists of an Ethernet Header, Data, Management Trailer, and CRC. The Management Trailer is expanded to show bits 15 through 0: MAC sec (bit 15), SMD 1 (bit 14), SMD 0 (bit 13), IPO mark (bit 12), ..., Port 2 (bit 3), Port 1 (bit 2), and Port 0 (bit 0).
Ethernet HeaderDataManagement TrailerCRC

MAC secSMD 1SMD 0IPO mark...Port 2Port 1Port 0
Bit: 15141312...3210
Diagram of an Ethernet frame with a 16-bit Management Trailer. The frame consists of an Ethernet Header, Data, Management Trailer, and CRC. The Management Trailer is expanded to show bits 15 through 0: MAC sec (bit 15), SMD 1 (bit 14), SMD 0 (bit 13), IPO mark (bit 12), ..., Port 2 (bit 3), Port 1 (bit 2), and Port 0 (bit 0).

The length of the Management Trailer is one or two octets depending on the Management Trailer Length setting (MGMT_TRL_LGTH[1:0] bitfield in ETHSW FES general control register (ETHSW_FES_GEN_CTRLR)). The length of the Management Trailer can be 8 bits (one octet) or 16 bits (two octets). 8-bit Management Trailer is presented in Figure 1144 and 16-bit Management Trailer in Figure 1145.

Port bits

There is a Port bit for each FES port in the Management Trailer, starting from Port 0 in bit 0, Port1 in bit 1, and so on.

When the host CPU wants to send a frame from port number 0 to port number 1 (CPU attached to Port0, Port0 in Management mode), it adds a Management Trailer to the frame with the bit corresponding to ‘Port 1’ set to one and the other bits in the Management Trailer set to zero. The host CPU can send a frame to multiple FES ports by setting multiple bits in the Management Trailer. By setting all management trailer bits (unused bits are ignored) to zero, the host CPU lets FES make the forwarding decision. Note that the host CPU sending to management port has to ensure that the frame minimum length requirement of 64 bytes is met also after the Management Trailer is removed by FES. When none of the ports are in HSR/PRP mode, source addresses are learned only from frames whose port bits in the Management Trailer are all zeros (for configured Management Trailer Offset).

When FES sends a frame to host CPU and the CPU port is in Management mode, FES adds a Management Trailer to the frame always with one of the Port bits set. The bit corresponds to the port from which the frame was received by FES. When FES forwards frames from a management port to another management port, it does not alter the unused (reserved) Management Trailer bits. There is also a special feature called Management Trailer Offset (MGMT_TRL_OFF[1:0] bitfield in ETHSW FES general control register (ETHSW_FES_GEN_CTRLR)) which allows different FES instances to use different port bits (8 bit offset) in the trailer (see example in Figure 1146). This feature makes it possible to send frames from a CPU to a certain port of an FES instance through another FES instance, which can be useful for example when two FES instances are used in a QuadBox design.

Figure 1146. 16-bit Management Trailer with 8-bit offset

Diagram of a 16-bit Management Trailer with 8-bit offset. The main frame structure shows Ethernet Header, Data, Management Trailer, and CRC. The Management Trailer is expanded to show its 16 bits: MAC sec (bit 15), SMD 1 (bit 14), SMD 0 (bit 13), IPO mark (bit 12), Port 3 (bit 11), Port 2 (bit 10), Port 1 (bit 9), Port 0 (bit 8), and reserved bits (bits 7 to 0).

The diagram illustrates the structure of an Ethernet frame and its 16-bit Management Trailer. The main frame consists of an Ethernet Header, Data, Management Trailer, and CRC. The Management Trailer is expanded to show its 16 bits, labeled from bit 15 down to bit 0. The bits are: MAC sec (15), SMD 1 (14), SMD 0 (13), IPO mark (12), Port 3 (11), Port 2 (10), Port 1 (9), Port 0 (8), and reserved (7 to 0).

Diagram of a 16-bit Management Trailer with 8-bit offset. The main frame structure shows Ethernet Header, Data, Management Trailer, and CRC. The Management Trailer is expanded to show its 16 bits: MAC sec (bit 15), SMD 1 (bit 14), SMD 0 (bit 13), IPO mark (bit 12), Port 3 (bit 11), Port 2 (bit 10), Port 1 (bit 9), Port 0 (bit 8), and reserved bits (bits 7 to 0).

Preemption bits

Preemptable traffic is enabled for Port1 and Port2. In this case, bit 5 and bit 6 in 8-bit Management Trailer (see Figure 1144) and bit 13 and bit 14 in 16-bit Management Trailer (see Figure 1145) become SMD bits. By using the SMD bits in the Management Trailer, the user can select the SMD (Start mPacket Delimiter) to be used in the frame when it is output from a port supporting Preemptable traffic.

Table 991 presents how the two SMD bits (SMD0 and SMD1) are used to indicate the SMD value by which the Ethernet frame SFD (value 0xD5) is replaced. The SFD is not replaced by SMD for frames that are output from port 0 (preemptable traffic is disabled on this port).

Table 991. Management Trailer SMD bit usage, frames from CPU to FES

SMD [1:0] in the Management TrailerSMD in the forwarded frameCRC/mCRC in the forwarded frameMeaning, according to IEEE802.3br [8]
0,00xD5, 0xE6, 0x4C, 0x7F, 0xB3 (Not forced)CRC if not preempted, mCRC if preemptedSMD-E, SMD-S
0,1 (value reserved, do not use)---
1,0Forced to 0x7mCRCSMD-V (verify packet)
1,1Forced to 0x19mCRCSMD-R (verify packet)

By using the SMD bits in the Management trailer, it is possible to send IEEE 802.3br compatible verify (SMD-V) and respond (SMD-R) packets to external ports from the management port.

In the other direction, when FES sends a frame out of a port that is in Management mode, it sets the SMD bits according to Table 991.

Table 992. Management Trailer SMD bit usage, frames from FES to CPU

Input Port is preemptableSMD in the received frameSMD[1:0] in the Management TrailerMeaning, according to IEEE802.3br [8]
yes0x071,0SMD-V (verify packet)
yes0x191,1SMD-R (respond packet)
yesother than 0x7 or 0x190,0-
no0xD50,0SFD
noother than 0xD5never forwarded-

When Preemption is enabled, the maximum port count with 8-bit management trailer is 5. With bigger port counts, the Management Trailer has to be 16 bits in length.

IPO Mark bit

Bit 12 in the 16-bit Management Trailer (see Figure 1145) is the IPO Mark bit. This bit can be set by IPO (see Inbound Port Ordinance) rules. It can be used to signal the driver that certain frames matched certain IPO rule(s). Frames that did not match any IPO rule have always value 0 in this bit. Setting the bit by IPO rule has no other effect on the FES functionality.

The 8-bit Management Trailer does not have IPO Mark bit. In the frames sent to FES, the IPO Mark bit should always be set to 0.

MAC Address table

Forwarding decisions of FES are typically made by an address search to the MAC Address Table. Note that IPO, Management trailer or VLAN settings may override the decision made based on the contents of the MAC Address Table.

The MAC Address table of FES is divided into two parts, Static MAC Address table and Dynamic MAC Address table. The Static MAC Address table contains only user-configured MAC addresses. Typically these are multicast addresses, but unicast addresses can also be configured in the static MAC Address table. The Dynamic MAC Address table contains only automatically learned MAC addresses that are therefore all unicast addresses. If the same destination address can be found in both Static and Dynamic MAC Address tables, the user configured information in the Static MAC Address table is used.

Dynamic MAC Address table entry

The DMAC address entry contains the MAC Address, Filtering Identifier (FID), Aging value and a Port number. Aging value that differs from zero indicates that the entry is currently in use. The port where the latest frame with the MAC address and FID was received from is stored into the Port field.

The address lifetime is user configurable in the ETHSW FES address aging configuration register (ETHSW_FES_ADDRESS_AGING_CFGR).

Static MAC Address table entry

The Static MAC Address table entry contains more parameters than the DMAC entry and the most important difference is the Forward Portmask. By using the Forward PortMask, the

user is able to configure more than one port where to frames with certain destination address are forwarded. It is also possible to map frames to certain policers and to change their priority. The VLAN field allows defining a Static MAC Address entry for certain Virtual LAN only.

The organization of the Static MAC Address table is presented in Figure 1147. Four hash functions are calculated from the MAC address, one for each column, so that these hashes point to four different entries in the Static MAC Address Table. The MAC address can be stored in any of these four entries.

Figure 1147. Static MAC Address table

Diagram of a Static MAC Address table showing a grid of SMAC table entries with columns 0-3 and rows. Hash functions Hash0 through Hash3 are shown on the left, with arrows indicating row selection for each column.

The diagram illustrates the Static MAC Address table structure. It consists of a grid with 4 columns labeled 0, 1, 2, and 3 under the label 'columns', and multiple rows indicated by a bracket on the right labeled 'rows'. Each cell in the grid represents a 'SMAC table entry'. On the left side, four hash inputs are shown: 'Hash0(MAC_address, VLAN)', 'Hash1(MAC_address, VLAN)', 'Hash2(MAC_address, VLAN)', and 'Hash3(MAC_address, VLAN)'. From each hash function, an arrow labeled 'Row select for column0', 'Row select for column1', 'Row select for column2', and 'Row select for column3' points diagonally to a specific entry in column 0, column 1, column 2, and column 3, respectively.

Diagram of a Static MAC Address table showing a grid of SMAC table entries with columns 0-3 and rows. Hash functions Hash0 through Hash3 are shown on the left, with arrows indicating row selection for each column.

The number of rows in the static MAC table is 1024. The number of columns is always 4.

Figure 1148 presents how the hash functions for SMAC table access are calculated. When storing a MAC address entry into the table, the software has to do the same calculation as FES does to be able to store the entry in the right location in the table. If an entry is stored in any other location in the table, FES is not able to find it, which makes the entry useless. By using the ETHSW FES static MAC address table configuration register (ETHSW_FES_SMAC_CFGR), the user can select whether to take the VLAN of the frame

to the row pointer calculation or not. If VLAN is taken to the calculation, it is possible to store the same MAC address for really many different VLANs, because the hashes with different VLANs point to different rows. The downside of taking VLAN to the row pointer calculation is that then it is not possible to have a single SMAC table entry that is for all VLANs. Whether VLAN is taken to the calculation or not can be configured separately for each four SMAC table columns.

As presented in Figure 1148, the basis of the hash function calculated for the row access pointers is a 40-bit CRC with polynomial \(x^{40} + x^{32} + x^{26} + x^{23} + x^{22} + x^{16} + x^{12} + x^{11} + x^{10} + x^8 + x^7 + x^5 + x^4 + x^2 + x + 1\). The bits of the MAC address are fed to the CRC function in the order they come from the line, just like when calculating the FCS (Frame Check Sequence) for Ethernet frames with CRC-32. The initial (shift register) value for the CRC calculation is all ones.

Figure 1148. Calculation of Hash functions for Static MAC Address table

Calculation of Hash functions for Static MAC Address table diagram showing MAC_address(48bit), 5th and 4th octet XOR leading to CRC40 calculation, 40bit hash split into H3'(10bit), H2'(10bit), H1'(10bit), H0'(10bit) combined with 2 lowest bits and optionally XORed with VLAN(12bits), and finally truncated to N bits to generate Hash3, Hash2, Hash1, and Hash0.

Diagram illustrating the calculation of Hash functions for Static MAC Address table:

Calculation of Hash functions for Static MAC Address table diagram showing MAC_address(48bit), 5th and 4th octet XOR leading to CRC40 calculation, 40bit hash split into H3'(10bit), H2'(10bit), H1'(10bit), H0'(10bit) combined with 2 lowest bits and optionally XORed with VLAN(12bits), and finally truncated to N bits to generate Hash3, Hash2, Hash1, and Hash0.

Note: The user should note the following feature of the SMAC table: when storing a new entry into the table, all the four pointers may point to an entry that is already in use. If the table is not very full, it is often possible to replace one of the old entries with the new one and find an unused entry for the old one.

Address learning

FES automatically updates the Dynamic MAC address table according to the source MAC address information in the received Ethernet frames. The Address learning process updates the Dynamic MAC Address table when the receive port of the frame is in Forwarding or Learning state (see FWD_ST[1:0] port state in ETHSW FES port x port State register (ETHSW_FESx_PORT_STATER) (x = 0 to 2) and FWD_STx[1:0] bitfields in FID_CFG registers ETHSW FES port x filtering identifier configuration register 0 (ETHSW_FESx_FID_CFG0R) (x = 0 to 2) to ETHSW FES port x filtering identifier configuration register 7 (ETHSW_FESx_FID_CFG7R) (x = 0 to 2)).

Address aging

Address aging minimum and maximum time depend on given parameters as follows:

\[\text{MAC\_entry\_aging\_time(min)} = 14 \times (\text{AGING\_BASE\_TIME} \times T_{\text{clk}}) \times 300 \times (\text{ADDRESS\_LIFETIME} + 1)\]

\[\text{MAC\_entry\_aging\_time(max)} = 15 \times (\text{AGING\_BASE\_TIME} \times T_{\text{clk}}) \times 300 \times (\text{ADDRESS\_LIFETIME} + 1)\]

where AGING_BASE_TIME is the Aging Base Time in ETHSW FES aging base time low register (ETHSW_FES_AGING_BASE_TIMELR) and ETHSW FES aging base time high register (ETHSW_FES_AGING_BASE_TIMEHR), ADDRESS_LIFETIME is the value in Address Lifetime bits in ETHSW FES address aging configuration register (ETHSW_FES_ADDRESS_AGING_CFGR) and \(T_{\text{clk}}\) is the period of the Main Clock (clk).

The entries in the Static MAC Address table are user configured and they are not automatically aged.

MAC Address and Forward decision

The Address search process searches MAC addresses from the two MAC Address tables. Static MAC Address table and Dynamic MAC Address table. Destination MAC address is extracted from every frame received, and a search is made to the MAC address table on the address. If the address is found in a MAC Address table, it means that in case of a unicast address it is known behind which port the destination node is, and the frame can be forwarded to that port. Note that IPO, Management trailer or Virtual LAN settings may still override the forwarding decision made by the MAC Address table search algorithm.

The MAC Address based forwarding decision is depicted in Figure 1149. The whole forwarding decision process is presented in Figure 1135.

Figure 1149. MAC Address search and Forwarding decision

Flowchart of MAC Address search and Forwarding decision
graph TD
    Start([ ]) --> CheckDest[Check destination address]
    CheckDest --> SearchStatic[Search address from Static MAC Address Table]
    SearchStatic --> FoundStatic{Address found?}
    FoundStatic -- YES --> UseMask[Use port mask in Address entry as dst ports]
    UseMask --> End1([ ])
    FoundStatic -- NO --> SearchDynamic[Search address from Dynamic MAC Address Table]
    SearchDynamic --> FoundDynamic{Address found?}
    FoundDynamic -- YES --> UsePort[Use port port in Address entry as dst port]
    UsePort --> End2([ ])
    FoundDynamic -- NO --> DstAll[Dst ports = all ports]
    DstAll --> End3([ ])
    

Multicast and Broadcast addresses are searched as well, although they cannot be found from this table.

Flowchart of MAC Address search and Forwarding decision

Virtual LANs (VLANs)

FES supports Virtual LANs (VLANs). By using VLANs the switch can be divided into two or more virtual switches; frames are not forwarded to ports that are not configured to be members of the same VLAN. VLANs for the ports can be configured using VLAN configuration registers (ETHSW FES port x port VLAN configuration register 0 (ETHSW_FESx_VLAN0R) (x = 0 to 2) and ETHSW FES port x port VLAN configuration register 1 (ETHSW_FESx_VLAN1R) (x = 0 to 2)). See Figure 1135 on how VLAN configuration affects the forwarding decision.

Using the PORT_VLAN register (ETHSW FES port x port VLAN configuration register 0 (ETHSW_FESx_VLAN0R) (x = 0 to 2)) it is possible to configure the default VLAN to which untagged frames coming into a port are mapped. In input, FES removes the (first) VLAN tags in the frames, if any. In output, a VLAN tag can be added depending on the Tagged/untagged setting in PORT_VLAN register and the setting in corresponding VLAN_TAG register (ETHSW FES port VLAN tagging register (ETHSW_FES_VLAN_TAGR)).

Forward portmask

Forward portmask is another way to control how frames can be forwarded between ports. Forward portmask configuration is made via port configuration registers (ETHSW FES port x port forward mask configuration register (ETHSW_FESx_FWDM_CFGR) (x = 0 to 2)). With Forward portmask, the user defines to which ports it is possible to forward frames from a port. Note that the forwarding can be configured to be different in different directions. The Forward portmask can be useful for example in systems where one of the ports is connected to a CPU; Forward portmask can be used to force the forwarding of frames from other ports to the CPU port only.

See Figure 1135 on how Forward Portmask affects the forwarding decision.

Outbound processing (GMII/MII ports)

Outbound processing block transfers frames from Forwarding core (buffer memory) to Ethernet medium. Every port has its own individual Outbound processing entity. During transmitting the Outbound processing does the following:

TX MII

TX MII block automatically calculates and inserts correct CRC checksums to transmitted frames. In addition, the preamble and the Start Frame Delimiter (SFD) are automatically inserted. TX MII block indicates the start of the frame to Timestamp block via Time interface. The timestamp point of a frame is defined in Figure 1134.

Timestamp

The Timestamp block uses the start-of-frame indication from TX MII block to determine the exact value of the transmit time. The transmit time is then given to the PTP overwrite block.

The Timestamp block is external to FES. FES communicates with the Timestamp block using Time interface. The timestamp block and Time interface at Outbound processing are similar to the Timestamp block and Time interface at Inbound processing. See more information in section Timestamp.

PTP overwrite

Outbound processing timestamps every Ethernet frame and the difference between the outbound and the inbound timestamps (the time the frame spent inside the switch) is added to the correctionField of the PTP event message headers. For Sync messages, the link delay of the ingress port is also added to the correctionField. Event messages are recognized already at Inbound processing as specified in section Inbound processing (GMII/MII ports).

The time the frame spent inside the switch is calculated by subtracting the RX timestamp of the frame from the TX timestamp. The accuracy of the calculation is 2⁻¹⁶ nanoseconds. The maximum value for the correctionField is 0x7FFF FFFF FFFF FFFF. If the calculated correction is more than 0x7FFF FFFF FFFF FFFE, value 0x7FFF FFFF FFFF FFFF is written to the correctionField, indicating that the correction is too big to be represented. 0x7FFF FFFF FFFF FFFF is also written to the correctionField if the difference of the seconds part of the RX and TX timestamps is more than one.

The correctionField of a PTP event message is not modified when the frame is Cut-through. For this reason, there is a Cut-through disable bit CT_DIS in ETHSW FES port x IPO filter configuration register 1 (ETHSW_FESx_ETH_ADDR_CFG1R) (x = 0 to 2).

Frame preemption

The preemption is triggered either by a frame coming into an express queue or by a Hold signal

Forwarding core

The Forwarding core is responsible for forwarding frames between ports, that is from the Inbound processing path of a port to the outbound processing path of another. The Forwarding core is common to all ports. The Forwarding core includes memory management, eight TX queues per port and management of the inbound and the outbound processing paths. The Forwarding core also drops frames during high load situations, when running out of buffer memory space.

Memory controller

The Memory controller block (see Figure 1132) is responsible for the memory management of the buffer memory used for buffering the frames. The buffer memory is common to all the ports and there is no fixed buffer space reserved per port. Instead, a port is able to buffer more frames when other ports have shorter queues.

The Ethernet frames to be forwarded are stored into the buffer memory in one to three fragments depending on the length of the frame. The size of each fragment is 512 bytes. This is also the size of the unit in which the Memory controller manages the buffer memory. Every output port has enough bandwidth to the buffer memory to achieve wire-speed operation.

The Memory controller provides an indication to the Frame Early Drop algorithm (see section Frame Early Drop) in situations where the buffer memory is so crowded that some of the already stored frames have to be dropped to make space for new ones.

Queuing

FES has eight queues for every output port. When a frame is received, the priority of the frame and the destination port(s) are determined during Inbound processing. When the Inbound processing passes the frame for the Forwarding core, the Forwarding core places the frame into the queue that matches its priority (priority to queue mapping in ETHSW FES port x queue table configuration register (ETHSW_FESx_QUEUE_TBLR) (x = 1 to 2)).

If Traffic shaping, Scheduled Traffic, and Preemptable Traffic (see Preemptable traffic) functionalities are not active, the queues are emptied in descending order so that frames from higher queues are sent before frames from any of the lower queues of the port. Traffic shaping may affect this behavior by not giving permission to transmit from certain queue(s) due to insufficient credit. If there is not enough credit to be able to transmit from a certain queue, a frame from lower queue is transmitted instead, or if no such frame exists, the transmitter is kept idle. Transmission schedule may also block transmission from certain queue(s), in which case a frame from a lower queue is selected. It should be also noted that the Express/Preemptable selection for transmit queues in ETHSW FES port x TX preemptable traffic selection register 0 (ETHSW_FESx_TX_PREE0R) (x = 1 to 2) changes the order of the queues so that the Express queues are selected for transmission before Preemptable queues.

All the queues have a fixed length of 32 frames. When a frame is dropped from a queue because it was full, and a new frame was coming to the queue, the corresponding error counter is incremented (see Table 996: FES counters).

Traffic shaping

Traffic shaping means limiting the transmit rate to meet certain preconfigured maximum allowed transmit rate; the frames that exceed the configured rate are delayed increasing the latency they experience. In FES shaping is done per queue basis which means that the rate at which frames can be transmitted from certain queue can be configured. If frames come into the queue faster than they can be sent out, the queue fill level increases. This means that when traffic shaping is active the frames have to wait longer in the queue than without shaping. On the other hand, the fill levels of the lower queues decrease when higher queues are shaped.

FES has a counter for each queue that can be used to control the transfer rate of the queue. Each counter forms a shaper whose functionality is equivalent to those known in the literature as Credit Based Shaper or Credit-based fair queuing. Credit (corresponding to tokens in Token bucket) is added into the counter (corresponding to the bucket in Token bucket) at a constant rate and credit is removed from the counter for every frame that is sent from the queue. A frame can be sent from the queue only when the credit is zero or above. If the credit is negative, the frame (queue) has to wait for the credit to increase.

The rate at which the credit increases defines the rate the output queue is shaped to. In a Credit Based Shaper the maximum amount of credit should never be reached, so the maximum value for credit is not configurable (unlike the bucket size in case of Token bucket). The Addend is the only configurable value for a shaper and it defines the rate at which credit increases which is also the rate the queue is shaped to.

The reset default is that the rate of all the shapers of all the ports and queues is above line speed; the user does not have to configure shapers if they are not used.

Configuring shapers

The only user configurable parameter in a shaper is the rate to which the shaper shapes the traffic of the queue. It can be configured by setting the Addend value in the ETHSW FES port x shaper y configuration register (ETHSW_FESx_SHAPERyR) (x = 0 to 2). The Addend value defines the speed by defining how many credits are added to the internal credit counter at every time interval of 8 clock cycles. The Addend value is 16 bits, 12 of which are fractions of credit, so the maximum value for Addend is 15,9998 and the minimum is 0. The resolution of the adjustment is 1/4096 (about 0.00024).

The configured rate can be calculated using the formula:

\[\text{Rate} = \frac{\text{Addend}}{8 \times \frac{1}{\text{clk}}} = \text{Addend} \times \frac{\text{clk}}{8}\]

where Addend is the value written in the shaper internal register and clk is clk the clock speed.

The value for Addend can be calculated from the desired data rate by using the formula:

\[\text{Addend} = \frac{\text{Rate} \times 8}{\text{clk}}\]

where Rate is the desired data rate in Bytes per second and clk is the clock speed.

When calculating the rate, preamble and SFD are not counted to frame length, CRC is counted (refer to Figure 1128).

With the typical 125 MHz clock, the maximum configured rate is:

\[\text{Rate(max)} = 15998 \text{ bytes} \times \frac{125 \text{ MHz}}{8} = 250 \text{ Mbyte/ s}\]

which is well above the maximum line speed.

The resolution of the rate adjustment is:

\[\text{Rate(resolution)} = \frac{1}{4096} \text{ bytes} \times \frac{125 \text{ MHz}}{8} = 3.8 \text{ kbyte/ s} = 30.5 \text{ kb/ s}\]

Scheduled Traffic

To support Enhancements for Scheduled Traffic as specified in IEEE standard 802.1Qbv [7], FES works in cooperation with Scheduling functionality (FSC). With Scheduled traffic, it is possible to enable or disable transmitting from any queue independently from other queues. Information on how much time there is to transmit from certain queue before transmission is disabled comes also from the Scheduler: If there is not enough time to transmit the frame in a certain queue, a frame from a lower queue may be transmitted instead.

Frame Early Drop

Frame Early Drop (FED) algorithm deallocates buffer memory when FES encounters heavy load and buffer memory is about to cease. An indication that the memory is going to be fully used soon is got from Memory controller block.

One reason for using FED algorithm is to ensure that the frames buffered for some output ports do not block traffic for the other ports, as buffering too much frames for some ports would in worst case cause all the incoming frames to be dropped. So the Memory controller block triggers the Frame Early Drop algorithm early and frequently enough to ensure that there is free buffer memory to be able to receive incoming frames. The FED algorithm used guarantees that frames from lower queues of a port are dropped before the frames from higher queues. Frames are also dropped early enough to slow down TCP connections (selective dropping for oldest frames) to prevent total congestion.

Figure 1150. Frame Early Drop algorithm

Flowchart of the Frame Early Drop algorithm. The process starts with 'Memory low', then 'Select port that has most frames queued (all queues combined)', followed by 'Select queue 0 (Q = 0)'. A note 'Q = queue' is next to this step. Then 'Check number of frames in the queue'. A decision diamond 'Number of frames > 0' has a 'YES' path to 'Free oldest frame in the selected queue' and then to an oval. The 'NO' path goes to another decision diamond 'Highest queue selected'. The 'YES' path from this second diamond leads to an oval 'Memory cannot be low (this should never happen)'. The 'NO' path from the second diamond goes to 'Select next queue (Q = Q + 1)', which loops back to 'Check number of frames in the queue'.
graph TD
    Start([Memory low]) --> SelectPort[Select port that has most frames queued
(all queues combined)] SelectPort --> SelectQueue0[Select queue 0
(Q = 0)] SelectQueue0 --> CheckFrames[Check number of frames in the queue] CheckFrames --> Decision1{Number of frames
> 0} Decision1 -- YES --> FreeFrame[Free oldest frame in the selected queue] FreeFrame --> End([ ]) Decision1 -- NO --> Decision2{Highest queue
selected} Decision2 -- YES --> Error([Memory cannot be low
(this should never happen)]) Decision2 -- NO --> SelectNextQueue[Select next queue
(Q = Q + 1)] SelectNextQueue --> CheckFrames
Flowchart of the Frame Early Drop algorithm. The process starts with 'Memory low', then 'Select port that has most frames queued (all queues combined)', followed by 'Select queue 0 (Q = 0)'. A note 'Q = queue' is next to this step. Then 'Check number of frames in the queue'. A decision diamond 'Number of frames > 0' has a 'YES' path to 'Free oldest frame in the selected queue' and then to an oval. The 'NO' path goes to another decision diamond 'Highest queue selected'. The 'YES' path from this second diamond leads to an oval 'Memory cannot be low (this should never happen)'. The 'NO' path from the second diamond goes to 'Select next queue (Q = Q + 1)', which loops back to 'Check number of frames in the queue'.

The Frame Early Drop algorithm is presented in Figure 1150. The algorithm selects one frame to be dropped and drops it. The algorithm selects first the output port that has the most frames queued. Then it selects the lowest queue of the port that has frames in it and removes the oldest frame from the queue. After dropping the frame, the corresponding error counter is incremented.

Cut-through

In Cut-through operation an incoming frame is forwarded to output port(s) before the frame is fully received. This minimizes the latency the frame experiences; in FES the forwarding latency of Cut-through frames can be down to 1 µs in gigabit mode and down to 3.5 µs in 100 Mbit/s mode.

In Cut-through mode, if an incoming frame has a CRC error, the transmission cannot be canceled because it has already started. In this case the transmitted frame is given an erroneous CRC so that the destination node can drop it, if it is not in Cut-through mode.

Notable is that in a ring topology, if all the nodes are in Cut-through mode, a broken frame can circulate in the ring for an infinite time. Therefore, in order to remove broken frames from rings, FES changes its mode from Cut-through to Store-and-forward with certain probability (1/256) when it receives a broken frame. The probability is low to guarantee low impact to overall latency of the ring (If the probability was one, one single broken frame can change the mode of every node in the ring).

For Cut-through forwarding of a frame, all the following must be true:

If any of the above is false, the (non-broken) frame is forwarded in Store-and-forward fashion.

FRER (Frame Replication and Elimination for Reliability)

FRER [9] specific features of FES include:

Notable is that, unlike HSR/PRP, FRER functionality does not affect frame forwarding decision in any other way than removing duplicate frames. Otherwise the forwarding decisions are the same as without FRER.

At FRER enabled ports, R-TAGs are always removed from frames at inbound processing. R-TAGs are inserted at outbound processing depending on the configuration (see ETHSW FES stream table read/write 1 register (ETHSW_FES_STREAM_TABLE1R)). For unrecognized (unconfigured) streams, an R-TAG is added at the output if the input frame had an R-TAG, and R-TAG is not added if the input frame did not have one. So, the output frames look the same as the input frames when it comes to R-TAGging.

SMAC table extension for stream identification

When FRER functionality is enabled the entries of the Static MAC Address (SMAC) table are enhanced from 128 to 144 bits. The FRER related information in the SMAC table consists of the following:

The process for defining the stream_number is presented in Figure 1151.

Figure 1151. Stream number

Flowchart for stream number determination. It starts with 'Frame arrives' and branches based on whether the source address is found in the SMAC table. If found, it checks for a source match to assign a stream number. If not found, it checks for a destination address in the SMAC table and assigns a stream number based on a destination match. If neither match is found, the stream number is set to 0.
graph TD; Start([Frame arrives]) --> D1{Source Address found in SMAC Table?}; D1 -- YES --> D2{stream_number Source/Destination Match == Source?}; D1 -- NO --> D3{Destination Address found in SMAC Table?}; D2 -- YES --> P1[stream_number = stream_number in SMAC Table entry with matching Source MAC Address]; P1 --> D4{stream_number == 0?}; D4 -- YES --> D3; D4 -- NO --> END1([END]); D3 -- YES --> D5{stream_number Source/Destination Match == Destination?}; D3 -- NO --> P2[stream_number = 0]; D5 -- YES --> P3[stream_number = stream_number in SMAC Table entry with matching Destination MAC Address]; D5 -- NO --> P2; P2 --> END2([END]); P3 --> END3([END]);
Flowchart for stream number determination. It starts with 'Frame arrives' and branches based on whether the source address is found in the SMAC table. If found, it checks for a source match to assign a stream number. If not found, it checks for a destination address in the SMAC table and assigns a stream number based on a destination match. If neither match is found, the stream number is set to 0.

FRER specific pointers are presented in Figure 1152.

Figure 1152. Pointers from SMAC table

Diagram showing pointers from SMAC table to various tables: Static MAC address (SMAC) table, Stream table, Sequence generation table, Sequence recovery table, and Stream counters. It includes a legend for Non-FRER, FRER, and Stream Identification.

Legend:

Flow:

Row Selections:

Table Sizes:

Additional Pointer: "Input port number" points to a "Column select" in the Stream counters table.

Diagram showing pointers from SMAC table to various tables: Static MAC address (SMAC) table, Stream table, Sequence generation table, Sequence recovery table, and Stream counters. It includes a legend for Non-FRER, FRER, and Stream Identification.

Sequence generation

Sequence number is generated based on information in SMAC table and Sequence Generation table. This Sequence number is then used in the R-TAG, HSR-tag or PRP-trailer (if any) when the frame is sent out. The Sequence number read from the Sequence Generation table is then incremented by one and written back to the table.

Sequence recovery

Sequence Recovery is based on a user configurable recovery algorithm, which is retrieved based on SMAC table and Sequence Recovery table information. There are two possible Sequence Recovery algorithms, Vector Recovery algorithm and Match Recovery.

Handling of duplicate frames

The result of the Sequence Recovery algorithm is that the frame is either a duplicate or not a duplicate. If the frame is a duplicate, its forwarding decision is changed as presented in Figure 1153 (a comparison with the whole forwarding decision process is presented in Figure 1135).

Figure 1153. Effect of FRER on the Forwarding Decision

Block diagram showing the effect of FRER on the forwarding decision. A dashed box labeled 'FRER' contains an 'AND' gate and an 'enable All Zeros' block. An input arrow enters the 'FRER' box and splits: one path goes to the 'AND' gate, and the other goes to a 'Duplicate?' decision diamond. The 'Duplicate?' diamond has a 'YES' output that enables the 'enable All Zeros' block and a 'NO' output that bypasses the 'FRER' box. The 'enable All Zeros' block also feeds into the 'AND' gate. The 'AND' gate has two inputs: one from the initial input path and one from the 'enable All Zeros' block. The output of the 'AND' gate is an arrow labeled 'PortMask'.
Block diagram showing the effect of FRER on the forwarding decision. A dashed box labeled 'FRER' contains an 'AND' gate and an 'enable All Zeros' block. An input arrow enters the 'FRER' box and splits: one path goes to the 'AND' gate, and the other goes to a 'Duplicate?' decision diamond. The 'Duplicate?' diamond has a 'YES' output that enables the 'enable All Zeros' block and a 'NO' output that bypasses the 'FRER' box. The 'enable All Zeros' block also feeds into the 'AND' gate. The 'AND' gate has two inputs: one from the initial input path and one from the 'enable All Zeros' block. The output of the 'AND' gate is an arrow labeled 'PortMask'.

Aging

The aging speed can be configured separately for each sequence recovery entity by using the ETHSW FES sequence recovery table read/write 4 register (ETHSW_FES_SEQ_REC_TABLE4R).

The aging time can be calculated using the following formula:

\[\text{aging\_time} = (15.5 \pm 1.5) \times \left( \text{AGING\_TIME\_BASE} \times \frac{T_{\text{CLK}}}{8} \right) \times \left( \frac{8}{2^{\text{Aging\_rate\_scale}}} \right) \\ \times \left( \frac{8}{5 + \text{Aging\_basic\_rate}} \right)\]

where:

Stream encoding

The information in the Stream table indicate whether the frame should be sent out with or without an R-TAG (see Table 993). The Stream number of the frame is used as a row pointer to the Stream table. The Stream table includes the following information:

Table 993. Keeping, adding or removing R-TAG

Input frameInput port settingOutput port settingOutput frameNote
R-TAGgedkeepkeepR-TAGged-
not R-TAGgedkeepkeepnot R-TAGged-
R-TAGgedremovekeepnot R-TAGged-
not R-TAGgedremovekeepnot R-TAGged-
R-TAGgedkeepaddR-TAGgedJust one R-tag
not R-TAGgedkeepaddR-TAGged-
R-TAGgedremoveaddR-TAGged-
not R-TAGgedremoveaddR-TAGged-

Configuration registers

Registers of FES are presented in Section 93.5.7.

FES register map consists of two sets of registers, detailed in Table 995: Register maps summary:

FES switch configuration registers are split as follows:

FES port configuration register groups are split as follows:

93.3.5 FRTC

Flexibilis Real-Time Clock (FRTC) block can be used to provide wall clock time for other IPs. The time format is compatible with the time format defined in IEEE1588 standard [6], so it can be used for example to provide time for the on-chip Ethernet MAC controllers.

Functionality

FRTC has an Avalon Memory Mapped slave interface and one or more time interfaces. The Avalon interface is used by controlling entity (for example host CPU) to read and adjust the internal time or FRTC. The Time interface provide time information for other subblocks. See Figure 1154.

Figure 1154. FRTC interfaces

Block diagram of FRTC interfaces. A box labeled 'FRTC' is connected to a horizontal double-headed arrow labeled 'Avalon' above it. To the right of the 'FRTC' box is a right-pointing arrow labeled 'Time'.
graph TD
    Avalon[Avalon] <--> FRTC[FRTC]
    FRTC --> Time[Time]
  
Block diagram of FRTC interfaces. A box labeled 'FRTC' is connected to a horizontal double-headed arrow labeled 'Avalon' above it. To the right of the 'FRTC' box is a right-pointing arrow labeled 'Time'.

FRTC has two clock domains, one for Avalon interface and another for calculating time. In this way different clocks can be used in Avalon bus and to calculate the wall clock time.

In case of FRTC, time is presented in seconds and nanoseconds. Time interface supports a 96 bit time format compatible with IEEE1588, which defines 48 bits for seconds, 32 bits for nanoseconds and 16 bits for subnanoseconds.

FRTC is implemented with an NCO (Numerically Controller Oscillator) that counts nanoseconds. Seconds value is updated and nanoseconds value wraps around always when nanoseconds value exceeds 1,000,000,000 (corresponds to one second). Because of this, the nanoseconds value can never be more than 30 bits.

NCO starts counting when step is configured. ETHSW FRTCx time command register (ETHSW_FRTCx_TIME_CMDR) (x = 0 to 1) must be used also for time adjustment and time read operations.

Configuration registers

FRTC registers are presented in Section 93.5.5.

93.3.6 FSC

The main purpose of Flexibilis Scheduling Controller (FSC) is to control the queuing mechanism of the FES Ethernet switch in a time-aware fashion. The controller can be used to control other timed functionality as well. The idea is that this controller together with FES is able to implement the Enhancements for Scheduled Traffic as specified in IEEE standard 802.1Qbv [7].

Section : Functionality defines the FSC functionality, Section : Software driver explains how to handle certain functionalities in the device driver and the registers of FSC are presented in Section 93.5.6.

Functionality

The Scheduling controller includes up to 16 schedulers that can be configured independently from each other (see Figure 1155). Schedulers have up to 64 outputs each. The Schedulers control the outputs time synchronized to an external clock time. The controlling is done according to a Schedule table. Each Scheduler features two of these tables, one is in use (active table) and the other one can be configured by the user during the operation. The active table the scheduler uses for controlling the outputs can then be changed seamlessly on-the-fly.

Figure 1155. FSC, Schedulers and tables

Block diagram illustrating the Frame Scheduling Controller (FSC) structure. Inside the outer FSC box are multiple scheduler boxes: Scheduler 0, Scheduler 1, and Scheduler 2, followed by dots indicating additional schedulers up to 16. Each Scheduler contains Table0 and Table1, where each table has Row 0, Row 1, Row 2, and ellipsis dots for additional rows.
Block diagram illustrating the Frame Scheduling Controller (FSC) structure. Inside the outer FSC box are multiple scheduler boxes: Scheduler 0, Scheduler 1, and Scheduler 2, followed by dots indicating additional schedulers up to 16. Each Scheduler contains Table0 and Table1, where each table has Row 0, Row 1, Row 2, and ellipsis dots for additional rows.

To support 802.1Qbv, FES needs to know beforehand the time when each gate closes. This is because it is not possible to stop transmitting a frame after transmission has started and the transmission cannot be ongoing when the gate closes. So for each transmitter queue, the information on how long a frame can be transmitted from that queue before the gate closes must be present, and the transmitter has to compare these values to the lengths of the frames in the queues. For this purpose FSC features downcounters (Figure 1156) that count down time (or bytes that can be sent) before each gate closes.

Figure 1156. Downcounter, emergency disable and scheduler

Block diagram of the FSC (Frame Start Control) showing the interaction between the Downcounter, Emergency_disable, and Scheduler. The Downcounter outputs 'Time to gate close' and 'Gate state (open/closed)'. The Emergency_disable block contains a multiplexer (MUX) that selects between the Downcounter's 'gate opening/closing' signal and a static value from register EME_DIS_STAT. The Scheduler block contains Table0 and Table1, each with rows 0, 1, 2, and so on. The Scheduler's output controls the Emergency_disable MUX.

The diagram illustrates the internal structure of the FSC (Frame Start Control) block. It consists of three main sub-blocks: Downcounter, Emergency_disable, and Scheduler.

Block diagram of the FSC (Frame Start Control) showing the interaction between the Downcounter, Emergency_disable, and Scheduler. The Downcounter outputs 'Time to gate close' and 'Gate state (open/closed)'. The Emergency_disable block contains a multiplexer (MUX) that selects between the Downcounter's 'gate opening/closing' signal and a static value from register EME_DIS_STAT. The Scheduler block contains Table0 and Table1, each with rows 0, 1, 2, and so on. The Scheduler's output controls the Emergency_disable MUX.

The countdown rate is configurable as it has to match, for example, the current Ethernet line speed. The scheduler has to be set ahead in time so that the downcounter has enough time to count down to zero before the gate closes.

Software driver

This section contains instructions on how to control FSC to perform certain specific things required for example in IEEE 802.1Qbv [7]. These instructions may be helpful for example for the operating system device driver writers.

Changing the Schedule table on-the-fly

The IEEE specification 802.1Qbv [7] specifies that \(\text{CycleStartTime} = (\text{BaseTime} + N \cdot \text{CycleTime})\). The software driver has to calculate a suitable time to be written to STARTTIME registers based on the BaseTime and CycleTime values and based on the current time (from FRTC block). When the FRTC time reaches the STARTTIME, the new schedule is taken into use. If the STARTTIME is in the past, FSC increments the STARTTIME by CycleTime until the STARTTIME is in the future. The STARTTIME in the register map (ETHSW FSC scheduler x table y start time second register (ETHSW_FSCx_Ty_STRT_SR) (x = 0 to 2)) has 8 bits for seconds. Half of the range is used for future times and the other half for past as presented in Figure 1157. The device driver software needs to recalculate the STARTTIME if it is (going to be) more than 127 seconds in the past (at the time when writing the register), and simply waits before writing the register if the starttime is more than 127 seconds in the future.

Figure 1157. Starttime

Diagram of 8-bit seconds value timeline showing past and future time relative to current time.

The diagram illustrates the 8-bit seconds value range from 0 to 255. A vertical line labeled 'current time' is positioned at the boundary between the 127th and 128th seconds. The timeline is divided into three main sections:

Brackets below the timeline indicate the 127-second duration for both the past time and the future time segments. A vertical label 'past/future (depends on nanoseconds)' is placed at the 'current time' boundary.

Diagram of 8-bit seconds value timeline showing past and future time relative to current time.

OperCycleTimeExtension

In the IEEE specification 802.1Qbv [7], CycleTimeExtension is the time the previous cycle is allowed to be extended when the new schedule is taken into use. The idea is to make schedule change smooth by extending the previous cycle instead of starting a new cycle that has to be truncated when changing to the new schedule.

Cycle extension is implemented in FSC by providing configurable last cycle value (see ETHSW FSC scheduler x table y last cycle register (ETHSW_FSCx_Ty_LST_CYCR) (x = 0 to 2)). When the Cycle Number reaches the configured Last Cycle, the cycle is extended until the time for the next schedule change is reached.

Because delays in software are indefinite, it may be wise to configure the schedule change time first and the Last Cycle value after that (if there is still time before schedule change time). If the Last Cycle is configured first, and the software is unable to configure schedule change time in time, this leads to a very long extended cycle.

Rounding error in cycle time

According to the IEEE specification 802.1Qbv [7] the cycle time is a rational number represented by a numerator and denominator that are both unsigned 32-bit integers. The cycle time in FSC is configured with the CYCLETIME registers with great accuracy, but still there can be a tiny error in the cycle time caused by the finite resolution of the cycle time setting that then cumulates over time. Because of this, it may be necessary to change from Schedule table to another for example once in ten minutes to remove the cumulated time error. The time error can also be monitored by checking the cycle start timestamps in ETHSW FSC scheduler x table y cycle timestamp second register (ETHSW_FSCx_Ty_CYCTS_SR) (x = 0 to 2) and ETHSW FSC scheduler x table y cycle timestamp nanosecond register (ETHSW_FSCx_Ty_CYCTS_NSR) (x = 0 to 2).

Time advance

The software driver needs to set the Scheduler timing so that it is ahead of the schedule at which gates need to be opened and closed. This is because of the time taken by the countdown of the downcounter. There is also an additional 10-clock cycle delay in the internal signal mapping that has to be compensated by the software. The countdown time is adjustable. When it is adjusted, the timing of the Scheduler has to be adjusted accordingly. The software driver also has to ensure that there is no more than one gate opening event during a countdown period, and no more than one gate closing event during a countdown period. In other words, the distance between two gate opening events and the distance between two gate closing events must be more than the downcounting period (Scheduler time advance).

Adjusting the clock time

Adjusting the clock speed is allowed during operation. When adjusting the clock forwards or backwards in time, one cycle becomes shorter or longer in duration than normal. Adjusting the clock time more than two minutes backwards or forwards during operation should never be needed and may cause malfunction of the schedule. Configure a new schedule if the clock time is adjusted more than two minutes backwards or forwards.

Configuration registers

FSC register mapping is detailed in Table 995: Register maps summary, and FSC registers are presented in Section 93.5.6.

93.3.7 FPTS

The Flexibilis PPx Time Stamper (FPTS) timestamps rising edges of its input signal and stores the timestamps into its internal registers where the user can read them. Input signal frequencies up to 10 MHz are supported. Typical use of FPTS includes synchronizing to 1PPS and other PPx signals.

Section 93.5.2 contains the register description.

Functionality

Figure 1158 presents the external interfaces of FPTS. FPTS timestamps the rising edges of the incoming PPx signal. By using the Avalon slave interface the user can read the timestamps from the registers of FPTS.

Figure 1158. FPTS interfaces

Block diagram of FPTS interfaces showing PPx and Time inputs, an Avalon interface, and an IRQ output.
graph LR
    subgraph FPTS_Box [FPTS]
        direction LR
        PPx((PPx)) --> FPTS[FPTS]
        Time((Time)) --> FPTS
        FPTS --> IRQ((IRQ))
        Avalon[Avalon] <--> FPTS
    end
  

The diagram illustrates the external interfaces of the FPTS block. It features a central rectangular block labeled 'FPTS'. To the left of this block, there are two input signals: 'PPx' and 'Time', each represented by a horizontal arrow pointing into the block. To the right of the block, there is an output signal labeled 'IRQ', represented by a horizontal arrow pointing away from the block. Above the 'FPTS' block, there is a bidirectional interface labeled 'Avalon', represented by a horizontal double-headed arrow with a vertical line connecting it to the top of the 'FPTS' block.

Block diagram of FPTS interfaces showing PPx and Time inputs, an Avalon interface, and an IRQ output.

The Time interface (see Figure 1158) provides the current time information for FPTS as FPTS does not have internal timekeeping functionality. The Time interface is typically connected to FRTC (Flexibilis Real-Time Clock) (see Section 93.3.5: FRTC). The IRQ line is connected to the IRQ input of the CPU so that the CPU does not necessarily need to poll the registers of FPTS.

Configuration registers

FPTS registers are presented in Section 93.5.4.

93.3.8 AC

The idea is that this block resides at a known memory address and the software can then get information about the hardware by reading the address space of this block.

Functionality

The Auto-configuration block has an Avalon Memory Mapped slave interface using which its memory map can be read. This is the only Auto-configuration block functionality (see Figure 1159). The memory map consists of information for software about the hardware.

Figure 1159. Internal block(s)

Block diagram of the Auto-configuration block. A large rectangle labeled 'Auto-configuration' contains a smaller rectangle labeled 'Read-only registers'. An arrow labeled 'rst' points to the left side of the 'Auto-configuration' block. A vertical double-headed arrow labeled 'Avalon bus' connects the top of the 'Auto-configuration' block to the top of the 'Read-only registers' block.
Block diagram of the Auto-configuration block. A large rectangle labeled 'Auto-configuration' contains a smaller rectangle labeled 'Read-only registers'. An arrow labeled 'rst' points to the left side of the 'Auto-configuration' block. A vertical double-headed arrow labeled 'Avalon bus' connects the top of the 'Auto-configuration' block to the top of the 'Read-only registers' block.

Registers

AC register mapping is detailed in Table 995: Register maps summary, and AC registers are presented in Section 93.5.2.

Interface Map registers

The Interface Map registers are ETHSW AC interface x ID register (ETHSW_AC_IFx_IDR). These registers list the interfaces provided by other blocks. All the registers are read-only. Figure 1160 presents how base address pointers point to different functionalities.

The purpose of ETHSW AC end of table register (ETHSW_AC_EOTR) is to mark the end of Interface Map table for the driver. It is always positioned after the last existing line of the Interface Map and it is always equal to a static value 0x0.

Figure 1160. Base address pointers

Diagram showing base address pointers from Auto-configuration (AC) blocks to Other IP Blocks.

The diagram illustrates the base address pointers for the Ethernet switch (ETHSW). It shows two main categories of blocks:

Arrows indicate the mapping of base address pointers from the AC blocks to the IP blocks:

Diagram showing base address pointers from Auto-configuration (AC) blocks to Other IP Blocks.

93.3.9 IBC

Inter-Block Configuration (IBC) block controls the communication between other subblocks. For that purpose, IBC has up to two Time Interfaces, 2-to-1 multiplexers(/demultiplexers), and up to two 2-to-1 general purpose multiplexers (see Figure 1161). The multiplexers are controlled by using the configuration registers through Avalon interface.

Figure 1161. Internal blocks

Block diagram of the Interblock configuration (IBC) block showing clk and rst inputs on the left, an Avalon bus interface on top, Configuration Registers providing select signals to GP MUX, TI MUX, and TI DEMUX. Input/output signals include gp_in_a/b(1:0) to gp_out(1:0), time_in_a/b(1:0) to time_out(1:0), time_req_in(1:0) to time_req_out_a/b(1:0), and status signals cfg_init_done and time_mux_sel.
Block diagram of the Interblock configuration (IBC) block showing clk and rst inputs on the left, an Avalon bus interface on top, Configuration Registers providing select signals to GP MUX, TI MUX, and TI DEMUX. Input/output signals include gp_in_a/b(1:0) to gp_out(1:0), time_in_a/b(1:0) to time_out(1:0), time_req_in(1:0) to time_req_out_a/b(1:0), and status signals cfg_init_done and time_mux_sel.

Registers

IBC register mapping is detailed in Table 995: Register maps summary, while IBC registers are presented in Section 93.5.3.

93.3.10 AHB2Avalon

AHB to Avalon Bridge (AHB2Avalon) subblock is used by an AHB master device to connect to Avalon slave devices. The AHB2Avalon translates AHB transfers to corresponding Avalon transfers.

The following AHB features are supported:

The following features are not supported:

AHB and Avalon buses operate in different clock domains, and the AHB2Avalon handles the clock domain crossing.

Functionality

AHB2Avalon has an AHB slave interface and an Avalon Memory Mapped master interface, which have their own clock domains. The external connections and functional blocks of the AHB2Avalon are presented in Figure 1162.

Figure 1162. AHB2Avalon interfaces

Block diagram of AHB2Avalon interfaces. A central box labeled 'AHB2Avalon' contains three sub-blocks: 'AHB control', 'FIFO', and 'Avalon control'. On the left, a double-headed arrow labeled 'Avalon' points to the 'AHB control' block. On the right, a double-headed arrow labeled 'Avalon' points from the 'Avalon control' block.
graph LR
    subgraph AHB2Avalon
        direction LR
        AHB_ctrl[AHB control]
        FIFO[FIFO]
        Avalon_ctrl[Avalon control]
    end
    Avalon_L[Avalon] <--> AHB_ctrl
    Avalon_R[Avalon] <--> Avalon_ctrl
  
Block diagram of AHB2Avalon interfaces. A central box labeled 'AHB2Avalon' contains three sub-blocks: 'AHB control', 'FIFO', and 'Avalon control'. On the left, a double-headed arrow labeled 'Avalon' points to the 'AHB control' block. On the right, a double-headed arrow labeled 'Avalon' points from the 'Avalon control' block.

The AHB Control subblock handles the AHB interface signals. It sends new AHB transfers to FIFO and creates AHB responses when the transfer is complete. Write transfers are indicated complete when the transfer is written to the FIFO. Read transfers wait until the Avalon transfer is complete and the response data is available.

FIFO subblock is used to temporarily store the transfers, and to cross the clock domain from AHB clock to Avalon clock. The FIFO has a depth of 4 words and decreases the load on AHB, because some AHB transfers can be complete while the corresponding Avalon transfer is not yet complete.

Avalon Control subblock handles the Avalon interface signals. It reads new transfers from the FIFO and creates them on the Avalon bus.

Performance

The AHB2Avalon is designed to have good performance and to add as few wait states as possible on AHB. The number of wait states depends on several factors, including the following:

The exact number of wait states can be easily calculated only for single AHB transfers where all the previous transfers have already ended before the new transfer is started.

When the FIFO is empty, the equation to calculate the (maximum) number of read transfer wait states is the following:

\[WS_{AHB} = 3 + (3 + WS_{Avalon}) \times \text{Clock}_{AHB} / \text{Clock}_{Avalon}\]

As an example, if the AHB clock is 200 MHz, Avalon clock is 125 MHz and the Avalon slave has 1 wait state:

\[WS_{AHB} = 3 + (3 + 1) \times 200 / 125\]

The constants (3's) in the equation are the delays caused by the clock domain crossing.

The wait states values are the following:

When the FIFO is full, a new transfer must wait until the ongoing transfer is complete and there is free space in the FIFO. In addition to that, a new read transfer must wait until the FIFO is emptied of all the earlier write transfers. Waiting for the FIFO sums up to the total number of wait states, which are seen on the AHB. In general, a bigger FIFO improves the general performance, but it increases the maximum possible number of wait states of a single (read) transfer.

The AHB2Avalon writes the read transfers to the FIFO during the address phase as early as possible, which takes advantage of the pipeline characteristics of AHB and improves the performance of consecutive read transfers.

Optimizing the performance

When the general performance of AHB needs to be optimized, the AHB master can follow the next tips to improve the throughput of the AHB2Avalon and minimize the AHB wait states:

93.3.11 Ethernet interface adapters (EIA)

Ethernet interface adapters can be used to convert the native MII/GMII Ethernet interfaces of FES to other standard compliant interfaces (see Figure 1126). The available adapters for this are described in the following subparagraphs. The ETSW is configured as following:

RGMII

The main functionalities supported by the RGMII adapter are:

The RGMII interface signal are Double Data Rate (DDR) signals, which means that data is sent and received on both clock edges.

RGMII adapter supports 10/100/1000 Mbps and the correct speed is selected based on the inband coding as defined in RGMII specification [1]. RGMII-ID mode on GMAC side, as specified in RGMII specification version 2.0 [2], is supported thanks to GPIO advanced configuration settings. In addition to the actual GMII to RGMII adaptation, the adapter includes logic for Avalon slave register interface and traffic link LED generation (not supported in this product). RGMII adapter block diagram is described in Figure 1163.

Figure 1163. RGMII adapter block diagram

Block diagram of the GMII-to-RGMII ADAPTER. The diagram shows the internal components and external interfaces of the adapter. External inputs include RGMII (RX and TX) and MII/GMII. External outputs include RGMII (RX and TX), MII/GMII, tx_refclk, tx_clk_sel, Avalon, TX_EN, RX_DV, and LED. Internal components include a gmii_to_rgmii block containing RX Logic and TX Logic, DDR input and output blocks, an MMUR block, and a Link LED control block. The gmii_to_rgmii block is connected to the DDR input and output blocks. The RX Logic and TX Logic blocks are connected to the MII/GMII and tx_refclk inputs. The MMUR block is connected to the tx_clk_sel and Avalon inputs. The Link LED control block is connected to the TX_EN, RX_DV, and LED outputs.
Block diagram of the GMII-to-RGMII ADAPTER. The diagram shows the internal components and external interfaces of the adapter. External inputs include RGMII (RX and TX) and MII/GMII. External outputs include RGMII (RX and TX), MII/GMII, tx_refclk, tx_clk_sel, Avalon, TX_EN, RX_DV, and LED. Internal components include a gmii_to_rgmii block containing RX Logic and TX Logic, DDR input and output blocks, an MMUR block, and a Link LED control block. The gmii_to_rgmii block is connected to the DDR input and output blocks. The RX Logic and TX Logic blocks are connected to the MII/GMII and tx_refclk inputs. The MMUR block is connected to the tx_clk_sel and Avalon inputs. The Link LED control block is connected to the TX_EN, RX_DV, and LED outputs.

This adapter does not support internal RGMII data/clock delay compensation. In TX direction, the clock and data are aligned while in RX direction the clock is expected to be delayed by 2 ns. This delay must be provided by the PHY or with the PCB design.

This adapter supports all speeds and reports speed (speed_sel) according to inband status reported by the other end of RGMII interface. Note that the inband status is optional part of RGMII specification, so system designer must verify that the data is available from the other side before enabling automatic speed setting in FES.

In receive direction, the PHY status is decoded from inband signaling. The data can be read from LINK_STATUS register. If inband coding is detected to be invalid (rising edge data differs from falling edge, or if speed indication is 'reserved') link down with gigabit and full duplex is reported.

In transmit direction, full-duplex and link up are always reported. Speed reporting is according to speed_selected with gmii_tx_clk_sel.

RMII port adapter

The main functionalities supported by the RMII adapter are:

The RMII interface signals contain two transmit and receive bits, data valid for both directions and a reference clock input.

RMII adapter supports 10/100 Mbps Link status must be set by software by writing the link status register.

Most common use cases and configuration

The RMII adapter is most commonly used with 10/100 Mbps PHYs and do not need any configurations for basic operations. The link status is not known by the adapter.

Registers

Ethernet adapter register mapping is detailed in Table 995: Register maps summary, and registers are presented in Section 93.5.8.

93.3.12 Bibliography

[1]

Hewlett Packard. Reduced Gigabit Media Independent Interface (RGMII), Version 1.3, 2000.

[2]

Hewlett Packard. Reduced Gigabit Media Independent Interface (RGMII), Version 2.0, 2002.

[3]

Institute of Electrical and Electronics Engineers (IEEE). Specification for 802.3 Full Duplex Operation and Physical Layer Specification for 100 Mb/s Operation on Two Pairs of Category 3 Or Better Balanced Twisted Pair Cable (100BASE-T2), 1997.

[4]

Institute of Electrical and Electronics Engineers (IEEE). Media Access Control (MAC) Bridges: Amendment 2 – Rapid Reconfiguration, 2001.

[5]

Institute of Electrical and Electronics Engineers (IEEE). Media Access Control (MAC) Bridges, 2004.

[6]

Institute of Electrical and Electronics Engineers (IEEE). IEEE Standard for a Precision Clock Synchronization Protocol for Networked Measurement and Control Systems, 2008.

[7]

Institute of Electrical and Electronics Engineers (IEEE). Enhancements for Scheduled Traffic, 2015.

[8]

Institute of Electrical and Electronics Engineers (IEEE). Specification and Management Parameters for Interspersing Express Traffic, 2015.

[9]

Institute of Electrical and Electronics Engineers (IEEE). Frame Replication and Elimination for Reliability, 2017.

[10]

R. Seifert. The Switch Book, The complete guide to LAN switching technology, page 299. Wiley, 2000.

93.4 ETHSW interrupts

The ETHSW features a global interrupt line, gathering all interrupt sources, as shown in Table 994 below.

Table 994. Interrupt requests

Interrupt acronymInterrupt eventEvent flagEnable control bitInterrupt clear methodExit from Sleep modeExit from Stop and Standby modes
ETHSW_ITFTPS timestampTIMESTAMP_ISTIMESTAMP_IEWrite 0 in TIMESTAMP_ISYesNo
FSC Schedule tableSCHTBL_ISSCHTBL_IEWrite 0 in SCHTBL_ISYesNo
FES CongestedCONGESTED_IECONGESTED_ISWrite 0 in CONGESTED_ISYesNo
FES Rx errorRX_ERROR_IERX_ERROR_ISWrite 0 in RX_ERROR_ISYesNo
FES RX timestampRX_TIMESTAMP_IERX_TIMESTAMP_ISWrite 0 in RX_TIMESTAMP_ISYesNo
FES TX timestampTX_TIMESTAMP_IETX_TIMESTAMP_ISWrite 0 in TX_TIMESTAMP_ISYesNo

93.5 ETHSW registers

93.5.1 ETHSW registers maps

This section provides the following register maps:

Table 995. Register maps summary

Register blockRegister typeRegister address offset
AC
Section 93.5.2
General0x00 0000
AC interface 0-150x00 1000-
0x00 10F0
AC end of interface0x00 1100
IBC
Section 93.5.3
General0x10 0000
Generics0x10 2000
Autoconfig0x10 2100
FTPS
Section 93.5.4
0x12 0000
FRTC
Section 93.5.5
FRTC00x18 0000
FRTC10x19 0000
FSC
Section 93.5.6
Common0x1C 0000
Generics0x1C 4000
Scheduler 0General0x1D 0000
Table 00x1D 0800
Table 10x1D 0900
Scheduler 1General0x1D 1000
Table 00x1D 1800
Table 10x1D 1900
Scheduler 2General0x1D 2000
Table 00x1D 2800
Table 10x1D 2900

Table 995. Register maps summary (continued)

Register blockRegister typeRegister address offset
FES
Section 93.5.7
Port 0 configuration registersGeneral0x20 0000
PTP0x20 4000
CNT0x20 6000
IPO0x20 8000
Port 1 configuration registersGeneral0x21 0000
PTP0x21 4000
CNT0x21 6000
IPO0x21 8000
Port 2 configuration registersGeneral0x22 0000
PTP0x22 4000
CNT0x22 6000
IPO0x22 8000
Switch configuration registersGeneral0x80 0000
Timestamp0x80 2000
Virtual LAN configuration0x80 8000
Feature0x80 E000
Stream counter0x80 F000
Ethernet interface adapters (EIA)
Section 93.5.8
Port 0 RGMII adapter0x100 0000
Port 1 dual mode adapter0x100 0200
Port 2 dual mode adapter0x100 0400

93.5.2 ETHSW AC registers

ETHSW AC device ID register (ETHSW_AC_DEV_IDR)

Address offset: 0x000000

Reset value: 0x0000 D000

31302928272625242322212019181716
ResResResResResResResResDEVICE_ID[15:8]
rrrrrrrr
1514131211109876543210
DEVICE_ID[7:0]Res.Res.Res.Res.Res.Res.Res.Res.
rrrrrrrr

Bits 31:24 Reserved, must be kept at reset value.

ST logo
ST logo

Bits 23:8 DEVICE_ID[15:0]: Device ID
0xD0: AC

Bits 7:0 Reserved, must be kept at reset value.

ETHSW AC int ID register (ETHSW_AC_INT_IDR)

Address offset: 0x000004

Reset value: 0x017E 4078

31302928272625242322212019181716
INT_ID[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
INT_ID[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 INT_ID[31:0]: IP core version

ETHSW AC revision ID register (ETHSW_AC_REV_IDR)

Address offset: 0x000008

Reset value: 0x0001 0001

31302928272625242322212019181716
REV_ID_MAJOR[15:0]
rrrrrrrrrrrrrrrr
1514131211109876543210
REV_ID_MINOR[15:0]
rrrrrrrrrrrrrrrr

Bits 31:16 REV_ID_MAJOR[15:0]: Revision ID major number

Bits 15:0 REV_ID_MINOR[15:0]: Revision ID minor number

ETHSW AC interface x ID register (ETHSW_AC_IFx_IDR)

Address offset: 0x001000 + 0x10 * x, (x = 0 to 13)

Reset value: 0x0000

1514131211109876543210
INTERFACE_ID[15:0]
rrrrrrrrrrrrrrrr

Bits 15:0 INTERFACE_ID[15:0]: Interface identification

ETHSW AC interface x version register (ETHSW_AC_IFx_VERR)

Address offset: 0x001002 + 0x10*x (x = 0 to 13)

Reset value: 0x0000

1514131211109876543210
IF_VER_MAJ[7:0]IF_VER_MIN[7:0]
rrrrrrrrrrrrrrrr

Bits 15:8 IF_VER_MAJ[7:0]: Interface major number

Major number is increased when the change breaks backward compatibility.

Bits 7:0 IF_VER_MIN[7:0]: Interface minor number

Minor number is increased when the change does not break backward compatibility.

ETHSW AC interface x base address register (ETHSW_AC_IFx_BASER)

Address offset: 0x001004 + 0x10 * x, (x = 0 to 13)

Reset value: 0x0000 0000

31302928272625242322212019181716
BASE[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
BASE[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 BASE[31:0]: Base address

Interface base address

ST logo
ST logo

ETHSW AC interface x length register (ETHSW_AC_IFx_LENR)

Address offset: 0x001008 + 0x10*x (x = 0 to 13)

Reset value: 0x0000 0000

31302928272625242322212019181716
LEN[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
LEN[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 LEN[31:0]: Interface length
Interface address space length

ETHSW AC interface x port mapping register (ETHSW_AC_IFx_PORTR)

Address offset: 0x00100C + 0x10 * x, (x = 0 to 13)

Reset value: 0x0000 0000

31302928272625242322212019181716
PORT_FES3[7:0]PORT_FES2[7:0]
rrrrrrrrrrrrrrrr
1514131211109876543210
PORT_FES1[7:0]PORT_FES0[7:0]
rrrrrrrrrrrrrrrr

ETHSW AC end of table register (ETHSW_AC_EOTR)

Address offset: 0x0010E0

Reset value: 0x0000

1514131211109876543210
END_OF_TABLE[15:0]
rrrrrrrrrrrrrrrr

Bits 15:0 END_OF_TABLE[15:0]: Static value 0x0 indicating end of table. Indicates end of the table in case the size of the table is full 16 lines.

93.5.3 ETHSW IBC registers

ETHSW IBC device ID register (ETHSW_IBC_DEV_IDR)

Address offset: 0x100000

Reset value: 0x0000 E000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.DEVICE_ID[15:8]
rrrrrrrr
1514131211109876543210
DEVICE_ID[7:0]Res.Res.Res.Res.Res.Res.Res.Res.
rrrrrrrr

Bits 31:24 Reserved, must be kept at reset value. Bits 23:8 DEVICE_ID[15:0]: Device ID 0xE0: IBC Bits 7:0 Reserved, must be kept at reset value.

ETHSW IBC IP core ID register (ETHSW_IBC_INT_IDR)

Address offset: 0x100004

Reset value: 0x016A 9932

31302928272625242322212019181716
INT_ID[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
INT_ID[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 INT_ID[31:0]: IP core version

ST logo
ST logo

ETHSW IBC general-purpose multiplexer control register
(ETHSW_IBC_GP_MUX_CTRLR)

Address offset: 0x101000

Reset value: 0x0000

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.GPMUX0
rw

Bits 15:1 Reserved, must be kept at reset value.

Bit 0 GPMUX0: General-purpose (GP) multiplexer 0 control

0: gp_in_a(0) connected to gp_out(0)

1: gp_in_b(0) connected to gp_out(0)

ETHSW IBC time interface mux demux control register
(ETHSW_IBC_TIME_MUX_CTRLR)

Address offset: 0x101100

Reset value: 0x0000

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TIM_MUX0
rw

Bits 15:1 Reserved, must be kept at reset value.

Bit 0 TIM_MUX0: Time interface (TI) mux/demux 0 control

0: time_in_a(0) connected to time_out(0), time_req_in(0) connected to time_req_out_a(0)

1: time_in_b(0) connected to time_out(0), time_req_in(0) connected to time_req_out_b(0)

ETHSW IBC generic GP_MUXES register (ETHSW_IBC_GP_MUXESR)

Address offset: 0x102000

Reset value: 0x0001

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.GPMUXES[1:0]
rr

Bits 15:2 Reserved, must be kept at reset value.

Bits 1:0 GPMUXES[1:0]: The value of generic GP_MUXES

ETHSW IBC generic GP_MUX_DEFAULT register
(ETHSW_IBC_GP_MUX_DEFAULTR)

Address offset: 0x102002

Reset value: 0x0000

column_1column_2column_3column_4column_5column_6column_7column_8column_9column_10column_11column_12column_13column_14column_15RM0457
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.GPMUXDEF[1:0]
r rr r
Bits 1:0GPMUXDEF[1:0]: The value of Generic GP_MUX_DEFAULT
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TIME_MUX[1:0]
r rr r
Bits 1:0TIME_MUX[1:0]: The value of Generic TIME_MUXES
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
M U X D E F[1:0] TIM _
r rr r
Bits 1:0TIM_MUXDEF[1:0]: The value of Generic TIME_MUX_DEFAULT

Bits 15:2 Reserved, must be kept at reset value.

Bits 1:0 GPMUXDEF[1:0] : The value of Generic GP_MUX_DEFAULT

ETHSW IBC generic TIME_MUXES register (ETHSW_IBC_TIME_MUXESR)

Address offset: 0x102004

Reset value: 0x0001

Bits 15:2 Reserved, must be kept at reset value.

Bits 1:0 TIME_MUX[1:0] : The value of Generic TIME_MUXES

ETHSW IBC generic TIME_MUX_DEFAULT register
(ETHSW_IBC_TIME_MUX_DEFAULTR)

Address offset: 0x102006

Reset value: 0x0000

Bits 15:2 Reserved, must be kept at reset value.

Bits 1:0 TIM_MUXDEF[1:0] : The value of Generic TIME_MUX_DEFAULT

ETHSW IBC generic AUTOCONFIG0 register (ETHSW_IBC_AUTOCONFIG0R)

Address offset: 0x102100

Reset value: 0x0006

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TS_NUM[1:0]RTC_NUM[1:0]
rrrr

Bits 15:4 Reserved, must be kept at reset value.

Bits 3:2 TS_NUM[1:0] : Number of Timestamp blocks (for example FPTS) in the systemBits 1:0 RTC_NUM[1:0] : Number of Real-Time Clock blocks (for example FRTC) in the system

ETHSW IBC generic AUTOCONFIG8 register (ETHSW_IBC_AUTOCONFIG8R)

Address offset: 0x102110

Reset value: 0x0008

1514131211109876543210
RTC_ADD[15:0]
rrrrrrrrrrrrrrrr
Bits 15:0 RTC_ADD[15:0] : Bits (31:16) of the base address of the first Real-Time Clock blockBase address of the first Real-Time Clock block (for example FRTC) in the system relative to the base address of this IBC block (the value in this register is \(((BASE\_RTC0 \gg 16) - (BASE\_IBC \gg 16)) \bmod 0x10000\) ). The bits (15:0) of the base addresses are all zeroes.

ETHSW IBC generic AUTOCONFIG9 register (ETHSW_IBC_AUTOCONFIG9R)

Address offset: 0x102112

Reset value: 0x0009

1514131211109876543210
RTC_ADD[15:0]
rrrrrrrrrrrrrrrr
Bits 15:0 RTC_ADD[15:0] : Bits (31:16) of the base address of the second real-time clock blockBase address of the second Real-Time Clock block (for example FRTC) in the system relative to the base address of this IBC block (the value in this register is \(((BASE\_RTC0 \gg 16) - (BASE\_IBC \gg 16)) \bmod 0x10000\) ). The bits (15:0) of the base addresses are all zeroes.

ETHSW IBC generic AUTOCONFIG10 register
(ETHSW_IBC_AUTOCONFIG10R)

Address offset: 0x102114

Reset value: 0x0000

1514131211109876543210
RTC_ADD[15:0]
rrrrrrrrrrrrrrrr

Bits 15:0 RTC_ADD[15:0]: Bits (31:16) of the base address of the third real-time clock block

Base address of the third Real-Time Clock block (for example FRTC) in the system relative to the base address of this IBC block (the value in this register is \(((\text{BASE\_RTC0} \gg 16) - (\text{BASE\_IBC} \gg 16)) \bmod 0x10000\)). The bits (15:0) of the base addresses are all zeroes.

ETHSW IBC generic AUTOCONFIG12 register
(ETHSW_IBC_AUTOCONFIG12R)

Address offset: 0x102118

Reset value: 0x0002

1514131211109876543210
TS_ADD[15:0]
rrrrrrrrrrrrrrrr

Bits 15:0 TS_ADD[15:0]: Bits (31:16) of the base address of the first timestamper (TS) block

Base address of the first timestamper block (for example FPTS) in the system relative to the base address of this IBC block (the value in this register is \(((\text{BASE\_TS0} \gg 16) - (\text{BASE\_IBC} \gg 16)) \bmod 0x10000\)). The bits (15:0) of the base addresses are all zeroes.

ETHSW IBC generic AUTOCONFIG13 register
(ETHSW_IBC_AUTOCONFIG13R)

Address offset: 0x10211A

Reset value: 0x0000

1514131211109876543210
TS_ADD[15:0]
rrrrrrrrrrrrrrrr

Bits 15:0 TS_ADD[15:0]: Bits (31:16) of the base address of the second timestamper (TS) block

Base address of the second timestamper block (for example FPTS) in the system relative to the base address of this IBC block (the value in this register is \(((\text{BASE\_TS0} \gg 16) - (\text{BASE\_IBC} \gg 16)) \bmod 0x10000\)). The bits (15:0) of the base addresses are all zeroes.

ETHSW IBC generic AUTOCONFIG14 register
(ETHSW_IBC_AUTOCONFIG14R)

Address offset: 0x10211C

Reset value: 0x0000

1514131211109876543210
TS_ADD[15:0]
rrrrrrrrrrrrrrrr

Bits 15:0 TS_ADD[15:0]: Bits (31:16) of the base address of the third timestamper (TS) block

Base address of the third timestamper block (for example FPTs) in the system relative to the base address of this IBC block (the value in this register is \(((\text{BASE\_TS0} \gg 16) - (\text{BASE\_IBC} \gg 16)) \bmod 0x10000\)). The bits (15:0) of the base addresses are all zeroes.

93.5.4 ETHSW FTPS registers

ETHSW FTPS general register 0 (ETHSW_FTPS_GL0R)

Address offset: 0x120000

Reset value: 0x0000 9100

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.DEVICE_ID[15:8]
rrrrrrrr
1514131211109876543210
DEVICE_ID[7:0]Res.Res.Res.Res.Res.Res.Res.Res.
rrrrrrrr

Bits 31:24 Reserved, must be kept at reset value.

Bits 23:8 DEVICE_ID[15:0]: Device ID

0x91: FTPS

Bits 7:0 Reserved, must be kept at reset value.

ETHSW FTPS general register 1 (ETHSW_FTPS_GL1R)

Address offset: 0x120004

Reset value: 0x0000 0000

31302928272625242322212019181716
REV_ID[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
REV_ID[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 REV_ID[31:0]: Revision ID

ETHSW FTPS timestamper control register (ETHSW_FTPS_TSCR)

Address offset: 0x121000

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.GET_TIMESTAMP
rt_w1

Bits 31:1 Reserved, must be kept at reset value.

Bit 0 GET_TIMESTAMP: Get timestamp

Writing 1 to this bit enables the recording of timestamp of the next PPx event to registers:

In addition, the amount of PPx pulses arrived so far is written into ETHSW FTPS pulse counter register (ETHSW_FTPS_PCNTR) . This bit is cleared when the timestamp and the counter value are available.

ETHSW FTPS timestamper interrupt mask register (ETHSW_FTPS_TSIMR)

Address offset: 0x121008

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TIMESTAMP_IE
rw

Bits 31:1 Reserved, must be kept at reset value.

Bit 0 TIMESTAMP_IE: Timestamp interrupt enable

An external interrupt is activated when the TIMESTAMP_IS Interrupt Status bit is set and the TIMESTAMP_IE Mask bit is set.

ETHSW FTPS timestamper interrupt status register (ETHSW_FTPS_TSISR)

Address offset: 0x121010

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TIMESTAMP_IS
rc_w0

Bits 31:1 Reserved, must be kept at reset value.

Bit 0 TIMESTAMP_IS: Timestamp interrupt status

Indicates that a PPx pulse has arrived and a timestamp and pulse counter value are recorded to the following registers:

An external interrupt is activated when the TIMESTAMP_IS Interrupt Status bit is set and the TIMESTAMP_IE Mask bit is set. The interrupt status bit in this register is updated independently from the Interrupt Mask bit.

ETHSW FTPS timestamp subnanosecond register (ETHSW_FTPS_TS_SNSR)

Address offset: 0x121100

Reset value: 0x0000 0000

31302928272625242322212019181716
SUBNANOSECONDS[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
SUBNANOSECONDS[15:0]
rrrrrrrrrrrrrrrr
Bits 31:0 SUBNANOSECONDS[31:0]: Subnanoseconds part of the time of the PPx eventUpdated only with “Get Timestamp” command (see ETHSW FTPS timestamper control register (ETHSW_FTPS_TSCR) ).When ‘Get Timestamp’ bit in ETHSW FTPS timestamper control register (ETHSW_FTPS_TSCR) is set to 1, the value in this register is not valid.

ETHSW FTPS timestamp nanosecond register (ETHSW_FTPS_TS_NSR)

Address offset: 0x121104

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.NANOSECONDS[29:16]
rrrrrrrrrrrrrr
1514131211109876543210
NANOSECONDS[15:0]
rrrrrrrrrrrrrrrr

Bits 31:30 Reserved, must be kept at reset value.

Bits 29:0 NANOSECONDS[29:0] : Nanoseconds part of the time of the PPx eventUpdated only with “Get Timestamp” command (see ETHSW FTPS timestamp control register (ETHSW_FTPS_TSCR) ).When ‘Get Timestamp’ bit in ETHSW FTPS timestamp control register (ETHSW_FTPS_TSCR) is set to 1, the value in this register is not valid.

ETHSW FTPS timestamp second low register (ETHSW_FTPS_TS_SLR)

Address offset: 0x121108

Reset value: 0x0000 0000

31302928272625242322212019181716
SECONDS[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
SECONDS[15:0]
rrrrrrrrrrrrrrrr
Bits 31:0 SECONDS[31:0] : Least significant seconds part of the time of the PPx eventUpdated only with “Get Timestamp” command (see ETHSW FTPS timestamp control register (ETHSW_FTPS_TSCR) ).When ‘Get Timestamp’ bit in ETHSW FTPS timestamp control register (ETHSW_FTPS_TSCR) is set to 1, the value in this register is not valid.

ETHSW FTPS timestamp second high register (ETHSW_FTPS_TS_SHR)

Address offset: 0x12110C

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
SECONDS[47:32]
rrrrrrrrrrrrrrrr

Bits 31:16 Reserved, must be kept at reset value.

Bits 15:0 SECONDS[47:32]: Most significant seconds part of the time of the PPx event
Updated only with “Get Timestamp” command (see ETHSW FTPS timestampper control register (ETHSW_FTPS_TSCR)).
When ‘Get Timestamp’ bit in ETHSW FTPS timestampper control register (ETHSW_FTPS_TSCR) is set to 1, the value in this register is not valid.

ETHSW FTPS pulse counter register (ETHSW_FTPS_PCNTR)

Address offset: 0x121110

Reset value: 0x0000 0000

31302928272625242322212019181716
PCNT[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
PCNT[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 PCNT[31:0]: Pulse counter

Value in the free running 32-bit counter that counts incoming PPx pulses. This counter can be used for finding out how many pulses there has been between two timestamp captures. Useful with fast input signals.

93.5.5 ETHSW FRTC registers

ETHSW FRTCx general register (ETHSW_FRTCx_GLR) (x = 0 to 1)

Address offset: FRTC 0: 0x180000

Address offset: FRTC 1: 0x190000

Reset value: 0x0000 9003

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.DEV_ID[15:8]
rrrrrrrr
1514131211109876543210
DEV_ID[7:0]REV_ID[7:0]
rrrrrrrrrrrrrrrr

Bits 31:24 Reserved, must be kept at reset value.

Bits 23:8 DEV_ID[15:0]: Device ID
0x90: FRTC

Bits 7:0 REV_ID[7:0]: Revision ID
ID number that is incremented when the hardware or software interface of the IP core is changed.

ETHSW FRTCx current time nanosecond register
(ETHSW_FRTCx_CUR_NSECR)
(x = 0 to 1)

Address offset: FRTC 0: 0x181004

Address offset: FRTC 1: 0x191004

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.NANOSECONDS[29:16]
rrrrrrrrrrrrrr
1514131211109876543210
NANOSECONDS[15:0]
rrrrrrrrrrrrrrrr

Bits 31:30 Reserved, must be kept at reset value.

Bits 29:0 NANOSECONDS[29:0]: Nanoseconds part of the current time

Current time nanoseconds. Updated with Read Time command (see ETHSW FRTCx time command register (ETHSW_FRTCx_TIME_CMDR) (x = 0 to 1))

ETHSW FRTCx current time second low register
(ETHSW_FRTCx_CUR_SECLR)
(x = 0 to 1)

Address offset: FRTC 0: 0x181008

Address offset: FRTC 1: 0x191008

Reset value: 0x0000 0000

31302928272625242322212019181716
SECONDS[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
SECONDS[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 SECONDS[31:0]: Seconds part of the current time (least significant part)

Current time seconds. Updated with Read Time command (see ETHSW FRTCx time command register (ETHSW_FRTCx_TIME_CMDR) (x = 0 to 1))

ETHSW FRTCx current time second high register
(ETHSW_FRTCx_CUR_SECHR)
(x = 0 to 1)

Address offset: FRTC 0: 0x18100C

Address offset: FRTC 1: 0x19100C

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
SECONDS[47:32]
rrrrrrrrrrrrrrrr

Bits 31:16 Reserved, must be kept at reset value.

Bits 15:0 SECONDS[47:32]: Seconds part of the current time (most significant part)

Current time seconds. Updated with Read Time command (see ETHSW FRTCx time command register (ETHSW_FRTCx_TIME_CMDR) (x = 0 to 1))

ETHSW FRTCx time CC low register (ETHSW_FRTCx_TIME_CCLR) (x = 0 to 1)

Address offset: FRTC 0: 0x181010

Address offset: FRTC 1: 0x191010

Reset value: 0x0000 0000

31302928272625242322212019181716
TIME_CC[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
TIME_CC[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 TIME_CC[31:0]: Clock cycle counter (least significant part)

Number of clock cycles since the reset. Free-running counter running with time_clk. Updated with Read Time command (see ETHSW FRTCx time command register (ETHSW_FRTCx_TIME_CMDR) (x = 0 to 1)).

The value wraps around automatically. Time adjustments have no effect on this value.

ETHSW FRTCx time CC high register (ETHSW_FRTCx_TIME_CCHR)
(x = 0 to 1)

Address offset: FRTC 0: 0x181014

Address offset: FRTC 1: 0x191014

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
TIME_CC[47:32]
rrrrrrrrrrrrrrrr

Bits 31:16 Reserved, must be kept at reset value.

Bits 15:0 TIME_CC[47:32]: Clock cycle counter (most significant part)

Number of clock cycles since the reset. Free-running counter running with time_clk. Updated with Read Time command (see ETHSW FRTCx time command register (ETHSW_FRTCx_TIME_CMDR) (x = 0 to 1)).

The value wraps around automatically. Time adjustments have no effect on this value.

ETHSW FRTCx step size subnanosecond register
(ETHSW_FRTCx_STEP_SIZE_SNR) (x = 0 to 1)

Address offset: FRTC 0: 0x181020

Address offset: FRTC 1: 0x191020

Reset value: 0x0000 0000

31302928272625242322212019181716
SUBNANOSECONDS[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
SUBNANOSECONDS[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 SUBNANOSECONDS[31:0]: Subnanoseconds

Subnanoseconds step size for NCO. This value is added to the internal NCO at every clock cycle. Defines the speed of the clock time.

The new value is taken into use with Adjust Step command (see ETHSW FRTCx time command register (ETHSW_FRTCx_TIME_CMDR) (x = 0 to 1)).

ETHSW FRTCx step size nanosecond register
(ETHSW_FRTCx_STEP_SIZE_NR)
(x = 0 to 1)

Address offset: FRTC 0: 0x181024

Address offset: FRTC 1: 0x191024

Reset value: 0x0000 0005

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.NANOSECONDS[5:0]
rwrwrwrwrwrw

Bits 31:6 Reserved, must be kept at reset value.

Bits 5:0 NANOSECONDS[5:0]: Nanoseconds

Nanoseconds step size for NCO. This value is added to the internal NCO at every clock cycle. Defines the speed of the clock time.

The new value is taken into use with Adjust Step command (see ETHSW FRTCx time command register (ETHSW_FRTCx_TIME_CMDR) (x = 0 to 1)).

ETHSW FRTCx adjust nanosecond register
(ETHSW_FRTCx_ADJUST_NSECR)
(x = 0 to 1)

Address offset: FRTC 0: 0x181034

Address offset: FRTC 1: 0x191034

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.NANOSECONDS[29:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
NANOSECONDS[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:30 Reserved, must be kept at reset value.

Bits 29:0 NANOSECONDS[29:0]: Nanoseconds

Adjust time (nanoseconds part). This value is added to the nanoseconds part with Adjust Time command instead of STEP_SIZE nanoseconds in:

For the change to take effect, ETHSW FRTCx time command register (ETHSW_FRTCx_TIME_CMDR) (x = 0 to 1) must also be written.

The nanosecond adjustment value is unsigned and therefore always positive.

To go backwards, use negative seconds adjustment in

For example, to go 500 ns backwards, adjust 999,999,500 ns forwards and one second backwards. Allowed range for nanosecond adjustment is from 0 to 999,999,999.

ETHSW FRTCx adjust second low register (ETHSW_FRTCx_ADJUST_SECLR)
(x = 0 to 1)

Address offset: FRTC 0: 0x181038

Address offset: FRTC 1: 0x191038

Reset value: 0x0000 0000

31302928272625242322212019181716
SECONDS[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
SECONDS[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 SECONDS[31:0]: Seconds (least significant part)

Adjust time (seconds part). This value is added to the seconds part with Adjust Time command (see ETHSW FRTCx time command register (ETHSW_FRTCx_TIME_CMDR) (x = 0 to 1)). The seconds adjustment value is signed and can therefore be also negative. To go backwards, use two's complement arithmetics.

ETHSW FRTCx adjust second high register
(ETHSW_FRTCx_ADJUST_SECHR)
(x = 0 to 1)

Address offset: FRTC 0: 0x18103C

Address offset: FRTC 1: 0x19103C

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
SECONDS[47:32]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 Reserved, must be kept at reset value.

Bits 15:0 SECONDS[47:32]: Seconds (most significant part)
Adjust time (seconds part). This value is added to the seconds part with Adjust Time command (see ETHSW FRTCx time command register (ETHSW_FRTCx_TIME_CMDR) (x = 0 to 1)). The seconds adjustment value is signed and can therefore be also negative. To go backwards, use two's complement arithmetics.

ETHSW FRTCx time command register (ETHSW_FRTCx_TIME_CMDR)
(x = 0 to 1)

Address offset: FRTC 0: 0x181040

Address offset: FRTC 1: 0x191040

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ADJUST_TIME_MODEREAD_TIMEADJUST_STEPADJUST_TIME
rt_w1rt_w1rt_w1rt_w1
ST logo
ST logo

Bits 31:4 Reserved, must be kept at reset value.

Bit 3 ADJUST_TIME_MODE:

Determines when ADJUST_TIME command is taken into use (does not affect to ADJUST_STEP command):

0: takes effect immediately (normal behavior)

1: takes effect on half second (2²⁹ = ~536,9 ms on nanoseconds value)

Writing 1 to this bit triggers the adjustment on half-second. It is then automatically cleared by hardware.

Bit 2 READ_TIME:

Updates the following registers with the current values in the NCO:

Writing 1 to this bit triggers the update. It is then automatically cleared by hardware.

Bit 1 ADJUST_STEP:

Take the new values of the following registers into use:

Writing 1 to this bit triggers the step adjustment. It is then automatically cleared by hardware.

Bit 0 ADJUST_TIME:

Adds (for one time only) the values in the following registers to internal time (NCO):

Writing 1 to this bit triggers the time adjustment. It is then automatically cleared by hardware.

ETHSW FRTCx generics low register (ETHSW_FRTCx_GENERICS_LR)
(x = 0 to 1)

Address offset: FRTC 0: 0x182000

Address offset: FRTC 1: 0x192000

Reset value: 0x0000 0000

31302928272625242322212019181716
DEFAULT_STEP_SNS[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
DEFAULT_STEP_SNS[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 DEFAULT_STEP_SNS[31:0]: The value of Generic DEFAULT_STEP_SNS.

ETHSW FRTCx generics high register (ETHSW_FRTCx_GENERICS_HR)
(x = 0 to 1)

Address offset: FRTC 0: 0x182004

Address offset: FRTC 1: 0x192004

Reset value: 0x0000 0005

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DEFAULT_STEP_NS[5:0]
rrrrrr

Bits 31:6 Reserved, must be kept at reset value.

Bits 5:0 DEFAULT_STEP_NS[5:0]: The value of Generic DEFAULT_STEP_NS.

93.5.6 ETHSW FSC registers

ETHSW FSC device ID register (ETHSW_FSC_DEV_IDR)

Address offset: 0x1C0000

Reset value: 0x0000 C000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.DEV_ID[15:8]
rrrrrrrr
1514131211109876543210
DEV_ID[7:0]Res.Res.Res.Res.Res.Res.Res.Res.
rrrrrrrr

Bits 31:24 Reserved, must be kept at reset value.

Bits 23:8 DEV_ID[15:0]: Device ID

0x00C0: FSC

Bits 7:0 Reserved, must be kept at reset value.

ETHSW FSC INT ID register (ETHSW_FSC_INT_IDR)

Address offset: 0x1C0004

Reset value: 0x016A 9932

31302928272625242322212019181716
REV_ID[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
REV_ID[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 REV_ID[31:0]: REV_ID
Revision ID from version control system

ETHSW FSC schedule table row access command register 0 (ETHSW_FSC_ROW_ACCESS_CMD0R)

Address offset: 0x1C1000

Reset value: 0x0000

1514131211109876543210
TRANSFERREAD_WRITEACCESS_ERRRes.Res.Res.Res.TABLERes.Res.Res.Res.SCHEDULER[3:0]
rt_w1rwrrwrwrwrwrw

Bit 15 TRANSFER: Triggers transfer between schedule table row and ROW_DATA registers
Write 1 to this bit to read data from Schedule Table row to ROW_DATA registers, or to write data from ROW_DATA registers to Schedule Table row, depending on Read/Write bit.
The ROW_DATA registers are:
– ETHSW FSC schedule table row data 0 register (ETHSW_FSC_ROW_DATA0R)
– ETHSW FSC schedule table row data 4 register (ETHSW_FSC_ROW_DATA4R)
Value 0 indicates that the read/write is complete.

Bit 14 READ_WRITE: Read/write
0: Read. Data is available on next read to ROW_DATA registers.
1: Write. Data in ROW_DATA registers is written to Schedule Table row.

Bit 13 ACCESS_ERR: Access error.
0: The previous read/write was successful
1: The previous write access was not successful because the table was in use by the scheduler (= active)

Bits 12:9 Reserved, must be kept at reset value.

ST logo
ST logo

Bit 8 TABLE: Schedule table.
The Schedule Table of the scheduler that is accessed (read or written). Note that the active table cannot be written, only read.
0: Table 0
1: Table 1

Bits 7:4 Reserved, must be kept at reset value.

Bits 3:0 SCHEDULER[3:0]: Scheduler
The number of the scheduler whose Schedule Table is read or written.
0: Scheduler 0
1: Scheduler 1
2: Scheduler 2
Others: Reserved, must not be used.

ETHSW FSC schedule table row access command register 1 (ETHSW_FSC_ROW_ACCESS_CMD1R)

Address offset: 0x1C1002

Reset value: 0x0000

1514131211109876543210
Res.Res.Res.Res.Res.Res.ROW_NUM[9:0]
rrrrrrrrrr

Bits 15:10 Reserved, must be kept at reset value.

Bits 9:0 ROW_NUM[9:0]: Row number
The Schedule Table row that is accessed (indirect access).

ETHSW FSC schedule table row data 0 register (ETHSW_FSC_ROW_DATA0R)

Address offset: 0x1C1010

Reset value: 0x0000

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.OUTPUT_STATE[8:0]
rwrwrwrwrwrwrwrwrw

Bits 15:9 Reserved, must be kept at reset value.

Bits 8:0 OUTPUT_STATE[8:0]: Output state for outputs 8 to 0.
Data to be written to Schedule Table row, or data read from Schedule Table row.
For each output bit:
0: Gate state is Closed
1: Gate state is Open
Note: Schedule Table rows that have not been written by the user may contain random data.

ST logo
ST logo

ETHSW FSC schedule table row data 4 register (ETHSW_FSC_ROW_DATA4R)

Address offset: 0x1C1018

Reset value: 0x0000

1514131211109876543210
TIME[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
Bits 15:0 TIME[15:0] : Time in clock cycles

The time in clock cycles the row processor stays on this schedule table row. Allowed values are 0, 8 to 65535. Value 0 corresponds to an infinite amount of clock cycles.

Data to be written to Schedule Table row, or data read from Schedule Table row.

Note: Schedule table rows that have not been written by the user may contain random data.

ETHSW FSC interrupt mask register (ETHSW_FSC_IMR)

Address offset: 0x1C1100

Reset value: 0x0000

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SCHTBL_IE
rw

Bits 15:1 Reserved, must be kept at reset value.

Bit 0 SCHTBL_IE : Schedule table interrupt enable

Enables interrupt indicating that a scheduler has taken a new schedule table into use.

An interrupt is activated when this bit is set and the SCHTBL_IS Interrupt Status bit is 1.

ETHSW FSC interrupt status register (ETHSW_FSC_ISR)

Address offset: 0x1C1102

Reset value: 0x0000

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SCHTBL_IS
rc_w0

Bits 15:1 Reserved, must be kept at reset value.

Bit 0 SCHTBL_IS : Schedule table interrupt status

Indicates that a scheduler has taken a new schedule table into use.

An interrupt is activated when this bit is set and the SCHTBL_IE Interrupt enable bit is 1.

The interrupt status bit is updated independently from the Interrupt enable bit.

ETHSW FSC generic scheduler register (ETHSW_FSC_GEN_SCHR)

Address offset: 0x1C4000

Reset value: 0x0007

1514131211109876543210
SCHEDULERS[15:0]
rrrrrrrrrrrrrrrr
Bits 15:0 SCHEDULERS[15:0] : The value of generic SCHEDULERS

Bit 0 corresponds to scheduler 0, bit 1 corresponds to scheduler 1, and so on.

ETHSW FSC generic outputs register (ETHSW_FSC_GEN_OUTR)

Address offset: 0x1C4002

Reset value: 0x0009

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.OUTPUTS[6:0]
rrrrrrr

Bits 15:7 Reserved, must be kept at reset value.

Bits 6:0 OUTPUTS[6:0] : The value of generic OUTPUTS

Number of outputs per scheduler:

1: 1 output

2: 2 outputs

3: 3 outputs

...

ETHSW FSC generic table rows register (ETHSW_FSC_GEN_TBL_RWR)

Address offset: 0x1C4004

Reset value: 0x000A

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TABLE_ROWS[3:0]
rrrr

Bits 15:4 Reserved, must be kept at reset value.

Bits 3:0 TABLE_ROWS[3:0] : The value of generic TABLE_ROWS

Number of rows (entries) in each schedule table (there are two schedule tables per scheduler). Presented in powers of two:

'6': 64 rows

'7': 128 rows

'8': 256 rows

'9': 512 rows

'10': 1024 rows

ETHSW FSC generic clock frequency register
(ETHSW_FSC_GEN_CLK_FRQR)

Address offset: 0x1C4006

Reset value: 0x00C8

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.CLK_FREQ[7:0]
rrrrrrrr

Bits 15:8 Reserved, must be kept at reset value.

Bits 7:0 CLK_FREQ[7:0]: The value of generic CLK_FREQ

This bitfield can be used to indicate the clk clock frequency for the device driver software.

0: Reserved

1: 1 MHz

2: 2 MHz

...

255: 255 MHz

ETHSW FSC scheduler x general register (ETHSW_FSCx_SCH_GENR)
(x = 0 to 2)

Address offset: scheduler 0: 0x1D0000

Address offset: scheduler 1: 0x1D1000

Address offset: scheduler 2: 0x1D2000

Reset value: 0x7FF0

1514131211109876543210
Res.DWNCNT_STRT_VAL[10:0]Res.Res.DWNCNT_SPD[1:0]
rwrwrwrwrwrwrwrwrwrwrwrw

Bit 15 Reserved, must be kept at reset value.

Bits 14:4 DWNCNT_STRT_VAL[10:0]: Downcounter start value.

The value from which the downcounters count down to zero.

If the Addend in ETHSW FSC scheduler x downcounter speed setting register (ETHSW_FSCx_DWNCNT_SPDR) (x = 0 to 2) is 0b1000, the start value has to be divisible by 4.

If the Addend in ETHSW FSC scheduler x downcounter speed setting register (ETHSW_FSCx_DWNCNT_SPDR) (x = 0 to 2) is 0b1010 or 0b0101, the start value has to be divisible by 5.

Bits 3:2 Reserved, must be kept at reset value.

Bits 1:0 DWNCNT_SPD[1:0]: Downcounter speed, 10/100 divider

00: one addend in a clock cycle (see ETHSW FSC scheduler x downcounter speed setting register (ETHSW_FSCx_DWNCNT_SPDR) (x = 0 to 2))

01: one addend in ten clock cycles

10: one addend in one hundred clock cycles

11: Reserved

When FSC is used with FES, this setting corresponds to 1 Gbit/s, 100 Mbit/s and 10 Mbit/s line speeds.

ETHSW FSC scheduler x downcounter speed setting register
(ETHSW_FSCx_DWNCNT_SPDR) (x = 0 to 2)

Address offset: scheduler 0: 0x1D0002

Address offset: scheduler 1: 0x1D1002

Address offset: scheduler 2: 0x1D2002

Reset value: 0x0100

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.DWNCNTR_SPD[3:0]Res.Res.Res.Res.Res.
rwrwrwrw

Bits 15:9 Reserved, must be kept at reset value.

Bits 8:5 DWNCNTR_SPD[3:0]: Downcounter speed, addend

0101: 0.625 units in a clock cycle.

When FSC is used with FES this setting corresponds to 200 MHz clk clock.

1000: one unit in a clock cycle

When FSC is used with FES this setting corresponds to 125 MHz clk clock.

1010: 1.25 units in a clock cycle

When FSC is used with FES this setting corresponds to 100 MHz clk clock.

Others: Reserved, must not be used.

Bits 4:0 Reserved, must be kept at reset value.

ETHSW FSC scheduler x emergency disable control register (ETHSW_FSCx_EME_DIS_CR) (x = 0 to 2)

Address offset: scheduler 0: 0x1D0020 Address offset: scheduler 1: 0x1D1020 Address offset: scheduler 2: 0x1D2020 Reset value: 0x0003

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.EME_DIS_MUX_STATEEME_DIS_MUX_CTRL
rrw

Bits 15:2 Reserved, must be kept at reset value.

ETHSW FSC scheduler x emergency disable port state register (ETHSW_FSCx_EME_DIS_STATR) (x = 0 to 2)

Address offset: scheduler 0: 0x1D0030
Address offset: scheduler 1: 0x1D1030
Address offset: scheduler 2: 0x1D2030
Reset value: 0x00FF

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.EME_DIS_STAT[8:0]
rwrwrwrwrwrwrwrwrw
ST logo
ST logo

Bits 15:9 Reserved, must be kept at reset value.

Bits 8:0 EME_DIS_STAT[8:0]: Gate state in Emergency disable mode

This register is used to set the gate_state outputs open/closed when Emergency disable MUX state (in ETHSW FSC scheduler x emergency disable control register (ETHSW_FSCx_EME_DIS_CR) (x = 0 to 2)) is 1.

Bit 0 corresponds to gate_state output 0, bit 1 corresponds to gate_state output 1, and so on
0: gate_state is closed
1: gate_state is open

ETHSW FSC scheduler x table y general control and status register
(ETHSW_FSCx_Ty_TBL_GENR) (x = 0 to 2)

Address offset: scheduler 0: 0x1D0800 + 0x100 * y, (y = 0 to 1)

Address offset: scheduler 1: 0x1D1800 + 0x100 * y, (y = 0 to 1)

Address offset: scheduler 2: 0x1D2800 + 0x100 * y, (y = 0 to 1)

Reset value: 0x0000

1514131211109876543210
UPDATERes.Res.Res.Res.Res.LST_CYC_RCHDLST_CYC_ENRes.Res.Res.Res.Res.Res.SCH_TBL_IN_USESCH_TBL_UPDATE
rt_w1rrwrrw

Bit 15 UPDATE: Update

Write 1 to update read-only information in the following registers:

Bits 14:10 Reserved, must be kept at reset value.

Bit 9 LST_CYC_RCHD: Last cycle reached

Bit 8 LST_CYC_EN: Last cycle number register enable/disable

Bits 7:2 Reserved, must be kept at reset value.

Bit 1 SCH_TBL_IN_USE: Schedule table currently in use

Bit 0 SCH_TBL_UPDATE: Schedule table can be taken into use

When the scheduler takes the table into use, it clears this bit

ETHSW FSC scheduler x table y start time nanosecond register
(ETHSW_FSCx_Ty_STRT_NS) (x = 0 to 2)

Address offset: scheduler 0: 0x1D0814 + 0x100 * y, (y = 0 to 1)

Address offset: scheduler 1: 0x1D1814 + 0x100 * y, (y = 0 to 1)

Address offset: scheduler 2: 0x1D2814 + 0x100 * y, (y = 0 to 1)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.STARTTIME_NS[29:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
STARTTIME_NS[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:30 Reserved, must be kept at reset value.

Bits 29:0 STARTTIME_NS[29:0]: Time schedule table taken into use, nanoseconds part.

If this schedule table is in use, this is the time it was taken into use. If this schedule table is not in use and bit 0 in ETHSW FSC scheduler x table y general control and status register (ETHSW_FSCx_Ty_TBL_GENR) (x = 0 to 2) is 1, this is the time the new schedule is going to be taken into use. Writing into this register is allowed only when bits 0 and 1 in ETHSW FSC scheduler x table y general control and status register (ETHSW_FSCx_Ty_TBL_GENR) (x = 0 to 2) are both 0.

Allowed range for nanosecond values is 0 to 999,999,999.

ETHSW FSC scheduler x table y start time second register
(ETHSW_FSCx_Ty_STRT_SR) (x = 0 to 2)

Address offset: scheduler 0: 0x1D0818 + 0x100 * y, (y = 0 to 1)

Address offset: scheduler 1: 0x1D1818 + 0x100 * y, (y = 0 to 1)

Address offset: scheduler 2: 0x1D2818 + 0x100 * y, (y = 0 to 1)

Reset value: 0x0000

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.STARTTIME_S[7:0]
rwrwrwrwrwrwrwrw

Bits 15:8 Reserved, must be kept at reset value.

Bits 7:0 STARTTIME_S[7:0]: Time schedule table taken into use, seconds part.

Values 1 to 127 greater than the seconds of the current time (including wraparound) are interpreted as future time. Values 1 to 127 smaller (= 129 to 255 bigger) than the seconds of the current time (including wraparound) are interpreted as past time. Seconds value 128 greater than the seconds of the current time (including wraparound) is undefined.

If this Schedule Table is in use, this is the time it was taken into use. If this Schedule Table is not in use and bit 0 in ETHSW FSC scheduler x table y general control and status register (ETHSW_FSCx_Ty_TBL_GENR) (x = 0 to 2) is 1, this is the time the new schedule is going to be taken into use. Writing into this register is allowed only when bits 0 and 1 in ETHSW FSC scheduler x table y general control and status register (ETHSW_FSCx_Ty_TBL_GENR) (x = 0 to 2) are both 0.

Allowed range for nanosecond values is 0 to 999,999,999.

ETHSW FSC scheduler x table y cycle time subnanosecond register
(ETHSW_FSCx_Ty_CYC_SUBNSR) (x = 0 to 2)

Address offset: scheduler 0: 0x1D0820 + 0x100 * y, (y = 0 to 1)

Address offset: scheduler 1: 0x1D1820 + 0x100 * y, (y = 0 to 1)

Address offset: scheduler 2: 0x1D2820 + 0x100 * y, (y = 0 to 1)

Reset value: 0x0000 0000

31302928272625242322212019181716
CYCLETIME_SUBNS[23:8]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
CYCLETIME_SUBNS[7:0]Res.Res.Res.Res.Res.Res.Res.Res.
rwrwrwrwrwrwrwrw

Bits 31:8 CYCLETIME_SUBNS[23:0]: Time each cycle is run, subnanoseconds part.

Value in 2⁻²⁴ nanosecond.

Writing into this register is allowed only when bits 0 and 1 in ETHSW FSC scheduler x table y general control and status register (ETHSW_FSCx_Ty_TBL_GENR) (x = 0 to 2) are both 0.

Bits 7:0 Reserved, must be kept at reset value.

ETHSW FSC scheduler x table y cycle time nanosecond register
(ETHSW_FSCx_Ty_CYC_NSR) (x = 0 to 2)

Address offset: scheduler 0: 0x1D0824 + 0x100 * y, (y = 0 to 1)

Address offset: scheduler 1: 0x1D1824 + 0x100 * y, (y = 0 to 1)

Address offset: scheduler 2: 0x1D2824 + 0x100 * y, (y = 0 to 1)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.CYCLETIME_NS[29:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
CYCLETIME_NS[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:30 Reserved, must be kept at reset value.

Bits 29:0 CYCLETIME_NS[29:0]: Time each cycle is run, nanoseconds part.

Allowed range for nanosecond values is 0 to 999,999,999.

Writing into this register is allowed only when bits 0 and 1 in ETHSW FSC scheduler x table y general control and status register (ETHSW_FSCx_Ty_TBL_GENR) (x = 0 to 2) are both 0.

ETHSW FSC scheduler x table y cycle timestamp nanosecond register
(ETHSW_FSCx_Ty_CYCTS_NSR) (x = 0 to 2)

Address offset: scheduler 0: 0x1D0834 + 0x100 * y, (y = 0 to 1)

Address offset: scheduler 1: 0x1D1834 + 0x100 * y, (y = 0 to 1)

Address offset: scheduler 2: 0x1D2834 + 0x100 * y, (y = 0 to 1)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.TIMESTAMP_NS[29:16]
rrrrrrrrrrrrrr
1514131211109876543210
TIMESTAMP_NS[15:0]
rrrrrrrrrrrrrrrr

Bits 31:30 Reserved, must be kept at reset value.

Bits 29:0 TIMESTAMP_NS[29:0]: Timestamp from the start of the previous cycle, nanoseconds part.

Nanosecond value.

If CYCLE_CNT did not overwrap, this would be STARTTIME + CYCLE_CNT * CYCLETIME.
This register is updated only with update command (bit 15 in ETHSW FSC scheduler x table y general control and status register (ETHSW_FSCx_Ty_TBL_GENR) (x = 0 to 2)).

ETHSW FSC scheduler x table y cycle timestamp second register
(ETHSW_FSCx_Ty_CYCTS_SR) (x = 0 to 2)

Address offset: scheduler 0: 0x1D0838 + 0x100 * y, (y = 0 to 1)

Address offset: scheduler 1: 0x1D1838 + 0x100 * y, (y = 0 to 1)

Address offset: scheduler 2: 0x1D2838 + 0x100 * y, (y = 0 to 1)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.TIMESTAMP_S[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 TIMESTAMP_S[7:0]: Timestamp from the start of the previous cycle, seconds part.

Second value.

If CYCLE_CNT did not overwrap, this would be STARTTIME + CYCLE_CNT * CYCLETIME.

This register is updated only with the update command (bit 15 in ETHSW FSC scheduler x table y general control and status register (ETHSW_FSCx_Ty_TBL_GENR) (x = 0 to 2)).

ETHSW FSC scheduler x table y cycle counter register
(ETHSW_FSCx_Ty_CYC_CNTR) (x = 0 to 2)

Address offset: scheduler 0: 0x1D0840 + 0x100 * y, (y = 0 to 1)

Address offset: scheduler 1: 0x1D1840 + 0x100 * y, (y = 0 to 1)

Address offset: scheduler 2: 0x1D2840 + 0x100 * y, (y = 0 to 1)

Reset value: 0x0000

1514131211109876543210
CYCLE_CNT[15:0]
rrrrrrrrrrrrrrrr

Bits 15:0 CYCLE_CNT[15:0]: Cycle count.

Number of the current cycle of the cycler process. It indicates how many full rounds the current Schedule Table has been run.

This register is updated only with update command (bit 15 in ETHSW FSC scheduler x table y general control and status register (ETHSW_FSCx_Ty_TBL_GENR) (x = 0 to 2)).

ETHSW FSC scheduler x table y last cycle register
(ETHSW_FSCx_Ty_LST_CYCR) (x = 0 to 2)

Address offset: scheduler 0: 0x1D0844 + 0x100 * y, (y = 0 to 1)

Address offset: scheduler 1: 0x1D1844 + 0x100 * y, (y = 0 to 1)

Address offset: scheduler 2: 0x1D2844 + 0x100 * y, (y = 0 to 1)

Reset value: 0x0000

1514131211109876543210
LAST_CYCLE[15:0]
rrrrrrrrrrrrrrrr

Bits 15:0 LAST_CYCLE[15:0]: Cycle number of the last cycle.

Last cycle number.

If bit 8 in ETHSW FSC scheduler x table y general control and status register (ETHSW_FSCx_Ty_TBL_GENR) (x = 0 to 2) is 1, the Cycler process stops when the cycle count matches the value in this register.

93.5.7 ETHSW FES registers

ETHSW FES port x port State register (ETHSW_FESx_PORT_STATER)
(x = 0 to 2)

Address offset: port 0: 0x200000

Address offset: port 1: 0x210000

Address offset: port 2: 0x220000

Reset value: 0x0002

1514131211109876543210
RX_CTFB_STFRes.Res.Res.Res.SPEED_SEL[1:0]Res.Res.HW_MODE[1:0]MGMT_ST[1:0]FWD_ST[1:0]
rwrwrwrwrwrwrwrwrwrw

Bit 15 RX_CT: RX Cut-through

0: Cut-through disabled for frames coming into this port. Only Store-and-Forward operation.

1: Cut-through enabled for frames coming into this port.

For preventing broken frames from looping indefinitely in the network, this bit self-clears with a probability of 1/256 in case of a receive error (RX_UNDERSIZE, RX_FRAGMENTS, RX_OVERSIZE, RX_JABBER, RX_ERR or RX_CRC), if the value of the bit 14 (Fallback to Store-and-Forward) in this register is 0.

It is not allowed to enable Cut-through if the port is in Management mode.

Note: This bit is reserved for port 0.

Bit 14 FB_STF: Fallback to Store-and-Forward

0: RX Cut-through bit (RX_CT) is cleared with a probability of 1/256 in case of a receive error.

1: RX Cut-through bit (RX_CT) is never automatically cleared.

Note: This bit is reserved for port 0.

Bits 13:10 Reserved, must be kept at reset value.

Bits 9:8 SPEED_SEL[1:0]: Speed select

Bits 7:6 Reserved, must be kept at reset value.

Bits 5:4 HW_MODE[1:0]: Port HW mode

Bits 3:2 MGMT_ST[1:0]: Port management state

Bits 1:0 FWD_ST[1:0]: Port Forwarding state

ETHSW FES port x port VLAN configuration register 0 (ETHSW_FESx_VLAN0R) (x = 0 to 2)

Address offset: port 0: 0x200010

Address offset: port 1: 0x210010

Address offset: port 2: 0x220010

Reset value: 0x8FFF

1514131211109876543210
TGD_U
TGD
PD_PCP[2:0]PD_VLAN[11:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bit 15 TGD_UTGD: Tagged/untagged

Defines whether frames are sent out with or without a VLAN tag. Does not affect the handling of incoming frames.

0: no VLAN tags is added to the frames at exit. Since one VLAN tag per frame is always removed in ingress, the number of VLAN tags in frames decreases by one when a frame goes through FES.

1: VLAN tags are added to frames at exit, except for frames whose VLAN is the default VLAN of the output port. Tagging can still be disabled per-port per-VLAN using ETHSW FES port VLAN tagging register (ETHSW_FES_VLAN_TAGR).

ST logo
ST logo

Bits 14:12 PD_PCP[2:0]: Port default PCP
Priority Code Point (PCP) for the frames coming in from the port without a VLAN tag. This setting together with Priority Regeneration Table Register also defines the priority for the frames.

Bits 11:0 PD_VLAN[11:0]: Port default VLAN
Incoming untagged frames are mapped to this VLAN. Outgoing frames with this VLAN are sent untagged. Value 0x0 is reserved

ETHSW FES port x port VLAN configuration register 1
(ETHSW_FESx_VLAN1R) (x = 0 to 2)

Address offset: port 0: 0x200012
Address offset: port 1: 0x210012
Address offset: port 2: 0x220012
Reset value: 0x0000

column_1Bits 14:12Bits 11:0PD_PCP[2:0] : Port default PCP frames. PD_VLAN[11:0] : Port default VLAN Reset value: 0x0000column_5column_6column_7column_8column_9column_10column_11column_12RM0457
15 USE_D141312 11 10 9876543210
EIRes.Res.Res.VLAN_PRIF[11:0]
rwrw rw rwrwrwrwrwrwrwrwrwrw
Bit 15USE_DEI : Use_DEI
Bits 11:0VLAN_PRIF[11:0] : Default VLAN for Priority Tagged Frames
15141312 11 10 9876543210
Res.Res.Res.Res. Res. Res. Res.Res.Res. Res.Res.Res.Res.PORT_FWDM[2:0]
rwrwrw

Bit 15 USE_DEI: Use_DEI
Defines whether to use the DEI (Drop Eligible Indicator)-bit in the VLAN tag or not.
0: DEI bit is not used for this port. None of the incoming frames is considered as Drop Eligible. DEI bit is always cleared for frames transmitted out from this port.
1: DEI bit is used for this port. Incoming frames are considered as Drop Eligible if their DEI bit is set. If their DEI bit is cleared, they are considered as non Drop Eligible. DEI bit is set for Drop Eligible frames sent out from this port and cleared for frames that are not Drop Eligible

Bits 14:12 Reserved, must be kept at reset value.

Bits 11:0 VLAN_PRIF[11:0]: Default VLAN for Priority Tagged Frames
Incoming frames with priority tag (VLAN ID 0) are mapped to this VLAN. This setting does not affect frames going out from this port.

ETHSW FES port x port forward mask configuration register
(ETHSW_FESx_FWDM_CFGR) (x = 0 to 2)

Address offset: port 0: 0x200014
Address offset: port 1: 0x210014
Address offset: port 2: 0x220014
Reset value: 0x0000

ST logo
ST logo

Bits 15:3 Reserved, must be kept at reset value.

Bits 2:0 PORT_FWDM[2:0]: Port forward mask

Configures to which ports forwarding is allowed from this port.

Bit 0 corresponds to port 0, bit 1 corresponds to port 1, bit 2 corresponds to port 2.

0: Enable forwarding to the port

1: Disable forwarding to the port

ETHSW FES port x priority regeneration table low register
(ETHSW_FESx_PRIO_REGENLR) (x = 0 to 2)

Address offset: port 0: 0x200016

Address offset: port 1: 0x210016

Address offset: port 2: 0x220016

Reset value: 0x3210

1514131211109876543210
Res.PCP3[2:0]Res.PCP2[2:0]Res.PCP1[2:0]Res.PCP0[2:0]
rwrwrwrwrwrwrwrwrwrwrwrw

Bit 15 Reserved, must be kept at reset value.

Bits 14:12 PCP3[2:0]: Priority, PCP3

Frames with Priority Code Point 3 get this priority in FES.

Bit 11 Reserved, must be kept at reset value.

Bits 10:8 PCP2[2:0]: Priority, PCP2

Frames with Priority Code Point 2 get this priority in FES.

Bit 7 Reserved, must be kept at reset value.

Bits 6:4 PCP1[2:0]: Priority, PCP1

Frames with Priority Code Point 1 get this priority in FES.

Bit 3 Reserved, must be kept at reset value.

Bits 2:0 PCP0[2:0]: Priority, PCP0

Defines priorities for Priority Code Points (PCP) 0. The priority for each PCP is configured with three bits. The priority an incoming frame gets defines the Priority Code Point (PCP) for the frame when it is sent out. Together with Queue Table (ETHSW FES port x queue table configuration register (ETHSW_FESx_QUEUE_TBLR) (x = 1 to 2)) of the output port, the priority also defines the TX queue into which the frame is put.

ETHSW FES port x priority regeneration table high register
(ETHSW_FESx_PRIO_REGENHR) (x = 0 to 2)

Address offset: port 0: 0x200018

Address offset: port 1: 0x210018

Address offset: port 2: 0x220018

Reset value: 0x7654

1514131211109876543210
Res.PCP7[2:0]Res.PCP6[2:0]Res.PCP5[2:0]Res.PCP4[2:0]
rwrwrwrwrwrwrwrwrwrwrwrw

Bit 15 Reserved, must be kept at reset value.

Bits 14:12 PCP7[2:0]: Priority, PCP7

Frames with Priority Code Point 7 get this priority in FES.

Bit 11 Reserved, must be kept at reset value.

Bits 10:8 PCP6[2:0]: Priority, PCP6

Frames with Priority Code Point 6 get this priority in FES.

Bit 7 Reserved, must be kept at reset value.

Bits 6:4 PCP5[2:0]: Priority, PCP5

Frames with Priority Code Point 5 get this priority in FES.

Bit 3 Reserved, must be kept at reset value.

Bits 2:0 PCP4[2:0]: Priority, PCP4

Frames with Priority Code Point 4 get this priority in FES.

ETHSW FES port x TX cut-through enable register (ETHSW_FESx_TX_CTER)
(x = 1 to 2)

Address offset: port 1: 0x21001A

Address offset: port 2: 0x22001A

Reset value: 0x0000

Note: This register does not exist for port 0.

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.CTE7CTE6CTE5CTE4CTE3CTE2CTE1CTE0
rwrwrwrwrwrwrwrw

Bits 15:8 Reserved, must be kept at reset value.

Bit 7 CTE7: Cut-through enable/disable for queue 7

Bit 6 CTE6: Cut-through enable/disable for queue 6

Bit 5 CTE5: Cut-through enable/disable for queue 5

Bit 4 CTE4: Cut-through enable/disable for queue 4

Bit 3 CTE3: Cut-through enable/disable for queue 3

Bit 2 CTE2: Cut-through enable/disable for queue 2

Bit 1 CTE1: Cut-through enable/disable for queue 1

Bit 0 CTE0: Cut-through enable/disable for queue 0

0: Cut-through disabled

1: Cut-through enabled

Cut-through is possible only for Express frames, not for Preemptable frames; it is not allowed to enable Cut-through for Preemptable queues (see ETHSW FES port x TX preemptable traffic selection register 0 (ETHSW_FESx_TX_PREE0R) (x = 1 to 2)) and to enable Cut-through for any queue if the port is in Management mode.

ETHSW FES port x TX preemptable traffic selection register 0
(ETHSW_FESx_TX_PREE0R) (x = 1 to 2)

Address offset: port 1: 0x21001C

Address offset: port 2: 0x22001C

Reset value: 0x0000

Note: This register does not exist for port 0.

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PREE7PREE6PREE5PREE4PREE3PREE2PREE1PREE0
rwrwrwrwrwrwrwrw

Bits 15:8 Reserved, must be kept at reset value.

Bit 7 PREE7: Preemption setting for queue 7

Bit 6 PREE6: Preemption setting for queue 6

Bit 5 PREE5: Preemption setting for queue 5

Bit 4 PREE4: Preemption setting for queue 4

Bit 3 PREE3: Preemption setting for queue 3

Bit 2 PREE2: Preemption setting for queue 2

Bit 1 PREE1: Preemption setting for queue 1

Bit 0 PREE0: Preemption setting for queue 0

0: Express. Traffic from this queue cannot be preempted.

1: Preemptable. Traffic from this queue can be preempted by express traffic.

ETHSW FES port x TX preemptable traffic selection register 1
(ETHSW_FESx_TX_PREE1R) (x = 1 to 2)

Address offset: port 1: 0x21001E

Address offset: port 2: 0x22001E

Reset value: 0x0000

Note: This register does not exist for port 0.

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ADDFRAGSIZE
[1:0]
rwrw

Bits 15:2 Reserved, must be kept at reset value.

Bits 1:0 ADDFRAGSIZE[1:0]: AddFragSize

Number of octets in a fragment that have to be sent before preemption is possible.

This is the minimum size of a non-final fragment (without mCRC).

00: 60 octets

01: 124 octets

10: 188 octets

11: 252 octets

ETHSW FES port x queue table configuration register
(ETHSW_FESx_QUEUE_TBLR) (x = 1 to 2)

Address offset: port 0: 0x200020

Address offset: port 1: 0x210020

Address offset: port 2: 0x220020

Reset value: 0x3322 1100

Note: This register does not exist for port 0.

31302928272625242322212019181716
Res.QUEUE_PRI7[2:0]Res.QUEUE_PRI6[2:0]Res.QUEUE_PRI5[2:0]Res.QUEUE_PRI4[2:0]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.QUEUE_PRI3[2:0]Res.QUEUE_PRI2[2:0]Res.QUEUE_PRI1[2:0]Res.QUEUE_PRI0[2:0]
rwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 Reserved, must be kept at reset value.

Bits 30:28 QUEUE_PRI7[2:0]: Queue for priority 7

Egress frames with priority 7 are put into this TX queue in this output port.

Bit 27 Reserved, must be kept at reset value.

Bits 26:24 QUEUE_PRI6[2:0]: Queue for priority 6

Egress frames with priority 6 are put into this TX queue in this output port.

Bit 23 Reserved, must be kept at reset value.

ETHSW FES port x shaper y configuration register
(ETHSW_FESx_SHAPERyR) (x = 0 to 2)

Address offset: port 0: 0x200030 + 0x2 * y, (y = 0 to 7)
Address offset: port 1: 0x210030 + 0x2 * y, (y = 0 to 7)
Address offset: port 2: 0x220030 + 0x2 * y, (y = 0 to 7)
Reset value: 0xFFFF

1514131211109876543210
ADDEND[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 15:0 ADDEND[15:0]: Addend
The amount of credit added at every time interval of 8 system clocks. The lowest 12 bits of this addend present 1/4096 parts of a credit.

ETHSW FES port x frame size y configuration register
(ETHSW_FESx_FRAMESIZEyR) (x = 0 to 2)

Address offset: port 0: 0x200040 + 0x2 * y, (y = 0 to 7)

Address offset: port 1: 0x210040 + 0x2 * y, (y = 0 to 7)

Address offset: port 2: 0x220040 + 0x2 * y, (y = 0 to 7)

Reset value: 0x07FF

1514131211109876543210
Res.Res.Res.Res.Res.FRAMESIZE[10:0]
rwrwrwrwrwrwrwrwrwrwrw

Bits 15:11 Reserved, must be kept at reset value.

Bits 10:0 FRAMESIZE[10:0]: Max frame size

Maximum frame size for queue 0. Frames exceeding the size configured in this register are dropped.

The value is without Preamble, SFD, VLAN tag, HSR header, PRP trailer, Time trailer, Management trailer and FCS (CRC). Values from 0 to 59 are reserved.

ETHSW FES port x filtering identifier configuration register 0
(ETHSW_FESx_FID_CFG0R) (x = 0 to 2)

Address offset: port 0: 0x200080

Address offset: port 1: 0x210080

Address offset: port 2: 0x220080

Reset value: 0x0000

1514131211109876543210
FWD_ST7[1:0]FWD_ST6[1:0]FWD_ST5[1:0]FWD_ST4[1:0]FWD_ST3[1:0]FWD_ST2[1:0]FWD_ST1[1:0]FWD_ST0[1:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 15:14 FWD_ST7[1:0]: Port Forwarding state for FID 7

Bits 13:12 FWD_ST6[1:0]: Port Forwarding state for FID 6

Bits 11:10 FWD_ST5[1:0]: Port Forwarding state for FID 5

Bits 9:8 FWD_ST4[1:0]: Port Forwarding state for FID 4

Bits 7:6 FWD_ST3[1:0]: Port Forwarding state for FID 3

Bits 5:4 FWD_ST2[1:0]: Port Forwarding state for FID 2

Bits 3:2 FWD_ST1[1:0]: Port Forwarding state for FID 1

Bits 1:0 FWD_ST0[1:0]: Port Forwarding state for FID 0

00: Forwarding. The port learns MAC addresses and forwards data.

01: Learning. The port learns MAC addresses, but does not forward data.

10: Disabled. The port neither learns MAC addresses nor forwards data.

11: Reserved

The port forwarding state "Disabled" in ETHSW FES port x port State register (ETHSW_FESx_PORT_STATER) (x = 0 to 2) overrides this selection.

ETHSW FES port x filtering identifier configuration register 1
(ETHSW_FESx_FID_CFG1R) (x = 0 to 2)

Address offset: port 0: 0x200082

Address offset: port 1: 0x210082

Address offset: port 2: 0x220082

Reset value: 0x0000

1514131211109876543210
FWD_ST15[1:0]FWD_ST14[1:0]FWD_ST13[1:0]FWD_ST12[1:0]FWD_ST11[1:0]FWD_ST10[1:0]FWD_ST9[1:0]FWD_ST8[1:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 15:14 FWD_ST15[1:0]: Port Forwarding state for FID 15

Bits 13:12 FWD_ST14[1:0]: Port Forwarding state for FID 14

Bits 11:10 FWD_ST13[1:0]: Port Forwarding state for FID 13

Bits 9:8 FWD_ST12[1:0]: Port Forwarding state for FID 12

Bits 7:6 FWD_ST11[1:0]: Port Forwarding state for FID 11

Bits 5:4 FWD_ST10[1:0]: Port Forwarding state for FID 10

Bits 3:2 FWD_ST9[1:0]: Port Forwarding state for FID 9

Bits 1:0 FWD_ST8[1:0]: Port Forwarding state for FID 8

ETHSW FES port x filtering identifier configuration register 2
(ETHSW_FESx_FID_CFG2R) (x = 0 to 2)

Address offset: port 0: 0x200084

Address offset: port 1: 0x210084

Address offset: port 2: 0x220084

Reset value: 0x0000

1514131211109876543210
FWD_ST23[1:0]FWD_ST22[1:0]FWD_ST21[1:0]FWD_ST20[1:0]FWD_ST19[1:0]FWD_ST18[1:0]FWD_ST17[1:0]FWD_ST16[1:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 15:14 FWD_ST23[1:0]: Port Forwarding state for FID 23

Bits 13:12 FWD_ST22[1:0]: Port Forwarding state for FID 22

Bits 11:10 FWD_ST21[1:0]: Port Forwarding state for FID 21

Bits 9:8 FWD_ST20[1:0]: Port Forwarding state for FID 20

Bits 7:6 FWD_ST19[1:0]: Port Forwarding state for FID 19

Bits 5:4 FWD_ST18[1:0]: Port Forwarding state for FID 18

Bits 3:2 FWD_ST17[1:0]: Port Forwarding state for FID 17

Bits 1:0 FWD_ST16[1:0]: Port Forwarding state for FID 16

ETHSW FES port x filtering identifier configuration register 3
(ETHSW_FESx_FID_CFG3R) (x = 0 to 2)

Address offset: port 0: 0x200086

Address offset: port 1: 0x210086

Address offset: port 2: 0x220086

Reset value: 0x0000

1514131211109876543210
FWD_ST31[1:0]FWD_ST30[1:0]FWD_ST29[1:0]FWD_ST28[1:0]FWD_ST27[1:0]FWD_ST26[1:0]FWD_ST25[1:0]FWD_ST24[1:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 15:14 FWD_ST31[1:0]: Port Forwarding state for FID 31

Bits 13:12 FWD_ST30[1:0]: Port Forwarding state for FID30

Bits 11:10 FWD_ST29[1:0]: Port Forwarding state for FID 29

Bits 9:8 FWD_ST28[1:0]: Port Forwarding state for FID 28

Bits 7:6 FWD_ST27[1:0]: Port Forwarding state for FID 27

Bits 5:4 FWD_ST26[1:0]: Port Forwarding state for FID 26

Bits 3:2 FWD_ST25[1:0]: Port Forwarding state for FID 25

Bits 1:0 FWD_ST24[1:0]: Port Forwarding state for FID 24

ETHSW FES port x filtering identifier configuration register 4
(ETHSW_FESx_FID_CFG4R) (x = 0 to 2)

Address offset: port 0: 0x200088

Address offset: port 1: 0x210088

Address offset: port 2: 0x220088

Reset value: 0x0000

1514131211109876543210
FWD_ST39[1:0]FWD_ST38[1:0]FWD_ST37[1:0]FWD_ST36[1:0]FWD_ST35[1:0]FWD_ST34[1:0]FWD_ST33[1:0]FWD_ST32[1:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 15:14 FWD_ST39[1:0]: Port Forwarding state for FID 39

Bits 13:12 FWD_ST38[1:0]: Port Forwarding state for FID38

Bits 11:10 FWD_ST37[1:0]: Port Forwarding state for FID 37

Bits 9:8 FWD_ST36[1:0]: Port Forwarding state for FID 36

Bits 7:6 FWD_ST35[1:0]: Port Forwarding state for FID 35

Bits 5:4 FWD_ST34[1:0]: Port Forwarding state for FID 34

Bits 3:2 FWD_ST33[1:0]: Port Forwarding state for FID 33

Bits 1:0 FWD_ST32[1:0]: Port Forwarding state for FID 32

ETHSW FES port x filtering identifier configuration register 5
(ETHSW_FESx_FID_CFG5R) (x = 0 to 2)

Address offset: port 0: 0x20008A

Address offset: port 1: 0x21008A

Address offset: port 2: 0x22008A

Reset value: 0x0000

1514131211109876543210
FWD_ST47[1:0]FWD_ST46[1:0]FWD_ST45[1:0]FWD_ST44[1:0]FWD_ST43[1:0]FWD_ST42[1:0]FWD_ST41[1:0]FWD_ST40[1:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 15:14 FWD_ST47[1:0]: Port Forwarding state for FID 47

Bits 13:12 FWD_ST46[1:0]: Port Forwarding state for FID 46

Bits 11:10 FWD_ST45[1:0]: Port Forwarding state for FID 45

Bits 9:8 FWD_ST44[1:0]: Port Forwarding state for FID 44

Bits 7:6 FWD_ST43[1:0]: Port Forwarding state for FID 43

Bits 5:4 FWD_ST42[1:0]: Port Forwarding state for FID 42

Bits 3:2 FWD_ST41[1:0]: Port Forwarding state for FID 41

Bits 1:0 FWD_ST40[1:0]: Port Forwarding state for FID 40

ETHSW FES port x filtering identifier configuration register 6
(ETHSW_FESx_FID_CFG6R) (x = 0 to 2)

Address offset: port 0: 0x20008C

Address offset: port 1: 0x21008C

Address offset: port 2: 0x22008C

Reset value: 0x0000

1514131211109876543210
FWD_ST55[1:0]FWD_ST54[1:0]FWD_ST53[1:0]FWD_ST52[1:0]FWD_ST51[1:0]FWD_ST50[1:0]FWD_ST49[1:0]FWD_ST48[1:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 15:14 FWD_ST55[1:0]: Port Forwarding state for FID 55

Bits 13:12 FWD_ST54[1:0]: Port Forwarding state for FID 54

Bits 11:10 FWD_ST53[1:0]: Port Forwarding state for FID 53

Bits 9:8 FWD_ST52[1:0]: Port Forwarding state for FID 52

Bits 7:6 FWD_ST51[1:0]: Port Forwarding state for FID 51

Bits 5:4 FWD_ST50[1:0]: Port Forwarding state for FID 50

Bits 3:2 FWD_ST49[1:0]: Port Forwarding state for FID 49

Bits 1:0 FWD_ST48[1:0]: Port Forwarding state for FID 48

ETHSW FES port x filtering identifier configuration register 7
(ETHSW_FESx_FID_CFG7R) (x = 0 to 2)

Address offset: port 0: 0x20008E

Address offset: port 1: 0x21008E

Address offset: port 2: 0x22008E

Reset value: 0x0000

1514131211109876543210
FWD_ST63[1:0]FWD_ST62[1:0]FWD_ST61[1:0]FWD_ST60[1:0]FWD_ST59[1:0]FWD_ST58[1:0]FWD_ST57[1:0]FWD_ST56[1:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

ETHSW FES port x buffer fill level capture register
(ETHSW_FESx_FL_CAPTR) (x = 0 to 2)

Address offset: port 0: 0x2000C0

Address offset: port 1: 0x2100C0

Address offset: port 2: 0x2200C0

Reset value: 0x0000

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CAPTURE
rt_w1

Bits 15:1 Reserved, must be kept at reset value.

ST logo
ST logo

Bit 0 CAPTURE: Capture

Writing 1 to this bit captures the stored minimum and maximum queue fill levels and writes the values to the registers:

FES clears this bit when the captured values can be read from the registers.

ETHSW FES port x buffer fill level sample counter register
(ETHSW_FESx_FL_SMPL_CNTR) (x = 0 to 2)

Address offset: port 0: 0x2000C2

Address offset: port 1: 0x2100C2

Address offset: port 2: 0x2200C2

Reset value: 0x0000

1514131211109876543210
FL_SAMPLE_CNT[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 15:0 FL_SAMPLE_CNT[15:0]: Sample counter

Number of scheduler cycles since the last capture.

This is the number of queue fill level samples whose minimum and maximum values are stored in ETHSW FES port x minimum fill level queue y register (ETHSW_FESx_FL_Qy_MINR) (x = 0 to 2) and ETHSW FES port x maximum fill level queue y register (ETHSW_FESx_FL_Qy_MAXR) (x = 0 to 2).

This value saturates to 0xFFFF.

ETHSW FES port x minimum fill level queue y register
(ETHSW_FESx_FL_Qy_MINR) (x = 0 to 2)

Address offset: port 0: 0x2000E0 + 0x2 * y, (y = 0 to 7)

Address offset: port 1: 0x2100E0 + 0x2 * y, (y = 0 to 7)

Address offset: port 2: 0x2200E0 + 0x2 * y, (y = 0 to 7)

Reset value: 0x0000

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FL_QY_MIN[4:0]
rwrwrwrwrw

Bits 15:5 Reserved, must be kept at reset value.

Bits 4:0 FL_QY_MIN[4:0]: Minimum fill level for queue y

The smallest value of the fill level samples since the last capture.

The fill level is measured only on scheduler cycle start. The value in this register is the minimum of those measurements since the last capture.

It is updated after writing 1 to CAPTURE bit in ETHSW FES port x buffer fill level capture register (ETHSW_FESx_FL_CAPTR) (x = 0 to 2).

ETHSW FES port x maximum fill level queue y register
(ETHSW_FESx_FL_Qy_MAXR) (x = 0 to 2)

Address offset: port 0: 0x2000F0 + 0x2 * y, (y = 0 to 7)

Address offset: port 1: 0x2100F0 + 0x2 * y, (y = 0 to 7)

Address offset: port 2: 0x2200F0 + 0x2 * y, (y = 0 to 7)

Reset value: 0x0000

1514131211109876543210
ResResResResResResResResResResResFL_QY_MAX[4:0]
rwrwrwrwrw

Bits 15:5 Reserved, must be kept at reset value.

Bits 4:0 FL_QY_MAX[4:0]: Maximum fill level for queue y

The biggest value of the fill level samples since the last capture.

The fill level is measured only on scheduler cycle start. The value in this register is the maximum of those measurements, since the last capture.

It is updated after writing 1 to CAPTURE bit in ETHSW FES port x buffer fill level capture register (ETHSW_FESx_FL_CAPTR) (x = 0 to 2).

ETHSW FES PTP RX sync delay subnanosecond register
(ETHSW_FESx_PTP_RX_SYNCD_SNSR) (x = 0 to 2)

Address offset: port 0: 0x204000

Address offset: port 1: 0x214000

Address offset: port 2: 0x224000

Reset value: 0x0000

1514131211109876543210
PTP_RX_SYNC_DELAY_SUBNS[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 15:0 PTP_RX_SYNC_DELAY_SUBNS[15:0]: RX Sync delay, subnanoseconds

Subnanoseconds part of the Receive delay compensation for PTP Sync messages, presented in 2⁻¹⁶ parts of a nanosecond. This value is added to the correction field of every received Sync message in addition to residence time (the time the frame spent inside FES) and TX delay.

This compensation consists of the delay from device input to FES input (it includes for example the PHY delay and the delay caused by any interface adapters) and the link delay for peer-to-peer transparent clock. For end-to-end transparent clock, this register must be set to the same value as ETHSW FES PTP RX event delay subnanosecond register (ETHSW_FESx_PTP_RX_EVENTD_SNSR) (x = 0 to 2).

The value in this register is taken into use after writing to ETHSW FES PTP RX sync delay nanosecond low register (ETHSW_FESx_PTP_RX_SYNCD_NSLR) (x = 0 to 2).

ETHSW FES PTP RX sync delay nanosecond low register (ETHSW_FESx_PTP_RX_SYNCD_NSLR) (x = 0 to 2)

Address offset: port 0: 0x204002

Address offset: port 1: 0x214002

Address offset: port 2: 0x224002

Reset value: 0x0000

1514131211109876543210
PTP_RX_SYNC_DELAY_NSL[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 15:0 PTP_RX_SYNC_DELAY_NSL[15:0]: RX Sync delay, nanoseconds low part

Lowest 16 bits of the nanoseconds part of the Receive delay compensation for PTP Sync messages. This value is added to the correction field of every received Sync message in addition to residence time (the time the frame spent inside FES) and TX delay.

This compensation consists of the delay from device input to FES input (it includes for example the PHY delay and the delay caused by any interface adapters) and the link delay for peer-to-peer transparent clock. For end-to-end transparent clock, this register must be set to the same value as ETHSW FES PTP RX event delay nanosecond register (ETHSW_FESx_PTP_RX_EVENTD_NSR) (x = 0 to 2).

The value in this register is taken into use after writing to ETHSW FES PTP RX sync delay subnanosecond register (ETHSW_FESx_PTP_RX_SYNCD_SNSR) (x = 0 to 2) and ETHSW FES PTP RX sync delay nanosecond high register (ETHSW_FESx_PTP_RX_SYNCD_NSHR) (x = 0 to 2).

ETHSW FES PTP RX sync delay nanosecond high register
(ETHSW_FESx_PTP_RX_SYNCDELAY_NSHR) (x = 0 to 2)

Address offset: port 0: 0x204004

Address offset: port 1: 0x214004

Address offset: port 2: 0x224004

Reset value: 0x0000

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PTP_RX_SYNC_DELAY_NSH[7:0]
rwrwrwrwrwrwrwrw

Bits 15:8 Reserved, must be kept at reset value.

Bits 7:0 PTP_RX_SYNC_DELAY_NSH[7:0]: RX Sync delay, nanoseconds high part

Highest 8 bits of the nanoseconds part of the Receive delay compensation for PTP Sync messages. This value is added to the correction field of every received Sync message in addition to residence time (the time the frame spent inside FES) and TX delay.

This compensation consists of the delay from device input to FES input (it includes for example the PHY delay and the delay caused by any interface adapters) and the link delay for peer-to-peer transparent clock. For end-to-end transparent clock, this register must be set to 0.

The value in this register is taken into use after writing to ETHSW FES PTP RX sync delay nanosecond low register (ETHSW_FESx_PTP_RX_SYNCDELAY_NSLR) (x = 0 to 2).

ETHSW FES PTP RX event delay subnanosecond register
(ETHSW_FESx_PTP_RX_EVENTDELAY_SNSR) (x = 0 to 2)

Address offset: port 0: 0x204008

Address offset: port 1: 0x214008

Address offset: port 2: 0x224008

Reset value: 0x0000

1514131211109876543210
PTP_RX_EVENT_DELAY_SNS[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 15:0 PTP_RX_EVENT_DELAY_SNS[15:0]: RX Event delay, subnanoseconds

Presented in 2⁻¹⁶ parts of a nanosecond.

Subnanoseconds part of the Receive delay compensation for all the PTP Event messages except Sync messages (which have an own compensation value).

This value is added to the correction field of received Event messages (except for Sync messages) in addition to residence time (the time the frame spent inside FES) and TX delay.

This compensation is the delay from device input to FES input (it includes for example the PHY delay and the delay caused by any interface adapters).

The value in this register is taken into use after writing to ETHSW FES PTP RX event delay nanosecond register (ETHSW_FESx_PTP_RX_EVENTDELAY_NSR) (x = 0 to 2).

ETHSW FES PTP RX event delay nanosecond register
(ETHSW_FESx_PTP_RX_EVENTD_NSR) (x = 0 to 2)

Address offset: port 0: 0x20400A

Address offset: port 1: 0x21400A

Address offset: port 2: 0x22400A

Reset value: 0x0000

1514131211109876543210
PTP_RX_EVENT_DELAY_NS[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 15:0 PTP_RX_EVENT_DELAY_NS[15:0]: RX Event delay, nanoseconds

Nanoseconds part of the Receive delay compensation for all the PTP Event messages except Sync messages (which have an own compensation value).

This value is added to the correction field of received Event messages (except for Sync messages) in addition to residence time (the time the frame spent inside FES) and TX delay.

This compensation is the delay from device input to FES input (it includes for example the PHY delay and the delay caused by any interface adapters).

Write access to this register takes into use the value in ETHSW FES PTP RX event delay subnanosecond register (ETHSW_FESx_PTP_RX_EVENTD_SNSR) (x = 0 to 2).

ETHSW FES PTP TX event delay subnanosecond register
(ETHSW_FESx_PTP_TX_EVENTD_SNSR) (x = 0 to 2)

Address offset: port 0: 0x204010

Address offset: port 1: 0x214010

Address offset: port 2: 0x224010

Reset value: 0x0000

1514131211109876543210
PTP_TX_EVENT_DELAY_SNS[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 15:0 PTP_TX_EVENT_DELAY_SNS[15:0]: TX Event delay, subnanoseconds

Presented in 2⁻¹⁶ parts of a nanosecond.

Subnanoseconds part of the Transmit delay compensation for all the PTP Event messages.

This value is added to the correction field of transmitted Event messages in addition to residence time (the time the frame spent inside FES) and RX delay.

This compensation is the delay from FES output to device output (it includes for example the PHY delay and the delay caused by any interface adapters).

The value in this register is taken into use after writing to ETHSW FES PTP TX event delay nanosecond register (ETHSW_FESx_PTP_TX_EVENTD_NSR) (x = 0 to 2).

ETHSW FES PTP TX event delay nanosecond register
(ETHSW_FESx_PTP_TX_EVENTD_NSR) (x = 0 to 2)

Address offset: port 0: 0x204012

Address offset: port 1: 0x214012

Address offset: port 2: 0x224012

Reset value: 0x0000

1514131211109876543210
PTP_TX_EVENT_DELAY_NS[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 15:0 PTP_TX_EVENT_DELAY_NS[15:0]: TX Event delay, nanoseconds

Nanoseconds part of the Transmit delay compensation for all the PTP Event messages.

This value is added to the correction field of transmitted Event messages in addition to residence time (the time the frame spent inside FES) and RX delay.

This compensation is the delay from FES output to device output (it includes for example the PHY delay and the delay caused by any interface adapters).

Write access to this register takes into use the value in ETHSW FES PTP TX event delay subnanosecond register (ETHSW_FESx_PTP_TX_EVENTD_SNSR) (x = 0 to 2).

ETHSW FES port x counter control register (ETHSW_FESx_CNT_CTRLR)
(x = 0 to 2)

Address offset: port 0: 0x206000

Address offset: port 1: 0x216000

Address offset: port 2: 0x226000

Reset value: 0x0000

1514131211109876543210
Res.Res.Res.CPT_CNT_GRP5Res.CPT_CNT_GRP3Res.CPT_CNT_GRP1Res.Res.Res.Res.Res.Res.Res.CAPTURE
rwrwrwrw

Bits 15:13 Reserved, must be kept at reset value.

Bit 12 CPT_CNT_GRP5: Capture counter group 5

0: Capture counter TX_OVERRUN. See Table 996 for details.

1: Do not capture above mentioned counter.

Bit 11 Reserved, must be kept at reset value.

Bit 10 CPT_CNT_GRP3: Capture counter group 3

0: Capture counters RX_PREEMPT_SMD_ERR, RX_PREEMPT_ASS_ERR, RX_PREEMPT_ASS_OK, RX_PREEMPT_FRAG_CNT, TX_PREEMPT_FRAG_CNT. See Table 996 for details.

1: Do not capture above mentioned counters.

Bit 9 Reserved, must be kept at reset value.

Bit 8 CPT_CNT_GRP1: Capture counter group 1

0: Capture counters RX_GOOD_OCTETS, RX_BAD_OCTETS, RX_UNICAST, RX_BROADCAST, RX_MULTICAST, RX_UNDERSIZE, RX_FRAGMENTS, RX_OVERSIZE, RX_JABBER, RX_ERR, RX_CRC, RX_64, RX_65_127, RX_128_255, RX_256_511, RX_512_1023, RX_1024_1536, FULL_DROP, RX_POLICED, TX_OCTETS, TX_UNICAST, TX_BROADCAST, TX_MULTICAST, Q_DROP, EARLY_DROP.

See Table 996 for details.

1: Do not capture above mentioned counters.

Bits 7:1 Reserved, must be kept at reset value.

Bit 0 CAPTURE: Capture

Writing 1 to this bit captures the selected counters. After the capture, the counters are reset. The result is that the user can read the number of events that happened between two successive captures. Which registers are captured is selected using the bits (12:8) of this register. FES clears this bit when the counters can be read using the indirect access (ETHSW FES port x counter command register (ETHSW_FESx_CNT_CMDR) (x = 0 to 2)).

ETHSW FES port x counter command register (ETHSW_FESx_CNT_CMDR)
(x = 0 to 2)

Address offset: port 0: 0x206002

Address offset: port 1: 0x216002

Address offset: port 2: 0x226002

Reset value: 0x0000

1514131211109876543210
TRANSFERRes.Res.Res.Res.Res.Res.Res.Res.Res.CNT_NUM[5:0]
rt_w1rwrwrwrwrwrw

Bit 15 TRANSFER: Transfer

This bit controls the indirect access for reading the captured values of the counters.

Writing 1 to this bit makes FES write the captured counter value of the selected counter (in Counter number bits) to ETHSW FES port x counter value low register (ETHSW_FESx_CNT_VAL_LOR) (x = 0 to 2) and ETHSW FES port x counter value high register (ETHSW_FESx_CNT_VAL_HIR) (x = 0 to 2).

FES clears this bit when the value can be read from the registers.

Bits 14:6 Reserved, must be kept at reset value.

Bits 5:0 CNT_NUM[5:0]: Counter number

This bitfield controls the indirect access for reading the captured values of the counters.

It contains the number of the counter whose captured value has to be written to ETHSW FES port x counter value low register (ETHSW_FESx_CNT_VAL_LOR) (x = 0 to 2) and ETHSW FES port x counter value high register (ETHSW_FESx_CNT_VAL_HIR) (x = 0 to 2).

See Table 996 for details.

It is not allowed to use reserved counter numbers.

ETHSW FES port x counter value low register (ETHSW_FESx_CNT_VAL_LOR)
(x = 0 to 2)

Address offset: port 0: 0x206008
Address offset: port 1: 0x216008
Address offset: port 2: 0x226008
Reset value: 0x0000

Register layout diagram for ETHSW_FESx_CNT_VAL_LOR showing bits 15 to 0, all labeled as rw.
1514131211109876543210
CNT_VAL_LO[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
Register layout diagram for ETHSW_FESx_CNT_VAL_LOR showing bits 15 to 0, all labeled as rw.

Bits 15:0 CNT_VAL_LO[15:0]: Counter value Low
Bits[15:0] of the counter value.
The value in this register is updated after writing 1 to the TRANFER bit in ETHSW FES port x counter command register (ETHSW_FESx_CNT_CMDR) (x = 0 to 2).

ETHSW FES port x counter value high register (ETHSW_FESx_CNT_VAL_HIR)
(x = 0 to 2)

Address offset: port 0: 0x20600A
Address offset: port 1: 0x21600A
Address offset: port 2: 0x22600A
Reset value: 0x0000

Register layout diagram for ETHSW_FESx_CNT_VAL_HIR showing bits 15 to 0, all labeled as rw.
1514131211109876543210
CNT_VAL_HI[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
Register layout diagram for ETHSW_FESx_CNT_VAL_HIR showing bits 15 to 0, all labeled as rw.

Bits 15:0 CNT_VAL_HI[15:0]: Counter value High
Bits[31:16] of the counter value.
The value in this register is updated after writing 1 to the TRANFER bit in ETHSW FES port x counter command register (ETHSW_FESx_CNT_CMDR) (x = 0 to 2).

Table 996. FES counters

Counter numberCounter description
0RX_GOOD_OCTETS
Number of octets in good frames received. Preamble and SFD are not counted to the frame length. FCS (CRC) is counted.
On preemptable ports (port 1 and port 2), SMD, Fragment count and mCRC are not counted. The mPackets with SMD-V or SMD-R are not counted at all. If frame preemption is disabled, mPackets with other SMDs than SMD-E are not recognized as Ethernet frames and therefore not counted.
Frames are considered as good frames if they have valid CRC, there was no RX error during the receiving and their length is 64 to 1536 octets (70 to 1536 with HSR).
If a frame is not considered as a good frame, it is considered as a bad frame.
The counter saturates to 0x FFFF FFFF.
ST logo
ST logo

Table 996. FES counters (continued)

Counter numberCounter description
1

RX_BAD_OCTETS

Number of received octets in bad Ethernet frames. Preamble and SFD are not counted to frame length. FCS (CRC) is counted.

Frames are considered as bad frames if they do not have a valid CRC, an RX error happened during reception or their length is under 64 octets (under 70 with HSR/PRP) or over 1536 octets. If a frame is not considered as a good frame, it is considered as a bad frame. If frame preemption is enabled with the generic PREEMPTABLE_PORTS, SMD, Fragment count and mCRC are not counted. Fragments of preempted frames are not counted separately; the whole frame is bad if one fragment is bad. The mPackets with SMD-V or SMD-R are not counted at all. If frame preemption is disabled, mPackets with other SMDs than SMD-E are not recognized as Ethernet frames and therefore not counted.

The counter saturates to 0xFFFF FFFF.

2

RX_UNICAST

Number of received good unicast frames. Fragments caused by frame preemption are not counted as separate frames. mPackets with SMD-V or SMD-R are not counted. The counter saturates to 0xFFFF FFFF.

3

RX_BROADCAST

Number of received good broadcast frames. Fragments caused by frame preemption are not counted as separate frames. The counter saturates to 0xFFFF FFFF.

4

RX_MULTICAST

Number of received good multicast frames. Does not include broadcast frames counted in RX_BROADCAST_L/H. Fragments caused by frame preemption are not counted as separate frames. The counter saturates to 0xFFFF FFFF.

5

RX_UNDERSIZE

Number of received frames with valid CRC and under 64 octets in length (under 70 octets with HSR/PRP). Undersized frames are considered as bad frames, and they are not forwarded. The counter saturates to 0xFFFF FFFF.

6

RX_FRAGMENTS

Number of received frames with invalid CRC and length under 64 octets. Fragments are considered as bad frames, and they are not forwarded. The counter saturates to 0xFFFF FFFF.

7

RX_OVERSIZE

Number of received frames with valid CRC and length over 1536 octets. Oversized frames are considered as bad frames, and they are not forwarded. The counter saturates to 0xFFFF FFFF.

8

RX_JABBER

Number of received frames with invalid CRC and length over 1536 octets. Jabber frames are considered as bad frames, and they are not forwarded. The counter saturates to 0xFFFF FFFF.

9

RX_ERR

Number of received frames with an error, with size from 64 to 1536 octets, with or without a valid CRC. Includes frames with non-integral number of bytes and those received with RX Error signal from the PHY. RX Erroneous frames are considered as bad frames, and they are not forwarded. The counter saturates to 0xFFFF FFFF.

10

RX_CRC Error

Number of received frames with size from 64 to 1536 octets and without a valid CRC, but not counted in RX_ERR_L/H. CRC Erroneous frames are considered as bad frames, and they are not forwarded. The counter saturates to 0xFFFF FFFF.

Table 996. FES counters (continued)

Counter numberCounter description
11FULL_DROP: Memory Full Drop
Number of frames dropped during reception because there was no room for the incoming frame. Fragments caused by frame preemption are not counted as separate frames. The counter saturates to 0xFFFF FFFF.
12RX_POLICED
Number of frames received that were policed because the input rate limit was exceeded. The counter counts also frames that would have been dropped anyway, and frames still forwarded because of management trailer. Fragments caused by frame preemption are not counted as separate frames. The counter saturates to 0xFFFF FFFF.
13TX_OCTETS
Total number of octets in frames transmitted. Preamble and SFD (and SMD, Fragment count and mCRC of preemptable frame) are not counted to the frame length. FCS (CRC) is counted. mPackets with SMD-R or SMD-V are not counted. The counter saturates to 0xFFFF FFFF.
14TX_UNICAST
Number of transmitted unicast frames. Fragments caused by frame preemption are not counted as separate frames. mPackets with SMD-R or SMD-V are not counted. The counter saturates to 0xFFFF FFFF.
15TX_BROADCAST
Number of transmitted broadcast frames. Fragments caused by frame preemption are not counted as separate frames. The counter saturates to 0xFFFF FFFF.
16TX_MULTICAST
Number of transmitted multicast frames. Does not include broadcast frames counted in TX Broadcast counter. Fragments caused by frame preemption are not counted as separate frames. The counter saturates to 0xFFFF FFFF.
17Q_DROP: Queue Drop
Number of frames dropped by this output port because TX queue was full, or the frame was too big for the queue (see FRAMESIZE registers). Note that a frame can be forwarded to multiple ports, so one single incoming frame can increment the counter for more than one port. The counter saturates to 0xFFFF FFFF.
18EARLY_DROP: Early Frame Drop
Number of frames dropped by this output port because internal memory was becoming full. Note that a frame can be forwarded to multiple ports, so one single incoming frame can increment the counter for more than one port. The counter saturates to 0xFFFF FFFF.
19RX_64: RX 64 Octets
Number of received frames with size of exactly 64 octets, including frames with errors. Fragments caused by frame preemption are not counted as separate frames. mPackets with SMD-R or SMD-V are not counted. The counter saturates to 0xFFFF FFFF.
20RX_65_127: RX 65 to 127 Octets
Number of received frames with size of 65 to 127 octets, including frames with errors. Fragments caused by frame preemption are not counted as separate frames. The counter saturates to 0xFFFF FFFF.
21RX_128_255: RX 128 to 255 Octets
Number of received frames with size of 128 to 255 octets, including frames with errors. Fragments caused by frame preemption are not counted as separate frames. The counter saturates to 0xFFFF FFFF.

Table 996. FES counters (continued)

Counter numberCounter description
22RX_256_511: RX 256 to 511 Octets
Number of received frames with size of 256 to 511 octets, including frames with errors. Fragments caused by frame preemption are not counted as separate frames. The counter saturates to 0xFFFF FFFF.
23RX_512_1023: RX 512 to 1023 Octets
Number of received frames with size of 512 to 1023 octets, including frames with errors. Fragments caused by frame preemption are not counted as separate frames. The counter saturates to 0xFFFF FFFF.
24RX_1024_1536: RX 1024 to 1536 Octets
Number of received frames with size of 1024 to 1536 octets, including frames with errors. Fragments caused by frame preemption are not counted as separate frames. The counter saturates to 0xFFFF FFFF.
25 to 27Reserved
28RX_PREEMPT_SMD_ERR: RX SMD Error
Number of fragments received with invalid SMD or with SMD-C when there was no preempted frame in progress. The counter saturates to 0xFFFF FFFF.
Note: This counter number is reserved for Port 0.
29RX_PREEMPT_ASS_ERR: RX Reassembly Error
Number of preemptable frame reassembly errors. The counter saturates to 0xFFFF FFFF.
Note: This counter number is reserved for Port 0.
30RX_PREEMPT_ASS_OK: RX Reassembly OK
Number of successfully reassembled preempted frames. The counter saturates to 0xFFFF FFFF.
Note: This counter number is reserved for Port 0.
31RX_PREEMPT_FRAG_CNT: RX Preemption Extra Fragments
Number of extra fragments received that were caused by preemption. The counter saturates to 0xFFFF FFFF.
Note: This counter number is reserved for Port 0.
32TX_PREEMPT_FRAG_CNT: TX Preemption Fragment Count
Number of extra fragments sent because of preemption.
The counter saturates to 0xFFFF FFFF.
Note: This counter number is reserved for Port 0.
33 to 47Reserved
48TX_OVERRUN: TX Overrun
Number of gate close events that happened while there was ongoing transmission. The counter saturates to 0xFFFF FFFF.

Note: FES does not forward frames whose length is more than 1536 octets or under 64 octets. Frames which came in with a VLAN tag and whose length was under 68 octets are padded to 64 octets when sent out without the VLAN tag.

ETHSW FES port x IPO command register (ETHSW_FESx_IPO_CMDR)
(x = 0 to 2)

Address offset: port 0: 0x208000

Address offset: port 1: 0x218000

Address offset: port 2: 0x228000

Reset value: 0x0000

1514131211109876543210
TRANSFERRD_WRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.IPO_FIL_NUM[3:0]
rt_w1rwrwrwrwrw

Bit 15 TRANSFER: Transfer

Writing 1 to this bit makes FES read or write (depending on the RD_WR bit) the selected IPO filter. FES clears this bit when the transfer is complete.

Bit 14 RD_WR: Read/write

0: Read from IPO filter to registers:

1: Write from registers (see above) to IPO filter.

Bits 13:4 Reserved, must be kept at reset value.

Bits 3:0 IPO_FIL_NUM[3:0]: IPO Filter Number

The number of the IPO filter that is read or written.

ETHSW FES port x IPO filter configuration register 0
(ETHSW_FESx_ETH_ADDR_CFG0R) (x = 0 to 2)

Address offset: port 0: 0x208010

Address offset: port 1: 0x218010

Address offset: port 2: 0x228010

Reset value: 0x0000

1514131211109876543210
NEW_PRI_LSBPRES_PRINEW_PRI_MSB[1:0]Res.Res.POL_PRIRes.CMP_LENGTH[5:0]SRC_DST_MATCHENABLE
rwrwrwrwrwrwrwrwrwrwrwrwrw

Bit 15 NEW_PRI_LSB: New priority, LSB

If Preserve Priority bit = 0, the frame priority is set to the value in New priority bits. It overrides the priority defined by PCP.

In case of two IPO matches (source address match and destination address match), the information is taken from the second match.

Bit 14 PRES_PRI: Preserve priority

0: Set the frame priority to the value in New priority bits.

1: Do not alter the frame priority

In case of two IPO matches (source address match and destination address match), the information is taken from the second match.

Bits 13:12 NEW_PRI_MSB[1:0]: New priority, MSBs

If Preserve Priority bit = 0, the frame priority is set to this value. It overrides the priority defined by PCP.

In case of two IPO matches (source address match and destination address match), the information is taken from the second match.

Bits 11:10 Reserved, must be kept at reset value.

Bit 9 POL_PRI: Policer priority

0: Normal Policer priority

1: Low Policer priority, frames with lower policer priority use only the upper half of the token buckets

If Policer configuration bit = 1 in ETHSW FES general control register (ETHSW_FES_GEN_CTRLR) (Policing is not based on IPO), this bit has to be 0.

In case of two IPO matches (source address match and destination address match), the information is taken from the first match.

Bit 8 Reserved, must be kept at reset value.

Bits 7:2 CMP_LENGTH[5:0]: Compared Length

Defines how many bits from the start of the MAC addresses of the incoming frames are compared to the value in registers from ETHSW FES port x ethernet address part 0 register (ETHSW_FESx_ETH_ADDR_0R) (x = 0 to 2) to ETHSW FES port x ethernet address part 2 register (ETHSW_FESx_ETH_ADDR_2R) (x = 0 to 2). If the value is 48, the whole MAC address is compared. With value 0, every frame matches. With value 1, only the unicast/multicast bit is compared if Compare Order (see ETHSW FES port x IPO filter configuration register 1 (ETHSW_FESx_ETH_ADDR_CFG1R) (x = 0 to 2)) = 0. Values over 48 are reserved.

Bit 1 SRC_DST_MATCH: Source/Destination Match

Defines whether to compare the address in registers from ETHSW FES port x ethernet address part 0 register (ETHSW_FESx_ETH_ADDR_0R) (x = 0 to 2) to ETHSW FES port x ethernet address part 2 register (ETHSW_FESx_ETH_ADDR_2R) (x = 0 to 2) to the source or to the destination MAC address of the incoming frame.

0: Match to destination address

1: Match to source address

Bit 0 ENABLE: Enable

0: Rule disabled. All the other settings for this rule have no effect.

1: Rule enabled

ETHSW FES port x forward allow register
(ETHSW_FESx_ETH_ADDR_FWD_ALLOWR) (x = 0 to 2)

Address offset: port 0: 0x208012

Address offset: port 1: 0x218012

Address offset: port 2: 0x228012

Reset value: 0x0000

1514131211109876543210
ResResResResResResResResResResResResResFWD_ALLOW_MSK[2:0]
rwrwrw

Bits 15:3 Reserved, must be kept at reset value.

Bits 2:0 FWD_ALLOW_MSK[2:0]: Forward allow mask

Defines to which ports the matching frames are allowed to be forwarded.

Bit 0 corresponds to port 0, bit 1 corresponds to port 1, bit 2 corresponds to port 2.

0: Forwarding is not allowed to this port

1: Forwarding is allowed to this port.

ETHSW FES port x forward mirror register
(ETHSW_FESx_ETH_ADDR_FWD_MIRRORR) (x = 0 to 2)

Address offset: port 0: 0x208014

Address offset: port 1: 0x218014

Address offset: port 2: 0x228014

Reset value: 0x0000

1514131211109876543210
ResResResResResResResResResResResResResFWD_MIRROR_MSK[2:0]
rwrwrw

Bits 15:3 Reserved, must be kept at reset value.

Bits 2:0 FWD_MIRROR_MSK[2:0]: Forward mirror mask

Defines to which ports the matching frames are mirrored.

Bit 0 corresponds to port 0, bit 1 corresponds to port 1, bit 2 corresponds to port 2.

0: Frame is not mirrored to this port

1: Frame is mirrored to this port.

ETHSW FES port x IPO filter configuration register 1
(ETHSW_FESx_ETH_ADDR_CFG1R) (x = 0 to 2)

Address offset: port 0: 0x208016

Address offset: port 1: 0x218016

Address offset: port 2: 0x228016

Reset value: 0x0000

1514131211109876543210
CT_DISCMP_ORDERRes.IPO_MARKRes.Res.Res.Res.Res.POLICER[6:0]
rwrwrwrwrwrwrwrwrwrw

Bit 15 CT_DIS: Cut-Through disable

0: Cut-through is possible for the frame if all the other requirements for cut-through forwarding are met.

1: Cut-through is disabled for the matching frames.

In case of two IPO matches (source address match and destination address match), the information is taken from the second match.

Cut-through disable is typically used for PTP event message (Sync, Delay_Req, Pdelay_Req and Pdelay_Resp) because the correctionField is not modified when the frame is Cut-through.

Bit 14 CMP_ORDER: Compare Order

Defines the bit order of the Compared Length (see bits (7:2) in ETHSW FES port x IPO filter configuration register 0 (ETHSW_FESx_ETH_ADDR_CFG0R) (x = 0 to 2)).

0: The order is the order in which bits come from the line, that is the highest byte first, but the lowest bit of the byte first.

1: The order is the highest byte first and the highest bit of the byte first.

Note that this setting has no effect if the Compared Length is divisible by eight.

Bit 13 Reserved, must be kept at reset value.

Bit 12 IPO_MARK: IPO Mark

If this bit is set, bit 12 in the Management Trailer (and DMA RX Descriptor) is set for matching frames.

In case of two IPO matches (source address match and destination address match), the bit in the trailer is set if this bit is set in either of the matches

Bits 11:7 Reserved, must be kept at reset value.

Bits 6:0 POLICER[6:0]: Policer

The number of the policer that is used to measure and police matching frames. If Policer configuration bit = 1 in ETHSW FES general control register (ETHSW_FES_GEN_CTRLR) (Policing is not based on IPO), these bits have to be 0.

In case of two IPO matches (source address match and destination address match), the information is taken from the first match.

ETHSW FES port x ethernet address part 0 register
(ETHSW_FESx_ETH_ADDR_0R) (x = 0 to 2)

Address offset: port 0: 0x208018

Address offset: port 1: 0x218018

Address offset: port 2: 0x228018

Reset value: 0x0000

1514131211109876543210
OCTET_2[7:0]OCTET_1[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 15:8 OCTET_2[7:0]: 2nd octet

2nd octet (xx:XX:xx:xx:xx:xx)

Bits 7:0 OCTET_1[7:0]: 1st octet

1st octet (XX:xx:xx:xx:xx:xx)

ETHSW FES port x ethernet address part 1 register
(ETHSW_FESx_ETH_ADDR_1R) (x = 0 to 2)

Address offset: port 0: 0x20801A

Address offset: port 1: 0x21801A

Address offset: port 2: 0x22801A

Reset value: 0x0000

1514131211109876543210
OCTET_4[7:0]OCTET_3[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 15:8 OCTET_4[7:0]: 4th octet
4th octet (xx:xx:xx:XX:xx:xx)

Bits 7:0 OCTET_3[7:0]: 3rd octet
3rd octet (xx:xx:XX:xx:xx:xx)

ETHSW FES port x ethernet address part 2 register
(ETHSW_FESx_ETH_ADDR_2R) (x = 0 to 2)

Address offset: port 0: 0x20801C

Address offset: port 1: 0x21801C

Address offset: port 2: 0x22801C

Reset value: 0x0000

1514131211109876543210
OCTET_6[7:0]OCTET_5[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 15:8 OCTET_6[7:0]: 6th octet
6th octet (xx:xx:xx:xx:xx:XX)

Bits 7:0 OCTET_5[7:0]: 5th octet
5th octet (xx:xx:xx:xx:XX:xx)

ETHSW FES IP core identification register (ETHSW_FES_IPC_IDR)

Address offset: 0x800000

Reset value: 0x0000 4000

31302928272625242322212019181716
DEV_ID[23:8]
rrrrrrrrrrrrrrrr
1514131211109876543210
DEV_ID[7:0]Res.Res.Res.Res.Res.Res.Res.Res.
rrrrrrrr

Bits 31:8 DEV_ID[23:0]: Device ID
0x000040: FES

Bits 7:0 Reserved, must be kept at reset value.

ETHSW FES configuration ID register (ETHSW_FES_CFG_IDR)

Address offset: 0x800004

Reset value: 0x0001

1514131211109876543210
CFG_ID[15:0]
rrrrrrrrrrrrrrrr

Bits 15:0 CFG_ID[15:0]: Configuration ID
For manufacturer internal use only.

ETHSW FES revision ID register 0 (ETHSW_FES_REV_ID0R)

Address offset: 0x800006

Reset value: 0xF2AF

1514131211109876543210
REV_ID0[15:0]
rrrrrrrrrrrrrrrr

Bits 15:0 REV_ID0[15:0]: Configuration revision ID 0
Revision number from version control system

ETHSW FES revision ID register 1 (ETHSW_FES_REV_ID1R)

Address offset: 0x800008

Reset value: 0x71CA

1514131211109876543210
REV_ID1[15:0]
rrrrrrrrrrrrrrrr

Bits 15:0 REV_ID1[15:0]: Body revision ID, bit (15:0)
Revision number from version control system (lowest bits).

ETHSW FES revision ID register 2 (ETHSW_FES_REV_ID2R)

Address offset: 0x80000A

Reset value: 0x057D

1514131211109876543210
REV_ID2[15:0]
rrrrrrrrrrrrrrrr

Bits 15:0 REV_ID2[15:0]: Body revision ID, bit (31:16)
Revision number from version control system (highest bits).

ETHSW FES general control register (ETHSW_FES_GEN_CTRLR)

Address offset: 0x800010

Reset value: 0x0000

1514131211109876543210
INIT_REQCLR_MAC_TABCORR_DISPTP_MOD[1:0]MOD_SYNCFTIM_TRLPOL_CFGRes.Res.MGMT_TRL_OFF[1:0]MGMT_TRL_LGTH[1:0]Res.Res.
rwrt_w1rwrwrwrwrwrwrwrwrwrw
ST logo
ST logo

Bit 8 POL_CFG: Policer configuration

Bits 7:6 Reserved, must be kept at reset value.

Bits 5:4 MGMT_TRL_OFF[1:0]: Management Trailer Offset

Bits 3:2 MGMT_TRL_LGTH[1:0]: Management Trailer Length

Bits 1:0 Reserved, must be kept at reset value.

ETHSW FES dynamic MAC table clear mask register
(ETHSW_FES_MT_CLEAR_MSKR)

Address offset: 0x800012

Reset value: 0x0007

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MAC_TAB_CLRM[2:0]
rwrwrw

Bits 15:3 Reserved, must be kept at reset value.

Bits 2:0 MAC_TAB_CLRM[2:0]: MAC Table Clear Mask

ETHSW FES dynamic MAC table clear FID register
(ETHSW_FES_MT_CLEAR_FIDR)

Address offset: 0x800014

Reset value: 0x0000

1514131211109876543210
ResResResResResResResResResResFID[5:0]
rwrwrwrwrwrw
ST logo
ST logo

Bits 15:6 Reserved, must be kept at reset value.

Bits 5:0 FID[5:0]: Filtering Identifier (FID)

Only entries with this FID are cleared.

ETHSW FES address aging configuration register
(ETHSW_FES_ADDRESS_AGING_CFGR)

Address offset: 0x800020

Reset value: 0x0012

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.LIFE_TIME[6:0]
rwrwrwrwrwrwrw

Bits 15:7 Reserved, must be kept at reset value.

Bits 6:0 LIFE_TIME[6:0]: Address Lifetime

Lifetime of automatically learned addresses.

0: 16 s

1: 32 s

2: 48 s

...

127: 2048 s

ETHSW FES aging base time low register
(ETHSW_FES_AGING_BASE_TIMELR)

Address offset: 0x800022

Reset value: 0xA11F

1514131211109876543210
BASE_TIMEL[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 15:0 BASE_TIMEL[15:0]: Aging base time value bits (15:0)

Defines Aging Base Time in number of system clock cycles. The value written into this register should result in an aging base time of 4 ms. The default value gives 4 ms with a 125 MHz system clock frequency.

ETHSW FES aging base time high register
(ETHSW_FES_AGING_BASE_TIMEHR)

Address offset: 0x800024

Reset value: 0x0007

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.BASE_TIMEH[7:0]
rwrwrwrwrwrwrwrw

Bits 15:8 Reserved, must be kept at reset value.

Bits 7:0 BASE_TIMEH[7:0]: Aging base time value bits (23:16)

Defines Aging Base Time in number of system clock cycles. The value written into this register should result in an aging base time of 4 ms. The default value gives 4 ms with a 125 MHz system clock frequency.

ETHSW FES interrupt mask clear register (ETHSW_FES_INT_MASK_CLR)

Address offset: 0x800030

Reset value: 0x0000

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CONGESTED_IMCRX_ERROR_IMCRX_TIMESTAMP_IMCTX_TIMESTAMP_IMC
rc_w0rc_w0rc_w0rc_w0

Bits 15:4 Reserved, must be kept at reset value.

Bit 3 CONGESTED_IMC: Congested interrupt mask clear

Setting this bit clears the CONGESTED_IE mask bit.

Bit 2 RX_ERROR_IMC: RX error interrupt mask clear

Setting this bit clears the RX_ERROR_IE mask bit.

Bit 1 RX_TIMESTAMP_IMC: RX timestamp interrupt mask clear

Setting this bit clears the RX_TIMESTAMP_IE mask bit.

Bit 0 TX_TIMESTAMP_IMC: TX timestamp interrupt mask clear

Setting this bit clears the TX_TIMESTAMP_IE mask bit.

ETHSW FES interrupt mask set register (ETHSW_FES_INT_MASK_SETR)

Address offset: 0x800034

Reset value: 0x0000

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CONGESTED_IERX_ERROR_IERX_TIMESTAMP_IETX_TIMESTAMP_IE
rsrsrsrs

Bits 15:4 Reserved, must be kept at reset value.

Bit 3 CONGESTED_IE: Congested interrupt enable mask

The interrupt is activated when CONGESTED_IM and CONGESTED_IM bit are both set.

Bit 2 RX_ERROR_IE: RX error interrupt enable mask

The interrupt is activated when RX_ERROR_IM and RX_ERROR_IS bit are both set.

Bit 1 RX_TIMESTAMP_IE: RX timestamp interrupt enable mask

The interrupt is activated when RX_TIMESTAMP_IM and RX_TIMESTAMP_IS bit are both set.

Bit 0 TX_TIMESTAMP_IE: TX timestamp interrupt enable mask

The interrupt is activated when TX_TIMESTAMP_IM and TX_TIMESTAMP_IS bit are both set.

ETHSW FES interrupt status register (ETHSW_FES_INT_STATUSR)

Address offset: 0x800038

Reset value: 0x0000

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CONGESTED_ISRX_ERROR_ISRX_TIMESTAMP_ISTX_TIMESTAMP_IS
rc_w0rc_w0rc_w0rc_w0

Bits 15:4 Reserved, must be kept at reset value.

Bit 3 CONGESTED_IS: Congested interrupt status

Indicates that at least one frame was dropped due to congestion. The number of frames dropped can be read from registers Q_DROP, EARLY_DROP and FULL_DROP.

This bit is updated independently from the CONGESTED_IS interrupt mask bit. The interrupt is activated when CONGESTED_IS and CONGESTED_IM bits are both set.

Bit 2 RX_ERROR_IS: RX error interrupt status

Indicates that an RX error happened and that the corresponding counter has been incremented. The number of erroneous frames can be read from counter registers RX_UNDERSIZE, RX_FRAGMENTS, RX_OVERSIZE, RX_JABBER, RX_ERR and RX_CRC. RX_WRONGLAN does not cause an interrupt.

This bit is updated independently from the RX_ERROR_IS interrupt mask bit.

The interrupt is activated when RX_ERROR_IS and RX_ERROR_IM bits are both set.

Bit 1 RX_TIMESTAMP_IS: RX timestamp interrupt status

Indicates that information of a PTP event message has been stored into RX timestamp registers. The interrupt is not activated if there is no room for storing the RX timestamp of the PTP event frame.

This bit is updated independently from the RX_TIMESTAMP_IS interrupt mask bit. The interrupt is activated when RX_TIMESTAMP_IS and RX_TIMESTAMP_IM bits are both set.

Bit 0 TX_TIMESTAMP_IS: TX timestamp interrupt status

Indicates that information of a PTP event message has been stored into TX timestamp registers. The interrupt is not activated if there is no room for storing the TX timestamp of the PTP event frame.

This bit is updated independently from the TX_TIMESTAMP_IE interrupt mask bit. The interrupt is activated when TX_TIMESTAMP_IS and TX_TIMESTAMP_IM bits are both set.

ETHSW FES dynamic MAC table read 0 register (ETHSW_FES_MAC_TABLE0R)

Address offset: 0x800200

Reset value: 0x0000

1514131211109876543210
TRANSFERRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PORT_NUM[3:0]
rt_w1rrrr

Bit 15 TRANSFER: Transfer

Write 1 to this bit to enable fetching of the next MAC address entry to ETHSW FES dynamic MAC table read 0 register (ETHSW_FES_MAC_TABLE0R) to ETHSW FES dynamic MAC table read 3 register (ETHSW_FES_MAC_TABLE3R). Value 0 indicates that the fetch is completed.

The first entry fetched is the first entry in the table. Fetched MAC address value FF:FF:FF:FF:FF:FF indicates that the latest entry fetched was the last entry in the table and that the next entry to be fetched is the first entry in the table.

Bits 14:4 Reserved, must be kept at reset value.

Bits 3:0 PORT_NUM[3:0]: Port number

The port where to the address is registered.

ETHSW FES dynamic MAC table read 1 register
(ETHSW_FES_MAC_TABLE1R)

Address offset: 0x800202

Reset value: 0x0000

1514131211109876543210
OCTET_2[7:0]OCTET_1[7:0]
rrrrrrrrrrrrrrrr

Bits 15:8 OCTET_2[7:0]: Dynamic MAC Address Table Read: 2nd octet
2nd octet (xx:XX:xx:xx:xx:xx) of the MAC address.
MAC address value FF:FF:FF:FF:FF:FF indicates the end of the table.

Bits 7:0 OCTET_1[7:0]: Dynamic MAC Address Table Read: 1st octet
1st octet (XX:xx:xx:xx:xx:xx) of the MAC address.
MAC address value FF:FF:FF:FF:FF:FF indicates the end of the table.

ETHSW FES dynamic MAC table read 2 register
(ETHSW_FES_MAC_TABLE2R)

Address offset: 0x800204

Reset value: 0x0000

1514131211109876543210
OCTET_4[7:0]OCTET_3[7:0]
rrrrrrrrrrrrrrrr

Bits 15:8 OCTET_4[7:0]: Dynamic MAC Address Table Read: 4th octet
4th octet (xx:xx:xx:XX:xx:xx) of the MAC address.
MAC address value FF:FF:FF:FF:FF:FF indicates the end of the table.

Bits 7:0 OCTET_3[7:0]: Dynamic MAC Address Table Read: 3rd octet
3rd octet (xx:xx:XX:xx:xx:xx) of the MAC address.
MAC address value FF:FF:FF:FF:FF:FF indicates the end of the table.

ETHSW FES dynamic MAC table read 3 register
(ETHSW_FES_MAC_TABLE3R)

Address offset: 0x800206

Reset value: 0x0000

1514131211109876543210
OCTET_6[7:0]OCTET_5[7:0]
rrrrrrrrrrrrrrrr

Bits 15:8 OCTET_6[7:0]: Dynamic MAC Address Table Read: 6th octet
6th octet (xx:xx:xx:xx:xx:XX) of the MAC address.
MAC address value FF:FF:FF:FF:FF:FF indicates the end of the table.

Bits 7:0 OCTET_5[7:0]: Dynamic MAC Address Table Read: 5th octet
5th octet (xx:xx:xx:xx:XX:xx) of the MAC address.
MAC address value FF:FF:FF:FF:FF:FF indicates the end of the table.

ETHSW FES dynamic MAC table read 4 register
(ETHSW_FES_MAC_TABLE4R)

Address offset: 0x800208
Reset value: 0x0000

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FID[5:0]
rrrrrr

Bits 15:6 Reserved, must be kept at reset value.

Bits 5:0 FID[5:0]: FID
The Filtering Identifier (FID) where the MAC address is registered.

ETHSW FES static MAC address table R/W command register
(ETHSW_FES_SMAC_CMDR)

Address offset: 0x800220
Reset value: 0x0000

1514131211109876543210
TRANSFERRD_WRCOLUMN[1:0]ROW[11:0]
rt_w1rwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bit 15 TRANSFER: Transfer
Write 1 to this bit to initiate read or write access to Static MAC Address Table.
Value 0 indicates that the access is complete.

Bit 14 RD_WR: Read / write
Read or write values between Static MAC Table Entry and registers from ETHSW FES static MAC address table read/write 0 register (ETHSW_FES_SMAC_TABLE0R) to ETHSW FES static MAC address table read/write 7 register (ETHSW_FES_SMAC_TABLE7R).
0: Read values from Static MAC Table Entry to registers
1: Write values from registers into Static MAC Table Entry

Bits 13:12 COLUMN[1:0]: Column
The number of the column of the Static MAC Table Entry that is read or written

Bits 11:0 ROW[11:0]: Row
The number of the row of the Static MAC Table Entry that is read or written.
Trying to access rows that do not exist is not allowed (1024 rows are available).

ST logo
ST logo

ETHSW FES static MAC address table configuration register
(ETHSW_FES_SMAC_CFGR)

Address offset: 0x800222

Reset value: 0x0000

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.ROW_COL3[1:0]ROW_COL2[1:0]ROW_COL1[1:0]ROW_COL0[1:0]
rwrwrwrwrwrwrwrw

Bits 15:8 Reserved, must be kept at reset value.

Bits 7:6 ROW_COL3[1:0]: Row selection setting for column 3
See ROW_COL0[1:0].

Bits 5:4 ROW_COL2[1:0]: Row selection setting for column 2
See ROW_COL0[1:0].

Bits 3:2 ROW_COL1[1:0]: Row selection setting for column1
See ROW_COL0[1:0].

Bits 1:0 ROW_COL0[1:0]: Row selection setting for column 0
00: XOR with VLAN disabled. MATCH_VLAN bit in ETHSW FES static MAC address table read/write 0 register (ETHSW_FES_SMAC_TABLE0R) can be enabled or disabled for entries in the column.
01: XOR with VLAN enabled. MATCH_VLAN bit in ETHSW FES static MAC address table read/write 0 register (ETHSW_FES_SMAC_TABLE0R) must be enabled for all entries in the column.
Others: Reserved, must not be used

ETHSW FES static MAC address table read/write 0 register
(ETHSW_FES_SMAC_TABLE0R)

Address offset: 0x800230

Reset value: 0x0000

1514131211109876543210
ENTRY_USAGERes.POLICER_PRIOMATCH_VLANMOD_PRIOFRAME_PRIO[2:0]STREAM_MATCHRes.Res.Res.Res.Res.Res.Res.
rwrwrwrwrwrwrwrw
ST logo
ST logo

ETHSW FES static MAC address table read/write 1 register
(ETHSW_FES_SMAC_TABLE1R)

Address offset: 0x800232

Reset value: 0x0000

1514131211109876543210
OCTET_2[7:0]OCTET_1[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 15:8 OCTET_2[7:0]: Static MAC Address Table Read: 2nd octet
2nd octet (xx:XX:xx:xx:xx:xx) of the MAC address.

Bits 7:0 OCTET_1[7:0]: Static MAC Address Table Read: 1st octet
1st octet (XX:xx:xx:xx:xx:xx) of the MAC address.

ETHSW FES static MAC address table read/write 2 register
(ETHSW_FES_SMAC_TABLE2R)

Address offset: 0x800234

Reset value: 0x0000

1514131211109876543210
OCTET_4[7:0]OCTET_3[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 15:8 OCTET_4[7:0]: Static MAC Address Table Read: 4th octet
4th octet (xx:xx:xx:XX:xx:xx) of the MAC address.

Bits 7:0 OCTET_3[7:0]: Static MAC Address Table Read: 3rd octet
3rd octet (xx:xx:XX:xx:xx:xx) of the MAC address.

ETHSW FES static MAC address table read/write 3 register
(ETHSW_FES_SMAC_TABLE3R)

Address offset: 0x800236

Reset value: 0x0000

1514131211109876543210
OCTET_6[7:0]OCTET_5[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 15:8 OCTET_6[7:0]: Static MAC Address Table Read: 6th octet
6th octet (xx:xx:xx:xx:xx:XX) of the MAC address.

Bits 7:0 OCTET_5[7:0]: Static MAC Address Table Read: 5th octet
5th octet (xx:xx:xx:xx:XX:xx) of the MAC address.

ETHSW FES static MAC address table read/write 4 register
(ETHSW_FES_SMAC_TABLE4R)

Address offset: 0x800238

Reset value: 0x0000

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FWD_PORT_MSK[2:0]
rwrww
ST logo
ST logo

Bits 15:3 Reserved, must be kept at reset value.

Bits 2:0 FWD_PORT_MSK[2:0]: Forward Port Mask

Bit 0 corresponds to output port 0, bit 1 to port 1, bit 2 to port 2.

0: Do not forward frames whose destination address matches to the port

1: Forward frames whose destination address matches to the port

ETHSW FES static MAC address table read/write 5 register
(ETHSW_FES_SMAC_TABLE5R)

Address offset: 0x80023A

Reset value: 0x0000

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.POLICER_PORTS[2:0]
rwrwrw

Bits 15:3 Reserved, must be kept at reset value.

Bits 2:0 POLICER_PORTS[2:0]: Policed Ports

Bit 0 corresponds to input port 0, bit 1 to port 1, bit 2 to port 2.

0: Keep the default policer for this input port

1: Change policer mapping (to Policer Number in ETHSW FES static MAC address table read/write 6 register (ETHSW_FES_SMAC_TABLE6R)) for this input port.

If POL_CFG bit = 0 in ETHSW FES general control register (ETHSW_FES_GEN_CTRLR) (Policing is not based on SMAC Table), this bit must also be set to 0.

ETHSW FES static MAC address table read/write 6 register
(ETHSW_FES_SMAC_TABLE6R)

Address offset: 0x80023C

Reset value: 0x0000

1514131211109876543210
Res.Res.Res.Res.POLICER_NUM[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw

Bits 15:12 Reserved, must be kept at reset value.

Bits 11:0 POLICER_NUM[11:0]: Policer Number

The number of the policer to which the matching frame is mapped. The policer mapping is not changed if Policed Port bit is set to 0 for the input port (in ETHSW FES static MAC address table read/write 5 register (ETHSW_FES_SMAC_TABLE5R)).

If POL_CFG bit = 0 in ETHSW FES general control register (ETHSW_FES_GEN_CTRLR) (Policing is not based on SMAC Table), this bit must also be set to 0.

ETHSW FES static MAC address table read/write 7 register
(ETHSW_FES_SMAC_TABLE7R)

Address offset: 0x80023E

Reset value: 0x0000

1514131211109876543210
Res.Res.Res.Res.VLAN[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw

Bits 15:12 Reserved, must be kept at reset value.

Bits 11:0 VLAN[11:0]: VLAN

The VLAN for which the entry is enabled. It is valid only when MATCH_VLAN bit in ETHSW FES static MAC address table read/write 0 register (ETHSW_FES_SMAC_TABLE0R) is set.

ETHSW FES sequence recovery table R/W command register
(ETHSW_FES_SEQ_REC_CMDR)

Address offset: 0x800300

Reset value: 0x0000

1514131211109876543210
TRANSFERRD_WRRes.Res.Res.Res.ROW[9:0]
rt_w1rwrwrwrwrwrwrwrwrwrwrw

Bit 15 TRANSFER: Transfer

Write 1 to this bit to initiate read or write access to Sequence Generation Table.
Value 0 indicates that the access is complete.

Bit 14 RD_WR: Read / write

0: Read value from Sequence Recovery Table row to ETHSW FES sequence recovery table read/write 4 register (ETHSW_FES_SEQ_REC_TABLE4R).

1: Write value from ETHSW FES sequence recovery table read/write 4 register (ETHSW_FES_SEQ_REC_TABLE4R) to Sequence Generation Table row.

Bits 13:10 Reserved, must be kept at reset value.

Bits 9:0 ROW[9:0]: Row

The number of the row of the Sequence Recovery Table that is read or written.

ETHSW FES sequence recovery table read/write 4 register
(ETHSW_FES_SEQ_REC_TABLE4R)

Address offset: 0x800318

Reset value: 0x0000

1514131211109876543210
AGING_SCALE[1:0]AGING_BRATE[1:0]Res.Res.Res.Res.ACC_NVAL_SEQIND_RECALGORITHMHIST_LENGTH[4:0]
rwrwrwrwrwrwrwrwrwrwrwrw

ETHSW FES sequence generation command register
(ETHSW_FES_SEQ_GEN_CMDR)

Address offset: 0x800380

Reset value: 0x0000

1514131211109876543210
Res.Res.RESETRes.Res.Res.ENTITY[9:0]
rwrwrwrwrwrwrwrwrwrwrw
ST logo
ST logo

Bits 15:14 Reserved, must be kept at reset value.

Bit 13 RESET: Reset
0: Do nothing
1: Reset sequence number. Makes generated sequence to restart from zero.

Bits 12:10 Reserved, must be kept at reset value.

Bits 9:0 ENTITY[9:0]: Entity
The number of the Sequence Generation Entity that is controlled.

ETHSW FES stream table R/W command register
(ETHSW_FES_STREAM_CMDR)

Address offset: 0x800400

Reset value: 0x0000

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
1514131211109876543210
R D _WR
Res.Res.Res.Res.ROW[9:0]
S T R A N F E R
rt_w1rwrwrwrwrwrwrwrwrwrwrw
Bit 15TRANSFER: Transfer
Bit 14RD_WR: Read / write
0 register (ETHSW_FES_STREAM_TABLE0R)to .ETHSW FES stream table read/write 3
Bits 9:0ROW[9:0]: Row
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RMV_RTAG[2:0]
rwrwrw
RM0457 Rev 55661/5881

Bit 15 TRANSFER: Transfer
Write 1 to this bit to initiate read or write access to Stream Table. Value 0 indicates that the access is completed.

Bit 14 RD_WR: Read / write
0: Read values from Stream Table row to registers from ETHSW FES stream table read/write 0 register (ETHSW_FES_STREAM_TABLE0R) to ETHSW FES stream table read/write 3 register (ETHSW_FES_STREAM_TABLE3R).
1: Write values from registers ETHSW FES stream table read/write 0 register (ETHSW_FES_STREAM_TABLE0R) to ETHSW FES stream table read/write 3 register (ETHSW_FES_STREAM_TABLE3R) into Stream Table row.

Bits 13:10 Reserved, must be kept at reset value.

Bits 9:0 ROW[9:0]: Row
The number of the row of the Stream Table that is read or written. It is not allowed to try to access rows that do not exist (128 streams available)

ETHSW FES stream table read/write 0 register
(ETHSW_FES_STREAM_TABLE0R)

Address offset: 0x800410

Reset value: 0x0000

ST logo
ST logo

Bits 15:3 Reserved, must be kept at reset value.

Bits 2:0 RMV_RTAG[2:0]: Remove R-TAGging input port vector

Bit 0 corresponds to input port 0, bit 1 corresponds to input port 1, bit 2 corresponds to input port 2.

0: Keep R-TAGging. Frames belonging to this stream are sent out R-TAGged if they came in R-TAGged.

1: Remove R-TAGging. Frames belonging to this stream are sent out either R-TAGged or not, R-TAGged depending on the ADD_RTAG[2:0] bitfield in the ETHSW FES stream table read/write 1 register (ETHSW_FES_STREAM_TABLE1R). Whether the frame had an R-TAG in the input port or not does not matter.

ETHSW FES stream table read/write 1 register
(ETHSW_FES_STREAM_TABLE1R)

Address offset: 0x800412

Reset value: 0x0000

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ADD_RTAG[2:0]
rwrwrw

Bits 15:3 Reserved, must be kept at reset value.

Bits 2:0 ADD_RTAG[2:0]: Add R-TAGging output port vector

Bit 0 corresponds to input port 0, bit 1 corresponds to input port 1, bit 2 corresponds to input port 2.

0: Keep R-TAGging. Frames belonging to this stream are sent out from this output port either R-tagged or not R-tagged depending on whether they had an R-tag when coming in and depending on the input port setting for R-TAG removal (RMV_RTAG[2:0] bitfield in ETHSW FES stream table read/write 0 register (ETHSW_FES_STREAM_TABLE0R))

1: Add R-TAGging. Frames belonging to this stream are R-TAGged at this output port

ETHSW FES stream table read/write 2 register
(ETHSW_FES_STREAM_TABLE2R)

Address offset: 0x800414

Reset value: 0x0000

1514131211109876543210
FRER_SEQ_GENRes.Res.Res.FRER_GEN_TAB_ROW[11:0]
rwrwrwrwrwrwrwrwrwrwrwrwrw

Bit 15 FRER_SEQ_GEN: FRER sequence generation enable
0: Sequence generation functionality disabled for the stream.
1: Sequence generation functionality enabled, bits (11:0) of this register provide a pointer to Sequence generation table row (Sequence generation function entity).

Bits 14:12 Reserved, must be kept at reset value.

Bits 11:0 FRER_GEN_TAB_ROW[11:0]: FRER sequence generation table row
Pointer to a row of sequence generation table

ETHSW FES stream table read/write 3 register
(ETHSW_FES_STREAM_TABLE3R)

Address offset: 0x800416

Reset value: 0x0000

1514131211109876543210
FRER_SEQ_RECRes.Res.Res.FRER_REC_TAB_ROW[11:0]
rwrwrwrwrwrwrwrwrwrwrwrwrw

Bit 15 FRER_SEQ_REC: FRER sequence recovery enable
0: Sequence recovery functionality disabled for the stream.
1: Sequence recovery functionality enabled, bits (11:0) of this register provide a pointer to Sequence recovery table row (Sequence recovery function entity)

Bits 14:12 Reserved, must be kept at reset value.

Bits 11:0 FRER_REC_TAB_ROW[11:0]: FRER sequence recovery table row
Pointer to a row of sequence recovery table

ETHSW FES policer read/write command register
(ETHSW_FES_POLICER_CMDR)

Address offset: 0x800600

Reset value: 0x0000

1514131211109876543210
TRANSFERRD_WRRes.Res.POLICER_NUM[11:0]
rt_w1rwrwrwrwrwrwrwrwrwrwrwrwrw
ST logo
ST logo

Bit 15 TRANSFER: Transfer Write 1 to this bit to enable read or write to policer internal registers. FES clears this bit when done.

Bit 14 RD_WR: Read / write 0: Read values from policer internal registers to registers ETHSW FES policer read/write 0 register (ETHSW_FES_POLICER0R) to ETHSW FES policer read/write 4 register (ETHSW_FES_POLICER4R). 1: Write values from registers ETHSW FES policer read/write 0 register (ETHSW_FES_POLICER0R) to ETHSW FES policer read/write 4 register (ETHSW_FES_POLICER4R) to policer internal registers.

Bits 13:12 Reserved, must be kept at reset value.

Bits 11:0 POLICER_NUM[11:0]: Policer Number The number of the policer whose registers are read or written when Transfer bit is set. Do not configure a policer that does not exist (128 policers are available).

ETHSW FES policer read/write 0 register (ETHSW_FES_POLICER0R)

Address offset: 0x800610

Reset value: 0x0000

column_1column_2Bit 15 Bit 14 Bits 11:0done. RD_WRTRANSFER: Transfer : Read / writecolumn_7: Policer Numbertocolumn_10column_11column_12column_13column_14column_15RM0457
151413121110987 LIMIT[15:0]6543210
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
Bits 15:0LIMIT[15:0]: Limit
1514131211109876543210
Res.Res.Res.Res.Res.RATE_SCALE[2:0]BASIC_RATE[7:0]
rwrwrwrwrwrwrwrwrwrwrw
Bits 10:8RATE_SCALE[2:0]: Rate Scale of Meter 0 (the meter for “green”)
Bits 7:0BASIC_RATE[7:0]: Basic Rate of Meter 0 (the meter for “green”)

Bits 15:0 LIMIT[15:0]: Limit The maximum number of Tokens in the Bucket of Meter 0 (the meter for “green”).

ETHSW FES policer read/write 1 register (ETHSW_FES_POLICER1R)

Address offset: 0x800612

Reset value: 0x0000

Bits 15:11 Reserved, must be kept at reset value.

Bits 10:8 RATE_SCALE[2:0]: Rate Scale of Meter 0 (the meter for “green”) Values 0 and 7 are reserved.

Bits 7:0 BASIC_RATE[7:0]: Basic Rate of Meter 0 (the meter for “green”) Policed rate (bytes/s) = Basic_Rate * clk / 16^Rate_Scale.

ST logo
ST logo

ETHSW FES policer read/write 2 register (ETHSW_FES_POLICER2R)

Address offset: 0x800614

Reset value: 0x0000

1514131211109876543210
LIMIT[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 15:0 LIMIT[15:0]: Limit
The maximum number of Tokens in the Bucket of Meter 1 (the meter for “yellow” / “red”).

ETHSW FES policer read/write 3 register (ETHSW_FES_POLICER3R)

Address offset: 0x800616

Reset value: 0x0000

1514131211109876543210
Res.Res.Res.Res.Res.RATE_SCALE[2:0]BASIC_RATE[7:0]
rwrwrwrwrwrwrwrwrwrwrw

Bits 15:11 Reserved, must be kept at reset value.
Bits 10:8 RATE_SCALE[2:0]: Rate Scale of Meter 1 (the meter for “yellow” / “red”)
Values 0 and 7 are reserved.
Bits 7:0 BASIC_RATE[7:0]: Basic Rate of Meter 1 (the meter for “yellow” / “red”)
\(\text{Policed rate (bytes/s)} = \text{Basic\_Rate} * \text{clk} / 16^{\text{Rate\_Scale}}\).

ETHSW FES policer read/write 4 register (ETHSW_FES_POLICER4R)

Address offset: 0x800618

Reset value: 0x0000

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DROP_YELLOWMARK_ALL_REDMARK_ALL_RED_ENCOUPLING_FLAGCOLOR_BLIND
rwrwrwrwrw
ST logo
ST logo

Bits 15:5 Reserved, must be kept at reset value.

Bit 4 DROP_YELLOW: Drop on Yellow

Bit 3 MARK_ALL_RED: Mark all Frames Red

The peripheral always changes the value of this bit to 1 when a frame is marked “red”.
Setting the MARK_ALL_RED_EN bit to 1 causes all the following frames to be marked “red” until either one of these bits is cleared by the user.

Bit 2 MARK_ALL_RED_EN: Mark all Frames Red Enable

Bit 1 COUPLING_FLAG: Coupling Flag

Bit 0 COLOR_BLIND: Color Blind

ETHSW FES timestamp command register (ETHSW_FES_TS_CMDR)

Address offset: 0x802000

Reset value: 0x0000

1514131211109876543210
Res.TRANSFERERRORRes.Res.Res.Res.Res.Res.Res.Res.TX_RXPORT_NUM[3:0]
rt_w1rrwrwrwrwrw

Bit 15 Reserved, must be kept at reset value.

Bit 14 TRANSFER: Transfer

Write 1 to this bit to enable fetching the next stored timestamp information to registers:

Value 0 indicates that the fetch is completed.

Bit 13 ERROR: Error

Bits 12:5 Reserved, must be kept at reset value.

Bit 4 TX_RX: TX / RX

Bits 3:0 PORT_NUM[3:0]: Port Number

The number of the port whose next stored timestamp is fetched when 1 is written to the Transfer bit. Port 0 is not allowed (timestamping not enabled).

ETHSW FES timestamp time low register (ETHSW_FES_TS_TIME_LOR)

Address offset: 0x802008

Reset value: 0x0000

RM0457column_2Bit 4 Bits 3:0TX_RX: TX / RX PORT_NUM[3:0]column_6: Port Numbercolumn_8column_9column_10column_11column_12column_13column_14column_15column_16
151413121110987 NANOSECONDS[15:0]6543210
rrrrrrrrrrrrrrrr
Bits 15:0NANOSECONDS[15:0]: Nanoseconds, bits (15:0)
1514 SECONDS[1:0]131211109876543210
rrrrrrrrrrrrrrrr
Bits 15:14SECONDS[1:0]: Seconds, bits (0:1)
Bits 13:0NANOSECONDS[29:16]: Nanoseconds, bits (29:16)
1514131211109876543210
DOMAIN_NUM[7:0]TRANSP_SPEC[3:0]MSG_TYPE[3:0]
rrrrrrrrrrrrrrrr
RM0457 Rev 55667/5881

Bits 15:0 NANOSECONDS[15:0]: Nanoseconds, bits (15:0)

Nanoseconds of the timestamp of the frame (lowest bits).

ETHSW FES timestamp time high register (ETHSW_FES_TS_TIME_HIR)

Address offset: 0x80200A

Reset value: 0x0000

Bits 15:14 SECONDS[1:0]: Seconds, bits (0:1)

Seconds of the timestamp of the frame (lowest two bits).

Bits 13:0 NANOSECONDS[29:16]: Nanoseconds, bits (29:16)

Nanoseconds of the timestamp of the frame (highest bits). The nanoseconds value can, in some cases, be more than 999,999,999. The software using the timestamp can handle the situation by subtracting 1,000,000,000 from the nanoseconds value and adding 1 to seconds.

ETHSW FES timestamp PTP message 0 register (ETHSW_FES_TS_MSG_0R)

Address offset: 0x80200C

Reset value: 0x0000

ETHSW FES timestamp PTP message 1 register (ETHSW_FES_TS_MSG_1R)

Address offset: 0x80200E

Reset value: 0x0000

column_1column_2Bits 15:8 Bits 7:4 Bits 3:0column_4MSG_TYPE[3:0]column_6: Message type: Domain numbercolumn_9column_10column_11column_12column_13column_14column_15RM0457
151413121110987 SEQUENCE_ID[15:0]6543210
rrrrrrrrrrrrrrrr
Bits 15:0SEQUENCE_ID[15:0]: Sequence ID
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TS_STATUS_IN[ 1:0]
r rr r
Bits 2:1TS_STATUS_IN[1:0]: Timestamp status input port vector

ETHSW FES timestamp status port vector RX register (ETHSW_FES_TS_RX_STATUSR)

Address offset: 0x802010

Reset value: 0x0000

ST logo
ST logo

ETHSW FES timestamp status port vector TX register (ETHSW_FES_TS_TX_STATUSR)

Address offset: 0x802012

Reset value: 0x0000

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TS_STATUS_OUT[1:0]Res.
rr

Bits 15:3 Reserved, must be kept at reset value.

Bits 2:1 TS_STATUS_OUT[1:0]: Timestamp status output port vector
Bit 1 corresponds to output port 1, bit 2 corresponds to output port 2.
0: There is no stored timestamp for this output port.
1: There is at least one stored timestamp for this output port.

Bit 0 Reserved, must be kept at reset value.

ETHSW FES VLAN command register (ETHSW_FES_VLAN_CMDR)

Address offset: 0x808000

Reset value: 0x0000

1514131211109876543210
TRSFR_VLAN_FIDTRSFR_VLAN_TAGTRSFR_VLAN_PORTSRD_WRVLAN_ID[11:0]
rt_w1rt_w1rt_w1rwrwrwrwrwrwrwrwrwrwrwrwrw

Bit 15 TRSFR_VLAN_FID: Transfer VLAN_FID
0: Do not transfer data to/from VLAN_FID register.
1: Transfer data to/from (depending of read/write bit) VLAN_FID register.
This bit self-clears when the transfer is done. When the value of this bit is 1, it is not allowed to write into this register.

Bit 14 TRSFR_VLAN_TAG: Transfer VLAN_TAG
0: Do not transfer data to/from VLAN_TAG register.
1: Transfer data to/from (depending of read/write bit) VLAN_TAG register.
This bit self-clears when the transfer is done. When the value of this bit is 1, it is not allowed to write into this register.

ST logo
ST logo

Bit 13 TRSFR_VLAN_PORTS: Transfer VLAN_PORTS

0: Do not transfer data to/from VLAN_PORTS register.

1: Transfer data to/from (depending of read/write bit) VLAN_PORTS register.

This bit self-clears when the transfer is done. When the value of this bit is 1, it is not allowed to write into this register.

Bit 12 RD_WR: Read/Write

0: Read settings. Data are transferred from internal structure to VLAN_PORTS, VLAN_TAG and/or VLAN_FID registers (those that are enabled using bits 13 to 15 of this register):

– ETHSW FES port VLAN membership register (ETHSW_FES_VLAN_PORTSR) – ETHSW FES port VLAN tagging register (ETHSW_FES_VLAN_TAGR) – ETHSW FES Filtering ID register (ETHSW_FES_VLAN_FIDR)

1: Write settings. Data are transferred from VLAN_PORTS, VLAN_TAG and/or VLAN_FID registers (those that are enabled using bits 13 to 15 of this register) to internal structure.

Bits 11:0 VLAN_ID[11:0]: VLAN_ID

The VLAN ID for which data is copied to/from VLAN_PORTS, VLAN_TAG and/or VLAN_FID registers.

ETHSW FES port VLAN membership register (ETHSW_FES_VLAN_PORTSR)

Address offset: 0x808008

Reset value: 0x0000

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.VLAN_MEMBER[2:0]
rwrwrw

Bits 15:3 Reserved, must be kept at reset value.

Bits 2:0 VLAN_MEMBER[2:0]: VLAN membership

Bit 0 corresponds to port 0, bit 1 corresponds to port 1, bit 2 corresponds to port 2.

0: The port is not a member of this VLAN.

1: The port is a member of this VLAN.

ETHSW FES port VLAN tagging register (ETHSW_FES_VLAN_TAGR)

Address offset: 0x80800A

Reset value: 0x0000

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.VLAN_TAG[2:0]
rwrwrw

Bits 15:3 Reserved, must be kept at reset value.

Bits 2:0 VLAN_TAG[2:0]: VLAN tagging

Bit 0 corresponds to port 0, bit 1 corresponds to port 1, bit 2 corresponds to port 2.

0: Tagging enabled for the port, if enabled in ETHSW FES port x port VLAN configuration register 1 (ETHSW_FESx_VLAN1R) (x = 0 to 2) , bit TGD_UTGD.

1: Tagging disabled for the port.

ETHSW FES Filtering ID register (ETHSW_FES_VLAN_FIDR)

Address offset: 0x80800C

Reset value: 0x0000

1514131211109876543210
ENG_TRAFFICRes.Res.Res.Res.Res.Res.Res.Res.Res.FILTERING_ID[5:0]
rwrwrwrwrwrwrw
Bit 15 ENG_TRAFFIC: Engineered Traffic

0: Engineered traffic disabled, address learning is enabled and the traffic destined to unlearned/unconfigured unicast or multicast/broadcast destinations is sent to all ports (if allowed)

1: Engineered traffic enabled, address learning is disabled and the traffic destined to unconfigured unicast or multicast/broadcast destinations is dropped.

After changing this bit from 0 to 1, it is recommended to clear the Dynamic MAC address table for the FID (ETHSW FES dynamic MAC table clear FID register (ETHSW_FES_MT_CLEAR_FIDR)).

Bits 14:6 Reserved, must be kept at reset value.

Bits 5:0 FILTERING_ID[5:0]: Filtering ID

0: FID 0

1: FID 1

2: FID 2

...

63: FID 63

ETHSW FES FES_PORT_HIGH generic register (ETHSW_FES_PORT_HIGHR)

Address offset: 0x80E000

Reset value: 0x0002

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FES_PORT_HIGH[3:0]
rrrr

Bits 15:4 Reserved, must be kept at reset value.

Bits 3:0 FES_PORT_HIGH[3:0]: The value of generic FES_PORT_HIGH

Number of switch ports, given as highest port index. For example value 2 corresponds to a 3-port switch.

ETHSW FES COUNTERS generic register (ETHSW_FES_COUNTERSR)

Address offset: 0x80E002

Reset value: 0x0003

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.COUNTERS[2:0]
rrr

Bits 15:3 Reserved, must be kept at reset value.

Bits 2:0 COUNTERS[2:0] : The value of generic COUNTERS

Bit 0: Basic Counter registers (CNT)

Bit 1: Stream Counter registers (SCNT)

Bit 2: Buffer fill levels (FL_*)

ETHSW FES CT_PORTS generic register (ETHSW_FES_CT_PORTSR)

Address offset: 0x80E004

Reset value: 0x0006

1514131211109876543210
Res.Res.Res.Res.CT_PORTS[11:0]
rrrrrrrrrrrr

Bits 15:12 Reserved, must be kept at reset value.

Bits 11:0 CT_PORTS[11:0] : The value of generic CT_PORTS

Cut-through port enable vector.

Bit index 0 corresponds port 0, Bit index 1 corresponds port 1, and so on.

ETHSW FES TS_PORTS generic register (ETHSW_FES_TS_PORTSR)

Address offset: 0x80E006

Reset value: 0x0006

1514131211109876543210
Res.Res.Res.Res.TS_PORTS[11:0]
rrrrrrrrrrrr

Bits 15:12 Reserved, must be kept at reset value.

Bits 11:0 TS_PORTS[11:0] : The value of generic TS_PORTS

Timestamp port enable vector.

Bit index 0 corresponds port 0, Bit index 1 corresponds port 1, and so on.

Port 0 has always timestamping capability independent of this setting.

ETHSW FES SMAC_TABLE_ROWS generic register (ETHSW_FES_SMAC_TABLE_ROWSR)

Address offset: 0x80E008

Reset value: 0x000A

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SMAC_TABLE_ROWS[3:0]
rrrr

Bits 15:4 Reserved, must be kept at reset value.

Bits 3:0 SMAC_TABLE_ROWS[3:0]: The value of generic SMAC_TABLE_ROWS
Static MAC table synthesis generic giving number of rows in table.
7: 128 rows
8: 256 rows
...
12: 4096 rows

ETHSW FES POLICING generic register (ETHSW_FES_POLICINGR)

Address offset: 0x80E00A

Reset value: 0x0003

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.POLICING[1:0]
rr

Bits 15:2 Reserved, must be kept at reset value.

Bits 1:0 POLICING[1:0]: The value of generic POLICING
00: No policer function
01: Policer via IPO
10: Policer via SMAC
11: Policing via both IPO/SMAC selectable by software

ETHSW FES POLICERS generic register (ETHSW_FES_POLICERSR)

Address offset: 0x80E00C

Reset value: 0x0007

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.POLICERS[3:0]
rrrr

Bits 15:4 Reserved, must be kept at reset value.

Bits 3:0 POLICERS[3:0]: The value of generic POLICERS
Value 7 ≥ 128 policers, value 8 ≥ 256 policers, and so on.

ETHSW FES QUEUES generic register (ETHSW_FES_QUEUESR)

Address offset: 0x80E00E

Reset value: 0x0008

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.QUEUES[3:0]
rrrr

Bits 15:4 Reserved, must be kept at reset value.

Bits 3:0 QUEUES[3:0]: The value of generic QUEUES
Allowed values are 4 and 8.

ETHSW FES BUFFER_SIZE generic register (ETHSW_FES_BUFFER_SIZER)

Address offset: 0x80E010

Reset value: 0x0001

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.BUFFER_SIZE
r

Bits 15:1 Reserved, must be kept at reset value.

Bit 0 BUFFER_SIZE: The value of generic BUFFER_SIZE
0: Normal
1: Double

ETHSW FES SHAPERS generic register (ETHSW_FES_SHAPERSR)

Address offset: 0x80E012

Reset value: 0x0001

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SHAPERS
r

Bits 15:1 Reserved, must be kept at reset value.

Bit 0 SHAPERS: The value of generic SHAPERS
0: Disabled
1: Enabled

ST logo
ST logo

ETHSW FES GIGABIT generic register (ETHSW_FES_GIGABITR)

Address offset: 0x80E014

Reset value: 0x0001

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.GIGABIT
r

Bits 15:1 Reserved, must be kept at reset value.

Bit 0 GIGABIT : The value of generic GIGABIT

0: all ports 10/100 Mbps only

1: all ports 10/100/1000 Mbps

ETHSW FES HSR_PORTS generic register (ETHSW_FES_HSR_PORTSR)

Address offset: 0x80E016

Reset value: 0x0000

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.HSR_PORTS[7:0]
rrrrrrrr

Bits 15:8 Reserved, must be kept at reset value.

Bits 7:0 HSR_PORTS[7:0] : The value of generic HSR_PORTS

HSR (High-availability Seamless Redundancy).

Bit index 0 corresponds port 0, Bit index 1 corresponds port 1, and so on.

0: Disabled

1: Enabled

ETHSW FES PRP_PORTS generic register (ETHSW_FES_PRP_PORTSR)

Address offset: 0x80E018

Reset value: 0x0000

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PRP_PORTS[7:0]
rrrrrrrr

Bits 15:8 Reserved, must be kept at reset value.

Bits 7:0 PRP_PORTS[7:0] : The value of generic PRP_PORTS

PRP (Parallel Redundancy Protocol).

Bit index 0 corresponds port 0, Bit index 1 corresponds port 1, and so on.

0: Disabled

1: Enabled

ETHSW FES SCHEDULED_PORTS generic register
(ETHSW_FES_SCHEDULED_PORTSR)

Address offset: 0x80E01A

Reset value: 0x0007

1514131211109876543210
Res.Res.Res.Res.SCHEDULED_PORTS[11:0]
rrrrrrrrrrrr

Bits 15:12 Reserved, must be kept at reset value.

Bits 11:0 SCHEDULED_PORTS[11:0] : The value of generic SCHEDULED_PORTS

Bit index 0 corresponds port 0, Bit index 1 corresponds port 1, and so on.

0: Disabled

1: Enabled

ETHSW FES PREEMPTABLE_PORT generic register
(ETHSW_PREEMPTABLE_PORTR)

Address offset: 0x80E01C

Reset value: 0x0006

1514131211109876543210
Res.Res.Res.Res.PREEMPTABLE_PORT[11:0]
rrrrrrrrrrrr

Bits 15:12 Reserved, must be kept at reset value.

Bits 11:0 PREEMPTABLE_PORT[11:0] : The value of generic PREEMPTABLE_PORT

Bit index 0 corresponds port 0, Bit index 1 corresponds port 1, and so on.

0: Disabled

1: Enabled

ETHSW FES MACSEC generic register (ETHSW_FES_MACSECR)

Address offset: 0x80E01E

Reset value: 0x0000

1514131211109876543210
Res.Res.Res.Res.MACSEC[11:0]
rrrrrrrrrrrr

Bits 15:12 Reserved, must be kept at reset value.

Bits 11:0 MACSEC[11:0] : The value of generic MACSEC

Bit index 0 corresponds port 0, Bit index 1 corresponds port 1, and so on.

0: Disabled

1: Enabled

ETHSW FES MACSEC_CIPHER generic register (ETHSW_FES_MACSEC_CIPHERR)

Address offset: 0x80E020

Reset value: 0x0000

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MACSEC_CIPHER[2:0]
rrr

Bits 15:3 Reserved, must be kept at reset value.

Bits 2:0 MACSEC_CIPHER[2:0]: The value of generic MACSEC_CIPHER
1: AES-GCM-128. Effective when MACSEC generic has non-zero value.

ETHSW FES MGMT_PORTS generic register (ETHSW_FES_MGMT_PORTSR)

Address offset: 0x80E022

Reset value: 0x0001

1514131211109876543210
Res.Res.Res.Res.MGMT_PORTS[11:0]
rrrrrrrrrrrr

Bits 15:12 Reserved, must be kept at reset value.

Bits 11:0 MGMT_PORTS[11:0]: The value of generic MGMT_PORTS
Bit index 0 corresponds port 0, Bit index 1 corresponds port 1, and so on.
0: Disabled
1: Enabled
Port 0 (Host) is the management port.

ETHSW FES FRER_PORTS generic register (ETHSW_FES_FRER_PORTSR)

Address offset: 0x80E024

Reset value: 0x0007

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.FRER_PORTS[7:0]
rrrrrrrr

Bits 15:8 Reserved, must be kept at reset value.

Bits 7:0 FRER_PORTS[7:0]: The value of generic FRER_PORTS
Bit index 0 corresponds port 0, Bit index 1 corresponds port 1, and so on.
0: Disabled
1: Enabled

ETHSW FES FRER_ENTRIES generic register
(ETHSW_FES_FRER_ENTRIESR)

Address offset: 0x80E026

Reset value: 0x000A

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FRER_ENTRIES[3:0]
rrrr

Bits 15:4 Reserved, must be kept at reset value.

Bits 3:0 FRER_ENTRIES[3:0] : The value of generic FRER_ENTRIES

Number of entries supported by FRER sequence generation and recovery functions.

Allowed values are 7 to 10.

7: 128 entries

8: 256 entries

...

10: 1024 entries

ETHSW FES FRER_STREAMS generic register
(ETHSW_FES_FRER_STREAMSR)

Address offset: 0x80E028

Reset value: 0x0007

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FRER_STREAMS[3:0]
rrrr

Bits 15:4 Reserved, must be kept at reset value.

Bits 3:0 FRER_STREAMS[3:0] : The value of generic FRER_STREAMS

Number of streams supported by FRER functionality.

Allowed values are 7 to 10.

7: 128 streams

8: 256 streams

...

10: 1024 streams

ETHSW FES FIDS generic register (ETHSW_FES_FIDSR)

Address offset: 0x80E02A

Reset value: 0x0006

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FIDS[5:0]
rrrrrr

Bits 15:6 Reserved, must be kept at reset value.

Bits 5:0 FIDS[5:0]: The value of generic FIDS

Number of filtering IDs

Allowed values are 0, 2 and 6.

0: Feature does not exist

2: 4 FIDs

6: 64 FIDs

ETHSW FES DMA_PORTS generic register (ETHSW_FES_DMA_PORTSR)

Address offset: 0x80E02C

Reset value: 0x0000

1514131211109876543210
Res.Res.Res.Res.DMA_PORTS[11:0]
rrrrrrrrrrrr

Bits 15:12 Reserved, must be kept at reset value.

Bits 11:0 DMA_PORTS[11:0]: The value of generic DMA_PORTS

Bit index 0 corresponds port 0, Bit index 1 corresponds port 1, and so on.

0: Disabled

1: Enabled

ETHSW FES DMA_TX_DESC_RING generic register (ETHSW_FES_DMA_TX_DESC_RINGR)

Address offset: 0x80E02E

Reset value: 0x0001

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DMA_TX_DESC_RING[3:0]
rrrr

Bits 15:4 Reserved, must be kept at reset value.

Bits 3:0 DMA_TX_DESC_RING[3:0]: The value of generic DMA_TX_DESC_RING

Number of DMA transmit descriptor rings.

ETHSW FES DMA_RX_DESC_RING generic register (ETHSW_FES_DMA_RX_DESC_RINGR)

Address offset: 0x80E030

Reset value: 0x0001

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DMA_RX_DESC_RING[3:0]
rrrr

Bits 15:4 Reserved, must be kept at reset value.

Bits 3:0 DMA_RX_DESC_RING[3:0]: The value of generic DMA_RX_DESC_RING
Number of DMA receive descriptor rings.

ETHSW FES PSFP generic register (ETHSW_FES_PSFPR)

Address offset: 0x80E032

Reset value: 0x0000

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PSFP
r

Bits 15:1 Reserved, must be kept at reset value.

Bit 0 PSFP: The value of generic PSFP
Per stream filtering and policing.

ETHSW FES PSFP_STREAMS generic register (ETHSW_FES_PSFP_STREAMSR)

Address offset: 0x80E034

Reset value: 0x0007

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PSFP_STREAMS[3:0]
rrrr

Bits 15:4 Reserved, must be kept at reset value.

Bits 3:0 PSFP_STREAMS[3:0]: The value of generic PSFP_STREAMS
Number of streams supported by PSFP functionality.
Presented in powers of two:
7: 128
8: 256
9: 512
10: 1024 streams

ETHSW FES CFG_CLK_FREQ register (ETHSW_FES_CFG_CLK_FREQR)

Address offset: 0x80E100

Reset value: 0x00C8

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.CFG_CLK_FREQ[7:0]
rrrrrrrr
ST logo
ST logo

Bits 15:8 Reserved, must be kept at reset value.

Bits 7:0 CFG_CLK_FREQ[7:0]: The value of generic CFG_CLK_FREQ
The current state of signal cfg_clk_freq(7:0).

ETHSW FES DEBUG_IN register (ETHSW_FES_DEBUG_INR)

Address offset: 0x80E110

Reset value: 0x0000

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DEBUG_IN
r

Bits 15:1 Reserved, must be kept at reset value.

Bit 0 DEBUG_IN: The value of generic DEBUG_IN
The current state of signal debug_in.

ETHSW FES hold advance 10M register (ETHSW_FES_H_ADV_10R)

Address offset: 0x80E200

Reset value: 0x0000

1514131211109876543210
HOLD_ADV_MII[7:0]HOLD_ADV_CLK[7:0]
rrrrrrrrrrrrrrrr

Bits 15:8 HOLD_ADV_MII[7:0]: holdadvance_mii_cycles value
Hold advance in mii cycles, 10 Mbit/s line speed.

Bits 7:0 HOLD_ADV_CLK[7:0]: holdadvance_clk_cycles value
Hold advance in clock cycles, 10 Mbit/s line speed.

The maximum possible time from rising edge of the hold signal to the point where the last nibble of the last byte of any ongoing or queued preemptable frame is present in the MII interface.

The formula for Hold Advance is:

\[\text{hold\_advance\_ns} = \text{clk\_cycle\_ns} * \text{holdadvance\_clk\_cycles} + \text{mii\_cycle\_ns} * (2 * (128 + \text{addfragsize} * 64) + \text{holdadvance\_mii\_cycles})\]

where:

hold_advance_ns = Hold Advance in nanoseconds

clk_cycle_ns = length of the clk cycle in nanoseconds

mii_cycle_ns = length of the tx_clk cycle in nanoseconds (400 ns)

addfragsize = the configured value (from 0 to 3) for AddFragSize in ETHSW FES port x TX preemptable traffic selection register 1 (ETHSW_FESx_TX_PREE1R) (x = 1 to 2)

holdadvance_clk_cycles = the value configured in this register, bits (7:0)

holdadvance_mii_cycles = the value configured in this register, bits (15:8)

ST logo
ST logo

ETHSW FES hold advance 100M register (ETHSW_FES_H_ADV_100R)

Address offset: 0x80E202

Reset value: 0x0000

1514131211109876543210
HOLD_ADV_MII[7:0]HOLD_ADV_CLK[7:0]
rrrrrrrrrrrrrrrr

Bits 15:8 HOLD_ADV_MII[7:0]: holdadvance_mii_cycles value
Hold advance in mii cycles, 100 Mbit/s line speed.

Bits 7:0 HOLD_ADV_CLK[7:0]: holdadvance_clk_cycles value
Hold advance in clock cycles, 100 Mbit/s line speed.

The maximum possible time from rising edge of the hold signal to the point where the last nibble of the last byte of any ongoing or queued preemptable frame is present in the MII interface.

The formula for Hold Advance is:

\(\text{hold\_advance\_ns} = \text{clk\_cycle\_ns} * \text{holdadvance\_clk\_cycles} + \text{mii\_cycle\_ns} * (2 * (128 + \text{addfragsize} * 64) + \text{holdadvance\_mii\_cycles})\)

where:

hold_advance_ns = Hold Advance in nanoseconds

clk_cycle_ns = length of the clk cycle in nanoseconds

mii_cycle_ns = length of the tx_clk cycle in nanoseconds (40 ns)

addfragsize = the configured value (from 0 to 3) for AddFragSize in ETHSW FES port x TX preemptable traffic selection register 1 (ETHSW_FESx_TX_PREE1R) (x = 1 to 2)

holdadvance_clk_cycles = the value configured in this register, bits (7:0)

holdadvance_mii_cycles = the value configured in this register, bits (15:8)

ETHSW FES hold advance 1000M register (ETHSW_FES_H_ADV_1000R)

Address offset: 0x80E204

Reset value: 0x0000

1514131211109876543210
HOLD_ADV_GMII[7:0]HOLD_ADV_CLK[7:0]
rrrrrrrrrrrrrrrr

Bits 15:8 HOLD_ADV_GMII[7:0]: holdadvance_gmii_cycles value
Hold advance in gmii cycles, 1000 Mbit/s line speed.

Bits 7:0 HOLD_ADV_CLK[7:0]: holdadvance_clk_cycles value
Hold advance in clock cycles, 1000 Mbit/s line speed

The maximum possible time from rising edge of the hold signal to the point where the last byte of any ongoing or queued preemptable frame is present in the GMII interface.

The formula for Hold Advance is:

hold_advance_ns = clk_cycle_ns * holdadvance_clk_cycles + gmii_cycle_ns * (2 * (128 + addfragsize * 64) + holdadvance_gmii_cycles)

where:

hold_advance_ns = Hold Advance in nanoseconds

clk_cycle_ns = length of the clk cycle in nanoseconds

gmii_cycle_ns = length of the tx_clk cycle in nanoseconds (8 ns)

addfragsize = the configured value (from 0 to 3) for AddFragSize in ETHSW FES port x TX preemptable traffic selection register 1 (ETHSW_FESx_TX_PREE1R) (x = 1 to 2)

holdadvance_clk_cycles = the value configured in this register, bits (7:0)

holdadvance_gmii_cycles = the value configured in this register, bits (15:8)

ETHSW FES release advance 10M register (ETHSW_FES_R_ADV_10R)

Address offset: 0x80E208

Reset value: 0x0000

1514131211109876543210
REL_ADV_MII[7:0]REL_ADV_CLK[7:0]
rrrrrrrrrrrrrrrr

Bits 15:8 REL_ADV_MII[7:0]: releaseadvance_mii_cycles value
Release advance in mii cycles, 10 Mbit/s line speed.

Bits 7:0 REL_ADV_CLK[7:0]: releaseadvance_clk_cycles value
Release advance in clock cycles, 10 Mbit/s line speed

The maximum possible time from falling edge of the hold signal to the point where the transmission of a preemptable frame continues in case there is no express frame to transmit. The time is measured to the point when the frame timestamp point is in the MII interface.

The formula for Release Advance is:

release_advance_ns = clk_cycle_ns * releaseadvance_clk_cycles + mii_cycle_ns * releaseadvance_mii_cycles

where:

release_advance_ns = Release Advance in nanoseconds

clk_cycle_ns = length of the clk cycle in nanoseconds

mii_cycle_ns = length of the tx_clk cycle in nanoseconds (400 ns)

releaseadvance_clk_cycles = the value configured in this register, bits (7:0)

releaseadvance_mii_cycles = the value configured in this register, bits (15:8)

ST logo
ST logo

ETHSW FES release advance 100M register (ETHSW_FES_R_ADV_100R)

Address offset: 0x80E20A

Reset value: 0x0000

1514131211109876543210
REL_ADV_MII[7:0]REL_ADV_CLK[7:0]
rrrrrrrrrrrrrrrr

Bits 15:8 REL_ADV_MII[7:0]: releaseadvance_mii_cycles value
Release advance in mii cycles, 100 Mbit/s line speed.

Bits 7:0 REL_ADV_CLK[7:0]: releaseadvance_clk_cycles value
Release advance in clock cycles, 100 Mbit/s line speed

The maximum possible time from falling edge of the hold signal to the point where the transmission of a preemptable frame continues in case there is no express frame to transmit. The time is measured to the point when the frame timestamp point is in the MII interface.

The formula for Release Advance is:

\[\text{release\_advance\_ns} = \text{clk\_cycle\_ns} * \text{releaseadvance\_clk\_cycles} + \text{mii\_cycle\_ns} * \text{releaseadvance\_mii\_cycles}\]
where:
release_advance_ns = Release Advance in nanoseconds
clk_cycle_ns = length of the clk cycle in nanoseconds
mii_cycle_ns = length of the tx_clk cycle in nanoseconds (40 ns)
releaseadvance_clk_cycles = the value configured in this register, bits (7:0)
releaseadvance_mii_cycles = the value configured in this register, bits (15:8)

ETHSW FES release advance 1000M register (ETHSW_FES_R_ADV_1000R)

Address offset: 0x80E20C

Reset value: 0x0000

1514131211109876543210
REL_ADV_GMII[7:0]REL_ADV_CLK[7:0]
rrrrrrrrrrrrrrrr
ST logo
ST logo

Bits 15:8 REL_ADV_GMII[7:0]: releaseadvance_gmii_cycles value
Release advance in gmii cycles, 1000 Mbit/s line speed.

Bits 7:0 REL_ADV_CLK[7:0]: releaseadvance_clk_cycles value
Release advance in clock cycles, 1000 Mbit/s line speed

The maximum possible time from falling edge of the hold signal to the point where the transmission of a preemptable frame continues in case there is no express frame to transmit. The time is measured to the point when the frame timestamp point is in the GMII interface. The formula for Release Advance is:

\[\text{release\_advance\_ns} = \text{clk\_cycle\_ns} * \text{releaseadvance\_clk\_cycles} + \text{gmii\_cycle\_ns} * \text{releaseadvance\_gmii\_cycles}\]
where:
release_advance_ns = Release Advance in nanoseconds
clk_cycle_ns = length of the clk cycle in nanoseconds
gmii_cycle_ns = length of the tx_clk cycle in nanoseconds (8 ns)
releaseadvance_clk_cycles = the value configured in this register, bits (7:0)
releaseadvance_gmii_cycles = the value configured in this register, bits (15:8)

ETHSW FES minimum input to gate delay 10M register (ETHSW_FES_I_TO_G_MIN_10R)

Address offset: 0x80E210

Reset value: 0x0000

1514131211109876543210
I_TO_G_MIN_MII[7:0]I_TO_G_MIN_CLK[7:0]
rrrrrrrrrrrrrrrr

Bits 15:8 I_TO_G_MIN_MII[7:0]: inputtogate_mii_cycles value
Minimum Input to Gate delay in mii cycles, 10 Mbit/s line speed.

Bits 7:0 I_TO_G_MIN_CLK[7:0]: inputtogate_clk_cycles value
Minimum Input to Gate delay in clock cycles, 10 Mbit/s line speed

The minimum possible time it takes for a frame to travel from input to gate. The time is measured from the point when the frame timestamp point is in the MII interface to the earliest point where gate_state signal may affect the frame. The formula for input to gate delay is:

\[\text{inputtogate\_ns} = \text{clk\_cycle\_ns} * \text{inputtogate\_clk\_cycles} + \text{mii\_cycle\_ns} * \text{inputtogate\_mii\_cycles}\]
where:
inputtogate_ns = Input to Gate delay in nanoseconds
clk_cycle_ns = length of the clk cycle in nanoseconds
mii_cycle_ns = length of the rx_clk cycle in nanoseconds (400 ns)
inputtogate_clk_cycles = the value configured in this register, bits (7:0)
inputtogate_mii_cycles = the value configured in this register, bits (15:8)

ST logo
ST logo

ETHSW FES minimum input to gate delay 100M register
(ETHSW_FES_I_TO_G_MIN_100R)

Address offset: 0x80E212

Reset value: 0x0000

1514131211109876543210
I_TO_G_MIN_MII[7:0]I_TO_G_MIN_CLK[7:0]
rrrrrrrrrrrrrrrr

Bits 15:8 I_TO_G_MIN_MII[7:0]: inputtogate_mii_cycles value
Minimum Input to Gate delay in mii cycles, 100 Mbit/s line speed.

Bits 7:0 I_TO_G_MIN_CLK[7:0]: inputtogate_clk_cycles value
Minimum Input to Gate delay in clock cycles, 100 Mbit/s line speed

The minimum possible time it takes for a frame to travel from input to gate. The time is measured from the point when the frame timestamp point is in the MII interface to the earliest point where gate_state signal may affect the frame.

The formula for input to gate delay is:

\[\text{inputtogate\_ns} = \text{clk\_cycle\_ns} * \text{inputtogate\_clk\_cycles} + \text{mii\_cycle\_ns} * \text{inputtogate\_mii\_cycles}\]

where:

inputtogate_ns = Input to Gate delay in nanoseconds

clk_cycle_ns = length of the clk cycle in nanoseconds

mii_cycle_ns = length of the rx_clk cycle in nanoseconds (40 ns)

inputtogate_clk_cycles = the value configured in this register, bits (7:0)

inputtogate_mii_cycles = the value configured in this register, bits (15:8)

ETHSW FES minimum input to gate delay 1000M register
(ETHSW_FES_I_TO_G_MIN_1000R)

Address offset: 0x80E214

Reset value: 0x0000

1514131211109876543210
I_TO_G_MIN_GMII[7:0]I_TO_G_MIN_CLK[7:0]
rrrrrrrrrrrrrrrr
ST logo
ST logo

Bits 15:8 I_TO_G_MIN_GMII[7:0]: inputtogate_gmii_cycles value
Minimum Input to Gate delay in gmii cycles, 1000 Mbit/s line speed.

Bits 7:0 I_TO_G_MIN_CLK[7:0]: inputtogate_clk_cycles value
Minimum Input to Gate delay in clock cycles, 1000 Mbit/s line speed

The minimum possible time it takes for a frame to travel from input to gate. The time is measured from the point when the frame timestamp point is in the GMII interface to the earliest point where gate_state signal may affect the frame.

The formula for input to gate delay is:

\[\text{inputtogate\_ns} = \text{clk\_cycle\_ns} * \text{inputtogate\_clk\_cycles} + \text{gmii\_cycle\_ns} * \text{inputtogate\_gmii\_cycles}\]

where:

inputtogate_ns = Input to Gate delay in nanoseconds

clk_cycle_ns = length of the clk cycle in nanoseconds

gmii_cycle_ns = length of the rx_clk cycle in nanoseconds (8 ns)

inputtogate_clk_cycles = the value configured in this register, bits (7:0)

inputtogate_gmii_cycles = the value configured in this register, bits (15:8)

ETHSW FES maximum input to gate delay 10M register
(ETHSW_FES_I_TO_G_MAX_10R)

Address offset: 0x80E218

Reset value: 0x0000

1514131211109876543210
I_TO_G_MAX_MII[7:0]I_TO_G_MAX_CLK[7:0]
rrrrrrrrrrrrrrrr

Bits 15:8 I_TO_G_MAX_MII[7:0]: inputtogate_mii_cycles value
Maximum Input to Gate delay in mii cycles, 10 Mbit/s line speed.

Bits 7:0 I_TO_G_MAX_CLK[7:0]: inputtogate_clk_cycles value
Maximum Input to Gate delay in clock cycles, 10 Mbit/s line speed

The maximum possible time it takes for a frame to travel from input to gate. The time is measured from the point when the frame timestamp point is in the MII interface to the earliest point where gate_state signal may affect the frame.

The formula for input to gate maximum delay is:

\[\text{inputtogate\_ns} = \text{clk\_cycle\_ns} * \text{inputtogate\_clk\_cycles} + \text{mii\_cycle\_ns} * (2 * \text{framesize\_bytes} + \text{inputtogate\_mii\_cycles})\]

where:

inputtogate_ns = Input to Gate delay in nanoseconds

clk_cycle_ns = length of the clk cycle in nanoseconds

mii_cycle_ns = length of the rx_clk cycle in nanoseconds (400 ns)

framesize_bytes = the length of the frame in bytes, not including preamble, not including SFD/SMD

inputtogate_clk_cycles = the value configured in this register, bits (7:0)

inputtogate_mii_cycles = the value configured in this register, bits (15:8)

ST logo
ST logo

ETHSW FES maximum input to gate delay 100M register
(ETHSW_FES_I_TO_G_MAX_100R)

Address offset: 0x80E21A

Reset value: 0x0000

1514131211109876543210
I_TO_G_MAX_MII[7:0]I_TO_G_MAX_CLK[7:0]
rrrrrrrrrrrrrrrr

Bits 15:8 I_TO_G_MAX_MII[7:0]: inputtogate_mii_cycles value

Maximum Input to Gate delay in mii cycles, 100 Mbit/s line speed.

Bits 7:0 I_TO_G_MAX_CLK[7:0]: inputtogate_clk_cycles value

Maximum Input to Gate delay in clock cycles, 100 Mbit/s line speed

The maximum possible time it takes for a frame to travel from input to gate. The time is measured from the point when the frame timestamp point is in the MII interface to the earliest point where gate_state signal may affect the frame.

The formula for input to gate maximum delay is:

\[\text{inputtogate\_ns} = \text{clk\_cycle\_ns} * \text{inputtogate\_clk\_cycles} + \text{mii\_cycle\_ns} * (2 * \text{framesize\_bytes} + \text{inputtogate\_mii\_cycles})\]

where:

inputtogate_ns = Input to Gate delay in nanoseconds

clk_cycle_ns = length of the clk cycle in nanoseconds

mii_cycle_ns = length of the rx_clk cycle in nanoseconds (40 ns)

framesize_bytes = the length of the frame in bytes, not including preamble, not including SFD/SMD

inputtogate_clk_cycles = the value configured in this register, bits (7:0)

inputtogate_mii_cycles = the value configured in this register, bits (15:8)

ETHSW FES maximum input to gate delay 1000M register
(ETHSW_FES_I_TO_G_MAX_1000R)

Address offset: 0x80E21C

Reset value: 0x0000

1514131211109876543210
I_TO_G_MAX_GMII[7:0]I_TO_G_MAX_CLK[7:0]
rrrrrrrrrrrrrrrr

Bits 15:8 I_TO_G_MAX_GMII[7:0]: inputtogate_gmii_cycles value
Maximum Input to Gate delay in mii cycles, 1000 Mbit/s line speed.

Bits 7:0 I_TO_G_MAX_CLK[7:0]: inputtogate_clk_cycles value
Maximum Input to Gate delay in clock cycles, 1000 Mbit/s line speed

The maximum possible time it takes for a frame to travel from input to gate. The time is measured from the point when the frame timestamp point is in the GMII interface to the earliest point where gate_state signal may affect the frame.
The formula for input to gate maximum delay is:

\[\text{inputtogate\_ns} = \text{clk\_cycle\_ns} * \text{inputtogate\_clk\_cycles} + \text{gmii\_cycle\_ns} * (\text{framesize\_bytes} + \text{inputtogate\_gmii\_cycles})\]
where:
inputtogate_ns = Input to Gate delay in nanoseconds
clk_cycle_ns = length of the clk cycle in nanoseconds
gmii_cycle_ns = length of the rx_clk cycle in nanoseconds (8 ns)
framesize_bytes = the length of the frame in bytes, not including preamble, not including SFD/SMD
inputtogate_clk_cycles = the value configured in this register, bits (7:0)
inputtogate_gmii_cycles = the value configured in this register, bits (15:8)

ETHSW FES minimum gate to output delay 10M register (ETHSW_FES_G_TO_O_MIN_10R)

Address offset: 0x80E220

Reset value: 0x0000

1514131211109876543210
G_TO_O_MIN_MII[7:0]G_TO_O_MIN_CLK[7:0]
rrrrrrrrrrrrrrrr

Bits 15:8 G_TO_O_MIN_MII[7:0]: gatetooutput_mii_cycles value
Minimum Input to Gate delay in mii cycles, 10 Mbit/s line speed.

Bits 7:0 G_TO_O_MIN_CLK[7:0]: gatetooutput_clk_cycles value
Minimum Gate to Output delay, 10 Mbit/s line speed

The minimum possible time it takes for a frame to travel from gate to output. The time is measured from the rising edge of gate_state signal to the point when the frame timestamp point is in the MII interface.
The formula for gate to output delay is:

\[\text{gatetooutput\_ns} = \text{clk\_cycle\_ns} * \text{gatetooutput\_clk\_cycles} + \text{mii\_cycle\_ns} * \text{gatetooutput\_mii\_cycles}\]
where:
gatetotoutput_ns = Gate to Output delay in nanoseconds
clk_cycle_ns = length of the clk cycle in nanoseconds
mii_cycle_ns = length of the tx_clk cycle in nanoseconds (400 ns)
gatetooutput_clk_cycles = the value configured in this register, bits (7:0)
gatetooutput_mii_cycles = the value configured in this register, bits (15:8)

ST logo
ST logo

ETHSW FES minimum gate to output delay 100M register
(ETHSW_FES_G_TO_O_MIN_100R)

Address offset: 0x80E222

Reset value: 0x0000

1514131211109876543210
G_TO_O_MIN_MII[7:0]G_TO_O_MIN_CLK[7:0]
rrrrrrrrrrrrrrrr

Bits 15:8 G_TO_O_MIN_MII[7:0]: gatetooutput_mii_cycles value

Minimum Input to Gate delay in mii cycles, 100 Mbit/s line speed.

Bits 7:0 G_TO_O_MIN_CLK[7:0]: gatetooutput_clk_cycles value

Minimum Gate to Output delay, 100 Mbit/s line speed

The minimum possible time it takes for a frame to travel from gate to output. The time is measured from the rising edge of gate_state signal to the point when the frame timestamp point is in the MII interface.

The formula for gate to output delay is:

\[\text{gatetooutput\_ns} = \text{clk\_cycle\_ns} * \text{gatetooutput\_clk\_cycles} + \text{mii\_cycle\_ns} * \text{gatetooutput\_mii\_cycles}\]

where:

gatetotoutput_ns = Gate to Output delay in nanoseconds

clk_cycle_ns = length of the clk cycle in nanoseconds

mii_cycle_ns = length of the tx_clk cycle in nanoseconds (40 ns)

gatetooutput_clk_cycles = the value configured in this register, bits (7:0)

gatetooutput_mii_cycles = the value configured in this register, bits (15:8)

ETHSW FES minimum gate to output delay 1000M register
(ETHSW_FES_G_TO_O_MIN_1000R)

Address offset: 0x80E224

Reset value: 0x0000

1514131211109876543210
G_TO_O_MIN_GMII[7:0]G_TO_O_MIN_CLK[7:0]
rrrrrrrrrrrrrrrr

Bits 15:8 G_TO_O_MIN_GMII[7:0]: gatetooutput_gmii_cycles value
Minimum Input to Gate delay in gmii cycles, 1000 Mbit/s line speed.

Bits 7:0 G_TO_O_MIN_CLK[7:0]: gatetooutput_clk_cycles value
Minimum Gate to Output delay, 1000 Mbit/s line speed

The minimum possible time it takes for a frame to travel from gate to output. The time is measured from the rising edge of gate_state signal to the point when the frame timestamp point is in the GMII interface.

The formula for gate to output delay is:

\[\text{gatetooutput\_ns} = \text{clk\_cycle\_ns} * \text{gatetooutput\_clk\_cycles} + \text{gmii\_cycle\_ns} * \text{gatetooutput\_gmii\_cycles}\]

where:

gatetooutput_ns = Gate to Output delay in nanoseconds

clk_cycle_ns = length of the clk cycle in nanoseconds

gmii_cycle_ns = length of the tx_clk cycle in nanoseconds (8 ns)

gatetooutput_clk_cycles = the value configured in this register, bits (7:0)

gatetooutput_gmii_cycles = the value configured in this register, bits (15:8)

ETHSW FES maximum gate to output delay 10M register
(ETHSW_FES_G_TO_O_MAX_10R)

Address offset: 0x80E228

Reset value: 0x0000

1514131211109876543210
G_TO_O_MAX_MII[7:0]G_TO_O_MAX_CLK[7:0]
rrrrrrrrrrrrrrrr

Bits 15:8 G_TO_O_MAX_MII[7:0]: gatetooutput_mii_cycles value
Maximum Input to Gate delay in mii cycles, 10 Mbit/s line speed.

Bits 7:0 G_TO_O_MAX_CLK[7:0]: gatetooutput_clk_cycles value
Maximum Gate to Output delay, 10 Mbit/s line speed

The maximum possible time it takes for a frame to travel from gate to output, when there is no other frame blocking the transmission. The time is measured from the rising edge of gate_state signal to the point when the frame timestamp point (Figure 1134) is in the MII interface. The formula is the same as for the minimum presented in ETHSW FES minimum gate to output delay 10M register (ETHSW_FES_G_TO_O_MIN_10R) description.

ETHSW FES maximum gate to output delay 100M register
(ETHSW_FES_G_TO_O_MAX_100R)

Address offset: 0x80E22A

Reset value: 0x0000

1514131211109876543210
G_TO_O_MAX_MII[7:0]G_TO_O_MAX_CLK[7:0]
rrrrrrrrrrrrrrrr

Bits 15:8 G_TO_O_MAX_MII[7:0]: gatetooutput_mii_cycles value
Maximum Input to Gate delay in mii cycles, 100 Mbit/s line speed.

Bits 7:0 G_TO_O_MAX_CLK[7:0]: gatetooutput_clk_cycles value
Maximum Gate to Output delay, 100 Mbit/s line speed.

The maximum possible time it takes for a frame to travel from gate to output, when there is no other frame blocking the transmission. The time is measured from the rising edge of gate_state signal to the point when the frame timestamp point (Figure 1134) is in the MII interface. The formula is the same as for the minimum presented in ETHSW FES minimum gate to output delay 100M register (ETHSW_FES_G_TO_O_MIN_100R) description.

ETHSW FES maximum gate to output delay 1000M register (ETHSW_FES_G_TO_O_MAX_1000R)

Address offset: 0x80E22C

Reset value: 0x0000

column_1column_2Bits 15:8 Bits 7:0column_4column_5column_6column_7column_8column_9column_10column_11column_12Figure 1134column_14) is in the MII description.RM0457
1514131211109876543210
rrrrrrrrrrrrrrrr
Bits 15:8G_TO_O_MAX_GMII[7:0]: gatetooutput_gmii_cycles value
Bits 7:0G_TO_O_MAX_CLK[7:0]: gatetooutput_clk_cycles value
gate_state signal to the point when the frame timestamp point (Figure 1134) is in the MII
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
C S 0 A P T U R E P P P _
C A P T U R E P E _
C S1 A P T U R E P P P _
rrr

Bits 15:8 G_TO_O_MAX_GMII[7:0]: gatetooutput_gmii_cycles value
Maximum Input to Gate delay in gmii cycles, 1000 Mbit/s line speed.

Bits 7:0 G_TO_O_MAX_CLK[7:0]: gatetooutput_clk_cycles value
Maximum Gate to Output delay, 1000 Mbit/s line speed

The maximum possible time it takes for a frame to travel from gate to output, when there is no other frame blocking the transmission. The time is measured from the rising edge of gate_state signal to the point when the frame timestamp point (Figure 1134) is in the MII interface. The formula is the same as for the minimum presented in ETHSW FES minimum gate to output delay 1000M register (ETHSW_FES_G_TO_O_MIN_1000R) description.

ETHSW FES capture status 0 register (ETHSW_FES_CAPT0R)

Address offset: 0x80F000

Reset value: 0x0000

Bits 15:6 Reserved, must be kept at reset value.

Bit 5 CAPTURE_PPPS1: Capture PPPS1

Value 1 in this bit indicates ongoing capture for per-port per-stream counters for the port and stream that are configured in ETHSW FES capture control 3 register (ETHSW_FES_CAPT3R).

When the capturing is finished, the counter values are written into the registers:

FES clears this bit when the captured values can be read from the registers.

Bit 4 CAPTURE_PPPS0: Capture PPPS0

Value 1 in this bit indicates ongoing capture for per-port per-stream counters for the port and stream that are configured in CAPT2 register. When the capturing is finished, the counter values are written into the registers:

FES clears this bit when the captured values can be read from the registers.

The counters do not saturate to their maximum values, they wrap around and start from zero again. The counters are not reset when captured.

Bits 3:1 Reserved, must be kept at reset value.

Bit 0 CAPTURE_PE: Capture PE

Value 1 in this bit indicates ongoing capture for the per-entity counters for the sequence recovery function entity whose number is configured in CAPT1 register.

When the capturing is finished, the counter values are written into the registers:

FES clears this bit when the captured values can be read from the registers.

The counters do not saturate to their maximum values, they wrap around and start from zero again. The counters are not reset when captured.

ETHSW FES capture control 1 register (ETHSW_FES_CAPT1R)

Address offset: 0x80F002

Reset value: 0x0000

1514131211109876543210
Res.Res.Res.Res.ENTITY[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw

Bits 15:12 Reserved, must be kept at reset value.

Bits 11:0 ENTITY[11:0] : Entity

The number of the sequence recovery function entity whose counters are to be captured.
Per-entity counter capture control register controls for which sequence recovery function entity the per-entity counters are captured and written to registers:

Writing to this register triggers the capture.

ETHSW FES capture control 2 register (ETHSW_FES_CAPT2R)

Address offset: 0x80F004

Reset value: 0x0000

1514131211109876543210
STREAM[11:0]PORT[3:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
Bits 15:4 STREAM[11:0] : Stream

The number of the stream whose per-port per-stream counters are to be captured and written to registers:

Writing to this register triggers the capture.

Bits 3:0 PORT[3:0]: Port

The number of the port whose per-port per-stream counters are to be captured and written to registers:

Writing to this register triggers the capture.

ETHSW FES capture control 3 register (ETHSW_FES_CAPT3R)

Address offset: 0x80F006

Reset value: 0x0000

1514131211109876543210
STREAM[11:0]PORT[3:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 15:4 STREAM[11:0]: Stream

The number of the stream whose per-port per-stream counters are to be captured and written to registers:

Writing to this register triggers the capture.

Bits 3:0 PORT[3:0]: Port

The number of the port whose per-port per-stream counters are to be captured and written to registers:

Writing to this register triggers the capture.

ETHSW FES sequence recovery timeouts low register (ETHSW_FES_SEQ_REC_TOUT_LR)

Address offset: 0x80F200

Reset value: 0x0000

1514131211109876543210
COUNTER[15:0]
rrrrrrrrrrrrrrrr

Bits 15:0 COUNTER[15:0]: Counter value, bits (15:0)

Sequence recovery timeouts (least significant part).

ETHSW FES sequence recovery timeouts high register (ETHSW_FES_SEQ_REC_TOUT_HR)

Address offset: 0x80F202

Reset value: 0x0000

1514131211109876543210
COUNTER[31:16]
rrrrrrrrrrrrrrrr

Bits 15:0 COUNTER[31:16]: Counter value, bits (31:16)

Sequence recovery timeouts (most significant part).

ST logo
ST logo

ETHSW FES vector recovery jump ahead low register
(ETHSW_FES_VECT_JUMP_LR)

Address offset: 0x80F204

Reset value: 0x0000

1514131211109876543210
COUNTER[15:0]
rrrrrrrrrrrrrrrr

Bits 15:0 COUNTER[15:0]: Counter value, bits (15:0)

Number of sequence numbers (least significant part) over which the latest sequence number has jumped. The number of frames (sequence numbers) that were not received at all, or came in too late to be accepted, is:

Vector_jumpaheads – Seq_recovery_outoforder.

ETHSW FES vector recovery jump ahead high register
(ETHSW_FES_VECT_JUMP_HR)

Address offset: 0x80F206

Reset value: 0x0000

1514131211109876543210
COUNTER[31:16]
rrrrrrrrrrrrrrrr

Bits 15:0 COUNTER[31:16]: Counter value, bits (31:16)

Number of sequence numbers (most significant part) over which the latest sequence number has jumped. The number of frames (sequence numbers) that were not received at all, or came in too late to be accepted, is:

Vector_jumpaheads – Seq_recovery_outoforder.

ETHSW FES vector recovery out of order frames low register
(ETHSW_FES_SEQ_REC_OOO_LR)

Address offset: 0x80F208

Reset value: 0x0000

1514131211109876543210
COUNTER[15:0]
rrrrrrrrrrrrrrrr

Bits 15:0 COUNTER[15:0]: Counter value, bits (15:0)

Number of frames that came in out of order (least significant part). The number of frames (sequence numbers) that were not received at all, or came in too late to be accepted, is:

Vector_jumpaheads – Seq_recovery_outoforder.

ETHSW FES vector recovery out of order frames high register
(ETHSW_FES_SEQ_REC_OOO_HR)

Address offset: 0x80F20A

Reset value: 0x0000

1514131211109876543210
COUNTER[31:16]
rrrrrrrrrrrrrrrr

Bits 15:0 COUNTER[31:16]: Counter value, bits (31:16)

Number of frames that came in out of order (most significant part). The number of frames (sequence numbers) that were not received at all, or came in too late to be accepted, is:
Vector_jumpahheads – Seq_recovery_outoforder.

ETHSW FES input frames low register (ETHSW_FES_FRAMES_IN_LR)

Address offset: 0x80F300

Reset value: 0x0000

1514131211109876543210
COUNTER[15:0]
rrrrrrrrrrrrrrrr

Bits 15:0 COUNTER[15:0]: Counter value, bits (15:0)

Number of frames input to the port (least significant part). Frames that were not identified to belong to any stream are not counted at all.

ETHSW FES input frames high register (ETHSW_FES_FRAMES_IN_HR)

Address offset: 0x80F302

Reset value: 0x0000

1514131211109876543210
COUNTER[31:16]
rrrrrrrrrrrrrrrr

Bits 15:0 COUNTER[31:16]: Counter value, bits (31:16)

Number of frames input to the port (most significant part). Frames that were not identified to belong to any stream are not counted at all.

ETHSW FES output frames low register (ETHSW_FES_FRAMES_OUT_LR)

Address offset: 0x80F304

Reset value: 0x0000

1514131211109876543210
COUNTER[15:0]
rrrrrrrrrrrrrrrr

Bits 15:0 COUNTER[15:0]: Counter value, bits (15:0)

Number of frames forwarded to the output port (least significant part). Frames forwarded to multiple output ports increase the counter for every output port. Frames not identified to belong to any stream are not counted at all.

ETHSW FES output frames high register (ETHSW_FES_FRAMES_OUT_HR)

Address offset: 0x80F306

Reset value: 0x0000

1514131211109876543210
COUNTER[31:16]
rrrrrrrrrrrrrrrr

Bits 15:0 COUNTER[31:16]: Counter value, bits (31:16)

Number of frames forwarded to the output port (most significant part). Frames forwarded to multiple output ports increase the counter for every output port. Frames not identified to belong to any stream are not counted at all.

ETHSW FES vector recovery out of order frames low register (ETHSW_FES_SEQ_REC_OOO2_LR)

Address offset: 0x80F308

Reset value: 0x0000

1514131211109876543210
COUNTER[15:0]
rrrrrrrrrrrrrrrr

Bits 15:0 COUNTER[15:0]: Counter value, bits (15:0)

Number of frames that were out of order (least significant part). The port is the output port. Frames forwarded to multiple output ports increase the counter for every output port. Frames not identified to belong to any stream are not counted at all.

ETHSW FES vector recovery out of order frames high register (ETHSW_FES_SEQ_REC_OOO2_HR)

Address offset: 0x80F30A

Reset value: 0x0000

1514131211109876543210
COUNTER[31:16]
rrrrrrrrrrrrrrrr

Bits 15:0 COUNTER[31:16]: Counter value, bits (31:16)

Number of frames that were out of order (most significant part). The port is the output port. Frames forwarded to multiple output ports increase the counter for every output port. Frames not identified to belong to any stream are not counted at all.

ST logo
ST logo

ETHSW FES vector recovery rogue frames low register
(ETHSW_FES_VECT_ROG_LR)

Address offset: 0x80F30C

Reset value: 0x0000

1514131211109876543210
COUNTER[15:0]
rrrrrrrrrrrrrrrr

Bits 15:0 COUNTER[15:0]: Counter value, bits (15:0)

Number of frames that were discarded because their sequence number was too far from the last accepted sequence number (least significant part). For each discarded frame, the counter is incremented for every port where to the frame would have been forwarded, if it was not discarded by the recovery algorithm. Frames not identified to belong to any stream are not counted at all.

ETHSW FES vector recovery rogue frames high register
(ETHSW_FES_VECT_ROG_HR)

Address offset: 0x80F30E

Reset value: 0x0000

1514131211109876543210
COUNTER[31:16]
rrrrrrrrrrrrrrrr

Bits 15:0 COUNTER[31:16]: Counter value, bits (31:16)

Number of frames that were discarded because their sequence number was too far from the last accepted sequence number (most significant part). For each discarded frame, the counter is incremented for every port where to the frame would have been forwarded, if it was not discarded by the recovery algorithm. Frames not identified to belong to any stream are not counted at all.

ETHSW FES sequence recovery tagless frames low register
(ETHSW_FES_SEQ_REC_TAGLESS_LR)

Address offset: 0x80F310

Reset value: 0x0000

1514131211109876543210
COUNTER[15:0]
rrrrrrrrrrrrrrrr

Bits 15:0 COUNTER[15:0]: Counter value, bits (15:0)

Number of frames that had no valid sequence number (Sequence_number_valid = FALSE), least significant part. The port is the output port. If Accept_no_seq is true, the counter is incremented for every port where to the frame is forwarded. If Accept_no_seq is false, the counter is incremented for every port where to the frame would have been forwarded if Accept_no_seq was true (if the frame was not discarded by the recovery algorithm). Frames not identified to belong to any stream are not counted at all.

ETHSW FES sequence recovery tagless frames high register (ETHSW_FES_SEQ_REC_TAGLESS_HR)

Address offset: 0x80F312

Reset value: 0x0000

1514131211109876543210
COUNTER[31:16]
rrrrrrrrrrrrrrrr

Bits 15:0 COUNTER[31:16]: Counter value, bits (31:16)

Number of frames that had no valid sequence number (Sequence_number_valid = FALSE), most significant part. The port is the output port. If Accept_no_seq is true, the counter is incremented for every port where to the frame is forwarded. If Accept_no_seq is false, the counter is incremented for every port where to the frame would have been forwarded if Accept_no_seq was true (if the frame was not discarded by the recovery algorithm). Frames not identified to belong to any stream are not counted at all.

ETHSW FES sequence recovery frames seen before low register (ETHSW_FES_SEQ_REC_SB_LR)

Address offset: 0x80F314

Reset value: 0x0000

1514131211109876543210
COUNTER[15:0]
rrrrrrrrrrrrrrrr

Bits 15:0 COUNTER[15:0]: Counter value, bits (15:0)

Number of frames that were discarded because their sequence number was found to be already received (least significant part). For each discarded frame, the counter is incremented for every port where to the frame would have been forwarded, if it was not discarded by the recovery algorithm. Frames not identified to belong to any stream are not counted at all.

ETHSW FES sequence recovery frames seen before high register (ETHSW_FES_SEQ_REC_SB_HR)

Address offset: 0x80F316

Reset value: 0x0000

1514131211109876543210
COUNTER[31:16]
rrrrrrrrrrrrrrrr
Bits 15:0 COUNTER[31:16] : Counter value, bits (31:16)

Number of frames that were discarded because their sequence number was found to be already received (most significant part). For each discarded frame, the counter is incremented for every port where to the frame would have been forwarded, if it was not discarded by the recovery algorithm. Frames not identified to belong to any stream are not counted at all.

93.5.8 ETHSW EIA registers

ETHSW EIA port x RGMII adapter ID register (ETHSW_EIA_RGMII_Px_IDR) (x = 0 to 2)

Address offset: port 0: 0x1000000

Address offset: port 1: 0x1000200

Address offset: port 2: 0x1000400

Reset value: 0x03B1

1514131211109876543210
VERSION[7:0]ID[7:0]
rrrrrrrrrrrrrrrr
Bits 15:8 VERSION[7:0] : VersionBits 7:0 ID[7:0] : Device ID

0xB1: RGMII adapter

Address offset: port 0: 0x1000002

Address offset: port 1: 0x1000202

Address offset: port 2: 0x1000402

Reset value: 0x0000

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DUPLEX_STATUSAUTONEG_SPEED[1:0]LINK_STATUS
rrrr

Bits 15:4 Reserved, must be kept at reset value.

Bit 3 DUPLEX_STATUS: Duplex status

RGMII duplex status.

0: half-duplex

1: full duplex

Bits 2:1 AUTONEG_SPEED[1:0]: Autoneg speed

Auto-negotiation result for speed.

00: Unknown

01: 1000 Mbps

10: 100 Mbps

11: 10 Mbps

Note: bit-coding differs from RGMII specification [2].

Bit 0 LINK_STATUS: Link status

Informs RGMII link status.

0: link down

ETHSW EIA port x RGMII adapter RX delay register
(ETHSW_EIA_RGMII_Px_RX_DELAYR) (x = 0 to 2)

Address offset: port 0: 0x1000020

Address offset: port 1: 0x1000220

Address offset: port 2: 0x1000420

Reset value: 0x0000

1514131211109876543210
RX_DELAY[15:0]
rrrrrrrrrrrrrrrr

Bits 15:0 RX_DELAY[15:0]: RX Delay
RX Delay generated by the adapter in nanoseconds.

ETHSW EIA port x RGMII adapter TX delay register
(ETHSW_EIA_RGMII_Px_TX_DELAYR) (x = 0 to 2)

Address offset: port 0: 0x1000022
Address offset: port 1: 0x1000222
Address offset: port 2: 0x1000422
Reset value: 0x0000

1514131211109876543210
TX_DELAY[15:0]
rrrrrrrrrrrrrrrr

Bits 15:0 TX_DELAY[15:0]: TX Delay
TX Delay generated by the adapter in nanoseconds.

ETHSW EIA port x RMII adapter ID register [alternate]
(ETHSW_EIA_RMII_Px_IDR) (x = 1 to 2)

Address offset: port 1: 0x1000200
Address offset: port 2: 0x1000400
Reset value: 0x02B5

1514131211109876543210
VERSION[7:0]ID[7:0]
rrrrrrrrrrrrrrrr

Bits 15:8 VERSION[7:0]: Version
Bits 7:0 ID[7:0]: Device ID
0xB1: RGMII adapter

Address offset: port 1: 0x1000202
Address offset: port 2: 0x1000402
Reset value: 0x0000

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LINK_STATUS
rw
ST logo
ST logo

Bits 15:1 Reserved, must be kept at reset value.

Bit 0 LINK_STATUS: link status

Informs RMII link status.

0: link down

1: link up

ETHSW EIA port x RMII adapter RX delay register [alternate]
(ETHSW_EIA_RMII_Px_RX_DELAYR) (x = 1 to 2)

Address offset: port 1: 0x1000220

Address offset: port 2: 0x1000420

Reset value: 0x0000

1514131211109876543210
RX_DELAY[15:0]
rrrrrrrrrrrrrrrr

Bits 15:0 RX_DELAY[15:0]: RX Delay

RX Delay generated by the adapter in nanoseconds.

ETHSW EIA port x RMII adapter TX delay register [alternate]
(ETHSW_EIA_RMII_Px_TX_DELAYR) (x = 1 to 2)

Address offset: port 1: 0x1000222

Address offset: port 2: 0x1000422

Reset value: 0x0000

1514131211109876543210
TX_DELAY[15:0]
rrrrrrrrrrrrrrrr

Bits 15:0 TX_DELAY[15:0]: TX Delay

TX Delay generated by the adapter in nanoseconds.

93.5.9 ETHSW register map

Table 997. ETHSW register map and reset values

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
ResResResResResResResRes23222120191817161514131211109876543210
0x000ETHSW_AC_DEV_IDRResResResResResResResResDEVICE_ID[15:0]ResResResResResResResResResResResResResRes
Reset value0000000011010000
0x004ETHSW_AC_INT_IDRINT_ID[31:0]
Reset value00000001011111100100000001111000
0x008ETHSW_AC_REV_IDRREV_ID_MAJOR[15:0]REV_ID_MINOR[15:0]
Reset value00000000000000010000000000000001

Table 997. ETHSW register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x00C - 0xFFCReserved
0x1000 + 0x10 * x,
(x = 0 to 13)
Last address:
0x10D0
ETHSW_AC_IFx_IDRINTERFACE_ID[15:0]
Reset value00000000000000000
0x1002 + 0x10 * x,
(x = 0 to 13)
Last address:
0x10D2
ETHSW_AC_IFx_VERRIF_VER_MAJ[7:0]IF_VER_MIN[7:0]
Reset value00000000000000000
0x1004 + 0x10 * x,
(x = 0 to 13)
Last address:
0x10D4
ETHSW_AC_IFx_BASERBASE[31:0]
Reset value00000000000000000000000000000000
0x1008 + 0x10 * x,
(x = 0 to 13)
Last address:
0x10D8
ETHSW_AC_IFx_LENRLEN[31:0]
Reset value00000000000000000000000000000000
0x100C + 0x10 * x,
(x = 0 to 13)
Last address:
0x10DC
ETHSW_AC_IFx_PORTRPORT_FES3[7:0]PORT_FES2[7:0]PORT_FES1[7:0]PORT_FES0[7:0]
Reset value00000000000000000000000000000000
0x10E0ETHSW_AC_EOTREND_OF_TABLE[15:0]
Reset value00000000000000000
0x10E2 - 0xFFFFCReserved
0x100000ETHSW_IBC_DEV_IDRRes.Res.Res.Res.Res.Res.Res.Res.DEVICE_ID[15:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value0000000011100000
0x100004ETHSW_IBC_INT_IDRINT_ID[31:0]
Reset value00000001011010101001100100110010
0x100008 - 0x100FFCReserved
0x101000ETHSW_IBC_GP_MUX_CTRLRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.GPMUX0
Reset value0
0x101002 - 0x1010FCReserved
0x101100ETHSW_IBC_TIME_MUX_CTRLRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TIM_MUX0
Reset value0
0x101102 - 0x101FFCReserved
0x102000ETHSW_IBC_GP_MUXESRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.GPMUXES[1:0]
Reset value0 1

Table 997. ETHSW register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x102002ETHSW_IBC_GP_MUX_DEFAULTRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value0
0x102004ETHSW_IBC_TIME_MUXESRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TIME_MUX[1:0]
Reset value0
0x102006ETHSW_IBC_TIME_MUX_DEFAULTRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TIM_MUXDEF[1:0]
Reset value0
0x102008 - 0x1020FCReserved
0x102100ETHSW_IBC_AUTOCONFIG0RRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TS_NUM[1:0]RTC_NUM[1:0]
Reset value011
0x102102 - 0x10210CReserved
0x102110ETHSW_IBC_AUTOCONFIG8RRTC_ADD[15:0]
Reset value00000000000001000
0x102112ETHSW_IBC_AUTOCONFIG9RRTC_ADD[15:0]
Reset value0000000000001001
0x102114ETHSW_IBC_AUTOCONFIG10RRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RTC_ADD[15:0]
Reset value0000000000000000
0x102118ETHSW_IBC_AUTOCONFIG12RTS_ADD[15:0]
Reset value0000000000000100
0x10211AETHSW_IBC_AUTOCONFIG13RTS_ADD[15:0]
Reset value0000000000000000
0x10211CETHSW_IBC_AUTOCONFIG14RTS_ADD[15:0]
Reset value0000000000000000

Table 997. ETHSW register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x10211E - 0x11FFFCReserved
0x120000ETHSW_FTPS_GL0RRes.Res.Res.Res.Res.Res.Res.Res.DEVICE_ID[15:0]Res.Res.Res.Res.Res.Res.Res.Res.
Reset value0000000010010001
0x120004ETHSW_FTPS_GL1RREV_ID[31:0]
Reset value00000000000000000000000000000000
0x120008 - 0x120FFCReserved
0x121000ETHSW_FTPS_TSCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.GET_TIMESTAMP
Reset value0
0x121004Reserved
0x121008ETHSW_FTPS_TSIMRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TIMESTAMP_IE
Reset value0
0x12100CReserved
0x121010ETHSW_FTPS_TSISRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TIMESTAMP_IS
Reset value0
0x121014 - 0x1210FCReserved
0x121100ETHSW_FTPS_TS_SNRSUBNANOSECONDS[31:0]
Reset value00000000000000000000000000000000
0x121104ETHSW_FTPS_TS_NSRRes.Res.NANOSECONDS[29:0]
Reset value000000000000000000000000000000
0x121108ETHSW_FTPS_TS_SLRSECONDS[31:0]
Reset value00000000000000000000000000000000
0x12110CETHSW_FTPS_TS_SHRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SECONDS[15:0]
Reset value00000000000000000
0x121110ETHSW_FTPS_PCNTRPCNT[31:0]
Reset value00000000000000000000000000000000
0x121114 - 0x17FFFCReservedRes.
ST logo
ST logo

Table 997. ETHSW register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x180000 +
0x10000 * x, (x = 0
to 1)
ETHSW_FRTCx_GLRResResResResResResResResDEV_ID[15:0]REV_ID[7:0]
Reset value000000001001000000000011
(0x180004 -
0x181000) +
0x10000 * x, (x = 0
to 1)
Reserved
0x181004 +
0x10000 * x, (x = 0
to 1)
ETHSW_FRTCx_CUR_NSECRResResNANOSECONDS[29:0]
Reset value000000000000000000000000000000
0x181008 +
0x10000 * x, (x = 0
to 1)
ETHSW_FRTCx_CUR_SECLRSECONDS[31:0]
Reset value00000000000000000000000000000000
0x18100C +
0x10000 * x, (x = 0 to
1)
ETHSW_FRTCx_CUR_SECHRResResResResResResResResResResResResResResResResSECONDS[15:0]
Reset value0000000000000000
0x181010 +
0x10000 * x, (x = 0
to 1)
ETHSW_FRTCx_TIME_CCLRTIME_CC[31:0]
Reset value00000000000000000000000000000000
0x181014 +
0x10000 * x, (x = 0
to 1)
ETHSW_FRTCx_TIME_CCHRResResResResResResResResResResResResResResResResTIME_CC[15:0]
Reset value0000000000000000
(0x181018 -
0x18101C) +
0x10000 * x, (x = 0
to 1)
Reserved
0x181020 +
0x10000 * x, (x = 0
to 1)
ETHSW_FRTCx_STEP_SIZE_SNRSUBNANOSECONDS[31:0]
Reset value00000000000000000000000000000000
0x181024 +
0x10000 * x, (x = 0
to 1)
ETHSW_FRTCx_STEP_SIZE_NRResResResResResResResResResResResResResResResResResResResResResResResResResResResResNANOSECONDS[5:0]
Reset value000101
(0x181028 -
0x181030) +
0x10000 * x, (x = 0
to 1)
Reserved
0x181034 +
0x10000 * x, (x = 0
to 1)
ETHSW_FRTCx_ADJUST_NSECRResResNANOSECONDS[29:0]
Reset value000000000000000000000000000000
0x181038 +
0x10000 * x, (x = 0
to 1)
ETHSW_FRTCx_ADJUST_SECLRSECONDS[31:0]
Reset value00000000000000000000000000000000
0x18103C +
0x10000 * x, (x = 0 to
1)
ETHSW_FRTCx_ADJUST_SECHRResResResResResResResResResResResResResResResResSECONDS[15:0]
Reset value0000000000000000
ST logo
ST logo

Table 997. ETHSW register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x181040 +
0x10000 * x, (x = 0
to 1)
ETHSW_FRTCx_TIME_CMDRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ADJUST_TIME_MODEREAD_TIMEADJUST_STEPADJUST_TIME
Reset value0000
(0x181044 -
0x181FFC) +
0x10000 * x, (x = 0
to 1)
Reserved
0x182000 +
0x10000 * x, (x = 0
to 1)
ETHSW_FRTCx_GENERICS_LRDEFAULT_STEP_SNS[31:0]
Reset value00000000000000000000000000000000
0x182004 +
0x10000 * x, (x = 0
to 1)
ETHSW_FRTCx_GENERICS_HRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DEFAULT_STEP_NS[5:0]
Reset value000101
(0x182008 -
0x18FFFC) +
0x10000 * x, (x = 0
to 1)
Reserved
0x192008 -
0x1BFFFC
Reserved
0x1C0000ETHSW_FSC_DEV_IDRRes.Res.Res.Res.Res.Res.Res.Res.DEV_ID[15:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value0000000011000000
0x1C0004ETHSW_FSC_INT_IDRREV_ID[31:0]
Reset value00000001011010101001100100110010
0x1C0008 -
0x1C0FFC
Reserved
0x1C1000ETHSW_FSC_ROW_ACCESS_CMD0R
Reset value
0x1C1002ETHSW_FSC_ROW_ACCESS_CMD1RROW_NUM[9:0]
Reset value000000
0x1C1004 -
0x1C100C
Reserved
ST logo
ST logo

Table 997. ETHSW register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x1C1010ETHSW_FSC_ROW_DATA0RResResResResResResResOUTPUT_STATE[8:0]
Reset value000000000
0x1C1012 - 0x1C1016Reserved
0x1C1018ETHSW_FSC_ROW_DATA4RTIME[15:0]
Reset value0000000000000000
0x1C101A - 0x1C10FCReserved
0x1C1100ETHSW_FSC_IMRResResResResResResResResResResResResResResSCH_TBL_IE
Reset value0
0x1C1102ETHSW_FSC_ISRResResResResResResResResResResResResResResSCH_TBL_IS
Reset value0
0x1C1104 - 0x1C3FFCReserved
0x1C4000ETHSW_FSC_GEN_SCHRSCHEDULERS[15:0]
Reset value0000000000000111
0x1C4002ETHSW_FSC_GEN_OUTRResResResResResResResResOUTPUTS[6:0]
Reset value0001001
0x1C4004ETHSW_FSC_GEN_TBL_RWRResResResResResResResResResResResTABLE_ROWS[3:0]
Reset value1010
0x1C4006ETHSW_FSC_GEN_CLK_FRQRResResResResResResResResCLK_FREQ[7:0]
Reset value11001000
0x1C4008 - 0x1CFFFCReserved
0x1D0000 + 0x1000 * x, (x = 0 to 2)ETHSW_FSCx_SCH_GENRResDWN_CNT_STRT_VAL[10:0]Res.Res.DWN_CNT_SPD[1:0]
Reset value1111111111100

Table 997. ETHSW register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x1D0002 + 0x1000 * x, (x = 0 to 2)ETHSW_FSCx_DWNCNT_SPDRRes.Res.Res.Res.Res.Res.DWNCNTR_SPD[3:0]RESERVED0[4:0]
Reset value100000000
(0x1D0004 - 0x1D001C) + 0x1000 * x, (x = 0 to 2)Reserved
0x1D0020 + 0x1000 * x, (x = 0 to 2)ETHSW_FSCx_EME_DIS_CRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value11
(0x1D0022 - 0x1D002C) + 0x1000 * x, (x = 0 to 2)Reserved
0x1D0030 + 0x1000 * x, (x = 0 to 2)ETHSW_FSCx_EME_DIS_STATRRes.Res.Res.Res.Res.Res.Res.EME_DIS_STAT [8:0]
Reset value011111111
(0x1D0032 - 0x1D07FC) + 0x1000 * x, (x = 0 to 2)Reserved
0x1D0800 + 0x1000 * x, (x = 0 to 2) + y*0x100, (y = 0 to 1)ETHSW_FSCx_Ty_TBL_GENRUPDATERes.Res.Res.Res.Res.LST_CYC_RCHDLST_CYC_ENRes.Res.Res.Res.Res.Res.SCH_TBL_IN_USESCH_TBL_UPDATE
Reset value00000
(0x1D0802 - 0x1D0810) + 0x1000 * x, (x = 0 to 2) + y*0x100, (y = 0 to 1)Reserved
0x1D0814 + 0x1000 * x, (x = 0 to 2) + y*0x100, (y = 0 to 1)ETHSW_FSCx_Ty_STRT_NSRRes.Res.STARTTIME_NS[29:0]
Reset value000000000000000000000000000000
0x1D0818 + 0x1000 * x, (x = 0 to 2) + y*0x100, (y = 0 to 1)ETHSW_FSCx_Ty_STRT_SRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.STARTTIME_S[7:0]
Reset value000000000
0x1D081C + 0x1000 * x, (x = 0 to 2) + y*0x100, (y = 0 to 1)Reserved
ST logo
ST logo

Table 997. ETHSW register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x1D0820 + 0x1000 * x, (x = 0 to 2) + y*0x100, (y = 0 to 1)ETHSW_FSCx_Ty_CYC_SUBNSRCYCLETIME_SUBNS[23:0]ResResResResResResResRes
Reset value00000000000000000000000
0x1D0824 + 0x1000 * x, (x = 0 to 2) + y*0x100, (y = 0 to 1)ETHSW_FSCx_Ty_CYC_NSRResResCYCLETIME_NS[29:0]
Reset value00000000000000000000000000000
(0x1D0828 - 0x1D0830) + 0x1000 * x, (x = 0 to 2) + y*0x100, (y = 0 to 1)Reserved
0x1D0834 + 0x1000 * x, (x = 0 to 2) + y*0x100, (y = 0 to 1)ETHSW_FSCx_Ty_CYCTS_NSRResResTIMESTAMP_NS[29:0]
Reset value00000000000000000000000000000
0x1D0838 + 0x1000 * x, (x = 0 to 2) + y*0x100, (y = 0 to 1)ETHSW_FSCx_Ty_CYCTS_SRResResResResResResResResResResResResResResResResResResResResResResResTIMESTAMP_S[7:0]
Reset value00000000
0x1D083C + 0x1000 * x, (x = 0 to 2) + y*0x100, (y = 0 to 1)Reserved
0x1D0840 + 0x1000 * x, (x = 0 to 2) + y*0x100, (y = 0 to 1)ETHSW_FSCx_Ty_CYC_CNTRResResResResResResResResResResResResResResResCYCLE_CNT[15:0]
Reset value0000000000000000
0x1D0844 + 0x1000 * x, (x = 0 to 2) + y*0x100 (y = 0 to 1)ETHSW_FSCx_Ty_LST_CYCRResResResResResResResResResResResResResResResLAST_CYCLE[15:0]
Reset value0000000000000000
(0x1D0848 - 0x1D08FC) + 0x1000 * x, (x = 0 to 2) + y*0x100, (y = 0 to 1)Reserved
0x1D2946 - 0x1FFFFEReserved
0x200000 + 0x10000 * x, (x = 0 to 2)ETHSW_FESx_PORT_STATERRX_CTFB_STFRESERVED1[3:0]SPEED_SEL[1:0]RESERVED0[1:0]HW_MODE[1:0]MGMT_ST[1:0]FWD_ST[1:0]
Reset value0000000000010
(0x200002 - 0x20000C) + 0x10000 * x, (x = 0 to 2)Reserved
0x200010 + 0x10000 * x, (x = 0 to 2)ETHSW_FESx_VLAN0RTGD_UTGDPD_PCP[2:0]PD_VLAN[11:0]
Reset value1000111111111111

Table 997. ETHSW register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x200012 +
0x10000 * x, (x = 0
to 2)
ETHSW_FESx_VLAN1RUSE_DEIRes.Res.Res.Res.VLAN_PRIF[11:0]
Reset value000000000000
0x200014 +
0x10000 * x, (x = 0
to 2)
ETHSW_FESx_FWDM_
CFGR
Res.Res.Res.Res.Res.PORT_FWDM[2:0]
Reset value000
0x200016 +
0x10000 * x, (x = 0
to 2)
ETHSW_FESx_PRIO_
REGENLR
Res.PCP3[2:0]PCP2[2:0]Res.PCP1[2:0]Res.PCP0[2:0]
Reset value011010001000
0x200018 +
0x10000 * x, (x = 0
to 2)
ETHSW_FESx_PRIO_
REGENHR
Res.PCP7[2:0]PCP6[2:0]Res.PCP5[2:0]Res.PCP4[2:0]
Reset value111110101100
(0x20001A -
0x20002C) +
0x10000 * x, (x = 0
to 2)
Reserved
0x200030 +
0x10000 * x, (x = 0
to 2) + y*0x2, (y = 0
to 7)
ETHSW_FESx_
SHAPERyR
ADDEND[15:0]
Reset value1111111111111111
0x200040 +
0x10000 * x, (x = 0
to 2) + y*0x2, (y = 0
to 7)
ETHSW_FESx_FRAME
SIZEyR
Res.Res.Res.Res.Res.FRAMESIZE[10:0]
Reset value11111111111
(0x200050 -
0x20007C) +
0x10000 * x, (x = 0
to 2)
Reserved
0x200080 +
0x10000 * x, (x = 0
to 2)
ETHSW_FESx_FID_
CFG0R
FWD_ST7[1:0]FWD_ST6[1:0]FWD_ST5[1:0]FWD_ST4[1:0]FWD_ST3[1:0]FWD_ST2[1:0]FWD_ST1[1:0]FWD_ST0[1:0]
Reset value0000000000000000
0x200082 +
0x10000 * x, (x = 0
to 2)
ETHSW_FESx_FID_
CFG1R
FWD_ST15[1:0]FWD_ST14[1:0]FWD_ST13[1:0]FWD_ST12[1:0]FWD_ST11[1:0]FWD_ST10[1:0]FWD_ST9[1:0]FWD_ST8[1:0]
Reset value0000000000000000
ST logo
ST logo

Table 997. ETHSW register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x200084 +
0x10000 * x, (x = 0
to 2)
ETHSW_FESx_FID_
CFG2R
FWD_ST23[1:0]FWD_ST22[1:0]FWD_ST21[1:0]FWD_ST20[1:0]FWD_ST19[1:0]FWD_ST18[1:0]FWD_ST17[1:0]FWD_ST16[1:0]
Reset value0000000000000000
0x200086 +
0x10000 * x, (x = 0
to 2)
ETHSW_FESx_FID_
CFG3R
FWD_ST31[1:0]FWD_ST30[1:0]FWD_ST29[1:0]FWD_ST28[1:0]FWD_ST27[1:0]FWD_ST26[1:0]FWD_ST25[1:0]FWD_ST24[1:0]
Reset value0000000000000000
0x200088 +
0x10000 * x, (x = 0
to 2)
ETHSW_FESx_FID_
CFG4R
FWD_ST39[1:0]FWD_ST38[1:0]FWD_ST37[1:0]FWD_ST36[1:0]FWD_ST35[1:0]FWD_ST34[1:0]FWD_ST33[1:0]FWD_ST32[1:0]
Reset value0000000000000000
0x20008A +
0x10000 * x, (x = 0
to 2)
ETHSW_FESx_FID_
CFG5R
FWD_ST47[1:0]FWD_ST46[1:0]FWD_ST45[1:0]FWD_ST44[1:0]FWD_ST43[1:0]FWD_ST42[1:0]FWD_ST41[1:0]FWD_ST40[1:0]
Reset value0000000000000000
0x20008C +
0x10000 * x, (x = 0
to 2)
ETHSW_FESx_FID_
CFG6R
FWD_ST55[1:0]FWD_ST54[1:0]FWD_ST53[1:0]FWD_ST52[1:0]FWD_ST51[1:0]FWD_ST50[1:0]FWD_ST49[1:0]FWD_ST48[1:0]
Reset value0000000000000000
0x20008E +
0x10000 * x, (x = 0
to 2)
ETHSW_FESx_FID_
CFG7R
FWD_ST63[1:0]FWD_ST62[1:0]FWD_ST61[1:0]FWD_ST60[1:0]FWD_ST59[1:0]FWD_ST58[1:0]FWD_ST57[1:0]FWD_ST56[1:0]
Reset value0000000000000000
(0x200090 -
0x2000BC) +
0x10000 * x, (x = 0
to 2)
Reserved
0x2000C0 +
0x10000 * x, (x = 0
to 2)
ETHSW_FESx_FL_
CAPTR
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CAPTURE
Reset value0
0x2000C2 +
0x10000 * x, (x = 0
to 2)
ETHSW_FESx_FL_
SMPL_CNTR
FL_SAMPLE_CNT[15:0]
Reset value0000000000000000

Table 997. ETHSW register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
(0x2000C4 - 0x2000DC) + 0x10000 * x, (x = 0 to 2)Reserved
0x2000E0 + 0x10000 * x, (x = 0 to 2) + y*0x2, (y = 0 to 7)ETHSW_FESx_FL_Qy_MINRResResResResResResResResResResResFL_QY_MIN[4:0]
Reset value00000
0x2000F0 + 0x10000 * x, (x = 0 to 2) + y*0x2, (y = 0 to 7)ETHSW_FESx_FL_Qy_MAXRResResResResResResResResResResResFL_QY_MAX[4:0]
Reset value00000
(0x200100 - 0x203FFE) + 0x10000 * x, (x = 0 to 2)Reserved
0x204000 + 0x10000 * x, (x = 0 to 2)ETHSW_FESx_PTP_RX_SYNCD_SNSRPTP_RX_SYNC_DELAY_SUBNS[15:0]
Reset value0000000000000000
0x204002 + 0x10000 * x, (x = 0 to 2)ETHSW_FESx_PTP_RX_SYNCD_NSLRPTP_RX_SYNC_DELAY_NSL[15:0]
Reset value0000000000000000
0x204004 + 0x10000 * x, (x = 0 to 2)ETHSW_FESx_PTP_RX_SYNCD_NSHRResResResResResResResResResResResResResResResResResResResResResResResResResPTP_RX_SYNC_DELAY_NSH[7:0]
Reset value00000000
0x204008 + 0x10000 * x, (x = 0 to 2)ETHSW_FESx_PTP_RX_EVENTD_SNSRPTP_RX_EVENT_DELAY_SNS[15:0]
Reset value0000000000000000
0x20400A + 0x10000 * x, (x = 0 to 2)ETHSW_FESx_PTP_RX_EVENTD_NSRPTP_RX_EVENT_DELAY_NS[15:0]
Reset value0000000000000000
0x20400C + 0x10000 * x, (x = 0 to 2)Reserved
0x204010 + 0x10000 * x, (x = 0 to 2)ETHSW_FESx_PTP_TX_EVENTD_SNSRPTP_TX_EVENT_DELAY_SNS[15:0]
Reset value0000000000000000
ST logo
ST logo

Table 997. ETHSW register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x204012 +
0x10000 * x, (x = 0
to 2)
ETHSW_FESx_PTP_TX
_EVENTD_NSR
PTP_TX_EVENT_DELAY_NS[15:0]
Reset value0000000000000000
(0x204014 -
0x205FFC) +
0x10000 * x, (x = 0
to 2)
Reserved
0x206000 +
0x10000 * x, (x = 0
to 2)
ETHSW_FESx_CNT_
CTRLR
Res.Res.Res.CPT_CNT_GRP5Res.CPT_CNT_GRP3Res.CPT_CNT_GRP1Res.Res.Res.Res.Res.Res.Res.CAPTURE
Reset value0000
0x206002 +
0x10000 * x, (x = 0
to 2)
ETHSW_FESx_CNT_
CMDR
TRANSFERRes.Res.Res.Res.Res.Res.Res.Res.Res.CNT_NUM[5:0]
Reset value0000000
0x206004 +
0x10000 * x, (x = 0
to 2)
Reserved
0x206008 +
0x10000 * x, (x = 0
to 2)
ETHSW_FESx_CNT_VA
L_LOR
CNT_VAL_LO[15:0]
Reset value0000000000000000
0x20600A +
0x10000 * x, (x = 0
to 2)
ETHSW_FESx_CNT_VA
L_HIR
CNT_VAL_HI[15:0]
Reset value0000000000000000
(0x20600C -
0x207FFC) +
0x10000 * x, (x = 0
to 2)
Reserved
0x208000 +
0x10000 * x, (x = 0
to 2)
ETHSW_FESx_IPO_
CMDR
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRANSFERRD_WRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.IPO_FIL_NUM[3:0]
Reset value000000
(0x208004 -
0x20800C) +
0x10000 * x, (x = 0
to 2)
Reserved
0x208010 +
0x10000 * x, (x = 0
to 2)
ETHSW_FESx_ETH_
ADDR_CFG0R
NEW_PRI_LSBPRES_PRINEW_PRI_MSB[1:0]Res.POL_PRI0Res.CMP_LENGTH[5:0]SRC_DST_MATCHENABLE
Reset value00000000000000

Table 997. ETHSW register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x208012 +
0x10000 * x, (x = 0
to 2)
ETHSW_FESx_ETH_ADDR_FWD_ALLOWRResResResResResResResResResResResResResResFWD_ALLOW_MSK[2:0]
Reset value000
0x208014 +
0x10000 * x, (x = 0
to 2)
ETHSW_FESx_ETH_ADDR_FWD_MIRRORRResResResResResResResResResResResResResResFWD_MIRROR_MSK[2:0]
Reset value000
0x208016 +
0x10000 * x, (x = 0
to 2)
ETHSW_FESx_ETH_ADDR_CFG1RCT_DISCMP_ORDERRESERVED1IPO_MARKResResResResResPOLICER[6:0]
Reset value000000000000
0x208018 +
0x10000 * x, (x = 0
to 2)
ETHSW_FESx_ETH_ADDR_0ROCTET_2[7:0]OCTET_1[7:0]
Reset value00000000000000000
0x20801A +
0x10000 * x, (x = 0
to 2)
ETHSW_FESx_ETH_ADDR_1ROCTET_4[7:0]OCTET_3[7:0]
Reset value00000000000000000
0x20801C +
0x10000 * x, (x = 0
to 2)
ETHSW_FESx_ETH_ADDR_2ROCTET_6[7:0]OCTET_5[7:0]
Reset value00000000000000000
(0x20801E -
0x20FFFC) +
0x10000 * x, (x = 0
to 2)
Reserved
0x800000ETHSW_FESx_ETH_ADDR_1RDEV_ID[23:0]ResResResResResResResResRes
Reset value000000000000000001000000
0x800004ETHSW_FESx_ETH_ADDR_1RCFG_ID[15:0]
Reset value0000000000000001
0x800006ETHSW_FESx_ETH_ADDR_1RREV_ID0[15:0]
Reset value1111001010101111
0x800008ETHSW_FESx_ETH_ADDR_1RREV_ID1[15:0]
Reset value0111000111001010
ST logo
ST logo

Table 997. ETHSW register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x80000AETHSW_FESx_ETH_ADDR_1RREV_ID2[15:0]
Reset value0000010101111101
0x80000CReserved
0x800010ETHSW_FESx_ETH_ADDR_1RINIT_REQCLR_MAC_TABCORR_DISPTP_MOD[1:0]MOD_SYNCFTIM_TRLPOL_CFGRes.Res.Res.MGMT_TRL_OFF[1:0]MGMT_TRL_LGTH[1:0]Res.Res.
Reset value000000000000
0x800012ETHSW_FESx_ETH_ADDR_1RRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MAC_TAB_CLRM[2:0]111
Reset value111
0x800014ETHSW_FESx_ETH_ADDR_1RRes.Res.Res.Res.Res.Res.Res.Res.Res.FID[5:0]
Reset value000000
0x800016 - 0x80001CReserved
0x800020ETHSW_FES_ADDRES_S_AGING_CFGRRes.Res.Res.Res.Res.Res.Res.Res.Res.LIFE_TIME[6:0]0
Reset value0010010
0x800022ETHSW_FES_AGING_BASE_TIMELRBASE_TIMEL[15:0]1
Reset value1010000100011111
0x800024ETHSW_FES_AGING_BASE_TIMEHRRes.Res.Res.Res.Res.Res.Res.Res.Res.BASE_TIMEH[7:0]0
Reset value00000111
0x800026 - 0x80002CReserved
0x800030ETHSW_FES_INT_MASK_CLRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
CONGESTED_IMCRX_ERROR_IMCRX_TIMESTAMP_IMCTX_TIMESTAMP_IMC
0000

Table 997. ETHSW register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x800034ETHSW_FES_INT_MASK_SETRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CONGESTED_IERX_ERROR_IERX_TIMESTAMP_IETX_TIMESTAMP_IE
Reset value0000
0x800038ETHSW_FES_INT_STATUSRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CONGESTED_ISRX_ERROR_ISRX_TIMESTAMP_ISTX_TIMESTAMP_IS
Reset value0000
0x80003A - 0x8001FCReservedRes.
0x800200ETHSW_FES_MAC_TABLE0RTRANSFERRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PORT_NUM[3:0]
Reset value00000
0x800202ETHSW_FES_MAC_TABLE1ROCTET_2[7:0]OCTET_1[7:0]
Reset value00000000000000000
0x800204ETHSW_FES_MAC_TABLE2ROCTET_4[7:0]OCTET_3[7:0]
Reset value00000000000000000
0x800206ETHSW_FES_MAC_TABLE3ROCTET_6[7:0]OCTET_5[7:0]
Reset value00000000000000000
0x800208ETHSW_FES_MAC_TABLE4RRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FID[5:0]
Reset value000000
0x80020A - 0x80021CReservedReserved
0x800220ETHSW_FES_SMAC_CMDRTRANSFERRD_WRCOLUMN[1:0]ROW[11:0]
Reset value00000000000000000
0x800222ETHSW_FES_SMAC_CFGRRes.Res.Res.Res.Res.Res.Res.Res.ROW_COL3[1:0]ROW_COL2[1:0]ROW_COL1[1:0]ROW_COL0[1:0]
Reset value0000000000
ST logo
ST logo

Table 997. ETHSW register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x800224 - 0x80022CReserved
0x800230ETHSW_FES_SMAC_TABLE0RENTRY_USAGERESERVED1POLICER_PrioMATCH_VLANMOD_PrioFRAME_Prio[2:0]STREAM_MATCHRes.Res.Res.Res.Res.Res.Res.
Reset value00000000
0x800232ETHSW_FES_SMAC_TABLE1ROCTET_2[7:0]OCTET_1[7:0]
Reset value000000000000000
0x800234ETHSW_FES_SMAC_TABLE2ROCTET_4[7:0]OCTET_3[7:0]
Reset value000000000000000
0x800236ETHSW_FES_SMAC_TABLE3ROCTET_6[7:0]OCTET_5[7:0]
Reset value000000000000000
0x800238ETHSW_FES_SMAC_TABLE4RRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FWD_PORT_MSK[2:0]
Reset value000
0x80023AETHSW_FES_SMAC_TABLE5RRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.POLICER_PORTS[2:0]
Reset value000
0x80023CETHSW_FES_SMAC_TABLE6RRes.Res.Res.Res.Res.POLICER_NUM[11:0]
Reset value00000000000
0x80023EETHSW_FES_SMAC_TABLE7RRes.Res.Res.Res.VLAN[11:0]
Reset value000000000000
0x800240 - 0x8002FCReservedRes.
0x800300ETHSW_FES_SEQ_REC_CMDRTRANSFERRD_WRRes.Res.Res.Res.ROW[9:0]
Reset value000000000000
0x800302 - 0x800314ReservedRes.

Table 997. ETHSW register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x800318ETHSW_FES_SEQ_REC_TABLE4RAGING_SCALE[1:0]AGING_BRATE[1:0]ACC_NVAL_SEQIND_RECALGORITHMHIST_LENGTH[4:0]
Reset value00000000000
0x80031A - 0x80037CReserved
0x800380ETHSW_FES_SEQ_GEN_CMDRResResRESETResResResResENTITY[9:0]
Reset value0000000000
0x800382 - 0x8003FCReserved
0x800400ETHSW_FES_STREAM_CMDRTRANSFERRD_WRResResResResResROW[9:0]
Reset value00000000000
0x800402 - 0x80040CReserved
0x800410ETHSW_FES_STREAM_TABLE0RResResResResResResResResResResResResResRMV_RTAG[2:0]
Reset value000
0x800412ETHSW_FES_STREAM_TABLE1RResResResResResResResResResResResResADD_RTAG[2:0]
Reset value000
0x800414ETHSW_FES_STREAM_TABLE2RFRER_SEQ_GENResResResResFRER_GEN_TAB_ROW[11:0]
Reset value0000000000000
0x800416ETHSW_FES_STREAM_TABLE3RFRER_SEQ_RECResResResResFRER_REC_TAB_ROW[11:0]
Reset value0000000000000
0x800418 - 0x8005FCReserved
ST logo
ST logo

Table 997. ETHSW register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x800600ETHSW_FES_POLICER_CMDRTRANSFERRD_WRRes.Res.POLICER_NUM[11:0]
Reset value00000000000000
0x800602 - 0x80060CReserved
0x800610ETHSW_FES_POLICER_0RLIMIT[15:0]
Reset value0000000000000000
0x800612ETHSW_FES_POLICER_1RRes.Res.Res.Res.Res.RATE_SCALE[2:0]BASIC_RATE[7:0]
Reset value00000000000
0x800614ETHSW_FES_POLICER_2RLIMIT[15:0]
Reset value0000000000000000
0x800616ETHSW_FES_POLICER_3RRes.Res.Res.Res.Res.RATE_SCALE[2:0]BASIC_RATE[7:0]
Reset value00000000000
0x800618ETHSW_FES_POLICER_4RRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DROP_YELLOWMARK_ALL_REDMARK_ALL_RED_ENCOUPLING_FLAGCOLOR_BLIND
Reset value000000
0x80061A - 0x801FFCReserved
0x802000ETHSW_FES_TS_CMDRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRANSFERERRORRes.Res.Res.Res.Res.Res.Res.Res.Res.TX_RXPORT_NUM[3:0]
Reset value00000000
0x802004Reserved
0x802008ETHSW_FES_TS_TIME_LORNANOSECONDS[15:0]
Reset value0000000000000000

Table 997. ETHSW register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x80200AETHSW_FES_TS_TIME_HIRSECONDS[1:0]NANOSECONDS[13:0]
Reset value0000000000000000
0x80200CETHSW_FES_TS_MSG_0RDOMAIN_NUM[7:0]TRANSP_SPEC[3:0]MSG_TYPE[3:0]
Reset value0000000000000000
0x80200EETHSW_FES_TS_MSG_1RSEQUENCE_ID[15:0]
Reset value0000000000000000
0x802010ETHSW_FES_TS_RX_STATUSRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TS_STATUS_IN[1:0]Res.
Reset value00
0x802012ETHSW_FES_TS_TX_STATUSRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TS_STATUS_OUT[1:0]Res.
Reset value00
0x802014 - 0x807FFCReserved
0x808000ETHSW_FES_VLAN_CMDRTRSF VLAN_FIDTRSF VLAN_TAGTRSF VLAN_PORTSRD_WRVLAN_ID[11:0]
Reset value0000000000000000
0x808002 - 0x808004Reserved

Table 997. ETHSW register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x808008ETHSW_FES_VLAN_PORTSRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.VLAN_MEMBER[2:0]
Reset value000
0x80800AETHSW_FES_VLAN_TAGRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.VLAN_TAG[2:0]
Reset value000
0x80800CETHSW_FES_VLAN_FIDRENG_TRAFFICRes.Res.Res.Res.Res.Res.Res.Res.Res.FILTERING_ID[5:0]
Reset value0000000
0x80800E - 0x80DFFCReserved
0x80E000ETHSW_FES_PORT_HIGHRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FES_PORT_HIGH[3:0]
Reset value0010
0x80E002ETHSW_FES_COUNTERSRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.COUNTERS[2:0]
Reset value011
0x80E004ETHSW_FES_CT_PORTSRes.Res.Res.Res.CT_PORTS[11:0]
Reset value0000000000110
0x80E006ETHSW_FES_TS_PORTSRes.Res.Res.Res.TS_PORTS[11:0]
Reset value0000000000110

Table 997. ETHSW register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x80E008ETHSW_FES_SMAC_TABLE_ROWSRResResResResResResResResResResResResSMAC_TABLE_ROWS[3:0]
Reset value1010
0x80E00AETHSW_FES_POLICINGRResResResResResResResResResResResResPOLICING[1:0]
Reset value11
0x80E00CETHSW_FES_POLICERSRResResResResResResResResResResResPOLICERS[3:0]
Reset value0111
0x80E00EETHSW_FES_QUEUESRResResResResResResResResResResResQUEUES[3:0]
Reset value1000
0x80E010ETHSW_FES_BUFFER_SIZERResResResResResResResResResResResResBUFFER_SIZE
Reset value1
0x80E012ETHSW_FES_SHAPERSRResResResResResResResResResResResResSHAPERS
Reset value1
0x80E014ETHSW_FES_GIGABITRResResResResResResResResResResResResGIGABIT
Reset value1
0x80E016ETHSW_FES_HSR_PORTSRResResResResResResResHSR_PORTS[7:0]
Reset value00000000
0x80E018ETHSW_FES_PRP_PORTSRResResResResResResResPRP_PORTS[7:0]
Reset value00000000
0x80E01AETHSW_FES_SCHEDULED_PORTSRResResResResSCHEDULED_PORTS[11:0]
Reset value000000000111

Table 997. ETHSW register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x80E01CETHSW_PREEMPTABLE_PORTRRes.Res.Res.Res.PREEMPTABLE_PORT[11:0]
Reset value000000000110
0x80E01EETHSW_FES_MACSECRRes.Res.Res.Res.MACSEC[11:0]
Reset value000000000000
0x80E020ETHSW_FES_MACSEC_CIPHERRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MACSEC_CIPHER[2:0]
Reset value000
0x80E022ETHSW_FES_MGMT_PORTSRRes.Res.Res.Res.MGMT_PORTS[11:0]
Reset value000000000001
0x80E024ETHSW_FES_FRER_PORTSRRes.Res.Res.Res.Res.Res.FRER_PORTS[7:0]
Reset value0000001111
0x80E026ETHSW_FES_FRER_ENTRIESRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FRER_ENTRIES[3:0]
Reset value1010
0x80E028ETHSW_FES_FRER_STREAMSRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FRER_STREAMS[3:0]
Reset value0111
0x80E02AETHSW_FES_FIDSRRes.Res.Res.Res.Res.Res.Res.Res.Res.FIDS[5:0]
Reset value000110
0x80E02CETHSW_FES_DMA_PORTSRRes.Res.Res.Res.DMA_PORTS[11:0]
Reset value000000000000

Table 997. ETHSW register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x80E02EETHSW_FES_DMA_TX_DESC_RINGRResResResResResResResResResResResResDMA_TX_DESC_RING[3:0]
Reset value0001
0x80E030ETHSW_FES_DMA_RX_DESC_RINGRResResResResResResResResResResResResDMA_RX_DESC_RING[3:0]
Reset value0001
0x80E032ETHSW_FES_PSFPRResResResResResResResResResResResResResResPSFP
Reset value0
0x80E034ETHSW_FES_PSF_P_STREAMSRResResResResResResResResResResResResPSFP_STREAMS[3:0]
Reset value0111
0x80E036 - 0x80E0FCReserved
0x80E100ETHSW_FES_CFG_CLK_FREQRResResResResResResResResCFG_CLK_FREQ[7:0]
Reset value11001000
0x80E102 - 0x80E10CReserved
0x80E110ETHSW_FES_DEBUG_INRResResResResResResResResResResResResResResResDEBUG_IN
Reset value0
0x80E112 - 0x80E1FCReserved
0x80E200ETHSW_FES_H_ADV_10RHOLD_ADV_MII[7:0]HOLD_ADV_CLK[7:0]
Reset value0000000000000000
0x80E202ETHSW_FES_H_ADV_100RHOLD_ADV_MII[7:0]HOLD_ADV_CLK[7:0]
Reset value0000000000000000

Table 997. ETHSW register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x80E204ETHSW_FES_H_ADV_1000RRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.HOLD_ADV_GMII[7:0]HOLD_ADV_CLK[7:0]
Reset value0000000000000000
0x80E208ETHSW_FES_R_ADV_10RREL_ADV_MII[7:0]REL_ADV_CLK[7:0]
Reset value0000000000000000
0x80E20AETHSW_FES_R_ADV_100RREL_ADV_MII[7:0]REL_ADV_CLK[7:0]
Reset value0000000000000000
0x80E20CETHSW_FES_R_ADV_1000RRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.REL_ADV_GMII[7:0]REL_ADV_CLK[7:0]
Reset value0000000000000000
0x80E210ETHSW_FES_I_TO_G_MIN_10RI_TO_G_MIN_MII[7:0]I_TO_G_MIN_CLK[7:0]
Reset value0000000000000000
0x80E212ETHSW_FES_I_TO_G_MIN_100RI_TO_G_MIN_MII[7:0]I_TO_G_MIN_CLK[7:0]
Reset value0000000000000000
0x80E214ETHSW_FES_I_TO_G_MIN_1000RRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.I_TO_G_MIN_GMII[7:0]I_TO_G_MIN_CLK[7:0]
Reset value0000000000000000
0x80E218ETHSW_FES_I_TO_G_MAX_10RI_TO_G_MAX_MII[7:0]I_TO_G_MAX_CLK[7:0]
Reset value0000000000000000

Table 997. ETHSW register map and reset values (continued)

Offset 0x80E21AOffset 0x80E21COffset 0x80E220Offset 0x80E222Offset 0x80E224Offset 0x80E228
OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x80E21AETHSW_FES_I_TO_G_MAX_100RI_TO_G_MAX_MII[7:0]I_TO_G_MAX_CLK[7:0]
Reset value000000000000000
0x80E21CETHSW_FES_I_TO_G_MAX_1000RRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.I_TO_G_MAX_GMII[7:0]I_TO_G_MAX_CLK[7:0]
Reset value000000000000000
0x80E220ETHSW_FES_G_TO_O_MIN_10RG_TO_O_MIN_MII[7:0]G_TO_O_MIN_CLK[7:0]
Reset value000000000000000
0x80E222ETHSW_FES_G_TO_O_MIN_100RG_TO_O_MIN_MII[7:0]G_TO_O_MIN_CLK[7:0]
Reset value000000000000000
0x80E224ETHSW_FES_G_TO_O_MIN_1000RRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.G_TO_O_MIN_GMII[7:0]G_TO_O_MIN_CLK[7:0]
Reset value000000000000000
0x80E228ETHSW_FES_G_TO_O_MAX_10RG_TO_O_MAX_MII[7:0]G_TO_O_MAX_CLK[7:0]
Reset value000000000000000
ST logo
ST logo

Table 997. ETHSW register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x80E22AETHSW_FES_G_TO_O_MAX_100R
Reset value000000000000000
0x80E22CETHSW_FES_G_TO_O_MAX_1000RRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value0000000000000000
0x80E230 - 0x80EFFCReserved
0x80F000ETHSW_FES_CAPT0RRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.CAPTURE_PPPS1CAPTURE_PPPS0Res.Res.Res.CAPTURE_PE
Reset value0000
0x80F002ETHSW_FES_CAPT1RRes.Res.Res.Res.ENTITY[11:0]
Reset value0000000000000
0x80F004ETHSW_FES_CAPT2RSTREAM[11:0]PORT[3:0]
Reset value0000000000000000
0x80F006ETHSW_FES_CAPT3RSTREAM[11:0]PORT[3:0]
Reset value0000000000000000
0x80F008 - 0x80F1FCReserved
0x80F200ETHSW_FES_SEQ_REC_TOUT_LRCOUNTER[15:0]
Reset value0000000000000000
0x80F202ETHSW_FES_SEQ_REC_TOUT_HRCOUNTER[15:0]
Reset value0000000000000000
0x80F204ETHSW_FES_VECT_JUMP_LRCOUNTER[15:0]
Reset value0000000000000000
0x80F206ETHSW_FES_VECT_JUMP_HRCOUNTER[15:0]
Reset value0000000000000000

Table 997. ETHSW register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x80F208ETHSW_FES_SEQ_REC_OOO_LRCOUNTER[15:0]
Reset value0000000000000000
0x80F20AETHSW_FES_SEQ_REC_OOO_HRCOUNTER[15:0]
Reset value0000000000000000
0x80F20C - 0x80F2FCReserved
0x80F300ETHSW_FES_FRAMES_IN_LRCOUNTER[15:0]
Reset value0000000000000000
0x80F302ETHSW_FES_FRAMES_IN_HRCOUNTER[15:0]
Reset value0000000000000000
0x80F304ETHSW_FES_FRAMES_OUT_LRCOUNTER[15:0]
Reset value0000000000000000
0x80F306ETHSW_FES_FRAMES_OUT_HRCOUNTER[15:0]
Reset value0000000000000000
0x80F308ETHSW_FES_SEQ_REC_OOO2_LRCOUNTER[15:0]
Reset value0000000000000000
0x80F30AETHSW_FES_SEQ_REC_OOO2_HRCOUNTER[15:0]
Reset value0000000000000000
0x80F30CETHSW_FES_VECT_ROG_LRCOUNTER[15:0]
Reset value0000000000000000
0x80F30EETHSW_FES_VECT_ROG_HRCOUNTER[15:0]
Reset value0000000000000000
0x80F310ETHSW_FES_SEQ_REC_TAGLESS_LRCOUNTER[15:0]
Reset value0000000000000000
0x80F312ETHSW_FES_SEQ_REC_TAGLESS_HRCOUNTER[15:0]
Reset value0000000000000000
0x80F314ETHSW_FES_SEQ_REC_SB_LRCOUNTER[15:0]
Reset value0000000000000000
0x80F316ETHSW_FES_SEQ_REC_SB_HRCOUNTER[15:0]
Reset value0000000000000000
0x80F318 - 0xFFFFFCReserved

Table 997. ETHSW register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x1000000 + 0x200 * x, (x = 0 to 2)ETHSW_EIA_RGMII_Px_IDRVERSION[7:0]ID[7:0]
Reset value00000001110110001
0x1000002 + 0x200 * x, (x = 0 to 2)ETHSW_EIA_RGMII_Px_LINK_STATUSRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DUPLEX_STATUSAUTONEG_SPEED[1:0]LINK_STATUS
Reset value0000
(0x1000004 - 0x100001C) + 0x200 * x, (x = 0 to 2)Reserved
0x1000020 + 0x200 * x, (x = 0 to 2)ETHSW_EIA_RGMII_Px_RX_DELAYRRX_DELAY[15:0]
Reset value00000000000000000
0x1000022 + 0x200 * x, (x = 0 to 2)ETHSW_EIA_RGMII_Px_TX_DELAYRTX_DELAY[15:0]
Reset value00000000000000000
0x1000000 + 0x100 * x, (x = 1 to 2)ETHSW_EIA_RMII_Px_IDRVERSION[7:0]ID[7:0]
Reset value0000001010110101
0x1000202 + 0x100 * x, (x = 1 to 2)ETHSW_EIA_RMII_Px_LINK_STATUSRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LINK_STATUS
Reset value0
(0x1000204 - 0x100021E) + 0x100 * x, (x = 1 to 2)Reserved
0x1000220 + 0x100 * x, (x = 1 to 2)ETHSW_EIA_RMII_Px_RX_DELAYRRX_DELAY[15:0]
Reset value000000000000000
0x1000222 + 0x100 * x, (x = 1 to 2)ETHSW_EIA_RMII_Px_TX_DELAYRTX_DELAY[15:0]
Reset value000000000000000

Refer to Section 2.4 on page 228 for the register boundary addresses.