找回密码
 注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

巢课
电巢直播8月计划
查看: 1392|回复: 2
打印 上一主题 下一主题

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

[复制链接]

49

主题

304

帖子

2169

积分

四级会员(40)

Rank: 4Rank: 4Rank: 4Rank: 4

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

EDA365欢迎您!

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

x
不知道这个怎么实现...要能把pin和网络名对应上..
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
收藏收藏 支持!支持! 反对!反对!

0

主题

4

帖子

-8961

积分

未知游客(0)

积分
-8961
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

查看全部评分

Lee

49

主题

304

帖子

2169

积分

四级会员(40)

Rank: 4Rank: 4Rank: 4Rank: 4

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

本版积分规则

关闭

推荐内容上一条 /1 下一条

巢课

技术风云榜

关于我们|手机版|EDA365 ( 粤ICP备18020198号 )

GMT+8, 2024-9-20 23:20 , Processed in 0.057025 second(s), 33 queries , Gzip On.

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

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

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