![Xilinx Virtex-4 RocketIO User Manual Download Page 90](http://html1.mh-extra.com/html/xilinx/virtex-4-rocketio/virtex-4-rocketio_user-manual_3383739090.webp)
90
Embedded Tri-Mode Ethernet MAC User Guide
UG074 (v2.2) February 22, 2010
Chapter 3:
Client, Host, and MDIO Interfaces
R
EMACISEL bit. All writes to Ethernet MAC registers are accomplished in a single host
clock cycle except for the MDIO registers.
To read data from an Ethernet MAC register through the DCR bus, the DCR cntlReg is
programmed for read, EMAC0 or EMAC1 select, and the address code. The Ethernet MAC
address code is translated and output from the host interface on the address bus
ADDR#[9:0].
The decode of the address code generates the control signals MIIMSEL#, REQ#, and
OPCODE#[1:0] that are output to the selected Ethernet MAC. The data read out from the
Ethernet MAC is deposited in DCR dataRegLSW and dataRegMSW (in the case of an
address filter or statistics IP register read) in the host interface.
Reading the configuration registers for the Ethernet MAC and the address filter registers
takes a single host clock cycle, while reading from the Ethernet MAC statistics IP registers
and MDIO registers takes multiple host clock cycles. An Ethernet MAC statistics IP register
read takes six host clock cycles. MDIO registers reads take a multiple number of host clock
cycles depending on the physical interface device. To write to any of the PCS layer registers
(
“Management Registers,” page 140
), the data must be written to the MDIO Write Data
register shown in
. The PHY address and PCS register number are then written
to the DCR dataRegLSW register. The mapping is shown in
.
The DCR bridge runs at the same clock frequency as the PowerPC processor. Because the
host bus is not a high performance bus, HOSTCLK runs at a lower frequency. The
HOSTCLK frequency must be an integer divide of the DCR clock frequency, and the two
clocks must be phase aligned. The DCR bridge ignores any new DCR command in the
DCR clock domain until a host access in the HOSTCLK domain is complete. Hence, the
PowerPC processor must determine when a host access is complete.
If the interrupt request method is selected, the host interface interrupt request output pin
DCRHOSTDONEIR is used to notify the host when an access is completed. In the case of a
read, when the host services the interrupt, it must issue DCR reads to dataRegLSW and
dataRegMSW to read out the Ethernet MAC register data.
The interrupt request register is located in the IRSTATUS register (Address Code
0x3A0
).
After servicing the interrupt request, the host must clear the interrupt request. In addition,
the DCR RDYstatus register is provided to indicate when a multiple-cycle access is ready.
This register is allows the host to use the polling method for accesses requiring only a few
multiple host clock cycles.
Figure 3-45:
MDIO Address Register to Access PCS Sublayer Register Block
ug074_
3
_49_0
8
0
8
05
Auto-Negotiation Advertisement Register
PHY Identifier Register
Control Register
15 0
0
1
2
3
MSB
LSB
Status Register
PCS Sublayer Managed Register Block
4
DCR Offset
0
3
1
MSB
LSB
22
REG_ADDR
PHY_ADDR
26 27
PHY Identifier Register
0x1
REG_ADDR
www.BDTIC.com/XILINX