1、create_clock
Ref: https://blog.csdn.net/weixin_45791458/article/details/134217796
create_clock
[-name clock_name] [-add] [source_objects] [-period period_value]
[-waveform edge_list ] [-comment comment_string]
//注:该命令的选项和参数顺序任意
#假设在端口clk上创建时钟
create_clock -name clk -period 10 -waveform {5 10} [get_port clk]
#其中周期是10,{5 10}分别指定了上升沿和下降沿是5和10
#也可以利用-wavefrom进行非50%的占空比指定
#第二个上升沿出现在t=15ns时
#若想在同一个端口上再创建一个时钟要加入-add 选项,否则前一个时钟的定义会被覆盖
create_clock -name clk_other -period 10 -waveform {5 10} [get_port clk] -add
2、create_generated_clock
Ref: https://chenzhang.blog.csdn.net/article/details/134236547
Ref: https://chenzhang.blog.csdn.net/article/details/134290809
create_generated_clock
[-name clock_name] [-add] [-master_clock clock]
[-divide_by divide_factor | -multiply_by multiply_factor]
[-duty_cycle percent] [-invert] [-preinvert]
[-edges edge_list] [-edge_shift edge_shift_list]
[-combinational] [-comment comment_string]
-source master_pin source_objects
//注:该命令的选项和参数顺序任意
标签:comment,10,name,clock,create,clk,SDC
From: https://www.cnblogs.com/tianyuzh/p/18224709