AN 702: Interfacing a USB PHY to the Hard Processor System USB 2.0 OTG Controller

ID 683601
Date 9/22/2017
Public
Document Table of Contents

1.3.3.2. FPGA Clock Source

When the FPGA fabric drives the USB Controller clock output the USB interface requires the use of a loan I/O pin instead of the typical USB clock input pin.

User logic in the FPGA drives a clock signal, typically derived from a PLL, into the loan I/O assigned to the USB controller. This clock signal routes into the USB controller and externally to the USB PHY. This configuration provides a common clock source for both the USB controller and PHY much like when the PHY is configured for input clock mode with an external clock source. Because this mode of operation differs from the previous examples, you must configure the USB controller for SDR with PHY clock input mode in the Peripheral Pins tab of the HPS Parameters window of Platform Designer (Standard).

Figure 6. USB PHY in Input Clock Mode with FPGA PLL Clock Source
Note: When implementing input clock mode with an FPGA clock source, the FPGA must be configured prior to USB interface operation. This implementation can impact embedded software significantly and must be considered carefully before selecting the input clock mode with FPGA clock source. Using an external clock source (as shown in Figure 5) can accomplish the same objective without necessarily affecting embedded software.