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.1.3.1. USB PHY to Controller Setup Timing Analysis

To determine if your configuration meets setup timing requirements at the USB Controller, you must calculate the worst case setup time to verify that it falls within limits. To meet setup time requirements, the data arrival time must be less than or equal to the time at which data is required. The inequality below evaluates the data arrival and data required time using values in USB Controller and PHY timing characteristic USB Controller and PHY, respectively. By replacing each side of the inequality with the timing expressions that represent data arrival and data required time, you can verify if the setup timing requirements are met.
Data Arrival ≤ Data Required

Launch_Edge + PHY Td_max + DTrace Td_max ≤ (Latch_Edge – Clock Tu) + ClkTrace Td_min - MAC Tsu

If you assume that the Launch_Edge = 0 ns and the Latch_Edge = Tclk, then the equation can be simplified:

PHY Td_max + DTrace Td_max  ≤  (Tclk – Clock Tu) + ClkTrace Td_min - MAC Tsu

By moving terms to one side, you can determine if the worst case setup time for your configuration is greater than or equal to the minimum required setup time:

(Tclk – Clock Tu) + ClkTrace Td_min - PHY Td_max - DTrace Td_max  ≥  Mac Tsu

(16.67 - 0.3) + 0.05 - 5.0 - 0.1  ≥ 5.0

11.32 ns ≥ 5.0 ns