[go: up one dir, main page]

CN100370264C - A Method for Automatically Recognizing the Type of Circuit Board - Google Patents

A Method for Automatically Recognizing the Type of Circuit Board Download PDF

Info

Publication number
CN100370264C
CN100370264C CNB031503411A CN03150341A CN100370264C CN 100370264 C CN100370264 C CN 100370264C CN B031503411 A CNB031503411 A CN B031503411A CN 03150341 A CN03150341 A CN 03150341A CN 100370264 C CN100370264 C CN 100370264C
Authority
CN
China
Prior art keywords
circuit board
circuit boards
scan chain
data
chain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB031503411A
Other languages
Chinese (zh)
Other versions
CN1576865A (en
Inventor
李颖悟
兰波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB031503411A priority Critical patent/CN100370264C/en
Publication of CN1576865A publication Critical patent/CN1576865A/en
Application granted granted Critical
Publication of CN100370264C publication Critical patent/CN100370264C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Tests Of Electronic Circuits (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The present invention relates to a method for automatically identifying the type of a circuit board. The present invention mainly comprises: making all devices on a scanning chain of each circuit boards in a by-pass state; identifying circuit boards of distinct types according to the number of digit 0 shifting out of the scanning chain of each circuit board; making all the devices on the scanning chain of each circuit board in the state of capturing instructions; identifying the circuit boards of distinct types according to different instruction capturing initial values shifting out of each boundary scanning device from the scanning chain; or matching ID codes of the devices according to shifting-out data when a system is electrified to distinguish different circuit boards. The application of the method of the present invention can automatically identify the types of circuit boards in boundary scanning tests; therefore, the present invention solves the problem that the positions of circuit boards need to be arranged manually.

Description

一种自动识别电路板类型的方法 A Method for Automatically Recognizing the Type of Circuit Board

技术领域technical field

本发明涉及边界扫描技术,尤指在系统级边界扫描测试中的一种自动识别电路板类型的方法。The invention relates to boundary scan technology, especially a method for automatically identifying circuit board type in system level boundary scan test.

背景技术Background technique

1985年,由IBM、AT&T、Texas Instruments、Philips Electronics NV、Siemens、Alcatel和Ericsson等公司成立的JETAG(Joint European Test ActionGroup)提出了边界扫描技术,它通过存在于器件输入输出管脚与内核电路之间的BSC(边界扫描单元)对器件及其外围电路进行测试,从而提高了器件的可控性和可观察性。1986年,由于其它地区的一些公司的加入,JETAG改名为JTAG(Joint Test Action Group)。1988年JTAG提出了标准的边界扫描体系结构,名称叫Boundary-Scan Architecture Standard Proposal,Version 2.0,最后目标是应用到芯片、印制板与完整系统上的一套完善的标准化技术。1990年,IEEE正式承认了JTAG标准,经过补充和修订以后,命名为IEEE1149.1-90。同年,又提出了BSDL(Boundary Scan Description Lauguage,边界扫描描述语言),后来成为IEEE1149.1-93标准的一部分。In 1985, JETAG (Joint European Test Action Group), established by IBM, AT&T, Texas Instruments, Philips Electronics NV, Siemens, Alcatel and Ericsson, etc., proposed the boundary scan technology, which exists between the input and output pins of the device and the core circuit. The BSC (Boundary Scan Cell) in between tests the device and its peripheral circuits, thereby improving the controllability and observability of the device. In 1986, due to the joining of some companies from other regions, JETAG was renamed JTAG (Joint Test Action Group). In 1988, JTAG proposed a standard boundary-scan architecture called Boundary-Scan Architecture Standard Proposal, Version 2.0. The final goal is a complete set of standardized technologies applied to chips, printed boards and complete systems. In 1990, IEEE officially recognized the JTAG standard, which was named IEEE1149.1-90 after supplementation and revision. In the same year, BSDL (Boundary Scan Description Language) was proposed, which later became part of the IEEE1149.1-93 standard.

边界扫描技术自从提出以来得到了广泛的应用,现在很多芯片都支持边界扫描测试功能。在电路板上利用边界扫描器件进行互连测试、器件功能测试和在板编程等应用已经非常普遍。而且边界扫描技术的应用从板级到系统级发展。也就是在整个系统中通过IEEE 1149.1系统总线将各个电路板连接起来,可以在系统级对各个电路板进行互连测试、器件功能测试和在板编程等应用,同时还可以进行板间互连测试,如图1所示,在电路板1(即主控板)上有一个微处理器和一个eTBC芯片(也就是嵌入式测试总线控制器芯片),在每一个电路板上都有一个ASP芯片(可寻址扫描端口),eTBC通过初级扫描通道与ASP相连,ASP通过次级扫描通道连接电路板上的边界扫描链。eTBC主要充当总线控制器的作用,ASP主要充当地址匹配的作用,所有电路板的位置信息均可以通过ASP获取。测试系统运行在计算机中,通过网口与微处理器通信,微处理器和eTBC通信。电路板上边界扫描链将该板上的边界扫描器件连接成一条链,如图2所示。Boundary scan technology has been widely used since it was proposed, and now many chips support the boundary scan test function. Applications such as interconnect testing, device functional testing, and on-board programming using boundary-scan devices on circuit boards have become very common. And the application of boundary scan technology develops from board level to system level. That is, in the whole system, the various circuit boards are connected through the IEEE 1149.1 system bus, and applications such as interconnection testing, device function testing, and on-board programming can be performed on each circuit board at the system level, and inter-board interconnection testing can also be performed. , as shown in Figure 1, there is a microprocessor and an eTBC chip (that is, an embedded test bus controller chip) on the circuit board 1 (ie, the main control board), and an ASP chip is arranged on each circuit board (Addressable scan port), eTBC is connected to ASP through the primary scan channel, and ASP is connected to the boundary scan chain on the circuit board through the secondary scan channel. The eTBC mainly acts as a bus controller, and the ASP mainly acts as an address matching function. The position information of all circuit boards can be obtained through the ASP. The test system runs in the computer, communicates with the microprocessor through the network port, and the microprocessor communicates with eTBC. The boundary scan chain on the circuit board connects the boundary scan devices on the board into a chain, as shown in Figure 2.

电路板上的每一个边界扫描器件的基本结构如图3所示。The basic structure of each boundary scan device on the circuit board is shown in Figure 3.

边界扫描器件有以下几个基本特性:Boundary scan devices have the following basic characteristics:

特性1、全“1”指令必定为旁路指令(BYPASS),当输入旁路指令时,从TDI(测试数据输入)到TDO(测试数据输出)会选中旁路寄存器这条数据传输路径,而此时旁路寄存器会装入一位数字“0”。Feature 1. All "1" instructions must be bypass instructions (BYPASS). When the bypass instruction is input, the data transmission path of the bypass register will be selected from TDI (test data input) to TDO (test data output), and At this time, the bypass register will be loaded with a single digit "0".

特性2、通过控制边界扫描器件内部控制器的十六状态机,使边界扫描器件进入捕获指令(Capture-IR)状态时,在指令寄存器中会装入一个特定的指令捕获初始值(INSTRUCTION_CAPTURE),这个值可以从该器件的BSDL(边界扫描描述语言)文件中得到。如图4所示,进入捕获指令状态可以通过控制TMS和TCK走状态机,即图中的Capture-DR状态。Feature 2. By controlling the sixteen state machine of the internal controller of the boundary scan device, when the boundary scan device enters the capture instruction (Capture-IR) state, a specific instruction capture initial value (INSTRUCTION_CAPTURE) will be loaded in the instruction register, This value can be obtained from the device's BSDL (Boundary Scan Description Language) file. As shown in Figure 4, entering the capture instruction state can be achieved by controlling TMS and TCK to go through the state machine, that is, the Capture-DR state in the figure.

不同的边界扫描器,其指令寄存器中装入的捕获初始值一般是不相同的,如下表所示:Different boundary scanners generally have different capture initial values loaded into their instruction registers, as shown in the following table:

 器件名称device name  Capture信号Capture signal   IDCODE代码IDCODE code  i386_EX_Processori386_EX_Processor  00010001   0010100000100111000000000001001100101000001001110000000000010011  LC4128V_XXT100LC4128V_XXT100  00011X0100011X01   XXXX0001100000010001000001000011XXXX0001100000010001000001000011  epm7128st100epm7128st100  01010101010101010101   0000011100010010100000001101110100000111000100101000000011011101  epm7256aet144epm7256aet144  01010101010101010101   0001011100100101011000001101110100010111001001010110000011011101

其中,X为0或1中任意数,capture信号可能长度不同,长度相同数字也可能不同,也可能长度和数字都相同,但是不同器件的IDCODE一定不相同,而且都是32位长度。Among them, X is any number in 0 or 1, the length of the capture signal may be different, the same length may be different, or the length and number may be the same, but the IDCODE of different devices must be different, and they are all 32-bit length.

特性3、边界扫描器件上电以后,则自动装入器件代码(IDCODE)指令,如果没有器件代码指令,则自动装入旁路(BYPASS)指令。Feature 3. After the boundary scan device is powered on, the device code (IDCODE) instruction is automatically loaded, and if there is no device code instruction, the bypass (BYPASS) instruction is automatically loaded.

特性4、当装入器件代码指令(IDCODE)时,从TDI(测试数据输入)到TDO(测试数据输出)会选中ID寄存器这条数据传输路径,而ID寄存器保存了该器件的ID代码。器件的ID代码固定为32位,包含了厂商信息、器件型号信息和器件版本号,一种类型的器件其ID代码是唯一的。Feature 4. When the device code command (IDCODE) is loaded, the data transmission path of the ID register will be selected from TDI (test data input) to TDO (test data output), and the ID register stores the ID code of the device. The ID code of the device is fixed at 32 bits, including manufacturer information, device model information and device version number, and the ID code of a type of device is unique.

一个系统包含了多种电路板,一种电路板又有很多块。所有这些电路板在系统中插在什么插槽中一般并不固定。这个系统包含了一些什么类别的电路板是知道的,但是具体什么板在什么位置并不知道。在进行测试之前,必须了解在哪个位置插了那块电路板。现在一般采用人工填表的方法,通过人工填写一个配置表,这样测试系统就知道那个位置是一块什么样的电路板,然后测试系统调出该电路板的电路文件,根据这些电路板信息对这一块电路板进行测试。A system contains many kinds of circuit boards, and there are many pieces of one circuit board. There is generally no fixed slot in which all of these boards fit in the system. It is known what kind of circuit boards this system contains, but it is not known exactly which boards are in what position. Before testing, it is necessary to know where the board is plugged in. Nowadays, the method of manually filling in the form is generally used. By manually filling in a configuration form, the test system will know what kind of circuit board is at that position, and then the test system will call out the circuit file of the circuit board. A circuit board is tested.

这种人工配置电路板位置的方法十分烦琐,而且当电路板位置发生变动时,还需要同步更新配置表。本发明利用边界扫描器件的特性可以自动识别电路板类型,解决了需要人工配置电路板位置的问题。This method of manually configuring the position of the circuit board is very cumbersome, and when the position of the circuit board changes, the configuration table needs to be updated synchronously. The invention utilizes the characteristics of the boundary scanning device to automatically identify the type of the circuit board, and solves the problem of manually configuring the position of the circuit board.

现有技术的技术方案:Technical scheme of prior art:

现在主要是人工配置的方法,产品开发人员对各个电路板比较熟悉,他会根据电路板实际安插的位置填写一个配置表,指明哪个地址安插的是一种什么类型的电路板。Now it is mainly a manual configuration method. The product developer is familiar with each circuit board. He will fill in a configuration table according to the actual placement of the circuit board, indicating which address is inserted and which type of circuit board.

测试系统根据配置表提供的信息,对各个电路板进行测试。The test system tests each circuit board according to the information provided by the configuration table.

现有技术一的缺点:The shortcoming of prior art one:

1、人工配置,效率低,容易出错。1. Manual configuration is inefficient and error-prone.

2、人员需要对产品比较熟悉,对各个电路板比较熟悉。2. Personnel need to be familiar with the product and each circuit board.

3、如果电路板安插位置变化,则需要及时更改配置表,否则会测试错误。3. If the position of the circuit board is changed, the configuration table needs to be changed in time, otherwise the test will be wrong.

发明内容Contents of the invention

本发明提供一种自动识别电路板类型的方法,解决现有技术中需要人工配置电路板位置的问题。The invention provides a method for automatically identifying the type of the circuit board, which solves the problem in the prior art that the position of the circuit board needs to be manually configured.

本发明的方法,包括下列步骤:The method of the present invention comprises the following steps:

(1)分别选通被测试系统中的各电路板,获取其扫描链的组成信息,将数据链路中的数据全部移出来,并保存;(1) Gate each circuit board in the system under test respectively, obtain the composition information of its scan chain, remove all the data in the data link, and save;

(2)使各电路板扫描链上所有器件进入旁路状态;(2) Make all devices on the scanning chain of each circuit board enter the bypass state;

(3)记录各电路板上从扫描链移出数字“0”的个数;(3) Record the number of numbers "0" removed from the scan chain on each circuit board;

(4)判断是否存在有两个或两个以上电路板的扫描链输出“0”的个数相同,如果不存在,则将所有被测电路板标注为不同类型的电路板,并记录其相应的插置位置;如果存在有两个或两个以上电路板的扫描链输出“0”的个数相同,则进行下列步骤;(4) Determine whether there are two or more circuit boards with the same number of scan chain output "0", if not, mark all the tested circuit boards as different types of circuit boards, and record their corresponding The insertion position; if there are two or more circuit boards with the same number of scan chain output "0", perform the following steps;

(5)将输出“0”的个数互不相同的电路板标注为不同类型的电路板,并记录其相应的插置位置;将输出“0”的个数相同的电路板,进行下一步识别;(5) Mark the circuit boards with different numbers of output "0" as different types of circuit boards, and record their corresponding insertion positions; for the circuit boards with the same number of output "0", proceed to the next step identification;

(6)使电路板扫描链上所有器件进入捕获指令状态,从扫描链移出各个边界扫描器件的指令捕获初始值;(6) Make all devices on the scan chain of the circuit board enter the capture command state, and move out the command capture initial value of each boundary scan device from the scan chain;

(7)判断上述各初始值是否相同,如果不同,则将该些电路板标注为不同类型的电路板,并记录其相应的插置位置;如果相同,则继续下列步骤;(7) Judging whether the above-mentioned initial values are the same, if different, then mark these circuit boards as circuit boards of different types, and record their corresponding insertion positions; if they are the same, continue the following steps;

(8)将步骤(1)中该些电路板移出的数据与各个边界扫描器件的ID代码进行匹配,如果各数据的匹配结果不相同,则将该些电路板标注为不同类型的电路板,并记录其相应的插置位置;如果完全相同,则标注为相同类型的电路板,并记录其相应的插置位置。(8) Match the data removed from these circuit boards in step (1) with the ID codes of each boundary scan device, if the matching results of each data are not the same, then mark these circuit boards as circuit boards of different types, And record its corresponding insertion position; if they are exactly the same, mark it as the same type of circuit board, and record its corresponding insertion position.

上述方法中,如果电路板上存在多条扫描链,可将它们串接成一条扫描链进行识别。In the above method, if there are multiple scan chains on the circuit board, they can be concatenated into one scan chain for identification.

上述步骤(2)包括:根据各电路板扫描链的组成信息,得到最大的指令链长度L,依次选通各电路板,将该L个“1”扫描输入指令寄存器链路。The above step (2) includes: obtaining the maximum instruction chain length L according to the composition information of the scanning chains of each circuit board, selecting each circuit board in turn, and scanning the L "1"s into the instruction register link.

上述步骤(1)中,将数据链中的数据全部移出来,其移位次数为N*32,其中N为被测试系统扫描链中最大的器件个数。In the above step (1), all the data in the data chain are shifted out, and the number of shifts is N*32, where N is the maximum number of devices in the scan chain of the system under test.

上述使扫描器进入旁路状态和进入指令捕获状态的顺序可以颠倒,不影响电路板类型的识别。The above sequence of making the scanner enter the bypass state and enter the command capture state can be reversed without affecting the identification of the circuit board type.

本发明技术方案带来的有益效果:The beneficial effects brought by the technical solution of the present invention:

1、根据本发明方法可以自动识别系统中各种电路板的类型,不需要人工干预。1. According to the method of the present invention, the types of various circuit boards in the system can be automatically identified without manual intervention.

2、当电路板安插位置发生变化,该方法也能自动适应。2. When the position of the circuit board is changed, the method can also adapt automatically.

3、实现简单方便,节省操作时间,保证了测试的准确性。3. The implementation is simple and convenient, saves operation time and ensures the accuracy of the test.

附图说明Description of drawings

图1为系统级边界扫描测试结构图;Figure 1 is a system-level boundary-scan test structure diagram;

图2为电路板上的边界扫描链结构示意图;FIG. 2 is a schematic structural diagram of a boundary scan chain on a circuit board;

图3为边界扫描器件的基本结构图;FIG. 3 is a basic structural diagram of a boundary scan device;

图4为边界扫描器件内部控制器的十六状态机示意图;4 is a schematic diagram of sixteen state machines of the internal controller of the boundary scan device;

图5为本发明方法的流程图。Fig. 5 is a flowchart of the method of the present invention.

图符说明:Icon description:

TAP:Test Access Port,测试存取通道;TAP: Test Access Port, test access channel;

TCK:Test ClocK input,测试时钟输入;TCK: Test Clock input, test clock input;

TMS:Test Mode Select input,测试模式输入;TMS: Test Mode Select input, test mode input;

TDI:Test Data Input,测试数据输入;TDI: Test Data Input, test data input;

TDO:Test Data Output,测试数据输出;TDO: Test Data Output, test data output;

TRST:Test Reset,测试复位;TRST: Test Reset, test reset;

eTBC:Embedded Test Bus Controller,嵌入式测试总线控制器;eTBC: Embedded Test Bus Controller, embedded test bus controller;

ASP:Addressable Scan Port,可寻址扫描端口;ASP: Addressable Scan Port, addressable scan port;

PTCK:Primary Test ClocK input,初级测试时钟输入;PTCK: Primary Test ClocK input, primary test clock input;

PTMS:Primary Test Mode Select input,初级测试模式输入;PTMS: Primary Test Mode Select input, primary test mode input;

PTDI:Primary Test Data Input,初级测试数据输入;PTDI: Primary Test Data Input, primary test data input;

PTDO:Primary Test Data Output,初级测试数据输出;PTDO: Primary Test Data Output, primary test data output;

PTRST:Primary Test Reset,初级测试复位;PTRST: Primary Test Reset, primary test reset;

PTCK:Secondary Test ClocK input,次级测试时钟输入;PTCK: Secondary Test ClocK input, secondary test clock input;

PTMS:Secondary Test Mode Select input,次级测试模式输入;PTMS: Secondary Test Mode Select input, secondary test mode input;

PTDI:Secondary Test Data Input,次级测试数据输入;PTDI: Secondary Test Data Input, secondary test data input;

PTDO:Secondary Test Data Output,次级测试数据输出;PTDO: Secondary Test Data Output, secondary test data output;

PTRST:Secondary Test Reset,次级测试复位;PTRST: Secondary Test Reset, secondary test reset;

IR:Instruction Rigister,指令寄存器;IR: Instruction Rigister, instruction register;

DR:Data Rigister,数据寄存器。DR: Data Register, data register.

具体实施方式Detailed ways

本发明的依据是每一块电路板上的扫描链的组成情况一般是不一样的,如果两块电路板上的扫描链组成情况不相同,则将这两块电路板视为不同类的电路板。如果器件个数相同,对应位置的器件类型也相同,排列顺序也相同,则为相同类型的电路板。The basis of the present invention is that the composition of the scan chains on each circuit board is generally different, if the composition of the scan chains on two circuit boards is not the same, then these two circuit boards are regarded as different types of circuit boards . If the number of devices is the same, the types of devices in corresponding positions are also the same, and the order of arrangement is the same, then it is the same type of circuit board.

本发明的实现方法和步骤如下:Implementation method and steps of the present invention are as follows:

步骤1、选通各电路板,获取其扫描链的组成信息,并将数据链路中的全部数据移出来,并保存。通过这一步骤,能够了解到该系统有几类电路板,每一类电路板的边界扫描链是由哪些边界扫描器件连接而成的。这些信息是自动识别电路板的基础。Step 1. Strobe each circuit board, obtain the composition information of its scan chain, remove all data in the data link, and save it. Through this step, it is possible to know how many types of circuit boards the system has, and which boundary scan devices are connected to the boundary scan chain of each type of circuit board. This information is the basis for automatic board identification.

步骤2、如果一个电路板上有多条扫描链,可以将多个扫描链串接为一条扫描链处理。Step 2. If there are multiple scan chains on one circuit board, multiple scan chains can be concatenated into one scan chain for processing.

步骤3、根据各电路板的器件厂商提供的BSDL文件,得到被测系统的最大指令链长度,假设为这个长度为L。然后依次选通各块电路板,将L个“1”扫描输入指令寄存器链路。这样,无论哪一条扫描链,置入的测试指令都为全“1”,也就是旁路指令。在步骤3完成以后,各个电路板内扫描链上的所有器件均进入旁路状态。Step 3. Obtain the maximum command chain length of the system under test according to the BSDL files provided by the component manufacturers of each circuit board, assuming that the length is L. Then each circuit board is selected in turn, and L "1"s are scanned into the instruction register link. In this way, regardless of which scan chain, the inserted test instructions are all "1", that is, bypass instructions. After step 3 is completed, all devices on the scan chain in each circuit board enter the bypass state.

步骤4、根据各类电路板的边界扫描链连接情况,得到各扫描链中最多的器件个数,假设这个个数为N,然后依次选通各块电路板,将N个“1”扫描输入各条扫描链。由特性1,根据从TDO引脚输出的“0”的个数,可以判断该扫描链上器件的个数,有几个“0”就有几个边界扫描器件。如果每类电路板上的边界扫描链所包含的器件个数是不一样的,则根据这个信息就可以判断出每一个位置的电路板属于哪一类电路板。如果存在不同电路板,其板上边界扫描链所包含的器件个数是一样的,则需要继续执行以下识别过程。Step 4. According to the connection status of the boundary scan chains of various circuit boards, obtain the maximum number of devices in each scan chain, assuming that the number is N, and then select each circuit board in turn, and scan and input N "1"s each scan chain. According to characteristic 1, according to the number of "0" output from the TDO pin, the number of devices on the scan chain can be judged. There are several "0"s and there are several boundary scan devices. If the number of devices contained in the boundary scan chain on each type of circuit board is different, then based on this information, it can be determined which type of circuit board each position belongs to. If there are different circuit boards with the same number of devices contained in the boundary scan chains on the boards, you need to continue to perform the following identification process.

步骤5、依次选通各块电路板,并进入指令捕获状态,这样各个边界扫描器件指令寄存器中均预置了一个特定了指令捕获初始值。每一条扫描链都执行L(最大的指令链长度)次指令移位,对输出的L位信号进行分析,由特性2,对照各种类型电路板上的边界扫描链的预期捕获信号进行匹配,如果能匹配上(即对应的每一位数都相同),就能识别该电路板类型。一般情况下,各个边界扫描器件的指令捕获初始值是不一样的,这样很容易将电路板的类型识别出来。如果存在两类电路板,它们的指令捕获初始值也是一致的,则还可以采用以下过程继续进行识别。Step 5, select each circuit board in turn, and enter the command capture state, so that a specific command capture initial value is preset in the command register of each boundary scan device. Each scan chain executes L (maximum instruction chain length) instruction shifts, analyzes the output L-bit signal, and matches the expected capture signal of the boundary scan chain on various types of circuit boards according to feature 2. If they can be matched (that is, each corresponding digit is the same), the type of the circuit board can be identified. In general, the initial value of instruction capture of each boundary scan device is different, so that it is easy to identify the type of circuit board. If there are two types of circuit boards, and their instruction capture initial values are also consistent, the following process can also be used to continue identification.

步骤6、由特性3,可以在电路板上电的时候,就将数据链路中的数据全部移出来。数据移位次数为N*32,其中N为各个扫描链中最大器件个数。对上电以后从TDO移出的数据进行分析,如果能够匹配上相应器件的ID代码,则可以判断出该电路板属于什么类型的电路板。Step 6. According to feature 3, all the data in the data link can be removed when the circuit board is powered on. The number of data shifts is N*32, where N is the maximum number of devices in each scan chain. Analyze the data removed from the TDO after power-on, and if it can match the ID code of the corresponding device, you can determine what type of circuit board the circuit board belongs to.

通过上述步骤,如果所有的识别信息都相同,则可认为是相同类型的电路板。Through the above steps, if all the identification information is the same, it can be considered as the same type of circuit board.

上述各步骤的顺序可以调整,并不影响识别结果。The order of the above steps can be adjusted without affecting the recognition result.

Claims (8)

1. the method for an automatic identification circuit board type comprises the following steps:
(1) each circuit board in the tested system of gating respectively obtains the composition information of its scan chain, the data in the data link all is shifted out, and preserves;
(2) make that all devices enter bypass condition on each circuit board scan chain;
(3) write down the number that shifts out digital " 0 " on each circuit board from scan chain;
(4) it is identical to judge whether to have the number of scan chain output " 0 " of two or more circuit boards, if there is no, then all circuit-under-test plates is labeled as dissimilar circuit boards, and writes down its corresponding plant position; If it is identical to have the number of scan chain output " 0 " of two or more circuit boards, then carry out the following step;
(5) the mutually different circuit board of number that will export " 0 " is labeled as dissimilar circuit boards, and writes down its corresponding plant position; To export the identical circuit board of number of " 0 ", carry out next step identification;
(6) all devices are entered and catch command status, shift out the instruction of each boundary scanning device from scan chain and catch initial value;
(7) judge whether above-mentioned each initial value is identical,, then those circuit boards are labeled as dissimilar circuit boards, and write down its corresponding plant position if different; If identical, then continue the following step;
(8) data that those circuit boards in the step (1) are shifted out and the ID code of each boundary scanning device mate, if the matching result of each data is inequality, then those circuit boards are labeled as dissimilar circuit boards, and write down its corresponding plant position; If identical, then be labeled as the circuit board of same type, and write down its corresponding plant position.
2. the method for a kind of automatic identification circuit board type as claimed in claim 1 is characterized in that: have the multi-strip scanning chain on the ifs circuit plate, they can be concatenated into a scan chain and discern.
3. the method for a kind of automatic identification circuit board type as claimed in claim 1, it is characterized in that: described step (2) comprising: according to the composition information of each circuit board scan chain, obtain maximum command chain length L, each circuit board of gating scans the input instruction chain of registers with L " 1 " successively.
4. the method for a kind of automatic identification circuit board type as claimed in claim 1, it is characterized in that: in the described step (1), data in the data chainning all are shifted out, and its shift count is N*32, and wherein N is a device number maximum in the tested system scan chain.
5. the method for an automatic identification circuit board type comprises the following steps:
(1) each circuit board in the tested system of gating respectively obtains the composition information of its scan chain, the data in the data link all is shifted out, and preserves;
(2) all devices are entered and catch command status, shift out the instruction of each boundary scanning device from scan chain and catch initial value;
(3) judge whether above-mentioned each initial value is identical,, then all circuit-under-test plates are labeled as dissimilar circuit boards, and write down its corresponding plant position if different; If identical, then continue the following step;
(4) make that all devices enter bypass condition on each circuit board scan chain;
(5) write down the number that shifts out digital " 0 " on each circuit board from scan chain;
(6) it is identical to judge whether to have the number of scan chain output " 0 " of two or more circuit boards, if there is no, then those circuit boards is labeled as dissimilar circuit boards, and writes down its corresponding plant position; If it is identical to have the number of scan chain output " 0 " of two or more circuit boards, then carry out the following step;
(7) the mutually different circuit board of number that will export " 0 " is labeled as dissimilar circuit boards, and writes down its corresponding plant position; To export the identical circuit board of number of " 0 ", carry out next step identification;
(8) data that those circuit boards in the step (1) are shifted out and the ID code of each boundary scanning device mate, if the matching result of each data is inequality, then those circuit boards are labeled as dissimilar circuit boards, and write down its corresponding plant position; If identical, then be labeled as the circuit board of same type, and write down its corresponding plant position.
6. the method for a kind of automatic identification circuit board type as claimed in claim 5 is characterized in that: have the multi-strip scanning chain on the ifs circuit plate, they can be concatenated into a scan chain and discern.
7. the method for a kind of automatic identification circuit board type as claimed in claim 5, it is characterized in that: described step (4) comprising: according to the composition information of each circuit board scan chain, obtain maximum command chain length L, each circuit board of gating scans the input instruction chain of registers with L " 1 " successively.
8. the method for a kind of automatic identification circuit board type as claimed in claim 5, it is characterized in that: in the described step (1), data in the data chainning all are shifted out, and its shift count is N*32, and wherein N is a device number maximum in the tested system scan chain.
CNB031503411A 2003-07-28 2003-07-28 A Method for Automatically Recognizing the Type of Circuit Board Expired - Fee Related CN100370264C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB031503411A CN100370264C (en) 2003-07-28 2003-07-28 A Method for Automatically Recognizing the Type of Circuit Board

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB031503411A CN100370264C (en) 2003-07-28 2003-07-28 A Method for Automatically Recognizing the Type of Circuit Board

Publications (2)

Publication Number Publication Date
CN1576865A CN1576865A (en) 2005-02-09
CN100370264C true CN100370264C (en) 2008-02-20

Family

ID=34579794

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB031503411A Expired - Fee Related CN100370264C (en) 2003-07-28 2003-07-28 A Method for Automatically Recognizing the Type of Circuit Board

Country Status (1)

Country Link
CN (1) CN100370264C (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103675531B (en) * 2013-11-27 2017-01-25 华为终端有限公司 Circuit for recognizing classes of devices, circuit board, terminal equipment and signal controller
CN107957698B (en) * 2017-12-01 2024-07-09 华侨大学 Identification circuit and method for peripheral circuit of control module
CN112838668B (en) 2019-11-22 2024-05-17 华为数字能源技术有限公司 A circuit breaker identification method, device and equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5333139A (en) * 1992-12-30 1994-07-26 Intel Corporation Method of determining the number of individual integrated circuit computer chips or the like in a boundary scan test chain and the length of the chain
US5416409A (en) * 1992-03-23 1995-05-16 Ministor Peripherals International Limited Apparatus and method for testing circuit board interconnect integrity
US5644580A (en) * 1993-11-29 1997-07-01 Motorola, Inc. Boundary-scan testable system and method
CN1211323A (en) * 1996-02-06 1999-03-17 三星电子株式会社 Utilizes the Joint Test Action Organization standard I/O state flip test method
JP2000039463A (en) * 1998-07-22 2000-02-08 Nec Corp Mounting board for electronic component and its test method
JP2001305187A (en) * 2000-04-21 2001-10-31 Konica Corp Circuit board and inspection device for the circuit board
US20020138801A1 (en) * 2001-03-01 2002-09-26 Laung-Terng Wang Method and apparatus for diagnosing failures in an integrated circuit using design-for-debug (DFD) techniques
US20030023913A1 (en) * 2001-07-25 2003-01-30 Mitsubishi Denki Kabushiki Kaisha Testing device of semiconductor integrated circuit and test method therefor

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5416409A (en) * 1992-03-23 1995-05-16 Ministor Peripherals International Limited Apparatus and method for testing circuit board interconnect integrity
US5333139A (en) * 1992-12-30 1994-07-26 Intel Corporation Method of determining the number of individual integrated circuit computer chips or the like in a boundary scan test chain and the length of the chain
US5644580A (en) * 1993-11-29 1997-07-01 Motorola, Inc. Boundary-scan testable system and method
CN1211323A (en) * 1996-02-06 1999-03-17 三星电子株式会社 Utilizes the Joint Test Action Organization standard I/O state flip test method
JP2000039463A (en) * 1998-07-22 2000-02-08 Nec Corp Mounting board for electronic component and its test method
JP2001305187A (en) * 2000-04-21 2001-10-31 Konica Corp Circuit board and inspection device for the circuit board
US20020138801A1 (en) * 2001-03-01 2002-09-26 Laung-Terng Wang Method and apparatus for diagnosing failures in an integrated circuit using design-for-debug (DFD) techniques
US20030023913A1 (en) * 2001-07-25 2003-01-30 Mitsubishi Denki Kabushiki Kaisha Testing device of semiconductor integrated circuit and test method therefor

Also Published As

Publication number Publication date
CN1576865A (en) 2005-02-09

Similar Documents

Publication Publication Date Title
US6449755B1 (en) Instruction signature and primary input and primary output extraction within an IEEE 1149.1 compliance checker
US5682392A (en) Method and apparatus for the automatic generation of boundary scan description language files
US6012155A (en) Method and system for performing automatic extraction and compliance checking of an IEEE 1149.1 standard design within a netlist
US7661048B2 (en) Apparatus and method for embedded boundary scan testing
US5079725A (en) Chip identification method for use with scan design systems and scan testing techniques
US7269770B1 (en) AC coupled line testing using boundary scan test methodology
US8266485B2 (en) Test mode soft reset circuitry and methods
US7181705B2 (en) Hierarchical test circuit structure for chips with multiple circuit blocks
US6721923B2 (en) System and method for generating integrated circuit boundary register description data
CN114266210B (en) WGL file processing method and application in chip ATE testing
CN116224042B (en) Method, system, apparatus and medium for generating test vector for testing device under test
JP2001523005A (en) Boundary scanning system with address-dependent instructions
Robinson Why 1149.1 (JTAG) really works
US7047174B2 (en) Method for producing test patterns for testing an integrated circuit
US20040068675A1 (en) Circuit board having boundary scan self-testing function
EP0849678B1 (en) A system and method for testing electronic devices
US7607057B2 (en) Test wrapper including integrated scan chain for testing embedded hard macro in an integrated circuit chip
US20060221842A1 (en) Systems and methods for testing system links
CN100370264C (en) A Method for Automatically Recognizing the Type of Circuit Board
CN101470170B (en) JTAG link test method and apparatus
Maierhofer Hierarchical self-test concept based on the JTAG standard
CA2057363C (en) Arrangement for testing digital circuit devices having bidirectional outputs
US6079040A (en) Module level scan testing
CN112527710B (en) JTAG data capturing and analyzing system
Wondolowski et al. Boundary scan: the internet of test

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080220

Termination date: 20160728