Forum Discussion

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

Create multiple generated clocks

My system have 360 channel input signal named: In_Target_Signal[359..0], they are used as clk in my project, and I have create clock for them as the following show:

create_clock -nam {In_Target_Signal} -period 10000.00 -waveform {0.000 5000.000} }] -add

I need to create a generated clock for each In_Target_Signal, that means I need to create 360 generated clocks: Generate_CLK[359..0].

Anybody tell me how to implement it?

Thanks in advance!

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    How about something like this in the SDC file:

    for {set i 0} {$i<360} {incr i} {

    create_clock

    -period 10000.00

    -name In_Target_Signal[$i]

    [get_ports {In_Target_Signal[$i]}]

    }
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I have tried that, but timequest report that :

    warning: Ignored assignment create_clock

    There is no detailed info, so it is hard to find the reason. :(
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I have solved the problem, the correct syntax is as below,FYI.

    set FREQMeasure_Total_Channel 360

    for {set loop 0} {$loop < $FREQMeasure_Total_Channel} {incr loop} {

    puts "loop is $loop"

    create_clock -name FREQMeasure_ChannleIn_Clk[$loop] -period 100000.000 FREQMeasure_ChannleIn[$loop]

    }