在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 6252|回复: 10

[求助] STA | create_generated_clock命令使用

[复制链接]
发表于 2023-2-16 17:41:16 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
请问路过大佬,create_generated_clock命令中,-combinational这个选项是在master clk和gen clk之间只有组合逻辑的时候才能用吗?这个选项必须要加上吗?

谢谢
发表于 2023-2-16 18:06:32 | 显示全部楼层
一般不建议用这个。用分频 -div 的这个比较好 ,组合逻辑后面的clock 一般需要再定义一个了,容易闹乱子 ~~~
 楼主| 发表于 2023-2-17 09:08:37 | 显示全部楼层


voiluce 发表于 2023-2-16 18:06
一般不建议用这个。用分频 -div 的这个比较好 ,组合逻辑后面的clock 一般需要再定义一个了,容易闹乱子 ~~ ...


我看我司是这样定义的,-combinational和-divide_by都用到了,这种情况下是不是可以不需要-combinational?

create_generated_clock -name gen_clk -combinational  -source [get_pins $pin_name] -divide_by 1 [get_pins $pin_name] -master_clock [get_clocks $master_clock] -add
发表于 2023-2-17 09:49:24 | 显示全部楼层
,-combinational和-divide_by都用到了
===
额 ~~~ 参数不是越多越好哎 ~~~ 实际上是div 就用div ,实际上是comb 就comb ,别乱写
发表于 2023-2-17 12:16:25 | 显示全部楼层

From Innovus TCR
create_generated_clock
-combinational
Restricts the path search for latency to only paths which do not cross
sequential devices, or the source pins of other generated clocks.
When you specify -combinational, if there are both sequential and
combinational latency paths, the software only considers the
combinational paths for the generated clock. If there are no combinational
latency paths for the generated clock, the generated clock does not inherit
latency from its parent clock hierarchy.  <- 这句是关键

By default, when calculating the latency of a generated clock, the software
searches for the longest (and shortest) paths from the parent waveform to
the generated clock point. All paths are considered, including those which
traverse sequential elements such as flip-flops, registers, and latches. The
default behavior is intended for cases where there is a cascade of
generated clocks, and some of the clocks are not explicitly defined.

The -combinational option can be used in conjunction with the -
multiply_by, -divide_by, or -edges options.
发表于 2023-2-17 13:38:43 | 显示全部楼层
我是这么理解的,-divide_by是一定要的,如果设计的分频电路只含有组合逻辑器件,需要加上-comb,如果是使用时序器件(ICG或DFF)设计的分频电路,就不能加-comb
 楼主| 发表于 2023-2-17 16:23:05 | 显示全部楼层


lzqxiang 发表于 2023-2-17 13:38
我是这么理解的,-divide_by是一定要的,如果设计的分频电路只含有组合逻辑器件,需要加上-comb,如果是使 ...


我也是这么理解的,但是不敢确定。而且我觉得-comb这个option可以不用。


 楼主| 发表于 2023-2-17 16:24:22 | 显示全部楼层


jake 发表于 2023-2-17 12:16
From Innovus TCR
create_generated_clock
-combinational


感谢
 楼主| 发表于 2023-2-17 17:10:34 | 显示全部楼层
总结一下个人理解,不知对不对。在使用create_generated_clock命令时,应遵守以下原则:
1、-combinational用在master clk和gen clk之间只有组合逻辑的情况下,可与-divide_by共同使用。
2、-divide_by必须要有,而-combinational可有可无。
3、如果使用了-combinational,而clk line中既有comb又有sequential,那工具在计算clk latency时,只会计算comb latency。
4、如果使用了-combinational,而clk line中没有comb,那工具计算clk latency时不会计算master clk line的latency。
5、在计算gen clk latency时,工具会计算将master clk line的latency计算在内,即使master clk line中包括flip-flops, registers, latches。




发表于 2023-2-17 22:03:12 | 显示全部楼层


海狸先生0119 发表于 2023-2-17 02:23
我也是这么理解的,但是不敢确定。而且我觉得-comb这个option可以不用。


推荐 -edges {list_of_edges},比divide_by, multiply_by严谨。同样-divided_by 2,两个generated clock可以有不同的相位。-edges可以体现相位,-divided_by不行。
-edges可以让工具检查master clock与generated clock之间的相位关系是否成立,可以更早地发现问题。
有问题,发现越早越好。

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /1 下一条

小黑屋| 手机版| 关于我们| 联系我们| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2025-6-8 21:08 , Processed in 0.023281 second(s), 8 queries , Gzip On, MemCached On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表