PHY Latency Measurement Using Gray Code Counters
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Computing systems face challenges in accurately measuring transit latency for communication between components, particularly in high-speed interfaces like PCIe and USB 3.0, which is crucial for synchronized operations in devices like industrial control systems and audio-video applications.
Innovation Solution
Implementing a mechanism within the PHY interface to use a free-running Gray code counter for precise time measurement (PTM) to determine and report latency accurately, with separate paths for transmit and receive operations, enabling high-accuracy latency determination across the PHY and MAC layers.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Measurement precision
If conventional timing measurement methods are used in high-speed interfaces, then device complexity is reduced, but measurement precision deteriorates due to insufficient timing resolution
Solution Approach 1:
The patent introduces a dedicated timing measurement unit as an intermediary component within the PHY interface. This separate unit specifically handles timing measurements using Gray code counters, isolating the complex measurement functions from the main data path. The timing measurement unit acts as a mediator that provides precise latency measurements without complicating the overall interface design, as it operates independently with its own counter resources.
Solution Approach 2:
The patent segments the PHY interface into distinct functional components: a data path for normal communication and a separate timing measurement path for latency measurement. By dividing the interface into these independent segments, each with specialized functionality, the system achieves high measurement precision without overwhelming complexity. The timing measurement segment uses dedicated counters that operate independently from the data transmission segment.
2Speed
If high-speed communication protocols are implemented, then data transmission speed is improved, but latency measurement accuracy deteriorates due to timing variability
Solution Approach 1:
The patent implements free-running counters that continuously count clock cycles without interruption or reset. This continuous counting provides an unbroken timing record that accurately captures the transit latency even during high-speed data transmission. The counters operate continuously in the background, ensuring that timing measurement is not disrupted by the high-speed communication activities, thereby maintaining measurement accuracy alongside high transmission speeds.
Solution Approach 2:
The patent replaces traditional mechanical or software-based timing measurement mechanisms with a hardware-based Gray code counter system. This hardware substitution provides more reliable and accurate timing measurements at high speeds, as the counters are specifically designed to operate reliably at the high clock frequencies required for modern high-speed interfaces like PCIe and USB 3.0.
3Measurement precision
If separate timing measurement paths are implemented for transmit and receive operations, then measurement precision is improved, but device complexity increases
Solution Approach 1:
The patent merges the timing measurement functionality into the existing PHY interface structure by utilizing available counter resources that are already part of the interface design. Rather than adding completely separate measurement paths, the invention combines latency measurement with the existing data path infrastructure, using the same clocking and control mechanisms. This integration approach provides accurate separate measurements for transmit and receive operations while avoiding the complexity of entirely independent measurement systems.
Data Source
Figure 1
Figure 2
Figure 3
AI summary
In an embodiment, an apparatus includes a counter to count between a start value and an end value according to a local clock signal, a first register to store an output of the counter, a mirror elastic buffer to store samples of the counter output received from the first register, where the mirror elastic buffer is to mirror an elastic buffer of a receiver circuit, and a resolution logic to receive a counter output sample from the mirror elastic buffer and a current counter value output from the counter, and to determine a transit latency for a data element to traverse the receiver circuit based at least in part on the counter output sample and the current counter value. Other embodiments are described and claimed.