A control register is implemented in the core that allows the driver software to communicate the line-rate information to the core. This allows the core to dynamically adapt to the line-rate changes. Access to this register is through the MDIO interface. The driver software has to initiate a MDIO read/write cycle to read from and write to this register.
IMPORTANT: The driver software must use a PHY address, which is different from the PHY address used to address the onboard PHY. The PHY address for the core can be set through the VHDL generic C_PHYADDR.
Table: Register Space Implementation illustrates the implementation of the register space in the core. This register is within the management module. The management module monitors the MDIO_GEM_O line for a new MDIO cycle. When a new cycle is initiated, and the PHY address matches the PHY address assigned to this core, the module latches the data field of the MDIO frame to the control register for a write cycle or MUXes out the content of the control register to the MDIO_GEM_I line for a read cycle.
Bits |
Name |
Default |
Access |
Description |
---|---|---|---|---|
15:5 |
Reserved |
0x000 |
Reserved |
Reserved |
4:0 |
External PHY ID |
0x1F |
R/W |
Provides the PHY ID of the External PHY |
Bits |
Name |
Default |
Access |
Description |
---|---|---|---|---|
15 |
AN Status Monitor Enable |
0 |
R/W |
Writing into this bit enables the snooping operation of the GMII to RGMII core for operation speed. |
14:9 |
Reserved |
0x00 |
Reserved |
Reserved |
8:5 |
AN Complete Bit Location |
0x5 |
R/W |
Position of AN Complete status bit in the 16 bit External PHY Status Register |
4:0 |
External PHY Status Register ID |
0x1 |
R/W |
Register address of the External PHY Status Register |
Bits |
Name |
Default |
Access |
Description |
---|---|---|---|---|
15:0 |
External PHY Status Register Contents |
0x0000 |
R/O |
Contents of the External PHY Status Register obtained during the last MDIO read from GEM by snooping the MDIO interface. |
Bits |
Name |
Default |
Access |
Description |
---|---|---|---|---|
15:5 |
Reserved |
0x000 |
Reserved |
Reserved |
4:0 |
External PHY Speed Bit Register ID |
0x1F |
R/W |
Register address of the External PHY Speed Register |
Bits |
Name |
Default |
Access |
Description |
---|---|---|---|---|
15:12 |
Reserved |
0x000 |
Reserved |
Reserved |
11:8 |
External PHY 10 Mb/s Speed Bit Position |
0x2 |
R/W |
Position of the 10 Mb/s speed resolved bit in the 16 bit wide External PHY Speed Register |
7:4 |
External PHY 100 Mb/s Speed Bit Position |
0x1 |
R/W |
Position of the 100 Mb/s speed resolved bit in the 16 bit wide External PHY Speed Register |
3:0 |
External PHY 1 Gb/s Speed Bit Position |
0x0 |
R/W |
Position of the 1 Gb/s speed resolved bit in the 16 bit wide External PHY Speed Register |
Bits |
Name |
Default |
Access |
Description |
---|---|---|---|---|
15:0 |
External PHY Speed Bit Register Contents |
0x0000 |
R/O |
Contents of the External PHY Speed Register obtained during the last MDIO read from GEM after AN is complete by snooping the MDIO interface. |