找回密码
 注册

手机号码,快捷登录

手机号码,快捷登录

查看: 2571|回复: 4

[求助] 获取IP pin shapes问题

[复制链接]
发表于 2023-4-24 17:54:48 | 显示全部楼层 |阅读模式

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

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

×
本帖最后由 lixuhui112 于 2023-4-24 17:57 编辑

如题,用dbget 去获取ip的pin shapes时无法获取到,但是gui 界面是正常的,请问大佬是我获取的方式不对吗?



                               
登录/注册后可看大图


                               
登录/注册后可看大图

发表于 2023-4-25 12:38:34 | 显示全部楼层
Try:
get_db [get_pins your_macro_pin] .base_pin.physical_pins.layer_shapes.shapes.rect
回复 支持 反对

使用道具 举报

发表于 2023-4-26 23:50:34 | 显示全部楼层
楼上大佬用stylus common UI,这是大趋势,抓取的确方便。
如果楼主习惯legacy UI的话,抓pinshape需要坐标转化:
1)获取<0,0> LEF视角的localPt
2)通过inst指针(基于location+orientation,做平移和旋转),dbTransform将localPt转化为globalPt

脚本举例:
set pin_name xxx/x
set local_rect [dbGet [dbGet -p top.insts.instTerms.name $pin].cellTerm.pins.allShapes.shapes.rect]
set inst_pt [dbGet -p top.insts.name xxx]
set global_rect [dbTransform -localPt $local_rect -inst $inst_pt]
回复 支持 反对

使用道具 举报

发表于 2023-4-27 08:25:47 | 显示全部楼层
ime 发表于 2023-4-26 09:50
楼上大佬用stylus common UI,这是大趋势,抓取的确方便。
如果楼主习惯legacy UI的话,抓pinshape需要坐标 ...

兄弟你才是牛人啊!dbTcl玩得太溜了,佩服。

我实际上是在legacy UI下用get_db,Innovus 19.x以上版本支持在legacy UI下跑get_db,18.x可能也行,我没试过

回复 支持 反对

使用道具 举报

 楼主| 发表于 2023-5-17 17:04:48 | 显示全部楼层
ime 发表于 2023-4-26 23:50
楼上大佬用stylus common UI,这是大趋势,抓取的确方便。
如果楼主习惯legacy UI的话,抓pinshape需要坐标 ...

谢谢大佬解惑,目前是这么处理的,不过rect 矩形属性变了,因为变成不规则的形状所以改为用poly的属性来获取
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-1-16 07:14 , Processed in 0.044709 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表