语法:tcl_synopsys
这是本文档旧的修订版!
目录
tcl for synopsys
这个tcl是只用于snps的tcl环境,其它家可能不能用。
1. filter expression
1.1 表达式匹配 expression
<code tcl> get_cells * -filter “full_name =~ abc”
这个例子是获取full_name与*abc*相匹配的cells
</code>
filter可以使用如下的表达式\
1.2 attribute function match
<code tcl> get_cells * -filter “defined(full_name)”
这个例子是获取所有define了full_name属性的cells
</code>
2. lsc
<code tcl> set fp [open “abc.log” w];
foreach_in_collection tmp [get_pins -hierarchical *Q] {
set tt [get_attribute [get_pins $tmp] FULL_NAME]; puts $fp $tt;
}
close $fp;
</code>
3. cc
<code tcl>
list get_attribute
object_list attribute_name [-bus] [-quiet] [-return_null_values]
</code>
<code tcl> proc cc {coll} { foreach_in_collection item $coll { puts [get_attribute $item full_name] } }
用于将coll list打印为行形式。
cc [get_cells]
</code>
语法/tcl_synopsys.1791900372.txt.gz · 最后更改: 由 127.0.0.1
