dbGet (二)"/>
dbGet (二)
dbGet是由它基本的语法加上各种object的attribute的组合构成的。大家在熟悉基本语法之后,就应该去学习各个object的attribute了。说实话,这很难,因为attribute很多,而且有的attribute写法相当奇怪,怎么看都看不懂,比如hInstTerms、hTerms、instTerms的区别。。。那我们怎么去了解这些attribute的意思呢?平时要多学多用,还有多看doc。
其实,我们dbGet本身是提供一些简单的attribute介绍信息的,上一篇文章里也讲过,采用.?h来查询。比如说我们不知道insts下面的pStatus属性是什么意思,就可以采用如下命令,它会简单介绍pStatus的意思和用途
[DEV]innovus 3> dbGet top.insts.?h pStatus
pStatus(settable): enum(cover fixed placed softFixed unplaced), This attribute is the placement status of an instance during placement and optimization. The placer will look at both place_status and place_status_cts and use the more restrictive value.
dbTcl提供了另外一个很方便去查询的命令,dbSchema。怎么使用呢?比如说你想知道net的意思,可以采用下面命令:
[DEV]innovus 16> dbSchema net
=====================
net: Canonical (flat) net (equivalent to connectivity in DEF NETS and SPECIALNETS)
--------------------------------------
allTerms: objList(instTerm term), List of pointers to connections (terms and instTerms)
area: area, Area of the net as defined by the LEF MACRO SIZE or OVERLAP information
看到木有,是不是和.?h具有相同功能,而且方便多了,它还会把这个attribute下一级子attribute都列出来。
它也支持通配符匹配,下面命令就会得到net和netgroup的信息
[DEV]innovus 17> dbSchema net*
=========
更多推荐
dbGet (二)
发布评论