Cadence Skill 论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 178|回复: 2

[求助] 如何比较快速的获取某层所有走线的线宽?

[复制链接]
发表于 2025-1-12 21:43:52 | 显示全部楼层 |阅读模式
本帖最后由 Trunktren 于 2025-1-12 21:45 编辑

我想获得某一层中,所有走线的线宽,列成表格。
我目前的方法:
      通过控制显示层,获取所有的线段得到线宽。但是每次运行我都感觉它很慢,要切换显示,还有其他的办法吗?

  1. itemLayer = “art03”
  2.         axlVisibleDesign(nil);关闭所有的层
  3.         activeLayerlist = list( strcat("ETCH/",itemLayer) strcat("VIA CLASS/",itemLayer) strcat("PIN/",itemLayer))
  4.         foreach(activeLayer activeLayerlist
  5.                 axlVisibleLayer(activeLayer t);设置可见层
  6.         );end foreach
  7.          axlClearSelSet()
  8.          ;axlSetFindFilter(?enabled '(noall Clines) ?onButtons '(noall Clines))
  9.          axlSetFindFilter( ?enabled list("noall" "clinesegs")
  10.                       ?onButtons list("noall" "clinesegs"))
  11.      axlAddSelectAll() ;选择可见层所有的线
  12.          sel_Clines = axlGetSelSet()
  13.          axlClearSelSet()
  14.          foreach(clineseg sel_Clines
  15.                 clineWidth = clineseg -> width
  16.                 clineWidths = append1(clineWidths clineWidth)
  17.                 ;printf("%A\n",clineWidth)
  18.          );end foreach
复制代码

 楼主| 发表于 2025-1-13 14:47:22 | 显示全部楼层
本帖最后由 Trunktren 于 2025-1-13 14:48 编辑

我发现好像是我获取这个线宽的方法,在每一个循环或者函数中都调用这个函数,导致了它循环获得了很多次,所以比较卡。我把它得到数据放到一个list中调用,就很快了。毕竟只是这样运行一次就获得了数据。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|网站地图|Cadence Skill 论坛 ( 蜀ICP备13024417号 )

GMT+8, 2025-3-1 06:32 , Processed in 0.121338 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

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