User manual

Table Of Contents
Zynq-7000 AP SoC Technical Reference Manual www.xilinx.com 1296
UG585 (v1.11) September 27, 2016
Appendix B: Register Details
Register (GEM) phy_maint
Register phy_maint Details
The PHY maintenance register is implemented as a shift register. Writing to the register starts a shift
operation, which is signaled as complete when bit-2 is set in the network status register. It takes about 2000
pclk cycles to complete, when MDC is set for pclk divide by 32 in the network configuration register. An
interrupt is generated upon completion. During this time, the MSB of the register is output on the MDIO
pin and the LSB updated from the MDIO pin with each MDC cycle. This causes transmission of a PHY
management frame on MDIO. See Section 22.2.4.5 of the IEEE 802.3 standard. Reading during the shift
operation will return the current contents of the shift register. At the end of management operation, the bits
will have shifted back to their original locations. For a read operation, the data bits will be updated with
data read from the PHY. It is important to write the correct values to the register to ensure a valid PHY
management frame is produced.
Name phy_maint
Software Name XEMACPS_PHYMNTNC
Relative Address 0x00000034
Absolute Address gem0: 0xE000B034
gem1: 0xE000C034
Width 32 bits
Access Type rw
Reset Value 0x00000000
Description PHY Maintenance
Field Name Bits Type Reset Value Description
reserved 31 rw 0x0 Must be written with 0.
clause_22 30 rw 0x0 Must be written to 1 for Clause 22 operation.
Check your PHY's spec to see if it is clause 22 or
clause 45 compliant.
operation
(OP)
29:28 rw 0x0 Operation. 10 is read. 01 is write.
phy_addr
(ADDR)
27:23 rw 0x0 PHY address.
reg_addr
(REG)
22:18 rw 0x0 Register address - specifies the register in the PHY
to access.
must_10 17:16 rw 0x0 Must be written to 10.
data
(DATA)
15:0 rw 0x0 For a write operation this is written with the data
to be written to the PHY. After a read operation
this contains the data read from the PHY.