参考http://blog.sina.com.cn/s/blog_436c7ed30100lu1q.html
我的sdc文件命名的时钟是clk_50
如果点开出现
Critical Warning: From clk_50 (Rise) to clk_50 (Rise) (setup and hold)
这种需要在sdc文件添加
set_clock_uncertainty -hold -rise_from clk_50 -rise_to clk_50 0.150
set_clock_uncertainty -setup -rise_from clk_50 -rise_to clk_50 0.150
主要是看从哪到哪,该警告是rise_from clk_50 rise_to,括号是有哪个就添加哪句话(setup and hold)
如果是
Critical Warning: From clk_50 (Fall) to clk_50 (Rise) (setup and hold)
那就是fall_from clk_50 rise_to,根据实际进行添加
如果还有
Critical Warning: From altera_reserved_tck (Rise) to altera_reserved_tck (Rise) (setup and hold)
这类提示
同理
添加
set_clock_uncertainty -setup -rise_from altera_reserved_tck -rise_to altera_reserved_tck 0.150
set_clock_uncertainty -hold -rise_from altera_reserved_tck -rise_to altera_reserved_tck 0.150
根据警告内容照着改就行。