CN107345997B - A Test Method for IP Core Based on Test Shell - Google Patents
A Test Method for IP Core Based on Test Shell Download PDFInfo
- Publication number
- CN107345997B CN107345997B CN201610289946.3A CN201610289946A CN107345997B CN 107345997 B CN107345997 B CN 107345997B CN 201610289946 A CN201610289946 A CN 201610289946A CN 107345997 B CN107345997 B CN 107345997B
- Authority
- CN
- China
- Prior art keywords
- test
- test data
- shell
- data
- core
- 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.)
- Active
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 904
- 238000010998 test method Methods 0.000 title description 6
- 238000000034 method Methods 0.000 claims description 47
- 238000007599 discharging Methods 0.000 claims 1
- 238000005259 measurement Methods 0.000 description 21
- 230000007246 mechanism Effects 0.000 description 19
- 230000008569 process Effects 0.000 description 17
- 238000010586 diagram Methods 0.000 description 10
- 230000000630 rising effect Effects 0.000 description 10
- 238000006243 chemical reaction Methods 0.000 description 5
- 238000013461 design Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 240000007320 Pinus strobus Species 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000005284 excitation Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 238000013519 translation Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/28—Testing of electronic circuits, e.g. by signal tracer
- G01R31/2851—Testing of integrated circuits [IC]
- G01R31/2855—Environmental, reliability or burn-in testing
Landscapes
- Engineering & Computer Science (AREA)
- Environmental & Geological Engineering (AREA)
- Computer Hardware Design (AREA)
- Microelectronics & Electronic Packaging (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Tests Of Electronic Circuits (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
本申请提供了一种基于测试壳的IP核测试方法,从IP核测试图形中提取扫描链扫描输入SI和初级输入PI,根据测试指令,通过测试壳输入端口装载将SI测试数据装载到IP核的扫描链,将PI测试数据通过测试壳的WBR单元施加到IP核的输入端口,并卸载由SI测试数据经过IP核的内部逻辑电路后转换得到的SO测试数据以及PO测试数据,将SO测试数据与IP核测试图形中的SO图形进行测量比对,并将PO测试数据与IP核测试图形中的PO图形进行测量比较。因此能够使用IP核的测试图形,得到基于测试壳的IP核测试数据,并与测试图形中的相应图形进行比对。
The present application provides an IP core testing method based on a test shell, extracting a scan chain scan input SI and a primary input PI from an IP core test pattern, and loading the SI test data into the IP core through the test shell input port loading according to a test instruction The scan chain, applies the PI test data to the input port of the IP core through the WBR unit of the test shell, and unloads the SO test data and PO test data converted from the SI test data after passing through the internal logic circuit of the IP core. The data is measured and compared with the SO pattern in the IP core test pattern, and the PO test data is measured and compared with the PO pattern in the IP core test pattern. Therefore, it is possible to use the test pattern of the IP core to obtain the test data of the IP core based on the test case, and compare it with the corresponding pattern in the test pattern.
Description
技术领域technical field
本申请涉及片上系统(System-on-Chip,SoC)领域,尤其涉及一种基于测试壳的IP核测试方法。The present application relates to the field of System-on-Chip (SoC), and in particular, to an IP core testing method based on a test case.
背景技术Background technique
随着集成电路工艺的进步和人们对集成电路性能以及上市时间要求的不断提高,片上系统技术已经成为当今集成电路的发展趋势和技术主流。整个SoC芯片的测试开发需要各个知识产权(Intellectual Property,IP)核的测试信息,这要求IP提供者向SoC集成者提供关于IP的内部可测性设计(Design For Test,DFT)策略、测试模式和相应的测试协议、故障覆盖率及测试图形等。在基于扫描链的测试图形中,测试数据按规定的测试协议完成相应的测试建立、测试数据加载、卸载、捕获等操作。With the advancement of integrated circuit technology and the continuous improvement of people's requirements for integrated circuit performance and time-to-market, system-on-chip technology has become the development trend and mainstream technology of today's integrated circuits. The test development of the entire SoC chip requires the test information of each intellectual property (Intellectual Property, IP) core, which requires the IP provider to provide the SoC integrator with the internal design for test (Design For Test, DFT) strategy and test mode of the IP And the corresponding test protocol, fault coverage and test patterns. In the scan chain-based test pattern, the test data completes corresponding test establishment, test data loading, unloading, capturing and other operations according to the prescribed test protocol.
如图1所示,IP核测试图形包括测试时钟CLK、测试复位RSTN、IP核内部扫描链扫描使能(Scan Enable,SE)、IP核内部扫描链扫描输入(Scan Input,SI)、IP核内部扫描链扫描输出(Scan Output,SO)、IP核初级输入(Primary Input,PI)、IP核初级输出(PrimaryOutput,PO)等测试数据。阶段(1)扫描输入即进行测试图形的扫描链测试数据装载,阶段(5)扫描输出即进行测试图形的扫描链测试数据卸载,此时扫描使能信号有效,对于第一个测试图形,不存在扫描链测试数据卸载,对于第二个直至最后一个测试图形,在扫描链测试数据的移入的同时进行对上次扫描链捕获的测试结果输出和测量过程,对于最后一个测试图形,仅进行扫描链测试数据的卸载;阶段(2)并行测量指在所有初级输入施加测试图形的输入,同时在所有初级输出进行测试图形的输出及测试数据的测量对比;阶段(3)并行捕获是指将内部逻辑的测试结果捕获(Capture)到扫描链中,从而方便在下次的移位操作中将捕获的测试数据卸载,此时,扫描使能信号无效,对于第一个测试图形,不存在寄存器对内部逻辑输出的捕获过程;阶段(4)链首输出即对测试壳扫描链扫描输出的第一个测试数据进行测量对比(图1中所有测量操作发生在测试时钟脉冲之后,因此,在下一个测试图形扫描输入开始之前应先进行链首输出)。As shown in Figure 1, the IP core test pattern includes test clock CLK, test reset RSTN, IP core internal scan chain scan enable (Scan Enable, SE), IP core internal scan chain scan input (Scan Input, SI), IP core Internal scan chain scan output (Scan Output, SO), IP core primary input (Primary Input, PI), IP core primary output (Primary Output, PO) and other test data. Stage (1) scan input is to load the scan chain test data of the test pattern, and stage (5) scan output is to unload the scan chain test data of the test pattern. At this time, the scan enable signal is valid. For the first test pattern, it is not. There is scan chain test data unloading. For the second to the last test pattern, the test result output and measurement process captured by the last scan chain are performed at the same time as the scan chain test data is shifted in. For the last test pattern, only scan is performed. Unloading of chain test data; Phase (2) Parallel measurement refers to applying test pattern input to all primary inputs, and simultaneously performing test pattern output and test data measurement comparison at all primary outputs; Phase (3) Parallel capture refers to internal The logical test results are captured into the scan chain, so that the captured test data can be unloaded in the next shift operation. At this time, the scan enable signal is invalid. For the first test pattern, there is no internal register pair. Logic output capture process; stage (4) chain head output is to measure and compare the first test data scanned by the test shell scan chain (all measurement operations in Figure 1 occur after the test clock pulse, so in the next test pattern The first-of-chain output should be done before the scan input starts).
在IP核外围环绕基于IEEE1500标准的测试壳后,所有初级输入和初级输出都对应一个WBR单元(cell),无法在初级输入和初级输出直接控制和观测IP核,因此,原本由IP核初级输入端口施加的测试数据将改由测试壳中的测试壳串行端口(Wrapper Serial Port,WSP)或测试壳并行端口(Wrapper Parallel Port,WPP)施加,同样,原本由IP核初级输出端口输出的测试数据也改由WSP或WPP输出,并进行测量对比。因此,图1所示的测试协议以及测试数据的次序将发生变化,可见,如何使用IP核的测试图形,对设置有测试壳的IP核进行测试,成为目前亟待解决的问题。After the IP core is surrounded by a test case based on the IEEE1500 standard, all primary inputs and primary outputs correspond to a WBR cell (cell), and the IP core cannot be directly controlled and observed at the primary input and primary output. Therefore, the primary input of the IP core is originally The test data applied by the port will be applied by the test case serial port (Wrapper Serial Port, WSP) or the test case parallel port (Wrapper Parallel Port, WPP) in the test case. Similarly, the test originally output by the primary output port of the IP core The data is also output by WSP or WPP, and measured and compared. Therefore, the test protocol and the order of the test data shown in FIG. 1 will change. It can be seen that how to use the test pattern of the IP core to test the IP core provided with the test shell has become an urgent problem to be solved at present.
发明内容SUMMARY OF THE INVENTION
本申请提供了一种基于测试壳的IP核测试方法,目的在于解决如何使用IP核的测试图形,对设置有测试壳的IP核进行测试的问题。The present application provides an IP core testing method based on a test case, which aims to solve the problem of how to use the test pattern of the IP core to test the IP core provided with the test case.
为了实现上述目的,本申请提供了以下技术方案:In order to achieve the above purpose, the application provides the following technical solutions:
一种基于测试壳的IP核测试方法,包括:A test shell-based IP core testing method, comprising:
从IP核测试图形中提取扫描链扫描输入SI测试数据和初级输入PI;Extract the scan chain scan input SI test data and primary input PI from the IP core test pattern;
根据测试指令,通过测试壳输入端口装载所述SI测试数据和所述PI测试数据,其中,所述SI测试数据通过所述输入端口后进入所述IP核的扫描链,所述PI测试数据通过所述输入端口后,被所述测试壳的WBR单元施加到所述IP核的输入端口;According to the test instruction, the SI test data and the PI test data are loaded through the input port of the test shell, wherein the SI test data enters the scan chain of the IP core after passing through the input port, and the PI test data passes through After the input port, it is applied to the input port of the IP core by the WBR unit of the test shell;
根据所述测试指令,通过所述测试壳的输出端口,卸载SO测试数据和PO测试数据,所述SO测试数据由所述SI测试数据经过所述IP核的内部逻辑电路后转换得到,所述PO测试数据由所述PI测试数据经过所述IP核的内部逻辑电路后转换得到;According to the test instruction, the SO test data and PO test data are unloaded through the output port of the test case, and the SO test data is converted from the SI test data after passing through the internal logic circuit of the IP core. The PO test data is obtained by converting the PI test data through the internal logic circuit of the IP core;
将所述SO测试数据与所述IP核测试图形中的SO图形进行测量比对,并将所述PO测试数据与所述IP核测试图形中的PO图形进行测量比对,其中,所述SO测试数据由所述IP核的扫描链输出到所述输出端口,所述PO测试数据被所述WBR单元从所述IP核的输出端口捕获到所述测试壳的输出端口。The SO test data is measured and compared with the SO pattern in the IP core test pattern, and the PO test data is measured and compared with the PO pattern in the IP core test pattern, wherein the SO Test data is output to the output port by the scan chain of the IP core, and the PO test data is captured by the WBR unit from the output port of the IP core to the output port of the test shell.
可选地,在所述通过测试壳输入端口装载所述SI测试数据和所述PI测试数据之前,还包括:Optionally, before loading the SI test data and the PI test data through the input port of the test case, the method further includes:
向所述测试壳中移入测试指令;moving test instructions into the test shell;
所述测试指令为串行测试存取,所述通过测试壳输入端口装载所述SI测试数据和所述PI测试数据包括:The test instruction is serial test access, and the loading of the SI test data and the PI test data through the input port of the test case includes:
通过所述测试壳中的测试壳串行输入WSI输入所述SI测试数据和所述PI测试数据。The SI test data and the PI test data are input through the test case serial input WSI in the test case.
可选地,所述通过测试壳中的测试壳串行输入WSI输入所述SI测试数据和所述PI测试数据包括:Optionally, the inputting of the SI test data and the PI test data by serially inputting the WSI through the test case in the test case includes:
在IP核内部扫描链扫描使能SE信号和测试壳寄存器移位控制信号ShiftWR有效,其他测试壳串行控制信号无效的情况下,根据WBR的数据通路装载所述SI测试数据和所述PI测试数据,靠近测试壳串行输出WSO的WBR单元的测试数据最先装载,靠近测试壳串行输入WSI的WBR单元的测试数据最后装载,装载的测试数据包括:Noutput个无关值、Nff个所述SI测试数据和Ninput个所述PI测试数据,其中,Noutput为IP核功能输出端口的数目,Nff为IP核内部扫描链扫描单元的数目,Ninput为IP核功能输入端口的数目。In the case that the scan enable SE signal of the scan chain in the IP core and the shift control signal ShiftWR of the test shell register are valid, and the serial control signals of other test shells are invalid, the SI test data and the PI test are loaded according to the data path of the WBR. Data, the test data of the WBR unit close to the test shell serial output WSO is loaded first, and the test data of the WBR unit close to the test shell serial input WSI is loaded last, and the loaded test data includes: N output irrelevant values, N ff Described SI test data and N input described PI test data, wherein, N output is the number of IP core function output ports, N ff is the number of scan chain scan units in the IP core, and N input is the number of IP core function input ports. number.
可选地,所述通过测试壳中的测试壳串行输入WSI输入所述SI测试数据和所述PI测试数据包括:Optionally, the inputting of the SI test data and the PI test data by serially inputting the WSI through the test case in the test case includes:
在IP核内部扫描链扫描使能SE信号和测试壳寄存器移位控制信号ShiftWR有效,其他测试壳串行控制信号无效的情况下,根据WBR的数据通路装载所述SI测试数据和所述PI测试数据,靠近测试壳串行输出WSO的WBR单元的测试数据最先装载,靠近测试壳串行输入WSI的WBR单元的测试数据最后装载,装载的测试数据包括:(Nmax-Nimax)个无关值、Nff个所述SI测试数据和Ninput个所述PI测试数据,其中,Nmax为所述IP核最长扫描链的长度,为所述IP核最长输入扫描链的长度。In the case that the scan enable SE signal of the scan chain in the IP core and the shift control signal ShiftWR of the test shell register are valid, and the serial control signals of other test shells are invalid, the SI test data and the PI test are loaded according to the data path of the WBR. Data, the test data of the WBR unit close to the test shell serial output WSO is loaded first, and the test data of the WBR unit close to the test shell serial input WSI is loaded last. The loaded test data includes: (N max -N imax ) irrelevant value, Nff of the SI test data and Ninput of the PI test data, wherein, Nmax is the length of the longest scan chain of the IP core, Enter the length of the longest scan chain for the IP core.
可选地,所述通过所述测试壳的输出端口,卸载SO测试数据和PO测试数据包括:Optionally, the unloading of SO test data and PO test data through the output port of the test shell includes:
如果所述测试指令为串行测试存取,通过所述测试壳中的测试壳串行输出WSO卸载所述SO测试数据和所述PO测试数据。If the test command is a serial test access, the SO test data and the PO test data are unloaded through the WSO serially output from the test shell in the test shell.
可选地,所述通过测试壳中的测试壳串行输出WSO卸载所述SO测试数据和所述PO测试数据包括:Optionally, the serially outputting the WSO unloading the SO test data and the PO test data through the test shell in the test shell includes:
在IP核内部扫描链扫描使能SE信号和测试壳寄存器移位控制信号ShiftWR有效,其他测试壳串行控制信号无效的情况下,根据WBR的数据通路卸载所述SO测试数据和所述PO测试数据,靠近测试壳串行输出WSO的WBR单元的测试数据最先卸载,靠近测试壳串行输入WSI的WBR单元的测试数据最后卸载,卸载的测试数据包括:(Noutput-1)个所述PO测试数据、Nff个所述SO测试数据和Ninput个无关值。Under the circumstance that the scan enable SE signal of the scan chain in the IP core and the shift control signal ShiftWR of the test shell register are valid, and the serial control signals of other test shells are invalid, the SO test data and the PO test are unloaded according to the data path of the WBR. Data, the test data of the WBR unit close to the test shell serial output WSO is unloaded first, and the test data of the WBR unit close to the test shell serial input WSI is unloaded last, and the unloaded test data includes: (N output -1) PO test data, Nff of the SO test data, and N input irrelevant values.
可选地,所述通过测试壳中的测试壳串行输出WSO卸载所述SO测试数据和所述PO测试数据包括:Optionally, the serially outputting the WSO unloading the SO test data and the PO test data through the test shell in the test shell includes:
在IP核内部扫描链扫描使能SE信号和测试壳寄存器移位控制信号ShiftWR有效,其他测试壳串行控制信号无效的情况下,根据WBR的数据通路卸载所述SO测试数据和所述PO测试数据,靠近测试壳串行输出WSO的WBR单元的测试数据最先卸载,靠近测试壳串行输入WSI的WBR单元的测试数据最后卸载,卸载的测试数据包括:(Noutput-1)个所述PO测试数据、Nff个所述SO测试数据和个无关值,其中,为所述IP核最长输出扫描链的长度。Under the circumstance that the scan enable SE signal of the scan chain in the IP core and the shift control signal ShiftWR of the test shell register are valid, and the serial control signals of other test shells are invalid, the SO test data and the PO test are unloaded according to the data path of the WBR. Data, the test data of the WBR unit close to the test shell serial output WSO is unloaded first, and the test data of the WBR unit close to the test shell serial input WSI is unloaded last, and the unloaded test data includes: (N output -1) PO test data, Nff of the SO test data and an irrelevant value, where, is the length of the longest output scan chain of the IP core.
可选地,在所述通过测试壳输入端口装载所述SI测试数据和所述PI测试数据之前,还包括:Optionally, before loading the SI test data and the PI test data through the input port of the test case, the method further includes:
向所述测试壳中移入测试指令;moving test instructions into the test shell;
所述测试指令为并行测试存取,所述通过测试壳输入端口装载所述SI测试数据和所述PI测试数据包括:The test instruction is parallel test access, and the loading of the SI test data and the PI test data through the input port of the test case includes:
通过所述测试壳中的测试壳并行输入WPI输入所述SI测试数据和所述PI测试数据。The SI test data and the PI test data are input through WPI in parallel through the test case in the test case.
可选地,所述通过测试壳中的测试壳并行输入WPI输入所述SI测试数据和所述PI测试数据包括:Optionally, the inputting of the SI test data and the PI test data by inputting the WPI in parallel through the test case in the test case includes:
在IP核内部扫描链扫描使能SE信号和测试壳并行扫描使能信号WPSE有效的情况下,根据WBR的数据通路装载所述SI测试数据和所述PI测试数据,靠近测试壳并行输出WPO的WBR单元的测试数据最先装载,靠近测试壳并行输入WPI的WBR单元的测试数据最后装载,第n条并行扫描链装载的测试数据包括:个无关值和个所述PI测试数据/所述SI测试数据,其中,Nwpp-max为最长并行扫描链的长度,为第n条并行扫描链输入扫描链的长度。Under the condition that the scan chain scan enable SE signal and the test shell parallel scan enable signal WPSE in the IP core are valid, the SI test data and the PI test data are loaded according to the data path of the WBR, and the parallel output of the WPO near the test shell The test data of the WBR unit is loaded first, and the test data of the WBR unit input to the WPI in parallel near the test shell is loaded last. The test data loaded by the nth parallel scan chain includes: irrelevant values and the PI test data/the SI test data, where N wpp-max is the length of the longest parallel scan chain, Enter the length of the scan chain for the nth parallel scan chain.
可选地,所述通过测试壳中的测试壳并行输入WPI输入所述SI测试数据和所述PI测试数据包括:Optionally, the inputting of the SI test data and the PI test data by inputting the WPI in parallel through the test case in the test case includes:
在IP核内部扫描链扫描使能SE信号和测试壳并行扫描使能信号WPSE有效的情况下,根据WBR的数据通路装载所述SI测试数据和所述PI测试数据,靠近测试壳并行输出WPO的WBR单元的测试数据最先装载,靠近测试壳并行输入WPI的WBR单元的测试数据最后装载,第n条并行扫描链装载的测试数据包括:个无关值和个所述PI测试数据和所述SI测试数据。Under the condition that the scan chain scan enable SE signal and the test shell parallel scan enable signal WPSE in the IP core are valid, the SI test data and the PI test data are loaded according to the data path of the WBR, and the parallel output of the WPO near the test shell The test data of the WBR unit is loaded first, and the test data of the WBR unit input to the WPI in parallel near the test shell is loaded last. The test data loaded by the nth parallel scan chain includes: irrelevant values and the PI test data and the SI test data.
可选地,所述通过所述测试壳的输出端口,卸载SO测试数据和PO测试数据包括:Optionally, the unloading of SO test data and PO test data through the output port of the test shell includes:
如果所述测试指令为并行测试存取,通过测试壳中的测试壳并行输出WPO卸载所述SO测试数据和所述PO测试数据。If the test command is a parallel test access, the SO test data and the PO test data are unloaded through the WPO in parallel output from the test shell in the test shell.
可选地,所述通过测试壳中的测试壳并行输出WPO卸载所述SO测试数据和所述PO测试数据包括:Optionally, the parallel output of WPO unloading the SO test data and the PO test data through the test shell in the test shell includes:
在IP核内部扫描链扫描使能SE信号和测试壳并行扫描使能信号WPSE有效的情况下,根据WBR的数据通路卸载所述SO测试数据和所述PO测试数据,靠近测试壳并行输出WPO的WBR单元的测试数据最先卸载,靠近测试壳并行输入WPI的WBR单元的测试数据最后卸载,第n条并行扫描链卸载的测试数据包括:个所述PI测试数据、所述SI测试数据和 个无关值,其中,为第n条并行扫描链输出扫描链的长度。Under the condition that the scan chain scan enable SE signal and the test shell parallel scan enable signal WPSE in the IP core are valid, the SO test data and the PO test data are unloaded according to the data path of the WBR, and the WPO test data is output in parallel near the test shell. The test data of the WBR unit is unloaded first, and the test data of the WBR unit input to the WPI in parallel near the test shell is unloaded last. The test data unloaded by the nth parallel scan chain includes: the PI test data, the SI test data and an irrelevant value, where, Output the length of the scan chain for the nth parallel scan chain.
可选地,所述通过测试壳中的测试壳并行输出WPO卸载所述SO测试数据和所述PO测试数据包括:Optionally, the parallel output of WPO unloading the SO test data and the PO test data through the test shell in the test shell includes:
在IP核内部扫描链扫描使能SE信号和测试壳并行扫描使能WPSE信号有效的情况下,根据WBR的数据通路卸载所述SO测试数据和所述PO测试数据,靠近测试壳并行输出WPO的WBR单元的测试数据最先卸载,靠近测试壳并行输入WPI的WBR单元的测试数据最后卸载,第n条并行扫描链卸载的测试数据包括:个所述PO测试数据和所述SO测试数据和个无关值。When the internal scan chain scan enable SE signal of the IP core and the parallel scan enable WPSE signal of the test shell are valid, the SO test data and the PO test data are unloaded according to the data path of the WBR, and the WPO test data is output in parallel near the test shell. The test data of the WBR unit is unloaded first, and the test data of the WBR unit input to the WPI in parallel near the test shell is unloaded last. The test data unloaded by the nth parallel scan chain includes: the PO test data and the SO test data and an irrelevant value.
本申请所述的基于测试壳的IP核测试方法,从IP核测试图形中提取扫描链扫描输入SI和初级输入PI,根据测试指令,通过测试壳输入端口装载将所述SI测试数据装载到IP核的扫描链,将所述PI测试数据通过所述测试壳的WBR单元施加到所述IP核的输入端口,并根据测试指令,卸载由所述SI测试数据经过所述IP核的内部逻辑电路后转换得到的SO测试数据以及PO测试数据,将所述SO测试数据与所述IP核测试图形中的SO图形进行测量比对,并将所述PO测试数据与所述IP核测试图形中的PO图形进行测量比较,其中,所述SO测试数据由所述IP核的扫描链输出到所述输出端口,所述PO测试数据被所述WBR单元从所述IP核的输出端口捕获到所述测试壳的输出端口。可见,本申请所述的方法,能够使用IP核的测试图形,得到基于测试壳的IP核测试数据,并与测试图形中的相应图形进行比对。In the IP core testing method based on the test shell described in this application, the scan chain scan input SI and the primary input PI are extracted from the IP core test pattern, and the SI test data is loaded into the IP through the test shell input port loading according to the test instruction. The scan chain of the core applies the PI test data to the input port of the IP core through the WBR unit of the test shell, and unloads the internal logic circuit of the IP core through the SI test data according to the test instruction After converting the obtained SO test data and PO test data, measure and compare the SO test data with the SO pattern in the IP core test pattern, and compare the PO test data with the SO pattern in the IP core test pattern. The PO graph is measured and compared, wherein the SO test data is output to the output port by the scan chain of the IP core, and the PO test data is captured by the WBR unit from the output port of the IP core to the output port. Test case output port. It can be seen that the method described in this application can use the test pattern of the IP core to obtain the IP core test data based on the test case, and compare it with the corresponding pattern in the test pattern.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1为IP核测试图形的示意图;Fig. 1 is the schematic diagram of IP core test pattern;
图2为本申请实施例公开的一种基于测试壳的IP核测试方法的流程图;2 is a flowchart of an IP core testing method based on a test shell disclosed in an embodiment of the application;
图3为一种IP核测试壳的示意图;Fig. 3 is a kind of schematic diagram of IP core test shell;
图4为本申请实施例公开的又一种基于测试壳的IP核测试方法的流程图;4 is a flowchart of another IP core testing method based on a test shell disclosed by an embodiment of the application;
图5为本申请实施例公开的通过WSP向WIR移入测试指令的测试协议的图;5 is a diagram of a test protocol for moving a test instruction into a WIR through a WSP disclosed in an embodiment of the present application;
图6a)为本申请实施例公开的根据IP核测试图形转换得到的加装测试壳后的IP核测试图形的示意图;Fig. 6 a) the schematic diagram of the IP core test pattern after the installation of the test shell obtained according to the IP core test pattern conversion disclosed by the embodiment of the application;
图6b)为本申请实施例公开的IP核测试图形的示意图;6b) is a schematic diagram of an IP core test pattern disclosed in an embodiment of the application;
图7为又一种IP核测试壳的示意图;Fig. 7 is the schematic diagram of another kind of IP core test case;
图8为本申请实施例公开的又一种基于测试壳的IP核测试的流程图;8 is a flowchart of another IP core test based on a test shell disclosed by an embodiment of the application;
图9为从IP核测试图形转换为测试壳的测试图形的示意图;Fig. 9 is the schematic diagram that is converted into the test pattern of test shell from IP core test pattern;
图10为本申请实施例公开的产生使能信号的电路的示意图;10 is a schematic diagram of a circuit for generating an enable signal disclosed in an embodiment of the present application;
图11为本申请实施例公开的方法反映的信号示意图;11 is a schematic diagram of a signal reflected by a method disclosed in an embodiment of the present application;
图12为本申请实施例公开的方法反映的信号示意图。FIG. 12 is a schematic diagram of a signal reflected by a method disclosed in an embodiment of the present application.
具体实施方式Detailed ways
IEEE Std 1500标准规定的IP核测试壳结构由测试壳边界寄存器(WrapperBoundary Register,WBR)、测试壳旁路寄存器(Wrapper Bypass Register,WBY)、测试壳指令寄存器(Wrapper Instruction Register,WIR)、测试壳串行端口(Wrapper SerialPort,WSP)和可选的测试壳并行端口(Wrapper Parallel Port,WPP)组成。The IP core test shell structure specified by the IEEE Std 1500 standard consists of a test shell boundary register (WrapperBoundary Register, WBR), a test shell bypass register (Wrapper Bypass Register, WBY), a test shell instruction register (Wrapper Instruction Register, WIR), a test shell Serial port (Wrapper SerialPort, WSP) and optional test shell parallel port (Wrapper Parallel Port, WPP) composition.
其中,WBR是数据寄存器,用于提供测试激励和接收测试响应。WBR由串行连接的测试壳边界寄存器单元(WBR Cell)组成,WBR Cell能实现测试激励的施加和测试响应的捕获,从而实现对嵌入式IP核的控制和观察。嵌入式IP核的每一个输入及输出端口都有一个WBR Cell,但测试访问机制(Test Access Mechanism,TAM)端口和模拟端口可以不设置WBRCell。IEEE Std 1500只定义了两种类型的WBR Cell:输入WBR Cell和输出WBR Cell。WBRCell提供4个输入输出端口:测试输入端口(Cell Test Input,CTI)、测试输出端口(CellTest Output,CTO)、功能输入端口(Cell Functional Input,CFI)、功能输出端口(CellFunctional Output,CFO)CTI和CTO组成移位路径(CTI→CTO),CFI和CFO组成功能路径(CFI→CFO)。每个WBR Cell至少包括一个存储单元。所有WBR Cell的移位路径首尾相连组成测试壳扫描链,连接在测试壳串行输入(Wrapper Serial Input,WSI)和测试壳串行输出(Wrapper Serial Output,WSO)之间。对于输入单元(input cell),CFI和测试壳功能输入相连,CFO和IP核输入相连,对于输出单元(output cell),CFI和IP核输出相连,CFO和测试壳功能输出相连。WBR Cell只要达到IEEE1500规定的模式及行为即可,因而没有固定的结构。Among them, WBR is the data register, which is used to provide test stimulus and receive test response. The WBR consists of serially connected test case boundary register units (WBR Cell), which can realize the application of test excitation and the capture of test response, so as to realize the control and observation of the embedded IP core. Each input and output port of the embedded IP core has a WBR Cell, but the test access mechanism (Test Access Mechanism, TAM) port and the analog port can be set without WBRCell. IEEE Std 1500 defines only two types of WBR Cells: Input WBR Cell and Output WBR Cell. WBRCell provides 4 input and output ports: Cell Test Input (CTI), Test Output (CTO), Cell Functional Input (CFI), and CellFunctional Output (CFO) CTI and CTO form a shift path (CTI→CTO), and CFI and CFO form a functional path (CFI→CFO). Each WBR Cell includes at least one storage unit. The shift paths of all WBR Cells are connected end to end to form a test case scan chain, which is connected between the test case serial input (Wrapper Serial Input, WSI) and the test case serial output (Wrapper Serial Output, WSO). For the input cell, the CFI is connected to the test case function input, the CFO is connected to the IP core input, and for the output cell, the CFI is connected to the IP core output, and the CFO is connected to the test case function output. As long as the WBR Cell reaches the mode and behavior specified by IEEE1500, there is no fixed structure.
WBY是数据寄存器,在测试壳串行输入WSI和测试壳串行输出WSO之间提供一条支路。当没有其他数据寄存器可选的时候,它可以由当前的测试壳指令选择充当默认的数据寄存器,为其他IP核的测试提供一条测试数据快速通过的路径。WBY is the data register and provides a branch between the test case serial input WSI and the test case serial output WSO. When no other data register is available, it can be selected by the current test shell instruction as the default data register, providing a fast path for test data to pass through the test of other IP cores.
WIR用于控制测试壳的操作,WIR通过测试壳串行输入WSI和测试封装壳串行控制(Wrapper Serial Control,WSC)将指令串行地送入测试壳电路。并根据载入的指令决定当前的测试模式是核外测试还是内部测试,决定访问方式是串行访问还是并行访问,决定被连接在测试壳串行输入WSI与测试壳串行输出WSO之间的寄存器是WIR、WBR还是WBY,最后,指令寄存器负责根据载入的指令产生测试壳控制信号来控制WBY的移位、WBR Cell的移位、捕获、更新、传输操作、以及选通器的选择。The WIR is used to control the operation of the test case, and the WIR sends instructions serially into the test case circuit through the test case serial input WSI and the test case serial control (Wrapper Serial Control, WSC). And according to the loaded instructions, it determines whether the current test mode is out-of-core test or internal test, determines whether the access mode is serial access or parallel access, and determines whether it is connected between the test shell serial input WSI and the test shell serial output WSO. Whether the register is WIR, WBR or WBY, finally, the instruction register is responsible for generating the test shell control signal according to the loaded instruction to control the shift of WBY, the shift of WBR Cell, capture, update, transfer operations, and the selection of strobes.
WSP是测试壳基本端口,用于测试壳寄存器中指令和数据输入输出,除了测试壳串行输入输出(WSI、WSO)以外,它还包含控制所有测试壳寄存器的测试封装壳串行控制(WSC),WSC由6条强制信号线和2条可选信号线组成,包括:复位信号(WRSTN)、时钟信号(WRCK)、指令寄存器选择信号(SelectWIR)、寄存器移位控制信号(ShiftWR)、寄存器捕获信号(CaptureWR)、寄存器更新信号(UpdateWR)、寄存器变换信号(TransferDR,可选)、辅助时钟信号(AUXCK,可选)。当SelectWIR有效时,WIR连接在WSI和WSO之间。当SelectWIR无效时,WBR或WBY连接在WSI和WSO之间。WSP is the basic port of the test shell, which is used for the input and output of instructions and data in the test shell registers. In addition to the test shell serial input and output (WSI, WSO), it also contains the test shell serial control (WSC) that controls all the test shell registers. ), WSC consists of 6 mandatory signal lines and 2 optional signal lines, including: reset signal (WRSTN), clock signal (WRCK), instruction register selection signal (SelectWIR), register shift control signal (ShiftWR), register Capture signal (CaptureWR), register update signal (UpdateWR), register conversion signal (TransferDR, optional), auxiliary clock signal (AUXCK, optional). When SelectWIR is active, WIR is connected between WSI and WSO. When SelectWIR is inactive, WBR or WBY is connected between WSI and WSO.
可选WPP提供对测试壳的并行访问,它由测试壳并行输入(Wrapper ParallelInput,WPI)、测试壳并行输出(Wrapper Parallel Output,WPO)和测试壳并行控制(Wrapper Parallel Control,WPC)组成。它可以将串行测试壳扫描链分割成多条并行扫描链,节约测试时间。WPP宽度越大,测试时间越短,但是所需的测试管脚资源也越多,所以应该在测试时间和测试资源折中考虑。The optional WPP provides parallel access to the test shell, which consists of the test shell parallel input (Wrapper Parallel Input, WPI), the test shell parallel output (Wrapper Parallel Output, WPO) and the test shell parallel control (Wrapper Parallel Control, WPC). It can split the serial test case scan chain into multiple parallel scan chains, saving test time. The larger the WPP width, the shorter the test time, but the more test pin resources are required, so it should be considered as a trade-off between test time and test resources.
本实施例所述的测试图形的转换方法,目的在于将IP核级的测试图形转换为测试壳级的测试图形,以对嵌入测试壳中的IP核进行测试。The purpose of the test pattern conversion method described in this embodiment is to convert the test pattern at the IP core level into the test pattern at the test shell level, so as to test the IP core embedded in the test shell.
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
本申请实施例公开的一种基于测试壳的IP核测试方法,如图2所示,包括以下步骤:A test shell-based IP core testing method disclosed in the embodiment of the present application, as shown in FIG. 2 , includes the following steps:
S201:从IP核测试图形中提取SI和PI测试数据;S201: Extract SI and PI test data from the IP core test graph;
如图1所示,IP核测试图形包括测试时钟CLK、测试复位RSTN、IP核内部扫描链扫描使能(Scan Enable,SE)、IP核内部扫描链扫描输入(Scan Input,SI)、IP核内部扫描链扫描输出(Scan Output,SO)、初级输入(Primary Input,PI)、初级输出(Primary Output,PO)等测试数据。而加装测试壳后,原本用于访问SI、SO、PI、PO信号的端口被嵌入测试壳内部不能访问,只有用于CLK、RSTN、SE的输入端能被访问。另外,IEEE1500测试壳强制支持串行端口(WSP)访问,可选支持并行端口(WPP)访问。因此,基于测试壳的IP核测试首先要从IP核测试图形中提取SI和PI测试数据,然后根据测试协议将IP核测试图形转换为包含CLK、RSTN、SE、WSP和WPP的测试图形。As shown in Figure 1, the IP core test pattern includes test clock CLK, test reset RSTN, IP core internal scan chain scan enable (Scan Enable, SE), IP core internal scan chain scan input (Scan Input, SI), IP core Internal scan chain scan output (Scan Output, SO), primary input (Primary Input, PI), primary output (Primary Output, PO) and other test data. After the test case is installed, the ports originally used to access the SI, SO, PI, and PO signals are embedded in the test case and cannot be accessed, and only the input terminals for CLK, RSTN, and SE can be accessed. In addition, the IEEE1500 test case mandates serial port (WSP) access and optional parallel port (WPP) access. Therefore, the IP core test based on the test shell should first extract the SI and PI test data from the IP core test pattern, and then convert the IP core test pattern into a test pattern including CLK, RSTN, SE, WSP and WPP according to the test protocol.
S202:根据测试指令,向测试壳中装载SI测试数据和PI测试数据;S202: load the SI test data and the PI test data into the test shell according to the test instruction;
其中,所述SI测试数据通过所述输入端口后进入所述IP核的扫描链,所述PI测试数据通过所述输入端口后,被所述测试壳的WBR单元施加到所述IP核的输入端口。The SI test data enters the scan chain of the IP core after passing through the input port, and the PI test data is applied to the input of the IP core by the WBR unit of the test shell after passing through the input port port.
S203:根据所述测试指令,通过所述测试壳的输出端口,卸载SO测试数据和PO测试数据;S203: unload SO test data and PO test data through the output port of the test shell according to the test instruction;
其中,所述SO测试数据由所述SI测试数据经过所述IP核的内部逻辑电路后转换得到,所述PO测试数据由所述PI测试数据经过所述IP核的内部逻辑电路后转换得到。The SO test data is converted from the SI test data after passing through the internal logic circuit of the IP core, and the PO test data is converted from the PI test data after passing through the internal logic circuit of the IP core.
S204:通过卸载获取到SO测试数据后,将所述SO测试数据与所述IP核测试图形中的SO图形进行测量比对;S204: after the SO test data is obtained by unloading, measure and compare the SO test data with the SO pattern in the IP core test pattern;
其中,所述SO测试数据由所述IP核的扫描链输出到所述输出端口。需要说明的是,在实际应用中,从输出端口捕获到SO测试数据时,即执行与IP核测试图形中的SO图形的比对。Wherein, the SO test data is output to the output port by the scan chain of the IP core. It should be noted that, in practical applications, when the SO test data is captured from the output port, the comparison with the SO pattern in the IP core test pattern is performed.
S205:通过卸载获取到PO测试数据后,将所述PO测试数据与所述IP核测试图形中的PO图形进行测量比对。S205: After the PO test data is acquired by uninstalling, measure and compare the PO test data with the PO pattern in the IP core test pattern.
其中,所述PO测试数据被所述WBR单元从所述IP核的输出端口捕获到所述测试壳的输出端口。需要说明的是,在实际应用中,从输出端口捕获到PO测试数据时,即执行与IP核测试图形中的PO图形的比对。Wherein, the PO test data is captured by the WBR unit from the output port of the IP core to the output port of the test shell. It should be noted that, in practical applications, when the PO test data is captured from the output port, the comparison with the PO pattern in the IP core test pattern is performed.
具体地,测试指令的不同,会导致测试壳装载及卸载测试数据的端口的不同,下面从串行和并行测试指令,分别对上述步骤进行详细的说明。Specifically, different test instructions will lead to different ports for loading and unloading test data in the test shell. The above steps will be described in detail below from the serial and parallel test instructions respectively.
本申请实施例公开的又一种基于测试壳的IP核测试方法,本实施例中,以串行测试指令、并以图3所示的IP核测试壳为例进行说明,图3中,该IP核功能输入端口的数目为Ninput=4(不含时钟CLK、复位RSTN、扫描输入SI、扫描使能SE),IP核功能输出端口的数目为Noutput=4(不含扫描输出SO),IP核内部有2条扫描链,其中,扫描链0上扫描寄存器的数目为扫描链1上扫描寄存器的数目为因此,IP核内部扫描链扫描单元的数目为Nff=8。IP核内部扫描链和测试壳扫描链串联后的长度为Nwsp-max=Noutput+Nff+Ninput。(图3中粗线代表串行内部测试的数据通路,图3中未画出并行外部测试的数据通路。)Another IP core testing method based on a test shell disclosed in the embodiment of the present application is described. In this embodiment, serial test instructions and the IP core test shell shown in FIG. The number of IP core function input ports is N input = 4 (excluding clock CLK, reset RSTN, scan input SI, scan enable SE), and the number of IP core function output ports is N output = 4 (excluding scan output SO) , there are 2 scan chains inside the IP core, among which, the number of scan registers on
如图4所示,本实施例所述方法包括以下步骤:As shown in Figure 4, the method described in this embodiment includes the following steps:
S401:从IP核测试图形中提取SI、PI测试数据、SO和PO待比对测试数据;S401: Extract SI, PI test data, SO and PO test data to be compared from the IP core test graph;
其中,SO和PO待比对测试数据即为IP核测试图形中的SO和PO测试图形,这里可以先提取出来,用于后续的比对使用。为了避免混淆,将这里提取出来的SO测试数据称为SO待比对测试数据,PO测试数据称为PO待比对测试数据。Among them, the SO and PO test data to be compared are the SO and PO test patterns in the IP core test pattern, which can be extracted here for subsequent comparison use. In order to avoid confusion, the SO test data extracted here is referred to as the SO test data to be compared, and the PO test data is referred to as the PO test data to be compared.
S402:向测试壳中移入测试指令;S402: Move the test command into the test shell;
本实施例中,通过测试壳串行端口(Wrapper Serial Port,WSP)向WIR移入测试指令。通过WSP向WIR移入测试指令的测试协议如图5所示。图5中,IP核信号包括:时钟信号(CLK)、复位信号(RSTN)、扫描使能信号(SE),测试壳信号包括:复位信号(WRSTN)、时钟信号(WRCK)、指令寄存器选择信号(SelectWIR)、寄存器移位控制信号(ShiftWR)、寄存器捕获控制信号(CaptureWR)、寄存器更新控制信号(UpdateWR)、测试壳串行输入信号(WSI)。在向WIR移入测试指令期间,IP核信号均无效。在第1个WRCK下降沿,SelectWIR有效,表示选中WIR连接在WSI和WSO之间;在第2个WRCK下降沿,ShiftWR有效,表示下一个WRCK上升沿可以开始WIR移位操作;在第3个WRCK上升沿到第6个WRCK上升沿,测试指令从WSI向WSO移位,WIR移位操作过程中,SelectWIR和ShiftWR保持为1,测试指令宽度由用户自定义,本实施例中,测试指令宽度为4;在第7个WRCK上升沿,UpdateWR有效,表示下一个WRCK下降沿开始WIR更新操作,更新后的测试指令可以确定当前测试存取机制;在第8个WRCK下降沿,SelectWIR无效,表示选中WBR或WBY连接在WSI和WSO之间,测试指令移入过程结束。In this embodiment, a test command is moved into the WIR through a wrapper serial port (Wrapper Serial Port, WSP). Figure 5 shows the test protocol for moving test instructions into the WIR through the WSP. In Figure 5, the IP core signals include: clock signal (CLK), reset signal (RSTN), scan enable signal (SE), and the test shell signals include: reset signal (WRSTN), clock signal (WRCK), instruction register selection signal (SelectWIR), register shift control signal (ShiftWR), register capture control signal (CaptureWR), register update control signal (UpdateWR), test shell serial input signal (WSI). During the shift into the test command to the WIR, the IP core signals are invalid. At the first falling edge of WRCK, SelectWIR is valid, indicating that the selected WIR is connected between WSI and WSO; at the second falling edge of WRCK, ShiftWR is valid, indicating that the next rising edge of WRCK can start the WIR shift operation; at the third From the rising edge of WRCK to the sixth rising edge of WRCK, the test command is shifted from WSI to WSO. During the WIR shift operation, SelectWIR and ShiftWR remain at 1, and the test command width is user-defined. In this embodiment, the test command width It is 4; at the 7th WRCK rising edge, UpdateWR is valid, indicating that the next WRCK falling edge starts the WIR update operation, and the updated test command can determine the current test access mechanism; at the 8th WRCK falling edge, SelectWIR is invalid, indicating that Select WBR or WBY to connect between WSI and WSO, and the test command shift-in process ends.
S403:确定所述测试指令为串行测试存取;S403: Determine that the test instruction is a serial test access;
S404:通过测试壳中的测试壳串行输入(Wrapper Serial Input,WSI),向测试壳中装载SI测试数据和PI测试数据;S404: Load the SI test data and the PI test data into the test shell through the test shell serial input (Wrapper Serial Input, WSI) in the test shell;
具体地,在扫描输入阶段,SE和ShiftWR有效,SelectWIR、CaptureWR和UpdateWR无效,在每个WRCK上升沿,根据WBR的数据通路装载所述SI测试数据和所述PI测试数据,靠近测试壳串行输出WSO的WBR单元的测试数据最先装载,靠近测试壳串行输入WSI的WBR单元的测试数据最后装载。装载的测试数据包括:Noutput个无关值(可以是0,也可以是1,下同)、Nff个扫描输入测试数据和Ninput个初级输入测试数据,其中,Noutput为IP核功能输出端口的数目,Nff为IP核内部扫描链扫描单元的数目,Ninput为IP核功能输入端口的数目。该阶段完成测试图形的扫描输入测试数据和初级输入测试数据装载。Specifically, in the scan input stage, SE and ShiftWR are valid, SelectWIR, CaptureWR, and UpdateWR are invalid, and at each rising edge of WRCK, the SI test data and the PI test data are loaded according to the data path of WBR, close to the test shell serial The test data of the WBR unit of the output WSO is loaded first, and the test data of the WBR unit of the serial input WSI close to the test shell is loaded last. The loaded test data includes: N output irrelevant values (can be 0 or 1, the same below), N ff scan input test data and N input primary input test data, where N output is the IP core function output The number of ports, N ff is the number of scan chain scan units in the IP core, and N input is the number of IP core function input ports. This stage completes the scan input test data of the test pattern and the loading of the preliminary input test data.
本实施例中,扫描输入阶段即图6b)中第3周期到第18周期,装置的测试数据包括:Noutput个无关值个SI0测试数据个SI1测试数据→Ninput个PI测试数据。其中,SI0为IP核内部扫描链0的扫描输入,SI1为IP核内部扫描链1的扫描输入,PI为初级输入。In this embodiment, the scan input stage is the third cycle to the eighteenth cycle in Fig. 6b). The test data of the device include: N output irrelevant values SI0 test data SI1 test data → N input PI test data. Among them, SI0 is the scan input of the
S405:将IP核的初级输出捕获到测试壳扫描链;S405: Capture the primary output of the IP core to the test shell scan chain;
具体地,在并行测量阶段,SelectWIR、ShiftWR、SE和UpdateWR无效,CaptureWR信号有效,表示在WRCK上升沿可以开始捕获操作,将IP核的初级输出捕获到测试壳扫描链输出WBR单元,从而在下次移位操作中将捕获的初级输出测试数据沿扫描链移出,但是CLK无时钟脉冲,从而保证初级输出值在捕获过程中保持不变。Specifically, in the parallel measurement stage, SelectWIR, ShiftWR, SE and UpdateWR are invalid, and the CaptureWR signal is valid, indicating that the capture operation can be started at the rising edge of WRCK, and the primary output of the IP core is captured to the test shell scan chain output WBR unit, so that the next time In the shift operation, the captured primary output test data is shifted out along the scan chain, but the CLK has no clock pulse, thereby ensuring that the primary output value remains unchanged during the capture process.
本实施例中,并行测量阶段即图6b)中第19周期。In this embodiment, the parallel measurement stage is the 19th cycle in Fig. 6b).
S406:将IP核的内部逻辑输出捕获到IP核的内部扫描链;S406: Capture the internal logic output of the IP core to the internal scan chain of the IP core;
具体地,在并行捕获阶段,SelectWIR、ShiftWR、SE、CaptureWR和UpdateWR无效,在CLK上升沿,IP核内部逻辑输出被捕获到扫描链中,从而在下次的移位操作中将捕获的测试数据沿扫描链移出。Specifically, in the parallel capture stage, SelectWIR, ShiftWR, SE, CaptureWR and UpdateWR are invalid. On the rising edge of CLK, the internal logic output of the IP core is captured into the scan chain, so that the captured test data edge will be captured in the next shift operation. Scan chain moved out.
本实施例中,并行捕获阶段即图6b)中第20周期。In this embodiment, the parallel capture stage is the 20th cycle in Fig. 6b).
S407:输出并测量测试壳扫描链链首;S407: output and measure the test shell scan chain head;
具体地,在测试壳扫描链链首输出阶段,SelectWIR、CaptureWR、UpdateWR无效,SE和ShiftWR有效,CLK和WRCK无时钟脉冲,保证链首输出过程中不进行移位操作,只通过WSO对串行扫描链第一个测试数据进行输出,并对测试数据进行测量,测量操作应发生在测试数据稳定之后。Specifically, in the test shell scan chain chain head output stage, SelectWIR, CaptureWR, UpdateWR are invalid, SE and ShiftWR are valid, and CLK and WRCK have no clock pulses to ensure that no shift operation is performed during the chain head output process. The first test data of the scan chain is output, and the test data is measured. The measurement operation should take place after the test data is stable.
本实施例中,测试壳扫描链链首输出阶段即图6b)中的第2周期。In this embodiment, the first output stage of the scan chain of the test shell is the second cycle in Fig. 6b).
S408:通过测试壳中的WSO,在测试壳中卸载并测量SO测试数据和PO测试数据。S408: Unload and measure SO test data and PO test data in the test case through the WSO in the test case.
S409:在测量到SO测试数据和PO测试数据后,分别将SO测试数据与所述IP核测试图形中的SO图形即SO待比对测试数据进行测量比对,并将所述PO测试数据与所述IP核测试图形中的PO图形即PO待比对测试数据进行测量比对,以得到对于IP核的测量结果。S409: After measuring the SO test data and the PO test data, measure and compare the SO test data and the SO pattern in the IP core test pattern, that is, the SO test data to be compared, and compare the PO test data with the SO pattern to be compared. The PO pattern in the IP core test pattern, that is, the PO test data to be compared, is measured and compared to obtain the measurement result for the IP core.
具体地,在扫描输出阶段,即图6b)中第3周期到第18周期,控制信号状态与S407一致,在每个WRCK下降沿,根据WBR的数据通路卸载所述SO测试数据和所述PO测试数据,靠近测试壳串行输出WSO的WBR单元的测试数据最先卸载,靠近测试壳串行输入WSI的WBR单元的测试数据最后卸载。卸载的测试数据包括:(Noutput-1)个初级输出测试数据、Nff个扫描输出测试数据和Ninput个无关值。移出过程中对测试数据进行测量(无关值不用测量),测量操作应发生在测试数据稳定之后。该阶段完成测试图形的扫描输出测试数据和初级输出测试数据卸载。Specifically, in the scan output stage, that is, the third cycle to the eighteenth cycle in Fig. 6b), the state of the control signal is consistent with that of S407, and at each WRCK falling edge, the SO test data and the PO are unloaded according to the data path of the WBR For the test data, the test data of the WBR unit close to the test shell serially outputting the WSO is unloaded first, and the test data of the WBR unit close to the test shell serially inputting the WSI is unloaded last. The unloaded test data includes: (N output -1) primary output test data, N ff scan output test data, and N input irrelevant values. The test data is measured during the removal process (irrelevant values are not measured), and the measurement operation should take place after the test data is stabilized. This stage completes the scan output test data of the test pattern and the unloading of the primary output test data.
本实施例中,扫描输出阶段即图6b)中第3周期到第18周期,卸载的测试数据包括:(Noutput-1)个PO测试数据个SO0测试数据个SO1测试数据→Ninput个无关值。其中,SO0为IP核内部扫描链0的扫描输出,SO1为IP核内部扫描链1的扫描输出,PO为初级输出。In this embodiment, the scan output stage is the third cycle to the eighteenth cycle in Fig. 6b), and the unloaded test data includes: (N output -1) PO test data SO0 test data SO1 test data → N input irrelevant values. Among them, SO0 is the scan output of the
需要注意的是,测试壳级测试图形与IP核级测试图形一致,在进行第二个直至最后一个测试图形的施加过程中,同时进行上一次扫描链捕获测试结果的输出和测量,即当前测试图形的扫描输入阶段和上一次测试图形的扫描输出阶段同时进行。对于第一个测试图形的施加过程,不存在上一次测试结果的输出,同样,对于最后一个测试结果的输出和测量过程,也不存在下一次测试图形的施加过程。图6a)所示的IP核测试图形中,扫描输入输出阶段花费的测试时钟周期等于IP核内部最长扫描链的长度,即其中,代表IP核内部每条扫描链的长度,n代表IP核内部扫描链数目。加装测试壳后,串行测试存取机制下,该阶段花费的测试时钟周期等于连接在WSI和WSO之间的扫描链长度,即Nwsp-max,图6中Nwsp-max=16。It should be noted that the test shell-level test pattern is consistent with the IP core-level test pattern. During the application process of the second to the last test pattern, the output and measurement of the last scan chain capture test result are simultaneously performed, that is, the current test. The scan-in phase of the pattern and the scan-out phase of the last test pattern are performed simultaneously. For the application process of the first test pattern, there is no output of the previous test result, and similarly, for the output and measurement process of the last test result, there is no application process of the next test pattern. In the IP core test graph shown in Figure 6a), the test clock cycle spent in the scan input and output stage is equal to the length of the longest scan chain inside the IP core, namely in, Represents the length of each scan chain in the IP core, and n represents the number of scan chains in the IP core. After the test case is installed, under the serial test access mechanism, the test clock cycle spent in this stage is equal to the length of the scan chain connected between the WSI and the WSO, that is, N wsp-max , N wsp-max =16 in FIG. 6 .
串行测试存取机制下,转换后的测试图形如图6所示(图6中所有测量操作发生在测试数据稳定之后)。图6a)为IP核测试图形,它的各个阶段与图1一一对应,唯一不同的是图1给出两个连续的扫描阶段,第一扫描阶段包括第N-1测试图形扫描输出和第N测试图形扫描输入,第二扫描阶段包括第N测试图形扫描输出和第N+1测试图形扫描输入,而图6a)只给出一个扫描阶段,该扫描阶段包括第N-1测试图形扫描输出和第N测试图形扫描输入。为了保持链首输出与扫描输出的连贯性,图6a)将链首输出阶段放在扫描阶段之前。图6b)为根据IP核测试图形转换得到的加装测试壳后的IP核测试图形。注意,图中并未画出测试复位端口(RSTN和WRSTN)和测试壳并行端口WPP,这是因为测试复位不需要转换,而WPP在该机制下无效。可以看出,串行测试存取机制下,基于测试壳的IP核测试方法的重点在于把并行PI和PO测试数据转换为串行,并根据测试壳扫描链连接方式将它们串行移入或移出,具体地,图6b)中,第N测试图形的PI[3]、PI[2]、PI[1]、PI[0]在第15周期到第18周期依次串行移入,第N-1测试图形的PO[0]、PO[1]、PO[2]、PO[3]在第2周期到第6周期依次串行移出。Under the serial test access mechanism, the converted test pattern is shown in Figure 6 (all measurement operations in Figure 6 take place after the test data is stable). Figure 6a) is the IP core test pattern, its various stages are in one-to-one correspondence with Figure 1, the only difference is that Figure 1 shows two consecutive scan stages, the first scan stage includes the N-1th test pattern scan output and the first scan N test pattern scan input, the second scan stage includes the Nth test pattern scan output and N+1 test pattern scan input, while Figure 6a) only shows one scan stage, which includes the N-1th test pattern scan output and the Nth test pattern scan input. In order to maintain the coherence between the chain head output and the scan output, Figure 6a) places the chain head output stage before the scanning stage. Figure 6b) is the IP core test pattern after the test case is installed, which is converted according to the IP core test pattern. Note that the test reset ports (RSTN and WRSTN) and the test case parallel port WPP are not shown in the figure because the test reset does not require switching, and WPP is ineffective under this mechanism. It can be seen that under the serial test access mechanism, the key point of the IP core test method based on the test shell is to convert the parallel PI and PO test data into serial, and move them in or out serially according to the connection method of the test shell scan chain. , specifically, in Figure 6b), PI[3], PI[2], PI[1], and PI[0] of the Nth test pattern are serially shifted in from the 15th cycle to the 18th cycle, and the N-1 PO[0], PO[1], PO[2], and PO[3] of the test pattern are sequentially shifted out from the second cycle to the sixth cycle.
本申请实施例公开的又一种测试图形的转换方法,本实施例中,以并行测试指令、并以图7所示的IP核测试壳为例进行说明,图7中,IP核功能输入端口的数目为Ninput=4(不含时钟CLK、复位RSTN、扫描输入SI、扫描使能SE),IP核功能输出端口数目为Noutput=4(不含扫描输出SO),IP核内部有2条扫描链,其中,扫描链0上扫描寄存器的数目为扫描链1上扫描寄存器的数目为因此,IP核内部扫描链扫描单元的数目为Nff=8。测试壳并行端口的宽度为Wwpp=3。(图7中粗线代表并行内部测试的数据通路,图7中未画出并行外部测试的数据通路。可以看出,并行内部测试时,3条并行扫描链的长度分别为IP核内部2条扫描链长度以及输入端口链长度和输出端口链长度之和(Ninput+Noutput)。)Another test pattern conversion method disclosed in the embodiment of the present application, in this embodiment, the parallel test command and the IP core test shell shown in FIG. 7 are used as an example for description. In FIG. 7, the IP core function input port The number is N input = 4 (excluding clock CLK, reset RSTN, scan input SI, scan enable SE), the number of IP core function output ports is N output = 4 (excluding scan output SO), there are 2 scan chains, where the number of scan registers on
用Nwpp-max表征连接在测试壳并行输入和测试壳并行输出之间最长的扫描链(图7中Nwpp-max=8),其中,代表IP核内部扫描链的长度,n代表IP核内部扫描链数目。如图8所示,本实施例所述方法包括以下步骤:The longest scan chain connected between the parallel input of the test case and the parallel output of the test case is characterized by N wpp-max (N wpp-max =8 in Fig. 7), where, Represents the length of the scan chain in the IP core, and n represents the number of scan chains in the IP core. As shown in Figure 8, the method described in this embodiment includes the following steps:
S801:从IP核测试图形中提取SI、PI测试数据、SO和PO待对比测试数据;S801: Extract SI, PI test data, SO and PO test data to be compared from the IP core test graph;
S802:向测试壳中移入测试指令;S802: Move the test command into the test shell;
S803:确定所述测试指令为并行测试存取;S803: Determine that the test instruction is a parallel test access;
S804:通过测试壳中的测试壳并行输入,向测试壳中装载SI测试数据和PI测试数据;S804: load the SI test data and the PI test data into the test case through parallel input of the test case in the test case;
具体地,在扫描输入阶段,WPSE和SE有效,在每个WRCK上升沿,根据WBR的数据通路装载所述SI测试数据和所述PI测试数据,靠近测试壳并行输出WPO的WBR单元的测试数据最先装载,靠近测试壳并行输入WPI的WBR单元的测试数据最后装载。第n条并行扫描链装载的测试数据包括:个无关值和个初级输入测试数据、扫描输入测试数据。其中,Nwpp-max为最长并行扫描链的长度,为第n条并行扫描链输入扫描链的长度。该阶段完成测试图形的扫描输入测试数据和初级输入测试数据装载。Specifically, in the scan input stage, WPSE and SE are valid, and at each rising edge of WRCK, the SI test data and the PI test data are loaded according to the data path of the WBR, and the test data of the WBR unit of the WPO is output in parallel near the test shell. Loaded first, the test data of the WBR unit input to the WPI in parallel near the test shell is loaded last. The test data loaded by the nth parallel scan chain includes: irrelevant values and A primary input test data, scan input test data. where N wpp-max is the length of the longest parallel scan chain, Enter the length of the scan chain for the nth parallel scan chain. This stage completes the scan input test data of the test pattern and the loading of the preliminary input test data.
本实施例中,扫描输入阶段即图9中的第3周期到第10周期,各条并行扫描链装载的测试数据为:In this embodiment, in the scan input stage, that is, the third cycle to the tenth cycle in FIG. 9 , the test data loaded by each parallel scan chain is:
a)WPI[2]:个无关值个SI0测试数据;a) WPI[2]: irrelevant value SI0 test data;
b)WPI[1]:个无关值个SI1测试数据;b) WPI[1]: irrelevant value SI1 test data;
c)WPI[0]:(Nwpp-max-Ninput)个无关值→Ninput个PI测试数据。c) WPI[0]: (N wpp-max -N input ) irrelevant values→N input PI test data.
S805:将IP核的初级输出捕获到测试壳扫描链;S805: Capture the primary output of the IP core to the test shell scan chain;
具体地,在并行测量阶段,WPSE和SE无效,表示在WRCK上升沿可以开始捕获操作,将IP核的初级输出捕获到测试壳扫描链输出WBR单元,从而在下次移位操作中将捕获的初级输出测试数据沿扫描链移出,但是CLK无时钟脉冲,从而保证初级输出值在捕获过程中保持不变。Specifically, in the parallel measurement stage, WPSE and SE are invalid, indicating that the capture operation can be started at the rising edge of WRCK, and the primary output of the IP core is captured to the test shell scan chain output WBR unit, so that the captured primary output will be captured in the next shift operation. The output test data is shifted out along the scan chain, but the CLK is not clocked, ensuring that the primary output value remains unchanged during capture.
本实施例中,并行测量阶段即图9中的第11周期。In this embodiment, the parallel measurement stage is the 11th cycle in FIG. 9 .
S806:将IP核的内部逻辑输出捕获到IP核的内部扫描链;S806: Capture the internal logic output of the IP core to the internal scan chain of the IP core;
具体地,在并行捕获阶段,WPSE和SE无效,在CLK上升沿,IP核内部逻辑输出被捕获到扫描链中,从而在下次的移位操作中将捕获的测试数据沿扫描链移出。Specifically, in the parallel capture stage, WPSE and SE are invalid. On the rising edge of CLK, the internal logic output of the IP core is captured into the scan chain, so that the captured test data is shifted out along the scan chain in the next shift operation.
本实施例中,并行捕获阶段即图9中的第12周期。In this embodiment, the parallel capture stage is the twelfth cycle in FIG. 9 .
S807:输出并测量测试壳扫描链链首;S807: Output and measure the test shell scan chain head;
具体地,在测试壳扫描链链首输出阶段,WPSE和SE有效,CLK和WRCK无脉冲,保证链首输出过程中不进行移位操作,只通过WPO对并行扫描链第一个测试数据进行输出,并在测试数据稳定后进行测量。Specifically, in the first output stage of the scan chain of the test shell, WPSE and SE are valid, and CLK and WRCK have no pulses, ensuring that no shift operation is performed during the output process of the chain head, and only the first test data of the parallel scan chain is output through WPO , and measure after the test data is stable.
本实施例中,测试壳扫描链链首输出阶段即图9中的第2周期。In this embodiment, the first output stage of the test shell scan chain chain is the second cycle in FIG. 9 .
S808:通过测试壳中的WPO卸载并测量SO测试数据和PO测试数据。S808: Unload and measure SO test data and PO test data through the WPO in the test case.
S809:在测量到SO测试数据和PO测试数据后,分别将SO测试数据与SO待比对测试数据进行测量比对,并将所述PO测试数据与PO待比对测试数据进行测量比对,以得到对于IP核的测量结果。S809: after measuring the SO test data and the PO test data, measure and compare the SO test data and the SO test data to be compared respectively, and measure and compare the PO test data and the PO test data to be compared, to get the measurement results for the IP core.
具体地,在扫描输出阶段,即图9中的第3周期到第10周期,控制信号状态与S807一致,在每个WRCK下降沿,根据WBR的数据通路卸载所述SO测试数据和所述PO测试数据,靠近测试壳并行输出WPO的WBR单元的测试数据最先卸载,靠近测试壳并行输入WPI的WBR单元的测试数据最后卸载。第n条并行扫描链卸载的测试数据包括:个初级输出测试数据、扫描输出测试数据和个无关值。移出过程中对输出测试数据进行测量(无关值不用测量),测量操作应发生在测试数据稳定之后。该阶段完成测试图形的扫描输出测试数据和初级输出测试数据卸载。Specifically, in the scan output stage, that is, from the 3rd cycle to the 10th cycle in FIG. 9 , the state of the control signal is consistent with that of S807, and at each falling edge of WRCK, the SO test data and the PO are unloaded according to the data path of WBR For test data, the test data of the WBR unit that is close to the test shell and output in parallel to the WPO is unloaded first, and the test data of the WBR unit that is close to the test shell and input in parallel to the WPI is unloaded last. The test data offloaded by the nth parallel scan chain includes: primary output test data, scan output test data and an irrelevant value. During the removal process, the output test data is measured (the irrelevant value is not measured), and the measurement operation should take place after the test data is stable. This stage completes the scan output test data of the test pattern and the unloading of the primary output test data.
本实施例中,扫描输出阶段即图9中的第3周期到第10周期,各条并行扫描链卸载的测试数据为:In this embodiment, in the scan output stage, that is, the third cycle to the tenth cycle in FIG. 9 , the test data unloaded by each parallel scan chain is:
a)WPO[2]:个SO0测试数据个无关值;a) WPO[2]: SO0 test data an irrelevant value;
b)WPO[1]:个SO1测试数据个无关值;b) WPO[1]: SO1 test data an irrelevant value;
c)WPO[0]:(Noutput-1)个PO测试数据→(Nwpp-max-Noutput)个无关值。c) WPO[0]: (N output -1) PO test data → (N wpp-max -N output ) irrelevant values.
需要注意的是,测试壳级测试图形与IP核级测试图形一致,在进行第二个直至最后一个测试图形的施加过程中,同时进行上一次扫描链捕获测试结果的输出和测量,即当前测试图形的扫描输入阶段和上一次测试图形的扫描输出阶段同时进行。对于第一个测试图形的施加过程,不存在上一次测试结果的输出,同样,对于最后一个测试结果的输出和测量过程,也不存在下一次测试图形的施加过程。IP核测试图形中,扫描输入输出阶段花费的测试时钟周期等于IP核内部最长扫描链的长度,即Nip-max(=4),加装测试壳后,该阶段花费的的测试时钟周期等于连接在WPI和WPO之间最长的扫描链长度,Nwpp-max。图7中Nwpp-max=8。It should be noted that the test shell-level test pattern is consistent with the IP core-level test pattern. During the application process of the second to the last test pattern, the output and measurement of the last scan chain capture test result are simultaneously performed, that is, the current test. The scan-in phase of the pattern and the scan-out phase of the last test pattern are performed simultaneously. For the application process of the first test pattern, there is no output of the previous test result, and similarly, for the output and measurement process of the last test result, there is no application process of the next test pattern. In the IP core test pattern, the test clock cycle spent in the scan input and output stage is equal to the length of the longest scan chain inside the IP core, that is, N ip-max (=4). After the test shell is installed, the test clock cycle spent in this stage is Equal to the longest scan chain length connected between WPI and WPO, N wpp-max . N wpp-max =8 in FIG. 7 .
并行测试存取机制下,转换后的测试图形如图9所示(注意:图中所有测量操作发生在测试数据稳定之后)。为了保持链首输出与扫描输出的连贯性,图9将链首输出阶段放在扫描输入输出阶段之前。注意,图中并未画出测试复位端口(RSTN和WRSTN)和测试壳串行端口WSP,这是因为测试复位不需要转换,而WSP在该机制下无效。可以看出,并行测试存取机制下,测试图形翻译的重点在于把PI和PO的测试数据转换为并行,并根据测试壳扫描链连接方式将它们串行移入或移出,具体地,图9中,第N测试图形的PI[3]、PI[2]、PI[1]、PI[0]在第7周期到第10周期依次串行移入,第N-1测试图形的PO[0]、PO[1]、PO[2]、PO[3]在第2周期到第6周期依次串行移出。Under the parallel test access mechanism, the converted test pattern is shown in Figure 9 (note: all measurement operations in the figure take place after the test data is stable). In order to maintain the continuity between the chain head output and the scan output, Figure 9 places the chain head output stage before the scan input and output stage. Note that the test reset ports (RSTN and WRSTN) and the test shell serial port WSP are not shown in the figure, because the test reset does not require conversion, and the WSP is invalid under this mechanism. It can be seen that under the parallel test access mechanism, the key point of the test graph translation is to convert the test data of PI and PO into parallel, and move them in or out serially according to the connection mode of the test shell scan chain. Specifically, in Figure 9 , PI[3], PI[2], PI[1], PI[0] of the Nth test pattern are serially shifted in from the 7th cycle to the 10th cycle, PO[0], PI[0], PI[0] of the N-1th test pattern PO[1], PO[2], PO[3] are serially shifted out sequentially from the 2nd cycle to the 6th cycle.
需要注意的是,与WSP相比,WPP没有专门的捕获操作使能信号CaptureWR,因此,本方案在测试壳装置内部,采用图10电路产生并行测试存取机制下输出WBR单元的捕获操作使能信号WP_CaptureWR。图10中所示的电路包括1个寄存器和1个2输入与非门,电路捕获操作使能信号WP_CaptureWR产生的过程为:先将WPSE信号寄存一拍后输出,然后将WPSE取反后与寄存器输出相与得到WP_CaptureWR。It should be noted that, compared with WSP, WPP does not have a special capture operation enable signal CaptureWR. Therefore, this solution uses the circuit in Figure 10 to generate the capture operation enable of the WBR unit under the parallel test access mechanism inside the test shell device. Signal WP_CaptureWR. The circuit shown in Figure 10 includes a register and a 2-input NAND gate. The process of generating the circuit capture operation enable signal WP_CaptureWR is as follows: first register the WPSE signal for one shot and then output it, then invert the WPSE and combine it with the register The outputs are ANDed to get WP_CaptureWR.
从图6b)和图9可以看出,扫描链扫入无关值和扫出无关值所占用的周期数较多,导致第N测试图形有效测试数据的扫描输入和第N-1测试图形有效测试数据的扫描输出不能完全同时进行。为了节约测试时间,本申请实施例中,对上述实施例所述方法进行优化,提出优化后的基于测试壳的IP核测试方法。该优化方法能最大限度减少扫描链扫入无关值和扫出无关值的周期数,从而降低测试时间,具体方案描述如下。It can be seen from Figure 6b) and Figure 9 that the scan chain takes a lot of cycles to scan in and out irrelevant values, resulting in scan input of valid test data of the Nth test pattern and valid test of the N-1th test pattern The scan output of the data cannot be performed exactly at the same time. In order to save testing time, in the embodiments of the present application, the methods described in the above embodiments are optimized, and an optimized IP core testing method based on a test shell is proposed. This optimization method can minimize the number of cycles for the scan chain to sweep in and out irrelevant values, thereby reducing the test time. The specific scheme is described as follows.
将IP核输入扫描链定义为测试壳输入端口链加上IP核内部扫描链,假设输入扫描链集合为定义IP核最长输入扫描链长度为串行测试存取机制下并行测试存取机制下 Define the IP core input scan chain as the test shell input port chain plus the IP core internal scan chain, assuming that the input scan chain set is Define the longest input scan chain length of the IP core as Under serial test access mechanism Under the parallel test access mechanism
将IP核输出扫描链定义为测试壳输出端口链加上IP核内部扫描链,假设输出扫描链集合为定义IP核最长输出扫描链长度为串行测试存取机制下并行测试存取机制下 The IP core output scan chain is defined as the test shell output port chain plus the IP core internal scan chain, assuming that the output scan chain set is Define the longest output scan chain length of the IP core as Under serial test access mechanism Under the parallel test access mechanism
因此,定义IP核最长扫描链长度扫描输入输出阶段所花费的测试周期数为Nmax,则:Therefore, define the longest scan chain length of the IP core The number of test cycles spent in the scan input and output stage is N max , then:
串行测试存取机制下,IP核输入扫描链扫入无关值的周期数为IP核输出扫描链扫出无关值的周期数为扫描输入输出阶段节约的测试周期数为Nwsp-max-Nmax;Under the serial test access mechanism, the number of cycles for the IP core input scan chain to scan irrelevant values is The number of cycles in which the IP core output scan chain sweeps out irrelevant values is The number of test cycles saved in the scan input and output stage is N wsp-max -N max ;
并行测试存取机制下,各条IP核输入扫描链扫入无关值的周期数分别为…;各条IP核输出扫描链扫出无关值的周期数为…;扫描输入输出阶段节约的测试周期数为Nwpp-max-Nmax。Under the parallel test access mechanism, the number of cycles for each IP core input scan chain to scan irrelevant values is: ...; The number of cycles for each IP core output scan chain to scan out irrelevant values is ...; the number of test cycles saved in the scan input and output stage is N wpp-max -N max .
以图3所示的某IP核测试壳为例阐述优化后串行测试存取机制下基于测试壳的IP核测试方法,该IP核功能输入端口数目为Ninput=4(不含时钟CLK、复位RSTN、扫描输入SI、扫描使能SE),IP核功能输出端口数目为Noutput=4(不含扫描输出SO),IP核内部有2条扫描链,其中,扫描链0上扫描寄存器的数目为扫描链1上扫描寄存器的数目为IP核最长输入扫描链长度为IP核最长输出扫描链的长度为 IP核最长扫描链的长度为优化的基于测试壳的IP核测试方法如图11所示(图11中所有测量操作发生在测试数据稳定之后),它在扫描输入输出阶段与图6所述的方法不同,其他阶段的处理与图6所示的方法相同,不同之处具体描述如下:Taking a certain IP core test shell shown in FIG. 3 as an example to illustrate the IP core test method based on the test shell under the optimized serial test access mechanism, the number of input ports of the IP core function is N input = 4 (excluding clock CLK, Reset RSTN, scan input SI, scan enable SE), the number of output ports of the IP core function is N output = 4 (excluding scan output SO), there are 2 scan chains inside the IP core, among which, the number of scan registers on
1)在扫描输入阶段,装载的测试数据包括:个无关值、Nff个扫描输入测试数据和Ninput个初级输入测试数据。本实施例中,扫描输入阶段即图11中的第3周期到第14周期,装载的测试数据为:个无关值个SI0测试数据个SI1测试数据→Ninput个PI测试数据;1) In the scan input stage, the loaded test data includes: irrelevant values, N ff scan input test data, and N input primary input test data. In this embodiment, in the scan input stage, that is, the third cycle to the 14th cycle in FIG. 11 , the loaded test data are: irrelevant value SI0 test data SI1 test data → N input PI test data;
2)在扫描输出阶段,卸载的测试数据包括:(Noutput-1)个初级输出测试数据、Nff个扫描输出测试数据和个无关值。本实施例中,扫描输出阶段即图11中的第3周期到第14周期,卸载的测试数据为:(Noutput-1)个PO测试数据个SO0测试数据个SO1测试数据个无关值;2) In the scan output stage, the unloaded test data includes: (N output -1) primary output test data, N ff scan output test data and an irrelevant value. In this embodiment, in the scan output stage, that is, the third cycle to the 14th cycle in FIG. 11 , the unloaded test data are: (N output -1) PO test data SO0 test data SO1 test data an irrelevant value;
按照上述输入及输出方法,节约的测试周期数为Nwsp-max-Nmax=16-12=4。According to the above input and output method, the number of test cycles saved is N wsp-max -N max =16-12=4.
以图7所示的某IP核测试壳为例阐述优化后并行测试存取机制下基于测试壳的IP核测试方法,该IP核功能输入端口数目为Ninput=4(不含时钟CLK、复位RSTN、扫描输入SI、扫描使能SE),IP核功能输出端口数目为Noutput=4(不含扫描输出SO),IP核内部有2条扫描链,其中,扫描链0上扫描寄存器的数目为扫描链1上扫描寄存器的数目为测试壳并行端口宽度为Wwpp=3。3条IP核输入扫描链的长度分别为: IP核最长输入扫描链的长度为3条IP核输出扫描链长度分别为:IP核最长输出扫描链长度为IP核最长扫描链长度为Nmax=4。优化的基于测试壳的IP核测试方法如图12所示(图12中所有测量操作发生在测试数据稳定之后),它在扫描输入输出阶段的处理与图9所示的方法不同,其他阶段的处理与图9所示的方法相同,不同之处具体描述如下:Taking a certain IP core test shell shown in FIG. 7 as an example to illustrate the IP core test method based on the test shell under the parallel test access mechanism after optimization, the number of input ports of the IP core function is N input = 4 (excluding clock CLK, reset RSTN, scan input SI, scan enable SE), the number of IP core function output ports is N output = 4 (excluding scan output SO), there are 2 scan chains inside the IP core, among which, the number of scan registers on
1)在扫描输入阶段,测试壳并行输入端口同时进行测试数据装载,第n条并行扫描链装载的测试数据包括:个无关值和个初级输入测试数据、扫描输入测试数据。本实施例中,扫描输入阶段即图12中的第3周期到第6周期,各条并行扫描链装载的测试数据为:1) In the scan input stage, the parallel input port of the test shell performs test data loading at the same time, and the test data loaded by the nth parallel scan chain includes: irrelevant values and A primary input test data, scan input test data. In this embodiment, in the scan input stage, that is, the third cycle to the sixth cycle in FIG. 12 , the test data loaded by each parallel scan chain is:
a)WPI[2]:个无关值个SI0测试数据;a) WPI[2]: irrelevant value SI0 test data;
b)WPI[1]:个无关值个SI1测试数据;b) WPI[1]: irrelevant value SI1 test data;
c)WPI[0]:个无关值→Ninput个PI测试数据;c) WPI[0]: irrelevant values → N input PI test data;
2)在扫描输出阶段,测试壳并行输出端口同时进行测试数据卸载,第n条并行扫描链卸载的测试数据包括个初级输出测试数据、扫描输出测试数据和个无关值。本实施例中,扫描输出阶段即图12中的第3周期到第6周期,各条并行扫描链卸载的测试数据为:2) In the scan output stage, the parallel output port of the test shell performs test data unloading at the same time, and the test data unloaded by the nth parallel scan chain includes: primary output test data, scan output test data and an irrelevant value. In this embodiment, in the scan output stage, that is, the third cycle to the sixth cycle in FIG. 12 , the test data unloaded by each parallel scan chain is:
a)WPO[2]:个SO0测试数据个无关值;a) WPO[2]: SO0 test data an irrelevant value;
b)WPO[1]:个SO1测试数据个无关值;b) WPO[1]: SO1 test data an irrelevant value;
c)WPO[0]:(Noutput-1)个PO测试数据个无关值;c) WPO[0]: (N output -1) PO test data an irrelevant value;
按照上述输入及输出方法,节约的测试周期数为Nwpp-max-Nmax=8-4=4。According to the above input and output method, the number of test cycles saved is N wpp-max -N max =8-4=4.
优化的基于测试壳的IP核测试方法减少了输入扫描链扫入无关值的周期数和输出扫描链扫出无关值的周期数,以此达到节约测试周期、优化测试方法的目的。The optimized IP core test method based on the test shell reduces the number of cycles for the input scan chain to sweep in irrelevant values and the number of cycles for the output scan chain to scan out irrelevant values, so as to save the test cycle and optimize the test method.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments may be referred to each other.
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本申请。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments enables any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, this application is not intended to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (13)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610289946.3A CN107345997B (en) | 2016-05-04 | 2016-05-04 | A Test Method for IP Core Based on Test Shell |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610289946.3A CN107345997B (en) | 2016-05-04 | 2016-05-04 | A Test Method for IP Core Based on Test Shell |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107345997A CN107345997A (en) | 2017-11-14 |
CN107345997B true CN107345997B (en) | 2020-04-14 |
Family
ID=60253185
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610289946.3A Active CN107345997B (en) | 2016-05-04 | 2016-05-04 | A Test Method for IP Core Based on Test Shell |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107345997B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109946595B (en) * | 2019-03-25 | 2022-01-04 | 中国科学院微电子研究所 | Scan test execution method, device and system |
CN117980753A (en) * | 2021-09-23 | 2024-05-03 | 华为技术有限公司 | Test circuit, integrated circuit, electronic device, and method for generating test circuit |
CN115016997B (en) * | 2022-08-08 | 2022-11-18 | 南京芯驰半导体科技有限公司 | Rapid diagnosis system and method for register in slow clock domain lockstep module |
CN119414216B (en) * | 2025-01-06 | 2025-03-14 | 沐曦科技(成都)有限公司 | Analog IP associated digital circuit testing method, electronic device and medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1734278A (en) * | 2005-05-27 | 2006-02-15 | 上海大学 | System and method for testing faults in integrated circuit system-on-chip |
CN101923133A (en) * | 2010-01-21 | 2010-12-22 | 上海大学 | System and method for testing wiring faults between cores of integrated circuit system on chip |
CN101982788A (en) * | 2010-09-30 | 2011-03-02 | 哈尔滨工业大学 | IEEE1500 standard based IP nuclear measuring transmission component and control method thereof |
CN102768337A (en) * | 2012-08-07 | 2012-11-07 | 哈尔滨工业大学 | Test packaging scanning chain balancing method for three-dimensional IP (Intellectual Property) core on basis of average value flotation quantity |
CN103279405A (en) * | 2013-05-30 | 2013-09-04 | 南京航空航天大学 | Testing shell suitable for on-chip network embedded type IP core |
CN105203946A (en) * | 2015-10-30 | 2015-12-30 | 中国科学院微电子研究所 | Embedded core testing shell device and design method thereof |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7003707B2 (en) * | 2000-04-28 | 2006-02-21 | Texas Instruments Incorporated | IC tap/scan test port access with tap lock circuitry |
US6877122B2 (en) * | 2001-12-21 | 2005-04-05 | Texas Instruments Incorporated | Link instruction register providing test control signals to core wrappers |
-
2016
- 2016-05-04 CN CN201610289946.3A patent/CN107345997B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1734278A (en) * | 2005-05-27 | 2006-02-15 | 上海大学 | System and method for testing faults in integrated circuit system-on-chip |
CN101923133A (en) * | 2010-01-21 | 2010-12-22 | 上海大学 | System and method for testing wiring faults between cores of integrated circuit system on chip |
CN101982788A (en) * | 2010-09-30 | 2011-03-02 | 哈尔滨工业大学 | IEEE1500 standard based IP nuclear measuring transmission component and control method thereof |
CN102768337A (en) * | 2012-08-07 | 2012-11-07 | 哈尔滨工业大学 | Test packaging scanning chain balancing method for three-dimensional IP (Intellectual Property) core on basis of average value flotation quantity |
CN103279405A (en) * | 2013-05-30 | 2013-09-04 | 南京航空航天大学 | Testing shell suitable for on-chip network embedded type IP core |
CN105203946A (en) * | 2015-10-30 | 2015-12-30 | 中国科学院微电子研究所 | Embedded core testing shell device and design method thereof |
Non-Patent Citations (2)
Title |
---|
An analysis of the design processes required for the technology conversion of SoC intellectual property;J. Nash;《Proceedings of the IEEE 2000 Custom Integrated Circuits Conference》;20000524;全文 * |
基于IEEE 1500的数字SOC测试系统的设计与实现;陈寿宏,等;《计算机测量与控制》;20130525;第21卷(第5期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN107345997A (en) | 2017-11-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11639963B2 (en) | Test compression in a JTAG daisy-chain environment | |
US10877093B2 (en) | Non-interleaved scan operation for achieving higher scan throughput in presence of slower scan outputs | |
US8977920B2 (en) | DDR circuitry data and control buses connected to test circuitry | |
US7478300B2 (en) | Method for testing functional boundary logic at asynchronous clock boundaries of an integrated circuit device | |
CN107345997B (en) | A Test Method for IP Core Based on Test Shell | |
EP2587273A1 (en) | Dynamic clock domain bypass for scan chains | |
US20080001616A1 (en) | Testing Components of I/O Paths of an Integrated Circuit | |
US7500164B2 (en) | Method for testing an integrated circuit device having elements with asynchronous clocks or dissimilar design methodologies | |
US7581151B2 (en) | Method and apparatus for affecting a portion of an integrated circuit | |
US7685489B2 (en) | Semiconductor integrated circuit and testing method | |
CN110007217A (en) | A Low Power Consumption Boundary Scan Test Method | |
US11047909B2 (en) | Inter-domain power element testing using scan | |
US20050193276A1 (en) | Semiconductor IC incorporating a co-debugging function and test system | |
US6675334B2 (en) | Apparatus and method for multi-cycle memory access mapped to JTAG finite state machine with external flag for hardware emulation | |
CN102749574A (en) | Scan test method and circuit | |
CN113740634A (en) | Isolation enabled test coverage for multiple power domains | |
JP3207727B2 (en) | Semiconductor integrated circuit and its application device | |
US6636996B2 (en) | Method and apparatus for testing pipelined dynamic logic | |
CN105203946B (en) | Embedded core testing shell device and design method thereof | |
US7089471B2 (en) | Scan testing mode control of gated clock signals for flip-flops | |
JP2003028934A (en) | Method for reducing electric power for module-type scan test | |
CN107345999B (en) | Test case design method and device | |
CN107729191B (en) | Test pattern translation method and core test case device | |
US7761760B2 (en) | Integrated circuit and a method for designing a boundary scan super-cell | |
US20230376229A1 (en) | Fast and flexible ram reader and writer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |