Source Synchronous
Source Synchronous
Source-Synchronous
Interfaces
December 2007, ver. 2.0 Application Note 433
Introduction This application note describes techniques for constraining and analyzing
source-synchronous interfaces. In source-synchronous interfaces, the
clock is sourced from the same device as the data, rather than another
source, such as a common clock network. Figure 1 shows a basic block
diagram of a source-synchronous interface.
Transmitter Receiver
Data
Clock
Clock
f For more information, refer to the SDC Manual and the Quartus II
TimeQuest Timing Analyzer chapter of the Quartus II Handbook.
Altera Corporation 1
AN-433-2.0 Preliminary
Constraining and Analyzing Source-Synchronous Interfaces
data after the first rising or falling clock edge. In that case, additional logic
is required, in addition to a clock shift after the first rising or falling latch
edge.
clock
data
clock
data
2 Altera Corporation
Preliminary
Introduction
clock
data
clock
data
Data constraints are necessary for each active clock edge. Single-data rate
interfaces require constraints for only one active clock edge, typically the
rising edge. Double-data rate interfaces require data constraints that are
relative to the rising and falling clock edges.
Example 1 shows constraints that are relative to the rising edge of the
clock. For a single-data rate interface, no other data constraints are
necessary. Sections later in this application note describe how to calculate
constraint values.
Example 1.
set_output_delay -clock [get_clocks output_clk] -max 2 [get_ports data_out]
set_output_delay -clock [get_clocks output_clk] -min -1 \
[get_ports data_out] -add_delay
Altera Corporation 3
Preliminary
Constraining and Analyzing Source-Synchronous Interfaces
Example 2.
set_output_delay -clock [get_clocks output_clk] -max 2 [get_ports data_out]
set_output_delay -clock [get_clocks output_clk] -min -1 \
[get_ports data_out] -add_delay
set_output_delay -clock [get_clocks output_clk] -max 2 -clock_fall \
[get_ports data_out] -add_delay
set_output_delay -clock [get_clocks output_clk] -min -1 -clock_fall \
[get_ports clk_in] -add_delay
Interface Constraints
Source-synchronous interfaces require the following three types of SDC
constraints or exceptions:
This application note is divided into two main sections: one that describes
output interfaces (“Source-Synchronous Outputs” on page 7), and one
that describes input interfaces (“Source-Synchronous Inputs” on
page 48). Each of these sections includes details about the three types of
SDC constraints or exceptions that apply to each direction.
4 Altera Corporation
Preliminary
Introduction
Altera Corporation 5
Preliminary
Constraining and Analyzing Source-Synchronous Interfaces
Launch Clock
Latch Clock
Note to Figure 6:
(1) Red arrows indicate setup relationships.
Launch Clock
Latch Clock
Note to Figure 7:
(1) Blue arrows indicate hold relationships.
Launch Clock
Latch Clock
Note to Figure 8:
(1) Red arrows indicate setup relationships.
6 Altera Corporation
Preliminary
Source-Synchronous Outputs
Launch Clock
Latch Clock
Note to Figure 9:
(1) Blue arrows indicate hold relationships.
Depending on the alignment of your clock and data and the edges used
to launch and latch data, you may have to add timing exceptions or adjust
timing constraints to ensure correct timing analysis.
Altera Corporation 7
Preliminary
Constraining and Analyzing Source-Synchronous Interfaces
Output Clocks
The output clock is sourced by the FPGA. Figure 10 shows one example
of this.
datain_h
DDR
FPGA data_out
datain_i
outclock
DDR
clock_out
PLL
You can use a variety of options for circuits to create the output clock.
Refer to “Output Clock Constraints” on page 9 for sample clock circuits
and SDC constraints. Some output clocks are direct outputs from a system
PLL. Some output clocks are generated by a toggling clock output
register, such as in the ALTDDIO megafunction. Some output clocks are
controlled by a state machine that clocks data on one clock edge and the
output clock on another. Some output clocks may be driven by the same
clock that clocks the data out. Two common options are to use a clock that
drives directly off chip, or to use a clock that drives off chip through DDR
output registers (using the ALTDDIO_OUT megafunction).
When output clocks are generated independently from the data output
register clocks (two PLL taps, for example), you can change the clock and
data timing relationship by adjusting the relationship between their
clocks (such as adjusting PLL phase).
In an FPGA, there is low skew between clock and data outputs when the
output clock drives through DDR registers, because the routing from each
DDR register to FPGA output is nearly identical. When the clock drives
directly off chip, the difference in routing types between the DDR data
registers and the global clock network causes larger skew between clock
and data outputs. Also, the allowable clock frequency is lower when the
clock drives directly off chip. Using the clock directly is acceptable in
interfaces that run at lower clock speeds, and can tolerate more output
skew between clock and data.
8 Altera Corporation
Preliminary
Source-Synchronous Outputs
Clocks for the data and clock output DDR registers are typically
generated with a PLL. In some cases, the same PLL output drives the data
and clock DDR registers. In other cases, two PLL outputs are used. You
can use the same PLL output in the following circumstances:
■ Center-aligned DDR outputs (clock and data are 90° out of phase)
■ Clock driving directly off chip (compensate for delay differences
between clock and data)
■ Clock and data that is not center- or edge-aligned (different than 90°
or 180° out of phase
■ Precise adjustment of clock and data relationship (fine-tuning phase
adjustment)
Altera Corporation 9
Preliminary
Constraining and Analyzing Source-Synchronous Interfaces
DDR
clk_in
clk_out
Example 3.
create_clock -name input_clock -period 10 [get_ports clk_in]
create_generated_clock -name output_clock -source [get_ports clk_in] \
[get_ports clk_out]
DDR
0
clk_in
clk_out
0
10 Altera Corporation
Preliminary
Source-Synchronous Outputs
Example 4.
create_clock -name input_clock -period 10 [get_ports clk_in]
create_generated_clock -name data_clock -source [get_pins PLL|inclk[0]] \
[get_pins PLL|clk[0]]
create_generated_clock -name pll_clock -source [get_pins PLL|inclk[0]] \
[get_pins PLL|clk[1]]
create_generated_clock -name output_clock -source [get_pins PLL|clk[1]] \
[get_ports clk_out]
Figure 13 and Example 5 show the circuit and constraints for a DDR
center-aligned output with independent data clocks and output clocks.
DDR
0
clk_in
clk_out
+90
Example 5.
create_clock -name input_clock -period 10 [get_ports clk_in]
create_generated_clock -name data_clock -source [get_pins PLL|inclk[0]] \
[get_pins PLL|clk[0]]
create_generated_clock -name pll_clock -phase 90 -source \
[get_pins PLL|inclk[0]] [get pins PLL|clk[1]]
create_generated_clock -name output_clock -source \
[get_pins PLL|clk[1]] [get_ports clk_out]
Figure 14 and Example 6 show the circuit and constraints for a DDR
output with a common data clock and output clock. The output clock is
connected via an ALTDDIO_OUT megafunction.
Altera Corporation 11
Preliminary
Constraining and Analyzing Source-Synchronous Interfaces
Figure 14. Circuit with Common Data Clock and Output Clock
datain_h
DDR
FPGA data_out
datain_i
outclock
DDR
clock_out
PLL
Example 6.
create_clock -name input_clock -period 10 [get_ports clk_in]
create_generated_clock -name common_clock -source \
[get_pins PLL|inclk[0]] [get_pins PLL|clk[0]]
create_generated_clock -name output_clock -source \
[get_pins DDR|ddio_outa[0]|outclk] [get_ports clk_out]
Figure 15 and Example 7 show the circuit and constraints for one PLL
output driving the data DDR registers, and a separate PLL output driving
the clock DDR registers.
Figure 15. Output Circuit with Separate Output Clock and Input Clock
datain_h
DDR
FPGA data_out
datain_i
outclock
DDR
clock_out
PLL
12 Altera Corporation
Preliminary
Source-Synchronous Outputs
Example 7.
create_clock -name input_clock -period 10 [get_ports clk_in]
create_generated_clock -name data_clock -source [get_pins PLL|inclk[0]] \
[get_pins PLL|clk[0]]
create_generated_clock -name pll_clock -source [get_pins PLL|inclk[0]] \
[get_pins PLL|clk[1]]
create_generated_clock -name output_clock -source \
[get_pins DDR|ddio_outa[0]|outclk] [get_ports clk_out]
Figure 16 and Example 8 show the circuit and constraints for a PLL that
drives the clock directly off chip.
datain_h
DDR
FPGA data_out
datain_i
outclock
PLL
clock_out
Example 8.
create_clock -name input_clock -period 10 [get_ports clk_in]
create_generated_clock -name data_clock -source [get_pins PLL|inclk[0]] \
[get_pins PLL|clk[0]]
create_generated_clock -name pll_clock -source [get_pins PLL|inclk[0]] \
[get_pins PLL|clk[1]]
create_generated_clock -name output_clock -source \
[get_pins PLL|clk[1]] [get_ports clk_out]
Altera Corporation 13
Preliminary
Constraining and Analyzing Source-Synchronous Interfaces
clock
(1) Output maximum delay value = maximum trace delay for data + t SU of external register –
minimum trace delay for clock
Example 9.
set_output_delay -max <output maximum delay value>-clock \
[get_clocks output_clock][get_ports data_out]
A DDR output has a duplicate constraint that applies to the falling edge
of the clock, shown in Example 10.
Example 10.
set_output_delay -max <output maximum delay value> -clock \
[get_clocks output_clock] [get_ports data_out]
set_output_delay -max <output maximum delay value> -clock \
[get_clocks output_clock] -clock_fall [get_ports data_out] -add_delay
14 Altera Corporation
Preliminary
Source-Synchronous Outputs
(2) Output minimum delay = minimum trace delay for data – tH of external register –
maximum trace delay for clock
Example 11.
set_output_delay -min <output minimum delay value> -clock \
[get_clocks output_clock] [get_ports data_out*]
A DDR output has a duplicate constraint that applies to the falling edge
of the clock, shown in Example 12.
Example 12.
set_output_delay -min <output minimum delay value> -clock \
[get_clocks output_clock] [get_ports data_out*]
set_output_delay -min <output minimum delay value> -clock \
[get_clocks output_clock] -clock_fall [get_ports data_out*] -add_delay
Altera Corporation 15
Preliminary
Constraining and Analyzing Source-Synchronous Interfaces
Figure 18. Desired Setup and Hold for SDR Same-Edge Capture
Data Clock
Output Clock
Figure 19 shows the setup and hold relationships that should be analyzed
for DDR same-edge capture.
Figure 19. Desired Setup and Hold for DDR Same-Edge Capture
Data Clock
Output Clock
You can use two types of exceptions to change the default analysis so the
correct setup and hold relationships for same-edge capture are analyzed.
You can use the following two types of exceptions for same-edge capture:
Both methods result in the same timing analysis results, but the
multicycle exception is a better representation of the design intent.
Regardless of which approach you use, you should also add false path
exceptions as shown in Example 13, so that opposite-edge transfers are
not analyzed.
16 Altera Corporation
Preliminary
Source-Synchronous Outputs
Altera Corporation 17
Preliminary
Constraining and Analyzing Source-Synchronous Interfaces
Data Clock
Output Clock
Adding one clock period to the output maximum delay value does not
adjust the latch edge, but it shifts the data required time one cycle earlier
in time as shown in Figure 21.
Clock
Output Delay
Clock Period
New Output Delay
18 Altera Corporation
Preliminary
Source-Synchronous Outputs
If you use a small positive phase shift to better align the clock and data
outputs, do not use the multicycle exception of zero, or the extra clock
period described above. A small positive phase shift results in a small
setup relationship, and the latch edge, analyzed by default, is the same
clock edge as the launch edge (with a small shift), as shown in Figure 22.
Data Clock
Output Clock
If you use a small negative phase shift to better align the clock and data
outputs, you must use the multicycle exception of zero or the extra clock
period described above. With a small negative phase shift, the correct
setup relationship is to the edge shifted just before the launch edge, as
shown by the solid arrow in Figure 23. The dashed arrow indicates the
default setup relationship, which is to the next clock edge after the launch
edge.
Altera Corporation 19
Preliminary
Constraining and Analyzing Source-Synchronous Interfaces
Data Clock
Output Clock
Data Clock
Output Clock
20 Altera Corporation
Preliminary
Source-Synchronous Outputs
Even if you use a small positive or negative phase shift to better align the
clock and data outputs, the false path exceptions in Example 17 are still
sufficient.
Data Clock
Output Clock
Do not use any multicycle exceptions, and do not add a clock cycle to the
output maximum delay value. In this case, the only exceptions necessary
for correct timing analysis are false path exceptions for opposite-edge
transfers shown in Example 18.
Example 18.
set_false_path -setup -rise_from [get_clocks data_clock] -fall_to
[get_clocks output_clock]
set_false_path -setup -fall_from [get_clocks data_clock] -rise_to
[get_clocks output_clock]
set_false_path -hold -rise_from [get_clocks data_clock] -rise_to
[get_clocks output_clock]
set_false_path -hold -fall_from [get_clocks data_clock] -fall_to
[get_clocks output_clock]
Even if you use a small positive or negative phase shift to better align the
clock and data outputs, the false path exceptions in Example 18 are still
sufficient. Figure 26 shows small positive and negative phase shifts for a
center-aligned source synchronous output, and the latch edge for the
same-edge transfer never changes.
Altera Corporation 21
Preliminary
Constraining and Analyzing Source-Synchronous Interfaces
Data Clock
Output Clock
Data Clock
Output Clock
In this case, the only exceptions required for correct timing analysis are
false path exceptions in Example 19 to prevent timing analysis on
same-edge transfers.
Example 19.
set_false_path -setup -rise_from [get_clocks data_clock] -rise_to
[get_clocks output_clock]
set_false_path -setup -fall_from [get_clocks data_clock] -fall_to
[get_clocks output_clock]
set_false_path -hold -rise_from [get_clocks data_clock] -fall_to
[get_clocks output_clock]
set_false_path -hold -fall_from [get_clocks data_clock] -rise_to
[get_clocks output_clock]
22 Altera Corporation
Preliminary
Source-Synchronous Outputs
(3) clock arrival time – skew < data arrival time < clock arrival time + skew
Clock
Data
Skew
FPGA-centric constraints are based on a clock offset between the data and
output clocks, and a skew requirement for the data. Clock offset is the
time difference between the data clock edge and output clock edge. In an
edge-aligned interface, the clock offset is zero. In a center-aligned
interface, the clock offset is half the unit interval. In an SDR interface, the
unit interval is equal to the clock period. In a DDR interface, the unit
interval is equal to half the clock period. Therefore, in an SDR interface,
the clock offset is one half of a clock period, and in a DDR interface, the
clock offset is one quarter of a period.
Altera Corporation 23
Preliminary
Constraining and Analyzing Source-Synchronous Interfaces
The other approach uses equations derived from early and late margins
that are based on the clock offset and skew values, described in
“Constraints Derived from Early and Late Margins” on page 26. If you
use tCO and minimum tCO values to derive output delay constraints for
your interface, use the approach described in“Constraints Derived from
Early and Late Margins” on page 26. Both approaches are correct and
result in equivalent constraints.
Setup Relationship: Use a setup check to specify the left-hand side of the
relationship in Equation 3. A setup check verifies that the latest data
arrival time (data arrival + skew) is earlier than the data required time
(clock arrival). Equation 4 shows the components of arrival time and
required time.
Equation 5 shows the inequality that must be satisfied for positive slack,
then shows the substitution of arrival and required times from
Equation 4.
Write the SDC constraint for an SDR output as shown in Example 20 with
the output maximum delay value from Equation 6.
24 Altera Corporation
Preliminary
Source-Synchronous Outputs
Example 20.
set_output_delay -max <output maximum delay value> -clock \
[get_clocks output_clock] [get_ports data_out]
A DDR output has a duplicate constraint that applies to the falling edge
of the clock, shown in Example 21.
Example 21.
set_output_delay -max <output maximum delay value> -clock \
[get_clocks output_clock] [get_ports data_out]
set_output_delay -max <output maximum delay value> -clock \
[get_clocks output_clock] -clock_fall [get_ports data_out] -add_delay
Hold Relationship: Use a hold check to specify the right-hand side of the
relationship in Equation 3 on page 23. A hold check verifies that the
earliest data arrival time (data arrival – skew) is later than the data
required time (clock arrival). Equation 7 shows the components of arrival
time and required time.
Equation 8 shows the inequality that must be satisfied for positive slack,
then shows the substitution of arrival and required times from
Equation 7.
Write the SDC constraint for an SDR output as shown in Example 22 with
the output minimum delay value from Equation 9.
Example 22.
set_output_delay -min <output minimum delay value> -clock \
[get_clocks output_clock] [get_ports data_out*]
Altera Corporation 25
Preliminary
Constraining and Analyzing Source-Synchronous Interfaces
A DDR output has a duplicate constraint that applies to the falling edge
of the clock, shown in Example 23.
Example 23.
set_output_delay -min <output minimum delay value> -clock \
[get_clocks output_clock] [get_ports data_out*]
set_output_delay -min <output minimum delay value> -clock \
[get_clocks output_clock] -clock_fall [get_ports data_out*] -add_delay
The early margin corresponds to the minimum tCO value and the late
margin corresponds to the tCO value. Figure 29 shows early and late
margins indicated on a center-aligned DDR interface timing diagram.
Data Clock
Output Clock
Data
Skew
26 Altera Corporation
Preliminary
Source-Synchronous Outputs
Data Clock
Clock Offset
Output Clock
Early Margin
Late Margin
Data
Skew
Altera Corporation 27
Preliminary
Constraining and Analyzing Source-Synchronous Interfaces
Data Clock
Clock Offset
Output Clock
Early Margin
Late Margin
Data
Skew
(
Unit Interval Clock Period
2
)
Data Clock
Clock Offset
Output Clock
Early Margin
Late Margin
Data
Skew
28 Altera Corporation
Preliminary
Source-Synchronous Outputs
( )
Unit Interval Clock Period
2
Data Clock
Clock Offset
Output Clock
Early Margin
Late Margin
Data
Skew
Clock
Data
Skew
Altera Corporation 29
Preliminary
Constraining and Analyzing Source-Synchronous Interfaces
The values of launch and latch are the times that the respective clock
edges occur for setup and hold checks. However, there are a variety of
ways you can combine the output delay constraints with exceptions to
constrain different configurations of source synchronous output
interfaces.
30 Altera Corporation
Preliminary
Source-Synchronous Outputs
in the list below that corresponds to the operation of your interface for
additional exceptions or constraint modifications that are necessary for
correct operation.
Both methods result in the same timing analysis results. Using multicycle
exceptions is the best representation of the design intent.
When you constrain DDR outputs, you should also use the false path
exceptions in Example 24, so that the opposite-edge transfers are not
analyzed.
Example 24.
set_false_path -setup -rise_from [get_clocks data_clock] -fall_to \
[get_clocks output_clock]
set_false_path -setup -fall_from [get_clocks data_clock] -rise_to \
[get_clocks output_clock]
set_false_path -hold -rise_from [get_clocks data_clock] -fall_to \
[get_clocks output_clock]
set_false_path -hold -fall_from [get_clocks data_clock] -rise_to \
[get_clocks output_clock]
Altera Corporation 31
Preliminary
Constraining and Analyzing Source-Synchronous Interfaces
Example 25.
set_multicycle_path -setup -end 0 -rise_from [get_clocks data_clock] \
-rise_to [get_clocks output_clock]
set_multicycle_path -setup -end 0 -fall_from [get_clocks data_clock] \
-fall_to [get_clocks output_clock]
set_multicycle_path -hold -end -1 -rise_from [get_clocks data_clock] \
-rise_to [get_clocks output_clock]
set_multicycle_path -hold -end -1 -fall_from [get_clocks data_clock] \
-fall_to [get_clocks output_clock]
Data Clock
Output Clock
However, hold analysis must also occur for the same launch/latch edges
as the setup analysis occurred. Adjusting the edge used for hold analysis
requires a destination hold multicycle exception with a value of –1. The
value of –1 moves the latch edge used for hold analysis one cycle later, as
shown in Figure 36.
32 Altera Corporation
Preliminary
Source-Synchronous Outputs
Data Clock
Output Clock
Data Clock
Output Clock
Figure 38 shows the setup and hold relationships that should be analyzed
for SDR same-edge capture.
Altera Corporation 33
Preliminary
Constraining and Analyzing Source-Synchronous Interfaces
Figure 38. Desired Setup and Hold for SDR Same-Edge Capture
Data Clock
Output Clock
Figure 39 shows the setup and hold relationships that should be analyzed
for DDR same-edge capture.
Figure 39. Desired Setup and Hold for DDR Same-Edge Capture
Data Clock
Output Clock
Example 26.
set_output_delay -max <output maximum delay value + (latch – launch)> \
-clock [get_clocks output_clock] [get_ports data_out]
set_output_delay -max <output maximum delay value + (latch – launch)> \
-clock [get_clocks output_clock] -clock_fall [get_ports data_out]
34 Altera Corporation
Preliminary
Source-Synchronous Outputs
Adding one clock period to the output maximum delay value does not
actually adjust the latch edge, but it shifts the data required time one cycle
earlier in time, as shown in Figure 40.
Clock
Output Delay
Clock Period
New Output Delay
The default hold relationship between the same edges is correct, with the
launch edge occurring at the same time as the latch edge. Therefore, the
latch and launch terms cancel out of Equation 13, resulting in a value of
<skew>, which is unchanged from its original value.
Data Clock
Output Clock
Altera Corporation 35
Preliminary
Constraining and Analyzing Source-Synchronous Interfaces
Data Clock
Output Clock
The hold relationship is between a launch edge and the latch edge that
precedes it, so the launch and latch edges are half a period apart. The hold
relationship should be between edges that occur at the same time. To
cancel out the effect of the half-period-long hold time, you must subtract
half a period from the output minimum delay, as shown in Equation 15.
Subtract the half period because the launch time is later than the latch
time, so (latch – launch) is negative.
36 Altera Corporation
Preliminary
Source-Synchronous Outputs
Example 27.
set_false_path -setup -rise_from [get_clocks data_clock] -rise_to
[get_clocks output_clock]
set_false_path -setup -fall_from [get_clocks data_clock] -fall_to
[get_clocks output_clock]
set_false_path -hold -rise_from [get_clocks data_clock] -rise_to
[get_clocks output_clock]
set_false_path -hold -fall_from [get_clocks data_clock] -fall_to
[get_clocks output_clock]
If you use a small positive phase shift to align the clock and data outputs
better, the false path exceptions in Example 27 are still sufficient. A small
positive phase shift results in a small setup relationship, shown in
Figure 43. False path exceptions are shown with dashed arrows, and the
false path exceptions cover rise-rise and fall-fall setup and hold paths.
Figure 43. Small Positive Phase Shift with False Path Exceptions
Data Clock
If you use a small negative phase shift to better align the clock and data
outputs, the false path exceptions in Example 27 are still sufficient. The
default latch edge is the next clock edge after the launch edge, and it is
still the opposite edge, as shown in Figure 44.
Data Clock
Altera Corporation 37
Preliminary
Constraining and Analyzing Source-Synchronous Interfaces
Data Clock
Output Clock
You can use two types of exceptions to change the default analysis so the
correct setup and hold relationships for same-edge capture are analyzed.
Both methods have the effect of causing the latch edge to align with the
latch edge for setup and hold analysis. The two methods you can use to
constrain the center-aligned interface for same-edge capture include:
Both methods result in the same timing analysis results, but the
maximum and minimum delay exceptions method is not compatible with
the PrimeTime software.
38 Altera Corporation
Preliminary
Source-Synchronous Outputs
FPGA data_out
DDR
clock_out
PLL DDR
The nominal value for the maximum and minimum delay exceptions
between the data clock and output clock is zero. Example 28 shows
sample maximum and minimum delay exceptions that correspond to
Figure 46. There are situations when it is appropriate to use non-zero
values, described below.
Example 28.
set_max_delay -from [get_clocks data_clock] -to [get_clocks output_clock] 0
set_min_delay -from [get_clocks data_clock] -to [get_clocks output_clock] 0
Using the maximum and minimum delay exceptions of zero affects only
timing analysis, not the actual circuit operation. The output clock
continues to be shifted by the amount implemented in the PLL that drives
it. Setting maximum and minimum delay values of 0 causes the timing
analyzer to override any output clock phase shift when it performs timing
analysis. Effectively, the maximum and minimum delay values of zero
cause the interface to be analyzed as if it were an edge-aligned interface.
When the interface is edge-aligned, you can use the positive and negative
skew values for the output minimum delay and output maximum delay
values, as described in “Maximum Data Invalid Constraints” on page 29.
1 Do not use this method if you also use the PrimeTime software
to perform timing analysis for your design. If the value for an
output maximum delay is more negative than the value for an
output minimum delay, the PrimeTime software uses the more
negative value for the output maximum and output minimum
delays. The TimeQuest timing analyzer uses both output
maximum and output minimum delay values, regardless of
their positive or negative relationship.
Example 29 shows the output delay constraints that use the positive and
negative skew values.
Altera Corporation 39
Preliminary
Constraining and Analyzing Source-Synchronous Interfaces
Example 29.
set_output_delay -max <negative skew> -clock \
[get_clocks output_clock] [get_ports data_out]
set_output_delay -max <negative skew> -clock \
[get_clocks output_clock] -clock_fall [get_ports data_out] -add_delay
set_output_delay -min <positive skew> -clock \
[get_clocks output_clock] [get_ports data_out*]
set_output_delay -min <positive skew> -clock \
[get_clocks output_clock] -clock_fall [get_ports data_out*] -add_delay
The value you use for the maximum and minimum delay exceptions
should include the skew between the clocks. In those cases in which skew
is negligible, such as when you use ALTDDIO_OUT megafunctions for
both the data and clock outputs, you can use zero for the skew. You
should not use zero for the skew when a PLL output drives directly off
chip, for example.
If there are data paths between the source and destination clocks in
addition to the source synchronous output registers, as shown in
Figure 47, change the value of the -from option in the delay exceptions
shown in Example 28. Use a collection of registers with a wildcard that
restricts the collection to the source synchronous output registers driven
by the source clock. For example, if your source synchronous output
registers are instantiated in a module named ss_data_if, and you use
the ALTDDIO_OUT megafunction, use the following collection:
[get_registers *ss_data_if*altddio_out_component*]
40 Altera Corporation
Preliminary
Source-Synchronous Outputs
FPGA data_out
DDR
clock_out
PLL DDR
Data Clock
Output Clock
Shift Amount
Altera Corporation 41
Preliminary
Constraining and Analyzing Source-Synchronous Interfaces
Equation 16 shows how to calculate the value for the output maximum
delay constraint.
Equation 17 shows how to calculate the value for the output minimum
delay constraint.
Example 30 shows the false path exceptions that are necessary for correct
timing analysis.
Example 30.
set_false_path -setup -rise_from [get_clocks data_clock] -fall_to
[get_clocks output_clock]
set_false_path -setup -fall_from [get_clocks data_clock] -rise_to
[get_clocks output_clock]
set_false_path -hold -rise_from [get_clocks data_clock] -fall_to
[get_clocks output_clock]
set_false_path -hold -fall_from [get_clocks data_clock] -rise_to
[get_clocks output_clock]
Even if you use a small positive or negative phase shift to align the clock
and data outputs better, do not use any other exceptions or constraints.
Figure 49 shows small positive and negative phase shifts for a same-edge
capture, center-aligned source synchronous output. The latch edge is
always the same edge as the launch edge, but with a shift.
42 Altera Corporation
Preliminary
Source-Synchronous Outputs
Data Clock
Output Clock
Data Clock
Output Clock
Altera Corporation 43
Preliminary
Constraining and Analyzing Source-Synchronous Interfaces
Data Clock
Output Clock
Shift Amount
Equation 18 shows how to calculate the value for the output maximum
delay constraint. The equation is derived from Equations 4, 5, and 6 in
“Constraints Derived from Setup and Hold Relationships” on page 24.
Figure 51 shows that the latch edge for setup analysis occurs three
quarters of a period after the launch edge. Therefore, the value for the
output maximum delay is ( 3 ⁄ 4 )period – skew .
Equation 19 shows how to calculate the value for the output minimum
delay constraint. The equation is derived from Equations 7, 8, and 9 in
“Constraints Derived from Setup and Hold Relationships” on page 24.
Figure 51 shows that the latch edge for hold analysis occurs one quarter
of a period before the launch edge. Therefore, the value for the output
minimum delay is ( – 1 ⁄ 4 )period + skew .
You must also add false path exceptions on same-edge transfers shown in
Example 31. The paths that are cut are for same-edge capture. Setting
these false paths ensures that timing analysis is performed with respect to
opposite-edge transfers.
44 Altera Corporation
Preliminary
Source-Synchronous Outputs
Example 31.
set_false_path -setup -rise_from [get_clocks data_clock] -rise_to
[get_clocks output_clock]
set_false_path -setup -fall_from [get_clocks data_clock] -fall_to
[get_clocks output_clock]
set_false_path -hold -rise_from [get_clocks data_clock] -rise_to
[get_clocks output_clock]
set_false_path -hold -fall_from [get_clocks data_clock] -fall_to
[get_clocks output_clock]
data_out
clk_in
clk_out
To report timing for the output, use the report_timing command with
-from_clock and -to_clock options. Use the name of the clock that
drives the data output registers for the -from_clock option, and the
name of the generated clock on the output clock port for the -to_clock
option. For example, use the following two commands to report setup
and hold timing for the circuit described above.
Typically, you perform setup analysis with slow corner delay models, and
hold analysis with fast corner delay models.
Timing Closure
The slack values reported by each report_timing command indicate
by how much the data meets its timing requirement. A negative value
indicates that the constraint is not satisfied.
Altera Corporation 45
Preliminary
Constraining and Analyzing Source-Synchronous Interfaces
To achieve timing closure, the setup and hold slack values must be
positive, and the setup and hold slack values should be balanced, or
equal. The timing margin of the interface is equal to the lesser of the slack
values. The best margin occurs when the setup slack equals the hold
slack. It is not possible to balance the setup and hold slack values
perfectly over the entire operating range of the FPGA. You should adjust
the interface timing until the slack values are similar. Acceptable values
depend on the operation of your interface. High-speed interfaces have
small data valid windows, so it is more important for slack values to be
very close. Low-speed interfaces can tolerate larger slack differences
because of the larger data valid windows.
If the setup and hold slack values are not balanced, you should adjust
parts of your interface. If you use separate clocks for the data output and
clock output, it is straight-forward to shift one of the clocks (typically the
output clock) to balance setup and hold slack values.
Use the steps shown in Equation 20 to compute the required phase shift.
When you shift a clock, you may also have to modify output delay
constraints or timing exceptions if the latch clock edge moves past the
launch clock edge. For example, if you add a positive phase shift to the
output clock in a same-edge capture, edge-aligned circuit, you may have
to modify the exceptions to use exceptions for center-aligned circuits.
If you use a common clock for the data output and clock output, you must
take other steps. If you want to adjust the slack values by small amounts,
you can adjust delay chain settings. Delay chains provide small and
variable delays in the output path from a register to a pin.
If you want to adjust the slack values more than you can with delay
chains, you may have to change the location of elements of your interface,
such as the data output registers.
46 Altera Corporation
Preliminary
Source-Synchronous Outputs
Example
The following example is based on the output interface in Figure 52 on
page 45. The clock sourced by the device has a 10 ns period and is
edge-aligned with the data. There is a +/–100 ps skew requirement for
the data. The output is constrained as shown in Example 32:
Example 32. SDC Constraints for Same-Edge Capture Edge-Aligned Output Example
# Clock constraints
create_clock -name input_clock -period 10 [get_ports clk_in]
create_generated_clock -name data_clock -source [get_pins PLL|inclk[0]] \
[get_pins PLL|clk[0]]
create_generated_clock -name pll_clock -source [get_pins PLL|inclk[0]] \
[get_pins PLL|clk[1]]
create_generated_clock -name output_clock -source [get_pins PLL|clk[1]] \
[get_ports clk_out]
Altera Corporation 47
Preliminary
Constraining and Analyzing Source-Synchronous Interfaces
Example 33.
report_timing -from_clock data_clock -to_clock output_clock -setup
report_timing -from_clock data_clock -to_clock output_clock -hold
The worst case setup slack is –2.107 ns, and the worst case hold slack is
1.041 ns. The time shift is ( 1.041ns – 2.107ns ) ÷ 2 , which equals 1.574 ns. A
time shift of 1.574 ns equals a phase shift of 360° × 1.574ns ÷ 10ns , or 56° .
Change the phase of the PLL output that generates the output clock to 56°
and update the SDC generated clock as shown in Example 34.
Example 34.
create_generated_clock -name pll_clock -phase 56 \
-source [get_pins PLL|inclk[0]] [get_pins PLL|clk[1]]
The setup and hold slack values are now balanced, and the interface
operates with the largest amount of margin.
48 Altera Corporation
Preliminary
Source-Synchronous Inputs
Input Clocks
The input clock for the source-synchronous interface can clock input
capture registers directly, or it can drive a PLL that clocks the input
capture registers. There are usually larger timing margins for interfaces
that use a PLL to clock the input capture registers than there are for
interfaces that use the input clock directly to clock the capture registers.
This is especially true for high speed DDR interfaces. In SDR interfaces,
the timing margins are often large enough that you can connect the input
clock to the input capture registers directly. Direct clocking has the
advantage of eliminating the PLL as a source of clock uncertainty.
However, the PLL has the advantage of providing clock compensation
over power, voltage, and time (PVT). At high interface speeds, the benefit
of using a PLL outweighs the associated clock uncertainty.
If you use a PLL for your input clock, you should configure it in source
synchronous compensation mode. In source synchronous compensation
mode, the clock and data relationship at the input capture registers (in an
I/O element, or IOE) is identical to the relationship at the FPGA device
inputs. The PLL maintains the same phase relationship. This mode
simplifies the constraint and adjustment process for timing closure,
because you do not have to calculate any PLL phase shift to meet input
timing requirements.
You can configure the PLL for other modes of operation, such as normal
mode, but you might have to use a phase shift to meet timing. Different
PLL modes adjust the clock to compensate for different delays in the
FPGA. A phase shift would be required if the clock and data relationship
at the input capture registers did not meet timing because the PLL was
compensating for a different delay.
You should not use a PLL on the input clock for the following inputs:
Altera Corporation 49
Preliminary
Constraining and Analyzing Source-Synchronous Interfaces
Virtual Clocks
You should create a virtual clock to represent the clock that clocks the data
output registers in the source device. Then, use the virtual clock as the
reference clock for input delay constraints. Create the virtual clock with
the same period and phase shift as the real clock in the source device. If
that clock has any phase shift, specify the rising and falling edges that
correspond to the phase shift with the -waveform option. Figure 53
shows the input and virtual clocks for a source-synchronous interface.
clock_out
PLL DDR
Virtual Input
Clock Clock
You do not have to use a virtual clock to constrain the input delays. You
can create input delay constraints relative to the input clock instead of the
virtual clock, but using a virtual clock allows you to constrain the
interface more easily and more accurately. A virtual clock makes it easy
to constrain inputs with the skew-based FPGA-centric approach. You can
use the positive and negative skew requirement values for the input
maximum and minimum delay constraints with no other calculations.
Even if the source or destination clocks is shifted, the input maximum and
minimum delay values do not change. Refer to “Maximum Data Skew”
on page 60 for more details.
50 Altera Corporation
Preliminary
Source-Synchronous Inputs
You can apply clock uncertainty to the virtual clock that is independent
of the uncertainty you apply to the clock in the FPGA. Refer to“Clock
Uncertainty” on page 51 for more details.
Generated Clocks
For any circuit that includes a PLL, you must create generated clocks on
the PLL outputs. Using the derive_pll_clocks command in your .sdc
file creates the all the generated clocks automatically and keeps generated
clock characteristics (such as period, phase shift, and multiplication and
division factors) synchronized with your PLL settings. It also names the
generated clocks according to the PLL output and hierarchy name.
Clock Uncertainty
You should use the set_clock_uncertainty constraint to specify
clock uncertainty for each clock in your input circuit. Use the clock
uncertainty constraint to account for jitter, PLL phase shift error, and duty
cycle distortion.
When you use a virtual clock as the reference clock for the input delay
constraints, you can specify clock uncertainty for the I/O independently
of the core clock. If your input clock is the reference clock for the input
delay constraints, I/O clock uncertainty can affect the core clock
uncertainty if the I/O clock is used for I/O and core transfers, as shown
in Figure 54.
clk_in
b_in
Altera Corporation 51
Preliminary
Constraining and Analyzing Source-Synchronous Interfaces
data_in
+90
clk_in
In this case, do not specify a phase adjustment on the input clock. Specify
the PLL phase adjustment on the generated clock applied to the PLL
output. Specify any phase shift for the clock and data relationship on the
clock you apply to the input clock port of the FPGA. Example 35 shows
SDC constraints for Figure 55.
Example 35.
create_clock -name virtual_clock -period 10
create_clock -name input_clock -period 10 [get_ports clock_in]
create_generated_clock -name plus_90_degrees -source [get_pins \
PLL|inclk[0]] -phase 90
When clock and data arrive at the FPGA center-aligned, specify the clock
phase adjustment on the input clock with the -waveform option, as
shown in Example 36. If the clock drives input registers through a PLL,
specify any phase shift applied by the PLL with the -phase option for the
generated PLL clock.
Example 36.
create_clock -name virtual_clock -period 10
create_clock -name input_clock -period 10 [get_ports clock_in] -waveform \
{ 2.5 7.5 }
create_generated_clock -name plus_0_degrees -source \
[get_pins PLL|inclk[0]]
Figures 56, 57, and 58 show various input clock configurations followed
by the corresponding SDC constraints.
52 Altera Corporation
Preliminary
Source-Synchronous Inputs
data_in
clk_in
Example 37.
create_clock -name virtual_source -period 10
create_clock -name input_clock -period 10 -waveform { 2.5 7.5 } \
[get_ports clk_in]
data_in
+90
clk_in
Example 38.
create_clock -name virtual_source -period 10
create_clock -name input_clock -period 10 [get_ports clk_in]
create_generated_clock -name shifted_clock -source \
[get_pins PLL|inclk[0]] -phase 90 [get_pins PLL|clk[0]]
clk_in
Altera Corporation 53
Preliminary
Constraining and Analyzing Source-Synchronous Interfaces
Example 39.
create_clock -name virtual_source -period 10
create_clock -name input_clock -period 10 -waveform { 2.5 7.5 } \
[get_ports clk_in]
create_generated_clock -name internal_clock -source \
get_pins PLL|inclk[0]] [get_pins PLL|clk[0]]
clock
54 Altera Corporation
Preliminary
Source-Synchronous Inputs
External Device
DDR Data
t CO
External Device
t CO Clock
(21) Input maximum delay value = maximum trace delay for data + t CO of external device
– minimum trace delay for clock
Altera Corporation 55
Preliminary
Constraining and Analyzing Source-Synchronous Interfaces
Example 40.
set_input_delay -max <input maximum delay value> -clock \
[get_clocks virtual_clock] [get_ports data_in]
A DDR input has a duplicate constraint that applies to the falling edge of
the clock, shown in Example 41.
Example 41.
set_input_delay -max <input maximum delay value> -clock \
[get_clocks virtual_clock] [get_ports data_in]
set_input_delay -max <input maximum delay value> -clock \
[get_clocks virtual_clock] -clock_fall [get_ports data_in] -add_delay
(22) Input minimum delay value = min trace delay for data + t CO min of external device
– max trace delay for clock
Example 42.
set_input_delay -min <input minimum delay value> -clock \
[get_clocks virtual_clock] [get_ports data_in]
A DDR input has a duplicate constraint that applies to the falling edge of
the clock, shown in Example 43.
Example 43.
set_input_delay -min <input minimum delay value> -clock \
[get_clocks virtual_clock] [get_ports data_in]
set_input_delay -min <input minimum delay value> -clock \
[get_clocks virtual_clock] -clock_fall [get_ports data_in] -add_delay
56 Altera Corporation
Preliminary
Source-Synchronous Inputs
(23) Input maximum delay value = maximum trace delay for data + unit interval
– t SU of external device – minimum trace delay for clock
Example 44.
set_input_delay -max <input maximum delay value> -clock \
[get_clocks virtual_clock] [get_ports data_in]
A DDR input has a duplicate constraint that applies to the falling edge of
the clock, shown in Example 45.
Example 45.
set_input_delay -max <input maximum delay value> -clock \
[get_clocks virtual_clock] [get_ports data_in]
set_input_delay -max <input maximum delay value> -clock \
[get_clocks virtual_clock] -clock_fall [get_ports data_in]
(24) Input minimum delay value = minimum trace delay for data + t H of external device
– maximum trace delay for clock
Example 46.
set_input_delay -min <input minimum delay value> -clock \
[get_clocks virtual_clock] [get_ports data_in]
Altera Corporation 57
Preliminary
Constraining and Analyzing Source-Synchronous Interfaces
A DDR input has a duplicate constraint that applies to the falling edge of
the clock, shown in Example 47.
Example 47.
set_input_delay -min <input minimum delay value> -clock \
[get_clocks virtual_clock] [get_ports data_in]
set_input_delay -min <input minimum delay value> -clock \
[get_clocks virtual_clock] -clock_fall [get_ports data_in]
Clock
Data
tH
tSU
Input Delay Maximum
Input Delay Minimum
58 Altera Corporation
Preliminary
Source-Synchronous Inputs
unit interval value is half the clock period, because data is transferred on
both clock edges. A hold time requirement value is equivalent to an input
minimum delay value. Example 48 shows the input delay constraints.
Example 48.
set_input_delay -max [expr <unit interval> - <setup time>] -clock \
[get_clocks input_clock] -add_delay [get_ports data_in]
set_input_delay -min <hold time> -clock [get_clocks input_clock] \
-add_delay [get_ports data_in]
If you derive input delay constraints from setup and hold requirements,
and you use a virtual clock as the input delay clock reference, and the
input data is not edge-aligned, you must modify the constraint values to
compensate for the clock shift. Figure 63 is a timing diagram to show why
the compensation is necessary.
Virtual Clock
Data Clock
Input Clock
The virtual clock has no phase shift, the input clock has a 90° phase shift,
and the input data is center-aligned with respect to the input clock (with
equal tSU and tH requirements).
However, when you make input delay constraints with respect to the
virtual clock, the setup and hold relationships are not the same as they are
with respect to the input clock. The input data is edge-aligned with
respect to the virtual clock. The hold requirement with respect to the
virtual clock must decrease by the amount of the shift ( period ÷ 4 for a
center-aligned DDR interface). The setup requirement with respect to the
virtual clock must increase by the amount of the shift ( period ÷ 4 for a
center-aligned DDR interface). The input maximum and minimum delay
values both decrease by the amount of the shift ( period ÷ 4 for a
center-aligned DDR interface).
Altera Corporation 59
Preliminary
Constraining and Analyzing Source-Synchronous Interfaces
Figure 64. Clock and Data Waveforms, Input Max and Min Delay Values
Reference Clock Edge
Period
Clock
Data
Setup
Input Max Delay Hold
Input Min Delay
Skew Skew
Using a virtual clock as the clock reference for input delay constraints
makes FPGA-centric constraints easy to apply. As Figure 64 shows, the
input maximum delay value is the positive value of the skew
requirement, and the input minimum delay value is the negative value of
the skew requirement. Example 49 shows the input delay constraints for
a DDR interface, using the positive and negative skew values.
Example 49.
set_input_delay -max <skew> -clock [get_clocks virtual_clock] \
[get_ports data_in]
set_input_delay -max <skew> -clock [get_clocks virtual_clock] \
-clock_fall [get_ports data_in] -add_delay
set_input_delay -min <negative skew> -clock [get_clocks virtual_clock] \
[get_ports data_in] -add_delay
set_input_delay -min <negative skew> -clock [get_clocks virtual_clock] \
-clock_fall [get_ports data_in] -add_delay
60 Altera Corporation
Preliminary
Source-Synchronous Inputs
Even if the virtual clock (the source clock driving the output registers in
the source device) or the input clock (the clock driving the destination
register in the FPGA) have any phase shifts, the input delay values are
still the positive and negative skew values.
Virtual Clock
Data Clock
Altera Corporation 61
Preliminary
Constraining and Analyzing Source-Synchronous Interfaces
Example 50.
set_multicycle_path -setup -end -rise_from [get_clocks virtual_clk] \
-rise_to [get_clocks data_clk] 0
set_multicycle_path -setup -end -fall_from [get_clocks virtual_clk] \
-fall_to [get_clocks data_clk] 0
Example 51.
set_false_path -setup -fall_from [get_clocks virtual_clk] -rise_to \
[get_clocks data_clk]
set_false_path -setup -rise_from [get_clocks virtual_clk] -fall_to \
[get_clocks data_clk]
set_false_path -hold -rise_from [get_clocks virtual_clk] -rise_to \
[get_clocks data_clk]
set_false_path -hold -fall_from [get_clocks virtual_clk] -fall_to \
[get_clocks data_clk]
Virtual Clock
Data Clock
62 Altera Corporation
Preliminary
Source-Synchronous Inputs
In this case the default setup and hold relationships are the ones that
should be analyzed for DDR inputs. The only exceptions necessary are
the false path exceptions to prevent timing analysis on opposite-edge
transfers, shown in Example 52.
Example 52.
set_false_path -setup -fall_from [get_clocks virtual_clk] -rise_to \
[get_clocks data_clk]
set_false_path -setup -rise_from [get_clocks virtual_clk] -fall_to \
[get_clocks data_clk]
set_false_path -hold -rise_from [get_clocks virtual_clk] -rise_to \
[get_clocks data_clk]
set_false_path -hold -fall_from [get_clocks virtual_clk] -fall_to \
[get_clocks data_clk]
Virtual Clock
Data Clock
In this case, false path exceptions are necessary, because the setup and
hold relationships that should be analyzed are not the ones that are
analyzed by default for DDR inputs. Add the following false path
exceptions to prevent timing analysis on same-edge transfers.
Altera Corporation 63
Preliminary
Constraining and Analyzing Source-Synchronous Interfaces
Example 53.
set_false_path -setup -rise_from [get_clocks virtual_clk] -rise_to \
[get_clocks data_clk]
set_false_path -setup -fall_from [get_clocks virtual_clk] -fall_to \
[get_clocks data_clk]
set_false_path -hold -fall_from [get_clocks virtual_clk] -rise_to \
[get_clocks data_clk]
set_false_path -hold -rise_from [get_clocks virtual_clk] -fall_to \
[get_clocks data_clk]
Figure 68. Desired Setup and Hold for Center-Aligned Input, Opposite-Edge
Capture
Virtual Clock
Data Clock
64 Altera Corporation
Preliminary
Source-Synchronous Inputs
Figure 69. Default Timing Relationships without Multicycle or False Path Exceptions Notes (1), (2), (3)
Virtual Clock
Data Clock
Example 54.
set_multicycle_path -setup -end -rise_from [get_clocks virtual_clk] \
-rise_to [get_clocks data_clk] 2
set_multicycle_path -setup -end -fall_from [get_clocks virtual_clk] \
-fall_to [get_clocks data_clk] 2
Figure 70 shows the setup and hold relationships after the multicycle
exceptions are applied. The dashed lines show the relationships after the
destination setup multicycle are applied.
Figure 70. Default Timing Relationships with Multicycle Path Exceptions Notes (1), (2), (3)
Virtual Clock
Data Clock
Altera Corporation 65
Preliminary
Constraining and Analyzing Source-Synchronous Interfaces
Example 55.
set_false_path -setup -rise_from [get_clocks virtual_clk] -rise_to \
[get_clocks data_clk]
set_false_path -setup -fall_from [get_clocks virtual_clk] -fall_to \
[get_clocks data_clk]
set_false_path -hold -fall_from [get_clocks virtual_clk] -rise_to \
[get_clocks data_clk]
set_false_path -hold -rise_from [get_clocks virtual_clk] -fall_to \
[get_clocks data_clk]
Figure 71 indicates the paths that are cut by the false path exceptions in
Example 55 with dotted lines. It indicates the paths that are analyzed with
solid lines.
Figure 71. Default Timing Relationships with False Path Exceptions Notes (1), (2), (3)
Virtual Clock
Data Clock
Timing Analysis
Figure 72 shows a simple double-data rate source-synchronous input
design example used to illustrate timing analysis concepts.
clk_in
66 Altera Corporation
Preliminary
Source-Synchronous Inputs
The clock sent to the device has a 90° phase shift to center align it with the
data, so no shift is necessary in the input circuit. There is a +/–100 ps
skew requirement for the data. The input is constrained with the
following constraints shown in Example 56.
Example 56.
create_clock -name virtual_source -period 10
create_clock -name input_clock -period 10 -waveform { 2.5 7.5 } \
[get_ports clk_in]
set_input_delay -clock virtual_source -max 0.100 [get_ports data_in]
set_input_delay -clock virtual_source -min -0.100 [get_ports data_in] \
-add_delay
set_input_delay -clock virtual_source -clock_fall -max 0.100 \
[get_ports data_in] -add_delay
set_input_delay -clock virtual_source -clock_fall -min -0.100 \
[get_ports data_in] -add_delay
Figure 73 shows the clock waveforms for the launch and latch clocks.
launch
latch
Report Timing
To report timing for the input, use the report_timing command with
-from_clock and -to_clock options. Use the name of the virtual
clock for the -from_clock option, and the name of the clock on the
input clock port for the -to_clock option. For example, use the two
commands in Example 57 to report setup and hold timing for the circuit
described above.
Example 57.
report_timing -from_clock virtual_source -to_clock input_clock -setup
report_timing -from_clock virtual_source -to_clock input_clock -hold
Altera Corporation 67
Preliminary
Constraining and Analyzing Source-Synchronous Interfaces
Typically you perform setup analysis with slow corner timing models,
and hold analysis with fast corner timing models. The slack numbers
reported by each report_timing command indicate by how much the
data meets its timing requirement. A negative value indicates that the
constraint is not satisfied. Add the reported setup and hold slacks to
determine the size of the data valid window.
68 Altera Corporation
Preliminary
Document Revision History
Revision History
Copyright © 2007 Altera Corporation. All rights reserved. Altera, The Programmable Solutions Company,
the stylized Altera logo, specific device designations, and all other words and logos that are identified as
trademarks and/or service marks are, unless noted otherwise, the trademarks and service marks of Altera
Corporation in the U.S. and other countries. All other product or service names are the property of their re-
spective holders. Altera products are protected under numerous U.S. and foreign patents and pending
101 Innovation Drive applications, maskwork rights, and copyrights. Altera warrants performance of its semiconductor products
San Jose, CA 95134 to current specifications in accordance with Altera's standard warranty, but reserves the right to make chang-
www.altera.com es to any products and services at any time without notice. Altera assumes no responsibility or liability
arising out of the application or use of any information, product, or service described
Technical Support: herein except as expressly agreed to in writing by Altera Corporation. Altera customers
www.altera.com/support/ are advised to obtain the latest version of device specifications before relying on any pub-
Literature Services: lished information and before placing orders for products or services.
Altera Corporation 69
Preliminary