网站首页
IC库存
IC展台
电子资讯
技术资料
PDF文档
我的博客
IC72论坛
ic72 logo
资料首页最新产品 技术参数 电路图 设计应用 解决方案 代理商查询 IC替换 IC厂商 电子辞典
关键字: 技术文章 PDF资料 IC价格 电路图 代理商查询 IC替换 IC厂商 电子辞典

用calibre比较两个Layout

有时候需要将两个Layout进行比较,看它们有哪些不一样。
以前在用calibre时,还要写一个command file,特别是layer map需要改变,特别繁琐
干脆就用calibre tcl写了个script,直接比较,一步到位,省去了不少的麻烦。
贴到这里来跟大家共享,嘿嘿,我在这里学到了不少的东西,当然自己也要贴些东西上来呀

#!/bin/sh -f
#The next line starts to use calibre \
exec $MGC_HOME/bin/calibredrv "$0" "$@"

if { $argc != 2 } {
puts stdout "ERROR:USAGE:xor2gds.tcl gds1 gds2"
exit 0
}

set gds1 [layout create [lindex $argv 0]]
set gds2 [layout create [lindex $argv 1]]

if { [file exist xor2gds.cal] } {
file delete xor2gds.cal
}

set layerMap_raw1 [$gds1 layernames]
set layerMap_raw2 [$gds2 layernames]
set topCell1 [$gds1 topcell]
set topCell2 [$gds2 topcell]

exec echo "LAYOUT PATH [lindex $argv 0]" >> xor2gds.cal
exec echo "LAYOUT PRIMARY $topCell1" >> xor2gds.cal
exec echo "LAYOUT SYSTEM GDSII" >> xor2gds.cal
exec echo "LAYOUT PATH2 [lindex $argv 1]" >> xor2gds.cal
exec echo "LAYOUT PRIMARY2 $topCell2" >> xor2gds.cal
exec echo "LAYOUT SYSTEM2 GDSII" >> xor2gds.cal
exec echo "LAYOUT BUMP2 200" >> xor2gds.cal
exec echo "DRC RESULTS DATABASE \"./xor2gds.db\"" >> xor2gds.cal
exec echo "DRC SUMMARY REPORT \"./xor2gds.sum\"" >> xor2gds.cal

foreach {layerNum layerName} $layerMap_raw1 {
exec echo "$layerNum $layerName " >> layerMap_raw
}
foreach {layerNum layerName} $layerMap_raw2 {
exec echo "$layerNum $layerName " >> layerMap_raw
}
set layerMap [exec sort layerMap_raw uniq]
file delete layerMap_raw

set i 1
foreach {layerNum layerName} $layerMap {
set layerNum_new [expr $layerNum + 200]
set layerName_origin L$layerName
append layerName "_new"
set layerName_new L$layerName
exec echo "layer $layerName_origin $layerNum" >> xor2gds.cal
exec echo "layer $layerName_new $layerNum_new" >> xor2gds.cal
exec echo "\
rule$i {
xor $layerName_origin $layerName_new
} " >> xor2gds.cal
incr i
}
#Run DRC
exec calibre -drc -hier xor2gds.cal > xor2gds.log



热门搜索:PDUMV20 SBB2805-1 PS2408 2804623 2838319 BT151S-800R118 PS-410-HGOEMCC RBC11A LS606M TLM626SA PS361220 1553DBPCB TLM825GF B30-7100-PCB 2839240 TLP810NET 2920120 01M2251SFC3 TLM615SA 2839648 01B1002JF ADS1013IDGSR 6SPDX UL24RA-15 SBB2808-1
COPYRIGHT:(1998-2010) IC72 达普IC芯片交易网
客户服务:service@IC72.com 库存上载:IC72@IC72.com
(北京)联系方式: 在线QQ咨询:点击这里给我发消息 联系电话:010-82614113 传真:010-82614123
京ICP备06008810号-21 京公网安备 11010802032910 号 企业资质