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

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

  • [Lab Flow:](#Lab Flow:)
    • 依赖输入
    • [Design Specification](#Design Specification)
    • [Lab Demo](#Lab Demo)

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:

依赖输入

RTL(Design Schematic)

Design Specification

Design Schematic:设计框图,可以tool bar里面点击生成;

形如下图,其实类似在Design Spec里面自己画的模块框图是的,这个更细点带着布尔门和寄存器;

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

redirect -file lib.rpt {report_lib cb13fs120_tsmc_max}

exit // for exit dc_shell

gvim lib.rpt

grep -i "unit" lib.rpt

2.Create a Timing and Area Constrains File

If do not know how to do ,ref the .solutions.

  • create xxx.con under ./scripts/
dc_shell 复制代码
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
bash 复制代码
#Dont know how to write
cp .solutions/lab4.con ./scripts
de_shell: source scripts/lab4.con
  • check for verify the constrains applied to design
bash 复制代码
check_timing
report_clock
report_clock -skew
report_port -verbose
  • write out the applied constrains to a file for further checking
bash 复制代码
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.
bash 复制代码
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

相关推荐
艾思芯片设计1 年前
巧用RTL原语实现MUX门级映射
dc·rtl·primitive
bcbobo21cn1 年前
MFC保存窗口客户区为图片
c++·mfc·dc·设备描述表·bitblt
ltqshs1 年前
DCDC Buck电路地弹造成的影响
嵌入式硬件·dc