FIFO Buffer Latency Estimation Using Pattern Detection

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing phase compensation buffers in communication links cannot accurately determine latency to a fraction of a cycle due to rapidly changing write and read pointers, limiting their effectiveness in managing communication link performance.

Innovation Solution

A circuit and method that uses detectors to identify patterns in data values written to and read from a FIFO buffer, with a counter counting active transitions of a sample clock signal to estimate latency, providing a more precise measurement of latency through the buffer.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If write and read pointers are used to determine latency in a phase compensation buffer, then the latency can be determined at the cycle level, but the measurement precision is insufficient to achieve fraction-of-a-cycle accuracy because the pointers change too quickly

Engineering Contradiction:
Improvelatency measurement precisionVSAvoidpointer change speed
Core Design Contradiction:
Measurement precisionVSSpeed

Solution Approach 1:

The patent introduces an intermediary sampling mechanism that captures pointer positions at discrete intervals. Instead of directly measuring the rapidly changing pointers, the invention uses a sampler to capture their positions at specific moments, converting the continuous high-speed pointer changes into discrete, measurable samples that can be accurately recorded and processed to determine fractional cycle latency.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The invention creates copies of the pointer positions at each sampling instant. By capturing and storing multiple copies of pointer positions over time, the system can analyze the relationship between write and read pointer copies to calculate latency with fractional cycle precision, rather than relying on a single direct pointer reading.

Inventive Principle:
Principle #26Copying

2Measurement precision

If the sampling period is reduced to improve latency estimation accuracy, then the measurement precision increases, but the device complexity increases due to the need for higher frequency sampling

Engineering Contradiction:
Improvelatency estimation accuracyVSAvoidsampling system complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent applies partial action by sampling at a moderate frequency that captures sufficient information for accurate latency estimation without requiring excessively high sampling rates. The invention demonstrates that complete continuous sampling is not necessary - strategic partial sampling at optimized intervals achieves the required precision while maintaining manageable system complexity.

Inventive Principle:
Principle #16Partial or excessive action

Solution Approach 2:

The invention optimizes the sampling period parameter to achieve the best balance between measurement accuracy and system complexity. By carefully selecting and adjusting the sampling period parameter, the system achieves fraction-of-a-cycle latency measurement precision without requiring prohibitively high sampling frequencies that would increase device complexity.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS8386828B1Circuit for estimating latency through a FIFO buffer
Publication Date: 2013.02.26 XILINX INC
  • US8386828B1 patent drawing
  • US8386828B1 patent drawing
  • US8386828B1 patent drawing

AI summary

Circuits and methods are provided for estimating a latency through a FIFO buffer. A first detector detects first instances of a pattern in first data values serially written to a write port of the FIFO buffer. A second detector detects second instances of the pattern in second data values serially read from a read port of the FIFO buffer. The second data values are the first data values delayed by the latency through the FIFO buffer. A counter counts a count of active transitions of a sample clock signal. The counter starts on each detected first instance and stops on each detected second instances. The count provides an estimate of the latency of the FIFO buffer.