【DC系列教程2--Timing and Area Constrains】

DC系列教程2--Timing and Area Constrains


Goal:

  • determin the unit of time in the target library; //设置时间精度
  • Create a Design Compiler timing and area constrains file based on a provided schematic and specifacation //自己写时序和面积约束文件根据给定原理图
  • Verify the syntax of the constrains prior to applying them to a design.
  • Apply the constraints to a design. //约束应用于设计
  • Validate the completeness and correctness of the applied constrains.

Lab Flow:

图片: https://uploader.shimo.im/f/el9JNkxqdniBOsge.png!thumbnail?accessToken=eyJhbGciOiJIUzI1NiIsImtpZCI6ImRlZmF1bHQiLCJ0eXAiOiJKV1QifQ.eyJleHAiOjE3MDUyMjczNjYsImZpbGVHVUlEIjoidlZxUk1FangyanV5ek4zeSIsImlhdCI6MTcwNTIyNzA2NiwiaXNzIjoidXBsb2FkZXJfYWNjZXNzX3Jlc291cmNlIiwidXNlcklkIjoyOTYyNDI0NH0._szvZFhddH83AHnjYmSQI7Kou3soDkHeYQHTZlRV8wk

依赖输入

RTL(Design Schematic)
Design Specification
Design Schematic:设计框图,可以tool bar里面点击生成;
形如下图,其实类似在Design Spec里面自己画的模块框图是的,这个更细点带着布尔门和寄存器;
图片: https://uploader.shimo.im/f/3JUvaUj9a6aXGsu1.png!thumbnail?accessToken=eyJhbGciOiJIUzI1NiIsImtpZCI6ImRlZmF1bHQiLCJ0eXAiOiJKV1QifQ.eyJleHAiOjE3MDUyMjczNjYsImZpbGVHVUlEIjoidlZxUk1FangyanV5ek4zeSIsImlhdCI6MTcwNTIyNzA2NiwiaXNzIjoidXBsb2FkZXJfYWNjZXNzX3Jlc291cmNlIiwidXNlcklkIjoyOTYyNDI0NH0._szvZFhddH83AHnjYmSQI7Kou3soDkHeYQHTZlRV8wk

Design Specification

详细设计规格具体要求:
Clock Definition
Register Setup Time
Input Ports(sequential logic)
Combinational Logic
Design Area

Lab Demo

1.Setup for the .synopsys_dc.setup
read_db sc_max.db // read_db <targent_library_file>
list_libs //check for libs
report_lib cb13fs120_tsmc_max // if want to redirect,use below
图片: https://uploader.shimo.im/f/4Imja46hPxyD1QiD.png!thumbnail?accessToken=eyJhbGciOiJIUzI1NiIsImtpZCI6ImRlZmF1bHQiLCJ0eXAiOiJKV1QifQ.eyJleHAiOjE3MDUyMjczNjYsImZpbGVHVUlEIjoidlZxUk1FangyanV5ek4zeSIsImlhdCI6MTcwNTIyNzA2NiwiaXNzIjoidXBsb2FkZXJfYWNjZXNzX3Jlc291cmNlIiwidXNlcklkIjoyOTYyNDI0NH0._szvZFhddH83AHnjYmSQI7Kou3soDkHeYQHTZlRV8wk

redirect -file lib.rpt {report_lib cb13fs120_tsmc_max}
exit // for exit dc_shell
gvim lib.rpt
grep -i “unit” lib.rpt
图片: https://uploader.shimo.im/f/PPYLDamLvouC4c3b.png!thumbnail?accessToken=eyJhbGciOiJIUzI1NiIsImtpZCI6ImRlZmF1bHQiLCJ0eXAiOiJKV1QifQ.eyJleHAiOjE3MDUyMjczNjYsImZpbGVHVUlEIjoidlZxUk1FangyanV5ek4zeSIsImlhdCI6MTcwNTIyNzA2NiwiaXNzIjoidXBsb2FkZXJfYWNjZXNzX3Jlc291cmNlIiwidXNlcklkIjoyOTYyNDI0NH0._szvZFhddH83AHnjYmSQI7Kou3soDkHeYQHTZlRV8wk

2.Create a Timing and Area Constrains File
If do not know how to do ,ref the .solutions.

  • create xxx.con under ./scripts/
touch lab4.con
  • Based on the Design Spec and Design Schematic,as well as the appropriate time unit,Get the required constrains writed in lab4.con
#Dont know how to write
cp .solutions/lab4.con ./scripts
de_shell: source scripts/lab4.con
  • check for verify the constrains applied to design
check_timing
report_clock
report_clock -skew
report_port -verbose
  • write out the applied constrains to a file for further checking
write_script -out scripts/lab4.wscr
  • tkdiff cmd to compare the .solutions/lab4.wscr with scripts/lab4.wscr
    save the design as unmapped/MY_DESIGN.ddc and exit.
GuI: saved as..
unix: write -hierarchy -format ddc -output /xx/xxx/xx/xx/xx/xx.ddc

【Ref】
[1] https://blog.csdn.net/weixin_44726874/article/details/131088674
[2] https://max.book118.com/html/2016/1113/62845423.shtm

  • 25
    点赞
  • 19
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值