cj_181888888的个人空间 https://blog.eetop.cn/?1760954 [收藏] [复制] [分享] [RSS]

日志

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

已有 5 次阅读| 2025-12-25 15:43 |系统分类:芯片设计


 FliterCell.il.txt

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


1,这个脚本没有计数功能。我是初学者,计数方法对我来说是个新课题,我需要时间研究一下,希望能拿出来。
2,论坛上有同学说,可以使用virtuoso自带的“print tree”来实现这个功能,位置在Virtuoso Schematic Editor->Edit->Hierarchy->rint Tree.  默认快捷键是“Shift+T”。可以列出用到的所有library、cell和对应数目。(我的virtuoso版本是IC617,不知道之前的版本是否支持这个功能。)



评论 (0 个评论)

  • 3

    周排名
  • 8

    月排名
  • 0

    总排名
  • 0

    关注
  • 40

    粉丝
  • 14

    好友
  • 134

    获赞
  • 12

    评论
  • 222

    访问数
关闭

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


手机版| 小黑屋| 关于我们| 联系我们| 用户协议&隐私声明| 版权投诉通道| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 ) |网站地图

GMT+8, 2025-12-25 18:03 , Processed in 0.012385 second(s), 7 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
返回顶部