Recent from talks
Nothing was collected or created yet.
Management Data Input/Output
View on WikipediaManagement Data Input/Output (MDIO), also known as Serial Management Interface (SMI) or Media Independent Interface Management (MIIM), is a serial bus defined for the Ethernet family of IEEE 802.3 standards for the Media Independent Interface, or MII. The MII connects media access control (MAC) devices with Ethernet physical layer (PHY) circuits. The MAC device controlling the MDIO is called the Station Management Entity (SME).
Relationship to MII
[edit]MII has two signal interfaces:
- A Data interface to the Ethernet MAC, for sending and receiving Ethernet frame data.
- A PHY management interface, MDIO, used to read and write the control and status registers of the PHY in order to configure each PHY before operation, and to monitor link status during operation.
Electrical specification
[edit]The MDIO interface is implemented by two signals:
- MDIO Interface Clock (MDC): clock driven by the MAC device to the PHY.
- MDIO data: bidirectional, the PHY drives it to provide register data at the end of a read operation.
The bus only supports a single MAC as the master, and can have up to 32 PHY slaves.
The MDC can be periodic, with a minimum period of 400 ns, which corresponds to a maximum frequency of 2.5 MHz. Newer chips, however, allow faster accesses. For example, the DP83640 supports a 25 MHz maximum clock rate for MDC.
The MDIO requires a specific pull-up resistor of 1.5 kΩ to 10 kΩ, taking into account the total worst-case leakage current of 32 PHYs and one MAC.
Bus timing (clause 22)
[edit]Before a register access, PHY devices generally require a preamble of 32 ones to be sent by the MAC on the MDIO line. The access consists of 16 control bits, followed by 16 data bits. The control bits consist of 2 start bits, 2 access type bits (read or write), the PHY address (5 bits), the register address (5 bits), and 2 "turnaround" bits.
During a write command, the MAC provides address and data. For a read command, the PHY takes over the MDIO line during the turnaround bit times, supplies the MAC with the register data requested, then releases the MDIO line.
When the MAC drives the MDIO line, it has to guarantee a stable value 10 ns (setup time) before the rising edge of the clock MDC. Further, MDIO has to remain stable 10 ns (hold time) after the rising edge of MDC.
When the PHY drives the MDIO line, the PHY has to provide the MDIO signal between 0 and 300 ns after the rising edge of the clock.[1] Hence, with a minimum clock period of 400 ns (2.5 MHz maximum clock rate) the MAC can safely sample MDIO during the second half of the low cycle of the clock.
MDIO Packet Format (clause 22)
[edit]| MDIO Packet Format | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Bit: | 0 | 1 | 2 | 3 | 4 | 8 | 9 | 13 | 14 | 15 | 16 | 31 | ||||||||||||||||||||
| 0 | PRE_32 | |||||||||||||||||||||||||||||||
| 32 | ST | OP | PA5 | RA5 | TA | D16 | ||||||||||||||||||||||||||
PRE_32
The first field in the MDIO header is the Preamble. During the preamble, the MAC sends 32 bits, all '1', on the MDIO line.
ST
The Start field consists of 2 bits and always contains the combination '01'.
OP
The Opcode consists of 2 bits. There are two possible opcodes, read '10' or write '01'.
PA5
5 bits, PHY address.
RA5
The Register Address field indicates the register to be written to or read from. It is 5 bits long.
TA
The turn-around field is 2 bits long. When data is being written to the PHY, the MAC writes '10' to the MDIO line. When data is being read, the MAC releases the MDIO line.
D16
16 bits, data. This can be sent by either the SME or the PHY, depending on the value of the OP field.
Z
Tristate MDIO.
Commands
[edit]IEEE 802.3 Part 3[1] use different opcodes and start sequences. Opcodes 00(set address) and 11(read)/01(write)/10(read increment) are used as two serial transactions to read and write registers.
References
[edit]- ^ a b IEEE 802.3 Part 3: Carrier Sense Multiple Access with Collision Detection (CSMA/CD) access method and Physical Layer specification. IEEE. doi:10.1109/IEEESTD.2018.8457469. ISBN 978-1-5044-5090-4.
External links
[edit]Management Data Input/Output
View on GrokipediaOverview
Definition and Purpose
Management Data Input/Output (MDIO) is a bidirectional serial bus protocol defined in the IEEE 802.3 standard for Ethernet networks, specifically within the Media Independent Interface (MII) management framework. It enables communication between the Media Access Control (MAC) sublayer, which acts as the Station Management Entity (SME), and physical layer (PHY) devices.[2][6] The primary purpose of MDIO is to facilitate the configuration of PHY registers and the retrieval of operational status information, such as link status, negotiation speed, and duplex mode, allowing network administrators to monitor and adjust Ethernet transceivers dynamically. This protocol supports remote management capabilities, enabling these operations without disrupting ongoing data traffic on the primary Ethernet data paths.[6][2] MDIO is also referred to as the Serial Management Interface (SMI) or Media Independent Interface Management (MIIM). In its basic topology, a single MAC can connect to up to 32 PHY devices on a shared bus, using a 5-bit PHY address to distinguish each device.[6][2]Historical Development and Standards
The Management Data Input/Output (MDIO) interface was initially defined in Clause 22 of IEEE 802.3u-1995 to provide serial management capabilities for Fast Ethernet (100 Mbps) physical layer (PHY) devices, allowing access to up to 32 registers across 32 PHYs via a two-wire bus. This specification established the foundational frame format and timing for low-speed Ethernet management, with the management data clock (MDC) operating at frequencies up to 2.5 MHz.[1] With the advent of higher-speed Ethernet, Clause 45 was introduced in IEEE Std 802.3ae-2002 to extend MDIO functionality for 10 Gigabit Ethernet, accommodating more complex PHY architectures that required access to additional registers and multi-device support. This expansion addressed limitations in Clause 22 by implementing a two-stage addressing scheme—using device type (ST) codes and port addresses—to manage up to 65,536 registers per device, while maintaining compatibility with the existing electrical interface.[4] Key consolidations and amendments followed, including IEEE Std 802.3-2018, which integrated prior revisions to support Ethernet speeds up to 400 Gb/s and refined MDIO register mappings for diverse PHY types.[7] The IEEE Std 802.3-2022 further advanced the standard with amendments for automotive Ethernet (e.g., multi-gigabit over unshielded twisted pair) and Power over Ethernet enhancements, adding MDIO-accessible parameters for power management and vehicle-specific diagnostics.[8] The IEEE 802.3df-2024 amendment added physical layer specifications and management parameters for 800 Gb/s Ethernet, utilizing Clause 45 for extended register access in high-speed applications. As of the IEEE P802.3dm draft in July 2025, Clause 45 includes updates such as new registers for BASE-T1 PHYs to support emerging automotive and industrial applications.[9][10] Adoption milestones reflect Ethernet's growth: Clause 22 achieved widespread implementation in 10/100 Mbps networks by the mid-2000s, enabling standardized PHY configuration in enterprise and consumer devices.[11] Clause 45 became mandatory for 10 Gb/s and higher PHYs starting with the 2002 standard, gaining broad industry traction by 2006 as 10G Ethernet deployments accelerated in data centers and backbone infrastructure. This transition from Clause 22's straightforward 2.5 MHz bus to Clause 45's extensible framework has been essential for scaling management in modern, high-density Ethernet ecosystems.[1]Interface Fundamentals
Relationship to Media Independent Interface
The Media Independent Interface (MII), defined in IEEE 802.3 Clause 22, establishes a standardized connection between the Media Access Control (MAC) sublayer and the Physical Layer (PHY) entity, comprising both data transmission paths and a dedicated management interface. The data interface consists of transmit (TX) and receive (RX) signal pairs that handle Ethernet frame transfer at speeds of 10 Mb/s or 100 Mb/s using four-bit wide nibbles, while the management interface employs the Management Data Input/Output (MDIO) serial bus for control and monitoring functions.[12] This separation ensures that management operations do not interfere with the ongoing data flow across the TX/RX paths.[12] MDIO serves as the management sublayer of the MII, enabling the Station Management entity (typically the MAC) to access the PHY's Management Information Base (MIB) through a set of standardized registers for configuration, status reporting, and diagnostics. As a two-wire serial bus—comprising the bidirectional MDIO data line and the Management Data Clock (MDC)—it allows the MAC to act as the master device, initiating read/write operations to up to 32 slave PHY devices addressed via a 5-bit PHY address (0-31).[12] This master-slave architecture supports independent management transactions, such as querying link status or enabling loopback modes, without disrupting frame transmission.[12] The MDIO interface has evolved alongside higher-speed variants of the MII while preserving its core management role. In the Gigabit Media Independent Interface (GMII), Reduced Gigabit Media Independent Interface (RGMII), and 10 Gigabit Media Independent Interface (XGMII), MDIO continues to provide register access for PHY control, extended through mechanisms like Clause 45 to accommodate expanded register sets for multi-gigabit operations.[12] These adaptations maintain compatibility with the original MII management framework, supporting features such as auto-negotiation for speed and duplex mode selection.[12] This integration offers key benefits, including support for hot-swappable PHY devices through non-intrusive register accesses and dynamic reconfiguration during operation, which enhances system flexibility and reliability in Ethernet networks.[12] By decoupling management from data paths, MDIO facilitates modular designs where PHYs can be interchanged or adjusted without halting traffic, a foundational aspect of media-independent Ethernet implementations.[12]Electrical Characteristics
The Management Data Input/Output (MDIO) interface utilizes two primary signals at the physical layer: the Management Data Clock (MDC), which is driven as an output by the station management entity (typically the media access control sublayer or MAC), and the bidirectional MDIO line for data transfer.[12] The MDC provides a clock reference for synchronizing MDIO operations, with Clause 22 specifying a maximum frequency of 2.5 MHz. Some implementations support higher frequencies up to 25 MHz.[12][4] The MDIO signal employs an open-drain configuration with three-state drivers, allowing multiple physical layer devices (PHYs) to share the bus; during MAC transmission, PHYs enter a high-impedance (tristate) state to avoid contention.[12][13] Voltage levels for the MDIO interface are designed for compatibility with standard logic families. In Clause 22, the interface aligns with TTL/CMOS levels, supporting supplies from 0 V to 5 V and commonly operating at 3.3 V, with output high voltage (V_OH) ≥ 2.4 V at -4 mA and output low voltage (V_OL) ≤ 0.4 V at 4 mA.[12] Clause 45 extends support to low-voltage CMOS (LVCMOS) processes, targeting a nominal 1.2 V supply, where V_OH ranges from 1.0 V to 1.5 V at -100 µA (with drive up to -4 mA), V_OL from -0.3 V to 0.2 V at 100 µA (up to 4 mA), input high voltage (V_IH) from 0.84 V to 1.5 V, and input low voltage (V_IL) from -0.3 V to 0.36 V.[4] These specifications ensure interoperability across voltage domains, often requiring level translation for mixed Clause 22 and 45 environments.[13] The MDIO line incorporates a pull-up resistor to V_CC (or V_DD) to establish a default high state, sized between 1.5 kΩ and 10 kΩ to accommodate leakage currents from up to 32 PHYs plus the MAC; a common value is 4.7 kΩ or 1.5 kΩ ±5% for Clause 22 compliance.[12][14] The MAC actively drives MDIO low during its transmit phase, while PHYs rely on the pull-up for idle states. Drive strength is specified at a minimum of 4 mA sink/source capability to maintain signal integrity across the bus.[12][4] Maximum bus capacitance is limited to 470 pF total in Clause 22 for a fully loaded bus with 32 PHYs, with input capacitance per device ≤ 10 pF; Clause 45 maintains similar loading constraints at ≤ 470 pF.[12][4][13] Due to its serial, open-drain architecture and low-frequency operation, the MDIO interface consumes minimal power, typically in the microamp range during idle states, making it suitable for integration in power-over-Ethernet (PoE) devices where management overhead must not significantly impact overall budget.[5]Clause 22 Specification
Bus Timing Requirements
The bus timing requirements for Clause 22 of the IEEE 802.3 standard ensure reliable serial communication over the MDIO interface by defining precise clocking and signal stability parameters. The Management Data Clock (MDC) operates with a minimum period of 400 ns, corresponding to a maximum frequency of 2.5 MHz, allowing sufficient time for signal settling across multi-drop buses.[15][11] The MDC duty cycle must be maintained between 40% and 60% to support consistent sampling, and rise/fall times are required to be less than 20 ns for signal integrity.[16] All Clause 22 frames are fully synchronized to the rising edges of MDC, with no support for burst modes, ensuring each management transaction is a discrete, clock-aligned operation.[1] Setup and hold times for MDIO signals are critical to prevent data errors during transfers. When the station management entity (typically the MAC) drives the MDIO signal, it must ensure MDIO remains stable for at least 10 ns before and 10 ns after the rising edge of MDC.[17][15] For PHY responses during read operations, the PHY must drive MDIO between 0 ns and 300 ns after the rising edge of MDC, providing flexibility for internal processing delays while bounding the overall transaction latency.[18] The turnaround timing during read accesses facilitates bus handover from the MAC to the PHY without contention. After transmitting the register address, the MAC releases (tri-states) the MDIO line during the first turnaround bit, and the PHY begins driving the second turnaround bit (typically a logic 0) within 0 to 300 ns of the subsequent MDC rising edge.[11][18] This mechanism ensures clean transitions on the bidirectional MDIO line. Error handling in Clause 22 relies on preamble detection for frame validity, with the PHY ignoring transactions lacking the required 32-bit all-ones preamble, prompting the MAC to retry the access.[1] These timing constraints collectively support robust operation in noisy environments typical of Ethernet PHY management.Frame Structure and Packet Format
The Clause 22 MDIO frame structure defines a fixed 64-bit format for management transactions over the serial bus, enabling reliable read and write access to PHY registers. The frame begins with a 32-bit preamble consisting of all logic 1s, which serves to synchronize the PHY's deserializer to the MDC clock, ensuring proper bit alignment before the control information is transmitted. This preamble is required prior to each management transaction.[19][20] Following the preamble, a 14-bit control field specifies the transaction details: a 2-bit start delimiter (ST) fixed at 01 to demarcate the frame boundary, a 2-bit operation code (OP) indicating the access type (10 for read, 01 for write), a 5-bit PHY address (PHYAD) selecting the target device from 0 to 31, and a 5-bit register address (REGAD) identifying the specific register within the PHY from 0 to 31. The PHY address 00000 (0) functions as a broadcast address, allowing the transaction to reach all connected PHYs simultaneously, while individual addresses 00001 to 11111 (1-31) target specific devices. Standard register examples include address 0 for the basic mode control register (used for configuration such as speed selection and loopback) and address 1 for the basic mode status register (providing link status and capabilities).[19][2][21][5] The control field is followed by a 2-bit turnaround (TA) field to manage bus contention and direction change, particularly for read operations, and concludes with a 16-bit data field holding the register value (MSB first). For write operations, the station management entity (STA, typically the MAC) drives the TA as 10 and immediately follows with the 16-bit data value to be written into the register. For read operations, the STA drives the first TA bit as 1 and tri-states the MDIO line (entering high-impedance, Z) for the second bit; the addressed PHY responds by driving a 0 on that second bit to acknowledge and avoid contention, then drives the 16-bit register value in the data field. After the data, the MDIO line returns to idle (tri-stated). This structure ensures orderly bus arbitration on the bidirectional MDIO line without additional signaling.[19][2]| Field | Bits | Description | Example Values |
|---|---|---|---|
| Preamble (PRE) | 32 | All 1s for synchronization | 1111... (32 times) |
| Start (ST) | 2 | Frame delimiter | 01 |
| Operation (OP) | 2 | Access type | 10 (read), 01 (write) |
| PHY Address (PHYAD) | 5 | Target PHY (0 = broadcast) | 00000 to 11111 |
| Register Address (REGAD) | 5 | Target register (e.g., 0 = control, 1 = status) | 00000 to 11111 |
| Turnaround (TA) | 2 | Bus direction management | 10 (write, STA-driven); 1Z/0 (read, with PHY driving 0 on second bit) |
| Data | 16 | Register value | Variable (read from or written to register) |
