Forum Discussion
Altera_Forum
Honored Contributor
10 years agoThis is not quite what you are asking, but I typically use the .sdc syntax:
set ports
if { == 1} {
set clkin_50MHz_period 20
set name clkin_50MHz
puts " ==> S4GXDK: constrain clock $name"
create_clock
-period $clkin_50MHz_period
-name $name
set_clock_groups -exclusive -group $name
}
This checks to see if a clock has been used in a design, and if it has, then assigns a default clock contraint, and group. Cheers, Dave