Basics on Timing in FPGA Designs

Introduction

An FPGA processes signals in parallel, so timing is critical for the reliable processing of signals. To be able to control the timing of a signal, the FPGA uses flip-flops to hold the state of signals. Flip-flops are also known as registers.


Basic information on flip-flops

The following illustration shows a D-flip-flop (DFF) and its signals as an example.

Port

Description

D

Data input

Q

Data output

Clk

Clock input

CE

Chip enable

The state of the data output changes synchronously to the clock input: With the rising edge of the clock, the flip-flop outputs the state of the data input. The chip enable port enables the chip.

The following terms are important for the timing of FPGA designs.

Setup time

This is the time for which the data input signal must be stable before the clock signal rises from low to high.

Hold time

This is the time for which the data input signal must be stable after the clock signal rises from low to high.

Propagation delay

The propagation delay is the time a signals requires from one flip-flop to the next.

The propagation delay depends on the used logic levels and the routing of the signals.

Metastability

FPGA signals are electrical signals that take time to change their state. This is critical when the data input signal changes close to a rising edge of the clock signal. To have a reliable output stage, the data input signal must be stable when the clock signal rises from low to high. Otherwise, the state of the data output is unknown or can even oscillate.


FPGA timing

In FPGA logic, timing is always measured between two flip-flops. If a signal does not make its way through the combinatorial logic (i.e., all operations with latency 0) in the clock period, a timing error occurs.

The following illustration shows an example.

For a reliable transmission, the data signal must reach the data input of the receiving flip-flop early enough and with a stable signal level.


Redaction