|
|
发表于 2013-7-19 23:46:51
|
显示全部楼层
简单些了个能检查高亮的器件及网络。高亮PIN可自行修改代码。
效果:
- ;By Vivien Luo
- ;2013-7-19
- ;www.allegro-skill.com
- axlCmdRegister("highlight_report" 'highlight_report)
- defun(highlight_report ()
- curDesign = axlDBGetDesign()
- curSymbols = curDesign->symbols
- curNets = curDesign->nets
- HighlightReport = outfile("./highlight_report.txt")
- fprintf(HighlightReport "-----------------------------------\n")
- fprintf(HighlightReport "Highlight Symbols Reports\n")
- fprintf(HighlightReport "-----------------------------------\n")
- fprintf(HighlightReport "Refdes\t\tLocation\t\tColor(R G B)\n")
- foreach(sym curSymbols
- when(axlIsHighlighted(sym)
- if(sym->refdes
- then
- fprintf(HighlightReport "%s\t\t(%P)\t\t%L\n" sym->refdes sym->xy axlColorGet(axlIsHighlighted(sym)))
- else
- fprintf(HighlightReport "\t\t(%P)\t\t%L\n" sym->xy axlColorGet(axlIsHighlighted(sym)))
- )
- )
- )
- fprintf(HighlightReport "\n\n-----------------------------------\n")
- fprintf(HighlightReport "Highlight Nets Reports\n")
- fprintf(HighlightReport "-----------------------------------\n")
- fprintf(HighlightReport "Net Name\t\tColor(R G B)\n")
- foreach(curNet curNets
- when(axlIsHighlighted(curNet)
- fprintf(HighlightReport "%s\t\t%L\n" curNet->name axlColorGet(axlIsHighlighted(curNet)))
- )
- )
- close(HighlightReport)
- axlUIViewFileCreate("./highlight_report.txt" "Highlight Report - www.allegro-skill.com" nil)
- )
复制代码
find_highlight.rar
(817 Bytes, 下载次数: 41)
|
|