[go: up one dir, main page]

CN118468775A - Circuit system, method, device, medium and program product for scan test - Google Patents

Circuit system, method, device, medium and program product for scan test Download PDF

Info

Publication number
CN118468775A
CN118468775A CN202310148347.XA CN202310148347A CN118468775A CN 118468775 A CN118468775 A CN 118468775A CN 202310148347 A CN202310148347 A CN 202310148347A CN 118468775 A CN118468775 A CN 118468775A
Authority
CN
China
Prior art keywords
value
shift
generate
observation
scan
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.)
Pending
Application number
CN202310148347.XA
Other languages
Chinese (zh)
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 CN202310148347.XA priority Critical patent/CN118468775A/en
Priority to PCT/CN2023/130300 priority patent/WO2024164595A1/en
Publication of CN118468775A publication Critical patent/CN118468775A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • G06F30/32Circuit design at the digital level
    • G06F30/333Design for testability [DFT], e.g. scan chain or built-in self-test [BIST]
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/317Testing of digital circuits
    • G01R31/3177Testing of logic operation, e.g. by logic analysers
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/317Testing of digital circuits
    • G01R31/3181Functional testing
    • G01R31/3185Reconfiguring for testing, e.g. LSSD, partitioning

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

Embodiments of the present disclosure provide circuitry, methods, apparatus, devices, storage media, and program products for scan testing, relating to the field of chip design tools. The provided circuitry includes a first scan cell and an observation cell in series with the first scan cell in a scan chain. The first scanning unit is configured to generate a first shift value based on at least a portion of the test vector. The observation unit includes a signal combiner and a second scanning unit. The signal combiner is configured to generate, in a shift capture mode, a first combined value at a first output of the signal combiner based on a combination of a value at an observation point in a circuit under test and the first shift value output by the first scan unit. The second scanning unit is configured to generate a scanning observation based on the first combined value in the shift capture mode. In this way, with a scan chain composed of a normal scan unit and an observation unit, the value at the observation point can be captured during shifting, thereby improving the test efficiency.

Description

用于扫描测试的电路系统、方法、装置、介质和程序产品Circuit system, method, device, medium and program product for scan test

技术领域Technical Field

本公开的实施例主要涉及芯片设计工具领域。更具体地,本公开的实施例涉及用于扫描测试的电路系统、方法、装置、设备、计算机可读存储介质以及计算机程序产品。Embodiments of the present disclosure generally relate to the field of chip design tools. More specifically, embodiments of the present disclosure relate to circuit systems, methods, devices, apparatuses, computer-readable storage media, and computer program products for scan testing.

背景技术Background Art

电子设计自动化(electronic design automation,EDA)软件被广泛应用于芯片的设计。借助于各种EDA软件,工程师可以方便地进行芯片的设计,例如架构设计和寄存器传输级(register-transfer level,RTL)代码设计、综合(synthesis)、可测性设计(designfor test,DFT)、物理实现(physical development)以及签核(signoff)等。Electronic design automation (EDA) software is widely used in chip design. With the help of various EDA software, engineers can easily carry out chip design, such as architecture design and register transfer level (RTL) code design, synthesis, design for test (DFT), physical development and signoff.

作为芯片设计和制造过程中重要的一环,芯片测试可以用来挑选在制造和封装过程中由于诸如工艺和材料问题而具有缺陷的芯片。利用EDA工具可以高效地进行芯片测试。通常,在设计阶段可以在芯片中添加诸如扫描链(scan chain)之类的DFT结构。在测试阶段,可以利用测试向量生成器生成测试向量(test pattern)以输入到待测芯片中。通过比较被测芯片的测试响应与预期响应是否一致,可以对芯片进行测试。随着芯片集成度和复杂度的不断提高,芯片测试的难度也随之增加。因此,期望一种高效的芯片测试方案以减少芯片测试的时间和成本。As an important part of the chip design and manufacturing process, chip testing can be used to select chips with defects due to problems such as process and materials during the manufacturing and packaging process. Chip testing can be performed efficiently using EDA tools. Usually, DFT structures such as scan chains can be added to the chip during the design phase. In the test phase, a test vector generator can be used to generate a test pattern to input into the chip to be tested. The chip can be tested by comparing whether the test response of the chip under test is consistent with the expected response. With the continuous improvement of chip integration and complexity, the difficulty of chip testing has also increased. Therefore, an efficient chip testing solution is expected to reduce the time and cost of chip testing.

发明内容Summary of the invention

鉴于上述问题,本公开的实施例提供了一种用于扫描测试的方案。In view of the above problems, an embodiment of the present disclosure provides a solution for scan testing.

在本公开的第一方面,提供了用于扫描测试的电路系统。电路系统包括:包括第一扫描单元和与第一扫描单元串联在扫描链中的观测单元。第一扫描单元被配置为基于测试向量的至少一部分生成第一移位值。观测单元包括信号组合器和第二扫描单元。信号组合器被配置为在移位捕获模式中,基于待测电路中的观测点处的值与所述第一扫描单元所输出的所述第一移位值的组合,生成所述信号组合器的第一输出处的第一组合值。第二扫描单元被配置为在所述移位捕获模式中,基于所述第一组合值,生成扫描观测值。以此方式,利用由普通扫描单元和观测单元组成的扫描链,可以在移位过程中捕获观测点处的值,从而提高测试效率。In a first aspect of the present disclosure, a circuit system for scan testing is provided. The circuit system includes: a first scan unit and an observation unit connected in series with the first scan unit in a scan chain. The first scan unit is configured to generate a first shift value based on at least a portion of a test vector. The observation unit includes a signal combiner and a second scan unit. The signal combiner is configured to generate a first combination value at a first output of the signal combiner based on a combination of a value at an observation point in a circuit to be tested and the first shift value output by the first scan unit in a shift capture mode. The second scan unit is configured to generate a scan observation value based on the first combination value in the shift capture mode. In this way, using a scan chain composed of a normal scan unit and an observation unit, the value at the observation point can be captured during the shift process, thereby improving the test efficiency.

在第一方面的一些实施例中,所述信号组合器被进一步配置为在移位模式中,基于所述第一扫描单元输出的所述第一移位值,生成所述信号组合器的所述第一输出处的第二组合值;并且所述第二扫描单元被进一步配置为在所述移位模式中,基于所述第二组合值生成第二移位值,所述第二移位值与所述第一扫描单元输出的所述第一移位值相同。In some embodiments of the first aspect, the signal combiner is further configured to generate a second combination value at the first output of the signal combiner based on the first shift value output by the first scanning unit in a shift mode; and the second scanning unit is further configured to generate a second shift value based on the second combination value in the shift mode, and the second shift value is the same as the first shift value output by the first scanning unit.

在第一方面的一些实施例中,所述信号组合器被进一步配置为在捕获模式中,基于所述观测点处的值或所述观测点处的值与所述待测电路中的功能逻辑连接点处的值的组合,生成所述信号组合器的第二输出处的第三组合值;并且所述第二扫描单元被进一步配置为在所述捕获模式中,基于所述第三组合值,生成与所述第三组合值相同的捕获值。In some embodiments of the first aspect, the signal combiner is further configured to generate, in a capture mode, a third combined value at a second output of the signal combiner based on a value at the observation point or a combination of the value at the observation point and a value at a functional logic connection point in the circuit under test; and the second scanning unit is further configured to generate, in the capture mode, a captured value identical to the third combined value based on the third combined value.

在第一方面的一些实施例中,所述信号组合器包括:与门,被配置为接收所述移位捕获模式的使能信号和所述观测点处的值;以及第一异或门,被配置为基于所述与门的输出和所述第一移位值,生成所述信号组合器的所述第一输出处的值。In some embodiments of the first aspect, the signal combiner includes: an AND gate configured to receive an enable signal of the shift capture mode and the value at the observation point; and a first XOR gate configured to generate a value at the first output of the signal combiner based on an output of the AND gate and the first shift value.

在第一方面的一些实施例中,所述信号组合器还包括第二异或门,所述第二异或门被配置为基于所述与门的输出和所述待测电路中的功能逻辑连接点处的值生成所述信号组合器的第二输出处的值。以此方式,可以复用扫描链中的普通扫描单元,从而节省硬件成本和面积开销。In some embodiments of the first aspect, the signal combiner further comprises a second XOR gate configured to generate a value at a second output of the signal combiner based on an output of the AND gate and a value at a functional logic connection point in the circuit under test. In this way, ordinary scan units in a scan chain can be reused, thereby saving hardware cost and area overhead.

在第一方面的一些实施例中,在所述移位模式中,当前时钟周期中所述观测单元基于先前一个时钟周期中所述第一扫描单元输出的所述第一移位值而输出值。In some embodiments of the first aspect, in the shift mode, the observation unit in a current clock cycle outputs a value based on the first shift value output by the first scanning unit in a previous clock cycle.

在第一方面的一些实施例中,在所述移位捕获模式中,当前时钟周期中所述观测单元基于先前一个时钟周期中所述第一扫描单元输出的所述第一移位值与所述当前时钟周期中所捕获的所述观测点处的值的异或而输出值。In some embodiments of the first aspect, in the shift capture mode, the observation unit in the current clock cycle outputs a value based on the exclusive OR of the first shift value output by the first scanning unit in the previous clock cycle and the value at the observation point captured in the current clock cycle.

在第一方面的一些实施例中,在所述捕获模式中,当前时钟周期中所述观测单元基于所述当前时钟周期中所捕获的所述观测点处的值而输出值。In some embodiments of the first aspect, in the capture mode, the observation unit in a current clock cycle outputs a value based on a value at the observation point captured in the current clock cycle.

在第一方面的一些实施例中,在所述捕获模式中,当前时钟周期中所述观测单元基于所述当前时钟周期中所捕获的所述观测点处的值与所述功能逻辑连接点处的值的异或而输出值。In some embodiments of the first aspect, in the capture mode, the observation unit in a current clock cycle outputs a value based on an exclusive OR of a value at the observation point captured in the current clock cycle and a value at the functional logic connection point.

在第一方面的一些实施例中,用于测试电路的电路系统包括多个扫描链,所述多个扫描链包括所述扫描链,其中所述多个扫描链处于压缩扫描模式或非压缩扫描模式。In some embodiments of the first aspect, circuitry for testing a circuit comprises a plurality of scan chains including the scan chain, wherein the plurality of scan chains are in a compressed scan mode or a non-compressed scan mode.

在第一方面的一些实施例中,所述观测单元处于所述扫描链的链中位置或链尾位置。在第一方面的一些实施例中,所述观测单元与所述观测点之间的连线距离以及所述观测单元与所述第一扫描单元之间的连线距离之和小于预定阈值。以此方式,可以灵活地布置观测单元,从而降低绕线难度。In some embodiments of the first aspect, the observation unit is located in the middle or tail of the scan chain. In some embodiments of the first aspect, the sum of the connection distance between the observation unit and the observation point and the connection distance between the observation unit and the first scanning unit is less than a predetermined threshold. In this way, the observation unit can be flexibly arranged, thereby reducing the difficulty of wiring.

在本公开的第二方面,提供了一种用于扫描测试的电路系统。该电路系统包括:第一扫描单元;以及观测单元,与所述第一扫描单元串联在扫描链中,并且所述观测单元包括:信号组合器,被配置为在移位捕获模式中,基于待测电路中的观测点处的值与测试向量的至少一部分的组合,生成所述信号组合器的第一输出处的第一组合值;以及第二扫描单元,被配置为在所述移位捕获模式中,基于所述第一组合值,生成扫描观测值。其中所述第一扫描单元被配置为在所述移位捕获模式中,基于所述扫描观测值生成第一移位值。以此方式,利用由普通扫描单元和观测单元组成的扫描链,可以在移位过程中捕获观测点处的值,从而提高测试效率。In a second aspect of the present disclosure, a circuit system for scan testing is provided. The circuit system includes: a first scan unit; and an observation unit, which is connected in series with the first scan unit in a scan chain, and the observation unit includes: a signal combiner, which is configured to generate a first combination value at a first output of the signal combiner based on a combination of a value at an observation point in the circuit to be tested and at least a part of a test vector in a shift capture mode; and a second scan unit, which is configured to generate a scan observation value based on the first combination value in the shift capture mode. The first scan unit is configured to generate a first shift value based on the scan observation value in the shift capture mode. In this way, by using a scan chain composed of a normal scan unit and an observation unit, the value at the observation point can be captured during the shift process, thereby improving the test efficiency.

在第二方面的一些实施例中,所述信号组合器被进一步配置为在移位模式中,基于所述测试向量的所述至少一部分,生成所述信号组合器的所述第一输出处的第二组合值;所述第二扫描单元被进一步配置为在所述移位模式中,基于所述第二组合值生成第二移位值,所述第二移位值与所述测试向量的所述至少一部分相同;并且所述第一扫描单元被进一步配置为所述在移位模式中,基于所述第二移位值生成第三移位值,所述第三移位值与所述第二移位值相同。In some embodiments of the second aspect, the signal combiner is further configured to generate a second combined value at the first output of the signal combiner based on at least a portion of the test vector in a shift mode; the second scanning unit is further configured to generate a second shift value based on the second combined value in the shift mode, the second shift value being the same as the at least a portion of the test vector; and the first scanning unit is further configured to generate a third shift value based on the second shift value in the shift mode, the third shift value being the same as the second shift value.

在第二方面的一些实施例中,所述信号组合器被进一步配置为在捕获模式中,基于所述观测点处的值或所述观测点处的值与所述待测电路中的第一功能逻辑连接点处的值的组合,生成所述信号组合器的第二输出处的第三组合值;所述第二扫描单元被进一步配置为在所述捕获模式中,基于所述第三组合值,生成与所述第三组合值相同的捕获值;并且所述第一扫描单元被进一步配置为在所述捕获模式中,基于所述待测电路中的第二功能逻辑连接点处的值生成测试响应的至少一部分。In some embodiments of the second aspect, the signal combiner is further configured to generate a third combined value at a second output of the signal combiner in a capture mode based on the value at the observation point or a combination of the value at the observation point and the value at a first functional logic connection point in the circuit under test; the second scanning unit is further configured to generate a captured value identical to the third combined value in the capture mode based on the third combined value; and the first scanning unit is further configured to generate at least a portion of a test response in the capture mode based on the value at the second functional logic connection point in the circuit under test.

在第二方面的一些实施例中,所述信号组合器包括:与门,被配置为接收所述移位捕获模式的使能信号和所述观测点处的值;以及第一异或门,被配置为基于所述与门的输出和所述测试向量的所述至少一部分,生成所述信号组合器的所述第一输出处的值。In some embodiments of the second aspect, the signal combiner includes: an AND gate configured to receive an enable signal of the shift capture mode and a value at the observation point; and a first XOR gate configured to generate a value at the first output of the signal combiner based on an output of the AND gate and at least a portion of the test vector.

在第二方面的一些实施例中,所述信号组合器还包括第二异或门,所述第二异或门被配置为基于所述与门的输出和所述待测电路中的功能逻辑连接点处的值生成所述信号组合器的第二输出处的值。In some embodiments of the second aspect, the signal combiner further comprises a second XOR gate configured to generate a value at a second output of the signal combiner based on an output of the AND gate and a value at a functional logic connection point in the circuit under test.

在第二方面的一些实施例中,所述观测单元处于所述扫描链的链首。In some embodiments of the second aspect, the observation unit is located at the head of the scan chain.

在本公开的第三方面,提供了一种用于测试待测电路的方法。方法包括:在移位捕获模式中向扫描链移入测试向量;以及在移位捕获模式中基于测试向量的至少一部分和待测电路中的观测点处的值生成扫描观测值。扫描链被配置为包括:第一扫描单元,被配置为基于所述测试向量的所述至少一部分生成第一移位值;以及观测单元,与所述第一扫描单元串联,并且所述观测单元包括:信号组合器,被配置为在所述移位捕获模式中,基于所述观测点处的值与所述第一扫描单元输出的所述第一移位值的组合,生成第一组合值;以及第二扫描单元,被配置为在所述移位捕获模式中,基于所述第一组合值,生成所述扫描观测值。In a third aspect of the present disclosure, a method for testing a circuit to be tested is provided. The method includes: shifting a test vector into a scan chain in a shift capture mode; and generating a scan observation value based on at least a portion of the test vector and a value at an observation point in the circuit to be tested in the shift capture mode. The scan chain is configured to include: a first scan unit configured to generate a first shift value based on the at least a portion of the test vector; and an observation unit connected in series with the first scan unit, and the observation unit includes: a signal combiner configured to generate a first combination value based on a combination of the value at the observation point and the first shift value output by the first scan unit in the shift capture mode; and a second scan unit configured to generate the scan observation value based on the first combination value in the shift capture mode.

在第三方面的一些实施例中,方法还包括在移位模式中向所述扫描链移入所述测试向量,其中:所述信号组合器被进一步配置为在所述移位模式中,基于所述第一扫描单元输出的所述第一移位值,生成所述信号组合器的所述第一输出处的第二组合值;并且所述第二扫描单元被进一步配置为在所述移位模式中,基于所述第二组合值生成第二移位值,所述第二移位值与所述第一扫描单元输出的所述第一移位值相同。In some embodiments of the third aspect, the method also includes shifting the test vector into the scan chain in a shift mode, wherein: the signal combiner is further configured to generate a second combination value at the first output of the signal combiner based on the first shift value output by the first scan unit in the shift mode; and the second scan unit is further configured to generate a second shift value based on the second combination value in the shift mode, and the second shift value is the same as the first shift value output by the first scan unit.

在第三方面的一些实施例中,方法还包括在捕获模式中获取捕获值,其中:所述信号组合器被进一步配置为在所述捕获模式中,基于所述观测点处的值或所述观测点处的值与所述待测电路中的功能逻辑连接点处的值的组合,生成所述信号组合器的第二输出处的第三组合值;并且所述第二扫描单元被进一步配置为在所述捕获模式中,基于所述第三组合值,生成与所述第三组合值相同的所述捕获值。In some embodiments of the third aspect, the method also includes obtaining a captured value in a capture mode, wherein: the signal combiner is further configured to generate a third combined value at a second output of the signal combiner in the capture mode based on the value at the observation point or a combination of the value at the observation point and the value at a functional logic connection point in the circuit under test; and the second scanning unit is further configured to generate the captured value that is the same as the third combined value in the capture mode based on the third combined value.

在本公开的第四方面,提供了一种用于测试待测电路的方法。方法包括:在移位捕获模式中向扫描链移入测试向量;以及在所述移位捕获模式中基于所述测试向量的至少一部分和所述待测电路中的观测点处的值生成扫描观测值,其中所述扫描链被配置为包括:第一扫描单元,被配置为基于所述测试向量的所述至少一部分生成第一移位值;以及观测单元,与所述第一扫描单元串联,并且所述观测单元包括:信号组合器,被配置为在所述移位捕获模式中,基于所述观测点处的值与所述第一扫描单元输出的所述第一移位值的组合,生成第一组合值;以及第二扫描单元,被配置为在所述移位捕获模式中,基于所述第一组合值,生成所述扫描观测值。In a fourth aspect of the present disclosure, a method for testing a circuit under test is provided. The method includes: shifting a test vector into a scan chain in a shift capture mode; and generating a scan observation value based on at least a portion of the test vector and a value at an observation point in the circuit under test in the shift capture mode, wherein the scan chain is configured to include: a first scan unit configured to generate a first shift value based on at least a portion of the test vector; and an observation unit connected in series with the first scan unit, and the observation unit includes: a signal combiner configured to generate a first combination value based on a combination of the value at the observation point and the first shift value output by the first scan unit in the shift capture mode; and a second scan unit configured to generate the scan observation value based on the first combination value in the shift capture mode.

在第四方面的一些实施例中,方法还包括在移位模式中向所述扫描链移入所述测试向量,其中:所述信号组合器被进一步配置为在所述移位模式中,基于所述测试向量的所述至少一部分,生成所述信号组合器的所述第一输出处的第二组合值;所述第二扫描单元被进一步配置为在所述移位模式中,基于所述第二组合值生成第二移位值,所述第二移位值与所述测试向量的所述至少一部分相同;并且所述第一扫描单元被进一步配置为所述在移位模式中,基于所述第二移位值生成第三移位值,所述第三移位值与所述第二移位值相同。In some embodiments of the fourth aspect, the method also includes shifting the test vector into the scan chain in a shift mode, wherein: the signal combiner is further configured to generate a second combination value at the first output of the signal combiner based on at least a portion of the test vector in the shift mode; the second scan unit is further configured to generate a second shift value based on the second combination value in the shift mode, the second shift value being the same as the at least a portion of the test vector; and the first scan unit is further configured to generate a third shift value based on the second shift value in the shift mode, the third shift value being the same as the second shift value.

在第四方面的一些实施例中,方法还包括在捕获模式中获取捕获值,其中:所述信号组合器被进一步配置为在所述捕获模式中,基于所述观测点处的值或所述观测点处的值与所述待测电路中的第一功能逻辑连接点处的值的组合,生成所述信号组合器的第二输出处的第三组合值;所述第二扫描单元被进一步配置为在所述捕获模式中,基于所述第三组合值,生成与所述第三组合值相同的所述捕获值;并且所述第一扫描单元被进一步配置为在所述捕获模式中,基于所述待测电路中的第二功能逻辑连接点处的值生成测试响应的至少一部分。In some embodiments of the fourth aspect, the method also includes obtaining a captured value in a capture mode, wherein: the signal combiner is further configured to generate a third combined value at a second output of the signal combiner in the capture mode based on the value at the observation point or a combination of the value at the observation point and the value at a first functional logic connection point in the circuit under test; the second scanning unit is further configured to generate the captured value identical to the third combined value in the capture mode based on the third combined value; and the first scanning unit is further configured to generate at least a part of a test response in the capture mode based on the value at the second functional logic connection point in the circuit under test.

在本公开的第五方面,提供了一种装置,包括:移位单元,被配置为在移位捕获模式中向扫描链移入测试向量;以及捕获单元,被配置为在所述移位捕获模式中基于所述测试向量的至少一部分和所述待测电路中的观测点处的值生成扫描观测值,其中所述扫描链被配置为包括:第一扫描单元,被配置为基于所述测试向量的所述至少一部分生成第一移位值;以及观测单元,与所述第一扫描单元串联,并且所述观测单元包括:信号组合器,被配置为在所述移位捕获模式中,基于所述观测点处的值与所述第一扫描单元输出的所述第一移位值的组合,生成第一组合值;以及第二扫描单元,被配置为在所述移位捕获模式中,基于所述第一组合值,生成所述扫描观测值。In a fifth aspect of the present disclosure, a device is provided, comprising: a shift unit configured to shift a test vector into a scan chain in a shift capture mode; and a capture unit configured to generate a scan observation value based on at least a portion of the test vector and a value at an observation point in the circuit to be tested in the shift capture mode, wherein the scan chain is configured to include: a first scan unit configured to generate a first shift value based on at least a portion of the test vector; and an observation unit connected in series with the first scan unit, and the observation unit includes: a signal combiner configured to generate a first combination value based on a combination of the value at the observation point and the first shift value output by the first scan unit in the shift capture mode; and a second scan unit configured to generate the scan observation value based on the first combination value in the shift capture mode.

在本公开的第六方面,提供了一种装置,包括:移位单元,被配置为在移位捕获模式中向扫描链移入测试向量;以及捕获单元,被配置为在所述移位捕获模式中基于所述测试向量的至少一部分和待测电路中的观测点处的值生成扫描观测值,其中所述扫描链被配置为包括:第一扫描单元;以及观测单元,与所述第一扫描单元串联在所述扫描链中,并且所述观测单元包括:信号组合器,被配置为在所述移位捕获模式中,基于所述待测电路中的所述观测点处的值与所述测试向量的所述至少一部分的组合,生成所述信号组合器的第一输出处的第一组合值;以及第二扫描单元,被配置为在所述移位捕获模式中,基于所述第一组合值,生成所述扫描观测值;并且其中所述第一扫描单元被配置为在所述移位捕获模式中,基于所述扫描观测值生成第一移位值。In a sixth aspect of the present disclosure, a device is provided, comprising: a shift unit configured to shift a test vector into a scan chain in a shift capture mode; and a capture unit configured to generate a scan observation value based on at least a portion of the test vector and a value at an observation point in a circuit to be tested in the shift capture mode, wherein the scan chain is configured to include: a first scan unit; and an observation unit connected in series with the first scan unit in the scan chain, and the observation unit includes: a signal combiner configured to generate a first combination value at a first output of the signal combiner based on a combination of the value at the observation point in the circuit to be tested and the at least a portion of the test vector in the shift capture mode; and a second scan unit configured to generate the scan observation value based on the first combination value in the shift capture mode; and wherein the first scan unit is configured to generate a first shift value based on the scan observation value in the shift capture mode.

在本公开的第七方面,提供了一种电子设备,包括:至少一个计算单元;至少一个存储器,至少一个存储器被耦合到至少一个计算单元并且存储用于由至少一个计算单元执行的指令,指令当由至少一个计算单元执行时,使得设备实现第三方面或第四方面所提供的方法。In the seventh aspect of the present disclosure, an electronic device is provided, comprising: at least one computing unit; and at least one memory, wherein the at least one memory is coupled to the at least one computing unit and stores instructions for execution by the at least one computing unit, and when the instructions are executed by the at least one computing unit, the device implements the method provided in the third aspect or the fourth aspect.

在本公开的第八方面,提供了一种计算机可读存储介质,其上存储有计算机程序,其中计算机程序被处理器执行实现第三方面或第四方面所提供的方法。In an eighth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, wherein the computer program is executed by a processor to implement the method provided in the third aspect or the fourth aspect.

在本公开的第九方面,提供一种计算机程序产品,包括计算机可执行指令,当指令在被处理器执行时实现第三方面或第四方面的方法的部分或全部步骤。In a ninth aspect of the present disclosure, a computer program product is provided, comprising computer executable instructions, which implement part or all of the steps of the method of the third aspect or the fourth aspect when the instructions are executed by a processor.

可以理解地,上述提供的第五方面和第六方面的装置、第七方面的电子设备、第八方面的计算机存储介质或者第九方面的计算机程序产品均用于执行第三方面或第四方面所提供的方法。关于第一方面或第二方面的解释或者说明同样适用于第三方面、第四方面、第五方面、第六方面、第七方面、第八方面和第九方面。此外,第三方面、第四方面、第五方面、第六方面、第七方面、第八方面和第九方面所能达到的有益效果可参考对应电路系统中的有益效果,此处不再赘述。It can be understood that the apparatus of the fifth and sixth aspects, the electronic device of the seventh aspect, the computer storage medium of the eighth aspect, or the computer program product of the ninth aspect provided above are all used to execute the method provided by the third aspect or the fourth aspect. The explanation or description of the first aspect or the second aspect also applies to the third aspect, the fourth aspect, the fifth aspect, the sixth aspect, the seventh aspect, the eighth aspect, and the ninth aspect. In addition, the beneficial effects that can be achieved by the third aspect, the fourth aspect, the fifth aspect, the sixth aspect, the seventh aspect, the eighth aspect, and the ninth aspect can refer to the beneficial effects in the corresponding circuit system, which will not be repeated here.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

结合附图并参考以下详细说明,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。在附图中,相同或相似的附图标注表示相同或相似的元素,其中:The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:

图1示出了芯片的设计制造过程的流程图;FIG1 shows a flow chart of the chip design and manufacturing process;

图2示出了本公开的多个实施例能够在其中实现的示例环境的示意图;FIG2 shows a schematic diagram of an example environment in which various embodiments of the present disclosure can be implemented;

图3示出了根据本公开的一些实施例的观测单元的示意图;FIG3 shows a schematic diagram of an observation unit according to some embodiments of the present disclosure;

图4示出了根据本公开的一些实施例的观测单元的第一示例示意图;FIG4 shows a first example schematic diagram of an observation unit according to some embodiments of the present disclosure;

图5示出了根据本公开的一些实施例的观测单元的第二示例的示意图;FIG5 shows a schematic diagram of a second example of an observation unit according to some embodiments of the present disclosure;

图6示出了根据本公开的一些实施例的扫描测试中的控制信号和时钟信号的示意图;FIG6 is a schematic diagram showing control signals and clock signals in a scan test according to some embodiments of the present disclosure;

图7示出了根据本公开的一些实施例的用于扫描测试的电路系统的示意图;FIG7 shows a schematic diagram of a circuit system for scan testing according to some embodiments of the present disclosure;

图8示出了根据本公开的一些实施例的利用测试压缩技术的用于扫描测试的电路系统的示意图;FIG8 is a schematic diagram showing a circuit system for scan testing using test compression technology according to some embodiments of the present disclosure;

图9示出了根据本公开的一些实施例的用于扫描测试的方法的示例过程的示意性框图;FIG9 is a schematic block diagram showing an example process of a method for scan testing according to some embodiments of the present disclosure;

图10示出了根据本公开的一些实施例的用于扫描测试的装置的示意性框图;以及FIG10 shows a schematic block diagram of an apparatus for scan testing according to some embodiments of the present disclosure; and

图11示出了能够实施本公开的多个实施例的计算设备的框图。FIG. 11 illustrates a block diagram of a computing device capable of implementing various embodiments of the present disclosure.

具体实施方式DETAILED DESCRIPTION

下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

在本公开的实施例的描述中,术语“包括”及其类似用语应当理解为开放性包含,即“包括但不限于”。术语“基于”应当理解为“至少部分地基于”。术语“一个实施例”或“该实施例”应当理解为“至少一个实施例”。术语“第一”、“第二”等等可以指代不同的或相同的对象。下文还可能包括其他明确的和隐含的定义。In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.

应理解,本申请实施例提供的技术方案,在以下具体实施例的介绍中,某些重复之处可能不再赘述,但应视为这些具体实施例之间已有相互引用,可以相互结合。It should be understood that in the technical solutions provided by the embodiments of the present application, some repetitions may not be repeated in the introduction of the following specific embodiments, but these specific embodiments should be regarded as having been referenced to each other and can be combined with each other.

如上文所简要描述的,在利用EDA工具或软件进行芯片测试的过程中,可以构建测试电路以用于测试同一芯片中的待测电路。测试电路可以包括诸如扫描链之类的可测性设计。扫描链包括由时序电路中的触发器连接成的多个“移位寄存器(也称为扫描单元,scancell)”,并且每个移位寄存器的输入和输出都可以被单独观测。利用扫描链,可以将对复杂时序电路的测试转化为对组合电路的测试。As briefly described above, in the process of chip testing using EDA tools or software, a test circuit can be constructed to test the circuit to be tested in the same chip. The test circuit can include a testability design such as a scan chain. The scan chain includes a plurality of "shift registers (also called scan cells)" connected by triggers in a sequential circuit, and the input and output of each shift register can be observed separately. Using the scan chain, the test of a complex sequential circuit can be converted into a test of a combinational circuit.

具体地,每个扫描单元可以包括数据输入端口D、移位输入端口SI、移位使能输入端口SE和1个输出端口Q。除了扫描链的链首和链尾处的扫描单元之外,每个扫描单元可以通过其移位输入端口SI与前一个扫描单元的输出端口Q连接。基于移位使能(SE)信号的控制,扫描单元可以具有移位(shift)模式和捕获(capture)模式。Specifically, each scanning unit may include a data input port D, a shift input port SI, a shift enable input port SE and one output port Q. Except for the scanning units at the head and tail of the scan chain, each scanning unit may be connected to the output port Q of the previous scanning unit through its shift input port SI. Based on the control of the shift enable (SE) signal, the scanning unit may have a shift mode and a capture mode.

在移位模式中,每当时钟信号(clk)跳变,测试向量会从扫描单元的移位输入端口SI输入,并且通过首位相连的扫描单元而在扫描链上移位。扫描单元的输出端口Q会驱动待测电路中的组合逻辑,并且组合逻辑会通过连接到其的扫描单元的数据输入端口D而输出对应的值。In shift mode, whenever the clock signal (clk) jumps, the test vector is input from the shift input port SI of the scan unit and shifted on the scan chain through the first connected scan unit. The output port Q of the scan unit drives the combinational logic in the circuit under test, and the combinational logic outputs the corresponding value through the data input port D of the scan unit connected to it.

当测试向量移位完成,各个扫描单元可以进入捕获模式。在捕获模式中,每当时钟信号跳变,扫描单元会捕获当前数据输入端口D的值。之后,各个扫描单元再次进入移位模式。在移位模式中,这些所捕获的值从扫描链的输出端口逐位移出,以用于与预设的正确值进行对比。如果组合逻辑有故障并且被当前测试向量激发,则该故障可以通过所移出的值与正确值之间的区别而被检测到。When the test vector shift is completed, each scan unit can enter the capture mode. In the capture mode, each time the clock signal jumps, the scan unit will capture the value of the current data input port D. After that, each scan unit enters the shift mode again. In the shift mode, these captured values are shifted out from the output port of the scan chain one by one for comparison with the preset correct value. If the combinational logic has a fault and is stimulated by the current test vector, the fault can be detected by the difference between the shifted value and the correct value.

然而,在这种扫描测试方案中,需要在将测试向量完整移入扫描链之后捕获组合逻辑中的值,并且所捕获的值需要逐位移出扫描链以用于与正确值进行比较。考虑到移位过程与捕获过程相比耗时久得多,芯片测试的时间绝大部分花费在移位过程中,使得测试效率较低。例如,如果将测试向量移入整个扫描链需要N个周期(N大于等于最大链长),并且进行仅耗时一个周期的单捕获扫描测试,则故障测试时间仅占总测试时间的约1/N。因此,传统的扫描测试方案测试时间长并且测试效率低。However, in this scan test scheme, it is necessary to capture the value in the combinational logic after the test vector is completely shifted into the scan chain, and the captured value needs to be shifted out of the scan chain one by one for comparison with the correct value. Considering that the shift process takes much longer than the capture process, most of the chip test time is spent in the shift process, making the test efficiency low. For example, if it takes N cycles (N is greater than or equal to the maximum chain length) to shift the test vector into the entire scan chain, and a single capture scan test that only takes one cycle is performed, the fault test time only accounts for about 1/N of the total test time. Therefore, the traditional scan test scheme has a long test time and low test efficiency.

为了至少部分地解决上述问题以及其他潜在问题,本公开的各种实施例提供了一种用于扫描测试的方案。根据在此描述的各种实施例,提供了一种用于扫描测试的电路系统。该电路系统包括第一扫描单元和与所述第一扫描单元串联在扫描链中的观测单元。第一扫描单元被配置为基于测试向量的至少一部分生成第一移位值。观测单元包括信号组合器和第二扫描单元。信号组合器被配置为在移位捕获模式中,基于待测电路中的观测点处的值与所述第一扫描单元所输出的所述第一移位值的组合,生成所述信号组合器的第一输出处的第一组合值。第二扫描单元被配置为在所述移位捕获模式中,基于所述第一组合值生成扫描观测值。In order to at least partially solve the above problems and other potential problems, various embodiments of the present disclosure provide a scheme for scan testing. According to various embodiments described herein, a circuit system for scan testing is provided. The circuit system includes a first scan unit and an observation unit connected in series with the first scan unit in a scan chain. The first scan unit is configured to generate a first shift value based on at least a portion of a test vector. The observation unit includes a signal combiner and a second scan unit. The signal combiner is configured to generate a first combined value at a first output of the signal combiner based on a combination of a value at an observation point in the circuit to be tested and the first shift value output by the first scan unit in a shift capture mode. The second scan unit is configured to generate a scan observation value based on the first combined value in the shift capture mode.

利用本公开的方案,扫描链可以被配置为在移位捕获模式中操作。具体地,在移位捕获模式中,观测单元可以在移位周期中获取待测电路中的观测点处的值与第一扫描单元的输出值的组合。以此方式,可以通过在移位过程中观测待测电路中的观测点处的值来确定待测电路中是否存在故障,从而提高芯片测试的效率。By using the solution of the present disclosure, the scan chain can be configured to operate in a shift capture mode. Specifically, in the shift capture mode, the observation unit can obtain a combination of a value at an observation point in the circuit under test and an output value of the first scanning unit during a shift cycle. In this way, it is possible to determine whether there is a fault in the circuit under test by observing the value at the observation point in the circuit under test during the shift process, thereby improving the efficiency of chip testing.

以下参考附图来描述本公开的各种示例实施例。Various exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings.

图1示出了芯片的设计制造过程100的流程图。设计制造过程100开始于规格制定110。在规格制定110的阶段,确定集成电路需要达到的功能和性能方面的要求。在芯片设计120的阶段,借助于EDA软件来进行电路设计,以获得例如用于芯片制造的版图文件。基于电路的不同(例如数字电路或模拟电路),设计120可以包括不同的设计环节。在制造140的阶段中,通过光刻、刻蚀、离子注入、薄膜沉积、抛光等工艺在晶圆上形成集成电路。在封装150的阶段,对晶圆进行切割得到裸片,并通过黏贴、焊接、模封等工艺对裸片进行封装得到芯片。所得到的芯片在测试160的阶段中被测试,以确保成品芯片的性能满足规格制定110中所确定的要求。测试合格的芯片170可以被交付客户。可以理解,上述过程仅是示意,而非对本公开的范围进行限制。在一些情形下,芯片的设计制造过程可以有所不同。例如,在制造140之前可以进行流片(tape-out)。流片所得的少量芯片可以用于进行测试以验证芯片设计是否达到预期。如果未达到预期,则这表明流片失败,并且可能需要调整芯片设计或重新设计芯片。FIG. 1 shows a flow chart of a chip design and manufacturing process 100. The design and manufacturing process 100 begins with specification formulation 110. At the stage of specification formulation 110, the requirements for the functions and performances that the integrated circuit needs to achieve are determined. At the stage of chip design 120, circuit design is performed with the aid of EDA software to obtain, for example, a layout file for chip manufacturing. Based on the difference in circuits (e.g., digital circuits or analog circuits), the design 120 may include different design links. At the stage of manufacturing 140, integrated circuits are formed on wafers through processes such as photolithography, etching, ion implantation, thin film deposition, and polishing. At the stage of packaging 150, the wafer is cut to obtain a bare die, and the bare die is packaged to obtain a chip through processes such as pasting, welding, and mold sealing. The obtained chip is tested at the stage of testing 160 to ensure that the performance of the finished chip meets the requirements determined in the specification formulation 110. The chip 170 that passes the test can be delivered to the customer. It can be understood that the above process is only illustrative and does not limit the scope of the present disclosure. In some cases, the design and manufacturing process of the chip may be different. For example, tape-out may be performed before manufacturing 140. A small number of chips obtained from the tape-out may be used for testing to verify whether the chip design meets expectations. If it does not meet expectations, this indicates that the tape-out has failed and the chip design may need to be adjusted or redesigned.

在一些实施例中,数字电路的设计120可以示例性地包括架构设计121、RTL设计123、功能仿真125、综合(synthesis)127、时序分析129、DFT 131、验证检查133、布局布线135、设计规则检查(design rule check,DRC)137以及生成版图139。架构设计121例如包括对芯片的架构进行设计。例如,可以使用EDA软件确定芯片系统所包括的组件或子电路的类别和数量、以及各个组件或子电路的功能、连接和交互。在RTL设计123的阶段,可以使用诸如Verilog或VHDL之类的硬件编程语言将经过确定的芯片架构在RTL级进行代码描述。功能仿真125也被称作RTL级行为仿真或前端仿真。功能仿真目的是分析设计电路逻辑关系的正确性。综合127可以将RTL转换成门级网表(gate-level netlist)。综合127例如可以包括转换(translation)、优化(optimization)和映射(mapping)。在一个实施例中,用于综合的EDA软件可以先将RTL代码转化成通用的布尔等式,并且对其进行编译。可以根据设计者施加的延时、面积等约束对网表进行优化,并且继而将RTL网表映射到工艺库以生成门级网表。In some embodiments, the design 120 of the digital circuit may exemplarily include an architecture design 121, an RTL design 123, a functional simulation 125, a synthesis 127, a timing analysis 129, a DFT 131, a verification check 133, a layout 135, a design rule check (DRC) 137, and a layout generation 139. The architecture design 121 includes, for example, designing the architecture of the chip. For example, EDA software may be used to determine the categories and quantities of components or subcircuits included in the chip system, as well as the functions, connections, and interactions of each component or subcircuit. In the stage of RTL design 123, a hardware programming language such as Verilog or VHDL may be used to describe the determined chip architecture in code at the RTL level. Functional simulation 125 is also referred to as RTL-level behavioral simulation or front-end simulation. The purpose of functional simulation is to analyze the correctness of the logical relationship of the design circuit. Synthesis 127 may convert RTL into a gate-level netlist. Synthesis 127 may include, for example, translation, optimization, and mapping. In one embodiment, the EDA software used for synthesis may first convert the RTL code into a general Boolean equation and compile it. The netlist may be optimized according to the constraints imposed by the designer, such as delay and area, and then the RTL netlist may be mapped to the process library to generate a gate-level netlist.

时序分析129通常为静态时序分析,其主要涉及对数字电路的时序计算和预计。通过对数字电路中的路径进行时序分析来确定是否实现时序收敛,从而确保各种电路的时序是否满足各种时序要求。这种数字电路的验证通常是静态完成的,并且不需要数字逻辑的模拟。在DFT 131的阶段,可以在设计中嵌入各种用于提高芯片可测试性(包括可控制性和可观测性)的硬件逻辑。通过使用这部分逻辑,可以生成测试向量以实现大规模数字电路的测试的目的。DFT例如可以包括基于扫描链(scan chain)的测试方法或内建自测试电路(built-in self-test,BIST)。在验证检查133的阶段,可以对电路进行形式验证和/或等价性检查。形式验证可以根据某个或某些形式规范或属性,使用数学的方法证明其正确性或非正确性。形式验证例如可以包括抽象解释(abstract interpretation)、形式模型检查(formal model checking,也被称作特性检查)和定理证明(theory prover)。等价性检查可以用于验证寄存器传输级设计与门级网表之间、门级网表与门级网表之间是否一致。Timing analysis 129 is usually static timing analysis, which mainly involves timing calculation and prediction of digital circuits. Timing analysis is performed on the paths in the digital circuit to determine whether timing convergence is achieved, thereby ensuring whether the timing of various circuits meets various timing requirements. The verification of such digital circuits is usually completed statically and does not require simulation of digital logic. At the stage of DFT 131, various hardware logics for improving chip testability (including controllability and observability) can be embedded in the design. By using this part of logic, test vectors can be generated to achieve the purpose of testing large-scale digital circuits. DFT can, for example, include a test method based on a scan chain or a built-in self-test circuit (BIST). At the stage of verification check 133, the circuit can be formally verified and/or equivalence checked. Formal verification can use mathematical methods to prove its correctness or incorrectness based on one or more formal specifications or attributes. Formal verification can, for example, include abstract interpretation, formal model checking (also known as characteristic checking) and theorem prover. Equivalence checking can be used to verify whether the register transfer level design is consistent with the gate-level netlist, and between the gate-level netlist and the gate-level netlist.

在布局布线135的阶段,可以对芯片电路进行布局(placement)和布线(routing)。布局可以基于面积、关键路径延时长度、功耗等因素的考量把逻辑综合127生成的门级网表合理地排布在与芯片对应的一个矩形区域内。在此之后,可以对经布局的各个组件或子电路进行布线以将其连接。布线通常期望总的走线较短、走线延时满足时序要求、符合工艺上的走线规则(如布线密度)。虽然在此将布局和布线分开描述,但这仅是示意性的而非对本公开的范围进行限制。在一些情形下,布局和布线可以同时进行或交替进行以实现布局布线的优化。In the stage of layout and routing 135, the chip circuit can be laid out (placement) and routed (routing). The layout can reasonably arrange the gate-level netlist generated by logic synthesis 127 in a rectangular area corresponding to the chip based on considerations such as area, critical path delay length, and power consumption. After this, the various components or sub-circuits that have been laid out can be routed to connect them. Routing generally expects the total routing to be short, the routing delay to meet the timing requirements, and to comply with the routing rules in the process (such as routing density). Although layout and routing are described separately here, this is only illustrative and does not limit the scope of the present disclosure. In some cases, layout and routing can be performed simultaneously or alternately to achieve optimization of layout and routing.

在DRC 137的阶段,可以检查版图是否存在违反设计规则而引起潜在断路、短路或不良效应。在通过DRC之后,可以由EDA软件生成139表示版图的文件,例如GDSII文件。可以理解,上述环节仅为示例性而非对本公开的范围进行限制,在实际设计过程中,可以根据设计需要对上述环节进行增加、删减或修改。此外,上述环节中的一些环节可以由不同的EDA软件实现,也可以被集成在一个或多个EDA软件中实现。本公开对此不进行限制。At the DRC 137 stage, the layout can be checked for potential open circuits, short circuits or adverse effects caused by violations of design rules. After passing the DRC, a file representing the layout, such as a GDSII file, can be generated 139 by the EDA software. It can be understood that the above steps are only exemplary and not intended to limit the scope of the present disclosure. In the actual design process, the above steps can be added, deleted or modified according to design needs. In addition, some of the above steps can be implemented by different EDA software or integrated in one or more EDA software. The present disclosure does not limit this.

图2示出了根据本公开的多个实施例能够在其中实现的示例环境200的示意图。如图2所示,在环境200中,扫描链201、202、203和204可以用于对待测电路(未示出)进行测试。每个扫描链可以包括多个扫描单元,例如扫描单元210。在图2中,串联的一组扫描单元以长方形示出,例如第一组扫描单元211和第二组扫描单元212。每个扫描链还包括与扫描单元串联的一个或多个观测单元,例如观测单元220、221、222和223。FIG. 2 shows a schematic diagram of an example environment 200 in which various embodiments of the present disclosure can be implemented. As shown in FIG. 2 , in the environment 200, scan chains 201, 202, 203, and 204 can be used to test a circuit under test (not shown). Each scan chain may include a plurality of scan units, such as scan unit 210. In FIG. 2 , a group of scan units connected in series is shown as a rectangle, such as a first group of scan units 211 and a second group of scan units 212. Each scan chain also includes one or more observation units connected in series with the scan unit, such as observation units 220, 221, 222, and 223.

观测单元包括信号组合器和扫描单元,并且信号组合器的输出连接到扫描单元的输入。例如,观测单元220包括信号组合器231和扫描单元232。信号组合器的第一输入连接到前一个扫描单元的输出,并且信号组合器的第二输入连接到待测电路中的观测点。观测点的位置通常被选择为用来观测到待测电路中难以通过扫描单元观测到的故障。待测电路中的故障可以通过逻辑锥从观测点传进信号组合器,以用于检测扫描单元难以检测的故障,从而提升测试覆盖率。The observation unit includes a signal combiner and a scanning unit, and the output of the signal combiner is connected to the input of the scanning unit. For example, the observation unit 220 includes a signal combiner 231 and a scanning unit 232. The first input of the signal combiner is connected to the output of the previous scanning unit, and the second input of the signal combiner is connected to the observation point in the circuit to be tested. The position of the observation point is usually selected to observe the faults in the circuit to be tested that are difficult to observe through the scanning unit. The faults in the circuit to be tested can be transmitted from the observation point to the signal combiner through the logic cone to detect the faults that are difficult to detect by the scanning unit, thereby improving the test coverage.

与扫描链中的普通扫描单元(非观测单元内的扫描单元)相比,在移位过程中观测单元中的扫描单元的输出可以不驱动待测电路。换言之,根据本公开的实施例的扫描链包括两种扫描单元,在一些实施例中,普通扫描单元在移位过程中的输出驱动待测电路,而观测单元中的扫描单元在移位过程中的输出不驱动待测电路。备选地,观测单元中的扫描单元在移位过程中的输出也可以驱动待测电路。Compared with the ordinary scanning unit (scanning unit in the non-observation unit) in the scan chain, the output of the scanning unit in the observation unit may not drive the circuit to be tested during the shift process. In other words, the scan chain according to the embodiment of the present disclosure includes two types of scanning units. In some embodiments, the output of the ordinary scanning unit during the shift process drives the circuit to be tested, while the output of the scanning unit in the observation unit during the shift process does not drive the circuit to be tested. Alternatively, the output of the scanning unit in the observation unit during the shift process may also drive the circuit to be tested.

如图2所示,观测单元可以处于扫描链中的链首、链中位置或链尾位置。例如,观测单元220和观测单元221处于扫描链201的链中位置。观测单元223处于扫描链205的链尾位置。观测单元224处于扫描链203的链首位置。以此方式,观测单元可以灵活地布置在扫描链中,以使得观测单元的位置临近观测点的位置和/或观测单元的位置临近扫描链中的其他扫描单元,从而降低绕线难度。换言之,观测单元可以被布置为使得与观测点之间的连线距离以及与临近扫描单元之间的连线距离之和小于预定阈值。As shown in FIG2 , the observation unit can be located at the beginning, the middle or the end of the chain in the scan chain. For example, the observation unit 220 and the observation unit 221 are located at the middle of the scan chain 201. The observation unit 223 is located at the end of the scan chain 205. The observation unit 224 is located at the beginning of the scan chain 203. In this way, the observation unit can be flexibly arranged in the scan chain so that the position of the observation unit is close to the position of the observation point and/or the position of the observation unit is close to other scanning units in the scan chain, thereby reducing the difficulty of wiring. In other words, the observation unit can be arranged so that the sum of the connection distance between the observation point and the connection distance between the adjacent scanning units is less than a predetermined threshold.

在一些实施例中,扫描链还可以包括时钟门控设备(未示出)。时钟门控设备的第一输入连接到时钟信号,时钟门控设备的第二输入连接到用于控制扫描链是否接收时钟信号的时钟门控信号,并且时钟门控设备的输出连接到扫描链中的多个扫描单元的时钟输入端口。In some embodiments, the scan chain may further include a clock gating device (not shown), wherein a first input of the clock gating device is connected to a clock signal, a second input of the clock gating device is connected to a clock gating signal for controlling whether the scan chain receives the clock signal, and an output of the clock gating device is connected to clock input ports of a plurality of scan units in the scan chain.

应理解,图2中所示的环境200仅是示例性的,而不构成对本公开的范围的限制。例如,扫描链的数目可以是任意合适的数值,并且每个扫描链中的观测单元的数目可以是任意合适的数值。It should be understood that the environment 200 shown in Figure 2 is merely exemplary and does not constitute a limitation on the scope of the present disclosure. For example, the number of scan chains may be any suitable value, and the number of observation units in each scan chain may be any suitable value.

图3示出了根据本公开的一些实施例的观测单元300的示意图。观测单元300可以是观测单元220、221、222、223和224的具体实现方式。如图3所示,观测单元300可以包括信号组合器310和扫描单元320。信号组合器310的第一输入可以连接到待测电路中的观测点,并且第二输入可以连接到由扫描链移位的上一个时序门或初始移入的测试向量。信号组合器310的第一输出和第二输出分别连接到扫描单元320的对应输入。扫描单元320可以包括与观测点处的值关联的D端、与前一个扫描单元的输出或所移入的测试向量关联的SI端、与移位捕获模式的使能信号关联的SE端以及Q端。FIG3 shows a schematic diagram of an observation unit 300 according to some embodiments of the present disclosure. The observation unit 300 may be a specific implementation of the observation units 220, 221, 222, 223, and 224. As shown in FIG3, the observation unit 300 may include a signal combiner 310 and a scan unit 320. The first input of the signal combiner 310 may be connected to an observation point in the circuit to be tested, and the second input may be connected to the last timing gate shifted by the scan chain or the test vector initially shifted in. The first output and the second output of the signal combiner 310 are respectively connected to the corresponding inputs of the scan unit 320. The scan unit 320 may include a D terminal associated with the value at the observation point, an SI terminal associated with the output of the previous scan unit or the test vector shifted in, an SE terminal associated with the enable signal of the shift capture mode, and a Q terminal.

观测单元300被配置为在(传统)移位模式、(传统)捕获模式、移位捕获模式和电路工作模式中操作。在移位捕获模式中,信号组合器310被配置为基于待测电路中的观测点处的值与先前一个扫描单元所输出的第一移位值或所移入的测试向量的值的组合,生成信号组合器310的第一输出(与SI端对应的输出)处的第一组合值。扫描单元320被配置为基于第一组合值,生成扫描观测值,以从Q端输出。通过将扫描观测值移出扫描链,并且与预设的正确值比较,可以检测待测电路中是否存在故障。The observation unit 300 is configured to operate in a (traditional) shift mode, a (traditional) capture mode, a shift capture mode, and a circuit operation mode. In the shift capture mode, the signal combiner 310 is configured to generate a first combined value at the first output (the output corresponding to the SI terminal) of the signal combiner 310 based on the value at the observation point in the circuit to be tested and the combination of the first shift value output by a previous scan unit or the value of the test vector shifted in. The scan unit 320 is configured to generate a scanned observation value based on the first combined value to be output from the Q terminal. By shifting the scanned observation value out of the scan chain and comparing it with the preset correct value, it is possible to detect whether there is a fault in the circuit to be tested.

换言之,观测单元300可以基于先前一个扫描单元(可以是普通扫描单元或者另一观测单元中的扫描单元)所移出的移位值(对应于观测单元处于扫描链的链中或链尾位置的情况)或初始移入的测试向量的值(对应于观测单元处于扫描链的链首位置的情况)与观测点处所捕获的值的组合,生成扫描观测值。以此方式,可以在移位周期中将扫描链中先前一个扫描单元的值或初始移入的测试向量的值移位,同时获取待测电路中的观测点处的值,以此来实现在移位时观测电路故障的功能。In other words, the observation unit 300 can generate a scan observation value based on a combination of a shift value shifted out by a previous scan unit (which can be a common scan unit or a scan unit in another observation unit) (corresponding to the case where the observation unit is in the middle or tail position of the scan chain) or the value of the test vector initially shifted in (corresponding to the case where the observation unit is at the head position of the scan chain) and the value captured at the observation point. In this way, the value of a previous scan unit in the scan chain or the value of the test vector initially shifted in can be shifted in the shift cycle, and the value at the observation point in the circuit to be tested can be obtained at the same time, so as to realize the function of observing circuit faults during shifting.

当观测单元300处于扫描链的链中或链尾位置时,在移位模式中,信号组合器310被配置为基于先前扫描单元输出的第一移位值,生成信号组合器310的第一输出(与SI端对应的输出)处的第二组合值。扫描单元320被配置为基于第二组合值生成第二移位值,并且第二移位值与先前扫描单元输出的第一移位值相同。When the observation unit 300 is in the middle or tail position of the scan chain, in the shift mode, the signal combiner 310 is configured to generate a second combination value at the first output (the output corresponding to the SI terminal) of the signal combiner 310 based on the first shift value output by the previous scan unit. The scan unit 320 is configured to generate a second shift value based on the second combination value, and the second shift value is the same as the first shift value output by the previous scan unit.

在捕获模式中,信号组合器310被配置为基于观测点处的值或观测点处的值与第一移位值的组合,生成信号组合器的第二输出(与D端对应的输出)处的第三组合值。扫描单元320被配置为基于第三组合值,生成与第三组合值相同的捕获值。In the capture mode, the signal combiner 310 is configured to generate a third combined value at the second output (the output corresponding to the D terminal) of the signal combiner based on the value at the observation point or the combination of the value at the observation point and the first shift value. The scanning unit 320 is configured to generate a capture value identical to the third combined value based on the third combined value.

当观测单元300处于扫描链的链首位置时,在移位模式中,信号组合器310被配置为基于测试向量的至少一部分,生成信号组合器310的第一输出(与SI端对应的输出)处的第二组合值。扫描单元320被配置为基于第二组合值生成第二移位值,并且第二移位值与该测试向量的至少一部分相同。此外,连接在观测单元300后的普通扫描单元可以基于第二移位值生成与第二移位值相同的移位值。When the observation unit 300 is at the head position of the scan chain, in the shift mode, the signal combiner 310 is configured to generate a second combination value at the first output (the output corresponding to the SI terminal) of the signal combiner 310 based on at least a portion of the test vector. The scanning unit 320 is configured to generate a second shift value based on the second combination value, and the second shift value is the same as at least a portion of the test vector. In addition, the ordinary scanning unit connected after the observation unit 300 can generate a shift value that is the same as the second shift value based on the second shift value.

在捕获模式中,信号组合器310被配置为基于观测点处的值或观测点处的值与待测电路中的功能逻辑连接点处的值的组合,生成信号组合器的第二输出(与D端对应的输出)处的第三组合值。扫描单元320被配置为基于第三组合值,生成与第三组合值相同的捕获值。此外,连接在观测单元300后的普通扫描单元可以基于待测电路中与该普通扫描单元对应的功能逻辑连接点处的值生成测试响应的至少一部分。In the capture mode, the signal combiner 310 is configured to generate a third combination value at the second output (the output corresponding to the D terminal) of the signal combiner based on the value at the observation point or the combination of the value at the observation point and the value at the functional logic connection point in the circuit under test. The scanning unit 320 is configured to generate a capture value that is the same as the third combination value based on the third combination value. In addition, the ordinary scanning unit connected after the observation unit 300 can generate at least a part of the test response based on the value at the functional logic connection point in the circuit under test corresponding to the ordinary scanning unit.

观测单元300在上述各个模式中操作的细节将在下文参考图4至图6来描述。The details of the operation of the observation unit 300 in the above-mentioned respective modes will be described below with reference to FIGS. 4 to 6 .

图4示出了根据本公开的一些实施例的观测单元400的第一示例的示意图。观测单元400可以是观测单元300的一个具体示例。如图4所示,观测单元400中的信号组合器可以包括与门401和异或门402。观测单元400还可以包括扫描单元450。在本公开的实施例中,与普通扫描单元不同的是,观测单元400中的扫描单元在移位过程中的输出不驱动待测电路。FIG4 shows a schematic diagram of a first example of an observation unit 400 according to some embodiments of the present disclosure. The observation unit 400 may be a specific example of the observation unit 300. As shown in FIG4 , the signal combiner in the observation unit 400 may include an AND gate 401 and an XOR gate 402. The observation unit 400 may also include a scanning unit 450. In an embodiment of the present disclosure, unlike a common scanning unit, the output of the scanning unit in the observation unit 400 does not drive the circuit under test during the shifting process.

观测单元400可以包括多个输入端口和一个输出端口。如图所示,观测单元400可以包括用于接收移位捕获模式的使能信号的移位捕获使能端口en、用于接收观测点处的值的观测输入端口od、用于接收由扫描链移位的先前一个时序门或初始移入的测试向量的移位输入端口si、用于接收移位使能信号的移位使能端口se以及用于接收时钟信号的时钟输入端口clk。观测单元400还可以包括用于接收触发器复位信号的复位端口rn和用于输出的输出端口q。观测单元400的输出可以被输入到扫描链中的下一个时序门,例如与观测单元400串联的下一个扫描单元或观测单元。如果观测单元400位于链尾位置,观测单元400的输出可以通过主输出端口被移出。The observation unit 400 may include a plurality of input ports and an output port. As shown in the figure, the observation unit 400 may include a shift capture enable port en for receiving an enable signal of a shift capture mode, an observation input port od for receiving a value at an observation point, a shift input port si for receiving a previous timing gate shifted by a scan chain or a test vector initially shifted in, a shift enable port se for receiving a shift enable signal, and a clock input port clk for receiving a clock signal. The observation unit 400 may also include a reset port rn for receiving a trigger reset signal and an output port q for output. The output of the observation unit 400 may be input to the next timing gate in the scan chain, such as the next scan unit or observation unit connected in series with the observation unit 400. If the observation unit 400 is located at the end of the chain, the output of the observation unit 400 may be shifted out through the main output port.

表1示出了观测单元400的端口的信息。Table 1 shows information of ports of the observation unit 400 .

表1:Table 1:

端口port 方向direction 作用effect enen 输入enter 接收移位捕获模式的使能信号Receive shift capture mode enable signal odod 输入enter 接收电路中观测点处的值The value at the observation point in the receiving circuit sisi 输入enter 接收由扫描链移位的上一个时序门或初始移入的测试向量Receives the last sequential gate shifted by the scan chain or the test vector initially shifted in ses 输入enter 接收移位使能信号Receive shift enable signal clkclk 输入enter 接收时钟信号Receive clock signal rnrn 输入enter 接收触发器复位信号Receive trigger reset signal qq 输出Output 输出观测单元的值Output the value of the observation unit

如图4所示,与门401被配置为接收移位捕获模式的使能信号和观测点处的值,生成与扫描单元450的SI端对应的值。异或门402被配置为基于与门401的输出和由扫描链移位的上一个时序门(例如,先前扫描单元移出的第一移位值)或初始移入的测试向量,生成与扫描单元450的SI端对应的值。通过控制en端口和se端口处的信号,可以使得观测单元400在相应的工作模式中操作。表2示出了观测单元400的工作模式。As shown in FIG4 , the AND gate 401 is configured to receive the enable signal of the shift capture mode and the value at the observation point, and generate a value corresponding to the SI terminal of the scan unit 450. The XOR gate 402 is configured to generate a value corresponding to the SI terminal of the scan unit 450 based on the output of the AND gate 401 and the last timing gate shifted by the scan chain (for example, the first shift value shifted out of the previous scan unit) or the test vector initially shifted in. By controlling the signals at the en port and the se port, the observation unit 400 can be operated in the corresponding working mode. Table 2 shows the working mode of the observation unit 400.

表2:Table 2:

当en端和se端的输入信号均置为1时,移位捕获模式开启。在移位捕获模式中,在移位周期中,观测单元400接收扫描链上前一个时钟门的值(例如,前一个扫描单元的输出的移位值)的同时捕获观测点处的值,以此实现在移位周期中对电路进行观测,使得原本仅在捕获过程中才能捕获的故障也能在移位周期中被捕获,从而极大提升测试效率。When the input signals of the en terminal and the se terminal are both set to 1, the shift capture mode is turned on. In the shift capture mode, in the shift cycle, the observation unit 400 receives the value of the previous clock gate on the scan chain (for example, the shift value of the output of the previous scan unit) and captures the value at the observation point, so as to observe the circuit in the shift cycle, so that the fault that can only be captured in the capture process can also be captured in the shift cycle, thereby greatly improving the test efficiency.

图5示出了根据本公开的一些实施例的观测单元500的第二示例的示意图。观测单元500可以是观测单元300的一个具体示例。如图5所示,观测单元500中的信号组合器可以包括与门501、异或门502和异或门503。观测单元500还包括扫描单元550。FIG5 shows a schematic diagram of a second example of an observation unit 500 according to some embodiments of the present disclosure. The observation unit 500 may be a specific example of the observation unit 300. As shown in FIG5 , the signal combiner in the observation unit 500 may include an AND gate 501, an XOR gate 502, and an XOR gate 503. The observation unit 500 further includes a scanning unit 550.

与观测单元400类似,观测单元500可以包括多个输入端口和一个输出端口。如图所示,观测单元500可以包括移位捕获使能端口en、观测输入端口od、移位输入端口si、移位使能端口se以及时钟输入端口clk、复位端口rn和输出端口q。观测单元500还包括用于接收待测电路中与其所包含的扫描单元550对应的功能逻辑连接点处的值的测试数据输入端口fd。Similar to the observation unit 400, the observation unit 500 may include a plurality of input ports and an output port. As shown in the figure, the observation unit 500 may include a shift capture enable port en, an observation input port od, a shift input port si, a shift enable port se, a clock input port clk, a reset port rn, and an output port q. The observation unit 500 also includes a test data input port fd for receiving the value at the functional logic connection point corresponding to the scan unit 550 contained in the circuit under test.

表3示出了观测单元500的端口的信息。Table 3 shows information of the ports of the observation unit 500 .

表3:Table 3:

端口port 方向direction 作用effect fdfd 输入enter 接收扫描单元对应的功能逻辑连接点处的值Receive the value at the function logic connection point corresponding to the scan unit enen 输入enter 接收移位捕获模式的使能信号Receive shift capture mode enable signal odod 输入enter 接收电路中观测点处的值The value at the observation point in the receiving circuit sisi 输入enter 接收由扫描链移位的上一个时序门或初始移入的测试向量Receives the last sequential gate shifted by the scan chain or the test vector initially shifted in ses 输入enter 接收移位使能信号Receive shift enable signal clkclk 输入enter 接收时钟信号Receive clock signal rnrn 输入enter 接收触发器复位信号Receive trigger reset signal qq 输出Output 输出观测单元的值Output the value of the observation unit

如图5所示,与门501被配置为接收移位捕获模式的使能信号和观测点处的值。异或门502被配置为基于与门501的输出和由扫描链移位的上一个时序门(例如,先前扫描单元移出的第一移位值)或初始移入的测试向量,生成与扫描单元550的SI端对应的值。异或门503被配置为基于与门501的输出和待测电路中的功能逻辑连接点处的值生成与扫描单元550的D端对应的值。通过控制en端口和se端口处的信号,可以使得观测单元500在相应的工作模式中操作。表4示出了观测单元500的工作模式。As shown in Figure 5, AND gate 501 is configured to receive an enable signal of the shift capture mode and a value at an observation point. XOR gate 502 is configured to generate a value corresponding to the SI end of scan unit 550 based on the output of AND gate 501 and the last timing gate shifted by the scan chain (for example, the first shift value shifted out of the previous scan unit) or the test vector initially shifted in. XOR gate 503 is configured to generate a value corresponding to the D end of scan unit 550 based on the output of AND gate 501 and the value at the functional logic connection point in the circuit to be tested. By controlling the signals at the en port and the se port, the observation unit 500 can be operated in the corresponding working mode. Table 4 shows the working mode of the observation unit 500.

表4:Table 4:

与观测单元400相比,观测单元500可以复用电路中原本已经存在的扫描单元,让这些已经存在的扫描单元同时能执行传统捕获模式和移位捕获模式,同时不影响扫描单元在正常工作时的功能,从而节省硬件成本并减少面积开销。Compared with observation unit 400, observation unit 500 can reuse the existing scanning units in the circuit, allowing these existing scanning units to execute traditional capture mode and shift capture mode at the same time without affecting the functions of the scanning units in normal operation, thereby saving hardware costs and reducing area overhead.

图6示出了根据本公开的一些实施例的扫描测试中的控制信号和时钟信号的示意图。图6示出了普通扫描单元的时钟信号clk1、移位使能信号se、移位捕获模式的使能信号en(处于高电平)以及观测单元的时钟信号clk2的变化。Figure 6 shows a schematic diagram of control signals and clock signals in a scan test according to some embodiments of the present disclosure. Figure 6 shows the changes of the clock signal clk1 of the normal scan unit, the shift enable signal se, the enable signal en (at a high level) of the shift capture mode, and the clock signal clk2 of the observation unit.

如图6所示,在移位周期中控制信号en与se均为高电平,扫描链在移位捕获模式中操作。具体地,普通扫描单元移入测试向量或前一个时序门的值,并且输出值以驱动待测电路。观测单元在移位的同时捕获观测点处的值,并且输出值到下一个时序门或主输出端口。在移位捕获模式中,当前时钟周期中观测单元基于先前一个时钟周期中先前扫描单元输出的移位值(对应于观测单元处于扫描链的链中或链尾的情况)或初始移入的测试向量的值(对应于观测单元处于扫描链的链首的情况)与当前时钟周期中所捕获的观测点处的值的组合而输出值。As shown in FIG6 , in the shift cycle, the control signals en and se are both high level, and the scan chain operates in the shift capture mode. Specifically, the normal scan unit shifts in the test vector or the value of the previous timing gate, and outputs the value to drive the circuit to be tested. The observation unit captures the value at the observation point while shifting, and outputs the value to the next timing gate or the main output port. In the shift capture mode, the observation unit in the current clock cycle outputs a value based on the shift value output by the previous scan unit in the previous clock cycle (corresponding to the case where the observation unit is in the middle or end of the scan chain) or the value of the test vector initially shifted in (corresponding to the case where the observation unit is at the beginning of the scan chain) and the value at the observation point captured in the current clock cycle.

在捕获周期中控制信号en保持为高电平而se信号置为低电平,扫描链在捕获模式中操作。具体地,普通扫描单元从待测电路获取测试响应,并且观测单元也进入传统捕获工作模式以从待测电路的观测点处捕获值。在一些实施例中,当利用观测单元400时,在捕获模式中,当前时钟周期中观测单元基于当前时钟周期中所捕获的观测点处的值而输出值。备选地,当利用观测单元500时,当前时钟周期中观测单元基于当前时钟周期中所捕获的观测点处的值与功能逻辑连接点处的值的组合(例如,异或)而输出值。In the capture cycle, the control signal en is kept at a high level and the se signal is set to a low level, and the scan chain operates in the capture mode. Specifically, the ordinary scan unit obtains the test response from the circuit to be tested, and the observation unit also enters the traditional capture working mode to capture the value from the observation point of the circuit to be tested. In some embodiments, when the observation unit 400 is used, in the capture mode, the observation unit outputs a value in the current clock cycle based on the value at the observation point captured in the current clock cycle. Alternatively, when the observation unit 500 is used, the observation unit outputs a value in the current clock cycle based on the combination (e.g., XOR) of the value at the observation point captured in the current clock cycle and the value at the functional logic connection point.

尽管未示出,当控制信号en置为低电平时,扫描链可以在传统的移位模式和捕获模式中操作,也即在移位周期移入测试向量(或移出测试响应)或前一个时序门的值,并且在捕获模式中从待测电路捕获测试响应。具体地,在移位模式中,当前时钟周期中观测单元基于先前一个时钟周期中先前一个扫描单元输出的移位值或初始移入的测试向量的值而输出值。Although not shown, when the control signal en is set to a low level, the scan chain can operate in a conventional shift mode and a capture mode, that is, a test vector is shifted in (or a test response is shifted out) or the value of a previous timing gate in a shift cycle, and a test response is captured from the circuit under test in the capture mode. Specifically, in the shift mode, the observation unit in the current clock cycle outputs a value based on a shift value output by a previous scan unit in a previous clock cycle or the value of the test vector initially shifted in.

图7示出了根据本公开的一些实施例的用于扫描测试的电路系统700的示意图。如图7所示,电路系统700包括多个扫描链,并且每个扫描链中的观测单元被布置在链尾位置。当观测单元处于链尾位置时,原本各条扫描链的末尾的普通扫描单元的输出值将在每个移位周期和待测电路中的观测点处的值经过异或后移入观测单元中的扫描单元,最终再移出扫描链以用于观测。以此方式,观测单元后方不存在任何会驱动原生电路逻辑的扫描单元,从而减小了对仿真时间的影响。此外,相比观测单元处于链首或链中位置的情况,由于观测单元后没有会有驱动电路原生逻辑的普通扫描单元,无需考虑测试向量在通过观测单元后的变化,从而减小了测试难度。FIG. 7 shows a schematic diagram of a circuit system 700 for scan testing according to some embodiments of the present disclosure. As shown in FIG. 7 , the circuit system 700 includes a plurality of scan chains, and the observation unit in each scan chain is arranged at the tail position of the chain. When the observation unit is at the tail position of the chain, the output value of the ordinary scan unit at the end of each scan chain will be XORed into the scan unit in the observation unit after each shift cycle and the value at the observation point in the circuit to be tested, and finally moved out of the scan chain for observation. In this way, there is no scan unit behind the observation unit that will drive the native circuit logic, thereby reducing the impact on the simulation time. In addition, compared with the case where the observation unit is at the head or middle position of the chain, since there is no ordinary scan unit behind the observation unit that will drive the native logic of the circuit, there is no need to consider the change of the test vector after passing through the observation unit, thereby reducing the difficulty of testing.

图8示出了根据本公开的一些实施例的利用测试压缩技术的用于扫描测试的电路系统的示意图。如图8所示,扫描系统中的多个扫描链可以利用测试压缩技术。通过解压器810可以将从少数端口输入的测试向量通过解压缩的方式扩展到等同于扫描链数量的宽度以同时输入到各个扫描链中。此外,从扫描链输出的测试响应又可以通过压缩器820被压缩成少数端口宽度的输出值,从而减少了测试需要的测试向量输入输出端口的数目。FIG8 shows a schematic diagram of a circuit system for scan testing using test compression technology according to some embodiments of the present disclosure. As shown in FIG8 , multiple scan chains in a scan system can utilize test compression technology. The test vectors input from a few ports can be expanded to a width equal to the number of scan chains by decompression by a decompressor 810 so as to be simultaneously input into each scan chain. In addition, the test response output from the scan chain can be compressed into an output value of a few port widths by a compressor 820, thereby reducing the number of test vector input and output ports required for testing.

图9示出了根据本公开的一些实施例的用于扫描测试的方法900的示例过程的示意性框图。方法900可以由任意合适的处理器执行,例如实现EDA软件功能的处理器。Fig. 9 is a schematic block diagram of an example process of a method 900 for scan testing according to some embodiments of the present disclosure. The method 900 may be executed by any suitable processor, such as a processor implementing EDA software functions.

在框910,在移位捕获模式中向扫描链移入测试向量。在框920,在移位捕获模式中基于测试向量的至少一部分和待测电路中的观测点处的值生成扫描观测值。扫描链被配置为包括:第一扫描单元,被配置为基于所述测试向量的所述至少一部分生成第一移位值;以及观测单元,与所述第一扫描单元串联,并且所述观测单元包括:信号组合器,被配置为在所述移位捕获模式中,基于所述观测点处的值与所述第一扫描单元输出的所述第一移位值的组合,生成第一组合值;以及第二扫描单元,被配置为在所述移位捕获模式中,基于所述第一组合值,生成所述扫描观测值。In block 910, a test vector is shifted into a scan chain in a shift capture mode. In block 920, a scan observation value is generated in the shift capture mode based on at least a portion of the test vector and a value at an observation point in the circuit to be tested. The scan chain is configured to include: a first scan unit configured to generate a first shift value based on the at least a portion of the test vector; and an observation unit connected in series with the first scan unit, and the observation unit includes: a signal combiner configured to generate a first combination value in the shift capture mode based on a combination of the value at the observation point and the first shift value output by the first scan unit; and a second scan unit configured to generate the scan observation value in the shift capture mode based on the first combination value.

在一些实施例中,方法900还包括在移位模式中向所述扫描链移入所述测试向量,其中:所述信号组合器被进一步配置为在所述移位模式中,基于所述第一扫描单元输出的所述第一移位值,生成所述信号组合器的所述第一输出处的第二组合值;并且所述第二扫描单元被进一步配置为在所述移位模式中,基于所述第二组合值生成第二移位值,所述第二移位值与所述第一扫描单元输出的所述第一移位值相同。In some embodiments, method 900 also includes shifting the test vector into the scan chain in a shift mode, wherein: the signal combiner is further configured to generate a second combination value at the first output of the signal combiner based on the first shift value output by the first scan unit in the shift mode; and the second scan unit is further configured to generate a second shift value based on the second combination value in the shift mode, and the second shift value is the same as the first shift value output by the first scan unit.

在一些实施例中,方法900还包括在捕获模式中获取捕获值,其中:所述信号组合器被进一步配置为在所述捕获模式中,基于所述观测点处的值或所述观测点处的值与所述待测电路中的功能逻辑连接点处的值的组合,生成所述信号组合器的第二输出处的第三组合值;并且所述第二扫描单元被进一步配置为在所述捕获模式中,基于所述第三组合值,生成与所述第三组合值相同的所述捕获值。In some embodiments, method 900 also includes obtaining a capture value in a capture mode, wherein: the signal combiner is further configured to generate a third combination value at a second output of the signal combiner in the capture mode based on the value at the observation point or a combination of the value at the observation point and the value at a functional logic connection point in the circuit under test; and the second scanning unit is further configured to generate the capture value that is the same as the third combination value in the capture mode based on the third combination value.

在一些实施例中,所述信号组合器包括:与门,被配置为接收所述移位捕获模式的使能信号和所述观测点处的值;以及第一异或门,被配置为基于所述与门的输出和所述第一移位值,生成所述信号组合器的所述第一输出处的值。In some embodiments, the signal combiner includes: an AND gate configured to receive an enable signal of the shift capture mode and the value at the observation point; and a first XOR gate configured to generate a value at the first output of the signal combiner based on an output of the AND gate and the first shift value.

在一些实施例中,所述信号组合器还包括第二异或门,所述第二异或门被配置为基于所述与门的输出和所述待测电路中的功能逻辑连接点处的值生成所述信号组合器的第二输出处的值。In some embodiments, the signal combiner further comprises a second XOR gate configured to generate a value at a second output of the signal combiner based on an output of the AND gate and a value at a functional logic connection point in the circuit under test.

在一些实施例中,所述观测单元处于所述扫描链的链中位置或链尾位置。In some embodiments, the observation unit is located in the middle or at the end of the scan chain.

在一些实施例中,所述观测单元与所述观测点之间的连线距离以及所述观测单元与所述第一扫描单元之间的连线距离之和小于预定阈值。In some embodiments, a sum of a line distance between the observation unit and the observation point and a line distance between the observation unit and the first scanning unit is less than a predetermined threshold.

尽管未示出,本公开的实施例还提供了一种用于扫描测试的方法。该方法包括:在移位捕获模式中向扫描链移入测试向量;以及在所述移位捕获模式中基于所述测试向量的至少一部分和所述待测电路中的观测点处的值生成扫描观测值,其中所述扫描链被配置为包括:第一扫描单元,被配置为基于所述测试向量的所述至少一部分生成第一移位值;以及观测单元,与所述第一扫描单元串联,并且所述观测单元包括:信号组合器,被配置为在所述移位捕获模式中,基于所述观测点处的值与所述第一扫描单元输出的所述第一移位值的组合,生成第一组合值;以及第二扫描单元,被配置为在所述移位捕获模式中,基于所述第一组合值,生成所述扫描观测值。Although not shown, an embodiment of the present disclosure also provides a method for scan testing. The method includes: shifting a test vector into a scan chain in a shift capture mode; and generating a scan observation value based on at least a portion of the test vector and a value at an observation point in the circuit to be tested in the shift capture mode, wherein the scan chain is configured to include: a first scan unit configured to generate a first shift value based on at least a portion of the test vector; and an observation unit connected in series with the first scan unit, and the observation unit includes: a signal combiner configured to generate a first combination value based on a combination of the value at the observation point and the first shift value output by the first scan unit in the shift capture mode; and a second scan unit configured to generate the scan observation value based on the first combination value in the shift capture mode.

在一些实施例中,方法还包括在移位模式中向所述扫描链移入所述测试向量,其中:所述信号组合器被进一步配置为在所述移位模式中,基于所述测试向量的所述至少一部分,生成所述信号组合器的所述第一输出处的第二组合值;所述第二扫描单元被进一步配置为在所述移位模式中,基于所述第二组合值生成第二移位值,所述第二移位值与所述测试向量的所述至少一部分相同;并且所述第一扫描单元被进一步配置为所述在移位模式中,基于所述第二移位值生成第三移位值,所述第三移位值与所述第二移位值相同。In some embodiments, the method also includes shifting the test vector into the scan chain in a shift mode, wherein: the signal combiner is further configured to generate a second combination value at the first output of the signal combiner based on the at least a portion of the test vector in the shift mode; the second scan unit is further configured to generate a second shift value based on the second combination value in the shift mode, the second shift value being the same as the at least a portion of the test vector; and the first scan unit is further configured to generate a third shift value based on the second shift value in the shift mode, the third shift value being the same as the second shift value.

在一些实施例中,方法还包括在捕获模式中获取捕获值,其中:所述信号组合器被进一步配置为在所述捕获模式中,基于所述观测点处的值或所述观测点处的值与所述待测电路中的第一功能逻辑连接点处的值的组合,生成所述信号组合器的第二输出处的第三组合值;所述第二扫描单元被进一步配置为在所述捕获模式中,基于所述第三组合值,生成与所述第三组合值相同的所述捕获值;并且所述第一扫描单元被进一步配置为在所述捕获模式中,基于所述待测电路中的第二功能逻辑连接点处的值生成测试响应的至少一部分。In some embodiments, the method also includes obtaining a captured value in a capture mode, wherein: the signal combiner is further configured to generate a third combined value at a second output of the signal combiner in the capture mode based on the value at the observation point or a combination of the value at the observation point and the value at a first functional logic connection point in the circuit under test; the second scanning unit is further configured to generate the captured value identical to the third combined value in the capture mode based on the third combined value; and the first scanning unit is further configured to generate at least a part of a test response in the capture mode based on the value at a second functional logic connection point in the circuit under test.

在一些实施例中,所述信号组合器包括:与门,被配置为接收所述移位捕获模式的使能信号和所述观测点处的值;以及第一异或门,被配置为基于所述与门的输出和所述测试向量的所述至少一部分,生成所述信号组合器的所述第一输出处的值。In some embodiments, the signal combiner includes: an AND gate configured to receive an enable signal of the shift capture mode and a value at the observation point; and a first XOR gate configured to generate a value at the first output of the signal combiner based on an output of the AND gate and at least a portion of the test vector.

在一些实施例中,所述信号组合器还包括第二异或门,所述第二异或门被配置为基于所述与门的输出和所述待测电路中的功能逻辑连接点处的值生成所述信号组合器的第二输出处的值。In some embodiments, the signal combiner further comprises a second XOR gate configured to generate a value at a second output of the signal combiner based on an output of the AND gate and a value at a functional logic connection point in the circuit under test.

在一些实施例中,所述观测单元处于所述扫描链的链首位置。In some embodiments, the observation unit is located at the head of the scan chain.

示例装置和设备Example devices and equipment

图10示出了根据本公开实施例的用于扫描测试的装置1000的框图。具体地,装置1000可以是EDA软件装置。装置1000可以包括多个模块,以用于执行如图9中所讨论的过程900中的对应步骤。如图10所示,装置1000包括移位单元1010,其被配置为在移位捕获模式中向扫描链移入测试向量。装置1000还包括捕获单元1020,其被配置为在所述移位捕获模式中基于所述测试向量的至少一部分和所述待测电路中的观测点处的值生成扫描观测值。所述扫描链被配置为包括:第一扫描单元,被配置为基于所述测试向量的所述至少一部分生成第一移位值;以及观测单元,与所述第一扫描单元串联,并且所述观测单元包括:信号组合器,被配置为在所述移位捕获模式中,基于所述观测点处的值与所述第一扫描单元输出的所述第一移位值的组合,生成第一组合值;以及第二扫描单元,被配置为在所述移位捕获模式中,基于所述第一组合值,生成所述扫描观测值。FIG10 shows a block diagram of an apparatus 1000 for scan testing according to an embodiment of the present disclosure. Specifically, the apparatus 1000 may be an EDA software apparatus. The apparatus 1000 may include a plurality of modules for performing corresponding steps in the process 900 as discussed in FIG9 . As shown in FIG10 , the apparatus 1000 includes a shift unit 1010 configured to shift a test vector into a scan chain in a shift capture mode. The apparatus 1000 also includes a capture unit 1020 configured to generate a scan observation value based on at least a portion of the test vector and a value at an observation point in the circuit under test in the shift capture mode. The scan chain is configured to include: a first scan unit, configured to generate a first shift value based on at least a portion of the test vector; and an observation unit, connected in series with the first scan unit, and the observation unit includes: a signal combiner, configured to generate a first combination value based on a combination of a value at the observation point and the first shift value output by the first scan unit in the shift capture mode; and a second scan unit, configured to generate the scan observation value based on the first combination value in the shift capture mode.

在一些实施例中,所述信号组合器被进一步配置为在移位模式中,基于所述第一扫描单元输出的所述第一移位值,生成所述信号组合器的所述第一输出处的第二组合值;并且所述第二扫描单元被进一步配置为在所述移位模式中,基于所述第二组合值生成第二移位值,所述第二移位值与所述第一扫描单元输出的所述第一移位值相同。In some embodiments, the signal combiner is further configured to generate a second combination value at the first output of the signal combiner based on the first shift value output by the first scanning unit in a shift mode; and the second scanning unit is further configured to generate a second shift value based on the second combination value in the shift mode, and the second shift value is the same as the first shift value output by the first scanning unit.

在一些实施例中,所述信号组合器被进一步配置为在捕获模式中,基于所述观测点处的值或所述观测点处的值与所述第一移位值的组合,生成所述信号组合器的第二输出处的第三组合值;并且所述第二扫描单元被进一步配置为在所述捕获模式中,基于所述第三组合值,生成与所述第三组合值相同的捕获值。In some embodiments, the signal combiner is further configured to generate a third combined value at the second output of the signal combiner in a capture mode based on the value at the observation point or a combination of the value at the observation point and the first shift value; and the second scanning unit is further configured to generate a capture value identical to the third combined value in the capture mode based on the third combined value.

在一些实施例中,所述信号组合器包括:与门,被配置为接收所述移位捕获模式的使能信号和所述观测点处的值;以及第一异或门,被配置为基于所述与门的输出和所述第一移位值,生成所述信号组合器的所述第一输出处的值。In some embodiments, the signal combiner includes: an AND gate configured to receive an enable signal of the shift capture mode and the value at the observation point; and a first XOR gate configured to generate a value at the first output of the signal combiner based on an output of the AND gate and the first shift value.

在一些实施例中,所述信号组合器还包括第二异或门,所述第二异或门被配置为基于所述与门的输出和所述待测电路中的功能逻辑连接点处的值生成所述信号组合器的第二输出处的值。In some embodiments, the signal combiner further comprises a second XOR gate configured to generate a value at a second output of the signal combiner based on an output of the AND gate and a value at a functional logic connection point in the circuit under test.

在一些实施例中,在所述移位模式中,当前时钟周期中所述观测单元基于先前一个时钟周期中所述第一扫描单元输出的所述第一移位值而输出值。In some embodiments, in the shift mode, the observation unit in a current clock cycle outputs a value based on the first shift value output by the first scanning unit in a previous clock cycle.

在一些实施例中,在所述移位捕获模式中,当前时钟周期中所述观测单元基于先前一个时钟周期中所述第一扫描单元输出的所述第一移位值与所述当前时钟周期中所捕获的所述观测点处的值的异或而输出值。In some embodiments, in the shift capture mode, the observation unit in the current clock cycle outputs a value based on an exclusive OR of the first shift value output by the first scan unit in a previous clock cycle and the value at the observation point captured in the current clock cycle.

在一些实施例中,在所述捕获模式中,当前时钟周期中所述观测单元基于所述当前时钟周期中所捕获的所述观测点处的值而输出值。In some embodiments, in the capture mode, the observation unit in a current clock cycle outputs a value based on a value at the observation point captured in the current clock cycle.

在一些实施例中,在所述捕获模式中,当前时钟周期中所述观测单元基于所述当前时钟周期中所捕获的所述观测点处的值与所述功能逻辑连接点处的值的异或而输出值。In some embodiments, in the capture mode, the observation unit in a current clock cycle outputs a value based on an exclusive OR of a value at the observation point captured in the current clock cycle and a value at the functional logic connection point.

在一些实施例中,所述观测单元处于所述扫描链的链中位置或链尾位置。In some embodiments, the observation unit is located in the middle or at the end of the scan chain.

在一些实施例中,用于测试电路的电路系统包括多个扫描链,所述多个扫描链包括所述扫描链,其中所述多个扫描链处于压缩扫描模式或非压缩扫描模式。In some embodiments, circuitry for testing a circuit includes a plurality of scan chains including the scan chain, wherein the plurality of scan chains are in a compressed scan mode or a non-compressed scan mode.

在一些实施例中,所述观测单元与所述观测点之间的连线距离以及所述观测单元与所述第一扫描单元之间的连线距离之和小于预定阈值。In some embodiments, a sum of a line distance between the observation unit and the observation point and a line distance between the observation unit and the first scanning unit is less than a predetermined threshold.

尽管未示出,本公开的实施例还提供了一种用于扫描测试的装置。该装置包括:移位单元,被配置为在移位捕获模式中向扫描链移入测试向量;以及捕获单元,被配置为在所述移位捕获模式中基于所述测试向量的至少一部分和待测电路中的观测点处的值生成扫描观测值,其中所述扫描链被配置为包括:第一扫描单元;以及观测单元,与所述第一扫描单元串联在所述扫描链中,并且所述观测单元包括:信号组合器,被配置为在所述移位捕获模式中,基于所述待测电路中的所述观测点处的值与所述测试向量的所述至少一部分的组合,生成所述信号组合器的第一输出处的第一组合值;以及第二扫描单元,被配置为在所述移位捕获模式中,基于所述第一组合值,生成所述扫描观测值;并且其中所述第一扫描单元被配置为在所述移位捕获模式中,基于所述扫描观测值生成第一移位值。Although not shown, an embodiment of the present disclosure also provides a device for scan testing. The device includes: a shift unit configured to shift a test vector into a scan chain in a shift capture mode; and a capture unit configured to generate a scan observation value based on at least a portion of the test vector and a value at an observation point in a circuit to be tested in the shift capture mode, wherein the scan chain is configured to include: a first scan unit; and an observation unit connected in series with the first scan unit in the scan chain, and the observation unit includes: a signal combiner configured to generate a first combination value at a first output of the signal combiner based on a combination of the value at the observation point in the circuit to be tested and the at least a portion of the test vector in the shift capture mode; and a second scan unit configured to generate the scan observation value based on the first combination value in the shift capture mode; and wherein the first scan unit is configured to generate a first shift value based on the scan observation value in the shift capture mode.

在一些实施例中,所述信号组合器被进一步配置为在移位模式中,基于所述测试向量的所述至少一部分,生成所述信号组合器的所述第一输出处的第二组合值;所述第二扫描单元被进一步配置为在所述移位模式中,基于所述第二组合值生成第二移位值,所述第二移位值与所述测试向量的所述至少一部分相同;并且所述第一扫描单元被进一步配置为所述在移位模式中,基于所述第二移位值生成第三移位值,所述第三移位值与所述第二移位值相同。In some embodiments, the signal combiner is further configured to generate a second combined value at the first output of the signal combiner based on at least a portion of the test vector in a shift mode; the second scanning unit is further configured to generate a second shift value based on the second combined value in the shift mode, the second shift value being the same as the at least a portion of the test vector; and the first scanning unit is further configured to generate a third shift value based on the second shift value in the shift mode, the third shift value being the same as the second shift value.

在一些实施例中,所述信号组合器被进一步配置为在捕获模式中,基于所述观测点处的值或所述观测点处的值与所述待测电路中的第一功能逻辑连接点处的值的组合,生成所述信号组合器的第二输出处的第三组合值;所述第二扫描单元被进一步配置为在所述捕获模式中,基于所述第三组合值,生成与所述第三组合值相同的捕获值;并且所述第一扫描单元被进一步配置为在所述捕获模式中,基于所述待测电路中的第二功能逻辑连接点处的值生成测试响应的至少一部分。In some embodiments, the signal combiner is further configured to generate a third combined value at a second output of the signal combiner in a capture mode based on the value at the observation point or a combination of the value at the observation point and the value at a first functional logic connection point in the circuit under test; the second scanning unit is further configured to generate a captured value identical to the third combined value in the capture mode based on the third combined value; and the first scanning unit is further configured to generate at least a portion of a test response in the capture mode based on the value at a second functional logic connection point in the circuit under test.

在一些实施例中,所述信号组合器包括:与门,被配置为接收所述移位捕获模式的使能信号和所述观测点处的值;以及第一异或门,被配置为基于所述与门的输出和所述测试向量的所述至少一部分,生成所述信号组合器的所述第一输出处的值。In some embodiments, the signal combiner includes: an AND gate configured to receive an enable signal of the shift capture mode and a value at the observation point; and a first XOR gate configured to generate a value at the first output of the signal combiner based on an output of the AND gate and at least a portion of the test vector.

在一些实施例中,所述信号组合器还包括第二异或门,所述第二异或门被配置为基于所述与门的输出和所述待测电路中的功能逻辑连接点处的值生成所述信号组合器的第二输出处的值。In some embodiments, the signal combiner further comprises a second XOR gate configured to generate a value at a second output of the signal combiner based on an output of the AND gate and a value at a functional logic connection point in the circuit under test.

在一些实施例中,所述观测单元处于所述扫描链的链首位置。In some embodiments, the observation unit is located at the head of the scan chain.

图11示出了可以用来实施本公开的实施例的示例设备1100的示意性框图。如图所示,设备1100包括计算单元1101,其可以根据存储在随机存取存储器(RAM)1103和/或只读存储器(ROM)1102的计算机程序指令或者从存储单元1108加载到RAM1103和/或ROM 1102中的计算机程序指令,来执行各种适当的动作和处理。在RAM1103和/或ROM 1102中,还可存储设备1100操作所需的各种程序和数据。计算单元1101和RAM1103和/或ROM 1102通过总线1104彼此相连。输入/输出(I/O)接口1105也连接至总线1104。FIG. 11 shows a schematic block diagram of an example device 1100 that can be used to implement an embodiment of the present disclosure. As shown, the device 1100 includes a computing unit 1101, which can perform various appropriate actions and processes according to computer program instructions stored in a random access memory (RAM) 1103 and/or a read-only memory (ROM) 1102 or computer program instructions loaded from a storage unit 1108 into the RAM 1103 and/or the ROM 1102. In the RAM 1103 and/or the ROM 1102, various programs and data required for the operation of the device 1100 can also be stored. The computing unit 1101 and the RAM 1103 and/or the ROM 1102 are connected to each other via a bus 1104. An input/output (I/O) interface 1105 is also connected to the bus 1104.

设备1100中的多个部件连接至I/O接口1105,包括:输入单元1106,例如键盘、鼠标等;输出单元1107,例如各种类型的显示器、扬声器等;存储单元1108,例如磁盘、光盘等;以及通信单元1109,例如网卡、调制解调器、无线通信收发机等。通信单元1109允许设备1100通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。A number of components in the device 1100 are connected to the I/O interface 1105, including: an input unit 1106, such as a keyboard, a mouse, etc.; an output unit 1107, such as various types of displays, speakers, etc.; a storage unit 1108, such as a disk, an optical disk, etc.; and a communication unit 1109, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 1109 allows the device 1100 to exchange information/data with other devices through a computer network such as the Internet and/or various telecommunication networks.

计算单元1101可以是各种具有处理和计算能力的通用和/或专用处理组件。计算单元1101的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的计算单元、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。计算单元1101执行上文所描述的各个方法和处理,例如过程900。例如,在一些实施例中,过程900可被实现为计算机软件程序,具体可以是EDA程序,其被有形地包含于机器可读介质,例如存储单元1108。在一些实施例中,计算机程序的部分或者全部可以经由RAM和/或ROM和/或通信单元1109而被载入和/或安装到设备1100上。当计算机程序加载到RAM和/或ROM并由计算单元1101执行时,可以执行上文描述的过程900的一个或多个步骤。备选地,在其他实施例中,计算单元1101可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行过程900。The computing unit 1101 may be a variety of general and/or special processing components with processing and computing capabilities. Some examples of the computing unit 1101 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 1101 performs the various methods and processes described above, such as process 900. For example, in some embodiments, the process 900 may be implemented as a computer software program, specifically an EDA program, which is tangibly contained in a machine-readable medium, such as a storage unit 1108. In some embodiments, part or all of the computer program may be loaded and/or installed on the device 1100 via RAM and/or ROM and/or communication unit 1109. When the computer program is loaded into RAM and/or ROM and executed by the computing unit 1101, one or more steps of the process 900 described above may be performed. Alternatively, in other embodiments, the computing unit 1101 may be configured to perform the process 900 in any other appropriate manner (eg, by means of firmware).

在上述实施例中,方法流程可以全部或部分地通过软件、硬件、固件或者其任意组合来实现,当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令,在服务器或终端上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴光缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是服务器或终端能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(如软盘、硬盘和磁带等),也可以是光介质(如数字视盘(digital video disk,DVD)等),或者半导体介质(如固态硬盘等)。In the above embodiments, the method flow can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a server or terminal, the process or function described in the embodiment of the present application is generated in whole or in part. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a server or terminal or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (such as a floppy disk, a hard disk and a tape, etc.), an optical medium (such as a digital video disk (digital video disk, DVD), etc.), or a semiconductor medium (such as a solid state drive, etc.).

此外,虽然采用特定次序描绘了各操作,但是这应当理解为要求这样操作以所示出的特定次序或以顺序次序执行,或者要求所有图示的操作应被执行以取得期望的结果。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实现中。相反地,在单个实现的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实现中。In addition, although each operation is described in a specific order, this should be understood as requiring such operation to be performed in the specific order shown or in a sequential order, or requiring that all illustrated operations should be performed to obtain desired results. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single implementation in combination. On the contrary, the various features described in the context of a single implementation can also be implemented in multiple implementations individually or in any suitable sub-combination mode.

尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。Although the subject matter has been described in language specific to structural features and/or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims (25)

1. Circuitry for scan testing, comprising:
a first scanning unit configured to generate a first shift value based on at least a portion of the test vector; and
An observation unit connected in series with the first scanning unit in a scan chain, and comprising:
A signal combiner configured to generate, in a shift capture mode, a first combined value at a first output of the signal combiner based on a combination of a value at an observation point in a circuit under test and the first shift value output by the first scanning unit; and
A second scanning unit configured to generate a scanning observation based on the first combined value in the shift capture mode.
2. The circuitry of claim 1, wherein:
the signal combiner is further configured to generate, in a shift mode, a second combined value at the first output of the signal combiner based on the first shift value of the first scan cell output; and
The second scanning unit is further configured to generate, in the shift mode, a second shift value based on the second combined value, the second shift value being the same as the first shift value output by the first scanning unit.
3. The circuitry of claim 1 or 2, wherein:
The signal combiner is further configured to generate, in a capture mode, a third combined value at a second output of the signal combiner based on a combination of the value at the observation point or the value at the observation point and a value at a functional logic connection point in the circuit under test; and
The second scanning unit is further configured to generate, in the capture mode, a capture value that is the same as the third combined value based on the third combined value.
4. A circuit system according to any one of claims 1 to 3, wherein the signal combiner comprises:
an and gate configured to receive an enable signal of the shift capture mode and a value at the observation point; and
A first exclusive-or gate configured to generate a value at the first output of the signal combiner based on an output of the and gate and the first shift value.
5. The circuitry of claim 4, wherein the signal combiner further comprises a second exclusive-or gate configured to generate a value at a second output of the signal combiner based on the output of the and gate and a value at a functional logic connection point in the circuit under test.
6. The circuitry of any of claims 1 to 5, wherein the observation unit is at a position in a chain or a chain tail of the scan chain.
7. The circuitry of any of claims 1-6, comprising a plurality of scan chains including the scan chain, wherein the plurality of scan chains are in a compressed scan mode or a non-compressed scan mode.
8. The circuitry of any of claims 1 to 7, wherein a sum of a link distance between the observation unit and the observation point and a link distance between the observation unit and the first scanning unit is less than a predetermined threshold.
9. Circuitry for scan testing, comprising:
A first scanning unit; and
An observation unit connected in series with the first scanning unit in a scan chain, and comprising:
A signal combiner configured to generate, in a shift capture mode, a first combined value at a first output of the signal combiner based on a combination of a value at an observation point in a circuit under test and at least a portion of a test vector; and
A second scanning unit configured to generate a scanning observation value based on the first combined value in the shift capture mode; and
Wherein the first scanning unit is configured to generate a first shift value based on the scan observations in the shift capture mode.
10. The circuitry of claim 9, wherein:
the signal combiner is further configured to generate, in a shift mode, a second combined value at the first output of the signal combiner based on the at least a portion of the test vector;
the second scanning unit is further configured to generate, in the shift mode, a second shift value based on the second combined value, the second shift value being the same as the at least a portion of the test vector; and
The first scanning unit is further configured to generate, in the shift mode, a third shift value based on the second shift value, the third shift value being the same as the second shift value.
11. The circuitry of claim 9 or 10, wherein:
The signal combiner is further configured to generate, in a capture mode, a third combined value at a second output of the signal combiner based on a combination of the value at the observation point or the value at the observation point and the value at a first functional logic connection point in the circuit under test;
the second scanning unit is further configured to generate, in the capture mode, a capture value that is the same as the third combined value based on the third combined value; and
The first scan cell is further configured to generate at least a portion of a test response based on a value at a second functional logic connection point in the circuit under test in the capture mode.
12. The circuitry of any of claims 9 to 11, wherein the signal combiner comprises:
an and gate configured to receive an enable signal of the shift capture mode and a value at the observation point; and
A first exclusive-or gate configured to generate a value at the first output of the signal combiner based on the output of the and gate and the at least a portion of the test vector.
13. The circuitry of claim 12, wherein the signal combiner further comprises a second exclusive-or gate configured to generate a value at a second output of the signal combiner based on the output of the and gate and a value at a functional logic connection point in the circuit under test.
14. The circuitry of any of claims 9 to 13, wherein the observation unit is in a chain head position of the scan chain.
15. A method for testing a circuit under test, comprising:
shifting test vectors into the scan chain in a shift capture mode; and
Generating a scan observation in the shift capture mode based on at least a portion of the test vector and a value at an observation point in the circuit under test, wherein the scan chain is configured to include:
A first scanning unit configured to generate a first shift value based on the at least a portion of the test vector; and
An observation unit connected in series with the first scanning unit, and comprising:
a signal combiner configured to generate a first combined value based on a combination of a value at the observation point and the first shift value output by the first scanning unit in the shift capture mode; and
A second scanning unit configured to generate the scanning observation based on the first combined value in the shift capture mode.
16. The method of claim 15, further comprising shifting the test vector into the scan chain in a shift mode, wherein:
The signal combiner is further configured to generate, in the shift mode, a second combined value at the first output of the signal combiner based on the first shift value output by the first scan cell; and
The second scanning unit is further configured to generate, in the shift mode, a second shift value based on the second combined value, the second shift value being the same as the first shift value output by the first scanning unit.
17. The method of claim 15 or 16, further comprising acquiring a capture value in a capture mode, wherein:
The signal combiner is further configured to generate, in the capture mode, a third combined value at a second output of the signal combiner based on a combination of the value at the observation point or the value at the observation point and a value at a functional logic connection point in the circuit under test; and
The second scanning unit is further configured to generate, in the capture mode, the capture value that is the same as the third combined value based on the third combined value.
18. A method for testing a circuit under test, comprising:
shifting test vectors into the scan chain in a shift capture mode; and
Generating a scan observation in the shift capture mode based on at least a portion of the test vector and a value at an observation point in the circuit under test, wherein the scan chain is configured to include:
A first scanning unit; and
An observation unit connected in series with the first scanning unit in the scan chain, and comprising:
A signal combiner configured to generate, in the shift capture mode, a first combined value at a first output of the signal combiner based on a combination of a value at the observation point in the circuit under test and the at least a portion of the test vector; and
A second scanning unit configured to generate the scanning observation based on the first combined value in the shift capture mode; and
Wherein the first scanning unit is configured to generate a first shift value based on the scan observations in the shift capture mode.
19. The method of claim 18, further comprising shifting the test vector into the scan chain in a shift mode, wherein:
The signal combiner is further configured to generate, in the shift mode, a second combined value at the first output of the signal combiner based on the at least a portion of the test vector;
the second scanning unit is further configured to generate, in the shift mode, a second shift value based on the second combined value, the second shift value being the same as the at least a portion of the test vector; and
The first scanning unit is further configured to generate, in the shift mode, a third shift value based on the second shift value, the third shift value being the same as the second shift value.
20. The method of claim 18 or 19, further comprising acquiring a capture value in a capture mode, wherein:
The signal combiner is further configured to generate, in the capture mode, a third combined value at a second output of the signal combiner based on a combination of the value at the observation point or the value at the observation point and the value at a first functional logic connection point in the circuit under test;
the second scanning unit is further configured to generate, in the capture mode, the capture value that is the same as the third combined value based on the third combined value; and
The first scan cell is further configured to generate at least a portion of a test response based on a value at a second functional logic connection point in the circuit under test in the capture mode.
21. An apparatus, comprising:
A shift unit configured to shift a test vector into the scan chain in a shift capture mode; and
A capture unit configured to generate a scan observation based on values at an observation point in a circuit under test and at least a portion of the test vector in the shift capture mode, wherein the scan chain is configured to include:
A first scanning unit configured to generate a first shift value based on the at least a portion of the test vector; and
An observation unit connected in series with the first scanning unit, and comprising:
a signal combiner configured to generate a first combined value based on a combination of a value at the observation point and the first shift value output by the first scanning unit in the shift capture mode; and
A second scanning unit configured to generate the scanning observation based on the first combined value in the shift capture mode.
22. An apparatus, comprising:
A shift unit configured to shift a test vector into the scan chain in a shift capture mode; and
A capture unit configured to generate a scan observation based on values at an observation point in a circuit under test and at least a portion of the test vector in the shift capture mode, wherein the scan chain is configured to include:
A first scanning unit; and
An observation unit connected in series with the first scanning unit in the scan chain, and comprising:
A signal combiner configured to generate, in the shift capture mode, a first combined value at a first output of the signal combiner based on a combination of a value at the observation point in the circuit under test and the at least a portion of the test vector; and
A second scanning unit configured to generate the scanning observation based on the first combined value in the shift capture mode; and
Wherein the first scanning unit is configured to generate a first shift value based on the scan observations in the shift capture mode.
23. An electronic device, comprising:
at least one computing unit;
At least one memory coupled to the at least one computing unit and storing instructions for execution by the at least one computing unit, the instructions when executed by the at least one computing unit, cause the electronic device to perform the method of any one of claims 15-20.
24. A computer readable storage medium having stored thereon a computer program which when executed by a processor implements the method according to any of claims 15-20.
25. A computer program product comprising computer executable instructions which when executed by a processor implement the method of any of claims 15-20.
CN202310148347.XA 2023-02-08 2023-02-08 Circuit system, method, device, medium and program product for scan test Pending CN118468775A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202310148347.XA CN118468775A (en) 2023-02-08 2023-02-08 Circuit system, method, device, medium and program product for scan test
PCT/CN2023/130300 WO2024164595A1 (en) 2023-02-08 2023-11-07 Circuit system for scan test, method, apparatus, medium, and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310148347.XA CN118468775A (en) 2023-02-08 2023-02-08 Circuit system, method, device, medium and program product for scan test

Publications (1)

Publication Number Publication Date
CN118468775A true CN118468775A (en) 2024-08-09

Family

ID=92161108

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310148347.XA Pending CN118468775A (en) 2023-02-08 2023-02-08 Circuit system, method, device, medium and program product for scan test

Country Status (2)

Country Link
CN (1) CN118468775A (en)
WO (1) WO2024164595A1 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8566658B2 (en) * 2011-03-25 2013-10-22 Lsi Corporation Low-power and area-efficient scan cell for integrated circuit testing
CN102749574B (en) * 2012-07-18 2014-11-12 中国科学院微电子研究所 Scan test method and circuit
CN104698367B (en) * 2015-03-31 2018-05-25 中国人民解放军国防科学技术大学 The method of combinational circuit power consumption is tested in a kind of reduction sweep test
CN109375094B (en) * 2018-09-30 2021-06-01 龙芯中科技术股份有限公司 Scan unit, scan chain structure and method for determining scan chain structure

Also Published As

Publication number Publication date
WO2024164595A1 (en) 2024-08-15

Similar Documents

Publication Publication Date Title
US6059451A (en) Method for improving fault coverage of an electric circuit
CN103076559B (en) Optimizing method for shift power consumption in scanning test
US20210312113A1 (en) Method for finding equivalent classes of hard defects in stacked mosfet arrays
CN113609804A (en) Case generation method and device, test method and testability design method
Lo et al. Utilizing circuit structure for scan chain diagnosis
Han et al. Dynamic trace signal selection for post-silicon validation
US11288428B1 (en) Integrated circuit design modification for localization of scan chain defects
Hahanov 12 Infrastructure Intellectual Property for SoC Simulation and Diagnosis Service
Kambe et al. Efficient template generation for instruction-based self-test of processor cores
US8943457B2 (en) Simulating scan tests with reduced resources
CN118468775A (en) Circuit system, method, device, medium and program product for scan test
CN118468776A (en) Circuit system, method, device, medium and program product for scan test
US10346557B2 (en) Increasing compression by reducing padding patterns
US11231462B1 (en) Augmenting an integrated circuit (IC) design simulation model to improve performance during verification
CN113640575A (en) Power Estimation System
US7246053B2 (en) Method for transforming behavioral architectural and verification specifications into cycle-based compliant specifications
US11694010B2 (en) Reformatting scan patterns in presence of hold type pipelines
US7555687B2 (en) Sequential scan technique for testing integrated circuits with reduced power, time and/or cost
Holst et al. Targeted partial-shift for mitigating shift switching activity hot-spots during scan test
US12320848B2 (en) Superconductive integrated circuit devices with on-chip testing
Kim et al. Combinational automatic test pattern generation for acyclic sequential circuits
Wang et al. An automorphic approach to verification pattern generation for SoC design verification using port-order fault model
Devadze et al. Parallel exact critical path tracing fault simulation with reduced memory requirements
CN118485031A (en) Method and apparatus for performing static timing analysis on a circuit
CN115586425A (en) Scan chain compression for testing memory of system-on-chip

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication