TVF migration coverage with shortened self-test and production test time

By adding additional logic gates to the triple voting trigger and optimizing the scan chain structure, the problem of insufficient fault detection in the prior art is solved, and efficient full-speed scanning coverage and fault detection are achieved.

CN119064751APending Publication Date: 2024-12-03STMICROELECTRONICS INT NV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410675159.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-05-30
Filing Date
2024-05-29
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

In the prior art, the triple voting trigger has incomplete fault detection in full-speed scanning coverage, especially in tests that start at capture and shift, and cannot effectively detect slow rise and slow fall failures, resulting in insufficient fault coverage.

Method used

By adding additional OR and AND gates to the triple vote trigger, forming a scan chain and controlling based on the scan enable signal and mode signal, ensuring that the timing path is created between the scan enable input and output of each scan trigger by adding additional OR and AND gates to the triple vote trigger, it is possible to form a scan chain and control it based on the scan enable signal and mode signal. , to improve full-speed scanning coverage.

Benefits of technology

Achieve 100% full-speed scanning coverage without additional physical design constraints or area overhead, reducing the shift cycle of triple voting triggers, and improving testing efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119064751A_ABST
    Figure CN119064751A_ABST
Patent Text Reader

Abstract

The invention relates to TVF migration coverage with shortened self-test and production test time. According to an embodiment, a method for testing a triple voting trigger (TVF) is provided. The method comprises the following steps: a control circuit provides a first scanning enable signal and a second scanning enable signal for a first scanning trigger and a third scanning trigger of the TVF respectively; receiving a third scan enable signal at the second scan flip-flop of the TVF; a scan input signal is provided for the first scan flip-flop, the second scan flip-flop and the third scan flip-flop; controlling the first scanning enable signal, the second scanning enable signal and the third scanning enable signal; receiving a scan output signal at an output of the TVF; and determining whether the TVF encounters a fault based on the scan output signal and control of the first scan enable signal, the second scan enable signal, and the third scan enable signal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates generally to design for test and, in a specific embodiment, to at-speed scan coverage for triple voting logic. Background Art

[0002] Integrated circuits (ICs) are often tested for faults. Specifically, a method commonly referred to as scan testing is generally used to test the logic circuits of the integrated circuit. During scan testing, a test pattern is shifted in using one or more flip-flop chains (i.e., scan chains) to stimulate one or more logic circuits. The results from the stimulated logic circuits are loaded into the scan chain and shifted out for evaluation. When the shifted-out pattern matches the expected pattern (based on the one or more logic circuits functioning properly), no fault is detected and the circuit is likely to be defect-free. When the shifted-out pattern does not match the expected pattern, a fault is detected.

[0003] Figure 1 An exemplary start-on-capture (LOC) waveform 100 is shown for a scan chain clock signal (clk) and a scan enable signal (scan_en). In response to the scan enable signal being valid (e.g., logic level high), data (e.g., test vectors, test patterns, vectors, or patterns) is shifted into the scan chain at each clock signal pulse. In response to the scan enable signal being invalid (e.g., logic level low), a first pulse of the clock signal causes a logic circuit having an input coupled to the scan chain to migrate to a step generally referred to as startup. A second pulse of the clock signal causes the output of the stimulated logic circuit to load into a flip-flop of the scan chain. The shifted data is then evaluated for faults.

[0004] Capture-time startup can be performed at full speed to test logic circuits for migration delay related faults. Full speed scan coverage refers to the effectiveness of scan test techniques in detecting faults or errors in digital circuits when the digital circuits are operating at their maximum clock frequency or at their expected operating speed. It is a measure of the ability of scan test techniques to detect faults under actual operating conditions.

[0005] Capture-on-start testing enables data to be slowly moved in or out of the scan chain while still performing full-speed testing of the logic circuit. Thus, in some implementations, capture-on-start testing can enable easier implementation of scan circuits (compared to migration-on-start testing) because the scan enable signal migration may be slow.

[0006] Figure 2An exemplary start-on-shift (LOS) waveform 200 of the scan chain clock and scan enable signal is shown. In a start-on-shift test, the start operation is performed during the last shift pulse of the clock signal. The scan enable signal transitions to a low state after the last shift pulse of the clock signal but before the capture pulse of the clock signal.

[0007] Similar to the start-on-capture test, the start-on-shift test can be performed at full speed. Therefore, in some implementations, the scan enable signal implementation is designed to migrate fast enough to enable full-speed testing during the start-on-shift. In some implementations, the start-on-shift test can make the test time less (compared to the start-on-capture test) because the start-on-shift test uses the clock pulse used for the last shift for both shifting data through the scan chain and starting the operation.

[0008] Scan test (for example, using Figure 1 and Figure 2 Scan testing can be implemented in automatic test equipment (ATE), where the ATE provides, for example, test vectors to the integrated circuit and evaluates the results (the data shifted out) to determine the fault. Scan testing can also be performed as a logic built-in self-test (LBIST). The integrated circuit applies the test vectors to itself (e.g., using a pseudo-random number generator) and uses an integrated circuit LBIST controller to determine whether a fault has occurred. The performance of the scan test or LBIST can provide a way to detect the presence of a fault.

[0009] In some applications, it is expected that the circuit will always operate normally even in the presence of a fault. In such applications, redundant circuits can be used. This is often true for safety-sensitive automotive applications. Safety features may also require logic redundancy around critical bits (e.g., to prevent adversarial attacks). Redundant circuits can be understood as fault-tolerant circuits, where the circuit can continue to operate correctly in the presence of a fault.

[0010] Figure 3 A schematic diagram of an exemplary triple voting flip-flop (TVF) 300 as an example of a redundant circuit is illustrated. The triple voting flip-flop 300 includes a first D flip-flop 302 (Reg A), a second D flip-flop 304 (Reg B), and a third D flip-flop 306 (Reg C) and a voting circuit 318. The voting circuit 318 includes AND gates 310, 312, and 314 and an OR gate 320.

[0011] The logic for triple voting flip-flop 300 can be inserted at the synthesis level / gate level using, for example, a connect-disconnect script. The connect-disconnect script can be easily updated to include additional logic gates. In addition, the scan inputs on the terminals of triple voting flip-flop 300 can be extracted using a connect-disconnect script and used for gating.

[0012] The triple voting flip-flop 300 is a triple voting logic using fault-tolerant design techniques commonly used in safety-critical systems. Three redundant versions of the circuit are implemented and their outputs are compared to detect and mitigate potential errors. The full-speed scan coverage of the triple voting logic refers to the ability of the scan test technology to detect faults in such redundant circuits when operating at its maximum clock frequency. The triple voting flip-flop 300 can replace a D flip-flop where redundancy is desired.

[0013] The at-speed scan coverage of triple voting logic can vary depending on several factors, including the specific implementation of the triple voting logic, the complexity of the circuit, the test patterns used, and the quality of the manufacturing process. It is typically evaluated using extensive simulation and testing to ensure that the redundant circuits are properly tested and that faults can be detected at the expected operating speed.

[0014] Achieving high full-speed scan coverage of triple voting logic can be challenging due to the increased complexity of the design and the possibility of subtle faults that only manifest themselves under certain conditions. Therefore, comprehensive test methods that include advanced fault models and test patterns are often employed to maximize the coverage and effectiveness of full-speed scan testing of triple voting logic.

[0015] The triple voting flip-flop 300 uses majority voting to determine the output (D out For example, when all D flip-flops 302, 304, and 306 are operating normally, the content of each of the D flip-flops 302, 304, and 306 is the same, and the output (D out ) is equal to the contents of D flip-flops 302, 304, and 306. If one of the D flip-flops 302, 304, or 306 outputs an error state, the output (D out ) always outputs the correct value (because the other two D flip-flops in D flip-flops 302, 304 and 306 output the correct values).

[0016] For example, if the first D flip-flop 302 and the second D flip-flop 304 output logic "1" and the third D flip-flop 306 flips and outputs logic "0", the output of the AND gate 310 is logic "1", the output of each of the AND gates 312 and 314 is logic "0", and the output of the OR gate 320 is logic "1". If the first D flip-flop 302 and the second D flip-flop 304 output logic "0" and the third D flip-flop 306 flips and outputs logic "1", the outputs of the AND gates 310, 312, and 314 are logic "0", and the output of the OR gate 320 is logic "0".

[0017] Conventionally, triple voting flip-flops suffer from incomplete full-speed scan coverage. For example, start-up testing on capture encounters a large number of untested nodes. As another example, start-up testing on shift requires full-speed routing of scan enable signals, which cannot be easily implemented for an entire integrated circuit. It is desirable to have a method, circuit, and system for testing triple voting flip-flops with improved time reduction for self-test and production test. Summary of the invention

[0018] Technical advantages are generally achieved by embodiments of the present disclosure describing improved full-speed scan coverage of triple voting logic.

[0019] A first aspect relates to an integrated circuit. The integrated circuit includes a control circuit and a triple voting trigger. The control circuit includes a first trigger, a second trigger, a first OR gate, and a second OR gate. The output terminal of each trigger is coupled to its corresponding input terminal. The reset terminal of each trigger is configured to receive a scan mode signal. The scan input terminal of the first trigger is configured to receive a scan input signal. The first input terminal of the first OR gate is coupled to the output terminal of the first trigger. The second input terminal of the first OR gate is coupled to a scan enable signal. The first input terminal of the second OR gate is coupled to the output terminal of the second trigger. The second input terminal of the second OR gate is coupled to the scan enable signal. And, the output terminal of the first trigger is coupled to the scan input terminal of the second trigger. The triple voting trigger includes N scan triggers, N is an odd number greater than or equal to 3. The N scan triggers include a first scan trigger, a second scan trigger, and a third scan trigger. The first scan trigger has an output terminal coupled to the scan input terminal of the second scan trigger and a scan enable input terminal coupled to the output terminal of the first OR gate of the control circuit. The third scan trigger has a scan input terminal coupled to the output terminal of the second scan trigger and a scan enable input terminal coupled to the output terminal of the second OR gate of the control circuit. The control circuit is configured to control a scan enable input terminal of the first scan flip-flop and a scan enable input terminal of the third scan flip-flop based on a scan enable signal and a scan mode signal.

[0020] A second aspect relates to an integrated circuit. The integrated circuit includes a control circuit, a triple voting trigger, a scan chain and a scan controller. The control circuit is configured to provide a first scan enable signal and a second scan enable signal. The triple voting trigger includes a first scan trigger, a second scan trigger and a third scan trigger. The output end of the first scan trigger is coupled to the scan input end of the second scan trigger. The output end of the second scan trigger is coupled to the scan input end of the third scan trigger. The scan chain is configured to receive the first scan enable signal, the second scan enable signal and the third scan enable signal. The scan chain includes a first scan trigger, a second scan trigger and a third scan trigger. The first scan trigger is configured to receive the first scan enable signal. The second scan trigger is configured to receive the third scan enable signal. And, the third scan trigger is configured to receive the second scan enable signal. The scan controller is coupled to the control circuit and the triple voting trigger. The scan controller is configured to control the first scan enable signal, the second scan enable signal and the third scan enable signal.

[0021] A third aspect relates to a method for testing a triple voting flip-flop in a scan chain of an integrated circuit. The method includes: providing a first scan enable signal and a second scan enable signal by a control circuit of the integrated circuit; receiving the first scan enable signal by a first scan trigger of the triple voting flip-flop; receiving a third scan enable signal by a second scan trigger of the triple voting flip-flop, the output end of the first scan trigger being coupled to the scan input end of the second scan trigger; receiving the second scan enable signal by a third scan trigger of the triple voting flip-flop, the output end of the second scan trigger being coupled to the scan input end of the third scan trigger; providing a scan input signal to the first scan trigger, the second scan trigger and the third scan trigger; controlling the first scan enable signal, the second scan enable signal and the third scan enable signal by a scan controller of the integrated circuit; receiving a scan output signal at the output end of the triple voting flip-flop; and determining whether the triple voting flip-flop encounters a fault based on the scan output signal and the control of the first scan enable signal, the second scan enable signal and the third scan enable signal.

[0022] Embodiments may be implemented in hardware, software, or any combination thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] For a more complete understanding of the present disclosure and its advantages, reference is now made to the following description taken in conjunction with the accompanying drawings, in which:

[0024] Figure 1 illustrates exemplary start-on-capture (LOC) waveforms of scan chain clock signals and scan enable signals;

[0025] Figure 2illustrates exemplary shift-on-start (LOS) waveforms of scan chain clock signals and scan enable signals;

[0026] Figure 3 is a schematic diagram of an exemplary triple voting flip-flop (TVF);

[0027] Figure 4 is a schematic diagram of an exemplary triple voting flip-flop using a scan flip-flop;

[0028] Figure 5 is a schematic diagram of a triple voting flip-flop using a scan flip-flop;

[0029] Figure 6 is a schematic diagram of a control circuit of an embodiment;

[0030] Figure 7 is a schematic diagram of a triple voting trigger of an embodiment of an integrated circuit using a scan trigger;

[0031] Figure 8 is a schematic diagram of a control circuit of an embodiment;

[0032] Fig. 9 is a schematic diagram of a triple voting trigger of an embodiment of an integrated circuit using a scan trigger;

[0033] Fig.10 is a schematic diagram of an embodiment integrated circuit;

[0034] Fig.11 is a schematic diagram of a triple voting trigger of an embodiment of an integrated circuit using a scan trigger;

[0035] Fig.12 is a schematic diagram of a triple voting flip-flop of an embodiment of an integrated circuit using a scan flip-flop; and

[0036] Fig.13 is a flow chart of an embodiment method for testing a triple voting flip-flop in a scan chain of an integrated circuit. DETAILED DESCRIPTION

[0037] The present disclosure provides many applicable inventive concepts that can be implemented in various specific contexts. Specific embodiments are merely illustrations of specific configurations and do not limit the scope of the claimed embodiments. Unless otherwise stated, features in different embodiments may be combined to form other embodiments.

[0038] The variation or modification described in one of the embodiments may also be applied to other embodiments. In addition, various changes, substitutions and alterations may be made herein without departing from the spirit and scope of the present disclosure as defined by the appended claims.

[0039] Although aspects of the present invention are primarily described in the context of triple voting triggers that can improve scan coverage for automotive applications, it should also be understood that these inventive aspects can also be applied to other types of voting triggers, such as N voting triggers (N is an odd number greater than 3). In particular, aspects of the present disclosure can be similarly applied to applications other than automotive, such as industrial, space, or any other application that can benefit from improved scan coverage of voting triggers.

[0040] Due to the Automotive Safety Integrity Level (ASIL) risk classification scheme and automotive safety requirements, the number of triple voting flip-flops (TVFs) in automotive applications is increasing. Experts in the automotive industry estimate that 5% to 8% of all designed flip-flops will be converted to triple voting flip-flops. Considering a 5% penetration of triple voting flip-flops, the scan test time increases by 10%.

[0041] Embodiments of the present disclosure provide improved scan coverage (e.g., 100% full-speed scan coverage) for triple voting flip-flops without additional physical design constraints, minimal area overhead, and without additional stream updates with the control logic of the triple voting flip-flops. In an embodiment, a pair of OR gates are added to test all triple voting flip-flops. Aspects of the present disclosure provide an improved test scheme in which the number of shift cycles for each triple voting flip-flop is reduced relative to a typical three scan shift cycles. These and further details will be discussed in more detail below.

[0042] Figure 4 A schematic diagram of an exemplary triple voting flip-flop 400 using a scan flip-flop is shown. The triple voting flip-flop 400 is similar in structure to the triple voting flip-flop 300. However, the triple voting flip-flop 400 replaces the first D flip-flop 302, the second D flip-flop 304, and the third D flip-flop 306 with a first scan flip-flop 402, a second scan flip-flop 404, and a third scan flip-flop 406, respectively. In addition, a fourth scan flip-flop 410 is included to capture the output of the first OR gate 320.

[0043] Scan flip-flops 402, 404, 406, and 410 are coupled to form part of a scan chain 420. The additional scan flip-flop 410 is used to capture the output of the OR gate 320. Figure 4 As shown in , scan flip-flops 402 , 404 , 406 , and 410 are connected to form part of a scan chain 418 .

[0044] For each scan flip-flop, when the scan enable signal (scan_en) at the scan enable input terminal (SE) is inactive (e.g., logic level low), the scan flip-flop latches the data input signal (D) at the data input terminal (D). in), and outputs the latched content at the output terminal (Q) at each clock pulse of the clock signal (clk) at the clock input terminal of the scan flip-flop. When the scan enable signal (scan_en) is valid (e.g., logic level high) at the scan enable input terminal (SE), the scan flip-flop latches the content of the scan input signal (scan_in) at the scan input terminal (SI), and outputs the latched content at the output terminal (Q) at each clock pulse of the clock signal (clk) at the clock input terminal of the scan flip-flop. In the normal operation mode, the scan enable signal (scan_en) is invalid, and the triple voting flip-flop 400 operates similarly to the triple voting flip-flop 300.

[0045] In the start-up test at capture and in the scan mode, during the shift pulse, the test pattern is first loaded into the first scan flip-flop 402, the second scan flip-flop 404, and the third scan flip-flop 406 using the scan input signal (scan_in). During the start pulse, the first scan flip-flop 402, the second scan flip-flop 404, and the third scan flip-flop 406 latch the data input signal (D in ) and outputs the corresponding output terminal (Q). During the capture pulse, the output of OR gate 320 is captured by fourth scan flip-flop 410, which is then shifted out using a further shift pulse and compared with the expected output to determine whether triple voting flip-flop 400 includes a fault.

[0046] The downside is that Figure 4 The capture-time startup test shown in FIG. 1 does not provide complete full-speed scan coverage (fault coverage is about 30%). For example, during full-speed scan testing, a slow-rising fault may not be detected at the first scan flip-flop 402. In particular, during the shift pulse, in order to test for a slow-rising fault at the output of the first scan flip-flop 402, the first scan flip-flop 402 is loaded with a logic “0”. During the startup pulse, the data input (D in ) provides a logic “1” to the first scan flip-flop 402, the second scan flip-flop 404, and the third scan flip-flop 406. If the first scan flip-flop 402 rises slowly, but the second scan flip-flop 404 and the third scan flip-flop 406 operate normally, the slow rise failure of the first scan flip-flop 402 is masked by the presence of a logic “1” at the output of the second scan flip-flop 404 and the third scan flip-flop 406.

[0047] In the shift-on-start test and in the scan mode, during the shift pulse, the test pattern is first loaded into the first scan flip-flop 402, the second scan flip-flop 404, and the third scan flip-flop 406 using the scan input signal (scan_in). During the last shift / start pulse, the content of each of the first scan flip-flop 402, the second scan flip-flop 404, and the third scan flip-flop 406 is output at the output terminal (Q). During the capture pulse, the output of the OR gate 320 is captured by the fourth scan flip-flop 410, which is then shifted out and compared with the expected output to determine whether the triple voting flip-flop 400 includes a fault.

[0048] The downside is that Figure 4 The shift-on-start test shown in does not provide complete full-speed scan coverage (fault coverage is approximately 80%). For example, during the full-speed scan test, a slow-falling fault may not be detected at the first scan flip-flop 402. In particular, during the shift pulse (which causes the output of the AND gate 310 to be a logic "1"), in order to test for a slow-rising fault at the output of the first scan flip-flop 402, the first scan flip-flop 402 and the second scan flip-flop 404 are loaded with a logic "1". During the last shift / start pulse, the first scan flip-flop 402 is loaded with a logic "0", causing the first scan flip-flop 402 to transition from a logic "1" to a logic "0", and the outputs of the second scan flip-flop 404 and the third scan flip-flop 406 remain at a logic "1". This causes the output of the OR gate 320 to remain at a logic "1". If the first scan flip-flop 402 is falling slowly, but the second scan flip-flop 404 and the third scan flip-flop 406 are operating normally, the slow-falling fault of the first scan flip-flop 402 is masked and may not be detected.

[0049] Figure 5 A schematic diagram of a triple voting flip-flop 500 using a scan flip-flop is shown. The triple voting flip-flop 500 is similar in structure to the triple voting flip-flop 400. However, the triple voting flip-flop 500 additionally includes a first flip-flop 532, a second flip-flop 534, a first scan enable control circuit 550, and a second scan enable control circuit 552. The first scan enable control circuit 550 includes a first AND gate 546 and a first OR gate 542. The second scan enable control circuit 552 includes a second AND gate 548 and a second OR gate 544. The first scan flip-flop 402, the second scan flip-flop 404, the third scan flip-flop 406, and the fourth scan flip-flop 410 are coupled to form a portion of a scan chain 520 including the first flip-flop 532 and the second flip-flop 534.

[0050] During normal operation, in which the triple voting flip-flop 500 operates similarly to the triple voting flip-flop 300 , the scan enable signal (scan-en) and the transition mode signal (trans_mode) are inactive (eg, logic level low).

[0051] During the start-up test at the time of capture and in the scan mode, the triple voting flip-flop 500 operates similarly to the triple voting flip-flop 400 by keeping the transition mode signal (trans_mode) inactive because the scan enable input (SE) of each of the first scan flip-flop 402, the second scan flip-flop 404, the third scan flip-flop 406, and the fourth scan flip-flop 410 receives the scan enable signal (scan_en). However, when the transition mode signal (trans_mode) is active (e.g., logic level high), the scan enable inputs (SE) of the first scan flip-flop 402 and the third scan flip-flop 406 are selectively controlled based on the scan input (SI) of the first flip-flop 532 and the output (Q) of the second flip-flop 534, respectively. In this way, the contents of the first scan flip-flop 402, the second scan flip-flop 404, and the third scan flip-flop 406 are independently controlled using the transition mode signal (trans_mode) to improve full-speed scan coverage.

[0052] The downside is that Figure 5 The arrangement of improved full-speed scan coverage requires two additional OR gates and two additional AND gates for each triple voting flip-flop of the integrated circuit. In addition, it is necessary to create a timing path between (i) the scan input (SI) terminal and the scan enable (SE) terminal of multiple scan flip-flops and (ii) the scan output (SO) terminal to the scan enable (SE) terminal. In addition, the solution requires that the test be operated at a frequency corresponding to the full-speed functional frequency (e.g., 400MHz). In contrast, conventional test frequencies are typically at lower frequencies (e.g., 100 to 200MHz), requiring higher frequency test equipment.

[0053] Figure 6 A schematic diagram of an embodiment control circuit 600 is illustrated. Figure 7 A schematic diagram of an embodiment of an integrated circuit using a scan flip-flop is shown, a triple voting flip-flop 700. In an embodiment, the integrated circuit may include many triple voting flip-flops similar to the triple voting flip-flop 700. In an embodiment, additional components (not shown) may be present between the output terminal (Q) of a scan flip-flop and the scan input terminal (SI) of the next scan flip-flop.

[0054] The control circuit 600 includes a first flip-flop 602, a second flip-flop 604, a first OR gate 606, and a second OR gate 608, which may (or may not) be arranged as shown. The control circuit 600 may include additional components not shown. The output terminal (Q) of the first flip-flop 602 is coupled to the first input terminal of the first OR gate 606 and the data input terminal (D) of the first flip-flop 602 (i.e., constant). Similarly, the output terminal (Q) of the second flip-flop 604 is coupled to the first input terminal of the second OR gate 608 and the data input terminal (D) of the second flip-flop 604. The second input terminal of the first OR gate 606 and the second input terminal of the second OR gate 608 are coupled to a scan enable signal (scan_en), which is also coupled to the scan enable input terminal (SE) of the first flip-flop 602 and the scan enable input terminal (SE) of the second flip-flop 604. The reset terminal (R) of the first flip-flop 602 and the reset terminal (R) of the second flip-flop 604 are coupled to a scan mode signal (scan_mode).

[0055] In an embodiment, the output terminal of the first OR gate 606 is coupled to the scan enable input terminal (SE) of the first scan flip-flop 402 of each triple voting flip-flop 700 of all scan chains in the integrated circuit. In an embodiment, the output terminal of the second OR gate 608 is coupled to the scan enable input terminal (SE) of the third scan flip-flop 406 of each triple voting flip-flop 700 of all scan chains in the integrated circuit. Therefore, in an embodiment, the first OR gate 606 and the second OR gate 608 are common to each voting flip-flop 700 of all scan chains in the integrated circuit.

[0056] In an embodiment, the scan enable input (SE) of the second scan flip-flop 404 of each triple voting flip-flop 700 is coupled to a scan enable signal (scan_en).

[0057] In an embodiment, the first flip-flop 602 is a scan flip-flop from a different scan chain. In an embodiment, the first flip-flop 602 is a scan flip-flop from the same scan chain, but belongs to a different scan flip-flop than the first scan flip-flop 402, the second scan flip-flop 404, and the third scan flip-flop 406 of the tested triple voting flip-flop 700. In an embodiment, the first flip-flop 602 is a non-scan flip-flop.

[0058] In an embodiment, the second flip-flop 604 is a scan flip-flop from a different scan chain. In an embodiment, the second flip-flop 604 is a scan flip-flop from the same scan chain, but belongs to a different scan flip-flop than the first scan flip-flop 402, the second scan flip-flop 404, and the third scan flip-flop 406 of the tested triple voting flip-flop 700. In an embodiment, the second flip-flop 604 is a non-scan flip-flop.

[0059] In an embodiment, the first flip-flop 602 and the second flip-flop 604 are dedicated flip-flops common to each triple voting flip-flop 700 of all scan chains in the integrated circuit. In an embodiment, the first flip-flop 602 and the second flip-flop 604 are existing controllable flip-flops. In an embodiment, the first flip-flop 602 and the second flip-flop 604 can belong to any clock domain.

[0060] In an embodiment, the first flip-flop 602, the second flip-flop 604, the first OR gate 606 and the second OR gate 608 are added to the register transfer level (RTL). In such an embodiment, in the scan insertion using the script, the scan enable signal (scan_en) is coupled to the triple voting flip-flop 700.

[0061] In an embodiment in which the test points added in the scan insertion are used as the first flip-flop 602 and the second flip-flop 604, in the scan insertion using the script, the first OR gate 606 and the second OR gate 608 are added to the script together with the scan enable signal (scan_en) coupled to the triple voting flip-flop 700.

[0062] In an embodiment, the first scan flip-flop 402, the second scan flip-flop 404, and the third scan flip-flop 406, or a combination thereof, are from different scan chains or different positions of the same scan chain. Therefore, the first scan flip-flop 402, the second scan flip-flop 404, and the third scan flip-flop 406 in the triple voting flip-flop 700 do not need to be scan flip-flops in the same redundant circuit.

[0063] and Figure 5 Compared with the triple voting trigger 500, Figure 7 The triple voting flip-flop 700 in the integrated circuit has a lower area impact than the triple voting flip-flop 500. For example, if the triple voting flip-flop 500 is arranged so that the first scan flip-flop 402, the second scan flip-flop 404, and the third scan flip-flop 406 are connected in the same scan chain, or the second flip-flop 404 is a non-scan flip-flop and the third flip-flop 406 is a scan-shadow of another functional flip-flop, each triple voting flip-flop 500 requires two AND gates and two OR gates. As another example, if the third scan flip-flop 406 is connected in a different scan chain from the first scan flip-flop 402 and the second scan flip-flop 404, each triple voting flip-flop 500 requires one AND gate and one OR gate. In contrast, a single control circuit 600 (i.e., the first flip-flop 602, the second flip-flop 604, the first OR gate 606, and the second OR gate 608) is provided for all triple voting flip-flops in the integrated circuit.

[0064] Advantageously, in an embodiment, no scan chain reordering is required.In an embodiment, the flip-flops in triple voting flip-flop 700 are implemented in any manner known in the art.

[0065] In an embodiment, during normal operation, both the scan enable signal (scan_en) and the scan mode signal (scan_mode) are inactive (eg, logic level low). In such an embodiment, triple voting flip-flop 700 operates similarly to triple voting flip-flop 300 .

[0066] In an embodiment, during the scan mode, the control circuit 600 starts the test when controlling the triple voting flip-flop 700. In an embodiment, when the scan mode signal (scan_mode) is invalid (e.g., the logic level is low), the scan enable inputs (SE) of the first scan flip-flop 402, the second scan flip-flop 404, and the third scan flip-flop 406 receive the scan enable signal (scan_en). In such an embodiment, the triple voting flip-flop 700 operates similarly to the triple voting flip-flop 400 using the start-up when controlled.

[0067] In an embodiment, the scan enable input (SE) of each of the first scan flip-flop 402 and the third scan flip-flop 406 is selectively controlled based on the scan mode signal (scan_mode) being valid (e.g., logic level high) at the reset input (R) of the first flip-flop 602 and the second flip-flop 604. The ability to selectively control the operation of the first scan flip-flop 402 and the third scan flip-flop 406 improves the scan coverage compared to the scan coverage of the triple voting flip-flop 300, so that complete full-speed scan coverage is achieved without disadvantages (similar to the triple voting flip-flop 500).

[0068] For example, for full speed testing enabled using control, to test for a slow rising fault at the output of the first scan flip-flop 402, the first scan flip-flop 402, the second scan flip-flop 404, and the third scan flip-flop 406 are loaded with logic "0" during the shift pulse.

[0069] Similarly, during the shift pulse, while the scan mode signal (scan_mode) is valid (e.g., logic level high), the first flip-flop 602 is loaded with a logic "0". Additionally, while the scan mode signal (scan_mode) is valid (e.g., logic level high), the second flip-flop 604 is loaded with a logic "1". Thus, during full-speed capture (i.e., during the enable and capture pulses), the first flip-flop 602 and the second flip-flop 604 are held at a constant logic "0" and a constant logic "1", respectively, because their respective outputs (Q) are coupled back to the inputs (D) when their respective scan enable inputs (SE) are at a logic "0" (driven by the scan enable signal (scan_en)), which are held at a logic "0" during the enable of the control for full-speed capture. If the first flip-flop 602 and the second flip-flop 604 are non-scan flip-flops, during the initial test setup (e.g., loaded by the Joint Test Action Group (JTAG)) and when the scan mode signal (scan_mode) is valid (e.g., logic level high), the first flip-flop 602 and the second flip-flop 604 are loaded with logic "0" and logic "1", respectively.

[0070] During the start pulse, the scan enable input (SE) of the first scan flip-flop 402 and the scan enable input (SE) of the second scan flip-flop 404 are at logic low, and the scan enable input (SE) of the third scan flip-flop 406 is at logic high. In addition, the data input (Din) provides logic "1" to the first scan flip-flop 402, the second scan flip-flop 404, and the third scan flip-flop 406. When the scan enable input (SE) of the third scan flip-flop 406 is at a logic high level, the output (Q) of the third scan flip-flop 406 remains at logic "0", while the output (Q) of the first scan flip-flop 402 and the output (Q) of the second scan flip-flop 404 transition from a logic low level to a logic high level. When the first scan flip-flop 402 rises slowly, the fault propagates to the output of the first AND gate 310. When the outputs of the second and third AND gates 312 and 314 are at logic “0”—when the output of the third scan flip-flop 406 is at logic “0”—the fault then propagates to the output of the first OR gate 320 , which is captured by the fourth scan flip-flop 410 during the capture pulse.

[0071] In an embodiment, during migration testing, the scan enable signal (scan_en) remains static (i.e., remains at the same value). In such an embodiment, the scan enable signal (scan_en) may be maintained at a logic level high or a logic level low based on different scan patterns (i.e., based on different states of different scan patterns).

[0072] In an embodiment, when the scan enable signal (scan_en) at the scan enable input terminal (SE) of the second scan trigger 404 (Reg B) is at a logic level low, the scan enable signal (scan_en) at the scan enable input terminal (SE) of the first scan trigger 402 (Reg A) from the first OR gate 606 and the scan enable signal (scan_en) at the scan enable input terminal (SE) of the third scan trigger 406 (Reg C) from the second OR gate 608 remain at a logic level high or a logic level low during the entire capture period.

[0073] In an embodiment, triple voting flip-flop 700 is implemented as part of an integrated circuit. In some embodiments, scan testing of triple voting flip-flop 700 is performed using ATE (e.g., during production testing of the integrated circuit). In some embodiments, scan testing of triple voting flip-flop 700 is performed using a logic built-in self-test (LBIST) controller.

[0074] In an embodiment, a scan test pattern may be designed (eg, manually or using a conventional automatic test pattern generator (ATPG)) to advantageously achieve up to 100% scan coverage of triple vote flip-flop 700 .

[0075] The triple voting flip-flop 700 and control circuit 600 advantageously provide improved scan coverage without impacting functional operating modes or scan stitching. Some embodiments achieve improved scan coverage with low area impact (e.g., only adding 2 logic OR gates for all triple voting flip-flops). In an embodiment, improved scan coverage of triple voting flip-flops is achieved without routing fast signals (e.g., since scan testing is performed using control-time start, the scan enable signal (scan_en) can be a relatively slow signal, and since the scan mode signal (scan_mode) can be a static signal during scan testing).

[0076] In an embodiment, the triple voting flip-flop with improved scan coverage may be implemented with a voting circuit different from voting circuit 318. For example, the voting circuit may be implemented using three OR gates having outputs coupled to AND gates (not shown), wherein each OR gate has an input connected to the output of a corresponding scan flip-flop. Thus, the implementation of the voting circuit is non-limiting.

[0077] Figure 8 A schematic diagram of an embodiment control circuit 800 is illustrated. Fig. 9 A schematic diagram of a triple voting flip-flop 900 of an embodiment of an integrated circuit using a scan flip-flop is illustrated. In an embodiment, an integrated circuit may include many triple voting flip-flops similar to triple voting flip-flop 900 .

[0078] The control circuit 800 includes a first flip-flop 602, a second flip-flop 604, a third scan flip-flop 804, a first OR gate 606, a second OR gate 608, and a third OR gate 802, which may (or may not) be arranged as shown. The control circuit 800 may include additional components not shown. The control circuit 800 is similar in structure to the control circuit 600. However, the control circuit 800 includes a third scan flip-flop 804 and a third OR gate 802.

[0079] The output terminal (Q) of the third scan flip-flop 804 is coupled to the first input terminal of the third OR gate 802 and the data input terminal (D) of the third scan flip-flop 804. The second input terminal of the third OR gate 802 is coupled to the scan enable signal (scan_en), which is also coupled to the scan enable input terminal (SE) of the third scan flip-flop 804. The reset terminal (R) of the third scan flip-flop 804 is connected to the scan mode signal (scan_mode).

[0080] The triple voting flip-flop 900 is similar in structure to the triple voting flip-flop 700 . However, the second scan flip-flop 404 in the triple voting flip-flop 900 is coupled to the output terminal of the third OR gate 802 .

[0081] In an embodiment, the output terminal of the third OR gate 802 is coupled to the scan enable input (SE) of the second scan flip-flop 404 of each triple voting flip-flop 900 of the scan chain in the integrated circuit. Therefore, in an embodiment, the first OR gate 606, the second OR gate 608, and the third OR gate 802 are common to each triple voting flip-flop 700 of all scan chains in the integrated circuit.

[0082] In an embodiment, the third scan flip-flop 804 is a scan flip-flop from a different scan chain. In an embodiment, the third scan flip-flop 804 is a scan flip-flop from the same scan chain, but belongs to a different scan flip-flop than the first scan flip-flop 402, the second scan flip-flop 404, and the third scan flip-flop 406 of the tested triple voting flip-flop 900. In an embodiment, the third scan flip-flop 804 is a non-scan flip-flop.

[0083] In an embodiment, the third scan flip-flop 804 is a dedicated flip-flop, which is common to each triple voting flip-flop 900 of all scan chains in the integrated circuit. In an embodiment, the third scan flip-flop 804 is an existing controllable flip-flop. In an embodiment, the third scan flip-flop 804 belongs to any clock domain.

[0084] In an embodiment, the first flip-flop 602 , the second flip-flop 604 , the third scan flip-flop 804 , the first OR gate 606 , the second OR gate 608 , and the third OR gate 802 are added to a register transfer level (RTL).

[0085] Fig.10 The schematic diagram of an embodiment integrated circuit 1000 is shown. The integrated circuit 1000 includes a scan chain 1020 and a scan controller 1030. The scan chain 1020 includes a triple voting flip-flop 1006, scan flip-flops 1002, 1004, and 1008.

[0086] When a redundant circuit such as triple voting flip-flop 1006 (with three flip-flops) replaces a single flip-flop of scan chain 1020 (e.g., for redundancy), three scan shift cycles (i.e., two additional cycles) are typically required to shift triple voting flip-flop 1006. Adding a scan shift cycle during scan testing affects load / unload, which in turn affects scan test time. In addition, when integrated circuit 1000 is operating in LBIST partitions, the increase in scan shift cycles affects self-test time.

[0087] In an embodiment, ternary voting flip-flop 1006 includes control circuit 1010 (implemented as control circuit 600), first scan flip-flop 402, second scan flip-flop 404, and third scan flip-flop 406. In an embodiment, ternary voting flip-flop 1006 is implemented as ternary voting flip-flop 700.

[0088] In an embodiment, ternary voting flip-flop 1006 includes control circuit 1010 (implemented as control circuit 800), first scan flip-flop 402, second scan flip-flop 404, and third scan flip-flop 406. In an embodiment, ternary voting flip-flop 1006 is implemented as ternary voting flip-flop 900.

[0089] In some embodiments, scan controller 1030 is implemented using digital circuits, such as a finite state machine (FSM). In an embodiment, scan controller 1030 is implemented by a general or custom microcontroller or processor coupled to a memory. Other implementations may also be possible. In an embodiment, scan controller 1030 includes control circuit 1010, which is common to all triple voting flip-flops in integrated circuit 1000.

[0090] In an embodiment, the control circuit 1010 receives a scan enable signal (scan_en) and a control signal from a scan output terminal (SO) of a previous scan trigger (i.e., coupled to a scan input terminal of the control circuit 600) to control a scan enable input terminal (SE) of the first scan trigger 402 and a scan enable input terminal (SE) of the third scan trigger 406.

[0091] In an embodiment, the control circuit 1010 receives a scan enable signal (scan_en) and a control signal from a scan output terminal (SO) of another scan trigger (i.e., which is coupled to a scan input terminal of the control circuit 600) of the scan chain 1020 (such as a scan trigger after the triple voting trigger 1006 or a scan trigger before the triple voting trigger 1006) to control a scan enable input terminal (SE) of the first scan trigger 402 and a scan enable input terminal (SE) of the third scan trigger 406.

[0092] In an embodiment, the scan controller 1030 performs LBIST by generating a scan mode signal (scan_mode), a scan enable signal (scan_en), and a scan input signal (scan_in); tests the triple voting flip-flop 1006 using a capture start test; receives an output signal (scan_out); and determines whether the triple voting flip-flop 1006 encounters any fault conditions.

[0093] In an embodiment, automatic test equipment generates a scan mode signal (scan_mode), a scan enable signal (scan_en), and a scan input signal (scan_in); tests triple voting flip-flop 1006 using a start-on-capture test; receives an output signal (scan_out); and determines whether triple voting flip-flop 1006 encounters any fault conditions.

[0094] Fig.11 A schematic diagram of a triple voting flip-flop 1100 is shown for an embodiment of an integrated circuit using a scan flip-flop. Fig.12 A schematic diagram of an embodiment of an integrated circuit using a scan flip-flop is shown, triple voting flip-flop 1200. Advantageously, triple voting flip-flops 1100 and 1200 require a single shift cycle for testing - in contrast, conventional triple voting flip-flops require three shift cycles.

[0095] Conventionally, in order to achieve 100% scan coverage, the first scan trigger 402 and the third scan trigger 406 are driven by functional triggers. The value of the functional trigger is not retained during capture. In addition, during LBIST testing, the test of the second scan trigger 404 is limited due to the use of non-scan triggers.

[0096] The ternary voting flip-flop 1100 is coupled to the control circuit 600. The ternary voting flip-flop 1200 is coupled to the control circuit 800. The ternary voting flip-flop 1100 and the ternary voting flip-flop 1200 are similar in structure to the ternary voting flip-flop 700 and the ternary voting flip-flop 900, respectively. However, a scan output signal (scan_out) is provided at the output terminal (Q) of the first scan flip-flop 402 in the ternary voting flip-flop 1100 and the ternary voting flip-flop 1200.

[0097] In an embodiment, optionally, the triple voting flip-flop 1100 and the triple voting flip-flop 1200 include a multiplexer 1102. An input terminal of the multiplexer 1102 is coupled to an output terminal (Q) of the first scan flip-flop 402 and an output terminal (Q) of the third scan flip-flop 406. A selection terminal of the multiplexer 1102 is coupled to a test control unit (TCU), and the test control unit provides a test control signal (TCU signal) to determine the selection between the input terminals of the multiplexer 1102 as the output of the multiplexer 1102. The multiplexer 1102 coupled to the output terminals (Q) of the first scan flip-flop 402 and the third scan flip-flop 406 provides flexibility for three scan shift cycles (generating test patterns for, for example, basic mode testing) and for a single shift cycle (generating test patterns for, for example, rapid sequential or full sequence testing).

[0098] In an embodiment, the second scan flip-flop 404 and the third scan flip-flop 406 can be forced to be non-scan flip-flops during scan insertion, and the second scan flip-flop 404 and the third scan flip-flop 406 are connected by, for example, coupling the scan input terminal (SI) and the scan enable input terminal (SE) of the second scan flip-flop 404 and the third scan flip-flop 406 by using a script. In this way, the second scan flip-flop 404 and the third scan flip-flop 406 can be controlled by corresponding scan input signals (e.g., scan_in1 for the second scan flip-flop 404 and scan_in2 for the third scan flip-flop 406). Advantageously, this enables LBIST testing because the triple voting flip-flop 1100 and the triple voting flip-flop 1200 do not include non-scan flip-flops because the second scan flip-flop 404 and the third scan flip-flop 406 have known values ​​at the end of the last shift and are not part of the scan output signal (scan_out). In addition, this eliminates any requirement that the third scan flip-flop 406 is a shadow of an external functional flip-flop, which is required in conventional solutions.

[0099] Fig.13A flow chart of an embodiment method 1300 for testing a triple voting flip-flop in a scan chain 1020 of an integrated circuit 1000 is illustrated. Note that all steps outlined in the flow chart of the method 1300 are not necessarily required and may be optional. Additionally, similarly, it is contemplated to change the arrangement of steps, remove one or more steps and path connections, and add steps and path connections.

[0100] In step 1302, the control circuit 600, 800, 1010 provides a first scan enable signal (scan_en(REG A)), a second scan enable signal (scan_en(REG B)), and a third scan enable signal (scan_en(REG C)). In an embodiment, the control circuit 600, 800, 1010 only provides the first scan enable signal (scan_en(REG A)) and the third scan enable signal (scan_en(REG C)).

[0101] In step 1304, the first scan flip-flop 402 receives the first scan enable signal at the scan enable input terminal (SE) of the first scan flip-flop 402. In step 1306, the second scan flip-flop 404 receives the second scan enable signal at the scan enable input terminal (SE) of the second scan flip-flop 404. In step 1308, the third scan flip-flop 406 receives the third scan enable signal at the scan enable input terminal (SE) of the third scan flip-flop 406.

[0102] In step 1310 , a scan input signal is provided to a first scan flip-flop, a second scan flip-flop, and a third scan flip-flop.

[0103] In step 1312 , the scan controller 1030 controls the first scan enable signal, the second scan enable signal, and the third scan enable signal by setting a scan mode signal (scan_mode) and a scan enable signal.

[0104] In step 1314, a scan-out signal is provided at the output of the triple voting flip-flop.

[0105] In step 1316, the scan controller (or a separate processor) determines whether the triple voting flip-flop encounters a fault based on the scan output signal and the validity and invalidity of the first scan enable signal, the second scan enable signal, and the third scan enable signal. In an embodiment, determining the fault includes verifying that all rising and falling transitions of each output node of the triple voting flip-flop occur within a predetermined time.

[0106] In an embodiment, steps 1302 to 1316 are repeated for a second triple voting flip-flop of the same or a different scan chain 1020 .

[0107] A first aspect relates to an integrated circuit. The integrated circuit includes a control circuit and a triple voting trigger. The control circuit includes a first trigger, a second trigger, a first OR gate, and a second OR gate. The output terminal of each trigger is coupled to its corresponding input terminal. The reset terminal of each trigger is configured to receive a scan mode signal. The scan input terminal of the first trigger is configured to receive a scan input signal. The first input terminal of the first OR gate is coupled to the output terminal of the first trigger. The second input terminal of the first OR gate is coupled to a scan enable signal. The first input terminal of the second OR gate is coupled to the output terminal of the second trigger. The second input terminal of the second OR gate is coupled to the scan enable signal. And, the output terminal of the first trigger is coupled to the scan input terminal of the second trigger. The triple voting trigger includes N scan triggers, N is an odd number greater than or equal to 3. The N scan triggers include a first scan trigger, a second scan trigger, and a third scan trigger. The first scan trigger has an output terminal coupled to the scan input terminal of the second scan trigger and a scan enable input terminal coupled to the output terminal of the first OR gate of the control circuit. The third scan trigger has a scan input terminal coupled to the output terminal of the second scan trigger and a scan enable input terminal coupled to the output terminal of the second OR gate of the control circuit. The control circuit is configured to control a scan enable input terminal of the first scan flip-flop and a scan enable input terminal of the third scan flip-flop based on a scan enable signal and a scan mode signal.

[0108] In a first implementation form of such an integrated circuit, the triple voting trigger is a first triple voting trigger of the scan chain. The integrated circuit also includes a second triple voting trigger, which includes M scan triggers, M is an odd number greater than or equal to 3. The M scan triggers include a fourth scan trigger, a fifth scan trigger, and a sixth scan trigger. The fourth scan trigger has an output terminal coupled to the scan input terminal of the fifth scan trigger and a scan enable input terminal coupled to the output terminal of the first OR gate of the control circuit. The sixth scan trigger has a scan input terminal coupled to the output terminal of the fifth scan trigger and a scan enable input terminal coupled to the output terminal of the second OR gate of the control circuit. The control circuit is configured to control the scan enable input terminal of the fourth scan trigger and the scan enable input terminal of the sixth scan trigger based on the scan enable signal and the scan mode signal.

[0109] In a second implementation form of the integrated circuit, according to such a first aspect or any of the foregoing implementation forms of the first aspect, the integrated circuit further includes a logic circuit, which includes a first AND gate, a second AND gate, a third AND gate, and a third OR gate. The first input terminal of the first AND gate is coupled to the output terminal of the first scan trigger. The second input terminal of the first AND gate is coupled to the output terminal of the second scan trigger. The first input terminal of the second AND gate is coupled to the output terminal of the second scan trigger. The second input terminal of the second AND gate is coupled to the output terminal of the third scan trigger. The first input terminal of the third AND gate is coupled to the output terminal of the third scan trigger. The second input terminal of the third AND gate is coupled to the output terminal of the third scan trigger. The first input terminal of the third OR gate is coupled to the output terminal of the first AND gate. The second input terminal of the third OR gate is coupled to the output terminal of the second AND gate. And, the third input terminal of the third OR gate is coupled to the output terminal of the third AND gate.

[0110] In a third implementation form of the integrated circuit, according to such first aspect or any preceding implementation form of the first aspect, the integrated circuit further comprises a fourth scan flip-flop having an input terminal coupled to the output terminal of the third OR gate.

[0111] In a fourth implementation form of the integrated circuit, according to such first aspect or any preceding implementation form of the first aspect, the integrated circuit further comprises a scan controller coupled to the control circuit and the triple voting flip-flop. In response to the integrated circuit being in the scan mode, the scan controller is configured to provide a scan input signal to the triple voting flip-flop, receive a scan output signal from the fourth scan flip-flop, and determine whether the triple voting flip-flop encounters a fault based on the scan output signal.

[0112] In a fifth implementation form of the integrated circuit, according to such first aspect or any preceding implementation form of the first aspect, N is equal to 3.

[0113] In a sixth implementation form of the integrated circuit, according to such first aspect or any of the preceding implementation forms of the first aspect, the first flip-flop and the second flip-flop are of a scan flip-flop type.

[0114] A second aspect relates to an integrated circuit. The integrated circuit includes a control circuit, a triple voting trigger, a scan chain and a scan controller. The control circuit is configured to provide a first scan enable signal and a second scan enable signal. The triple voting trigger includes a first scan trigger, a second scan trigger and a third scan trigger. The output end of the first scan trigger is coupled to the scan input end of the second scan trigger. The output end of the second scan trigger is coupled to the scan input end of the third scan trigger. The scan chain is configured to receive the first scan enable signal, the second scan enable signal and the third scan enable signal. The scan chain includes a first scan trigger, a second scan trigger and a third scan trigger. The first scan trigger is configured to receive the first scan enable signal. The second scan trigger is configured to receive the third scan enable signal. And, the third scan trigger is configured to receive the second scan enable signal. The scan controller is coupled to the control circuit and the triple voting trigger. The scan controller is configured to control the first scan enable signal, the second scan enable signal and the third scan enable signal.

[0115] In a first implementation form of such an integrated circuit, the triple voting flip-flop includes a logic circuit having a first AND gate, a second AND gate, a third AND gate, and an OR gate. A first input terminal of the first AND gate is coupled to an output terminal of the first scan flip-flop, a second input terminal of the first AND gate is coupled to an output terminal of the second scan flip-flop, a first input terminal of the second AND gate is coupled to an output terminal of the second scan flip-flop, a second input terminal of the second AND gate is coupled to an output terminal of the third scan flip-flop, a first input terminal of the third AND gate is coupled to an output terminal of the first scan flip-flop, a second input terminal of the third AND gate is coupled to an output terminal of the third scan flip-flop, a first input terminal of the OR gate is coupled to an output terminal of the first AND gate, a second input terminal of the OR gate is coupled to an output terminal of the second AND gate, and a third input terminal of the OR gate is coupled to an output terminal of the third AND gate.

[0116] In a second implementation form of the integrated circuit, according to such second aspect or any of the preceding implementation forms of the second aspect, the integrated circuit further comprises a fourth scan trigger having an input terminal coupled to the output terminal of the OR gate.

[0117] In a third implementation form of the integrated circuit, according to such a second aspect or any preceding implementation of the second aspect, in response to the integrated circuit being in a scan mode, a scan controller is configured to provide a scan input signal to a triple voting flip-flop, receive a scan output signal from a fourth scan flip-flop, and determine whether the triple voting flip-flop encounters a fault based on the scan output signal.

[0118] In a fourth implementation form of the integrated circuit, according to such second aspect or any preceding implementation of the second aspect, the triple voting flip-flop is a first triple voting flip-flop, and the scan chain further comprises a second triple voting flip-flop.

[0119] In a fifth implementation form of the integrated circuit, according to such second aspect or any preceding implementation form of the second aspect, the integrated circuit further comprises a multiplexer. A first input of the multiplexer is coupled to an output of the first scan trigger, and a second input of the multiplexer is coupled to an output of the third scan trigger.

[0120] In a sixth implementation form of the integrated circuit, according to such a second aspect or any of the foregoing implementation forms of the second aspect, the scan controller is configured to determine whether the triple voting trigger encounters a fault by controlling the first scan enable signal, the second scan enable signal and the third scan enable signal in a scan mode.

[0121] A third aspect relates to a method for testing a triple voting flip-flop in a scan chain of an integrated circuit. The method includes: providing a first scan enable signal and a second scan enable signal by a control circuit of the integrated circuit; receiving the first scan enable signal by a first scan trigger of the triple voting flip-flop; receiving a third scan enable signal by a second scan trigger of the triple voting flip-flop, the output end of the first scan trigger being coupled to the scan input end of the second scan trigger; receiving the second scan enable signal by a third scan trigger of the triple voting flip-flop, the output end of the second scan trigger being coupled to the scan input end of the third scan trigger; providing a scan input signal to the first scan trigger, the second scan trigger and the third scan trigger; controlling the first scan enable signal, the second scan enable signal and the third scan enable signal by a scan controller of the integrated circuit; receiving a scan output signal at the output end of the triple voting flip-flop; and determining whether the triple voting flip-flop encounters a fault based on the scan output signal and the control of the first scan enable signal, the second scan enable signal and the third scan enable signal.

[0122] In such a first implementation form of the method, determining whether the triple voting flip-flop suffers from a fault comprises verifying that all rising and falling transitions of each output node of the triple voting flip-flop occur within a predetermined time.

[0123] In a second implementation form of the method, according to such a third aspect or any of the foregoing implementation forms of the third aspect, the triple voting flip-flop includes a logic circuit having a first AND gate, a second AND gate, a third AND gate, and a third OR gate. A first input terminal of the first AND gate is coupled to an output terminal of the first scan flip-flop, a second input terminal of the first AND gate is coupled to an output terminal of the second scan flip-flop, a first input terminal of the second AND gate is coupled to an output terminal of the second scan flip-flop, a second input terminal of the second AND gate is coupled to an output terminal of the third scan flip-flop, a first input terminal of the third AND gate is coupled to an output terminal of the first scan flip-flop, a second input terminal of the third AND gate is coupled to an output terminal of the third scan flip-flop, a first input terminal of the OR gate is coupled to an output terminal of the first AND gate, a second input terminal of the OR gate is coupled to an output terminal of the second AND gate, and a third input terminal of the OR gate is coupled to an output terminal of the third AND gate.

[0124] In a third implementation form of the method, according to such a third aspect or any preceding implementation of the third aspect, an output terminal of the OR gate is coupled to a fourth scan flip-flop. In response to the integrated circuit being in a scan mode, the method further includes sending a scan input signal to a triple voting flip-flop and receiving a scan output signal from the fourth scan flip-flop.

[0125] In a fourth implementation form of the method, according to such third aspect or any preceding implementation of the third aspect, the triple voting flip-flop is a first triple voting flip-flop, and the scan chain further includes a second triple voting flip-flop.

[0126] In a fifth implementation form of the method, according to such a third aspect or any of the foregoing implementation forms of the third aspect, the method further includes receiving a first scan enable signal by a first scan trigger of a second triple voting trigger; receiving a third scan enable signal by a second scan trigger of the second triple voting trigger; receiving a second scan enable signal by a third scan trigger of the second triple voting trigger; providing a scan input signal to the first scan trigger, the second scan trigger, and the third scan trigger of the second triple voting trigger; controlling the first scan enable signal, the second scan enable signal, and the third scan enable signal by a scan controller of the integrated circuit; receiving a second scan output signal at an output end of the second triple voting trigger; and determining whether the second triple voting trigger encounters a fault based on the second scan output signal and the control of the first scan enable signal, the second scan enable signal, and the third scan enable signal. The output end of the first scan trigger of the second triple voting trigger is coupled to the scan input end of the second scan trigger of the second triple voting trigger. The output end of the second scan trigger of the second triple voting trigger is coupled to the scan input end of the third scan trigger of the second triple voting trigger.

[0127] Although the description has been described in detail, it should be understood that various changes, substitutions and modifications may be made without departing from the spirit and scope of the present disclosure as defined in the appended claims. The same elements are designated by the same reference numerals in different figures. In addition, the scope of the present disclosure is not intended to be limited to the specific embodiments described herein, as it will be readily understood by those of ordinary skill in the art from the present disclosure that currently existing or later to be developed processes, machines, manufactures, material compositions, devices, methods or steps may perform substantially the same functions as the corresponding embodiments described herein or achieve substantially the same results. Therefore, the appended claims are intended to include such processes, machines, manufactures, material compositions, devices, methods or steps within their scope.

[0128] Accordingly, the specification and drawings are to be regarded simply as illustrations of the present disclosure as defined by the appended claims, and any and all modifications, variations, combinations or equivalents falling within the scope of the present disclosure are contemplated.

Claims

1. An integrated circuit, comprising: a control circuit, the control circuit comprising a first flip-flop, a second flip-flop, a first OR gate, and a second OR gate, the output terminal of each flip-flop being coupled to its corresponding input terminal, the reset terminal of each flip-flop being configured to receive a scan mode signal, the scan input terminal of the first flip-flop being configured to receive a scan input signal, the first input terminal of the first OR gate being coupled to the output terminal of the first flip-flop, the second input terminal of the first OR gate being coupled to a scan enable signal, the first input terminal of the second OR gate being coupled to the output terminal of the second flip-flop, the second input terminal of the second OR gate being coupled to the scan enable signal, and the output terminal of the first flip-flop being coupled to the scan input terminal of the second flip-flop; and A triple voting trigger, the triple voting trigger includes a number N of scan triggers, N is an odd number greater than or equal to 3, the N scan triggers include a first scan trigger, a second scan trigger and a third scan trigger, the first scan trigger has an output terminal coupled to the scan input terminal of the second scan trigger and a scan enable input terminal coupled to the output terminal of the first OR gate of the control circuit, the third scan trigger has a scan input terminal coupled to the output terminal of the second scan trigger and a scan enable input terminal coupled to the output terminal of the second OR gate of the control circuit, the control circuit is configured to control the scan enable input terminal of the first scan trigger and the scan enable input terminal of the third scan trigger based on the scan enable signal and the scan mode signal.

2. The integrated circuit according to claim 1, wherein: The triple voting trigger is the first triple voting trigger of the scan chain, and the integrated circuit also includes a second triple voting trigger, the second triple voting trigger includes a number M of scan triggers, M is an odd number greater than or equal to 3, the M scan triggers include a fourth scan trigger, a fifth scan trigger and a sixth scan trigger, the fourth scan trigger has an output terminal coupled to the scan input terminal of the fifth scan trigger and a scan enable input terminal coupled to the output terminal of the first OR gate of the control circuit, the sixth scan trigger has a scan input terminal coupled to the output terminal of the fifth scan trigger and a scan enable input terminal coupled to the output terminal of the second OR gate of the control circuit, and the control circuit is configured to control the scan enable input terminal of the fourth scan trigger and the scan enable input terminal of the sixth scan trigger based on the scan enable signal and the scan mode signal.

3. The integrated circuit according to claim 1, further comprising a logic circuit, the logic circuit comprising a first AND gate, a second AND gate, a third AND gate and a third OR gate, the first input terminal of the first AND gate being coupled to the output terminal of the first scan trigger, the second input terminal of the first AND gate being coupled to the output terminal of the second scan trigger, the first input terminal of the second AND gate being coupled to the output terminal of the second scan trigger, the second input terminal of the second AND gate being coupled to the output terminal of the third scan trigger, the first input terminal of the third AND gate being coupled to the output terminal of the first scan trigger, the second input terminal of the third AND gate being coupled to the output terminal of the third scan trigger, the first input terminal of the third OR gate being coupled to the output terminal of the first AND gate, the second input terminal of the third OR gate being coupled to the output terminal of the second AND gate, and the third input terminal of the third OR gate being coupled to the output terminal of the third AND gate. 4 . The integrated circuit of claim 3 , further comprising a fourth scan flip-flop having an input terminal coupled to the output terminal of the third OR gate.

5. The integrated circuit of claim 4, further comprising a scan controller coupled to the control circuit and the triple voting flip-flop, wherein: In response to the integrated circuit being in a scan mode, the scan controller is configured to provide a scan input signal to the triple voting flip-flop, receive a scan output signal from the fourth scan flip-flop, and determine whether the triple voting flip-flop encounters a fault based on the scan output signal.

6. The integrated circuit of claim 1, wherein: N is equal to 3.

7. The integrated circuit according to claim 1, wherein: The first flip-flop and the second flip-flop are of a scan flip-flop type.

8. An integrated circuit, comprising: a control circuit configured to provide a first scan enable signal and a second scan enable signal; A triple voting trigger, the triple voting trigger comprising a first scan trigger, a second scan trigger and a third scan trigger, the output end of the first scan trigger being coupled to the scan input end of the second scan trigger, and the output end of the second scan trigger being coupled to the scan input end of the third scan trigger; A scan chain is configured to receive the first scan enable signal, the second scan enable signal, and the third scan enable signal, the scan chain includes the first scan trigger, the second scan trigger, and the third scan trigger, the first scan trigger is configured to receive the first scan enable signal, the second scan trigger is configured to receive the third scan enable signal, and the third scan trigger is configured to receive the second scan enable signal; and A scan controller is coupled to the control circuit and the triple voting flip-flop, and is configured to control the first scan enable signal, the second scan enable signal, and the third scan enable signal.

9. The integrated circuit of claim 8, wherein: The triple voting flip-flop includes a logic circuit, which includes a first AND gate, a second AND gate, a third AND gate and an OR gate, wherein the first input terminal of the first AND gate is coupled to the output terminal of the first scan flip-flop, the second input terminal of the first AND gate is coupled to the output terminal of the second scan flip-flop, the first input terminal of the second AND gate is coupled to the output terminal of the second scan flip-flop, the second input terminal of the second AND gate is coupled to the output terminal of the third scan flip-flop, the first input terminal of the third AND gate is coupled to the output terminal of the first scan flip-flop, the second input terminal of the third AND gate is coupled to the output terminal of the third scan flip-flop, the first input terminal of the OR gate is coupled to the output terminal of the first AND gate, the second input terminal of the OR gate is coupled to the output terminal of the second AND gate, and the third input terminal of the OR gate is coupled to the output terminal of the third AND gate. 10 . The integrated circuit of claim 9 , further comprising a fourth scan flip-flop having an input terminal coupled to the output terminal of the OR gate.

11. The integrated circuit of claim 10, wherein: In response to the integrated circuit being in a scan mode, the scan controller is configured to provide a scan input signal to the triple voting flip-flop, receive a scan output signal from the fourth scan flip-flop, and determine whether the triple voting flip-flop encounters a fault based on the scan output signal.

12. The integrated circuit of claim 8, wherein: The triple voting flip-flop is a first triple voting flip-flop, and the scan chain further includes a second triple voting flip-flop.

13. The integrated circuit of claim 8, further comprising a multiplexer having a first input coupled to the output of the first scan flip-flop and a second input coupled to the output of the third scan flip-flop.

14. The integrated circuit of claim 13, wherein: The scan controller is configured to determine whether the triple voting flip-flop encounters a fault by controlling the first scan enable signal, the second scan enable signal, and the third scan enable signal in a scan mode.

15. A method for testing a triple voting flip-flop in a scan chain of an integrated circuit, the method comprising: A control circuit of the integrated circuit provides a first scan enable signal and a second scan enable signal; Receiving the first scan enable signal by a first scan trigger of the triple voting trigger; A third scan enable signal is received by a second scan trigger of the triple voting trigger, and an output terminal of the first scan trigger is coupled to a scan input terminal of the second scan trigger; A third scan trigger of the triple voting trigger receives a second scan enable signal, wherein an output terminal of the second scan trigger is coupled to a scan input terminal of the third scan trigger; providing a scan input signal to the first scan trigger, the second scan trigger, and the third scan trigger; The first scan enable signal, the second scan enable signal and the third scan enable signal are controlled by a scan controller of the integrated circuit; receiving a scan-out signal at an output of the triple voting flip-flop; and Whether the triple voting flip-flop encounters a failure is determined based on the scan output signal and control of the first scan enable signal, the second scan enable signal, and the third scan enable signal.

16. The method according to claim 15, wherein: Determining whether the triple voting flip-flop has experienced a fault includes verifying that all rising and falling transitions of each output node of the triple voting flip-flop occur within a predetermined time.

17. The method according to claim 15, wherein: The triple voting flip-flop includes a logic circuit, which includes a first AND gate, a second AND gate, a third AND gate and an OR gate, wherein the first input terminal of the first AND gate is coupled to the output terminal of the first scan flip-flop, the second input terminal of the first AND gate is coupled to the output terminal of the second scan flip-flop, the first input terminal of the second AND gate is coupled to the output terminal of the second scan flip-flop, the second input terminal of the second AND gate is coupled to the output terminal of the third scan flip-flop, the first input terminal of the third AND gate is coupled to the output terminal of the first scan flip-flop, the second input terminal of the third AND gate is coupled to the output terminal of the third scan flip-flop, the first input terminal of the OR gate is coupled to the output terminal of the first AND gate, the second input terminal of the OR gate is coupled to the output terminal of the second AND gate, and the third input terminal of the OR gate is coupled to the output terminal of the third AND gate.

18. The method according to claim 17, wherein: The output terminal of the OR gate is coupled to a fourth scan flip-flop, and wherein, in response to the integrated circuit being in a scan mode, the method further comprises: sending the scan input signal to the triple voting flip-flop; and The scan-out signal is received from a fourth scan flip-flop.

19. The method according to claim 15, wherein: The triple voting flip-flop is a first triple voting flip-flop, and the scan chain further includes a second triple voting flip-flop.

20. The method according to claim 19, further comprising: Receiving the first scan enable signal by the first scan trigger of the second triple voting trigger; A third scan enable signal is received by a second scan trigger of the second triple voting trigger, and an output terminal of the first scan trigger of the second triple voting trigger is coupled to a scan input terminal of the second scan trigger of the second triple voting trigger; The second scan enable signal is received by the third scan trigger of the second triple voting trigger, and the output terminal of the second scan trigger of the second triple voting trigger is coupled to the scan input terminal of the third scan trigger of the second triple voting trigger; providing a scan input signal to the first scan flip-flop, the second scan flip-flop and the third scan flip-flop of the second triple voting flip-flop; The first scan enable signal, the second scan enable signal and the third scan enable signal are controlled by a scan controller of the integrated circuit; receiving a second scan-out signal at an output of the second triple voting flip-flop; and Whether the second triple voting flip-flop encounters a failure is determined based on the second scan output signal and control of the first scan enable signal, the second scan enable signal, and the third scan enable signal.