clock_note1

巧妙定义时钟
      直接在分频FF的Q端定义generated clock时,有时会把分频FF的时序打掉,解决办法是在分频FF的Q端加一个时钟buf,从那个buf的输出端定义generated clock,从而保证分频FF自身的时序完整
      如果从source clock到generated clock之间有多条路径,你希望PT用指定的一条路径来计算时序的话,可以用set_case_analysis, set_disbale_timing 或者一级一级地定义generated clock来引导PT达到你的要求


如果有一组输出信号,需要他们之间对齐,但是不太在乎有多大的延迟,这时应该如何约束?
      如果有输出时钟的话,在那个输出时钟端口定义一个generated_clock,其它信号的output_delay都相对于这个generated_clock而定。只要有max和min,就可以把所有信号卡在一个范围之内
      如果没有输出时钟的话,用set_output_delay -reference_pin

c:\users\MAC\Desktop\clock_angle.c:1:10: error: '#include' expects '"FILENAME"' or '<FILENAME>' 1 | #include | ^ c:\users\MAC\Desktop\clock_angle.c:2:28: error: '#include' expects '"FILENAME"' or '<FILENAME>' 2 | #include // 鐢ㄤ簬fabs鍑芥暟 | ^ c:\users\MAC\Desktop\clock_angle.c: In function 'main': c:\users\MAC\Desktop\clock_angle.c:9:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 9 | printf("璇疯緭鍏ユ椂闂达紙灏忔椂 鍒嗛挓锛? "); | ^~~~~~ c:\users\MAC\Desktop\clock_angle.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf' +++ |+#include <stdio.h> 1 | #include c:\users\MAC\Desktop\clock_angle.c:9:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] 9 | printf("璇疯緭鍏ユ椂闂达紙灏忔椂 鍒嗛挓锛? "); | ^~~~~~ c:\users\MAC\Desktop\clock_angle.c:9:5: note: include '<stdio.h>' or provide a declaration of 'printf' c:\users\MAC\Desktop\clock_angle.c:10:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 10 | scanf("%d %d", &hours, &minutes); | ^~~~~ c:\users\MAC\Desktop\clock_angle.c:10:5: note: include '<stdio.h>' or provide a declaration of 'scanf' c:\users\MAC\Desktop\clock_angle.c:10:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] c:\users\MAC\Desktop\clock_angle.c:10:5: note: include '<stdio.h>' or provide a declaration of 'scanf' c:\users\MAC\Desktop\clock_angle.c:10:21: error: 'amp' undeclared (first use in this function) 10 | scanf("%d %d", &hours, &minutes); | ^~~ c:\users\MAC\Desktop\clock_angle.c:10:21: note: each undeclared identifier is reported only once for each function it appears in c:\users\MAC\Desktop\clock_angle.c:10:24: error: expected ')' before ';' token 10 | scanf("%d %d", &hours, &minutes); | ~ ^ | ) c:\users\MAC\Desktop\clock_angle.c:20:18: error: implicit declaration of function 'fabs' [-Wimplicit-function-declaration] 20 | angle_diff = fabs(hour_angle - minute_angle); | ^~~~ c:\users\MAC\Desktop\clock_angle.c:1:1: note: include '<math.h>' or provide a declaration of 'fabs' +++ |+#include <math.h> 1 | #inclu
最新发布
09-04
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值