Module 2: Logic Synthesis · 2.4 Synthesis Constraints

create_clock and I/O Delay Budgets

The previous article introduced the create_clock command with a 10.0 ns period. By default, SDC assumes a symmetric 50 percent duty cycle. This article examines explicit clock waveforms and external input/output timing budgets.

Clock Period Versus Duty Cycle

The clock period defines total cycle duration. The duty cycle defines the fraction of that period where the clock remains in a high logical state.

An explicit 50 percent duty cycle constraint specifies rising and falling edge timestamps:

create_clock -name clk -period 10.0 -waveform {0 5.0} [get_ports clk]

The parameter -waveform {0 5.0} indicates that the clock rises at 0.0 ns and falls at 5.0 ns.

To model an asymmetric clock, adjust the falling edge transition:

create_clock -name clk -period 10.0 -waveform {0 3.0} [get_ports clk]

This configuration creates a 30 percent duty cycle (high for 3.0 ns and low for 7.0 ns). Certain memory interfaces and source-synchronous protocols require asymmetric clock waveforms.

A 50 percent and a 30 percent duty cycle on the same 10 ns period
Figure 1: Period and waveform are two separate numbers

Physical Meaning of Input and Output Delays

Input and output delay constraints model external circuit timing outside the chip boundary:

  • Input Delay: set_input_delay -clock clk 2.0 [get_ports {a[*]}] specifies that external logic consumes 2.0 ns of the cycle before signals reach port a. This delay accounts for the launching register clock-to-Q delay and external PCB trace delay.
  • Output Delay: set_output_delay -clock clk 1.5 [get_ports {result[*]}] specifies that external receiving logic requires 1.5 ns of margin before the next clock edge. This delay accounts for external trace delay and receiving register setup time.

Omitting I/O delays forces the timing engine to assume ideal zero-delay external interfaces, which masks timing violations.

Computing the Available Combinational Budget

Calculate the internal timing budget for alu8 input paths:

$$ T_{\text{available}} = T_{\text{period}} - t_{\text{input_delay}} - t_{\text{setup}} $$

Assume a 10.0 ns clock period, a 2.0 ns input delay, and a standard cell setup time ($t_{\text{setup}}$) of 0.08 ns from the Liberty file:

$$ T_{\text{available}} \approx 10.0\text{ ns} - 2.0\text{ ns} - 0.08\text{ ns} \approx 7.92\text{ ns} $$

The internal combinational logic between input ports and output registers must evaluate within 7.92 ns rather than the full 10.0 ns period.

Realistic constraints guarantee that synthesized circuits meet timing when integrated into larger systems.

Practice Exercise

An external priority encoder drives port op with a delay of 4.5 ns, while a and b maintain 2.0 ns input delays. Write the SDC commands and determine which input path imposes the tightest timing constraint.

Solution
set_input_delay -clock clk 2.0 [get_ports {a[*]}]
set_input_delay -clock clk 2.0 [get_ports {b[*]}]
set_input_delay -clock clk 4.5 [get_ports {op[*]}]

Port op imposes the tightest timing constraint. The available internal evaluation budget is only $10.0\text{ ns} - 4.5\text{ ns} - t_{\text{setup}} \approx 5.42$ ns. Paths starting at op have less margin than paths starting at a or b.

The next article explains why synthesis-stage static timing analysis reports are optimistic compared to post-layout signoff timing.

← Writing a First SDC File Why Synthesis-Stage Timing Is Optimistic →