Test control circuit and test system

By using the mode selector, seed generator and granular enable controller in the test control circuit, the ICG test is uniformly controlled, solving the problems of high power consumption and IR Drop risk in the chip capture stage, and achieving low power consumption and high efficiency. test.

CN118549799APending Publication Date: 2024-08-27SMARTER SILICON (SHANGHAI) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410706107.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

During the capture phase of the chip, all ICGs are enabled at the same time, resulting in high power consumption and IR drop risks. It is difficult for existing technology to effectively reduce power consumption peaks and test costs while maintaining test coverage.

Method used

Design a test control circuit that generates target enable signals through the mode selector, seed generator and granular enable controller to control the testing of ICGs to ensure that each group of ICGs is tested evenly and reduce the number of ICGs that are enabled at the same time. Reduce register flipping and power consumption.

Benefits of technology

Without reducing test coverage, the power consumption and power consumption peak during testing are reduced, the risk of IR Drop is reduced, and the efficiency and reliability of testing are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118549799A
    Figure CN118549799A
Patent Text Reader

Abstract

The embodiment of the invention provides a test control circuit and a test system, and the circuit comprises a mode selector which is used for generating a mode selection signal, and the mode selection signal indicates a target proportion of the group number of ICGs needing to be tested in the group number of all ICGs in a test process; the seed generator is used for generating a plurality of random seed signals respectively corresponding to the plurality of groups of ICGs, each random seed signal indicates that the corresponding group of ICGs is tested, and the probabilities of testing each group of ICGs are the same; the granularity enabling controller is used for receiving a mode selection signal, at least one first enabling signal and a plurality of random seed signals; performing logic processing on the plurality of random seed signals to generate at least one initial enable signal; and selecting at least one initial enable signal or first enable signal corresponding to the target proportion as a target enable signal according to the mode selection signal, and controlling at least one group of ICGs needing to be tested to test by using the target enable signal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of semiconductor testing technology, and in particular to a test control circuit and a test system. Background Art

[0002] With the development of modern VLSI, the integration of chips is getting higher and higher. At present, when using the Design For Testability (DFT) test circuit structure to test large-scale chips, since all ICGs are enabled at the same time in the capture phase, all registers in the logic circuit to be tested will flip with the clock flip, resulting in high power dissipation and power consumption peak during testing. Summary of the invention

[0003] Embodiments of the present disclosure provide a test control circuit and a test system.

[0004] In a first aspect, an embodiment of the present disclosure provides a test control circuit of a clock gate controller, wherein the test control circuit is connected to a plurality of groups of ICGs, each group of ICGs comprising a plurality of ICGs, and the test control circuit comprises:

[0005] A mode selector, configured to generate a mode selection signal; wherein the mode selection signal indicates a target ratio of the number of ICG groups to be tested in a test process to the number of all ICG groups;

[0006] A seed generator, used for generating a plurality of random seed signals respectively corresponding to the plurality of groups of ICGs, wherein each of the random seed signals indicates that a corresponding group of the ICGs is tested, and the probability of each group of the ICGs being tested is the same;

[0007] A granularity enable controller is used to receive the mode selection signal, at least one first enable signal and the multiple random seed signals; perform logical processing on the multiple random seed signals to generate at least one initial enable signal, each of the initial enable signal and the first enable signal corresponds to a preset ratio, and the target ratio is one of the preset ratios; select at least one of the initial enable signal or the first enable signal corresponding to the target ratio as a target enable signal according to the mode selection signal, and use the target enable signal to control at least one group of the ICGs that need to be tested to perform testing.

[0008] In some embodiments, the seed generator is specifically used to generate an initial seed signal, and perform logical mapping on the initial seed signal to generate the multiple random seed signals;

[0009] Among them, the initial seed signal indicates the number of groups of all the ICGs; the number of groups of all the ICGs is N, each of the random seed signals includes N bits of random seed data, and N is an integer greater than 0; each of the random seed signals includes one bit of the random seed data in an enabled state, and the total number of the random seed data in an enabled state included in the multiple random seed signals is the same as the number of all the ICGs.

[0010] In some embodiments, the granularity enabling controller includes a logic processing circuit and a second selector;

[0011] The logic processing circuit is used to receive the multiple random seed signals, perform at least one level or logic processing according to the multiple random seed signals, and generate at least one of the initial enable signals;

[0012] The second selector is used to receive the mode selection signal, each of the initial enable signals and the first enable signal, select at least one of the initial enable signal and the first enable signal according to the mode selection signal, and output a target enable signal.

[0013] In some embodiments, the test control circuit further includes:

[0014] A mask control circuit is used to receive a mask signal, wherein the mask signal indicates that some groups among the multiple groups of ICGs are not to be tested; decode the mask signal to generate a mask control signal; perform an XOR logic operation on the mask control signal and the target enable signal to output a second enable signal; and use the second enable signal to control at least one group of ICGs that need to be tested to be tested while not testing at least one group of ICGs among the multiple groups of ICGs.

[0015] In some embodiments, the mask control circuit includes a decoding circuit and an XOR gate;

[0016] The decoding circuit is used to receive the mask signal, decode the mask signal, and generate a mask control signal;

[0017] The XOR gate is used to receive the mask control signal and the target enable signal, perform an XOR logic operation on the mask control signal and the target enable signal, and output the second enable signal.

[0018] In some embodiments, the mode selector is used to receive a parallel enable signal, perform decoding processing according to the parallel enable signal, and generate the mode selection signal;

[0019] The mode selector is further used to receive a mask instruction signal, and decode the mask instruction signal to generate the mask signal.

[0020] In some embodiments, when the i-th bit data state of the target enable signal is in an enabled state, the i-th group of ICGs is tested; i is an integer less than N and greater than 0.

[0021] In some embodiments, the test control circuit further includes: an ICG grouping module;

[0022] The ICG grouping module is used to divide the ICGs into multiple categories according to functional logic, each category includes at least one ICG; and select a number of ICGs from each category to form a group of ICGs.

[0023] In some embodiments, the ICG grouping module is further used to obtain coordinate information of the physical location of each ICG; perform grid processing on each of the coordinate information; and determine at least one of the ICGs in at least one grid as a group of ICGs.

[0024] In a second aspect, an embodiment of the present disclosure provides a test system, comprising the test control circuit according to any one of the first aspects and N groups of ICGs, wherein the test control circuit is connected to the N groups of ICGs, and N is an integer greater than 0;

[0025] The test control circuit is used to output the target enable signal;

[0026] The test control circuit is further used to test the i-th group of ICGs when the i-th bit data state of the target enable signal is in an enabled state; i is an integer less than N and greater than 0. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 A schematic diagram of the structure of an ICG provided in an embodiment of the present disclosure;

[0028] Figure 2 A schematic diagram of a connection structure between a test control circuit and an ICG provided in an embodiment of the present disclosure;

[0029] Figure 3 A schematic diagram of a test control circuit provided in an embodiment of the present disclosure Figure 1 ;

[0030] Figure 4 A schematic diagram of a test control circuit provided in an embodiment of the present disclosure Figure 2 ;

[0031] Figure 5 A schematic diagram of an ICG grouping process provided by an embodiment of the present disclosure;

[0032] Figure 6A schematic diagram of coordinate information of an ICG provided in an embodiment of the present disclosure;

[0033] Figure 7 A schematic diagram of coordinate information of a gridded ICG provided in an embodiment of the present disclosure;

[0034] Figure 8 A schematic diagram of an integration method of a test system provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0035] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. It is understood that the specific embodiments described herein are only used to explain the relevant disclosure, rather than to limit the disclosure. It should also be noted that, for the convenience of description, only the parts related to the relevant disclosure are shown in the drawings.

[0036] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present disclosure belongs. The terms used herein are only for the purpose of describing the embodiments of the present disclosure and are not intended to limit the present disclosure.

[0037] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0038] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present disclosure are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present disclosure described here can be implemented in an order other than that illustrated or described here.

[0039] At present, with the development of modern Very Large Scale Integration Circuit (VLSI), the number of logic gates in chips has increased rapidly, resulting in increasingly prominent power consumption and heat dissipation problems. Therefore, low-power clock gaters (ICGs) are widely introduced to reduce power consumption.

[0040] One solution is to enhance the testability of integrated circuits through DFT, in which a key step in DFT is to generate test vectors through the Automatic Test Pattern Generation (ATPG) tool. These test vectors are designed to discover and diagnose potential defects in integrated circuits. Specifically, to ensure the testability of the circuit, ICG is usually controlled by two enable signals: Function Enable and Scan Test Enable. In the functional mode, the function enable signal is responsible for controlling the opening or closing of the ICG to meet the actual operation requirements of the circuit. In the at speed scenario of the scan test mode, it can be roughly divided into two stages: shift and capture. In the shift stage, in order to ensure that the test vector can fully cover the circuit, the ATPG tool must enable all ICGs through the scan test enable signal to ensure that the clock can be passed to all scan registers, thereby realizing continuous shifting of the scan chain. In the capture phase, it is necessary to ensure that either the functional enable signal or the scan test enable signal enables the ICG, so that the full-speed high-frequency clock can be delivered to all related logic gates and ensure that they are in a testable state; if any ICG is not enabled at this stage, the downstream logic may not be properly tested, and some potential faults may not be detected.

[0041] Here, the functional mode can be considered as the design of software, which is not involved in this disclosure. In the scan test mode, since the shift stage uses a low-speed clock (for example, 100MHZ), its power consumption is originally very small, and the EDA tool can also optimize the power consumption and control the power consumption of the shift. Therefore, the widespread introduction of low-power ICG will not affect the power consumption of the shift stage; while the capture stage uses a high-frequency clock (for example, 3.3G), so the power consumption of the capture stage is very high, and the EDA tool cannot optimize it; for example, when the frequency of the high-frequency clock is too high, the EDA tool will discard this frequency.

[0042] Therefore, please refer to Figure 1, the function enable signal is input from the E end of ICG, and the scan test enable signal is input from the SE end of ICG. The key challenge brought by the widespread introduction of low-power ICG is that in the capture phase, when the ICG is enabled through the function enable signal (the E end of ICG), the scan test enable signal (the SE end of ICG) cannot be kept at 0; this is because the function enable signal is usually composed of multiple registers and complex combinational logic, which makes it extremely complicated for EDA tools to calculate the input signals of all ICGs E ends, which is an exponential problem for EDA's ATPG algorithm; therefore, keeping the scan test enable signal (the SE end of ICG) at 0 in the capture phase and completely leaving it to the ATPG algorithm to deduce the enable values ​​of the E ends of different ICGs will lead to a significant loss in coverage and an increase in the number of vectors. On the other hand, when the ICG is enabled through the scan test enable signal (SE end of ICG), the scan test enable signal cannot be kept at 1; specifically, if the scan test enable signal is kept at 1 to reduce the number of vectors in order to reduce the test cost, this will cause the following problems: 1. High power dissipation and IR Drop risk: Enabling all ICGs will cause the high-frequency clock to be at a higher inversion rate, which will lead to potential power consumption peak problems and IR Drop risks. Among them, the IR Drop risk refers to the voltage drop (Voltage Drop) caused by the current passing through the resistor (including the conductor resistance, contact resistance, etc.); 2. The number of vectors will surge or even fail to be generated: When encountering IR and power consumption problems, the ATPG algorithm is generally used to add power consumption peak constraints, which may cause the algorithm to discard many test vectors by itself, resulting in a significant increase in the number of test vectors, which means an increase in test costs, and even within the power consumption range required by IR Drop, it is impossible to generate vectors that meet the requirements. 3. Coverage loss: The scan test signal is kept at 1, which will cause the coverage loss of the logic cone of the function enable signal (E end of ICG), or the coverage loss of the discarded vectors introduced by the power consumption limit constraint.

[0043] A solution In order to solve the coverage loss and balance the number of vectors, a common practice is to add a global control test point when inserting the DFT logic, and work with the scan test enable signal after taking or. In this way, it can ensure that the ATPG tool ensures that all ICGs are turned on in the shift stage, and in the capture stage, the ATPG algorithm can decide whether to turn on the scan test ICG enable signal by controlling the preload value of the test point. The advantage of this method is that the test enable signal of the ICG is determined by the EDA tool to be 0 or 1 in the capture stage, so it will not block the fault coverage of the E-end logic cone, thereby increasing the test coverage; when the SE end is 1, the calculation complexity of ATPG is reduced, thereby reducing the number of test vectors; however, this method cannot solve the power consumption peak and power consumption diffusion problems, as well as the potential IRDrop risk.

[0044] In summary, in the capture phase, the register clock comes from a high-frequency clock, which may cause a drop in the internal chip voltage (IR), especially when all ICGs are enabled at the same time. This is known as the IR Drop problem. IR Drop may not only reduce circuit performance, but may also cause functional errors in the circuit, thus threatening the test quality of the integrated circuit and the reliability of the final product.

[0045] Furthermore, IR drop may cause convergence problems in the coverage scenario of vectors from the perspective of physical design (PD). Specifically, if the IR drop problem in the PD stage is not properly solved, in the at speed test scenario of DFT, the test vector may not be able to fully cover the circuit, thereby increasing the risk of screening (that is, good chips are screened out as bad chips), thereby increasing the commercial cost of the chip. In order to prevent the risk of screening, if only the EDA tool is used to add power constraint restriction vectors, it does not guarantee that the problem will be solved. Instead, it will lead to an increase in the test cost and coverage loss caused by the surge in the number of vectors, and even the failure to generate test vectors when the constraints are too strict; especially in high-performance integrated circuit design, such as CPU, GPU and NPU, these problems are particularly prominent, which increases the risk of possible failure of the chip and puts higher requirements on the test quality of DFT. Therefore, in order to ensure high-quality and low-testing cost DFT and avoid the risks caused by IR Drop, it is necessary to consider how to better manage and control these ICGs introduced by low-power synthesis during PD design and capture testing.

[0046] Based on this, the present disclosure implements a test control circuit and a test system; wherein the test control circuit is connected to multiple groups of ICGs, each group of ICGs includes several ICGs, and the test control circuit includes: a mode selector, used to generate a mode selection signal; wherein the mode selection signal indicates the target ratio of the number of ICG groups that need to be tested in a test process to the number of all ICG groups; a seed generator, used to generate multiple random seed signals corresponding to the multiple groups of ICGs, each random seed signal indicates that the corresponding group of ICGs is tested, and the probability of each group of ICGs being tested is the same; a granularity enable controller, used to receive the mode selection signal, at least one first enable signal and multiple random seed signals; logically process the multiple random seed signals to generate at least one initial enable signal, each initial enable signal and the first enable signal correspond to a preset ratio, and the target ratio is one of the preset ratios; select at least one initial enable signal or the first enable signal corresponding to the target ratio as the target enable signal according to the mode selection signal, and use the target enable signal to control at least one group of ICGs that need to be tested to perform the test. In this way, the number of ICGs enabled simultaneously during testing can be reduced without reducing the test coverage, thereby reducing the number of register flips in the logic circuit to be tested, and further reducing the power dissipation and power consumption peak during testing.

[0047] The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.

[0048] In one embodiment of the present disclosure, see Figure 2 , which shows a test control circuit 100 of an ICG, the test control circuit 100 is connected to a plurality of ICG groups, each ICG group includes a plurality of ICGs; specifically, see Figure 3 , the test control circuit 100 comprises:

[0049] The mode selector 110 is used to generate a mode selection signal; wherein the mode selection signal indicates a target ratio of the number of ICG groups to be tested in a test process to the number of all ICG groups;

[0050] A seed generator 120, used to generate a plurality of random seed signals corresponding to the plurality of groups of ICGs, each random seed signal indicating that a corresponding group of ICGs is tested, and the probability of each group of ICGs being tested is the same;

[0051] The granularity enable controller 130 is used to receive a mode selection signal, at least one first enable signal and multiple random seed signals; perform logic processing on the multiple random seed signals to generate at least one initial enable signal, each initial enable signal and the first enable signal correspond to a preset ratio, and the target ratio is one of the preset ratios; select at least one initial enable signal or the first enable signal corresponding to the target ratio as the target enable signal according to the mode selection signal, and use the target enable signal to control at least one group of ICGs that need to be tested to perform testing.

[0052] In the disclosed embodiment, the ICGs in each ICG group can be divided according to actual needs, and the number of ICGs in multiple ICG groups can be the same; for example, the number of ICG groups can be 16 groups, (total number of ICGs / 16) ICGs as one group; or, the number of ICG groups can be 8 groups, (total number of ICGs / 8) ICGs as one group, and so on; here, a more refined division can also be performed, for example, the number of ICG groups can be 32 groups. In other embodiments, the number of ICGs in multiple ICG groups can also be different, for example, the number of ICGs in the first ICG group can be 8, and the number of ICGs in the remaining multiple ICG groups can be 16.

[0053] For the convenience of subsequent description, the following description will be made assuming that the number of ICG groups is 16.

[0054] Here, the preset ratio may include 1 / 16, 1 / 8, 1 / 4, 1 / 2, 0 (fully off) or 1 (fully on), and the target ratio may be one of 1 / 16, 1 / 8, 1 / 4, 1 / 2, 0 (fully off) or 1 (fully on). One of the preset ratios may be selected as the target ratio through the mode selection signal to dynamically determine the ICG parallel mode; for example, if the target ratio is determined to be 1 / 16 through the mode selection signal, the number of groups to be tested is 1 group; for another example, if the target ratio is determined to be 1 / 8 through the mode selection signal, the number of groups to be tested is 2 groups.

[0055] In addition, the multiple random seed signals generated by the seed generator 120 can indicate that multiple ICG groups are tested with a uniform probability, so that each group of ICGs can be ensured to have a uniform random probability when enabled. Specifically, the number of bits of the random seed signal is the same as the number of ICG groups, and each random seed signal contains a random seed data in an enabled state (in the disclosed embodiment, a high level 1 represents an enabled state, and a low level 0 represents a non-enabled state, but it can also be the opposite, and there is no specific limitation on this), and the number of random seed data in an enabled state contained in the multiple random seed signals is the same as the number of all ICG groups. During implementation, each random seed signal can be 16 bits, and the 16 random seed signals are 100...000, 010...000, 0010...000, ..., 000...010, 000...001, wherein 100...000 corresponds to the first group of ICGs being tested (enabled), 010...000 corresponds to the second group of ICGs being tested, and so on. In this way, the ICG group to be tested can be selected for testing after the controller 130 performs a logical operation on the random seed signal through the subsequent granularity enablement.

[0056] It should be noted that, in other embodiments, each random seed signal contains at most one bit of random seed data in an enabled state, and the total number of random seed data in an enabled state contained in multiple random seed signals is equal to the number of ICGs that need to be tested; specifically, when the number of ICGs that need to be tested is 1, the multiple random seed signals contain a total of 1 random seed data in an enabled state, for example, only the first random seed signal contains 1 random seed data in an enabled state, then the 16 16-bit random seed signals are: 100…000, 000…000, 000…000, …, which can correspond to the first group of ICGs to be tested; or, when the number of ICGs that need to be tested is 2, the 16 random seed signals contain a total of 2 random seed data in an enabled state, for example, 100…000, 010…000, 000…000, …, which can correspond to the first group and the second group of ICGs to be tested. In this way, when the random seed signal is generated, the ICG group that needs to be enabled can be determined, thereby reducing the amount of calculation of the subsequent granularity enabling controller 130 and speeding up the processing time of the system.

[0057] Further, the granularity enabling controller 130 receives 16 random seed signals (respectively 1000…00, 01000…00, …, 000…010, 000…001), and performs logic processing on the 16 random seed signals through the granularity enabling controller 130 to generate at least one initial enabling signal corresponding to a preset ratio (including 1 / 16, 1 / 8, 1 / 4, 1 / 2); specifically, when the preset ratio is 1 / 16, only 1 bit in the corresponding initial enabling signal is 1, for example, the initial enabling signal The enable signal may include 1000…00, 01000…00, etc.; when the preset ratio is 1 / 8, the corresponding initial enable signal has 2 bits as 1, for example, 1100…00, 00110…00, etc.; when the preset ratio is 1 / 4, the corresponding initial enable signal has 4 bits as 1, for example, 11110…00, 0000111100…00, etc.; when the preset ratio is 1 / 2, the corresponding initial enable signal has 8 bits as 1, for example, 1111111100000000, etc.

[0058] It should be noted that, in the multiple initial enable signals under any preset ratio, the position of the random seed data (i.e., 1) of the enable state is not repeated; for example, when the preset ratio is 1 / 8, the corresponding initial enable signal may include 1100…00, 00110…00,…; or 10100…00, 01010…00,…; in this way, the probability of each group of ICG being tested can be ensured to be the same after multiple tests.

[0059] In addition, the preset ratio corresponding to the first enable signal is full on and full off, wherein the first enable signal includes 1111...11 (full on) and 0000...00 (full off). Here, the IR Drop risk is the greatest when fully on, and the IR Drop risk is the smallest when fully off. During implementation, the number of ICG groups in each test can be determined according to actual conditions.

[0060] In the disclosed embodiment, the granularity enable controller 130 selects the initial enable signal and the first enable signal according to the target ratio determined by the mode selection signal. Specifically, if the target ratio is 1 / 8, then a selection is made from the initial enable signals (e.g., 1100…00, 00110…00) corresponding to the preset ratio of 1 / 8, for example, 1100…00 is selected as the target enable signal, and the target enable signal controls the first and second groups of ICGs to be tested; if the target ratio is fully open, then the first enable signal (1111…11) corresponding to the preset ratio being fully open is selected as the target enable signal, and the target enable signal controls all ICG groups to be tested.

[0061] Here, the number of ICG groups tested each time can be the same or different; for example, the number of ICG groups tested for the first time is 8 (the target ratio is 1 / 2), the number of ICG groups tested for the second time is 4 (the target ratio is 1 / 4), and the number of ICG groups tested for the third time is 4 (the target ratio is 1 / 4). Since the probability of each ICG group being tested is equal, the ICG groups tested each time are different, and all ICG groups can be tested.

[0062] In the disclosed embodiment, since all ICGs are divided into multiple groups and each group of ICGs has a uniform random probability when being tested, the number of ICGs tested simultaneously can be reduced without reducing the test coverage, thereby reducing the number of register flips in the logic circuit to be tested, and effectively reducing the power dissipation and power consumption peak during testing.

[0063] Next, please refer to Figure 4 , the test control circuit 100 provided in the embodiment of the present disclosure is described in detail.

[0064] In some embodiments, the seed generator 120 includes M-stage shift registers 121 and a logic mapping circuit 122 , each shift register 121 includes a first selector 121 a and a flip-flop 121 b , and M is an integer greater than 0.

[0065] Here, the M-stage shift register 121 is used to output a signal to form an initial seed signal, and the initial seed signal can represent 2 at most. M values; specifically, when M is 4, the initial seed signal can represent 2 4 =16 values, for example, the initial seed signal may be 1000, 1100, ... The logic mapping circuit 122 is used to receive the initial seed signal, and perform logic mapping according to the initial seed signal to generate at least one random seed signal.

[0066] In some embodiments, the initial seed signal indicates the number of groups of all ICGs, the number of multiple groups of ICGs is N, each random seed signal includes N bits of random seed data, and N is an integer greater than 0.

[0067] Specifically, when the logic mapping circuit 122 receives 16 initial seed signals, a maximum of 16 random seed signals can be mapped; for example, when the number of ICG groups is 16, the 16 initial seed signals can be mapped to 16 random seed signals, 1000 can be mapped to 100…00, 1100 can be mapped to 0100…00, and so on; wherein each random seed signal contains 16 bits of random seed data, and each random seed signal corresponds to an ICG group that can be tested. For another example, when the number of ICG groups is 4, 16 initial seed signals can be mapped to 4 random seed signals. In order to ensure fairness during mapping, the initial seed signals are equally mapped to the random seeds through the logic mapping circuit 122, that is, 4 initial seed signals are mapped to 1 random seed signal, and the random seed signals mapped by the initial seed signals 1000, 0100, 0010, and 0001 can all be 1000; the random seed signals mapped by the initial seed signals 1100, 1010, 1001, and 0110 can all be 0100; and so on; wherein each random seed signal contains 4 bits of random seed data, and each random seed signal corresponds to an ICG group that can be tested.

[0068] Please continue to refer to Figure 4 , taking M as 8 as an example. The seed generator 120 includes 8-stage shift registers 121; the shift register 121 is specifically used for, in the first stage shift register 121, the first input terminal SI of the first selector 121a is used to receive the preload value SCAN_IN; in the second to Mth stage shift registers 121, the first input terminal SI of the first selector 121a is connected to the output terminal Q of the trigger 121b in the previous stage shift register 121 and the second input terminal D of the first selector 121a in the previous stage shift register 121; in each stage shift register 121, the first input terminal SI of the first selector 121a is connected to the output terminal Q of the trigger 121b in the previous stage shift register 121 and the second input terminal D of the first selector 121a in the previous stage shift register 121; The second input terminal D of the first selector 121a is connected to the output terminal Q of the flip-flop 121b; the output terminal of the first selector 121a is connected to the input terminal of the flip-flop 121b; the control terminal of the first selector 121a is used to receive the selection enable signal SCAN_ENABLE; the clock terminal CK of the flip-flop 121b is used to receive the clock signal SCAN_CLK; the output terminal of each flip-flop 121b outputs the shift output signal of the shift register 121, and the 8 shift output signals constitute the initial seed signal, which can represent at most 2 8 value.

[0069] Furthermore, to ensure that each ICG group is activated with an equal probability, the granularity enable controller 130 evenly divides the probability of which ICG groups to enable according to the value of the random seed signal, so as to ensure that all ICG groups in the design are treated fairly.

[0070] In some embodiments, the granularity enable controller 130 includes a logic processing circuit 131 and a second selector 132; the logic processing circuit 131 is used to receive multiple random seed signals, perform at least one level or logic processing based on the multiple random seed signals, and generate at least one initial enable signal; the second selector 132 is used to receive a mode selection signal, each initial enable signal and a first enable signal, select at least one initial enable signal and the first enable signal according to the mode selection signal, and output a target enable signal.

[0071] In the disclosed embodiment, the logic processing circuit 131 is used to receive 16 random seed signals, perform at least one level or logic processing according to the 16 random seed signals, and generate at least one initial enable signal; specifically, when the 16 random seed signals are subjected to the first level or logic processing, 2 bits of the generated initial enable signal are 1, such as 1100…00, 00110…00; when the 16 random seed signals are subjected to the second level or logic processing, 4 bits of the generated initial enable signal are 1, such as 11110…00, 0000111100…00; when the 16 random seed signals are subjected to the second level or logic processing, 8 bits of the generated initial enable signal are 1, such as 1111111100000000. In addition, the 16 random seed signals may not be subjected to the logic processing or logic processing, and may be directly used as the initial enable signal. In this case, only 1 bit of the initial enable signal is 1, for example, the initial enable signal may include 1000…00, 01000…00.

[0072] Further, the second selector 132 selects the first enable signal and the initial enable signal generated by the logic processing circuit 131 according to the target ratio determined by the mode selection signal. Specifically, if the target ratio is 1 / 8, then a selection is made from the initial enable signals corresponding to the preset ratio of 1 / 8 (e.g., 1100…00, 00110…00), for example, 1100…00 is selected as the target enable signal; if the target ratio is fully open, then the first enable signal (1111…11) corresponding to the preset ratio being fully open is selected as the target enable signal.

[0073] That is, the granularity enabling controller 130 of the disclosed embodiment responds to the mode selection signal to dynamically determine the parallel enabling mode (i.e., target ratio) of the ICG, including but not limited to 1 / 16, 1 / 8, 1 / 4, 1 / 2, fully off or fully on. The granularity enabling controller 130 decides the enabled ICG group with uniformly distributed probability based on the random seed signal to ensure that all ICG groups are treated fairly.

[0074] In some embodiments, when the i-th bit data state of the target enable signal is in an enabled state, the i-th group of ICGs is tested; i is an integer less than N and greater than 0.

[0075] For example, if 1100...00 is the target enable signal, the first and second data states are in the enable state, then the first and second ICG groups are tested. For another example, if 1111...11 is the target enable signal, all data states are in the enable state, then all ICG groups are tested.

[0076] It should be noted that Figure 4 Only a part of the logic processing circuit 131 is shown. In fact, each random seed signal corresponds to an input terminal.

[0077] In some embodiments, the test control circuit 100 also includes: a mask control circuit 140, which is used to receive a mask signal Mask_code[3:0], the mask signal Mask_code[3:0] indicating that some groups among the multiple groups of ICGs are not to be tested; decoding the mask signal to generate a mask control signal; performing an XOR logic operation on the mask control signal and a target enable signal to output a second enable signal DFT_SYN_ICG_EN_POST[15:0]; and using the second enable signal DFT_SYN_ICG_EN_POST[15:0] to control at least one group of ICGs that need to be tested to be tested, while not testing at least one group of ICGs among the multiple groups of ICGs.

[0078] Specifically, the mask control circuit 140 includes a decoding circuit 141 and an XOR gate 142; the decoding circuit 141 is used to receive the mask signal Mask_code[3:0], and decode the mask signal to generate a mask control signal; the XOR gate 142 is used to receive the mask control signal and the target enable signal, and perform an XOR logic operation on the mask control signal and the target enable signal, and output a second enable signal DFT_SYN_ICG_EN_POST[15:0].

[0079] Here, the number of bits of the mask control signal is the same as the number of bits of the target enable signal. When the i-th group of ICGs does not need to be tested, the i-th bit in the mask control signal can be 1, so that the target enable signal can be masked by the mask control signal. For example, if the second group of ICGs needs to be tested or not, the target enable signal 1100...00 and the mask control signal 010...00 are subjected to an XOR logic operation, and the second enable signal is output as 100...00, and the first bit data state is in the enabled state, then the second group of ICGs is tested, that is, the target enable signal 1100...00 is masked by the mask control signal 010...00, so that the second group of ICGs is turned off. For another example, if the second group of ICGs needs to be tested or not, after the target enable signal 1111…11 and the mask control signal 010…00 are subjected to an XOR logic operation, the second enable signal 1011…11 is output, and all data except the second bit data are in the enabled state. Then, all ICG groups except the second group of ICGs are tested, that is, the second group of ICGs is turned off by the mask control signal 010…00.

[0080] In this way, the target enable signal output by the granularity enable controller 130 is masked by the second enable signal DFT_SYN_ICG_EN_POST[15:0], thereby shutting down a specific ICG group. In this way, when an area has an IR problem and is difficult to solve, the ICG group of the area can be independently shut down by the mask control circuit 140.

[0081] In some embodiments, the mode selector 110 is used to receive the parallel enable signal Mode_Sel[2:0], decode the parallel enable signal Mode_Sel[2:0], and generate the mode selection signal Goup_Sel[2:0]; and receive the mask instruction signal Mask_channel[3:0], and decode the mask instruction signal Mask_channel[3:0] to generate the mask signal Mask_code[3:0].

[0082] In the disclosed embodiment, the test control circuit 100 further includes: a data controller 150, which is embedded with a JTAG network based on the 1149.1 protocol. In the DFT scenario, it is responsible for configuring the mode selector 110 and outputting an enable signal Mode_Sel[2:0] and a mask instruction signal Mask_channel[3:0], which respectively determine the parallel enable ratio of the ICG group and whether to shut down a specific ICG group.

[0083] In some embodiments, the test control circuit 100 further includes: an ICG grouping module; the ICG grouping module is used to divide all ICGs into multiple groups of ICGs according to a target ratio through a hierarchical structure of functional logic and / or a clustering grouping algorithm.

[0084] In some embodiments, dividing multiple groups of ICGs by a clustering grouping algorithm includes: obtaining coordinate information of a physical location of each ICG; performing gridding processing on each coordinate information; and determining at least one ICG in each grid as a group of ICGs.

[0085] When implementing, please refer to Figure 5 The clustering grouping algorithm includes steps S11 to S13. Step S11, the gridded PD returns the DEF file of ICG, and the clustering algorithm is used to group ICG; Step S12, obtain the ICG grouping information based on prior knowledge and spatial information; Step S13, obtain the ICG grouping. For example, Figure 6 The coordinate information of the original ICG in DEF is shown in the figure. The DEF file of ICG obtained from the PD stage is gridded to obtain the two-dimensional physical position information, corresponding to Figure 7 The middle grid area; obtain the density of ICG in each grid, and group at least one ICG in at least one grid as a group according to the density of ICG in each grid (for example, 16 ICGs in 3 grids can be grouped as a group). The purpose of gridding coordinate information is to reduce the search time of subsequent classification algorithms and improve the performance of clustering grouping algorithms.

[0086] In addition, the ICG clustering algorithm based on spatial information can be equivalent to a graph coloring problem. For example, the gridded ICG is regarded as a node, and there is an edge between adjacent nodes, such as Figure 7 As shown in the schematic diagram in the lower right corner, the ICG grouping problem is transformed into a "graph coloring problem".

[0087] In some embodiments, dividing the multiple groups of ICGs by the hierarchical structure of functional logic includes: dividing the ICGs into multiple categories according to the functional logic, each category including at least one ICG; and selecting a number of ICGs from each category to form a group of ICGs.

[0088] When implementing, please continue to refer to Figure 5 The hierarchical structure of functional logic includes steps S21 to S23. Step S21, performing ICG grouping based on the hierarchical structure divided by functional logic; Step S22, obtaining ICG grouping information divided based on prior knowledge and functional logic information; Step S23, obtaining ICG grouping.

[0089] Here, in the hierarchical grouping based on functional logic, no other input files are required, and only the netlist information containing the hierarchical structure of ICG functional logic needs to be analyzed to group several ICGs. For example, functional logic A1 includes a1 and a2, functional logic B1 includes b1, b2 and b3, and functional logic C1 includes c1 and c2; at least one ICG corresponding to functional logic a1, b1, and c1 is grouped as a group, at least one ICG corresponding to functional logic a2, b2, and c2 is grouped as a group, and at least one ICG corresponding to functional logic b3 is grouped as a group.

[0090] Please refer to Figure 5 The ICG grouping module is also used to execute step S10, predefine prior knowledge, which comes from the project or upstream and downstream information, and is empty by default; specifically, when it is determined that a certain logic or area is prone to power consumption and IR Drop problems, when grouping the ICG in this part, the priority of this part of information is the highest and it is allowed to be empty. Then proceed to step S12 or step S22.

[0091] It should be noted that when performing ICG grouping based on spatial information, it is also possible to Figure 5 As shown in the dotted line portion, step S21a is executed to determine whether to weigh the functional logic information; specifically, weigh and consider the hierarchical structure information based on the functional logic, and merge the groups with a suitable weight coefficient, so as to obtain a better grouping strategy.

[0092] In this way, multiple ICGs are grouped through intelligent grouping strategies (including hierarchical structures of functional logic and / or clustering grouping algorithms) to ensure that the number of test points in each group is moderate and excessive concentration in local areas is avoided, thereby reducing current density and resistance and lowering the risk of IR Drop.

[0093] It should be noted that, in other embodiments, multiple ICGs may be grouped according to other suitable processes, which is not limited in the present disclosure.

[0094] In the disclosed embodiments, on the one hand, by increasing the degree of freedom of the ICG enable end (SE end), the computational complexity of ATPG is reduced, thereby reducing the overall test cost. On the other hand, the test flexibility is high, allowing the user or system to configure the maximum parallel enablement mode of ICG according to real-time requirements, and grouping multiple ICGs according to intelligent grouping strategies, thereby reducing the risk of local IR Drop during the test process.

[0095] In addition, since the register increment in the test control circuit 100 is very small, the number does not exceed 32 at most, which ensures a slight increase in the overall area of ​​the system. At the same time, when designing the test control circuit 100, the algorithm processing logic principle of ATPG is actively adapted and embedded, without any additional constraints, ensuring the efficiency and accuracy of the test.

[0096] In some embodiments, please refer to Figure 2 , the embodiment of the present disclosure further provides a test system, comprising the test control circuit 100 and N groups of ICG groups as in the above embodiment, the test control circuit 100 is connected to the N groups of ICG, N is an integer greater than 0;

[0097] The test control circuit 100 is used to output a target enable signal;

[0098] The test control circuit 100 is further used to test the i-th group of ICGs when the i-th bit data state of the target enable signal is in an enabled state; i is an integer less than N and greater than 0.

[0099] For example, if 1100...00 is the target enable signal, the first and second data states are in the enable state, then the first and second ICG groups are tested. For another example, if 1111...11 is the target enable signal, all data states are in the enable state, then all ICG groups are tested.

[0100] In the disclosed embodiments, the number of ICGs tested simultaneously in the capture phase can be reduced without reducing the test coverage, thereby reducing the number of register flips in the logic circuit to be tested, and further reducing the power dissipation and power consumption peak during testing.

[0101] In addition, in the testability design of large-scale integrated circuits, the specific test methods for N groups of ICG groups are as follows: Figure 8 As shown, the chip (CHIP) includes multiple submodules (corresponding to the test system in the above embodiment), and each submodule (CORE 1 to CORE N) is inserted with a predefined granularity controller GIC (corresponding to the test control circuit 100 in the above embodiment). The input of each GIC is connected to the JTAG PORT, and the output is inserted in the GATE stage and connected to the SE end of the ICG according to a specific grouping strategy (including the hierarchical structure of the functional logic and / or the clustering grouping algorithm).

[0102] Since RTL is a high-level language, there are no real register units in the RTL stage, and various gate logic cells and registers are only replaced in the GATE stage. Therefore, the SCAN insertion of DFT can only be inserted in the Gate stage.

[0103] In the overall chip design DFT strategy, a bottom-top DFT implementation process is adopted. This means that in each sub-module, we only need to perform a GIC insertion operation once. From the perspective of the entire chip, the GICs of all sub-modules will be connected to the JTAG PORT, thereby enabling configuration of any module from the CHIP side.

[0104] In addition, please continue to refer to Figure 8 The GIC logic between each submodule is completely independent, which essentially provides the ATPG tool with greater control freedom over the ICG when testing multiple modules in parallel. At the same time, the on-chip clock (ON CHIPCLOCK, OCC) is used to switch between low-frequency and high-frequency clocks.

[0105] When performing at speed testing, the performance of the chip can be accurately and reliably evaluated while taking into account the coverage and number of test vectors, and avoiding potential risks caused by IR Drop.

[0106] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the protection scope of the present disclosure.

[0107] It should be noted that in the present disclosure, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0108] The serial numbers of the above-mentioned embodiments of the present disclosure are only for description and do not represent the advantages or disadvantages of the embodiments.

[0109] The methods disclosed in several method embodiments provided in the present disclosure can be arbitrarily combined without conflict to obtain new method embodiments.

[0110] The features disclosed in several product embodiments provided in the present disclosure can be arbitrarily combined without conflict to obtain new product embodiments.

[0111] The features disclosed in several method or device embodiments provided in the present disclosure may be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0112] The above is only a specific implementation of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the above protection scope.

Claims

1. A test control circuit of a clock gate (ICG), wherein the test control circuit is connected to a plurality of groups of ICGs, each group of ICGs comprising a plurality of ICGs, and the test control circuit comprises: A mode selector, configured to generate a mode selection signal; wherein the mode selection signal indicates a target ratio of the number of ICG groups to be tested in a test process to the number of all ICG groups; A seed generator, used for generating a plurality of random seed signals respectively corresponding to the plurality of groups of ICGs, wherein each of the random seed signals indicates that a corresponding group of the ICGs is tested, and the probability of each group of the ICGs being tested is the same; A granularity enable controller is used to receive the mode selection signal, at least one first enable signal and the multiple random seed signals; perform logical processing on the multiple random seed signals to generate at least one initial enable signal, each of the initial enable signal and the first enable signal corresponds to a preset ratio, and the target ratio is one of the preset ratios; select at least one of the initial enable signal or the first enable signal corresponding to the target ratio as a target enable signal according to the mode selection signal, and use the target enable signal to control at least one group of the ICGs that need to be tested to perform testing.

2. The test control circuit according to claim 1, wherein: The seed generator is specifically used to generate an initial seed signal, and perform logical mapping on the initial seed signal to generate the multiple random seed signals; Among them, the initial seed signal indicates the number of groups of all ICGs; the number of groups of all ICGs is N, each of the random seed signals includes N bits of random seed data, and N is an integer greater than 0; each of the random seed signals includes one bit of the random seed data in an enabled state, and the total number of the random seed data in an enabled state contained in the multiple random seed signals is the same as the number of groups of all ICGs.

3. The test control circuit according to claim 2, wherein: The granularity enabling controller includes a logic processing circuit and a second selector; The logic processing circuit is used to receive the multiple random seed signals, perform at least one level or logic processing according to the multiple random seed signals, and generate at least one of the initial enable signals; The second selector is used to receive the mode selection signal, each of the initial enable signals and the first enable signal, select at least one of the initial enable signal and the first enable signal according to the mode selection signal, and output a target enable signal.

4. The test control circuit according to any one of claims 1 to 3, wherein: The test control circuit also includes: A mask control circuit is used to receive a mask signal, wherein the mask signal indicates that some groups among the multiple groups of ICGs are not to be tested; decode the mask signal to generate a mask control signal; perform an XOR logic operation on the mask control signal and the target enable signal to output a second enable signal; and use the second enable signal to control at least one group of ICGs that need to be tested to be tested while not testing at least one group of ICGs among the multiple groups of ICGs.

5. The test control circuit according to claim 4, wherein: The mask control circuit includes a decoding circuit and an XOR gate; The decoding circuit is used to receive the mask signal, decode the mask signal, and generate a mask control signal; The XOR gate is used to receive the mask control signal and the target enable signal, perform an XOR logic operation on the mask control signal and the target enable signal, and output the second enable signal.

6. The test control circuit according to claim 5, wherein: The mode selector is used to receive a parallel enable signal, perform decoding processing according to the parallel enable signal, and generate the mode selection signal; The mode selector is further used to receive a mask instruction signal, and decode the mask instruction signal to generate the mask signal.

7. The test control circuit according to claim 5 or 6, wherein: When the data state of the i-th bit of the target enable signal is in an enabled state, testing the i-th group of ICGs; i is an integer less than N and greater than 0.

8. The test control circuit according to claim 7, wherein: The test control circuit also includes: an ICG grouping module; The ICG grouping module is used to divide the ICGs into multiple categories according to functional logic, each category includes at least one ICG; and select a number of ICGs from each category to form a group of ICGs.

9. The test control circuit according to claim 8, wherein: The ICG grouping module is further used to obtain the coordinate information of the physical position of each ICG; perform grid processing on each of the coordinate information; and determine at least one of the ICGs in at least one grid as a group of ICGs.

10. A test system, comprising the test control circuit according to any one of claims 1 to 9 and N groups of ICGs, wherein the test control circuit is connected to the N groups of ICGs, and N is an integer greater than 0; The test control circuit is used to output the target enable signal; The test control circuit is further used to test the i-th group of ICGs when the i-th bit data state of the target enable signal is in an enabled state; i is an integer less than N and greater than 0.