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

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

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 11598|回复: 29

[原创] skill脚本,查找电路图中用到的特定库中的的所有cell,保存到指定库

[复制链接]
发表于 2019-1-29 18:51:09 | 显示全部楼层 |阅读模式

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

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

x
本帖最后由 yanpflove 于 2019-1-29 18:52 编辑

FliterCell.il.txt (1.13 KB, 下载次数: 192 )
查找电路图中用到的specified library中的的所有cell,copy到destLib中。
我用它将一个项目用到的所有std. cell找了出来。
附件内容和下方代码内容一致,我可以用这个求赏赐一些积分吗?

procedure(FilterLib(lib)
foreach(cellID ddGetObj(lib)->cells
cell=celllD~>name
  FilterCell(cell)  ;This function is defined below.
);end foreach
printf(" ^_^  Library \"%s\" is finished. \n" lib)
);end procedure

procedure(FilterCell(lib cell)
printf(" ^_^  Cell \"%s\" begins! \n" cell)
destLib="Digital"  ;Define the destination library.
        when(cv=dbOpenCellViewByType(lib cell "schematic" "" "r")
         foreach(instID cv~>instances
          when((instID~>libName=="specified library")
                    dest_cell = ddGetObj(destLib instID~>cellName)
                    if(dest_cell==nil then
                        foreach(view list("schematic" "symbol")
                            source_cell = dbOpenCellViewByType( "specified library" instID~>cellName view)
                            dbCopyCellView(source_cell destLib instID~>cellName view)
                            dbClose(source_cell)
                        );end foreach view
                    );end if dest_ceH
                );end when
            );end foreach instID
            dbClose(cv)
        );end when cv
);end procedure FilterCell
发表于 2019-1-29 19:57:10 | 显示全部楼层
thaankas
发表于 2019-2-21 16:05:36 | 显示全部楼层
感谢分享
发表于 2019-2-24 21:37:55 | 显示全部楼层
非常感谢!
发表于 2019-2-25 15:23:40 | 显示全部楼层
感谢分享
发表于 2019-2-26 15:39:40 | 显示全部楼层
good,good
发表于 2019-2-27 11:01:24 | 显示全部楼层
请问此脚本能否将电路中各个模块所调用stdcell的数量统计出来?用来快速评估大量stdcell组成的模块面积,如不能该如何实现?
 楼主| 发表于 2019-2-27 11:26:17 | 显示全部楼层
本帖最后由 yanpflove 于 2019-3-19 15:10 编辑

回复 7# cxchust

1,这个脚本没有计数功能。我是初学者,计数方法对我来说是个新课题,我需要时间研究一下,希望能拿出来。
2,论坛上有同学说,可以使用virtuoso自带的“print tree”来实现这个功能,位置在Virtuoso Schematic Editor->Edit->Hierarchy->rint Tree.  默认快捷键是“Shift+T”。可以列出用到的所有library、cell和对应数目。(我的virtuoso版本是IC617,不知道之前的版本是否支持这个功能。)参考以下链接的2楼回复。
http://bbs.eetop.cn/thread-848724-1-1.html
tree.png
发表于 2019-2-27 13:52:44 | 显示全部楼层
学习了,谢谢
发表于 2019-3-21 17:05:03 | 显示全部楼层
谢谢分享
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-4-16 20:52 , Processed in 0.034846 second(s), 7 queries , Gzip On, Redis On.

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