User manual

Table Of Contents
Zynq-7000 AP SoC Technical Reference Manual www.xilinx.com 507
UG585 (v1.11) September 27, 2016
Chapter 16: Gigabit Ethernet Controller
After transmission, a pause frame transmitted interrupt is generated (bit 14 of the Interrupt Status
register) and the only statistics register that is incremented is the Pause Frames Transmitted register.
PFC Pause frames can also be transmitted by the MAC using normal frame transmission methods.
16.3 Programming Guide
The controller functionality is described in detail in section 16.2 Functional Description and
Programming Model. All of the controller registers are listed in Table 16-9 and Table 16-10 and are
described in detail in Appendix B, Register Details.
Example: Programming Steps
1. 16.3.1 Initialize the Controller
2. 16.3.2 Configure the Controller
3. 16.3.3 I/O Configuration
4. 16.3.4 Configure the PHY
5. 16.3.5 Configure the Buffer Descriptors
6. 16.3.6 Configure Interrupts
7. 16.3.7 Enable the Controller
8. 16.3.8 Transmitting Frames
9. 16.3.9 Receiving Frames
10. 16.3.10 Debug Guide
16.3.1 Initialize the Controller
1. Clear the Network Control register. Write 0x0 to gem.net_ctrl register.
2. Clear the Statistics registers. Write a 1 to gem.net_ctrl[clear_stat_regs].
3. Clear the Status registers. Write a 1 to the Status registers. gem.rx_status = 0x0F and
gem.tx_status = 0xFF.
4. Disable all interrupts. Write 0x7FF_FEFF to the gem.intr_dis register.
5. Clear the buffer queues. Write 0x0 to the gem.rx_qbar and gem.tx_qbar registers.