[go: up one dir, main page]

CN101470170B - JTAG link test method and apparatus - Google Patents

JTAG link test method and apparatus Download PDF

Info

Publication number
CN101470170B
CN101470170B CN2008100975970A CN200810097597A CN101470170B CN 101470170 B CN101470170 B CN 101470170B CN 2008100975970 A CN2008100975970 A CN 2008100975970A CN 200810097597 A CN200810097597 A CN 200810097597A CN 101470170 B CN101470170 B CN 101470170B
Authority
CN
China
Prior art keywords
test
data register
jtag link
device under
jtag
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
CN2008100975970A
Other languages
Chinese (zh)
Other versions
CN101470170A (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 CN2008100975970A priority Critical patent/CN101470170B/en
Publication of CN101470170A publication Critical patent/CN101470170A/en
Application granted granted Critical
Publication of CN101470170B publication Critical patent/CN101470170B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

本发明提供一种JTAG链路测试方法及其装置。所述JTAG链路测试方法包括向JTAG链路置入一组全1指令码;根据所述全1指令码,选择1位移位数据寄存器连接在各个待测器件上,且所述移位数据寄存器捕获各个待测器件的状态;将包含特征码的测试向量通过JTAG链路置入所述移位数据寄存器中;移位数据寄存器输出的各个移位数据寄存器捕获的待测器件的状态和测试向量中的特征码;根据所述移位数据寄存器输出的待测器件的状态和特征码,判断JTAG链路是否正常。通过本发明实施例提供的技术方案,能够简单、方便的实现对JTAG链路的测试。

Figure 200810097597

The invention provides a JTAG link testing method and its device. Described JTAG link testing method comprises putting one group of all 1 instruction codes to JTAG link; According to described all 1 instruction codes, select 1 shift data register to be connected on each device under test, and described shift data The register captures the state of each device under test; the test vector containing the signature is placed in the shift data register through the JTAG link; the state and test of the device under test captured by each shift data register output by the shift data register The feature code in the vector; according to the state and the feature code of the device under test output by the shift data register, it is judged whether the JTAG link is normal. Through the technical solution provided by the embodiment of the present invention, the test of the JTAG link can be realized simply and conveniently.

Figure 200810097597

Description

JTAG链路测试方法及其装置 JTAG link testing method and device thereof

技术领域technical field

本发明涉及电子技术领域,特别涉及一种JTAG链路测试方法及其装置。The invention relates to the field of electronic technology, in particular to a JTAG link testing method and a device thereof.

背景技术Background technique

为了解决超大规模集成电路的测试问题,由联合测试行动组(JETA G,JointTest Action Group)提出了边界扫描技术,它通过存在于器件输入输出管脚与内核电路之间的边界扫描单元(BSC,Boundary Scan Description)对器件及其外围电路进行测试,从而提高了器件的可控性和可观察性,解决了现代电子技术发展带来的上述测试问题,可以较方便地完成由现代器件组装的电路板的测试。通常这种测试被称为JTAG链路测试。In order to solve the test problem of VLSI, the Boundary Scan technology was proposed by the Joint Test Action Group (JETAG, JointTest Action Group), which uses the Boundary Scan Cell (BSC, BSC) between the device input and output pins and the core circuit Boundary Scan Description) tests the device and its peripheral circuits, thereby improving the controllability and observability of the device, solving the above-mentioned testing problems brought about by the development of modern electronic technology, and can more conveniently complete the circuit assembled by modern devices board testing. Often this test is called a JTAG link test.

现有技术提供的JTAG链路测试,一般都是基于单板的JTAG链路已经明确,然后使用一组或多组和JTAG链路一一对应的测试向量来进行测试。在JTAG链路测试过程中,从BSC的输入端输入特定的测试向量,然后观察BSC的输出端输出的测试结果,根据所述测试结果判断该JTAG链路是否正常。The JTAG link test provided by the prior art is generally based on the fact that the JTAG link of the single board has been determined, and then one or more sets of test vectors corresponding to the JTAG link are used for testing. During the JTAG link test process, input a specific test vector from the input end of the BSC, then observe the test result output by the output end of the BSC, and judge whether the JTAG link is normal according to the test result.

因此,在进行本发明创造过程中,发明人发现现有技术中至少存在如下问题:现有技术提供的技术方案中,对于测试不同的JTAG链路,需要输入不同的测试向量,因此现有技术提供的JTAG链路测试方法不具备通用性,使用起来不方便。Therefore, in the process of carrying out the invention of the present invention, the inventor has found that there are at least the following problems in the prior art: in the technical solution provided by the prior art, for testing different JTAG links, different test vectors need to be input, so the prior art The provided JTAG link test method is not universal and inconvenient to use.

发明内容Contents of the invention

本发明实施例要解决的技术问题是提供一种JTAG链路测试方法及其装置,能够避免测试不同的JTAG链路需要输入不同的测试向量。The technical problem to be solved by the embodiments of the present invention is to provide a JTAG link testing method and device thereof, which can avoid the need to input different test vectors for testing different JTAG links.

为解决上述技术问题,本发明实施例的目的是通过以下技术方案实现的:In order to solve the above technical problems, the purpose of the embodiments of the present invention is achieved through the following technical solutions:

本发明实施例提供一种JTAG链路测试方法,其包括:The embodiment of the present invention provides a kind of JTAG link testing method, it comprises:

向JTAG链路置入一组全1指令码,所述全1的指令码的长度大于或等于待测试器件的数量;Putting a group of all 1 instruction codes into the JTAG link, the length of the all 1 instruction codes is greater than or equal to the quantity of the device to be tested;

根据所述全1指令码,JTAG链路选择1位移位数据寄存器连接在JTAG链路各个待测器件上,且所述移位数据寄存器捕获各个待测器件的状态;According to the all-1 instruction code, the JTAG link selects a 1-bit shift data register to be connected to each device under test of the JTAG link, and the shift data register captures the state of each device under test;

将包含特征码的测试向量通过JTAG链路置入所述移位数据寄存器中,所述测试向量的长度大于待测试器件的数量;The test vector that will comprise feature code is placed in described shift data register by JTAG link, and the length of described test vector is greater than the quantity of device to be tested;

移位数据寄存器输出的各个移位数据寄存器捕获的待测器件的状态和测试向量中的特征码;The state of the device under test captured by each shift data register output by the shift data register and the signature code in the test vector;

根据所述移位数据寄存器输出的待测器件的状态和特征码,判断JTAG链路是否正常。Judging whether the JTAG link is normal according to the state and the feature code of the device under test output by the shift data register.

本发明实施例还提供一种JTAG链路测试装置,其包括:The embodiment of the present invention also provides a kind of JTAG link testing device, it comprises:

输入单元,用于向待测试的器件置入一组全1指令码,所述全1的指令码的长度大于或等于待测试的器件的数量,以及置入包含特征码的测试向量,所述测试向量的长度大于待测试器件的数量;The input unit is used to insert a group of all-1 instruction codes into the device to be tested, the length of the all-1 instruction code is greater than or equal to the number of devices to be tested, and insert a test vector containing a feature code, said The length of the test vector is greater than the number of devices to be tested;

指令寄存器,用于根据所述输入单元置入的全1指令码,选择1位的移位数据寄存器连接在各个待测器件上;The instruction register is used to select a 1-bit shift data register to be connected to each device under test according to the all-1 instruction code inserted by the input unit;

移位数据寄存器,用于根据输入单元置入的测试向量,输出各个移位数据寄存器捕获的待测器件的状态和测试向量中的特征码;The shift data register is used to output the state of the device under test captured by each shift data register and the feature code in the test vector according to the test vector placed by the input unit;

判断单元,用于根据移位数据寄存器输出的待测器件的状态和特征码,判断JTAG链路是否正常。The judging unit is used for judging whether the JTAG link is normal according to the state and the feature code of the device under test output by the shift data register.

本发明实施例还提供一种通信设备,包括JTAG链路测试装置,用于测试由待测器件组成的JTAG链路,包括:The embodiment of the present invention also provides a communication device, including a JTAG link testing device, for testing a JTAG link composed of devices under test, including:

输入单元,用于置入一组全1指令码,所述全1的指令码的长度大于或等于待测试的器件的数量,以及置入包含特征码的测试向量,所述测试向量的长度大于待测试器件的数量;The input unit is used to insert a group of all-1 instruction codes, the length of the all-1 instruction codes is greater than or equal to the number of devices to be tested, and inserts a test vector that includes a feature code, the length of the test vector is greater than the number of devices under test;

指令寄存器,用于根据所述输入单元置入的全1指令码,选择1位的移位数据寄存器连接在各个待测器件上;The instruction register is used to select a 1-bit shift data register to be connected to each device under test according to the all-1 instruction code inserted by the input unit;

移位数据寄存器,用于根据输入单元置入的测试向量,输出各个移位数据寄存器捕获的待测器件的状态和测试向量中的特征码;The shift data register is used to output the state of the device under test captured by each shift data register and the feature code in the test vector according to the test vector placed by the input unit;

判断单元,用于根据移位数据寄存器输出的待测器件的状态和特征码,判断JTAG链路是否正常。The judging unit is used for judging whether the JTAG link is normal according to the state and the feature code of the device under test output by the shift data register.

通过本发明实施例提供的JTAG链路测试方法及其装置,通过移位数据寄存器捕获各个待测器件的状态,当移位数据寄存器输入含特征码的测试向量时,输出待测器件的状态和测试向量中的特征码,因此根据输出的待测器件的状态和特征码,能够判断JTAG链路是否正常,对于不同的JTAG链路可以输入相同的测试向量,能够简单、方便的实现对JTAG链路的测试。Through the JTAG link testing method and device thereof provided by the embodiments of the present invention, the state of each device under test is captured by the shift data register, and when the shift data register inputs the test vector containing the feature code, the state and the state of the device under test are output. The feature code in the test vector, so according to the output status and feature code of the device under test, it can be judged whether the JTAG link is normal, and the same test vector can be input for different JTAG links, which can realize the JTAG link simply and conveniently. road test.

附图说明Description of drawings

图1为本发明JTAG链路测试方法一个实施例的流程图;Fig. 1 is the flowchart of an embodiment of JTAG link test method of the present invention;

图2为本发明JTAG链路测试装置一个实施例的结构图。FIG. 2 is a structural diagram of an embodiment of a JTAG link testing device of the present invention.

具体实施方式Detailed ways

本发明实施例提供一种JTAG链路测试方法及其装置。为使本发明的技术方案更加清楚明白,以下参照附图并列举实施例,对本发明进一步详细说明。Embodiments of the present invention provide a JTAG link testing method and device thereof. In order to make the technical solution of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and examples.

请参照图1,为本发明JTAG链路测试方法的第一实施例的流程图。本实施例中,假设连接在JTAG链路上的待测试的器件有三个。Please refer to FIG. 1 , which is a flow chart of the first embodiment of the JTAG link testing method of the present invention. In this embodiment, it is assumed that there are three devices to be tested connected to the JTAG link.

JTAG链路测试的具体过程包括:The specific process of JTAG link test includes:

步骤101:向JTAG链路置入一组全1指令码,所述全1的指令码的长度大于或等于待测试的器件的数量;Step 101: inserting a group of all-1 instruction codes into the JTAG link, the length of the all-1 instruction codes is greater than or equal to the number of devices to be tested;

待测试的器件通过JTAG接口串接在一起,形成JTAG链路。其中,每个待测试的器件都连接在对应的JTAG接口上,每个JTAG接口均包括四个输入接口和一个输出接口。其中,四个输入接口分别为:测试数据输入(TDI,TestDate Input)、测试时钟输入(TCK,Test Clock Input)、测试模式选择(TMS,TestMode Selection Input)、测试复位(TRST Test Reset Input),输出接口为测试数据输出(TDO,Test Date Output)。数据通过TDI引脚输入JTAG接口;数据通过TDO引脚从JTAG接口输出;TMS用来设置JTAG接口处于某种特定的测试模式;TRST用于测试复位,低电平有效。The devices to be tested are connected in series through the JTAG interface to form a JTAG link. Wherein, each device to be tested is connected to a corresponding JTAG interface, and each JTAG interface includes four input interfaces and one output interface. Among them, the four input interfaces are: test data input (TDI, TestDate Input), test clock input (TCK, Test Clock Input), test mode selection (TMS, TestMode Selection Input), test reset (TRST Test Reset Input), The output interface is test data output (TDO, Test Date Output). Data is input to the JTAG interface through the TDI pin; data is output from the JTAG interface through the TDO pin; TMS is used to set the JTAG interface in a specific test mode; TRST is used for test reset, active low.

因此,向JTAG链路中的TDI引脚输入一组全1的指令码。对所有器件而言,全1指令码为BYPASS指令。所述全1的指令码需要包含足够多的比特位,能够保证JTAG链路上的待测器件之间的指令寄存器均能移入1个比特位的指令,因此所述全1的指令码的长度要大于或等于待测试的器件的数量。Therefore, input a set of all 1 instruction codes to the TDI pin in the JTAG link. For all devices, the all-ones instruction code is the BYPASS instruction. The instruction code of all 1s needs to contain enough bits to ensure that the instruction registers between the devices under test on the JTAG link can be moved into instructions of 1 bit, so the length of the instruction code of all 1s be greater than or equal to the number of devices to be tested.

步骤102:根据所述全1指令码,选择连接在JTAG链路中的每个JTAG接口的TDI和TDO之间的1位的移位数据寄存器,且所述选择的移位数据寄存器捕获各个待测器件的状态;Step 102: According to the all-1 instruction code, select a 1-bit shift data register connected between TDI and TDO of each JTAG interface in the JTAG link, and the selected shift data register captures each waiting The status of the test device;

待测试器件的输入输出管脚之间连接有边界扫描寄存器单元,通常,边界扫描寄存器单元包括数据寄存器和指令寄存器。指令寄存器用来实现对数据寄存器的控制,数据寄存器用来实现对芯片的输入输出的观察和控制。对于待测试器件的输入管脚,可以通过与之相连的数据寄存器把数据加载到该输入管脚中;对于待测试器件的输出管脚,也可以通过与之相连的数据寄存器捕获(Capture)该输出管脚上的输出信号。A boundary-scan register unit is connected between the input and output pins of the device to be tested. Generally, the boundary-scan register unit includes a data register and an instruction register. The instruction register is used to control the data register, and the data register is used to observe and control the input and output of the chip. For the input pin of the device under test, data can be loaded into the input pin through the data register connected to it; for the output pin of the device under test, the data can also be captured (Capture) through the data register connected to it The output signal on the output pin.

本实施例中,通过BYPASS指令可以选择具有1比特位的移位数据寄存器,因此通过向JTAG链路置入一组足够长的全1指令码,相当于选择1位的移位数据寄存器,连接在JTAG链路中的每个JTAG接口的TDI和TDO之间。所述1位的移位数据寄存器在数据移位过程中捕获的状态是0比特。In this embodiment, the shift data register with 1 bit can be selected through the BYPASS instruction, so by placing a group of sufficiently long all-1 instruction codes into the JTAG link, it is equivalent to selecting a 1-bit shift data register, and connecting Between TDI and TDO of each JTAG interface in the JTAG link. The state captured by the 1-bit shift data register during data shifting is 0 bit.

步骤103:通过JTAG链路向所述移位数据寄存器置入包含特征码的测试向量,所述测试向量的长度大于待测试器件的数量;Step 103: inserting a test vector that includes a feature code into the shift data register through the JTAG link, the length of the test vector is greater than the number of devices to be tested;

所述特征码可以为包含任意非全0的一个或多个比特。如果特征码所包含的比特数大于待测试的器件数量,所述测试向量可以只包含特征码,也可以包含其他比特;如果特征码的所包含的比特数小于待测试的器件数量,可以在测试向量中添加其他比特直到测试向量的长度大于待测试器件的数量。所述测试向量以右移方式排列。例如本实施例中,待测试的器件有三个,假设特征码是0101,则输入JTAG链路的测试向量可以为...1110101、...0000101等等。The feature code may contain any one or more bits that are not all 0s. If the number of bits contained in the signature code is greater than the number of devices to be tested, the test vector can only contain the signature code or other bits; if the number of bits included in the signature code is less than the number of devices to be tested, it can be tested Additional bits are added to the vector until the length of the test vector is greater than the number of devices under test. The test vectors are arranged in a right-shift manner. For example, in this embodiment, there are three devices to be tested, and assuming that the feature code is 0101, the test vectors input to the JTAG link can be ... 1110101, ... 0000101 and so on.

所述测试向量是在TCK的驱动下,通过TDI接口一位一位串行输入JTAG链路中的,也就是说每个TCK的时钟周期,均向TDI接口输入一位测试向量中的比特。由于每个JTAG接口的TDI和TDO之间连接了1个1位的移位数据寄存器,因此所述测试向量在TCK的控制下,最终将会通过TDI接口输入到所述移位数据寄存器中,而所述移位数据寄存器所捕获的待测试器件的状态以及特征码也会被TDO接口一位一位串行输出。The test vectors are input into the JTAG link bit by bit through the TDI interface serially under the drive of the TCK, that is to say, each clock cycle of the TCK inputs a bit in the test vector to the TDI interface. Since a 1-bit shift data register is connected between TDI and TDO of each JTAG interface, the test vector will eventually be input into the shift data register through the TDI interface under the control of TCK. The states and feature codes of the device under test captured by the shift data register will also be serially output bit by bit by the TDO interface.

步骤104:移位数据寄存器输出测试结果,所述测试结果包括各个移位数据寄存器捕获的待测器件的状态和测试向量中的特征码;Step 104: the shift data register outputs the test result, and the test result includes the state of the DUT captured by each shift data register and the signature in the test vector;

下面举例具体描述JTAG链路测试向量输入和测试数据输出的过程:The following example specifically describes the process of JTAG link test vector input and test data output:

本实施例中,有三个待测试的器件连接在JTAG链路上,假设置入JTAG链路的测试向量为...1110101,其中0101为特征码。In this embodiment, there are three devices to be tested connected to the JTAG link, and it is assumed that the test vectors set into the JTAG link are ... 1110101, where 0101 is a feature code.

在全1的指令输入JTAG链路后,移位寄存器从各待测试器件捕获的状态均为0。After the instruction of all 1s is input to the JTAG link, the state captured by the shift register from each device under test is 0.

当TCK第一个时钟周期的触发沿到来时,测试向量的第一个比特1通过TDI接口输入第一个待测试器件对应的移位数据寄存器中,同时,第三个待测试器件对应的移位数据寄存器中的0从TDO接口输出JTAG链路,因此TCK第一个时钟周期里,从JTAG链路输出的比特为0;When the trigger edge of the first clock cycle of TCK arrives, the first bit 1 of the test vector is input into the shift data register corresponding to the first device under test through the TDI interface, and at the same time, the shift data register corresponding to the third device under test The 0 in the bit data register outputs the JTAG link from the TDO interface, so in the first clock cycle of TCK, the bit output from the JTAG link is 0;

当TCK第二个时钟周期的触发沿到来时,测试向量的第二个比特0通过TDI接口输入第一个待测试器件对应的移位数据寄存器中,同时,第一个待测试器件中原先存储的1被移位到第二个待测试器件对应的移位数据寄存器中,第二个待测试器件中原先存储的0被移位到第二个待测试器件对应的移位数据寄存器中,第三个待测试器件对应的移位数据寄存器中的0从TDO接口输出JTAG链路,因此TCK第二个时钟周期里,从JTAG链路输出的比特为0;When the trigger edge of the second clock cycle of TCK arrives, the second bit 0 of the test vector is input into the shift data register corresponding to the first device under test through the TDI interface. 1 is shifted into the shift data register corresponding to the second device under test, and the 0 originally stored in the second device under test is shifted into the shift data register corresponding to the second device under test. The 0 in the shift data register corresponding to the three devices under test outputs the JTAG link from the TDO interface, so in the second clock cycle of TCK, the bit output from the JTAG link is 0;

当TCK第三个时钟周期的触发沿到来时,测试向量的第三个比特1通过TDI接口输入第一个待测试器件对应的移位数据寄存器中,同时,第一个待测试器件中原先存储的0被移位到第二个待测试器件对应的移位数据寄存器中,第二个待测试器件中原先存储的1被移位到第三个待测试器件对应的移位数据寄存器中,第三个待测试器件对应的移位数据寄存器中的0从TDO接口输出JTAG链路,因此TCK第三个时钟周期里,从JTAG链路输出的比特为0;When the trigger edge of the third clock cycle of TCK arrives, the third bit 1 of the test vector is input into the shift data register corresponding to the first device under test through the TDI interface. 0 is shifted into the shift data register corresponding to the second device under test, and the 1 originally stored in the second device under test is shifted into the shift data register corresponding to the third device under test. The 0 in the shift data register corresponding to the three devices under test outputs the JTAG link from the TDO interface, so in the third clock cycle of TCK, the bit output from the JTAG link is 0;

当TCK第四个时钟周期的触发沿到来时,测试向量的第四个比特0通过TDI接口输入第一个待测试器件对应的移位数据寄存器中,同时,第一个待测试器件中原先存储的1被移位到第二个待测试器件对应的移位数据寄存器中,第二个待测试器件中原先存储的0被移位到第三个待测试器件对应的移位数据寄存器中,第三个待测试器件对应的移位数据寄存器中的1从TDO接口输出JTAG链路,因此TCK第三个时钟周期里,从JTAG链路输出的比特为1;When the trigger edge of the fourth clock cycle of TCK arrives, the fourth bit 0 of the test vector is input into the shift data register corresponding to the first device under test through the TDI interface. 1 is shifted into the shift data register corresponding to the second device under test, and the 0 originally stored in the second device under test is shifted into the shift data register corresponding to the third device under test. 1 in the shift data register corresponding to the three devices under test outputs the JTAG link from the TDO interface, so in the third clock cycle of TCK, the bit output from the JTAG link is 1;

以此类推,经过7个TCK周期后,从JTAG链路输出的比特依次为0101000。By analogy, after 7 TCK cycles, the bits output from the JTAG link are 0101000 in turn.

步骤105:根据所述移位数据寄存器输出的待测器件的状态和特征码,判断JTAG链路是否正常。Step 105: Determine whether the JTAG link is normal according to the status and feature code of the DUT output by the shift data register.

例如,输出的测试结果中包含完整的特征码,且偏移了3个0,链路上待测时器件数目为3个,因此可以判断待测试器件均正常。For example, the output test result contains a complete feature code, and is offset by three 0s, and the number of devices under test on the link is 3, so it can be judged that the devices under test are all normal.

请参照图2,为本发明JTAG链路测试装置一个实施例的结构图。所述JTAG链路测试装置包括输入单元21、指令寄存器22、移位数据寄存器23,测试时钟输入单元24、判断单元25。Please refer to FIG. 2 , which is a structural diagram of an embodiment of a JTAG link testing device of the present invention. The JTAG link testing device includes an input unit 21 , an instruction register 22 , a shift data register 23 , a test clock input unit 24 , and a judging unit 25 .

所述输入单元21,用于向待测试的器件置入一组全1指令码,所述全1的指令码的长度大于或等于待测试的器件的数量,以及置入包含特征码的测试向量,所述测试向量的长度大于待测试器件的数量。The input unit 21 is used to insert a group of all-1 instruction codes into the device to be tested, the length of the all-1 instruction code is greater than or equal to the number of devices to be tested, and insert a test vector containing a feature code , the length of the test vector is greater than the number of devices to be tested.

所述特征码可以为包含任意非全0的一个或多个比特。如果特征码所包含的比特数大于待测试的器件数量,所述测试向量可以只包含特征码,也可以包含其他比特;如果特征码的所包含的比特数小于待测试的器件数量,可以在测试向量中添加其他比特直到测试向量的长度大于待测试器件的数量。The feature code may contain any one or more bits that are not all 0s. If the number of bits contained in the signature code is greater than the number of devices to be tested, the test vector can only contain the signature code or other bits; if the number of bits included in the signature code is less than the number of devices to be tested, it can be tested Additional bits are added to the vector until the length of the test vector is greater than the number of devices under test.

所述选择单元22,用于根据所述接收单元21接收的全1指令码,选择1位的移位数据寄存器连接在各个待测器件上。The selection unit 22 is configured to select a 1-bit shift data register to be connected to each device under test according to the all-ones instruction code received by the receiving unit 21 .

对所有器件而言,全1指令码为BYPASS指令。通过BYPASS指令可以选择具有1比特位的移位数据寄存器,因此通过向JTAG测试装置置入一组足够长的全1指令码,相当于选择1位的移位数据寄存器,连接在JTAG测试装置上。For all devices, the all-ones instruction code is the BYPASS instruction. The shift data register with 1 bit can be selected through the BYPASS instruction, so by placing a group of sufficiently long all-1 instruction codes into the JTAG test device, it is equivalent to selecting a 1-bit shift data register and connecting it to the JTAG test device .

所述移位数据寄存器23,用于根据输入单元置入的测试向量,输出各个移位数据寄存器捕获的待测器件的状态和测试向量中的特征码。The shift data register 23 is used to output the state of the DUT captured by each shift data register and the feature code in the test vector according to the test vector placed by the input unit.

所述测试时钟单元24,用于产生测试时钟;所述输入单元21具体为第一输入单元,用于置入一组全1指令码,所述全1的指令码的长度大于或等于待测试的器件的数量,以及置入包含特征码的测试向量,所述测试向量的长度大于待测试器件的数量,并按照所述测试时钟,向所述移位数据寄存器23依次输入所述测试向量中的比特,所述移位数据寄存器23具体为第一移位数据寄存器,用于按照所述测试时钟,将待测器件的状态以及特征码作为测试结果依次输出。The test clock unit 24 is used to generate a test clock; the input unit 21 is specifically the first input unit, which is used to insert a group of all 1 instruction codes, and the length of the all 1 instruction codes is greater than or equal to the length to be tested The quantity of the device, and put into the test vector that comprises feature code, the length of described test vector is greater than the quantity of the device to be tested, and according to described test clock, input in the described test vector to described shift data register 23 successively bits, the shift data register 23 is specifically a first shift data register, and is used to sequentially output the state and signature of the device under test as test results according to the test clock.

在全1的指令输入JTAG链路后,移位寄存器从各待测试器件捕获的状态均为0。After the instruction of all 1s is input to the JTAG link, the state captured by the shift register from each device under test is 0.

所述判断单元25,用于根据移位数据寄存器输出的待测器件的状态和特征码,判断JTAG链路是否正常。The judging unit 25 is used for judging whether the JTAG link is normal according to the state and the feature code of the DUT output by the shift data register.

另外,本发明实施例还提供一种通信设备,包括JTAG链路测试装置,用于测试由待测器件组成的JTAG链路。In addition, an embodiment of the present invention also provides a communication device, including a JTAG link testing device, used for testing a JTAG link composed of devices under test.

所述JTAG链路测试装置包括:Described JTAG link testing device comprises:

输入单元,用于置入一组全1指令码,所述全1的指令码的长度大于或等于待测试的器件的数量,以及置入包含特征码的测试向量,所述测试向量的长度大于待测试器件的数量;The input unit is used to insert a group of all-1 instruction codes, the length of the all-1 instruction codes is greater than or equal to the number of devices to be tested, and inserts a test vector that includes a feature code, the length of the test vector is greater than the number of devices under test;

指令寄存器,用于根据所述输入单元置入的全1指令码,选择1位的移位数据寄存器连接在各个待测器件上;The instruction register is used to select a 1-bit shift data register to be connected to each device under test according to the all-1 instruction code inserted in the input unit;

移位数据寄存器,用于捕获各个移位数据寄存器待测器件的状态和测试向量中的特征码;The shift data register is used to capture the state of the device under test of each shift data register and the signature in the test vector;

判断单元,用于根据移位数据寄存器捕获的待测器件的状态和特征码,判断JTAG链路是否正常。The judging unit is used for judging whether the JTAG link is normal according to the state and feature code of the device under test captured by the shift data register.

所述JTAG链路测试装置还可以进一步包括:Described JTAG link testing device can also further comprise:

测试时钟单元,用于产生测试时钟;a test clock unit, configured to generate a test clock;

所述输入单元具体为第一接收单元,用于置入一组全1指令码,所述全1的指令码的长度大于或等于待测试的器件的数量,以及置入包含特征码的测试向量,所述测试向量的长度大于待测试器件的数量,并按照所述测试时钟单元产生的测试时钟,向所述移位数据寄存器依次输入所述测试向量中的比特,The input unit is specifically a first receiving unit, which is used to insert a set of all-1 instruction codes, the length of the all-1 instruction codes is greater than or equal to the number of devices to be tested, and inserts a test vector containing a feature code , the length of the test vector is greater than the number of devices to be tested, and according to the test clock generated by the test clock unit, sequentially input the bits in the test vector to the shift data register,

所述移位数据寄存器具体为第一移位数据寄存器,进一步用于按照所述测试时钟,依次输出待测器件的状态以及特征码。The shift data register is specifically a first shift data register, which is further used to sequentially output the states and feature codes of the device under test according to the test clock.

通过本发明实施例提供的JTAG链路测试方法及其装置,通过移位数据寄存器捕获各个待测器件的状态,当移位数据寄存器输入含特征码的测试向量时,输出待测器件的状态和测试向量中的特征码,因此根据输出的待测器件的状态和特征码,能够判断JTAG链路是否正常,对于不同的JTAG链路可以输入相同的测试向量,能够简单、方便的实现对JTAG链路的测试。Through the JTAG link testing method and device thereof provided by the embodiments of the present invention, the state of each device under test is captured by the shift data register, and when the shift data register inputs the test vector containing the feature code, the state and the state of the device under test are output. The feature code in the test vector, so according to the output status and feature code of the device under test, it can be judged whether the JTAG link is normal, and the same test vector can be input for different JTAG links, which can realize the JTAG link simply and conveniently. road test.

以上对本发明所提供的一种JTAG链路测试方法及其装置进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明所揭示的技术方案;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。A kind of JTAG link test method and its device provided by the present invention have been introduced in detail above, applied specific example in this paper and explained the principle and implementation mode of the present invention, and the description of the above embodiment is only used to help understand the present invention The technical solution disclosed by the invention; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and application scope. In summary, the content of this specification should not be understood as Limitations on the Invention.

Claims (4)

1. a JTAG JTAG link test method is used to test the JTAG link of being made up of device under test, it is characterized in that, comprising:
Insert one group of complete 1 order code to the JTAG link, the length of described complete 1 order code is more than or equal to the quantity of tested device;
According to described complete 1 order code, JTAG link selection 1 bit shift data register is connected on each device under test of JTAG link, and the state of described each device under test of shifted data registers capture;
According to test clock, the bit that will comprise in the test vector of condition code is imported in each shifted data register successively by the JTAG link, and the length of described test vector is greater than the quantity of tested device;
According to test clock, export the state of the device under test of catching in each shifted data register and the condition code in the test vector successively;
According to the state and the condition code of the device under test of described shifted data register output, judge whether the JTAG link is normal.
2. JTAG link test method according to claim 1 is characterized in that, described condition code is to comprise one or more bits of non-complete 0 arbitrarily.
3. a JTAG JTAG link test device is used to test the JTAG link of being made up of device under test, it is characterized in that, comprising:
The test clock unit is used to produce test clock;
Input block, be used for inserting one group of complete 1 order code to device to be tested, the length of described complete 1 order code is more than or equal to the quantity of device to be tested, and insert the test vector that comprises condition code, the length of described test vector is greater than the quantity of tested device, and the test clock that produces according to described test clock unit, import bit in the described test vector successively to the shifted data register;
Order register is used for complete 1 order code inserted according to described input block, selects 1 shifted data register to be connected on each device under test;
The shifted data register is used for the test vector of inserting according to input block, according to described test clock, exports the state of device under test of each shifted data registers capture and the condition code in the test vector successively;
Judging unit is used for state and condition code according to the device under test of shifted data register output, judges whether the JTAG link is normal.
4. a communication facilities comprises JTAG link test device, is used to test the JTAG link of being made up of device under test, it is characterized in that, comprising:
The test clock unit is used to produce test clock;
Input block, be used for inserting one group of complete 1 order code to device to be tested, the length of described complete 1 order code is more than or equal to the quantity of device to be tested, and insert the test vector that comprises condition code, the length of described test vector is greater than the quantity of tested device, and the test clock that produces according to described test clock unit, import bit in the described test vector successively to the shifted data register;
Order register is used for complete 1 order code inserted according to described input block, selects 1 shifted data register to be connected on each device under test;
The shifted data register is used for the test vector of inserting according to input block, according to described test clock, exports the state of device under test of each shifted data registers capture and the condition code in the test vector successively;
Judging unit is used for state and condition code according to the device under test of shifted data register output, judges whether the JTAG link is normal.
CN2008100975970A 2007-12-27 2008-05-15 JTAG link test method and apparatus Expired - Fee Related CN101470170B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100975970A CN101470170B (en) 2007-12-27 2008-05-15 JTAG link test method and apparatus

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN200710301117 2007-12-27
CN200710301117.3 2007-12-27
CN2008100975970A CN101470170B (en) 2007-12-27 2008-05-15 JTAG link test method and apparatus

Publications (2)

Publication Number Publication Date
CN101470170A CN101470170A (en) 2009-07-01
CN101470170B true CN101470170B (en) 2011-04-13

Family

ID=40827820

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100975970A Expired - Fee Related CN101470170B (en) 2007-12-27 2008-05-15 JTAG link test method and apparatus

Country Status (1)

Country Link
CN (1) CN101470170B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102645609B (en) * 2012-03-30 2014-12-10 上海斐讯数据通信技术有限公司 Joint test action group (JTAG) link circuit test device and test method of JTAG chain circuit test device
CN104237666B (en) * 2013-06-21 2017-05-03 京微雅格(北京)科技有限公司 Method for testing devices in series connection chain of joint test action group
CN112994927B (en) * 2021-02-04 2022-11-25 海光信息技术股份有限公司 Retrieval method and retrieval device for daisy chain topology
CN114360632A (en) * 2022-03-18 2022-04-15 中国科学院微电子研究所 Solid-state hard disk chip detection method and device including solid-state hard disk main control chip
CN117007950A (en) * 2022-04-29 2023-11-07 华为技术有限公司 Method, apparatus, device, medium and program product for configuring IJTAG circuitry

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5648973A (en) * 1996-02-06 1997-07-15 Ast Research, Inc. I/O toggle test method using JTAG
CN1474272A (en) * 2003-06-19 2004-02-11 Ut斯达康(中国)有限公司 Method and equipment for detecting single plate by JTAG
CN1633060A (en) * 2003-12-24 2005-06-29 华为技术有限公司 A clock signal testing method and device
CN1661385A (en) * 2004-02-26 2005-08-31 联想(北京)有限公司 JTAG module and debug method applying the module
CN1763556A (en) * 2004-10-20 2006-04-26 华为技术有限公司 A JTAG chain automatic connection system and its realization method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5648973A (en) * 1996-02-06 1997-07-15 Ast Research, Inc. I/O toggle test method using JTAG
CN1474272A (en) * 2003-06-19 2004-02-11 Ut斯达康(中国)有限公司 Method and equipment for detecting single plate by JTAG
CN1633060A (en) * 2003-12-24 2005-06-29 华为技术有限公司 A clock signal testing method and device
CN1661385A (en) * 2004-02-26 2005-08-31 联想(北京)有限公司 JTAG module and debug method applying the module
CN1763556A (en) * 2004-10-20 2006-04-26 华为技术有限公司 A JTAG chain automatic connection system and its realization method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
李建国.JTAG边界扫描单元的改进方案.<信阳师范学院学报(自然科学版) >.2005,第18卷(第3期),329-331.
陈新武
陈新武;李建国.JTAG边界扫描单元的改进方案.<信阳师范学院学报(自然科学版) >.2005,第18卷(第3期),329-331. *

Also Published As

Publication number Publication date
CN101470170A (en) 2009-07-01

Similar Documents

Publication Publication Date Title
CN101147077B (en) Simultaneous core testing in multi-core integrated circuits
US7352169B2 (en) Testing components of I/O paths of an integrated circuit
US7269770B1 (en) AC coupled line testing using boundary scan test methodology
US8601333B2 (en) Method of and an arrangement for testing connections on a printed circuit board
KR101592042B1 (en) Methods for analyzing scan chains, and for determining numbers or locations of hold time faults in scan chains
US6070252A (en) Method and apparatus for interactive built-in-self-testing with user-programmable test patterns
US11041905B2 (en) Combinatorial serial and parallel test access port selection in a JTAG interface
US5768289A (en) Dynamically controlling the number of boundary-scan cells in a boundary-scan path
US8266485B2 (en) Test mode soft reset circuitry and methods
EP1275183A1 (en) Method and apparatus for providing optimized access to circuits for debug, programming, and test
US6721923B2 (en) System and method for generating integrated circuit boundary register description data
US20130139015A1 (en) Methods and apparatus for testing multiple-ic devices
CN101470170B (en) JTAG link test method and apparatus
CN116881067B (en) Method, device, equipment and storage medium for generating VCD file
EP0849678B1 (en) A system and method for testing electronic devices
CN104049203A (en) Pin with boundary scanning and testing function and integrated circuit with same
CN109196481B (en) Integrated circuit and operation method thereof
CN100370430C (en) A Boundary Scan Chain Self-Test Method
US7581149B2 (en) Scan chain extracting method, test apparatus, circuit device, and scan chain extracting program
CN102183727A (en) Boundary scanning test method with error detection function
US20090217113A1 (en) Utilizing serializer-deserializer transmit and receive pads for parallel scan test data
US20030093733A1 (en) Modeling custom scan flops in level sensitive scan design
Devadze et al. Fast extended test access via JTAG and FPGAs
US20190064271A1 (en) Sequential test access port selection in a jtag interface
US11662382B1 (en) Method and apparatus for contemporary test time reduction for JTAG

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: 20110413