F-Tile Triple-Speed Ethernet Intel® FPGA IP User Guide

ID 741328
Date 4/03/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

5.1.11.2. MDIO Frame Format

The MDIO master communicates with the slave PHY device using MDIO frames. A complete frame is 64 bits long and consists of 32-bit preamble, 14-bit command, 2-bit bus direction change, and 16-bit data. Each bit is transferred on the rising edge of the MDIO clock, mdc.
Table 23.  MDIO Frame Formats (Read/Write)Field settings for MDIO transactions.
Type PRE Command
ST

MSB      LSB

OP

MSB  LSB

Addr1

MSB   LSB

Addr2

MSB   LSB

TA Data

MSB                 LSB

Idle
Read 1 ... 1 01 10 xxxxx xxxxx Z0 xxxxxxxxxxxxxxxx Z
Write 1 ... 1 01 01 xxxxx xxxxx 10 xxxxxxxxxxxxxxxx Z
Table 24.  MDIO Frame Field Descriptions
Name Description
PRE Preamble. 32 bits of logical 1 sent prior to every transaction.
ST Start indication. Standard MDIO (Clause 22): 0b01.
OP Opcode. Defines the transaction type.
Addr1 The PHY device address (PHYAD). Up to 32 devices can be addressed. For PHY device 0, the Addr1 field is set to the value configured in the mdio_addr0 register. For PHY device 1, the Addr1 field is set to the value configured in the mdio_addr1 register.
Addr2 Register Address. Each PHY can have up to 32 registers.
TA Turnaround time. Two bit times are reserved for read operations to switch the data bus from write to read for read operations. The PHY device presents its register contents in the data phase and drives the bus from the 2nd bit of the turnaround phase.
Data 16-bit data written to or read from the PHY device.
Idle Between frames, the MDIO data signal is tri-stated.