Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

Output delay with or without clock shift

Here is a very simple example as attached. The output delays are set as follows.

set_output_delay -add_delay -max -clock [get_clocks {clk_pin}] 2.100 [get_ports {q[0]}]

set_output_delay -add_delay -min -clock [get_clocks {clk_pin}] -0.700 [get_ports {q[0]}]

For the diagram without clock shift, its clock constraint is

create_generated_clock -name {clk_pin} -source [get_ports {clk}] -offset 0.00 [get_ports {clk_port}]

For the diagram with clock shift, its clock constraint is

create_generated_clock -name {clk_pin} -source [get_ports {clk}] -offset 0.500 [get_ports {clk_port}]

and its multi-cycle comstraint is

set_multicycle_path -from [get_registers {inst1[0]}] -to [get_ports {q[0]}] -setup -end 2

In reality, we don't know what clock shift we should set in advance because it is the clock delay from the source clock to the output clock pin. If we set the clock shift to any values, we might end up with wrong analysis results. It also affects output delay calculations because the output delay is with respect to the clock at the pin. Do you think that we should use the clock without shift? Or simply set the offset to 0.5ns as it was done in the doc "Constraining SOPC Builder Designers with TimeQuest" in the Altera Forum and the doc in Quartus-II handbook SOPC builder? Many thanks.

15 Replies