在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 2283|回复: 1

[求助] get_net_shapes在tcl脚本使用的疑问

[复制链接]
发表于 2015-6-18 09:33:46 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
1、
get_net_shapes -intersect $bbox -filter ""这条语句在A.tcl里,
icc_shell>>source A.tcl
提示在找不到任何net,但是
icc_shell>>get_net_shapes -intersect $bbox -filter ""
确实可以找到net,




你们碰到过这种问题吗?


2、脚本的结构大概是这样的:


A.tcl
proc A args {
    ... ...
    for ... {
       for ... {
       source B.tcl
       B ...
    }
   }
}


proc B args {
     for ... {
       set net_n [sizeof_collection [get_net_shapes -intersect $bbox -filter ""]
       if { $net_n ... } {
       } else {
       }
     }
}


sub proc B里的对net_n的判断是最核心的一步。


3、
get_net_shapes -intersect $bbox


bbox的范围由A加大到B之后,可以获得该B范围内的net,但是也得到了不想要的。


实际上区域A,在icc_shell>>get_net_shapes -intersect B -filter “ ”是可以获得A区域的net  


我现在觉得不是这个脚本结构的问题了,应该是get_net_shape或者icc本身的bug吧,你们怎么看
发表于 2015-7-6 11:09:55 | 显示全部楼层
-within region

Creates a collection that contains all net shapes that are completely inside the specified region and do not overlap the boundary. The region boundary can be rectangle or polygon. For details about specifying the region boundary, see the DESCRIPTION section.

The coordinate unit is specified in the technology file; typically the unit is microns.

The -within, -touching, -intersect, and -at arguments are mutually exclusive; you can specify only one. If you do not specify any of these options, the tool searches for net shapes in the entire design.

-touching region

Creates a collection that contains all net shapes that are inside the specified region, including those that overlap the boundary. The region boundary can be rectangle or polygon. For details about specifying the region boundary, see the DESCRIPTION section.

The coordinate unit is specified in the technology file; typically the unit is microns.

The -within, -touching, -intersect, and -at arguments are mutually exclusive; you can specify only one. If you do not specify any of these options, the tool searches for net shapes in the entire design.

-intersect region

Creates a collection that contains all net shapes that intersect the boundary of the specified region and at least part of the cell is outside of the specified region. The region boundary can be rectangle or polygon. For details about specifying the region boundary, see the DESCRIPTION section.

The coordinate unit is specified in the technology file; typically the unit is microns.

The -within, -touching, -intersect, and -at arguments are mutually exclusive; you can specify only one.


你仔细看看这三个的解释,再做做试验。
我记得我当初第一次遇到时就被坑过,它们的定义不是我开始按字面想的那样。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /1 下一条

×

小黑屋| 手机版| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-11-17 02:39 , Processed in 0.015042 second(s), 6 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表