Scan chain control circuit

By designing the scan chain control circuit and using the interface on the test circuit board for data input/output control, the problem of no exposed pins or poor contact after packaging is solved, efficient chip testing is achieved, and test flexibility and accuracy are improved. .

CN112345924BActive Publication Date: 2024-09-03VIA ALLIANCE SEMICON CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011188517.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-30
Publication Date
2024-09-03
Estimated Expiration
2040-10-30

AI Technical Summary

Technical Problem

During the packaging process of integrated circuit chips, the input/output pins of the scan chain test circuit may not be exposed or have poor contact due to packaging reasons, which increases the difficulty of testing. The existing method requires external leads for testing, and the testing accuracy and efficiency are low.

Method used

Design a scan chain control circuit that controls data input/output through the interface on the test circuit board. It uses registers and clock signals to manage the data transmission of the scan chain test circuit, avoiding the need for external leads and realizing pin shifting and Data transfer under register shift clock.

Benefits of technology

It improves the flexibility and accuracy of chip testing, reduces testing difficulty and cost, enhances testing efficiency, and enables effective scan chain testing after packaging.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112345924B
    Figure CN112345924B
Patent Text Reader

Abstract

The present invention provides a scan chain control circuit, including: chip testing is performed through an interface on a test circuit board without the need for testing through external leads at the lead end; when the scan chain control circuit is under the action of a pin shift clock, the scan chain control circuit inputs pin input data to a scan chain test circuit and outputs the test data after the test is completed; when the scan chain control circuit is under the action of a register shift clock signal, the scan chain control circuit inputs register input data to a scan chain test circuit for testing and then outputs the test data after the test is completed. The present invention can realize the test data input / output control of the scan chain test circuit, improve the test flexibility, and can also test whether the chip can operate correctly when the test pin is not easily exposed or has poor contact.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to an integrated circuit chip test circuit, in particular to a control circuit of a scan chain test circuit of an integrated circuit chip. Background Art

[0002] With the continuous development of large-scale integrated circuit chip technology, the integration of chips is getting higher and higher; as a result, the difficulty of chip testing is getting higher and higher. The advantages of scan chain test circuits such as high reliability and accurate testing have been widely used in integrated circuit chip testing and have become an indispensable component in modern chip design. However, the scan chain test circuit has many test pins, and the existing test methods require external leads during testing, which makes the test difficult. Especially when the chip is packaged on a printed circuit board, too many test pins are not easy to be fully exposed or the chip package causes poor contact of the test pins, which increases the difficulty of testing. Summary of the invention

[0003] The present invention provides a scan chain control circuit, in particular a scan chain control circuit integrating a scan chain test circuit pin. When the test pin is not exposed after chip packaging, data input / output control of the scan chain test circuit can be realized, thereby improving test flexibility.

[0004] In a preferred embodiment, the present invention provides a scan chain control circuit, including: performing chip testing through an interface on a test circuit board without the need to perform testing through external leads at the lead ends; when the above-mentioned scan chain control circuit is under the action of a pin shift clock, the scan chain control circuit inputs pin input data to a scan chain test circuit and outputs test data after the test is completed; when the above-mentioned scan chain control circuit is under the action of a register shift clock signal, the scan chain control circuit inputs register input data to a scan chain test circuit for testing and outputs test data after the test is completed.

[0005] In some embodiments, the scan chain control circuit can be applied to a Joint Test Action Group (JTAG) debug interface and / or a Serial Wire Debug (SWD) interface.

[0006] In some embodiments, the input pins of the scan chain test circuit are uniformly coupled to the scan chain control circuit.

[0007] In some embodiments, the pin input data is uniformly transmitted from the scan chain test circuit pins to the scan chain control circuit and then to the scan chain test circuit.

[0008] In some embodiments, the scan chain control circuit can generate the register input data through the scan chain control circuit and transmit the data to the scan chain test circuit.

[0009] In some embodiments, the output pins of the scan chain test circuit are uniformly coupled to the scan chain control circuit.

[0010] In some embodiments, the test data after the pin input data test transmitted by the scan chain test circuit pins will be uniformly transmitted to the scan chain control circuit and output via an interface on the test circuit board.

[0011] In some embodiments, the test data generated by the scan chain control circuit after the register input data test is completed will be transmitted to the scan chain control circuit and output via an interface on a test circuit board.

[0012] In some embodiments, the scan chain control circuit tests the pin input data transmitted by the scan chain test circuit pin under the action of the pin shift clock and then outputs the test data after the test is completed.

[0013] In some embodiments, when the scan chain control circuit operates in the original test mode, the scan chain control circuit tests the pin input data transmitted by the scan chain test circuit pin under the action of the pin shift clock and then outputs the completed test data.

[0014] In some embodiments, the scan chain control circuit tests the register input data generated by the scan chain control circuit under the action of the register shift clock and then outputs the test data after the test is completed.

[0015] In some embodiments, when the scan chain control circuit operates in a scan mode, the scan chain control circuit tests the register input data generated by the scan chain control circuit under the action of a register shift clock and then outputs the test data after the test is completed.

[0016] In some embodiments, when the scan chain control circuit operates in the original test mode, the scan chain control circuit can be switched to the scan mode by resetting and restarting the scan chain control circuit.

[0017] In some embodiments, when the scan chain control circuit operates in the scan mode, the scan chain control circuit can be switched to the original test mode by resetting and restarting the scan chain control circuit. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 4 is a basic schematic diagram of a scan chain test circuit according to the present invention.

[0019] Figure 2 is a schematic diagram of a scan chain control circuit according to an embodiment of the present invention.

[0020] Figure 3 is a schematic diagram of a data selector according to an embodiment of the present invention.

[0021] Figure 4 is a schematic diagram of a clock controller according to an embodiment of the present invention.

[0022] Figure 5 is a schematic diagram of a mode controller according to an embodiment of the present invention.

[0023] Figure 6 Schematic diagram of a scan chain control circuit clock signal according to an embodiment of the present invention.

[0024] Figure 7 is a flow chart of a scan chain control circuit according to an embodiment of the present invention.

[0025] Figure 8 It is a schematic diagram of packaging a scan chain test circuit on a PCB board according to an embodiment of the present invention.

[0026] Among them, the simple description of the symbols in the accompanying drawings is as follows:

[0027] 100~scan chain test circuit; 200~scan chain control circuit; 202~external device; 204~register controller; 206~data selector; 208~clock controller; 210~mode controller; 212, 212-1, 212-2, 212-3, 212-4~scan chain test circuit; 214~register clock control module; 216~register mode control module; 400, 402, 406, 408, 500, 502~D flip-flop; 404, 410~gated clock circuit; 412~clock oscillator (Phase LockedLoop, PLL); 414~first data selector; 416~second data selector; 504~third data selector; 506~fourth data selector; Reg_scan_in[n:0]~register input data; Reg_scan_out[n:0]~register output data; SCAN_IN[n:0]~input data; SCAN_EN~enable clock signal; IP_CLK~shift clock; DFT_ON~mode test clock signal; SE~mode scan enable clock signal; SCAN_OUT[n:0]~output data; IC1, IC2~integrated design circuit to be tested; DFF~D-type flip-flop; Input_0, Input_1…Input_n~input pin; Output_0, Output_1…Output_n~output pin; SI _0, SI_1…SI_n~scan chain test circuit input data; TCK~test clock signal; Shift_clk~register shift clock signal; Ext_clk~pin shift clock; PLL~clock oscillator; ICG~gated clock circuit; Func_clk~functional clock signal; Scan_mode_dp~mode test backup clock signal; Scan_en_dp~mode scan enable backup clock signal; SE_i~mode scan enable clock signal of original control scan chain test circuit; DFT_ON_i~test mode clock signal of original control scan chain test circuit; Test_mode~test mode signal; T1~first period; T2~second period; T3~third period; T4~fourth period; T5~fifth period; S702, S704, S706, S708, S710~process steps. DETAILED DESCRIPTION

[0028] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, specific embodiments of the present invention are given below and described in detail with reference to the accompanying drawings.

[0029] The words "include" and "comprising" mentioned throughout the specification and claims are open-ended terms and should be interpreted as "including but not limited to". The word "coupled" in this specification includes any direct and indirect electrical connection means. Therefore, if the text describes a first device coupled to a second device, it means that the first device can be directly electrically connected to the second device, or indirectly electrically connected to the second device via other devices or connection means.

[0030] Certain terms are used throughout the specification and claims to refer to specific components and members. Those skilled in the art will appreciate that hardware manufacturers may use different terms to refer to the same component and member. The specification and claims do not distinguish between components and members based on differences in name, but rather on differences in function.

[0031] Figure 1 FIG. 1 is a basic schematic diagram of a scan chain test circuit according to the present invention. When designing a chip, the chip test circuit may include: Figure 1 The multiple scan chain test circuit shown (such as Figure 1 As shown, there may be multiple scan chain test circuits with input pins SI_0, SI_1, SI_2, SI_3...SI_N and output pins SO_0, SO_1, SO_2, SO_3...SO_N). Each scan chain test circuit couples its own input / output pin (PAD pin) and imports the test data (SCAN_IN[n:0]) or exports the test data (SCAN_OUT[n:0]) under the action of the shift clock (IP_CLK) for designers to analyze the chip design.

[0032] However, when the chip is packaged on a PCB, the input / output pins (PAD pins) of the chip design may not be exposed due to the package cover or may have poor contact due to the package. Ultimately, this will cause inconvenience in testing or inaccurate test data, and will not be able to analyze the chip design well, increasing testing costs and difficulties. When the chip is packaged on a PCB, specifically, the following conditions may occur, leading to inaccurate testing. First, the input pins of the scan chain test circuit of SI_1 may not be exposed due to the package (e.g. Figure 1 As shown in the figure, an "X" is drawn on the PAD pin to indicate that the pin is not exposed), which makes it impossible for the tester to connect the leads from the circuit board for subsequent testing. Secondly, it may also cause the output pin to not be exposed (such as Figure 1 As shown in the figure, the output pins of the scan chain test circuit of SI_2 are not exposed), which will also cause the tester to be unable to connect the leads from the circuit board for subsequent testing. Thirdly, even if the pins are exposed, it may cause problems such as poor pin contact (such as Figure 1 As shown in the figure, a “△” is drawn on the PAD pin to indicate poor pin contact), which leads to inaccurate testing and poor analysis of chip design. What’s worse, the above three conditions may occur at the same time, resulting in inaccurate test data and increasing testing costs and difficulties.

[0033] therefore, Figure 2 2 is a schematic diagram of a scan chain control circuit according to an embodiment of the present invention. The scan chain control circuit 200 can be applied to control the scan chain test circuit 212 of an integrated circuit chip to implement data input / output control of the scan chain test circuit and improve test flexibility. Figure 2 As shown, the scan chain control circuit 200 includes: a register controller 204, a data selector 206, a clock controller 208 and a mode controller 210; the register controller 204 further includes a register clock control module 214 and a register mode control module 216. The clock controller 208 is coupled to the register controller 204 and the mode controller 210, receives an enable clock signal (SCAN_EN) and a register shift clock signal (Shift_clk) output by the register controller 204, receives a mode scan enable clock signal (SE) output by the mode controller 210, and outputs a shift clock signal (IP_CLK); the mode controller 210 is coupled to the register controller 204, receives the enable clock signal (SCAN_EN), and outputs a mode test clock signal (DFT_ON) and the mode scan enable clock signal (SE); a data selector 206, a clock controller 208 and a mode controller 210; the clock controller 208 is coupled to the register controller 204 and the mode controller 210, receives the enable clock signal (SCAN_EN), and outputs a mode test clock signal (DFT_ON) and the mode scan enable clock signal (SE); 06 is coupled to the scan chain test circuit 212 and the register controller 204; when the enable clock signal received by the data selector 206 is at the first level, the data selector 206 selects a register input data (Reg_scan_in[n:0]) as input data (SCAN_IN[n:0]) to be input to the scan chain test circuit 212; when the enable clock signal received by the data selector 206 is at the second level, the data selector 206 selects a pin input data (SI_0, SI_1…SI_n) as input data (SCAN_IN[n:0]) to be input to the scan chain test circuit 212. It should be noted here that the mode test clock signal (DFT_ON) and the mode scan enable clock signal (SE) output by the mode controller 210 are output signals for controlling the output data of the input data (SCAN_IN[n:0]) after being tested by the scan chain test circuit 212. In some embodiments, Figure 6As shown in the part, the test mode clock signal (DFT_ON) is pulled up to a high level signal by the mode controller 210 after receiving the test clock signal TCK signal (generated by the external device 202 in the test state) for 3 clock signals, and the mode scan enable clock signal (SE) is pulled up to a high level signal by the mode controller 210 after receiving 4 clock signals of the TCK signal, or the test mode clock signal (DFT_ON) and the mode scan enable clock signal (SE) are pulled up to high level signals by the mode controller 210 after several clock cycles of the TCK signal, and the test mode clock signal (DFT_ON) is pulled up to a high level signal before the mode scan enable clock signal (SE). It should be noted here that the test mode clock signal (DFT_ON) is pulled up to a high level signal before the mode scan enable clock signal (SE) for 1 clock cycle, and those skilled in the art can configure it according to actual needs, and the present invention is not limited to this.

[0034] When the test mode clock signal (DFT_ON) and the first mode scan enable clock signal (SE) are pulled high, it means that the data is output after being tested by the scan chain test circuit 212 ( Figure 2 SCAN_OUT[n:0]) can be output to Figure 2 The scan chain control circuit 200 shown in the figure is finally output to an external device for analysis by a designer. It should be noted that the test mode clock signal (DFT_ON) and the first mode scan enable clock signal (SE) are used to control the test output data ( Figure 2 The output of SCAN_OUT[n:0]) is shown.

[0035] In some embodiments, the mode scan enable clock signal (SE_i) and the mode test clock signal (DFT_i) of the original control scan chain test circuit are similar to the pull-up principle of the test mode clock signal (DFT_ON) and the mode scan enable clock signal (SE). The mode scan enable clock signal (SE_i) and the mode test clock signal (DFT_i) of the original control scan chain test circuit can be the internal circuit module ( Figure 5The mode test clock signal (not shown) is pulled up to a high level signal after receiving several clock signals of the TCK signal and the above-mentioned mode test clock signal (DFT_i) is pulled up to a high level signal before the mode scan enable clock signal (SE_i) of the original control scan chain test circuit. It should be noted here that the above-mentioned mode test clock signal (DFT_i) is pulled up to a high level signal one clock cycle before the mode scan enable clock signal (SE_i) of the original control scan chain test circuit. Those skilled in the art can configure the relevant mode signal control module of the original scan chain test circuit according to product requirements, and the present invention is not limited to this. For the description of this part, please refer to Figure 5 Part of it has been described above and will not be repeated here.

[0036] like Figure 2 As shown, the scan chain test circuit 212 is an integrated circuit chip test circuit, including n+1 (n≥0 and is an integer) scan chains, and the test data is input through the input pin (Input Pad) and output through the output pin. The single scan chain test circuit may include: an input pin (e.g., Input_0, Input_1, ..., Input_n), a plurality of flip-flops connected in series (e.g., D type flip-flops (DFF)), an output pin (e.g., Output_0, Output_1, ..., Output_n) or any other type of integrated circuit chip scan chain test circuit, and no limitation is made here.

[0037] It should be noted that if Figure 2 The input pins (eg, Input_0, Input_1, ..., Input_n) of the scan chain test circuit 212 can be respectively coupled to the multiple input terminals of the data selector 206, and the data selector 206 controls the transmission of test data to the scan chain test circuit 212 (for technical details, please refer to Figure 3 Therefore, when the chip is packaged on a printed circuit board, even if the input pins (e.g., Input_0, Input_1, ..., Input_n) of the scan chain test circuit 212 are in poor contact due to being covered or welded, the relevant signals can still be transmitted to the scan chain control circuit 200 via the wiring on the test circuit board, so the scan chain control circuit 200 can be used to transmit test data to the scan chain test circuit to meet the test requirements, thereby avoiding the unfavorable factors of the test and greatly improving the test efficiency.

[0038] It should also be noted that the data selector 206 can also receive the register input data (Reg_scan_in[n:0]) transmitted by the register controller 204, and under the control of the control signal terminal, input the register input data (Reg_scan_in[n:0]) transmitted by the register controller 204 to the scan chain test circuit 212 (please refer to the contents of this section). Figure 3 In other words, when the scan chain test pins on the chip packaged on the printed circuit board are covered or have poor contact, the register input data (Reg_scan_in[n:0]) can still be used to input the test data into the scan chain test circuit 212 for testing. Furthermore, the n+1 bits of register input data (Reg_scan_in[n:0]) can use high and low level signals to achieve the correspondence between the register input data (Reg_scan_in[n:0]) and the scan chain test circuit (please refer to Figure 3 This makes the test more flexible.

[0039] Another point that needs to be explained is that Figure 2 The input pins (e.g., Input_0, Input_1, ..., Input_n) of the scan chain test circuit 212 shown can also be connected to the corresponding scan chain test circuit. Those skilled in the art can also directly expose the input pins (e.g., Input_0, Input_1, ..., Input_n) of the scan chain test circuit 212 and manually connect external leads to meet the test needs. To make the drawing simpler, Figure 2 Not all connection relationships are shown, but technicians related to this technology can configure them according to actual needs, and the present invention is not limited to this.

[0040] The test data input method described in the above embodiment, on the basis of meeting the original test requirements, greatly eliminates the uncertainty factors of the test, improves the accuracy and flexibility of the test, reduces the test difficulty for testers, improves the test efficiency, and has certain technical effects.

[0041] The data selector 206 inputs the test data (SCAN_IN[n:0]) to the scan chain test circuit 212; under the action of the shift clock signal (IP_CLK), the mode test clock signal (DFT_ON) and the mode scan enable clock signal (SE), the test data (SCAN_IN[n:0]) is shifted in the scan chain test circuit for scanning, and the test data (SCAN_OUT[n:0]) is output to the register controller 204 via the output pin (Output Pad), and the register controller 204 records the test data and integrates (Reg_scan_out[n:0]) to output to the external device 202. More detailed descriptions of the shift clock signal (IP_CLK), the mode test clock signal (DFT_ON) and the mode scan enable clock signal (SE) will be described in detail below. Figure 4 , Figure 5 Some detailed descriptions are given here and will not be repeated here.

[0042] Regarding the output test data (SCAN_OUT[n:0]), it should be noted that: the above-mentioned shift clock signal (IP_CLK) controls the above-mentioned input test data (SCAN_IN[n:0]) to shift and scan in the multiple series-connected flip-flops (for example, D type flip-flops (DFF)) of the above-mentioned scan chain test circuit 212. The above-mentioned mode test clock signal (DFT_ON) and the mode scan enable clock signal (SE) control the above-mentioned input test data (SCAN_IN[n:0]) to be output after being tested by the scan chain test circuit 212. For relevant technical details about the mode test clock signal (DFT_ON) and the mode scan enable clock signal (SE) controlling the input test data (SCAN_IN[n:0]) to be output after being tested by the scan chain test circuit 212, please refer to Figure 5 The description part will not be elaborated here.

[0043] There is one more thing to note about the output test data (SCAN_OUT[n:0]): Figure 2 As shown, the output pins (e.g., Output_0, Output_1, ..., Output_n) of the scan chain test circuit can be directly connected to the register controller 204 and integrate the data output for analysis by the designer. In some embodiments, the designer can also directly connect external leads to the output pins (e.g., Output_0, Output_1, ..., Output_n) and connect to related test equipment (e.g., visual analysis equipment such as logic analyzers) to output test data. Those skilled in the art can configure it according to actual needs, and the present invention is not limited thereto.

[0044] The external device 202 may be a visual test and analysis device, for example, a logic analyzer, an oscilloscope or other types of test and analysis devices, which are not limited herein.

[0045] The register controller 204 may also include an instruction register and / or a data register. Those skilled in the art may configure multiple D flip-flops and / or multiple gate circuit structures according to actual usage to meet actual test circuit configuration requirements, but the present invention is not limited thereto.

[0046] In some embodiments, the first level is a high level; the second level is a low level. Figure 2 Although the first level and the second level are represented by logic "1" and logic "0" respectively, they can be the power supply level of the transistor (for example, the level is "VDD") and the ground terminal potential (for example, the level is "0") or any level that allows the data selector 106 to identify the test data to be selected from the first input terminal or the second input terminal, and the present invention is not limited to this.

[0047] In some embodiments, the scan chain control circuit may be applied to a Joint Test Action Group (JTAG) debug interface and / or a Serial Wire Debug (SWD) interface, which is not limited in the present invention.

[0048] Figure 3 2 is a schematic diagram of a data selector according to an embodiment of the present invention. The data selector 206 may be a combination of multiple data selectors. Figure 3 As shown, the data selector 206 is composed of n+1 (n≥0 and is an integer) data selectors. A first input terminal of the data selector 206 is coupled to the scan chain test circuit 212, and receives the n+1 (n≥0 and is an integer) bits of the pin input data (SI_0, SI_1 ... SI_n) transmitted from the scan chain test circuit 212; a second input terminal and a third input terminal are coupled to the register controller 204, and receive the n+1 (n≥0 and is an integer) bits of the register input data (Reg_scan_in[n:0]) and the enable clock signal (SCAN_EN) transmitted from the register controller 204. The third input terminal is a control signal terminal. Those skilled in the art can arbitrarily set the control signal terminal (the third input terminal) signal according to the actual configuration so that the data selector 206 can identify whether to select the test data from the first input terminal or the second input terminal, and the present invention is not limited thereto.

[0049] When the enable clock signal received by the data selector 206 from the register controller 204 is at the first level (for example, a high level "1"), the data selector 206 selects the n+1-bit register input data (Reg_scan_in[n:0]) as input data (SCAN_IN[n:0]) and inputs it to the scan chain test circuit 212; when the enable clock signal received by the data selector 206 from the register controller 204 is at the second level (for example, a low level "0"), the data selector 206 selects the n+1-bit pin input data (SI_0, SI_1...SI_n) as input data (SCAN_IN[n:0]) and inputs it to the scan chain test circuit 212.

[0050] It should be noted that the above n+1 scan chain test circuits include n+1 input pins and n+1 output pins. Figure 2 As shown, Input_0 is the input pin of the 0th scan chain test circuit, and Output_0 is the output pin of the 0th scan chain test circuit; Input_1 is the input pin of the 1st scan chain test circuit, and Output_1 is the output pin of the 1st scan chain test circuit...; and so on, Input_n is the input pin of the nth scan chain test circuit, and Output_n is the output pin of the nth scan chain test circuit. The input data of the n+1 input pins included in the above n+1 scan chain test circuits can be uniformly configured via the above data selector 206, and the output data of the n+1 output pins included in the above n+1 scan chain test circuits can be uniformly output to the external device 202 via the above register controller 204 and analyzed; the data input / output control of the scan chain test circuit 212 is realized, and the test flexibility is improved.

[0051] It should be noted that the register input data (Reg_scan_in[n:0]), the pin input data (SI_0, SI_1 ... SI_n), the test input data (SCAN_IN[n:0]), the test output data (SCAN_OUT[n:0]) and the register output data (Reg_scan_out[n:0]) are n+1 bits of test data, corresponding to the n+1 scan chain test circuits. The data selector 206 is composed of n+1 data selectors, corresponding to the n+1 scan chain test circuits.

[0052] The test data (SCAN_IN[n:0]) of the n+1 bits can be selected to test a single scan chain test circuit of the n+1 scan chain test circuits. In other words, the test data (SCAN_IN[n:0]) of the n+1 bits can test all of the n+1 scan chain test circuits, or can test only one and / or several of the n+1 scan chain test circuits. Those skilled in the art can configure according to actual test needs, and the present invention is not limited thereto.

[0053] For example, assuming that the scan chain test circuit 212 is a test circuit with 4 scan chains (including the 0th, 1st, 2nd, and 3rd scan chains), and the 1st and 3rd scan chain test circuits need to be tested. When the enable clock signal transmitted by the register controller 204 is received at the third input terminal of the data selector 206 as a first level (e.g., a high level "1"), the data selector 206 selects the second input terminal test data (e.g., register input data (Reg_scan_in

[0101] )) as the test input data (SCAN_IN

[0101] ) and inputs it into the scan chain test circuit 212. When the third input terminal of the data selector 206 receives the enable clock signal transmitted by the register controller 204 as the second level (for example, the low level "0"), the data selector 206 selects the first input terminal test data (for example, the pin input data (SI_0, SI_1 ... SI_n)) as the test input data (SCAN_IN

[0101] ) and inputs it into the scan chain test circuit 212. More specifically, the high level test data "1" of the test input data is input into the first and third scan chain test circuits, and the low level test data "0" of the test input data is input into the 0th and second scan chain test circuits. In this embodiment, when the chip is packaged on a printed circuit board, the register input data (Reg_scan_in

[0101] ) can still be used as the test input data (SCAN_IN

[0101] ) to input into the scan chain test circuit 212 after the original input pins are covered, which greatly avoids some unfavorable factors in the test process and improves the test efficiency.

[0054] When the enable clock signal transmitted by the register controller 204 is received at the third input end of the data selector 206 as the second level (for example, the low level "0"), the data selector 206 selects the first input end test data (for example, the pin input data (SI_0, SI_1, SI_2 and SI_3)) as the test data (SCAN_IN

[0101] ) and inputs it to the scan chain test circuit 212. More specifically, the high level test data "1" of the test input data is input to the 1st and 3rd scan chain test circuits, and the low level test data "0" of the test input data is input to the 0th and 2nd scan chain test circuits.

[0055] The above test data (SCAN_IN

[0101] ) writes the above-mentioned 1st and 3rd scan chain test circuits to be tested to a high level (for example, a high level "1"), and writes the above-mentioned 0th and 2nd scan chain test circuits 212 that do not need to be tested to a low level (for example, a low level "0").

[0056] The data selector 206 inputs the test data (SCAN_IN

[0101] ) to the scan chain test circuit 212; and under the action of the shift clock signal (IP_CLK), the mode test clock signal (DFT_ON) and the mode scan enable clock signal (SE), the test data (SCAN_IN

[0101] ) is shifted in the scan chain test circuit for scanning, and the test data (SCAN_OUT

[0101] ) is output to the register controller 204 via the output pin (Output Pad). The register controller 204 records the test data integration (Reg_scan_out

[0101] ) and outputs it to the external device 202 for analysis.

[0057] Figure 4 2 is a schematic diagram of a clock controller 208 according to an embodiment of the present invention. Figure 4 As shown, the clock controller 208 is coupled to the register controller 204, receives the enable clock signal (SCAN_EN) and a register shift clock signal (Shift_clk) transmitted by the register clock control module 214, and outputs the shift clock signal (IP_CLK) to the plurality of serially connected D-type flip-flops of the scan chain test circuit 212. Under the action of the shift clock signal (IP_CLK), all the register test data (SCAN_IN[n:0]) input to the scan chain test circuit 212 via the data selector 206 will be shifted as a whole to the next level register, and the value of the last level register will be output to the register controller 204 and integrated (Reg_scan_out[n:0]) and output to the external device 202.

[0058] The register controller 204 is coupled to the external device 202. The external device 202 generates a test clock signal (Test Clock, TCK) in a test state and transmits the test clock signal to the register controller 204. The register controller 204 receives the test clock signal (Test Clock, TCK) and generates the enable clock signal (SCAN_EN). For example, when a tester of the external device 202 connects the connection between the external device 202 and the register controller 204, and enables the external device 202 to generate a continuous standard high and low level test clock signal (Test Clock, TCK) in a test state, and transmits the test clock signal to the register controller 204; the register controller 204 generates the enable clock signal (SCAN_EN) after receiving one and / or multiple clock cycles of the continuous standard high and low level test clock signal (Test Clock, TCK). Figure 6 As shown, the register controller 204 generates the enable clock signal (SCAN_EN) after receiving two clock cycles of the test clock signal (Test Clock, TCK). Those skilled in the art can configure it according to actual needs, and no limitation is made here.

[0059] The register clock control module 214 and the clock controller 208 may also be configured with multiple D flip-flops and / or multiple gate circuit structures to meet actual needs. For example, the register clock control module 214 may also include multiple D flip-flops 400, D flip-flops 402, and a gated clock circuit (Input Clock Gating, ICG) 404. The clock controller 208 may also include multiple D flip-flops 406, D flip-flops 408, a gated clock circuit (Input Clock Gating, ICG) 410, a clock oscillator (Phase Locked Loop, PLL) 412, a first data selector 414, and a second data selector 416. The first data selector 414 and the second data selector 416 may be integrated data selectors formed by combining multiple data selectors, and the clock oscillator (Phase Locked Loop, PLL) 412 may be placed outside the clock controller 208, or placed separately in a certain module. Those skilled in the art may configure it according to actual needs, and no limitation is made here.

[0060] like Figure 4As shown, the first input terminal of the first data selector 414 is coupled to the scan chain test circuit pin, and receives the pin shift clock (Ext_clk) transmitted by the scan chain test circuit pin; the second input terminal and the third input terminal are coupled to the register clock control module 214 of the register controller 204, and receive the register shift clock signal (Shift_clk) transmitted by the register clock control module 214, and receive the enable clock signal SCAN_SE transmitted by the register controller 204. Specifically, the first data selector 414 selects one of the two (Shift_clk or Ext_clk) to be transmitted to the second data selector 416 according to the enable clock signal SCAN_SE received by the third input terminal (control terminal). When the enable clock signal SCAN_SE received by the third input terminal of the first data selector 414 is high level, the first data selector 414 selects to output the register shift clock signal to the second data selector 416; otherwise, the pin shift clock is output to the second data selector 416. It should be noted that the enable clock signal SCAN_SE may be directly transmitted from the register control 204 to the clock controller 208. In some embodiments, the enable clock signal SCAN_SE may also be transmitted to the clock controller 208 via the register clock control module 214 in the register control 204, but the present invention is not limited thereto.

[0061] The second data selector 416 has a first input terminal receiving a continuous function clock signal (Func_clk) generated by a clock oscillator (Phase Locked Loop, PLL), a second input terminal receiving a clock signal (Shift_clk or Ext_clk) transmitted by the first data selector 414, and a third input terminal (signal control terminal) coupled to Figure 2 The mode controller 210 receives a mode scan clock signal (SE) transmitted by the mode controller 210, and finally outputs a shift clock signal (IP_CLK) to Figure 2 Specifically, when the third input terminal of the second data selector 416 receives Figure 2 When the mode scan clock signal (SE) transmitted by the mode controller 210 is at a high level, the clock signal (Shift_clk or Ext_clk) transmitted by the first data selector 414 is selected as the shift clock (IP_CLK) output to the scan chain test circuit. Figure 2When a mode scan clock signal (SE) transmitted by the mode controller is at a low level, the first input terminal is selected to receive a continuous functional clock signal (Func_clk) generated by the clock oscillator (PhaseLocked Loop, PLL) as a shift clock (IP_CLK) output to the scan chain test circuit. It should be noted here that when the second data selector 416 selects the continuous functional clock signal (Func_clk) as the shift clock (IP_CLK) output to the scan chain test circuit, it means that the scan chain test circuit is working in the function mode (Function mode) state at this time. When the second data selector 416 selects the register shift clock signal (Shift_clk) as the shift clock (IP_CLK) output to the scan chain test circuit, it means that the scan chain test circuit is working in the scan mode (Scan mode) state at this time. When the second data selector 416 selects the pin shift clock (Ext_clk) as the shift clock (IP_CLK) to be output to the scan chain test circuit, it means that the scan chain test circuit is working in the original test mode. In other words, when the mode scan clock signal SE is at a high level, it means that the test mode (e.g., scan mode or original test mode) is currently activated, so the test clock (Shift_clk or Ext_clk) output by the first data selector 414 is selected as the shift clock (IP_CLK) to be output to the scan chain test circuit. When the mode scan clock signal (SE) is at a low level, it means that the function mode is currently activated, so the Func_clk output by the first data selector 414 (i.e., a continuous function clock signal Func_clk generated by the clock oscillator 412) is selected as the shift clock (IP_CLK) to be output to the scan chain test circuit. Furthermore, when the mode scanning clock signal SE is at a high level, the test mode signal (test_mode) is used to determine which test mode is to be started. For a detailed description of the mode state, please refer to the description of the relevant part of Table 1, which will not be repeated here.

[0062] Under the action of the above-mentioned shift clock signal (IP_CLK), all register test data (SCAN_IN[n:0]) input to the above-mentioned scan chain test circuit 212 through the above-mentioned data selector 206 will be moved as a whole to the next level register, and the value of the last level register will be output to the above-mentioned register controller 204 and integrated (Reg_scan_out[n:0]) and output to the external device 202.

[0063] It is necessary to explain that the D-type flip-flop 406 of the clock controller 208 also includes an inverter (not shown) in front of it, which is used to reverse TCK to ensure the timing consistency of each clock therein and improve the test performance. Those skilled in the art can configure it by themselves, and the present invention is not limited to this. When the enable clock signal (for example: the enable clock signal is "1") transmitted by the register clock control module 214, the inverter (not shown) further included in the clock controller 208 inverts the high-level enable clock signal and transmits it to the D-type flip-flop 406, that is, the high-level enable clock signal (for example: the enable clock signal is "1") is converted to a low-level enable clock signal (for example: the enable clock signal is "0") and transmitted to the gated clock circuit 410 of the clock controller 208 via the D flip-flops 406 and 408. When the enable clock signal is at a high level, the continuous function clock signal (Func_clk) is locked; otherwise, a stable continuous function clock signal (Func_clk) is output. It should be specially noted here that the above-mentioned locking of the continuous functional clock signal (Func_clk) can be interpreted as blocking the above-mentioned continuous functional clock signal (Func_clk) from being transmitted downward, or can be interpreted as locking the above-mentioned continuous functional clock signal (Func_clk) in a high level or low level state without changing. The technology in this field can be interpreted accordingly according to the circuit function implemented, but the present invention does not impose any limitation on this.

[0064] Figure 5 is a schematic diagram of a mode controller 210 according to an embodiment of the present invention. Figure 5As shown, the mode controller 210 is coupled to the register mode control module 216. The mode controller 210 receives an enable clock signal SCAN_SE transmitted by the register mode control module 216, and outputs a test mode clock signal (DFT_ON) and a mode scan enable clock signal (SE) to the scan chain test circuit 212. The register mode control module 216 can also be configured with multiple D flip-flops to meet actual needs. For example, the register mode control module 216 also includes a D flip-flop 500 and a D flip-flop 502. The first input end of the fourth data selector 506 of the mode controller 210 receives the mode scan enable clock signal (SE_i) from the original control scan chain test circuit; the second input end is coupled to the register mode control module 216, and receives a scan enable backup signal (Scan_en_dp); and the third input end receives the test mode signal (Test_mode) from the original control scan chain test circuit. The first input terminal of the third data selector 504 of the mode controller 210 receives the mode test clock signal (DFT_i) from the original control scan chain test circuit; the second input terminal is coupled to the register mode control module 216 to receive a scan mode backup signal (Scan_mode_dp); and the third input terminal receives the test mode signal (Test_mode) from the original control scan chain test circuit. It should be noted that the mode scan enable clock signal (SE_i), the test mode signal (Test_mode) and the mode test clock signal (DFT_i) of the original control scan chain test circuit are mode control signals when the scan chain test circuit operates in the original test mode (Original test mode), which can be provided by the relevant modules of the original scan chain test circuit or by the JTAG port ( Figure 5Not shown). The mode scan enable clock signal (SE_i) and the mode test clock signal (DFT_i) of the above-mentioned original control scan chain test circuit are similar to the pull-up principle of the test mode clock signal (DFT_ON) and the mode scan enable clock signal (SE). The mode scan enable clock signal (SE_i) and the mode test clock signal (DFT_i) of the above-mentioned original control scan chain test circuit are pulled up to a high level signal after receiving several clock signals of the TCK signal, and the above-mentioned mode test clock signal (DFT_i) is pulled up to a high level signal before the mode scan enable clock signal (SE_i) of the original control scan chain test circuit. It should be noted here that the above-mentioned mode test clock signal (DFT_i) is pulled up to a high level signal one clock cycle before the mode scan enable clock signal (SE_i) of the original control scan chain test circuit. Those skilled in the art can configure the relevant mode signal control module of the original scan chain test circuit according to product requirements, and the present invention is not limited to this. The test mode signal (Test_mode) is a control signal for controlling the mode state in which the scan chain test circuit operates. The specific functional details are described in the relevant part of Table 1 and are not repeated here. The test mode signal (Test_mode) can be generated by a related internal module. The present invention does not illustrate the functional module ( Figure 5 Not shown), relevant personnel in this field can configure it by themselves.

[0065] The above test mode clock signal (DFT_ON) and a mode scan enable clock signal (SE) are used to control Figure 2 The test input data (SCAN_IN[n:0]) is output after being tested by the scan chain test circuit 212 ( Figure 2 In some embodiments, as shown in FIG. Figure 6 As shown in the part, the test mode clock signal (DFT_ON) is pulled up to a high level signal by the mode controller 210 after receiving three clock signals of the TCK signal, and the mode scan enable clock signal (SE) is pulled up to a high level signal by the mode controller 210 after receiving four clock signals of the TCK signal, or the test mode clock signal (DFT_ON) and the mode scan enable clock signal (SE) are pulled up to high level signals by the mode controller 210 after several clock cycles of the TCK signal, and the test mode clock signal (DFT_ON) is pulled up to a high level signal before the mode scan enable clock signal (SE). It should be noted here that the test mode clock signal (DFT_ON) is pulled up to a high level signal before the mode scan enable clock signal (SE) by one clock cycle, and those skilled in the art can configure it according to actual needs, and the present invention is not limited to this.

[0066] When the above test mode clock signal (DFT_ON) and a mode scan enable clock signal (SE) are pulled high, it means that the data is output after the scan chain test circuit is tested ( Figure 2 SCAN_OUT[n:0]) can be output to Figure 2 The scan chain control circuit 200 shown is finally output to an external device for analysis by designers.

[0067] Specifically, when the above-mentioned test mode signal (Test_mode) is at a low level (for example: Test_mode is "0"), the above-mentioned fourth data selector 506 in the mode controller 210 selects to output the above-mentioned mode scan enable clock signal (SE_i) from the original control scan chain test circuit as the mode scan enable clock signal (SE) output, and the above-mentioned third data selector 504 selects to output the above-mentioned mode test clock signal (DFT_i) from the original control scan chain test circuit as the mode test clock signal (DFT_ON) output. When the test mode signal (Test_mode) is at a high level (for example, Test_mode is "1"), the fourth data selector 506 in the mode controller 210 selects to output the mode scan enable backup clock signal (Scan_en_dp) from the register mode control module 216 as the mode scan enable clock signal (SE) output, and the third data selector 504 selects to output the mode test backup clock signal (Scan_mode_dp) from the register mode control module 216 as the mode test clock signal (DFT_ON) output.

[0068] Figure 6 FIG. 1 is a schematic diagram of a scan chain control circuit clock signal according to an embodiment of the present invention. Figure 2 , Figure 4 , Figure 5 , Figure 6 More detailed description. Figure 6 As shown in the first period T1, when Figure 2 The tester of the external device 202 in the tester connects the external device 202 to the register controller 204, and makes the external device 202 generate a continuous standard high and low level test clock signal (Test Clock, TCK) in the test state, and transmits the test clock signal to the register controller 204; the register controller 204 generates a high level enable clock signal (for example: SCAN_EN is "1") after receiving the continuous standard high and low level test clock signal (Test Clock, TCK) of one and / or multiple clock cycles. At this time, Figure 2The data selector 206 in the above inputs the test data (SCAN_IN[n:0]) to the above scan chain test circuit 212. It should be noted here that when the third input terminal (or signal control terminal) of the above data selector 206 receives a high-level enable clock signal (for example, SCAN_EN is "1"), it selects the register input data (Reg_scan_in[n:0]) as the input data (SCAN_IN[n:0]) and inputs it to the above scan chain test circuit 212. Figure 6 As shown, it is also necessary to explain that the input data (SCAN_IN[n:0]) before the T1 period can be the pin input data SI_0, SI_n or the data input by other means (such as Figure 6 Not paying attention).

[0069] Next, if Figure 6 As shown in the second period T2, when Figure 4 When the register clock control module 214 transmits a high level enable clock signal SCAN_EN (for example, the enable clock signal is "1"), Figure 4 The clock controller 208 further includes an inverter (not shown) that inverts the high-level enable clock signal and transmits it to the D-type flip-flop 406, that is, the high-level enable clock signal (e.g., the enable clock signal is "1") is converted into a low-level enable clock signal (e.g., the enable clock signal is "0") and transmitted to the gated clock circuit 410 of the clock controller 208 via the D flip-flops 406 and 408. When the enable clock signal is at a high level, the continuous function clock signal (Func_clk) is locked. Next, as Figure 6 As shown in the third period T3, when Figure 5 When the test mode signal (Test_mode) is at a high level (for example, Test_mode is "1"), the third data selector 504 in the mode controller 210 selects to output the mode test backup clock signal (Scan_mode_dp) from the register mode control module 216 as the mode test clock signal (DFT_ON), ​​that is, outputs a high-level mode test clock signal. Next, Figure 6 As shown in the fourth period T4, when Figure 5 When the test mode signal (Test_mode) is at a high level (for example, Test_mode is "1"), the fourth data selector 506 in the mode controller 210 selects to output the mode scan enable backup clock signal (Scan_en_dp) from the register mode control module 216 as the mode scan enable clock signal (SE), that is, outputs a high level mode scan enable clock signal. Finally, Figure 6 As shown in the fifth period T5, when Figure 4 When the clock controller 208 receives the enable clock signal (SCAN_EN) and the mode scan enable clock signal (SE) transmitted from the register clock control module 214 and the mode controller 210 as high level, the clock controller 208 outputs the shift clock IP_CLK signal with the same frequency as the register shift clock to Figure 2 The shift clock IP_CLK of the scan chain test circuit 212 or the clock controller 208 is switched to the register shift clock output by the register controller 204 and transmits the register shift clock to Figure 2 At this time, under the action of the shift clock signal (IP_CLK), the test data (SCAN_IN[n:0]) input to the scan chain test circuit 212 in the first period T1 is shifted in the scan chain test circuit for scanning, and the test data (SCAN_OUT[n:0]) is output to the output pin (Output Pad) of the scan chain test circuit starting from the fifth period T5. Figure 2 The register controller 204 in the embodiment records the test data and integrates it (Reg_scan_out[n:0]) and outputs it to the external device 202 for analysis by the tester. It should be noted that Figure 6 A signal diagram after several clock cycles, that is, after the test is completed T6 period, is also drawn. The clock signal diagram after this period will vary due to the specific circuit structure. Figure 6 It is just a simple illustration without any specific explanation or limitation.

[0070] It needs to be explained that the above combination Figure 6 The clock signal schematic diagram only illustrates the working state of the scan chain control circuit when the enable clock signal is at a high level, which will be described in detail below in conjunction with Table 1.

[0071] As shown in Table 1, the scan chain control circuit can operate in three modes, namely, scan mode, original test mode, and function mode. When the scan chain control circuit is connected to the external device 202 and receives a number of TCK clock cycles transmitted by the external device 202 (such as Figure 6 Two clock cycles are shown). Figure 2 The register controller 204 in the scan chain control circuit 200 generates a high level enable clock signal (SCAN_EN). Figure 4 When the clock controller 208 receives the high level enable clock signal (SCAN_EN), Figure 4 The data selector 414 in selects the register shift clock (shift_clk) and outputs it to the data selector 416. Figure 5 The register controller 204 shown will generate high level Scan_mode_dp and Scan_en_dp signals accordingly.

[0072] Furthermore, when the test mode signal (Test_mode) is high, if Figure 5 The data selector 506 in the mode controller 210 shown selects the high level Scan_en_dp signal output, and the data selector 504 in the mode controller 210 selects the high level Scan_mode_dp signal output. It should be noted here that the outputs of the data selectors 506 and 504 in Table 1 are only marked with Scan_mode_dp and Scan_en_dp signals, but not marked as high level or low level. It should be explained in particular that when the enable clock signal (SCAN_EN) and the test mode signal (Test_mode) are both high level, the Scan_mode_dp and Scan_en_dp must be high level and there is no low level state, but those skilled in the art can design it according to their own needs, so the Scan_mode_dp and Scan_en_dp signal states are not marked in Table 1.

[0073] Then return to Figure 4 As shown, when Figure 4 The data selector 416 in receives a high-level SE signal (which may be a high-level Scan_en_dp signal), Figure 4 The data selector 416 in selects shift_clk to output to the scan chain test circuit. At this time, it means that the scan chain control circuit works in the Scan mode state, and the test data input to the scan chain test circuit is the register input data Reg_scan_in[n:0].

[0074] when Figure 2 The register controller in the scan chain control circuit 200 shown generates a low level enable clock signal (SCAN_EN). Figure 4 When the clock controller 208 receives the low level enable clock signal (SCAN_EN), Figure 4 The data selector 414 in the select pin shift clock (Ext_clk) is output to the data selector 416. At this time, it should be noted that if Figure 5 The register controller 204 shown may be considered to generate no Scan_mode_dp and Scan_en_dp signals or to generate low-level Scan_mode_dp and Scan_en_dp signals.

[0075] Furthermore, when the test mode signal (Test_mode) is at a low level, Figure 5 The data selector 506 in the mode controller 210 shown in FIG. 1 selects the high-level SE_i signal for output, and the data selector 504 in the mode controller 210 selects the high-level DFT_i signal for output. It should be noted that the outputs of the data selectors 506 and 504 in Table 1 are only marked with the SE_i and DFT_i signals, but not with the high or low level signals. It should be explained that at this time, SE_i and DFT_i are Figure 5 The other circuit modules (not shown) are pulled up to a high level.

[0076] Then return to Figure 4 As shown, when Figure 4 The data selector 416 in receives a high-level SE signal (which may be a high-level SE_i signal), Figure 4 The data selector 414 in the scan chain selects the pin shift clock (Ext_clk) to output to the scan chain test circuit. At this time, it means that the scan chain control circuit works in the original test mode state, and the test data input to the scan chain test circuit is the register input data SI_0, SI_1...SI_n.

[0077] Finally, it is necessary to explain that Figure 2 The register controller in the scan chain control circuit 200 shown generates a low level enable clock signal (SCAN_EN). Figure 4 When the clock controller 208 receives the low level enable clock signal (SCAN_EN), Figure 4 The data selector 414 in the embodiment selects the pin shift clock (Ext_clk) to be output to the data selector 416. Furthermore, when the test mode signal (Test_mode) is at a low level, Figure 5 The data selectors 506 and 504 in the mode controller 210 shown receive the data from Figure 5 The low-level SE_i signal and DFT_i signal outputted by other circuit modules (not shown) are shown. It should be explained that the low-level SE_i and DFT_i at this time indicate that no test is performed and the normal functional verification of the chip is performed, that is, the function mode is entered, so the test data is determined by the chip test function and is unknown.

[0078] It should be explained in more detail here that the three test mode states can be switched freely, that is, after one test mode state is completed, it can be switched to one of the other two test mode states. Figure 6As shown (indicating that the scan chain control circuit 200 is working in the scan mode (Scan mode) state at this time), after several clock cycles in the T5 period, the completed test data (Reg_scan_out[n:0]) is output to the external device 202. The scan chain control circuit 200 of the present invention can perform a reset operation, and all clock signals (such as: SCAN_EN becomes a low level, Func_clk is synchronized with the PLL clock (also known as not locked or blocked), DFT_ON and SE become low levels, Shift_clk becomes a low level, IP_CLK is synchronized with the PLL clock, etc.) are restored to the clock state before the T1 period. Next, the scan chain control circuit 200 can restart to work in the original test mode state or the working mode state, that is, to realize the switching of the scan chain control circuit 200 from the scan mode state to the original test mode state or the switching of the scan mode state to the functional mode state. The above description is just a simple introduction to the switching between the mode states of the scan chain control circuit of the present invention, but the present invention is not limited to this.

[0079] Table 1

[0080]

[0081] Figure 7 FIG. 1 is a schematic diagram of a scan chain control circuit flow according to an embodiment of the present invention. The main steps include: in step S702, Figure 2 The external device 202 shown transmits a continuous and stable test clock signal TCK to the register controller 204. The register controller 204 of the scan chain control circuit 200 generates a high level enable clock signal (SCAN_EN=1) or a low level enable clock signal (SCAN_EN=0), that is, enables the scan mode or the original test mode.

[0082] In step S704, the scan chain control circuit 200 selects to output a test data SCAN_IN[n:0] to the scan chain test circuit 212 according to the high level enable clock signal or the low level enable clock signal. Figure 2 As shown, when the enable clock signal is at a high level (for example, the enable signal is "1"), the data selector 206 selects the test data (Reg_scan_in[n:0]) transmitted to the second input terminal by the register controller 204 as the test data input to the scan chain test circuit 212. When the enable clock signal is at a low level (for example, the enable signal is "0"), the data selector 206 selects the test data (SI_0, SI_1 . . . SI_n) transmitted to the first input terminal by the scan chain test circuit 212 as the test data input to the scan chain test circuit 212.

[0083] In step S706, the clock controller 210 of the scan chain control circuit 200 triggers the test data to move in the scan chain test circuit 212. Figure 4 As shown, when the enable signal is at a high level (for example, the enable signal is "1"), the clock controller 210 receives a high-level enable signal. The first data selector 414 of the clock controller 210 selects the register shift clock signal (Shift_clk) transmitted by the register clock control module 214 received at the second input end to be transmitted to the second data selector 416. The second data selector 416 of the clock controller 210 selects a register shift clock signal (Shift_clk) transmitted by the first data selector 414 received at the second input end as the shift clock signal (IP_CLK) output to the scan chain test circuit 212. When the enable signal is at a low level (for example, the enable signal is "0"), the clock controller 210 receives a low-level enable signal. The first data selector 414 of the clock controller 210 selects the pin shift clock signal (Ext_clk) transmitted by the scan chain test circuit 212 received at the first input end to be transmitted to the second data selector 416. The second data selector 416 of the clock controller 210 selects the pin shift clock signal (Ext_clk) transmitted by the first data selector 414 received at the second input terminal as the shift clock signal (IP_CLK) to be output to the scan chain test circuit 212 .

[0084] In step S708, the test data of all scan chain test circuits 212 are output. Because when the enable clock signal is at a high level and the test mode signal is at a low level or the enable clock signal is at a low level and the test mode signal is at a high level, all register data in the scan chain test circuit 212 will be moved to the next level register step by step as a whole under the action of the above-mentioned register shift clock (shift_clk) or (Ext_clk), and the test data (SCAN_OUT[n:0]) will be output through the output pin of the scan chain test circuit 212, and the test data (Reg_scan_out[n:0]) will be output to the test access port through the register controller 204 to output the test data to the chip external test equipment 202.

[0085] In step S710 , steps S706 and S708 are repeated until all data are shifted and output to the external device 202 .

[0086] Combination Figures 1 to 7 The above is the test principle of the scan chain control circuit. The following will explain in detail how the scan chain control circuit achieves test flexibility when the chip is packaged on a PCB board. Figure 8 FIG. 1 is a schematic diagram of a scan chain test circuit packaged on a PCB according to an embodiment of the present invention. Figure 8 As shown, only the integrated design circuits IC1 and IC2 to be tested and their corresponding scan chain test circuits 212-1, 212-2, 212-3, and 212-4 (as shown in the dotted box in the figure, the rectangular figure is schematically a D-type trigger or other test basic unit circuit structure, and the present invention is not limited to this), PAD pins and scan chain control circuit 200 are shown. It should be noted here that, as shown in the figure, the integrated design circuits IC1 and IC2 to be tested only show two scan chain test circuits 212-3, 212-4 and 212-1, 212-2 of each. However, the number of integrated design circuits to be tested and scan chain test circuits can be determined according to actual test needs or according to corresponding test requirements such as the product functions of the integrated design circuits to be tested. Those skilled in the art can design them according to actual conditions. The present invention does not limit the number of scan chain test circuits. In addition, when the test circuit (also indicating the inclusion of the scan chain control circuit and the scan chain test circuit) is packaged on a PCB board, the PAD pins (such as Figure 2 The input / output pins shown in the figure will be packaged on the PCB board. Figure 8 As shown in the figure, the pins packaged on the PCB board are represented as PAD pins as the shaded rectangles in the figure, but those skilled in the art should not confuse the two pins. Figure 2 The PAD pins shown are Figure 8 The PAD pins shown are distinguished and easy to understand. The PAD pins on the above PCB board can also be called lead interfaces or lead ends. The lead ends will be used to describe the pins on the PCB board below. In addition, for the convenience of illustration, Figure 8 Only the scan chain control circuit 200 is shown. For details about the internal circuit structure of the scan chain control circuit 200 and the specific circuit structures of the scan chain test circuits 212-1, 212-2, 212-3, and 212-4, and the specific details of the scan chain control circuit 200 controlling the scan chain test circuits 212-1, 212-2, 212-3, and 212-4, please refer to Figures 2 to 5 There is one more thing that needs to be explained. Figure 8 The input pins (which should be understood as Figure 2 The Input_0, Input_1, ..., Input_n pins shown in Figure 8 (not shown) are all directly connected to their respective scan chain test circuits 212-1, 212-2, 212-3, and 212-4, but Figure 2As shown, the input pins (Input_0, Input_1, ..., Input_n) of the scan chain test circuit 212 are not directly connected to the scan chain test circuit. Figure 2 The circuit connection can also be designed according to the connection method shown Figure 8 The connection method shown is designed for circuit connection. In order to facilitate the explanation of the circuit principle of the present invention and the convenience of drawing diagrams, Figure 2 The figure mainly explains the circuit design method of the scan chain control circuit controlling the scan chain test circuit, so the input pins (Input_0, Input_1, . . . , Input_n) of the scan chain test circuit 212 are not directly connected to the scan chain test circuit, and the present invention is not limited to this.

[0087] like Figure 8 As shown, when the test circuit (also including the scan chain control circuit and the scan chain test circuit) is packaged on the PCB board, the two scan chain test circuits 212-3, 212-4 and 212-1, 212-2 of the integrated design circuits IC1 and IC2 to be tested are at the lead ends of the PCB board, as shown by the shaded rectangle.

[0088] At this time, if the integrated design circuit IC1 and / or the integrated design circuit IC2 needs to be tested, it is only necessary to import the test data or export the test data from the lead ends of 212-3 and 212-4 and / or the lead ends of 212-1 and 212-2 (the figure does not distinguish between the input end and the output end, but the present invention is not limited to this.) for designers to analyze the chip design. However, with the development of integrated design circuits, when the chips are packaged from the bare chips (or dies) on the wafer to the PCB board, chip testing will face many problems. On the one hand, each scan chain test circuit has two pins, input and output. When there are too many scan chain test circuits (for example, when there are 50 scan chain test circuits, there will be 100 pins), testing from the lead ends of each scan chain test circuit will greatly increase the difficulty of testing and increase the development and testing costs. On the other hand, when it is packaged on the PCB board, it will cause lead terminal connection failure, and may also cause poor contact failures such as short circuit and / or open circuit during testing, resulting in reduced accuracy of test results and facilitating analysis.

[0089] Based on the above analysis, if Figure 8 As shown, the input / output pins of all scan chain test circuits are uniformly coupled to the scan chain control circuit (such as Figure 8The input / output pins of the scan chain test circuits 212-1, 212-2, 212-3, and 212-4 in the dashed box are uniformly coupled to the scan chain control circuit, and the scan chain control circuit controls the import of test data or the export of test data (the input end and the output end are not distinguished in the figure, but the present invention is not limited to this). The scan chain control circuit is connected to an external device through a test interface (such as Figure 8 The Interface interface is shown in the figure).

[0090] In some embodiments, the scan chain control circuit may be applied to a Joint Test Action Group (JTAG) debug interface and / or a Serial Wire Debug (SWD) interface, which is not limited in the present invention.

[0091] In some embodiments, the scan chain control circuit may be packaged in a ball grid array (BGA), flip-chip or land grid array (LGA) packaging method, and the present invention is not limited thereto.

[0092] Specifically, after the bare chip is packaged on the PCB board, if the chip design is relatively simple, the number of lead ends is relatively small, and the packaging quality is intact, the test can be directly conducted by connecting the lead ends to the external leads. If the chip design is complex, the number of lead ends is large, or it is uncertain whether the packaging quality is intact (causing poor contact failures such as short circuits and / or open circuits during testing), it is not necessary to test through the lead ends, but the test can be directly controlled by the scan chain control circuit. In other words, the above-mentioned scan chain control circuit directly tests the chip through the interface on the test circuit board without the need to test through the lead ends. The scan chain control circuit can use the pin input data (SCAN_IN[n:0]) to input the test data into the scan chain test circuit and output the completed test data (Scan_out[n:0]) to the external device for analysis by the designer after testing under the action of the pin shift clock (Ext_clk). At this time, it is called that the scan chain control circuit works in the original test mode (Original test mode). More specifically, the scan chain control circuit can also use register input data (Reg_scan_in[n:0]) and input the test data into the scan chain test circuit under the action of the register shift clock signal (Shift_clk) for testing, and then output the completed test data (Reg_scan_out[n:0]) to the external device for analysis by designers. At this time, the scan chain control circuit is called to work in scan mode (Scanmode). Furthermore, after the chip verification test is completed, the scan chain control circuit can also be turned off. At this time, the scan chain control circuit is called to work in function mode (Function mode). For a description of this part, please refer to Figures 2 to 7 The description of the parts shown will not be repeated here.

[0093] The scan chain control circuit can use the pin input data (SCAN_IN[n:0]) to input the test data into the scan chain test circuit and output the completed test data (Scan_out[n:0]) to the external device after testing under the action of the pin shift clock (Ext_clk). It should be noted that the pin input data (SCAN_IN[n:0]) is the input pin of the scan chain test circuit (this pin should be understood as Figure 2 The test data transmitted by the scan chain control circuit is transmitted to the scan chain test circuit through the scan chain control circuit, and then transmitted to the scan chain test circuit through the scan chain control circuit to complete the test (for more information, please refer to reference Figure 3Part of the description is omitted here.) Finally, the completed test data (Scan_out[n:0]) can be directly output to an external device through the lead end on the test circuit board, or the completed test data (Scan_out[n:0]) can be transmitted to the scan chain control circuit and output to an external device through the Interface interface. Specifically, when the completed test data (Scan_out[n:0]) is to be output, there are two options. First, it can be directly output to an external device through the lead end on the PCB board. Second, the completed test data (Scan_out[n:0]) can be output to the scan chain control circuit and output to an external device through the Interface interface. Regarding the situation of outputting test data, because the principle is similar to that of inputting test data, relevant technicians in this field can change the way of outputting data accordingly based on the understanding of the principle of inputting test data of the present invention, and the present invention does not impose any restrictions on the way of outputting data.

[0094] The scan chain control circuit can also use register input data (Reg_scan_in[n:0]) and input test data into the scan chain test circuit under the action of the register shift clock signal (Shift_clk) for testing, and then output the completed test data (Reg_scan_out[n:0]) to an external device. It should be noted that the register input data is test data generated by a series of registers in the scan chain control circuit (such as Figure 2 The register input data (Reg_scan_in[n:0]) in the scan chain control circuit is transmitted to the scan chain test circuit to complete the test (for more information, please refer to the reference Figure 2 and Figure 6 The description of the part is omitted here. Finally, the test data (Reg_scan_out[n:0]) after the test is completed can be directly output to the external device through the lead terminal on the test circuit board, or the test data (Reg_scan_out[n:0]) after the test is completed can be transmitted to the scan chain control circuit and output to the external device through the Interface interface. The output principle of the register input data (Reg_scan_in[n:0]) after the test is completed is similar to the explanation of the output principle of the test data (Scan_out[n:0]) after the test is completed, so it will not be repeated here.

[0095] In summary, when the chip is packaged on a PCB board, the scan chain control circuit of the present invention can directly test the chip through the wiring (also called interface) on the test circuit board without the need to test through the lead end external lead. At the same time, the scan chain control circuit can select the pin input data (SCAN_IN[n:0]) for testing or the register input data (Reg_scan_in[n:0]) for testing. Not only the accuracy of the test is improved, but also the flexibility of the test selection is improved, which can greatly improve the test accuracy and efficiency.

[0096] The present invention is described above with reference to preferred embodiments only, so that those skilled in the art can better understand the present invention from all aspects. However, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A scan chain control circuit, characterized in that: include: A register controller, comprising a register clock control module and a register mode control module, wherein the register clock control module outputs a register shift clock signal, and the register mode control module outputs an enable clock signal; A mode controller, coupled to the register controller, receives the enable clock signal, and outputs a mode scan enable clock signal; a clock controller coupled to the register controller and the mode controller, receiving the register shift clock signal, the enable clock signal and the mode scan enable clock signal, and outputting a shift clock signal; and A data selector is coupled to the scan chain test circuit and the register controller, the input pins of the scan chain test circuit are respectively coupled to a plurality of input terminals of the data selector, and the test data is transmitted to the scan chain test circuit via the data selector, Wherein, the input pins of the scan chain test circuit are uniformly coupled to the scan chain control circuit, and the output pins of the scan chain test circuit are uniformly coupled to the scan chain control circuit; The chip is tested through the interface on the test circuit board without the need to test through the lead end of the scan chain test circuit. When the scan chain control circuit is under the action of the pin shift clock, the scan chain control circuit inputs the pin input data to the scan chain test circuit and after the test, the completed test data is uniformly transmitted to the scan chain control circuit and outputted via the interface on the test circuit board; When the scan chain control circuit is under the action of the register shift clock signal, the scan chain control circuit inputs the register input data into the scan chain test circuit and after the test, transmits the completed test data to the scan chain control circuit and outputs it through the interface on the test circuit board.

2. The scan chain control circuit according to claim 1, characterized in that: The scan chain control circuit can be applied to a joint test working group debug interface and / or a serial line debug interface.

3. The scan chain control circuit according to claim 1, characterized in that: The pin input data is uniformly transmitted from the scan chain test circuit pin to the scan chain control circuit and then transmitted to the scan chain test circuit.

4. The scan chain control circuit according to claim 1, characterized in that: The scan chain control circuit can generate the register input data through the scan chain control circuit and transmit the data to the scan chain test circuit.

5. The scan chain control circuit according to claim 3, characterized in that: The test data after the pin input data test transmitted by the scan chain test circuit pins will be uniformly transmitted to the scan chain control circuit and output via the interface on the test circuit board.

6. The scan chain control circuit according to claim 4, characterized in that: The test data generated by the scan chain control circuit after the register input data test is completed will be transmitted to the scan chain control circuit and output via the interface on the test circuit board.

7. The scan chain control circuit according to claim 1, characterized in that: The scan chain control circuit tests the pin input data transmitted by the scan chain test circuit pin under the action of the pin shift clock and then outputs the test data after the test is completed.

8. The scan chain control circuit according to claim 7, characterized in that: When the scan chain control circuit operates in the original test mode, the scan chain control circuit tests the pin input data transmitted by the scan chain test circuit pin under the action of the pin shift clock and then outputs the completed test data.

9. The scan chain control circuit according to claim 8, characterized in that: The scan chain control circuit tests the register input data generated by the scan chain control circuit under the action of the register shift clock and then outputs the test data after the test is completed.

10. The scan chain control circuit according to claim 9, characterized in that: When the scan chain control circuit operates in the scan mode, the scan chain control circuit tests the register input data generated by the scan chain control circuit under the action of the register shift clock and then outputs the test data after the test is completed.

11. The scan chain control circuit according to claim 10, characterized in that: When the scan chain control circuit operates in the original test mode, the scan chain control circuit can be switched to the scan mode by resetting and restarting the scan chain control circuit.

12. The scan chain control circuit according to claim 10, characterized in that: When the scan chain control circuit operates in the scan mode, the scan chain control circuit can be switched to the original test mode by resetting and restarting the scan chain control circuit.