A chip authentication device and method in DFT mode

By introducing DFT authentication logic into the DFT test control circuit, the problem that the system authentication logic cannot be tested in the DFT test mode is solved, the DFT test rate and yield of the chip are improved, and more comprehensive testing coverage is achieved.

CN118837729BActive Publication Date: 2024-11-29ETMCU
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411324699.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-23
Publication Date
2024-11-29
Estimated Expiration
2044-09-23

AI Technical Summary

Technical Problem

In DFT testing mode, the system authentication logic cannot be tested, resulting in a decrease in the DFT testing rate of the chip.

Method used

DFT authentication logic is introduced into the DFT test control circuit. Through the comparator and AND gate module, it is determined whether the secret value of the external input is equal to the fixed key value of the chip being tested, and the DFT authentication enable signal is output, thereby switching the test mode and Perform DFT testing instead of system authentication logic to include it in its testing scope.

Benefits of technology

The DFT test rate is improved and the chip yield is increased. By including the system authentication logic into the DFT test scope, unsafe access is avoided and testing efficiency is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118837729B_ABST
    Figure CN118837729B_ABST
Patent Text Reader

Abstract

The present invention discloses a chip authentication device and method in DFT mode, and relates to the field of integrated circuit design and testing. The device includes a JTAG interface circuit, a DFT test control circuit, and a logic circuit of a chip to be tested, which are connected in sequence; the JTAG interface circuit includes a JTAG debug interface and a debug interface authentication register, which are respectively used to receive and temporarily store input secret values; the DFT test control circuit includes a DFT authentication logic module and a DFT control logic module, the DFT authentication logic module is used to compare whether the fixed key value of the chip under test is equal to the input secret value, and output a DFT authentication enable signal to the DFT control logic module; the DFT control logic module is used to switch the DFT test mode and perform DFT testing according to the DFT authentication enable signal; the logic circuit of the chip to be tested includes a system authentication logic. The present invention adds DFT authentication logic to the DFT test control circuit to replace the system authentication logic, and includes the system authentication logic in the DFT test range, thereby improving the DFT test rate and the chip yield.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of integrated circuit design and testing, and in particular to a chip authentication device and method in a DFT mode. Background Art

[0002] Chip DFT, or Design for Testability, is a technology used in the design stage of integrated circuits to enable more efficient and economical testing of chips after they are manufactured to ensure that they function correctly and meet expected performance. Chip system authentication usually involves implementing security verification mechanisms at the hardware level to ensure that only legitimate devices or users can communicate with the system or access specific resources. Figure 1 As shown in the figure, the general process of traditional chips entering DFT test mode is: first enter DFT mode through the debug interface according to the mode judgment logic, then enter system authentication, and finally enter the DFT control unit to test the chip logic. In order to avoid unsafe access, entering the system authentication step is inevitable, which results in the system authentication part not being tested by the DFT-related logic, and the DFT test rate of the chip will be reduced. Summary of the invention

[0003] The purpose of the present invention is to overcome the deficiencies of the prior art and provide a chip authentication device and method in DFT mode, aiming to improve the DFT test rate and thus improve the chip yield.

[0004] The objective of the present invention is achieved through the following technical solutions:

[0005] A first aspect: A chip authentication device in DFT mode, comprising a JTAG interface circuit, a DFT test control circuit and a logic circuit of a chip to be tested connected in sequence;

[0006] The JTAG interface circuit includes a JTAG debugging interface and a debugging interface authentication register, wherein the JTAG debugging interface is used to receive a secret value input from an external source, and the debugging interface authentication register is used to temporarily store the secret value;

[0007] The DFT test control circuit includes a DFT authentication logic module and a DFT control logic module. The DFT authentication logic module is used to compare whether the fixed key value of the chip under test is equal to the secret value of the external input, and output a DFT authentication enable signal to the DFT control logic module; the DFT control logic module is used to switch the DFT test mode and perform the DFT test according to the DFT authentication enable signal;

[0008] The logic circuit of the chip to be tested includes system authentication logic.

[0009] Furthermore, the device also includes a mode judgment unit connected between the JTAG interface circuit and the DFT test control circuit, and used to select the chip under test to enter a normal working mode or a DFT test mode according to the timing information input by the JTAG interface circuit.

[0010] Furthermore, the DFT authentication logic module includes a comparator and an AND gate, the first input end of the comparator is connected to a register storing a fixed key value of the chip under test, the second input end of the comparator is connected to the debug interface authentication register, the output end of the comparator is connected to the first input end of the AND gate, the second input end of the AND gate is connected to the DFT enable register of the DFT control logic module, and the output end of the AND gate is connected to the input end of the DFT control logic module.

[0011] Furthermore, the DFT test control logic is also used to perform logic control on the received digital or analog signal.

[0012] A second aspect: A chip authentication method in a DFT mode, applied in a device as in any one of the first aspect, the method comprising:

[0013] When the chip under test enters the DFT test mode, the secret value temporarily stored in the debug interface authentication register and the fixed key value of the chip under test are obtained;

[0014] Determine whether the secret value temporarily stored in the interface authentication register is equal to the key value, perform a logical AND operation based on the comparison result and the signal of the DFT enable register, and output a DFT authentication enable signal;

[0015] If the DFT authentication enable signal is logic 0, the DFT test is unavailable; if the DFT authentication enable signal is logic 1, the DFT test method can be switched and the DFT test can be performed.

[0016] Furthermore, the DFT test method includes Scan, Mbist and Bscan methods, which are used to test register logic and memory logic respectively.

[0017] The beneficial effects of the present invention are:

[0018] The present invention adds DFT authentication logic to the DFT test control circuit to replace the system authentication logic, and incorporates the system authentication logic into the DFT test range, thereby improving the DFT test rate and the chip yield. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is a flow chart of the authentication scheme in the traditional DFT test mode;

[0020] Figure 2A schematic diagram of a chip authentication method in DFT mode according to an embodiment of the present invention;

[0021] Figure 3 This is a structural diagram of the DFT authentication logic module provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0022] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0023] See also Figure 1-Figure 2 , the present invention provides a technical solution:

[0024] Embodiment 1: A chip authentication device in DFT mode, such as Figure 2 As shown, it includes a JTAG interface circuit, a DFT test control circuit and a logic circuit of the chip to be tested connected in sequence;

[0025] The JTAG interface circuit includes a JTAG debugging interface and a debugging interface authentication register, wherein the JTAG debugging interface is used to receive a secret value input from an external source, and the debugging interface authentication register is used to temporarily store the secret value;

[0026] The DFT test control circuit includes a DFT authentication logic module and a DFT control logic module. The DFT authentication logic module is used to compare whether the fixed key value of the chip under test is equal to the secret value of the external input, and output a DFT authentication enable signal to the DFT control logic module; the DFT control logic module is used to switch the DFT test mode according to the DFT authentication enable signal;

[0027] In this embodiment, the DFT authentication logic module includes a comparator and an AND gate, the first input end of the comparator is connected to the register storing the fixed key value of the chip under test, the second input end of the comparator is connected to the debug interface authentication register, the output end of the comparator is connected to the first input end of the AND gate, the second input end of the AND gate is connected to the DFT enable register of the DFT control logic module, and the output end of the AND gate is connected to the input end of the DFT control logic module.

[0028] like Figure 3In the DFT authentication logic module shown, first, it is determined whether the value configured in the debug interface access register is equal to the key value, and the obtained judgment signal is logically ANDed with the signal of the DFT enable register to obtain the final DFT authentication enable signal. Among them, the value of the debug interface access register is configured through the JTAG debug interface; the key value is a fixed value set by the chip itself, for example, it can be fixed to 32'h5a5a5a5a, and the debug interface must be configured to this value to enable DFT normally.

[0029] Specifically, the DFT test control logic is also used to perform logic control on the received digital or analog signal. The input signal of the DFT test control logic is the post-authentication enable signal of the output of the AND gate. Only when the debug interface access register is equal to the key value and the DFT enable register is configured as 1 (high level), the DFT authentication enable signal is 1 (high level) to switch the DFT mode. The DFT authentication enable signal is sent to the DFT test control logic. Only when the DFT authentication enable signal is valid, this part of the logic will work.

[0030] Furthermore, the logic circuit of the chip under test includes system authentication logic. Figure 1 Different from the traditional authentication method, the present invention avoids unsafe access by adding DFT authentication logic to the DFT test control circuit instead of the original system authentication logic, so that the system authentication logic can be classified in the system logic for DFT testing. The DFT authentication logic is much smaller than the system authentication logic, so more logic of the entire chip is included in the DFT test.

[0031] The device also includes a mode judgment unit connected between the JTAG interface circuit and the DFT test control circuit, and used for selecting the chip under test to enter a normal working mode or a DFT test mode according to the timing information input by the JTAG interface circuit.

[0032] Embodiment 2: A chip authentication method in DFT mode is applied in the device in Embodiment 1, and the method includes:

[0033] When the chip under test enters the DFT test mode, the secret value temporarily stored in the debug interface authentication register and the fixed key value of the chip under test are obtained;

[0034] Determine whether the secret value temporarily stored in the interface authentication register is equal to the key value, perform a logical AND operation based on the comparison result and the signal of the DFT enable register, and output a DFT authentication enable signal;

[0035] If the DFT authentication enable signal is logic 0, the DFT test is unavailable; if the DFT authentication enable signal is logic 1, the DFT test method can be switched and the DFT test can be performed. The DFT test method includes Scan, Mbist and Bscan methods, which are used to test register logic and memory logic respectively.

[0036] The present invention adds DFT authentication logic to the DFT test control circuit to replace the system authentication logic, and incorporates the system authentication logic into the DFT test range, thereby improving the DFT test rate and the chip yield.

[0037] The above is only a preferred embodiment of the present invention. It should be understood that the present invention is not limited to the form disclosed herein, and should not be regarded as excluding other embodiments, but can be used in various other combinations, modifications and environments, and can be modified within the scope of the concept described herein through the above teachings or the technology or knowledge of the relevant field. The changes and modifications made by those skilled in the art shall not deviate from the spirit and scope of the present invention, and shall be within the scope of protection of the claims attached to the present invention.

Claims

1. A chip authentication device in DFT mode, characterized in that: It includes a JTAG interface circuit, a DFT test control circuit and a logic circuit of a chip to be tested which are connected in sequence; The JTAG interface circuit includes a JTAG debugging interface and a debugging interface authentication register, wherein the JTAG debugging interface is used to receive a secret value input from an external source, and the debugging interface authentication register is used to temporarily store the secret value; The DFT test control circuit includes a DFT authentication logic module and a DFT control logic module, wherein the DFT authentication logic module is used to compare whether the fixed key value of the chip under test is equal to the secret value input externally, and output a DFT authentication enable signal to the DFT control logic module; The DFT control logic module is used to switch the DFT test mode according to the DFT authentication enable signal; The logic circuit of the chip to be tested includes system authentication logic.

2. A chip authentication device in DFT mode according to claim 1, characterized in that: The device also includes a mode judgment unit connected between the JTAG interface circuit and the DFT test control circuit, and used for selecting the chip under test to enter a normal working mode or a DFT test mode according to the timing information input by the JTAG interface circuit.

3. A chip authentication device in DFT mode according to claim 1, characterized in that: The DFT authentication logic module includes a comparator and an AND gate, wherein a first input end of the comparator is connected to a register storing a fixed key value of the chip under test, a second input end of the comparator is connected to the debug interface authentication register, an output end of the comparator is connected to a first input end of the AND gate, a second input end of the AND gate is connected to a DFT enable register of a DFT control logic module, and an output end of the AND gate is connected to an input end of the DFT control logic module.

4. A chip authentication device in DFT mode according to claim 1, characterized in that: The DFT test control logic is also used to perform logic control on the received digital or analog signal.

5. A chip authentication method in DFT mode, characterized in that: Applied in the device as claimed in any one of claims 1 to 4, the method comprises: When the chip under test enters the DFT test mode, the secret value temporarily stored in the debug interface authentication register and the fixed key value of the chip under test are obtained; Determine whether the secret value temporarily stored in the interface authentication register is equal to the key value, perform a logical AND operation based on the comparison result and the signal of the DFT enable register, and output a DFT authentication enable signal; If the DFT authentication enable signal is logic 0, the DFT test is unavailable; if the DFT authentication enable signal is logic 1, the DFT test method can be switched and the DFT test can be performed.

6. A chip authentication method in DFT mode according to claim 5, characterized in that: The DFT test methods include Scan, Mbist and Bscan methods, which are used to test register logic and memory logic respectively.

Citation Information

Patent Citations

  • Control method and system for chip to enter test mode

    CN107783028A

  • SiP system based on JTAG test and JTAG test method of inside chip of SiP system

    CN109557459A