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

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

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 9007|回复: 14

[求助] 遍历lib中的每一个cell的skill函数

[复制链接]
发表于 2018-9-26 17:53:54 | 显示全部楼层 |阅读模式

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

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

x
如题,有没有skill函数能输出一个lib中所有cell的list。现在想对lib中的所有cell进行相同的操作,但是不知道怎么遍历这些cell。

谢谢
发表于 2018-9-28 21:56:27 | 显示全部楼层
可以通过cellList=ddGetObj("LibName")~>cells~>name获得library中所有cell的列表,然后用foreach遍历就可以了。

例如获得analogLib的cellList如下:
cellList=ddGetObj("analogLib")~>cells~>name
("npn" "vccs" "port3t" "cfde_nport_res" "pmos"
    "vssd" "vcvsp" "vdd_inherit" "zvcvs" "schottky"
    "vss_inherit" "bcs" "isource" "indq" "mind"
    "ptft" "vpnp" "sccvs" "nodeQuantity" "vpulse"
    "pvcvs2" "cfde_nport_ind" "u1wire" "vss" "phyres"
    "sp4tswitch" "nmos4" "nsoi" "ipwlf" "vccd"
    "pvcvs" "psin" "pvccsp" "iprbs" "vsin"
    "nmes" "nport" "scr" "simulinkCoupler" "pexp"
    "pmind" "vam" "gnda" "n3port" "rcwireload"
    "veea" "pccvs" "pmos4" "vee" "sp2tswitch"
    "scccs" "pcapacitor" "ind" "xfmr" "port"
    "pprbs" "svcvs" "cfde_nport" "cfde_spice_model_cap" "pjfet"
    "vccap" "iam" "ibit" "gndd" "veed"
    "dcfeed" "iopamp" "TTL_a2d" "pinductor" "vexp"
    "pvccs2" "ppwl" "isffm" "cccs" "pvccs3"
    "winding" "ppwlf" "bjt504tnpn" "vddd" "vsffm"
    "deepprobe" "vdd" "multibit" "ideal_balun" "n2port"
    "psoip" "ccvs" "diode" "cmdmprobe" "vpwlf"
    "ibis_buffer" "vpwl" "vdc" "nmos" "dummy"
    "nmes4" "njfet" "bvs" "vcres" "pvccs"
    "iexp" "cfde_spice_model_ind" "cfde_nport_cap" "fracpole" "pcccs"
    "capq" "cap" "nbsim4" "delayline" "pvcvsp"
    "MOS_a2d" "isin" "sp3tswitch" "switch" "MOS_d2a"
    "pdiode" "zvccs" "gnd" "cfde_spice_model_res" "res"
    "nbsim" "dcblock" "idc" "u3wire" "delay"
    "vsource" "fourier" "bsim4" "vcca" "pbsim4"
    "usernpn" "diffstbprobe" "ntft" "ipulse" "mtline"
    "pvcvs3" "fourier2ch" "cfde_spice_model" "n1port" "vnpn"
    "pbsim" "vssa" "vcc" "pnp" "u4wire"
    "zccvs" "core" "vbit" "psoi" "TTL_d2a"
    "svccs" "n4port" "tline" "sprobe" "vprbs"
    "presistor" "msline" "vdda" "ipwl" "zener"
    "bsource" "userpnp" "pdc" "iprobe" "scasubckt"
    "vccsp" "bjt504tpnp" "sp1tswitch" "vcvs" "vbic"
    "corefragment" "ixfmr" "zcccs" "u5wire" "nsoip"
    "u2wire" "ppulse"
)
发表于 2018-10-10 17:16:49 | 显示全部楼层
thanks for sharing
 楼主| 发表于 2018-10-11 08:58:48 | 显示全部楼层
回复 2# qkoyote


    好厉害,非常感谢!!!
发表于 2018-10-15 11:49:08 | 显示全部楼层
foreach(cellId ddGetObj("libname")~>cells
        ...
        ...
)
发表于 2018-10-15 16:23:08 | 显示全部楼层
回复 5# shfeiwang

请问一个skill的初学者怎么才能知道有这么一个函数可以做这个事情呢?
发表于 2018-10-16 09:39:36 | 显示全部楼层
cdsFinder可以查找函数
除了cdnshelp外可以多看看现有的一些skill脚本。
发表于 2019-1-9 16:06:58 | 显示全部楼层
xie xie xie xie
发表于 2019-2-18 12:55:22 | 显示全部楼层
又长知识了,谢谢
发表于 2019-2-19 16:37:49 | 显示全部楼层




   virtuoso窗口Help->virtuoso documentation
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

×

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

GMT+8, 2024-11-18 02:58 , Processed in 0.026501 second(s), 7 queries , Gzip On, Redis On.

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