找回密码
 注册
查看: 2137|回复: 2
打印 上一主题 下一主题

怎样用skill获得每个pin的网络名呢?

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2009-9-7 08:50 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

EDA365欢迎您登录!

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

x
不知道这个怎么实现...要能把pin和网络名对应上..

该用户从未签到

2#
发表于 2009-9-7 10:08 | 只看该作者
1# btgcht

我這個模組是輸入Net name 得到該Net對應的pin

procedure( cGetRefnum_simplenet(Netname)
prog( ()

  ;;輸入參數: Net name => Output與這條Net有關的Pin接點的List. Ex:Input:"MA_MD0" Output"U10.AC4" "DIMM1.5" "DIMM2.5")
  ;;運作方式: 撈Net的DBID, Branch的DBID, Children的DBID

  DBID_Net = nil
  refTable=makeTable("refTable" nil)
      refnumTable=makeTable("refnumTable" nil)
                     
      DBID_Net = car(axlSelectByName("NET" list(Netname)))
      
      brnch_dbids = DBID_Net->branches         ;Get the DBIDs of "branches" of the Net
      
      ;println(brnch_dbids)
      
      cont=length(brnch_dbids)
      
      foreach(elm brnch_dbids
      
       ;println(elm->children)
      
       foreach(elmkid elm->children            
           op = elmkid->objType       ;Get the object Type of each "children"            
           when(op == "pin"              ;The condition of the chldren's objType is "IN"
                ref = elmkid->component->name       ;*****Get the reference name of the component which is connected to the net*****                    
                num = elmkid->number                ;*****Get the pin number which is connected to the Net*****            
            
                refnumTable[Netname]=nconc(refnumTable[Netname] list(strcat(ref "." num)))
               
            );when
         );foreach
      );foreach
      
      ;println(refnumTable[Netname])
      
      return(refnumTable[Netname])
      
   );prog
);procedure

评分

参与人数 1贡献 +2 收起 理由
btgcht + 2

查看全部评分

该用户从未签到

3#
 楼主| 发表于 2009-9-7 10:14 | 只看该作者
多谢楼上,这样也应该够用了!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

EDA365公众号

关于我们|手机版|EDA365电子论坛网 ( 粤ICP备18020198号-1 )

GMT+8, 2025-2-5 12:09 , Processed in 0.078125 second(s), 27 queries , Gzip On.

深圳市墨知创新科技有限公司

地址:深圳市南山区科技生态园2栋A座805 电话:19926409050

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