Altera_Forum
Honored Contributor
15 years agoPLL related timing constraint problem
Hi,
I am doing a design on Cyclone III. I have two clock inputs clk_A and clk_B. Both are of the same frequency and only one is active at a time (the other is used as a backup clock source). Inside FPGA, I use a PLL to connect to these two clocks (using auto-switch configuration) and multiply the frequency by 4. The output clock is my system clock, called "sys_clk". One block in the design needs a slower clock. So sys_clk is divided again by 4 with a counter, and the derived clock "asmi_clk" is only used by that block. The following is my sdc file: create_clock -period 40 clk_A create_clock -period 40 clk_B set_clock_groups -exclusive -group {clk_A} -group {clk_B} derive_pll_clocks create_generated_clock -divide_by 4 -source [get_nets sys_clk] \ -name asmi_clk [get_nets {asmi_interface:asmi_interface_1|asmi_clk}] The last constranit is not executed correctly during compilation, it is displayed: Warning: The master clock for this clock assignment could not be derived. Clock: asmi_clk was not created. Warning: Clock: clk_generation_1|clk_switch_rev2_auto|altpll_component|auto_generated|pll1|clk[0]~1 found as a potential master clock candidate Warning: Clock: clk_generation_1|clk_switch_rev2_auto|altpll_component|auto_generated|pll1|clk[0] found as a potential master clock candidate Why can't the master clock be derived? There is only one output from the PLL, and that "sys_clk" is used directly to obtain the slower clock "asmi_clk". Why are there two master clock candidates? Many thanks if anyone can help!