PHY Latency Measurement Using Gray Code Counters

Resolve Bottlenecks,
Find Innovative Solutions
Generate 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

VSEngineering 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

Engineering Contradiction:
Improvelatency measurement precisionVSAvoidPHY interface complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

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.

Inventive Principle:
Principle #24Intermediary (Mediator)

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.

Inventive Principle:
Principle #1Segmentation

2Speed

If high-speed communication protocols are implemented, then data transmission speed is improved, but latency measurement accuracy deteriorates due to timing variability

Engineering Contradiction:
Improvedata transmission speedVSAvoidtransit latency measurement accuracy
Core Design Contradiction:
SpeedVSMeasurement precision

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.

Inventive Principle:
Principle #20Continuity of useful action

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.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

3Measurement precision

If separate timing measurement paths are implemented for transmit and receive operations, then measurement precision is improved, but device complexity increases

Engineering Contradiction:
Improvelatency determination accuracyVSAvoidPHY interface structure
Core Design Contradiction:
Measurement precisionVSDevice complexity

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.

Inventive Principle:
Principle #5Merging (Combining)

Data Source

PatentEP4254209B1A method, apparatus and system for measuring latency in a physical unit of a circuit
Publication Date: 2025.11.12 INTEL CORP
  • EP4254209B1 patent drawingFigure 1
  • EP4254209B1 patent drawingFigure 2
  • EP4254209B1 patent drawingFigure 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.