Solving TDC Challenges with Gowin FPGAs: Accurate, Scalable, and Cost-Effective Timing Solutions

White Paper

WP1155-1.0E, 2025-07-08

1 Abstract

As time-domain applications continue to grow across sectors such as 3D sensing, quantum optics, medical imaging, and LiDAR, the demand for high-resolution, scalable, and reliable Time-to-Digital Converter (TDC) solutions has increased significantly. While FPGAs are a popular platform for TDC implementation, traditional approaches often suffer from inconsistent delay lines, environmental sensitivity, and limited channel scalability.

This white paper introduces GOWIN Semiconductor's innovative TDC architecture that leverages dedicated delay lines embedded in FPGA IO blocks. By circumventing the limitations of general-purpose logic fabric, GOWIN FPGAs offer superior timing precision, enhanced thermal and voltage stability, and support for high-density, multi-channel designs. The paper also explores real-world applications, including 3D Time-of-Flight cameras, digital oscilloscopes, and quantum photon counting systems, and demonstrates how GOWIN's solution reduces cost and power while improving performance.

Additionally, the paper presents a unique case study of a DIY Time-Based ADC, showcasing how GOWIN FPGAs enable creative, low-cost, high-resolution signal digitization. For engineers seeking accurate, efficient, and scalable TDC implementation, GOWIN's FPGA-based solution sets a new standard in time-domain signal processing.

2 Introduction to TOF and TDC technology

Time-of-Flight (ToF)

In the age of smart devices, autonomous systems, and immersive reality, the ability to perceive depth with speed and precision has become essential. At the heart of many advanced sensing solutions lies Time-of-Flight (ToF) technology—an optical distance measurement technique that is revolutionizing fields from mobile photography to robotics and industrial automation.

Time-of-Flight is a method for measuring distance by calculating the time it takes for a signal—typically a light pulse or modulated wave—to travel from a source to a target and back. By capturing this "flight time," the system can determine the exact distance to an object. The fundamental principle is simple, but its implementation relies on cutting-edge optoelectronics and timing technologies.

A typical ToF system consists of:

Concept of ToF from Wikipedia. The diagram shows a light pulse emitted from a source, reflecting off an object, and returning to a sensor. The distance 'd' is calculated using the formula d = ct/2, where 'c' is the speed of light and 't' is the time of flight.

There are two main types of ToF systems. One is Direct ToF (dToF), which measures the actual time delay between the emitted and received pulse. The other is Indirect ToF (iToF), which measures the phase shift of a modulated light signal to estimate distance.

There are several Key Advantages of ToF:

As technology continues to evolve, ToF sensors are becoming smaller, faster, and more accurate. Future innovations will likely combine ToF with AI, edge computing, and multi-modal sensing (e.g., combining ToF with RGB or thermal imaging) to enable smarter, context-aware devices.

Time-to-Digital Converter (TDC)

A Time-to-Digital Converter (TDC) is an electronic circuit that measures the time interval between two events and converts it into a digital number. Unlike traditional ADCs (Analog-to-Digital Converters) that digitize voltage levels, TDCs focus on timing precision, offering exceptional performance for time-domain applications.

TDCs are essential in:

TDCs measure the time between a start and stop signal. Depending on the architecture, they can achieve resolutions from nanoseconds down to tens of picoseconds or even lower.

Common Architectures:

  1. Delay Line TDC: Uses a chain of logic gates or buffers with known delay. Captures which stage the signal reaches when stopped. Simple and fast, but limited in resolution and sensitive to process/temperature.
  2. Vernier TDC: Uses two delay lines with slightly different delays. The difference is used to interpolate timing more precisely. Higher resolution but more complex.
  3. Ring Oscillator or Counter-based TDC: Measures coarse time with a counter and fine time with a delay chain. Offers a wide dynamic range and scalable performance.
  4. Time Interleaving or Multi-phase Clock: Improves throughput by parallelizing the measurement process. Ideal for high-frequency, high-event-rate applications.
Schematic of TDC based on Vernier Delay Line. The diagram illustrates a start signal and a stop signal propagating through a series of delay elements, with outputs indicating the time difference.

Many TDCs are implemented on-chip FPGA or ASIC for flexibility and reduced cost.

3 Implementing TDC in FPGA

Why Use FPGAs for TDC?

FPGAs (Field-Programmable Gate Arrays) are ideal for implementing TDCs due to:

FPGAs enable rapid development of TDCs for applications such as:

Common TDC Implementation Techniques in FPGA

  1. Tapped Delay Line (TDL) with LUTs and Carry Chains: Uses the FPGA's carry-chain logic as a fine-grained delay line. A signal propagates through the chain; a fast sampling flip-flop array captures the position of the rising edge. The pattern of flip-flop outputs gives a “thermometer code” that's translated to fine time. Pros: Simple, high resolution (20–50 ps typically). Cons: Sensitive to temperature, voltage, and placement variability.
  2. Vernier Delay Line (VDL): Uses two delay chains with slightly different delays to create a “beat frequency” and interpolate time. Often implemented with carefully tuned LUTs or logic blocks. Pros: Higher resolution than TDL (sub-10 ps achievable). Cons: More complex, calibration-intensive.
  3. Multiphase Clocking: Leverages a PLL to generate multiple clock phases. Uses these clocks to sample the timing signal more finely than the system clock. Pros: Easy to implement, deterministic. Cons: Limited number of phases, coarse resolution (unless combined with other techniques).
One Example of Carry Chain based TDC. The diagram shows a logic block with carry-in, carry-out, clock, and data inputs/outputs, representing a TDC implementation using carry chains.

Limitations of FPGA-based TDC

Challenge Description
Non-uniform delays Delay lines vary due to routing, logic placement, process variation.
Temperature/voltage drift Delay elements are sensitive to environmental changes.
Metastability Occurs when sampling fast-changing signals asynchronously.
Jitter Internal and external clock noise can limit accuracy.

4 GOWIN TDC Solution

While implementing TDCs in FPGAs offers tremendous flexibility and performance, designers often face a set of persistent challenges tied to the nature of traditional FPGA fabric. Gowin Semiconductor addresses these issues with a unique architectural innovation, offering a more robust and scalable TDC solution.

The Challenges of FPGA-Based TDCs

While FPGAs are widely used for implementing TDCs, several technical limitations can impact timing accuracy and reliability:

  1. Routing and Placement Variability: Traditional TDC designs in FPGAs rely on a general-purpose logic fabric and internal routing. As a result, delay lines are non-uniform due to synthesis and routing differences. Fine-tuning the layout requires manual floorplanning and careful timing analysis. Achieving consistent results across devices and designs can be difficult.
  2. Environmental Sensitivity: Standard FPGA delay elements are sensitive to temperature changes, voltage fluctuations, and process variations. This leads to timing drift and requires active calibration or thermal compensation, increasing complexity and design time.

Gowin's Solution: Dedicated IO-Based Delay Architecture

To overcome these limitations, Gowin FPGAs integrate dedicated delay lines and registers directly into the IO blocks, offering a new standard in accuracy and robustness for TDC design.

Key Advantages

  1. Stable and Uniform Delay Lines: Dedicated delay elements in the IOs are physically consistent and isolated from logic fabric. There is no dependency on random logic placement or FPGA routing. This ensures high linearity and repeatable measurements across multiple devices and temperature ranges.
  2. Reduced Environmental Sensitivity: The IO block architecture minimizes the impact of process, voltage, and temperature (PVT) variations. This significantly improves timing stability without requiring external calibration or complex compensation logic.
  3. High Channel Density: Gowin FPGAs offer a high number of IOs per device, enabling the implementation of multi-channel TDCs at low cost. This is ideal for applications such as LiDAR, SPAD arrays, and quantum experiments where many parallel timing channels are required.
  4. Low-Cost and Power-Efficient: By moving the TDC function to dedicated IO resources, Gowin avoids overloading core logic, allowing for smaller and more power-efficient FPGA configurations. This enables system designers to reduce BOM cost while maintaining high performance.
Gowin FPGA TDC architecture. The diagram shows a 'Pin' connected to 'TDC in IO Logic', which then connects to 'To Fabric' and a 'PLL'. The output is specified as 8bits/16bits/32bits.

Benchmarks

Note: the clock frequency is the CLK in IOLogic driven by PLL.

The resolution X C = distance, where C is the speed of light.

Summary

While traditional FPGA-based TDCs offer flexibility, they often fall short in terms of consistency, environmental stability, and scalability. Gowin's dedicated IO-based delay architecture directly addresses these challenges, delivering a stable, accurate, and scalable TDC platform.

By combining high IO count, reduced sensitivity to environmental variation, and low cost, Gowin FPGAs offer a differentiated solution for multi-channel TDC implementations—empowering designers to build faster, more reliable time-domain systems with confidence.

5 Device and IP Support

GOWIN TDC solution can be implemented in all Gowin FPGAs. The resolution will vary depending on the devices. Gowin EDA tools provide TDC IP and Guideline documents to help users to implement this solution. Please see IPUG1208-1.0E_Gowin TDC IP User Guide.

Here is the EDA software view of this IP.

EDA software view of the TDC IP. The diagram shows connections between PC, Crystal Oscillator, PLL, JTAG, and the TDC IP.

Here is the IP core generator view:

IP core generator view for TDC. It shows a dialog box for IP customization, including General settings (Device, Device Version, Part Number, Verilog Language, File Name, Create In, Module Name) and Options (Count Width).

6 Real World Applications

1. 3D Time-of-Flight (ToF) Cameras

Use Case:

ToF cameras are used in mobile devices, industrial automation, gesture control, and augmented reality systems. They emit a short light pulse (typically from a VCSEL) and measure the time it takes for light to bounce off an object and return to the sensor.

Role of FPGA TDC:

Why FPGA:

2. Quantum Optics & Time-Correlated Photon Counting (TCSPC)

Use Case:

In quantum communication, quantum key distribution (QKD), and fluorescence lifetime imaging (FLIM), precise photon arrival time is critical. Researchers use these systems to study entanglement, photon correlations, and lifetimes at the single-photon level.

Role of FPGA TDC:

Why FPGA:

3. Digital Oscilloscopes and Signal Analysis

Use Case:

Modern oscilloscopes (especially digital sampling scopes and time interval analyzers) rely on high-precision time capture to measure jitter, edge timing, and propagation delays in high-speed circuits and communication interfaces.

Role of FPGA TDC:

Why FPGA:

4. Precision LiDAR Systems

Use Case:

In autonomous vehicles, drones, and surveying systems, LiDAR (Light Detection and Ranging) is used to build real-time 3D maps of the environment. Precision timing is key to converting photon return time into accurate distance.

Role of FPGA TDC:

Why FPGA:

A reconstructed 3D model by using 128-channel TDCs in the GW5A-138K device.

7 A DIY Project example

You can indeed build an ADC (Analog-to-Digital Converter) using TDC (Time-to-Digital Converter) principles. This method is often called a Time-Based ADC or Time-Encoding ADC, and it leverages the conversion of an analog voltage into a time interval, which is then measured by a TDC.

Here's how it works, how it's constructed, and where it's useful:

Basic Idea:

Instead of directly digitizing voltage levels (as in a traditional ADC), you convert the analog voltage into a time delay, and then measure that delay using a Time-to-Digital Converter.

Voltage → Time → Digital

This approach takes advantage of the high timing resolution of modern TDCs, often enabling very fine quantization steps with lower power and simpler analog front ends.

Diagram illustrating the core components of a Time-Based ADC. It shows a Voltage-to-Time Converter (VTC) receiving an input voltage (VIN) and outputting a time delay, which is then measured by a Time-to-Digital Converter (TDC) to produce a digital output (ADCOUT). The VTC is driven by a Clock Generator (CG) and a Frequency Divider (FD).

How It Works: Core Components

  1. Voltage-to-Time Converter (VTC): This circuit converts the analog input voltage into a time delay. Common implementations include:
    • Ramp Generator + Comparator: A reference voltage ramps linearly. When it crosses the input voltage, a comparator triggers the stop signal. The time from start of ramp to trigger = analog voltage.
    • Current-Starved Delay Chain: Delay elements modulated by analog voltage control current (and therefore delay). Used in some VCO-based architecture.
  2. Time-to-Digital Converter (TDC): Once the analog voltage is converted into a delay (a time interval), a high-resolution TDC digitizes that time. The output is a digital code corresponding to the original input voltage.
Timing Diagram of ADC based on TDC. The diagram shows the relationship between Clock, Slope, Analog signal, LVDS, TDC, and Digital output over time.

ADC Performance Overview

Reference implementation and performance validation were conducted on the TANG Nano 4K development board (Chip: GW1NSR-LV4CQN48PC7/I6).

Testing Setup. The image shows a breadboard with electronic components and a development board.

Results

FPGA Resource Utilization (Per ADC Channel)

This makes the solution efficient for integration into small, cost-sensitive FPGAs while preserving sufficient logic and memory for additional system logic or control tasks.

Advantages

Challenges

Applications

8 Conclusion

Time-to-Digital Converters are at the heart of many emerging technologies, from high-resolution 3D imaging and LiDAR to quantum research and precision instrumentation. While FPGAs have long been a flexible platform for TDC design, traditional implementations often face limitations in timing accuracy, environmental stability, and scalability.

GOWIN Semiconductor addresses these challenges with a novel IO-based TDC architecture, delivering consistent and precise delay lines that are inherently less sensitive to temperature, voltage, and process variations. This architecture not only improves measurement linearity and timing resolution but also enables high channel density and efficient power utilization, critical for modern applications that demand real-time performance and compact form factors.

By integrating TDC functionality into dedicated IO resources, GOWIN FPGAs simplify design complexity, reduce calibration overhead, and lower total system cost. The result is a scalable, robust, and cost-effective timing solution ideal for engineers and system designers pushing the boundaries of time-domain performance.

As the need for precise timing grows across industries, GOWIN's FPGA-based TDC solution provides a reliable foundation for innovation, empowering next-generation systems with the accuracy, flexibility, and efficiency required to meet tomorrow's demands.

9 Reference

Trademark Acknowledgments:

GOWIN, Gowin, LittleBee, and GOWINSEMI are trademarks of Guangdong Gowin Semiconductor Corporation and are registered in China, the U.S. Patent and Trademark Office, and other countries. All other words and logos identified as trademarks or service marks are the property of their respective holders. No part of this document may be reproduced or transmitted in any form or by any denotes, electronic, mechanical, photocopying, recording or otherwise, without the prior written consent of GOWINSEMI.

Support and Feedback

GOWIN Semiconductor provides customers with comprehensive technical support. If you have any questions, comments, or suggestions, please feel free to contact us directly using the information provided below.

Website: www.gowinsemi.com

E-mail: support@gowinsemi.com

Revision History

Date Version Description
2025/07/08 1.0E Initial draft
Models: WP1155-1.0E Stereo Earbud, WP1155-1.0E, Stereo Earbud, Earbud

File Info : application/pdf, 19 Pages, 2.46MB

PDF preview unavailable. Download the PDF instead.

686d4de34f4a6

References

macOS Version 15.5 (Build 24F74) Quartz PDFContext

Related Documents

Preview Gowin XCORR IP User Guide
User guide for the Gowin XCORR IP, detailing its features, configuration, and usage for cross-correlation operations in FPGA designs. Covers input parameters, port descriptions, timing, and resource utilization.
Preview Gowin FP Comp IP User Guide - FPGA Core Documentation
This user guide provides comprehensive details on the Gowin FP Comp IP, covering its features, functionality, port descriptions, timing, GUI configuration, and reference design for FPGA development.
Preview Gowin_EMPU_M1 Hardware Design Reference Manual
This reference manual provides comprehensive details on the Gowin_EMPU_M1, a powerful embedded microcontroller unit designed by GOWIN Semiconductor. It details the hardware architecture, system features, and the complete hardware design flow, including project creation, configuration, and port definitions.
Preview GW1N Series FPGA Product Datasheet
Comprehensive datasheet for the GW1N Series FPGA products from Gowin Semiconductor, detailing features, specifications, electrical characteristics, and more.
Preview Arora V SAR ADC User Guide - GOWIN Semiconductor
User guide for the Arora V SAR ADC (Analog-to-Digital Converter) from GOWIN Semiconductor, detailing its features, functional description, configuration, and instantiation.
Preview Gowin DVI TX RX IP User Guide
This user guide provides a comprehensive overview of the Gowin DVI TX RX IP, covering its features, implementation, configuration, and reference designs. It is intended for users who need to integrate DVI transmission and reception capabilities into their FPGA designs.
Preview Gowin USB 2.0 SoftPHY IP User Guide
User guide for Gowin USB 2.0 SoftPHY IP, detailing its features, functions, signals, interface configuration, and resource utilization for FPGA implementation.
Preview Arora V ADC 用户指南 - GOWIN 半导体
GOWIN Arora V 模拟数字转换器 (ADC) 用户指南,详细介绍其功能特点、端口定义、电气特性、配置方法以及使用示例,适用于 GW5A、GW5AR、GW5AS、GW5AT、GW5AST 系列 FPGA。