Chips and devices
By combining built-in self-test and scan test signals in the chip, the signal transmission paths with and without combinational logic are distinguished for testing. This solves the problem of low test accuracy of BIST circuits under combinational logic, improves test accuracy and efficiency, and is suitable for small-size, highly integrated chips.
Patent Information
- Application Number
- CN202180097043.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-20
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2041-08-20
AI Technical Summary
In large-scale logic circuits, the logic levels generated by the built-in self-test (BIST) circuit are altered after being processed by combinational logic, affecting the accuracy of inter-chip connectivity performance testing.
The built-in self-test (BIST) signal is used to test the signal transmission path without combinational logic, and the scan test signal is used to test the signal transmission path with combinational logic. The multiplexer and redundant pins are used to directly switch when the signal transmission path fails, thereby improving the accuracy of the test.
It improves the accuracy and efficiency of inter-chip connectivity testing, simplifies chip circuit design, reduces the use of registers, and is suitable for the implementation of small-size, highly integrated chips.
Smart Images

Figure CN117280417B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of circuit technology, and more particularly to a chip and a device. Background Technology
[0002] With the development of electronic technology, the functionality of integrated circuits has been significantly improved, and large-scale logic circuits are widely used. In current large-scale logic circuits, in order to achieve more and more complex logic functions, multiple chips are usually packaged in one package, and these multiple chips are connected by conductive lines to exchange signals.
[0003] To test the connectivity between multiple chips, it is necessary to test the connectivity between each chip. With the increasing integration of chips, the industry has proposed using the built-in self-test (BIST) method to test the interconnect paths between chips in order to reduce the complexity of chip connectivity testing. However, when combinational logic circuits are present on the chip's connectivity paths, the logic levels generated by the BIST circuits are altered after passing through the combinational logic, affecting the test results. Therefore, improving the accuracy of inter-chip connectivity testing has become a problem that needs to be solved. Summary of the Invention
[0004] The chip and device provided in this application can improve the accuracy of inter-chip connectivity performance testing.
[0005] To achieve the above objectives, this application adopts the following technical solution: In a first aspect, embodiments of this application provide a chip comprising: a test circuit, multiple signal transmission paths, a test signal input pin, and multiple interconnect pins, wherein the chip is a first chip, and the multiple interconnect pins are used to connect to a second chip; the test circuit is configured to: transmit a first test signal to a first interconnect pin among the multiple interconnect pins through a first signal transmission path among the multiple signal transmission paths, so that the second chip detects the first signal transmission path based on the first test signal; receive a second test signal from a second interconnect pin among the multiple interconnect pins through a second signal transmission path among the multiple signal transmission paths, and generate a first test result based on the second test signal and a test signal generated by the test circuit, wherein the first test result is used to indicate whether a fault has occurred in the second signal transmission path; receive a third test signal from the test signal input pin, and transmit the third test signal to a third interconnect pin among the multiple interconnect pins through a third signal transmission path among the multiple signal transmission paths; wherein the first test signal and the second test signal are built-in self-test (BIST) signals, no combinational logic is provided in the first signal transmission path and the second signal transmission path, and combinational logic is provided in the third signal transmission path.
[0006] The test circuit shown in this application embodiment can perform tests on signal transmission paths in the chip that do not have combinational logic by using built-in self-test signals, and on signal transmission paths in the chip that have combinational logic by using scan test signals, thereby improving the test efficiency and test accuracy of the test circuit.
[0007] The test circuit provided in this application embodiment can also test the signal transmission path for signal transmission within the chip and between various unit modules.
[0008] In one possible implementation, the test circuit is further configured to: transmit a fourth test signal through a fourth signal transmission path among the multiple signal transmission paths; generate a second test result based on the fourth test signal transmitted through the fourth transmission path, the second test result being used to indicate whether a fault has occurred in the fourth signal transmission path; no combinational logic is provided in the fourth signal transmission path, and the fourth test signal is a BIST signal.
[0009] In this embodiment, the fourth signal transmission path is a path for transmitting signals between various logic units within the chip. The detection of the fourth signal transmission path can occur before the detection of the first to third signal transmission paths, thereby ensuring that all signal transmission paths within the chip are fault-free. Furthermore, by using the BIST signal to test the signal transmission paths within the chip that do not contain combinational logic, the accuracy of chip testing can be improved.
[0010] In one possible implementation, the chip further includes a test signal output pin; the test circuit is also configured to: receive a fifth test signal from the test signal input pin, and transmit the fifth test signal to the test signal output pin through the fifth signal transmission path in the plurality of signal transmission paths, wherein combinational logic is provided in the fifth signal transmission path.
[0011] The fifth test signal can be a scan test signal. The test signal input pin and the test signal output pin can be connected to the test equipment. The test equipment provides the third test signal to the fifth signal transmission path through the test signal input pin. The fifth signal transmission path transmits the third test signal to the test equipment through the test signal output pin, so that the test equipment can test the fifth signal transmission path inside the chip, which is equipped with combinational logic, thereby improving the accuracy of chip testing.
[0012] The test circuit described in this application embodiment may include various types of circuit structures. In one possible implementation, the test circuit includes a built-in self-test circuit and a scan test circuit; the built-in self-test circuit includes a signal transmitter and a signal receiver; the signal transmitter is used to generate the first test signal; the signal receiver is used to generate the first test result based on the second test signal and the generated test signal; the scan test circuit is used to receive the third test signal from the test signal input pin and transmit the third test signal to the third interconnect pin through the third signal transmission path.
[0013] Based on the circuit structure of the test circuit described above, in one possible implementation, when the test circuit tests the signal transmission path between the chip's internal components and various unit modules: The signal transmitting end is further configured to: generate the fourth test signal, and transmit the fourth test signal to the signal receiving end through the fourth signal transmission path. The signal receiving end is further configured to: generate the second test result based on the fourth test signal and the test signal generated by the signal receiving end.
[0014] The scanning test circuit is also used to: receive the fifth test signal from the test signal input pin, and transmit the fifth test signal to the test signal output pin through the fifth signal transmission path.
[0015] Based on the circuit structure of the test circuit described above, in one possible implementation, the signal transmitting end is connected to the first interconnect pin through the first signal transmission path; the signal receiving end is connected to the second interconnect pin through the second signal transmission path.
[0016] In one possible implementation, the chip further includes a multiplexer disposed between the built-in self-test circuit and the plurality of interconnect pins; the multiplexer is used to switch the signal transmitter to be connected to the first interconnect pin through the first signal transmission path when the first signal transmission path fails, and to connect the signal transmitter to the fourth interconnect pin through the sixth signal transmission path among the plurality of interconnect pins. In this embodiment, the fourth interconnect pin is a redundant pin. By setting a multiplexer and a redundant pin, when a signal transmission path fails, the faulty signal transmission path can be directly switched to the signal transmission path where the redundant pin is located, without the need for additional manual repair, thus improving the repair efficiency of abnormal signal transmission paths.
[0017] In one possible implementation, the multiplexer is further configured to: when the second signal transmission path fails, connect the signal receiving end to the second interconnect pin through the second signal transmission path, and switch the signal receiving end to connect to the fifth interconnect pin through the seventh signal transmission path among the plurality of signal transmission paths.
[0018] In one possible implementation, the signal transmitting end includes a first linear feedback shift register, and the signal receiving end includes a second linear feedback shift register. The first linear feedback shift register and the second linear feedback shift register are obtained by multiplexing the functional registers in the chip.
[0019] In one possible implementation, the scan test circuit includes a plurality of cascaded chip package registers, which are obtained by multiplexing at least one of the first linear feedback shift register and the second linear feedback register.
[0020] This application embodiment reuses the functional registers in the chip for the first linear feedback shift register, the second linear feedback shift register, and the registers in the scan test circuit. This reduces the number of registers in the chip, thereby reducing the chip layout area occupied by the registers, simplifying the circuitry in the chip, and facilitating the realization of small-size, highly integrated chips.
[0021] In one possible implementation, the chip further includes a control circuit for transmitting a control signal to the signal transmitter to control the signal transmitter to output one of the first test signal, the third test signal, and the function signal.
[0022] In one possible implementation, the control circuit is further configured to: output a control signal to the signal receiving end to control the signal receiving end to generate a test signal.
[0023] In one possible implementation, the control circuit is further configured to: obtain the first test result from the signal receiving end, and based on the first test result, control the switching of the connection relationship between the input and output ends of the multiplexer.
[0024] Secondly, embodiments of this application provide an apparatus comprising a first chip and a second chip, the first chip and the second chip being connected via interconnect pins; the first chip transmitting a first test signal to the second chip via a first signal transmission path; the second chip generating a first test result based on the first test signal and a test signal generated by the second chip, the first test result indicating whether a fault has occurred in the first signal transmission path; the second chip transmitting a second test signal to the first chip via a second signal transmission path; the first chip generating a second test result based on the second test signal and a test signal generated by the first chip, the second test result indicating whether a fault has occurred in the second signal transmission path; the first chip receiving a third test signal from a test signal input pin of the first chip and transmitting the third test signal to the second chip via a third signal transmission path; the second chip outputting the third test signal via a test signal output pin of the second chip; wherein the first test signal and the second test signal are built-in self-test (BIST) signals, no combinational logic is provided in the first signal transmission path and the second signal transmission path, and combinational logic is provided in the third signal transmission path.
[0025] Based on the second aspect, in one possible implementation, the first chip includes a first built-in self-test circuit and a first scan test circuit; the first built-in self-test circuit includes a first signal transmitter and a first signal receiver; the first signal transmitter is used to generate the first test signal; the second signal receiver is used to generate the second test result based on the second test signal and the generated test signal; the first scan test circuit is used to receive a third test signal from the test signal input pin and transmit the third test signal to the second chip through the third signal transmission path.
[0026] Based on the second aspect, in one possible implementation, the second chip includes a second built-in self-test circuit and a second scan test circuit; the second built-in self-test circuit includes a second signal transmitter and a second signal receiver; the second signal transmitter is used to generate the second test signal; the second signal receiver is used to generate the first test result based on the first test signal and the generated test signal; the second scan test circuit is used to receive a third test signal from the first chip and output the third test signal through the test signal output pin of the second chip. Attached Figure Description
[0027] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0028] Figure 1 This is a schematic diagram of the test circuit provided in chip A according to an embodiment of this application; Figure 2 This is yet another structural schematic diagram of the test circuit provided in chip A in the embodiments of this application; Figure 3 This is a schematic diagram of a structure in which chip A and chip B are connected, as provided in an embodiment of this application. Figure 4 This is yet another structural schematic diagram of the test circuit provided in chip A in the embodiments of this application; Figure 5 This is yet another structural schematic diagram of the test circuit provided in chip A in the embodiments of this application; Figure 6 This is yet another structural schematic diagram of the test circuit provided in chip A in the embodiments of this application; Figure 7 This is another structural schematic diagram of the test circuit set in chip A provided in the embodiments of this application. Detailed Implementation
[0029] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0030] The terms "first," "second," and similar terms used in this article do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Similarly, "one" or similar terms do not indicate a quantity limitation, but rather indicate the existence of at least one. Terms such as "connection" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect, equivalent to connectivity in a broad sense.
[0031] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner. In the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more. For example, multiple output terminals refer to two or more output terminals.
[0032] The types of chips described in this application embodiment may include, but are not limited to, one of the following: system-on-a-chip (SoC), memory, discrete devices, application processor (AP), micro-electro-mechanical system (MEMS), microwave RF chip, application-specific integrated circuit (ASIC), etc. The aforementioned application processor or ASIC may, in specific applications, be a central processing unit (CPU), graphics processing unit (GPU), artificial intelligence processor, such as a network processing unit (NPU), etc. Memory may be cache memory, random access memory (RAM), read-only memory (ROM), or other types of memory. Discrete devices may include, but are not limited to, field-effect transistors (FETs), bipolar transistors (BJTs), integrated operational amplifiers, etc. The chips described in this application embodiment are all equipped with test circuits. These test circuits are used to test the signal transmission path inside the chip or to test the interconnection performance between chips, to detect whether the signal transmission path is unobstructed, whether there is a signal transmission delay, and whether there are any breaks in the chip pins, etc. The following describes... Figures 1-7The illustrated embodiment provides a detailed description of the test circuitry incorporated into the chip. Please refer to Figure 1 , Figure 1 This is a schematic diagram of the structure of chip A provided in an embodiment of this application. Figure 1 In this embodiment, chip A includes a test circuit. Typically, chip A needs to undergo self-testing before interconnecting with other chips or before leaving the factory to check whether the signal transmission paths within chip A are functioning correctly and whether there is any delay in signal transmission. The test circuit described in this application is used to test the signal transmission paths within chip A. Figure 1 As shown, the test circuit includes a built-in self-test circuit 1 and a scan test circuit 2.
[0033] The built-in self-test circuit 1 includes a signal transmitter 10 and a signal receiver 11. The signal transmitter 10 is used to transmit signals, and the signal receiver 11 is used to receive signals. The signal transmitter 10 includes multiple output terminals. Figure 1 The diagram schematically shows that the signal transmitting end 10 includes four output terminals ao1~ao4; the signal receiving end 11 includes multiple input terminals. Figure 1The diagram schematically illustrates that the signal receiver 11 includes four input terminals ai1~ai4. Multiple output terminals of the signal transmitter 10 are connected to the corresponding input terminals of the signal receiver 11 via multiple signal transmission paths S1~S4 in chip A. The signal transmitter 10 may include a linear feedback shift register (LFSR), and the signal receiver 11 may also include an LFSR. When both the signal transmitter 10 and the signal receiver 11 include four ports, both can include a four-bit LFSR. Furthermore, the signal receiver 11 also includes a comparator circuit. In practice, both the signal transmitter 10 and the signal receiver 11 can generate the same pseudo-random binary sequence (PRBS). The signal transmitter 10 provides the generated four-bit pseudo-random binary sequence to the signal receiver 11 via the four signal transmission paths S1~S4. Signal receiver 11 compares the four-bit pseudo-random binary sequence received from signal transmitter 10 with its own generated four-bit pseudo-random binary sequence and outputs the comparison result. This comparison result indicates whether a fault has occurred in signal transmission paths S1 to S4. Such faults may include, but are not limited to, short circuits, open circuits, and delays. For example, the four-bit pseudo-random binary sequence is 1100. Signal transmission path S1 transmits signal "1", signal transmission path S2 transmits signal "1", signal transmission path S3 transmits signal "0", and signal transmission path S4 transmits signal "0". Assuming signal transmission path S2 is open-circuited, the signal output by signal transmission path S2 is "0", and the signal received by signal receiver 11 is "1000". Signal receiver 11 compares "1000" with "1100" to determine that the second bit of the received four-bit pseudo-random binary sequence differs from the pre-generated four-bit pseudo-random binary sequence, and outputs the comparison result. For example, the comparison result can be "0100", where "0" indicates that the corresponding signal transmission path is open and "1" indicates that the corresponding signal transmission path is abnormal. It should be noted that... Figure 1The number of output terminals included in the signal transmitter 10, the number of input terminals included in the signal receiver 11, and the number of bits in the pseudo-random binary sequence generated by the built-in self-test circuit 1 are illustrative. The signal transmitter 10 may include more output terminals (e.g., 15 output terminals, 32 output terminals, etc.), and similarly, the signal receiver 11 may include more input terminals (e.g., 15 input terminals, 32 input terminals, etc.), which is determined based on the number of signal transmission paths to be tested in chip A. It should also be noted that the multiple signal transmission paths S1~S4 connected to the output terminals of the signal transmitter 10 and the input terminals of the signal receiver 11 can be direct-connected paths, and no combinational logic is set on the transmission paths S1~S4.
[0034] The scan test circuit 2 is used to test signal transmission paths with combinational logic. The scan test circuit 2 includes at least one test chain, each of which is formed by connecting multiple die wrapper registers (DWRs) in series. Figure 1 The diagram schematically illustrates a scan test circuit 2 comprising a test chain. Multiple DWRs are connected in series between the test signal input terminal ti and the test signal output terminal to of chip A. Furthermore, a combinational logic 3 is provided on the signal transmission path between the test signal input terminal ti (also referred to as the test signal input pin of chip A) and the test signal output terminal to (also referred to as the test signal output pin of chip A). This combinational logic 3 is used to implement various logic functions of chip A, which may include, but are not limited to, arithmetic operations and storage. The combinational logic 3 may include, but is not limited to, at least one of the following: an arithmetic logic unit (e.g., adder, multiplier, etc.), a buffer, and logic gates (e.g., AND gate, OR gate, NOT gate, XOR gate, etc.). The combinational logic 3 includes multiple input terminals and multiple output terminals. Figure 1The diagram schematically illustrates combinational logic 3, which includes two inputs and two outputs. Each input and output of combinational logic 3 is equipped with a DWR (Distributed Controller). Each DWR includes an input ci1 and an output co1. The input ci1 of DWR121 is connected to the test signal input ti of chip A. In DWR121 to DWR124, the output co1 of the previous stage DWR is connected to the input ci1 of the next stage DWR, and the output co1 of DWR124 is connected to the test signal output to. Furthermore, DWR121 and DWR122 also include an output co2, which is connected to the two inputs of the combinational logic, respectively. DWR123 and DWR124 also include an input ci2, which is connected to the two outputs of combinational logic 3, respectively. Additionally, each DWR includes a clock signal input and an enable signal input, which are not shown in the diagram. When the scanning test circuit 2 is working, the test signal input terminal ti and the test signal output terminal to are connected to the test equipment. Specifically, firstly, each DWR forms a path from input terminal ci1 to output terminal co1. The test equipment inputs test signal T1 to the test signal input terminal ti, and test signal T1 is stored in DWR121 and DWR122 through a shift scan. Next, the test signal T1 stored in DWR121 and DWR122 is provided to combinational logic 3 through output terminal co2. Combinational logic 3 processes test signal T1 to generate test signal T2, which is stored in DWR123 and DWR124 through input terminal ci2, respectively. Then, each DWR forms a path from input terminal ci1 to output terminal co1, and test signal T2 stored in DWR123 and DWR124 is shifted and output to the test equipment through the test signal output terminal to. Thus, the test equipment determines whether a fault has occurred in the signal transmission path of the combinational logic in chip A based on test signal T2 and the desired output signal. This anomaly may include, but is not limited to, open circuit, short circuit, or delay.
[0035] In traditional technologies, to improve chip testing efficiency, chip test circuits typically employ only a single circuit structure: a built-in self-test (WPT) circuit. This WPT circuit tests signal transmission paths within or between chips. However, when combinational logic exists in the signal transmission paths, the signal output from the transmitter of the WPT circuit is altered by this logic, interfering with the test results. For example, assuming the combinational logic in the transmission path is an inverter, the transmitter's output "1100" becomes "0011" after being inverterized. The receiver then receives "0011," leading to a misinterpretation by the receiver that all signal transmission paths are faulty, resulting in low testing efficiency.
[0036] The test circuit shown in this application embodiment improves the test efficiency and accuracy by setting up a built-in self-test circuit and a scan test circuit. The built-in self-test circuit is used to test signal transmission paths in the chip that do not have combinational logic, while the scan test circuit is used to test signal transmission paths in the chip that have combinational logic.
[0037] In this embodiment, chip A further includes multiple pins, which can also be referred to as interconnect pins or pads (PADs). The pins of chip A are used for interconnection with other chips to exchange signals. It is understood that the number of pins included in chip A in the figure is only illustrative; actual products may include more pins, and the number of pins in chip A is set based on the needs of the scenario. The test circuit 100 can also be connected to each pin of chip A. After chip A is interconnected with other chips through its pins, the test circuit 100 can also test the signal transmission path between chip A and other chips, that is, test the interconnection performance between chip A and other chips through each pin of chip A, to detect whether the signal flows smoothly between chip A and other chips, whether there is a delay in signal transmission, and whether there are any breaks in the chip pins, etc. Figure 2 As shown, Figure 2 This is another structural schematic diagram of chip A provided in the embodiments of this application. Figure 2 The diagram schematically illustrates chip A, which includes eight pins: a1, a2, a3, a4, a5, a6, a7, and a8. Some pins in chip A can be signal output pins, used to output signals to other chips; some pins can be signal input pins, used to input signals from other chips; and some pins can be bidirectional signal transmission pins, capable of both outputting and receiving signals from other chips. Figure 2 The diagram schematically illustrates the case where pins a1-a3 and a8 are signal output pins, pins a5-a7 are signal input pins, and pin a4 is a bidirectional pin. Figure 2In this embodiment, multiple output terminals of the signal transmitting end 10 are connected to pins a1 to a4 via signal transmission paths, and multiple input terminals of the signal receiving end 11 are connected to pins a4 to a7 via signal transmission paths. In one possible implementation, the signal transmission path for self-testing chip A and the signal transmission path for interconnection testing between chip A and other chips are at least partially the same; for example, both the signal transmission path for self-testing chip A and the signal transmission path for interconnection testing between chip A and other chips use signal transmission path S4. Since the output terminal ao4 of the signal transmitting end 10 is connected to the input terminal ai4 of the signal receiving end 11, and both the output terminal ao4 of the signal transmitting end 10 and the input terminal ai4 of the signal receiving end 11 are connected to pin a4, to prevent signal backflow, in this embodiment, a follower F is provided between the output terminal ao4 of the signal transmitting end 10 and pin a4, and between pin a4 and the input terminal ai4 of the signal receiving end 11, such as... Figure 2 As shown. The signal backflow mentioned here refers to the signal input from pin a4 flowing into signal transmitter 10 through input terminal ao4, interfering with the circuitry of signal transmitter 10. Furthermore, in Figure 2 In the chip A, combinational logic 3 is installed on the signal transmission path connected to pin a8. Therefore, the signal output terminal of the scan test circuit 2 (i.e., the output terminal co1 of DWR124) is connected to pin a8.
[0038] In this embodiment, the chip interconnected with chip A may include a test circuit with the same structure as chip A. The following example illustrates the interconnection between chip B and chip A. Figure 3 This application provides a detailed description of the working principle of the test circuit provided in the embodiments for testing the interconnection performance between chips. Figure 3In the chip, chip B includes a built-in self-test circuit 4, a scan test circuit 5, and eight pins: b1, b2, b3, b4, b5, b6, b7, and b8 (these eight pins can also be called interconnect pins). Schematic, pins b1-b3 and b8 are signal input pins, pins b5-b7 are signal output pins, and pin b4 is a bidirectional pin. The built-in self-test circuit 4 includes a signal transmitter 20 and a signal receiver 21. The signal transmitter 20 is connected to pins b4-b7 and is used to output test signals to pins b4-b7. The signal receiver 21 is connected to pins b1-b4 and is used to receive test signals from pins b1-b4. The working principle of the built-in self-test circuit 4 is the same as that of the built-in self-test circuit 1; please refer to the relevant description for details, which will not be repeated here. The scan test circuit 5 is located between pin b8 and the test signal output terminal to2. The scanning test circuit 5 includes DWR125~DWR128. The structure and working principle of the scanning test circuit 5 are the same as those of the scanning test circuit 2; please refer to the relevant description of the scanning test circuit 2 for details. Furthermore, in Figure 3 In the diagram, pins a1 to a8 of chip A are connected to pins b1 to b8 of chip B, respectively.
[0039] When testing the interconnection performance between chip A and chip B, signal transmitter 10 and signal receiver 21 generate the same pseudo-random binary sequence. Signal transmitter 10 provides the generated pseudo-random binary sequence to signal receiver 21 through pins a1~a4 and b1~b4. Signal receiver 21 compares its own generated pseudo-random binary sequence with the pseudo-random code received through pins b1~b4. Based on the comparison result, it determines whether a fault has occurred in the signal transmission path between pins a1~a4 and b1~b4. Similarly, signal transmitter 20 and signal receiver 11 generate the same pseudo-random binary sequence. Signal transmitter 20 provides the generated pseudo-random binary sequence to signal receiver 11 through pins b4~b7 and a4~a7. Signal receiver 11 compares its own generated pseudo-random binary sequence with the pseudo-random code received through pins a4~a7. Based on the comparison result, it determines whether a fault has occurred in the signal transmission path between pins a4~a7 and b4~b7. The principle of determining the interconnection performance between chip A and chip B based on pseudo-random binary sequences is the same as the working principle of determining whether each signal transmission path is abnormal based on pseudo-random binary sequences when testing the signal transmission path inside chip A. For details, please refer to the relevant description of determining whether each signal transmission path is abnormal based on pseudo-random binary sequences when testing the signal transmission path inside chip A, which will not be repeated here.
[0040] Furthermore, when testing the interconnect performance between chip A and chip B, the test equipment is connected to the test signal input terminal ti1 of chip A and the test signal output terminal to2 of chip B. The test equipment is used to input the test signal T3 to the scanning test circuit 2 through the test signal input terminal ti1. The scanning test circuit 2 processes the test signal T3 to generate the test signal T4 (see [reference] for details on the processing method). Figure 1 The working principle of the scanning test circuit 2 is described in the following section. The signal is output to the scanning test circuit 2 via interface a8 and interface b8. The scanning test circuit 2 can further process the test signal T4 (see the section for details). Figure 1 (Description of the working principle of scanning test circuit 2 in the text) generates a test signal T5, which is provided to the test equipment through the test signal output terminal to2. The test equipment compares the test signal T5 with the expected signal. When the test signal T5 is the same as the expected signal, it indicates that there is no fault in the signal transmission path through pins a8 and b8; when the test signal T5 is different from the expected signal, it indicates that there is a fault in the signal transmission path through pins a8 and b8.
[0041] The above has been approved. Figures 1-3 The illustrated embodiment describes the working principle of the test circuit in chip A, the internal transmission path testing of chip A, and the testing principle after interconnection with other chips. Figures 1-3 In the illustrated embodiment, the signal transmitter 10, signal receiver 11, and DWR in the scan test circuit 2 of chip A are all independent registers. In one possible implementation of this application embodiment, the signal transmitter 10, signal receiver 11, and DWR in the built-in self-test circuit 1 can all reuse the function registers in chip A (i.e., the registers used for signal storage and transmission after chip A is tested). Furthermore, the LSFR in the signal transmitter 10 and the DWR in the scan test circuit 2 can share the same register, and the LSFR in the signal receiver 11 and the DWR in the scan test circuit 2 can also share the same register. The following example illustrates this: the signal transmitter 10, signal receiver 11, and DWR all reuse the function registers in chip A, and the signal transmitter 10 and DWR share the same register. Figure 4 The structure of the test circuit 100 shown will be described in more detail below, and the test circuit 100 provided in the embodiments of this application will be described in more detail.
[0042] like Figure 4As shown, the signal transmitting terminal 10 in the test circuit includes cascaded registers SF01, SF02, SF03, and SF04. Each of these registers includes an input terminal D, an input terminal SI, an enable terminal SE, and an output terminal Q. Registers SF01, SF02, SF03, and SF04 are used to output functional signals; furthermore, they are also used to output pseudo-random binary sequences; and further still, they are used to output test signals. For registers SF01 to SF04, a multiplexer is provided between every two registers and between the first-stage register and the signal input terminal. The multiplexer selectively provides one of the functional signal, random signal, and test signal to the register and outputs it from the register's output terminal Q. The random signal is used to form a pseudo-random binary sequence, and the test signal is used for scanning tests. Figure 4 The diagram schematically illustrates the configuration of two data selectors, D1 and D2, between every two registers and between the first-stage register and the signal input terminal. Both data selectors are 2-to-1 multiplexers. Specifically, the first input terminal of each data selector D1 is connected to the initial signal input terminals s1-s4 of the signal transmitter 10 for inputting the initial signal; the second input terminals of all data selectors D1 except the first-stage data selector D1 are connected to the output terminal Q of the preceding stage register; the output terminal of each data selector D1 is connected to the first input terminal of each data selector D2; the control terminal of each data selector D1 is connected to the control signal input terminal c2 of the signal transmitter 10; the second input terminal of each data selector D2 is used to input the function signal Func; the output terminal of each data selector D2 is connected to the input terminal D of the following stage register; and the control terminal of each data selector D2 is connected to the control signal input terminal c0. In addition, the test circuit 100 also includes an XOR gate X1, which is used to perform an XOR operation on the signals output from two of the four cascaded registers and then provide the result to the input terminal D of the first-stage register. Figure 4In this embodiment, the two inputs of XOR gate X1 are connected to the outputs Q of register SF03 and register SF04, respectively, and the input of XOR gate X1 is connected to the second input of the first-stage data selector D1. It should be noted that in this embodiment, the two inputs of XOR gate X1 are connected to the outputs of the third and fourth-stage registers, respectively. In other possible implementations, the two inputs of XOR gate X1 can also be connected to the outputs of the second and third-stage registers; this embodiment does not specifically limit this. In registers SF01 to SF04, the input SI of register SF01 is connected to the test signal input ti of chip A, and the input SI of each register in registers SF02 to SF04 is connected to the output Q of its preceding register; the enable terminal SE of each register is connected to the control signal input c1 of signal transmitter 10. The outputs Q of registers SF01 to SF04 are respectively connected to the signal outputs ao1 to ao4 of signal transmitter 10. Furthermore, the outputs Q of registers SF01 and SF02 are also respectively connected to... Figure 1 The input terminals of the combinational logic 3 shown are connected; the second input terminals of the third-stage data selector D2 and the fourth-stage data selector D2 are also respectively connected to... Figure 1 The output terminals of combinational logic 3 shown are connected. Figure 4 The combinational logic 3 and the connections between each register and combinational logic 3 are not shown.
[0043] It should be noted that, in this embodiment of the application, the number of bits in the pseudo-random binary sequence to be output by the signal transmitter 10 is equal to the number of cascaded registers. For example... Figure 4 The signal transmitter 10 shown includes a four-bit register for outputting a four-bit pseudo-random binary sequence. In other possible implementations, the signal transmitter 10 can output more pseudo-random binary sequences, such as fifteen or thirty bits. The signal transmitter 10 can also have more registers, such as a fifteen-stage cascaded register or a thirty-stage cascaded register. Taking a thirty-stage cascaded register as an example, the two inputs of the XOR gate X1 can be connected to the outputs of the twenty-eighth and thirtieth stage registers, respectively. Furthermore, Figure 4 The diagram schematically illustrates that the number of registers included in the LSFR is equal to the number of DWRs included in the scan test circuit, and the LSFR and DWRs share the same registers. In other possible implementations, the scan test circuit may include a larger number of DWRs, for example, ten, in which case the ten DWRs are cascaded into a scan test chain, where four DWRs are multiplexed by the LSFRs in the built-in self-test circuit.
[0044] The circuit structure of the signal transmitter 10 in the test circuit has been described above. Furthermore, the test circuit also includes a signal receiver 11. Please refer to [link / reference needed]. Figure 4 The signal receiver 11 includes an LSFR circuit 110 and a comparator circuit 111. The LSFR circuit 110 includes cascaded registers SF05, SF06, SF07, and SF08. The structure of registers SF05 to SF08 is the same as that of registers SF01 to SF04, and will not be described further. Similar to the circuit of the signal transmitter 10, registers SF05 to SF08 are used to output pseudo-random binary sequences and also to output the function signal Func. Unlike registers SF01 to SF04, registers SF05 to SF08 do not output test signals. Furthermore, for registers SF05 to SF08, a selector D1 is provided between every two registers and between the first-stage register and the signal input terminal. The structure of selector D1 and the signals input to each input terminal of selector D1 are the same as those of selector D1 included in the signal transmitter 10; please refer to the relevant description for details. Unlike the circuit of signal transmitter 10, the circuit of signal receiver 11 does not include a data selector D2. The input terminals D of registers SF05 to SF08 are used to input the function signal Func, and the input terminals SI of registers SF05 to SF08 are coupled to the output terminals of each selector D1. The control terminals of each selector D1 are connected to the control signal input terminal c3 of signal receiver 11. Furthermore, the LSFR circuit 110 also includes an XOR gate x2. The two input terminals of XOR gate x2 are connected to the output terminals Q of registers SF07 and SF08, respectively, and the input terminal of XOR gate x2 is connected to the second input terminal of the first-stage data selector D1. The enable terminal SE of each register in registers SF05 to SF08 is connected to the control signal input terminal c4 of signal receiver 11. Therefore, registers SF05 to SF08 selectively provide the function signal Func input from input D or the random signal input from input SI to output Q based on the enable signal input from the enable terminal SE, so that the signal can be output from output terminal Q.
[0045] Continue to refer to Figure 4 In this embodiment of the application, the comparison circuit 111 of the signal receiving end 11 of chip A includes multiple registers, multiple XOR gates X3, and multiple XOR gates X4. Figure 4The diagram schematically illustrates registers SF09 to SF12, four XOR gates X3, and four XOR gates X4. Each register in SF09 to SF12 includes an input terminal D, an output terminal Q, and an enable terminal SE. The first input terminals of the multiple XOR gates X3 are connected to the signal input terminals ai1 to ai4 of the signal receiver 11, respectively; the second input terminals of the XOR gates X3 are connected to the output terminals Q of registers SF05 to SF08, respectively; and the output terminals of the multiple XOR gates X3 are connected to the second input terminals of the XOR gates X4, respectively. The first input terminals of the multiple XOR gates X4 are connected to the output terminals Q of registers SF09 to SF12, respectively; and the output terminals of the multiple XOR gates X4 are connected to the input terminals D of registers SF09 to SF012, respectively. The output terminals Q of registers SF09 to SF12 are connected to the output terminals o1 to o4 of the signal receiver 11, respectively.
[0046] like Figure 4 In the chip A shown, the output terminals Q of registers SF01 to SF04 are respectively connected to the first input terminals of multiple XOR gates X3 through the signal output terminals ao1 to ao4 of signal transmitter 10 and the signal input terminals ai1 to ai4 of signal receiver 11, thereby realizing the testing of the internal signal transmission path of chip A. In other possible implementations, the output terminals Q of registers SF01 to SF04 can also be connected to pins a1 to a4 of chip A through the signal output terminals ao1 to ao4 of signal transmitter 10, and the first input terminals of multiple XOR gates X3 can be connected to pins a4 to a7 of chip A through the signal input terminals ai1 to ai4 of signal receiver 11, as shown. Figure 5 As shown, this enables the testing of the interconnection performance between chip A and other chips. Figure 5 The remaining components and the connections between them are as follows: Figure 4 The components shown are identical; please refer to the following for details. Figure 4 The relevant descriptions in the illustrated embodiments.
[0047] Furthermore, when chip A can perform tests on both its internal signal transmission paths and the transmission paths between it and other chips, one possible implementation involves setting multiple selectors D3 and D4 within chip A. Signal output terminals ao1~ao4 are connected to the input terminals of multiple selectors D3. The first output terminal of each selector D3 is connected to the first input terminal of each selector D4, and the second output terminal of each selector D3 is connected to interfaces a1~a4. The second input terminal of each selector D4 is connected to interfaces a4~a7, and the output terminal of each selector D4 is connected to signal input terminals ai1~ai4. This implementation is not shown in the figure. When testing the internal signal transmission path of chip A, selector D3 forms a path from the input terminal to the first output terminal, selector D4 forms a path from the first input terminal to the output terminal, and the signals output by registers SF01 to SF04 are respectively provided to the first input terminal of each XOR gate X3; when testing the signal between chip A and other chips, selector D3 forms a path from the input terminal to the second output terminal, selector D4 forms a path from the second input terminal to the output terminal, and the signals output by registers SF01 to SF04 are respectively provided to interfaces a1 to a4, and the signals input by interfaces a4 to a7 are respectively provided to the first input terminal of each XOR gate X3.
[0048] It should be noted that, Figures 4-5 In the signal receiver 11 shown, the LSFR110 multiplexes the function register in chip A, which is not multiplexed by the scan test circuit. In other possible implementations, the function register multiplexed by the LSFR110 in the signal receiver 11 is also multiplexed by the DWR in the scan test circuit. In this case, the circuit of the LSFR110 is the same as that of the signal transmitter 10. Please refer to the relevant description of the circuit in the signal transmitter 10 for details.
[0049] In the embodiments of this application, Figure 3 In the chip B shown, the structure of the signal transmitter 20 can be the same as that of the signal transmitter 10 in the chip A; the signal receiver 21 in the chip B can also include an LSFR and a comparator circuit. The circuit structure of the LSFR can be the same as that of the signal transmitter 10 in the chip A, or it can be the same as the LSFR110 in the signal receiver 11 in the chip A. The comparator circuit in the signal receiver 21 in the chip B can be the same as the comparator circuit 111 in the chip A, and will not be described in detail here.
[0050] based on Figures 4-5 The structure of the test circuit in chip A, as described in this embodiment, may include multiple operating modes. The following describes... Figure 4Taking the circuit structure shown as an example, a more detailed description is given of the various operating modes of chip A, the working principle of the test circuit in each operating mode, and the signal transmission path.
[0051] Chip A can operate in the first working mode, which is the built-in self-test mode of chip A.
[0052] Based on the first operating mode of chip A, at the signal transmitting terminal 10 of chip A, in the first clock cycle, data selector D1 forms a path from the first input terminal to the output terminal based on the control signal input at control signal input terminal c2, data selector D2 forms a path from the first input terminal to the output terminal based on the control signal input at control signal input terminal c0, and registers SF01~SF04 form a path from input terminal D to output terminal Q based on the enable signal input at enable terminal SE. The initial signals input at initial signal input terminals s1~s4 are provided to each register respectively through data selector D1, data selector D2, and the input terminal D of each register. It should be noted that the initial signals input to registers SF01~SF04 can be different signals, determined based on the number of bits of the PRBS to be generated and the preset sequence code generation rules. The initial signal input to each register is 1 bit. For example, the initial signal input to registers SF01~SF04 is "1001". That is, at this time, the binary pseudo-random code sequence output by registers SF01~SF04 is "1001". In the second clock cycle, data selector D1 forms a path from the second input terminal to the output terminal based on the control signal input terminal c2, keeping the path states of the other data selectors D2 and each register unchanged. The XOR gate performs an XOR operation on the signals output by the output terminal Q of registers SF03 and SF04 and provides them to the second input terminal of the first-stage data selector D1. The signal after the XOR operation is provided to register SF01 through data selectors D1 and D2. At the same time, the signal stored in the previous state of register SF01 is provided to register SF02, the signal stored in the previous state of register SF02 is provided to register SF03, and the signal stored in the previous state of register SF03 is provided to register SF04. Taking the binary pseudo-random code sequence output in the first clock cycle as "1001" as an example, based on this binary pseudo-random code sequence, the binary pseudo-random code sequence output by registers SF01~SF04 in the second clock cycle is "1100". During the third to the Nth clock cycle, the path states of each data selector D1, each data selector D2, and each register remain unchanged. Based on the same working principle as the second clock cycle, a four-bit binary pseudo-random code sequence is output. Therefore, registers SF01 to SF04 output a four-bit binary pseudo-random code sequence in each clock cycle.
[0053] Based on the first operating mode of chip A, at the signal receiving end of chip A, in the first clock cycle, data selector D1 forms a path from the first input terminal to the output terminal based on the control signal input terminal c4, and registers SF05~SF08 form a path from the input terminal SI to the output terminal Q based on the enable signal input at the enable terminal SE. The initial signals are provided to the output terminals Q of registers SF05~SF08 through data selector D1 and the input terminals SI of registers SF05~SF08, respectively. It should be noted that the initial signals input to registers SF05~SF08 are the same as the initial signals input to registers SF01~SF04. For example, if the initial signals input to registers SF01~SF04 are "1001", then the initial signals input to registers SF05~SF08 are also "1001". In the second clock cycle, data selector D1, based on the control signal input at control signal input terminal c4, forms a path from the second input terminal to the output terminal. Following the same operating principle as the signal transmitter of chip A in the second clock cycle, registers SF05~SF08 output a four-bit binary pseudo-random code sequence. This four-bit binary pseudo-random code sequence is the same as the four-bit binary pseudo-random code sequence output by registers SF01~SF04 in the second clock cycle. In the third to Nth clock cycles, keeping the path states of each data selector D1 and each register unchanged, and employing the same operating principle as in the second clock cycle, registers SF05~SF08 output a four-bit binary pseudo-random code sequence in each clock cycle. Furthermore, in each clock cycle of the first operating mode described above, the signals output from the output terminals Q of registers SF01~SF04 and SF05~SF08 are respectively provided to XOR gates x3. After XOR operation by XOR gates x3, the signals are provided to XOR gates x4. XOR gates x4 perform a second XOR operation on the signals provided by XOR gates x3 and the signals output from the output terminals Q of registers SF09~SF12, and then provide them to the input terminals D of registers SF09~SF12, and output through the output terminals Q of registers SF09~SF12. Therefore, based on the output results of the output terminals Q of registers SF09~SF12, it can be determined whether a fault has occurred in the signal transmission path inside chip A.
[0054] As described above, the first operating mode of chip A is for testing the internal transmission path of chip A. When testing the signal transmission path between chip A and chip B, the operating state and working principle of each component in the test circuit in each clock cycle are the same as those for testing the internal transmission path of chip A. The difference is that the initial signal input to registers SF01~SF04 in the first clock cycle is the same as the initial signal input to the receiving end of chip B; and the initial signal input to registers SF05~SF08 in the next first clock cycle is the same as the initial signal input to the transmitting end of chip B.
[0055] Chip A can also operate in a second working mode, namely the scan test mode. In the second working mode, the signal transmitter 10 of chip A is active, and the signal receiver 11 is inactive. At this time, data selectors D1 and D2 are turned off at the signal transmitter 10 of chip A. First, registers SF01~SF04 form a path from input SI to output Q based on the enable signal input at enable terminal SE. The test signal T1 input at test signal input terminal ti is provided to register SF01 through input SI of register SF01. Next, register SF01 provides the test signal T1 stored in the previous clock cycle to register SF02 through input SI of register SF02, and the test signal T2 is provided to register SF01 through input SI of register SF01. Then, register SF02 provides the test signal T1, and register SF01 provides the test signal T2 to... Figure 1 The combinational logic 3 shown generates test signals T3 and T4, which are then provided to registers SF03 and SF04, respectively. Finally, test signals T3 and T4 are output through the output terminal Q of register SF04. At this time, the external test device is connected to the input terminal SI of register SF01 and the output terminal Q of register SF04 to input test signals T1 and T2 into the scan test chain formed by registers SF01 to SF04, and to output test signals T3 and T4 from the scan test chain.
[0056] Chip A can also operate in a third mode, namely the function signal transmission mode. In this mode, at the signal transmitting end 10 of chip A, data selector D2 forms a path from the second input end to the output end Q based on the control signal input at the control signal input end c0. Data selector D1 is turned off, and registers SF01~SF04 form a signal transmission path from the input end D to the output end Q based on the enable signal input at the enable end SE. At the signal receiving end 11 of chip A, data selector D1 is turned off, and registers SF05~SF08 form a signal transmission path from the input end D to the output end Q based on the enable signal input at the enable end SE. Thus, each function signal Func is input through the input end D of its respective register and output through the output end Q.
[0057] The above has been approved. Figures 1-5 The illustrated embodiment describes the test circuit in chip A provided in this application and its working principle. Figures 1-5 Based on the chip A shown in any embodiment, the signal A described in this application further includes more pins, which are redundant pins used to migrate the signal transmission path of the faulty pin to the signal transmission path formed by the redundant pins when a pin among pins a1 to a7 or the transmission path including the pin fails, thereby repairing the faulty pin or signal transmission path. The following is in conjunction with... Figure 6 This section provides a more detailed introduction to the test circuit with repair capabilities. Figure 6 In the chip A test circuit, besides the signal transmitter 10, signal receiver 11, and pins a1 to a8, it also includes a multiplexer 13 and pin a9. The four outputs of the multiplexer 13 are connected to the four inputs a1 to a4 of the signal receiver 11, and the five inputs of the multiplexer 13 are connected to pins a4 to a7 and pin a9. Assuming all signal transmission paths on chip A are in normal conduction mode, the multiplexer 13, based on control signals, connects the signal inputs a1 to a4 to a7 to their respective interfaces. If pin a5 or the signal transmission path containing pin a5 experiences an anomaly (short circuit, open circuit, or delay, etc.), the multiplexer 13 switches the connection between signal input a1 and pin a5 to a connection between signal input a1 and pin a9, thus discarding the faulty signal transmission path containing pin a5 and using the signal transmission path between signal input a1 and pin a9 for signal transmission. It should be noted that... Figure 6The number of multiplexers 13 and redundant pins shown are illustrative. In actual scenarios, there may be more or fewer multiplexers 13 and redundant pins, thereby enabling switching on more abnormal signal transmission paths in chip A. Furthermore, the signal transmitter 10 in chip A can also be connected to redundant pins on chip A via multiplexers. Therefore, when a signal transmission path between the signal transmitter 10 and each pin of chip A fails, the faulty pin can be switched to a redundant pin. By setting redundant pins, this embodiment of the application can directly switch to the signal transmission path where the redundant pin is located when a signal transmission path fails, eliminating the need for additional manual repair and improving the efficiency of repairing abnormal signal transmission paths.
[0058] exist Figures 1-6 Based on the structure of chip A shown in any example, in this embodiment of the application, chip A further includes a control circuit 14, such as... Figure 7 As shown. The control circuit 14 described in this embodiment can be an integrated controller. In specific implementations, the control circuit 14 can be various digital logic devices or circuits, including but not limited to: microcontrollers, microprocessors, or digital signal processors (DSPs). The control circuit 14 can... Figures 1-6 In any embodiment, the signal transmitter 10 and signal receiver 11 output control signals to control the signals output by the signal transmitter 10 and the signals input by the signal receiver 11. Furthermore, the control circuit 14 is also used to receive signals from the signal receiver 11 and, based on the received signals, determine whether the signal transmission path within chip A or the signal transmission path between chip A and other chips is abnormal. The following will... Figure 5 In the chip A shown, the signal transmitter 10 and the signal receiver 11 are abstracted as follows: Figure 7 The control circuit 14's control over the signal transmitter 10, signal receiver 11, and multiplexer 13 is described in detail in the form shown. Figure 7As shown, the control circuit 14 includes signal output terminals C1~C14 and signal input terminals C15~C18. Specifically, signal output terminals C1~C3 are connected to the control signal input terminals c0~c2 of the signal transmitter 10; signal output terminals C4~C8 are connected to the initial signal input terminals s1~s4 of the signal transmitter 10; signal output terminal C8 is connected to the control terminal of the multiplexer 13; signal output terminals C9~C10 are connected to the control signal input terminals c3~c4 of the signal receiver 11; signal output terminals C11~C14 are connected to the initial signal input terminals s5~s8 of the signal receiver 11; and signal input terminals C15~C18 of the control circuit 14 are connected to the output terminals o1~o4 of the signal receiver 11. The following example demonstrates testing the signal transmission path between chip A and other chips. Figure 5 and Figure 7 The control circuit 14 provides a more detailed description of its control over the signal transmitting and receiving ends.
[0059] Specifically, control circuit 14 can control the test circuit to operate in the built-in self-test mode. In the first clock cycle, control circuit 14 inputs control signal CL1 to the control signal input terminal c0. This control signal CL1 is used to indicate... Figure 5 The selector D2 shown forms a path from the first input terminal to the output terminal; the control circuit 14 inputs a control signal CL2 to the control signal input terminal c1, which is used to indicate as follows: Figure 5Registers SF01~SF04 form a path from input terminal D to output terminal Q; control circuit 14 inputs control signal CL3 to control signal input terminal c2, which instructs selector D1 in signal transmitter 10 to form a path from the first input terminal to the output terminal; control circuit 14 inputs control signal CL4 to control signal input terminal c3, which instructs registers SF05~SF08 to form a path from input terminal S1 to output terminal Q; control circuit 14 inputs control signal C to control signal input terminal c4. L5, the control signal CL5 is used to instruct the selector D1 in the signal receiving end 11 to form a path from the first input terminal to the output terminal; the control circuit 14 inputs initial signals to the initial signal input terminals s1~s4 of the signal transmitting end 10 and to the initial signal input terminals s5~s8 of the signal receiving end 11; the control circuit 14 inputs control signal CL6 to the control terminal of the multiplexer 13, the control signal CL6 is used to instruct the multiplexer 13 to form a path from pins a7~a9 to the signal input terminals a1~a4 in the signal receiving end 11. Thus, based on the control of the above control signals, the signal transmitting end 10 generates a binary pseudo-random sequence and outputs it through pins a1~a4; the signal receiving end 11 generates a binary pseudo-random sequence based on the control of the above control signals. In addition, the signal receiving end 11 is also used to compare the generated binary pseudo-random sequence with the binary pseudo-random sequence received from pins a4~a7, and generate a comparison result which is provided to the control circuit 14 through output terminals o1~o4. In the second clock cycle, control circuit 14 inputs control signal CL7 to control signal input terminal c2. This control signal CL7 instructs selector D1 in signal transmitter 10 to form a path from the second input terminal to the output terminal. Control circuit 14 also inputs control signal CL8 to control signal input terminal c4. This control signal CL8 instructs selector D1 in signal receiver 11 to form a path from the second input terminal to the output terminal, while keeping the signals input to the remaining signal input terminals unchanged. In the third to Nth clock cycles, the signals input to each signal input terminal remain unchanged. Thus, signal transmitter 10 and signal receiver 11 can continuously generate binary pseudo-random sequences. Signal transmitter 10 outputs the binary pseudo-random sequences generated in each cycle through pins a1 to a4. Signal receiver 11 compares the generated binary pseudo-random sequences with the binary pseudo-random sequences received from pins a4 to a7, generating a comparison result which is provided to control circuit 14 through output terminals o1 to o4. Furthermore, control circuit 14 detects whether any signal transmission path has failed based on the signals received from output terminals o1 to o4.For example, "0" represents normal and "1" represents abnormal. In each of the first to Nth clock cycles, if the signal received by the control circuit 14 from the output terminals o1 to o4 is "0000", it means that the signal transmission path through pins a4 to a7 is normal. If, in at least one clock cycle in the first to Nth clock cycles, one bit of the signal received by the control circuit 14 from the output terminals o1 to o4 is "1", for example, if the signal received by the control circuit 14 in a certain clock cycle is "1000", then the signal transmission path corresponding to the first bit has failed, that is, Figure 7 The signal transmission path from signal input terminal ai1 to pin a5 shown in the diagram has failed. At this time, the control circuit 14 controls the multiplexer 13 to connect signal input terminal ai1 to pin a9, and then uses the same control signal for the first to Nth clock cycles as described above to continue to detect the signal transmission path between chip A and the other chips.
[0060] Control circuit 14 can control the test circuit to operate in scan test mode. Control circuit 14 inputs control signal CL9 to control signal input terminals c0, c2, c3, and c4. This control signal CL9 is used to instruct selector D1, selector D2, and registers SF05~SF08 to be deactivated. Control circuit 14 also inputs control signal CL10 to control signal input terminal c1. This control signal CL10 is used to instruct... Figure 5 The registers SF01~SF04 shown form a path from input SI to output Q. Therefore, based on the control signals described above, registers SF01~SF04 form a scan test chain to scan and test the signal transmission path containing combinational logic.
[0061] Control circuit 14 can also control chip A to operate in the working signal transmission mode. Control circuit 14 inputs control signal CL11 to the control signal input terminal c0. This control signal CL11 is used to indicate, for example... Figure 5 The selector D2 shown forms a path from the second input terminal to the output terminal; the control circuit 14 inputs a control signal CL2 to the control signal input terminal c1, which is used to indicate as follows: Figure 5 Registers SF01~SF04 form a path from input terminal D to output terminal Q. Control circuit 14 inputs control signal CL12 to control signal input terminal c3. This control signal CL12 is used to instruct registers SF05~SF08 to form a path from input terminal D to output terminal Q. Thus, the signals of each function signal Func, which are input through input terminal D of their respective registers, are output through output terminal Q.
[0062] This application also provides an apparatus, which may include, but is not limited to, a radio frequency device, a power management device, or a terminal device. Specifically, the terminal device may include, but is not limited to, a portable computer (such as a mobile phone), a laptop computer, a wearable electronic device (such as a smartwatch), a tablet computer, an augmented reality (AR) or virtual reality (VR) device, etc. Specifically, the apparatus described in this application embodiment may include, for example... Figures 1-7 Chip A is described in any embodiment. Furthermore, the device described in this application may also include chip B, which is connected to chip A for signal exchange.
[0063] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. A chip for testing inter-chip connectivity performance, characterized in that, The chip includes a test circuit, multiple signal transmission paths, test signal input pins, and multiple interconnect pins. The chip is a first chip, and the multiple interconnect pins are used to connect to a second chip. The test circuit is used for: A first test signal is transmitted to a first interconnect pin among the multiple interconnect pins through a first signal transmission path, so that the second chip can detect the first signal transmission path based on the first test signal; A second test signal is received from the second interconnect pin among the multiple interconnect pins through the second signal transmission path among the multiple signal transmission paths. Based on the second test signal and the test signal generated by the test circuit, a first test result is generated. The first test result is used to indicate whether the second signal transmission path has failed. Receive a third test signal from the test signal input pin, and transmit the third test signal to the third interconnect pin from the plurality of interconnect pins through the third signal transmission path in the plurality of signal transmission paths. Wherein, the first test signal and the second test signal are built-in self-test BIST signals, no combinational logic is set in the first signal transmission path and the second signal transmission path, and combinational logic is set in the third signal transmission path.
2. The chip according to claim 1, characterized in that, The test circuit is also used for: The fourth test signal is transmitted through the fourth signal transmission path among the multiple signal transmission paths; Based on the fourth test signal transmitted through the fourth signal transmission path, a second test result is generated, which is used to indicate whether the fourth signal transmission path has failed. The fourth signal transmission path does not contain combinational logic, and the fourth test signal is a BIST signal.
3. The chip according to claim 1 or 2, characterized in that, The chip also includes a test signal output pin; the test circuit is further used for: The fifth test signal is received from the test signal input pin and transmitted to the test signal output pin through the fifth signal transmission path in the plurality of signal transmission paths. The fifth signal transmission path is provided with combinational logic.
4. The chip according to claim 1 or 2, characterized in that, The test circuit includes a built-in self-test circuit and a scan test circuit; The built-in self-test circuit includes a signal transmitter and a signal receiver; The signal transmitting end is used to generate the first test signal; The signal receiving end is used to generate the first test result based on the second test signal and the generated test signal; The scanning test circuit is used to receive the third test signal from the test signal input pin and transmit the third test signal to the third interconnect pin through the third signal transmission path.
5. The chip according to claim 4, characterized in that, The signal transmitting end is connected to the first interconnect pin through the first signal transmission path; The signal receiving end is connected to the second interconnect pin through the second signal transmission path.
6. The chip according to claim 5, characterized in that, The chip also includes: A multiplexer, wherein the multiplexer is disposed between the built-in self-test circuit and the plurality of interconnect pins; The multiplexer is used to switch the signal transmitter to be connected to the first interconnect pin through the first signal transmission path when the first signal transmission path fails, and to connect the signal transmitter to the fourth interconnect pin through the sixth signal transmission path among the multiple signal transmission paths.
7. The chip according to claim 6, characterized in that, The multiplexer is also used for: When the second signal transmission path fails, the signal receiving end is connected to the second interconnect pin through the second signal transmission path, and then the signal receiving end is connected to the fifth interconnect pin through the seventh signal transmission path among the multiple signal transmission paths.
8. The chip according to any one of claims 5-7, characterized in that, The signal transmitting end includes a first linear feedback shift register, and the signal receiving end includes a second linear feedback shift register. The first linear feedback shift register and the second linear feedback shift register are obtained by multiplexing the functional registers in the chip.
9. The chip according to claim 8, characterized in that, The scanning test circuit includes multiple cascaded chip package registers, which are obtained by reusing at least one of the first linear feedback shift register and the second linear feedback register.
10. The chip according to claim 6, characterized in that, The chip also includes: A control circuit is provided, which transmits a control signal to the signal transmitter to control the signal transmitter to output one of the first test signal, the third test signal, and the function signal.
11. The chip according to claim 10, characterized in that, The control circuit is also used for: A control signal is output to the signal receiving end to control the signal receiving end to generate a test signal.
12. The chip according to claim 10 or 11, characterized in that, The control circuit is also used for: The first test result is obtained from the signal receiving end, and based on the first test result, the connection relationship between the input and output ends of the multiplexer is switched.
13. An apparatus for testing inter-chip connectivity performance, characterized in that, It includes a first chip and a second chip, which are connected by interconnect pins. The first chip transmits a first test signal to the second chip through a first signal transmission path; The second chip generates a first test result based on the first test signal and the test signal generated by the second chip. The first test result is used to indicate whether a fault has occurred in the first signal transmission path. The second chip transmits a second test signal to the first chip through a second signal transmission path; The first chip generates a second test result based on the second test signal and the test signal generated by the first chip. The second test result is used to indicate whether a fault has occurred in the second signal transmission path. The first chip receives a third test signal from its test signal input pin and transmits the third test signal to the second chip through a third signal transmission path. The second chip outputs the third test signal through the test signal output pin in the second chip; Wherein, the first test signal and the second test signal are built-in self-test BIST signals, no combinational logic is set in the first signal transmission path and the second signal transmission path, and combinational logic is set in the third signal transmission path.
14. The apparatus according to claim 13, characterized in that, The first chip includes a first built-in self-test circuit and a first scan test circuit; The first built-in self-test circuit includes a first signal transmitter and a first signal receiver; The first signal transmitting end is used to generate the first test signal; The first signal receiving end is used to generate the second test result based on the second test signal and the generated test signal; The first scanning test circuit is used to receive a third test signal from the test signal input pin and transmit the third test signal to the second chip through the third signal transmission path.
15. The apparatus according to claim 13 or 14, characterized in that, The second chip includes a second built-in self-test circuit and a second scan test circuit; The second built-in self-test circuit includes a second signal transmitter and a second signal receiver; The second signal transmitter is used to generate the second test signal; The second signal receiving end is used to generate the first test result based on the first test signal and the generated test signal; The second scanning test circuit is used to receive a third test signal from the first chip and output the third test signal through the test signal output pin of the second chip.
Citation Information
Patent Citations
An integrated circuit and method for specifying an integrated circuit
CN101144847A
System and method for testing signal interconnections using built-in self test
US6505317B1
