王建飞 发表于 2015-9-1 16:15:36

TimeQuest Clock Multiplexer Examples

The TimeQuest analyzer makes it easy to use Synopsys Design Constraint (SDC) commands to constrain complex clock structures, such as multiplexed clocks. The following shows three example circuits and the appropriate SDC commands to constrain them.

Clock Multiplexer Off-Chip
Figure 1 shows a simple register-to-register circuit clocked by the clk port.

Assume that the clk port is driven by an off-chip multiplexer that selects between two clocks, one with a 10 ns period and one with an 8 ns period. The following SDC commands show how to assign multiple clocks to the clk port. It also shows how to add an exception indicating that the two clocks will never be active at the same time in the FPGA.

# Create the two clocks on the port
create_clock -name clk_100 -period 10
create_clock -name clk_125 -period 8 -add
# Set the two clocks as exclusive clocks
set_clock_groups -exclusive -group {clk_100} -group {clk_125}
Clock Multiplexer On-Chip
Figure 2 shows a simple register-to-register circuit with a clock multiplexer on the FPGA, with two clock ports: clkA and clkB.

Assume that the clkA port is driven by a clock with a 10 ns period, and that the clkB port is driven by a clock with an 8 ns period. The following SDC commands show how to assign the clocks. This example is similar to the previous example, but the clocks are assigned to separate ports.

# Create a clock on each port
create_clock -name clk_100 -period 10
create_clock -name clk_125 -period 8 -add
# Set the two clocks as exclusive clocks
set_clock_groups -exclusive -group {clk_100} -group {clk_125}
Linked Clock Multiplexers
Figure 3 shows a more complex clocking circuit with linked clock multiplexers on the FPGA.

In this case, you must use the set_clock_groups command to indicate that clocks A and D, A and B, C and D, and B and C, can never be active at the same time.

create_clock -name A -period 10
create_clock -name B -period 8
create_clock -name C -period 8
create_clock -name D -period 10
# cut paths between clocks
set_clock_groups -exclusive -group {A C} -group {B D}
页: [1]
查看完整版本: TimeQuest Clock Multiplexer Examples