APP下载

基于SQLite的边界扫描测试链路自动生成研究与实现

2018-04-13侯杏娜陈寿宏颜学龙

现代电子技术 2018年8期

侯杏娜 陈寿宏 颜学龙

摘 要: 为了提高边界扫描测试效率,提出一种基于嵌入式开源数据库SQLite的边界扫描测试链路自动生成方法。根据边界扫描编译结果得到SQLite数据库的各个数据表数据,分析各表间的数据关系,结合边界扫描矢量生成算法,从任意点随机触发,开始遍历数据库各表,引入模糊查询模式更有效匹配各表关系,快速形成完整边界扫描测试链。所设计的边界扫描链路自动生成方法可替代人工生成链路方法,简化测试准备和节省处理数据时所需时间,降低系统成本,具有较好的应用前景。

关键词: 边界扫描; SQLite; 链路生成; 数据表; 数据关系; 模糊查询模式

中图分类号: TN820.2?34; TN958 文献标识码: A 文章编号: 1004?373X(2018)08?0064?04

Abstract: To improve the testing efficiency of boundary scan, an embedded open source database SQLite based method of automatic generation for boundary scan testing chain is proposed. The data of each data table in the SQLite database is obtained according to the compiling results of boundary scan, and the data relationships between tables are analyzed. Combined with the boundary scan vector generation algorithm, each table in the database is traversed from any randomly?triggered point. The fuzzy query mode is introduced to match the table relationships more effectively and form a complete boundary scan test chain rapidly. The designed boundary scan chain automatic generation method can replace the manual chain generation method, simplify the test preparation, save the data processing time, reduce the cost of the system, and has a good application prospect.

Keywords: boundary scan; SQLite; chain generation; data table; data relationship; fuzzy query mode

0 引 言

边界扫描技术是新兴的测试技术,它是一种在实际测试时不需借助复杂和昂贵装置,并提出一种独立于电路板技术的测试方法。边界扫描测试系统主要包括硬件系统和软件系统。软件系统主要由测试矢量自动生成模块和测试故障诊断模块组成。在测试矢量生成的过程中边界扫描测试链的形成是重要一环,它构成整个边界扫描过程的基础框架。由于整个边界扫描系统存在信息量大,人工形成测试粗链的方式已无法满足现代测试的要求的问题,本文针对该问题,根据编译提取的信息存入SQLite嵌入式数据库,建立相互联系,从任意点随机触发,遍历各关系数据库,快速有效形成测试链。

1 自动生成扫描链路原理

用户可以自定义一个描述该电路板上扫描链基本组成信息的文件,包含边界扫描器件的BSDL文件名、电路板的网表文件名、扫描链的条数、每条链的TDI、TDO等端口号和含有边界扫描的器件名。……

登录APP查看全文