ATPG原理及实现——9.write pattern
write_pattern <filename> [ -replace ]
[ -first <d>] [-last <d> ]
[ -internal | -external ]
[ -serial | -parallel [d] ]
[ -split [n] ]
[ -nocompaction ]
[ -nooverlap_load ]
[ -compress < gzip | binary> ]
[ -format < binary | stil |wgl |wgl_flat > ]
[ -exclude < setup | repeat_setup | patterns | all > ]
将pattern以二进制格式保存,以便以后可以将其转换为不同的格式:
run_atpg
write patterns -format binary
write image run_img·gz ·
以适当的格式保存pattern以进行仿真给ATE:
write patterns pats.stil -format stil -replace
write patterns pats.wgl -format wgl -replace
chain test pattern(测试chain是否通):
set_atpg -chain_test < off I 0011 | 0101 l 1000 | 0111 l <string> >
off = 不产生
0011 = repeating pattern of 0011(默认)
string = 用户自定义,C(重复最后一位)R(重复所有)
eg. 011001R ->011001011001011001...
011001C ->011001111111111111...
run_atpg -auto ...
write_patterns chain_test.stil -format stil -last 0
parallel VS. Serial load pattern
serial——pattern包含测试周期,这些周期将数据移入扫描链
Parallel——扫描链的加载/卸载是扁平的,扫描单元是侧面加载的
N-Shifts <d>——并行加载,后跟“ d”串行移位
write_patterns <filename> [ -serial l -parallel <d> ] -format [ still | stil99 ] ##支持的格式:stil or stil99
serial pattern中如何选择pattern:
report_pattern -all -type记录用于每个pattern的捕获时钟
选择pattern:
挑选最少的pattern能将所有的时钟都测到
TEST-T>write_patterns select_pats.stil -format stil -reorder serial_select.rpt -serial