Test device, method, electronic device and computer readable storage medium
Through the test device of clock source and XOR comparison circuit, the test results are directly outputted by synchronization and comparison between the reference chip and the chip under test, which solves the problem of complexity and high cost of generating test vectors in traditional chip testing, and achieves high efficiency. chip testing.
Patent Information
- Application Number
- CN202311841145.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-28
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2043-12-28
AI Technical Summary
Traditional chip testing methods require a large number of test vectors to be generated in advance, resulting in high computational complexity and cost, and are difficult to meet the testing needs of complex circuits.
The test device uses a clock source and an XOR comparison circuit to directly output test results through synchronization and comparison of the reference chip and the chip under test, avoiding the step of generating test vectors and simplifying the chip testing process.
It reduces the cost and time of chip testing, improves testing efficiency, and can effectively determine whether the chip meets the testing requirements.
Smart Images

Figure CN118033366B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of chip testing technology, and in particular to a testing device, method, electronic device and computer-readable storage medium. Background Art
[0002] Chip testing is an important part of ensuring chip quality. It can help manufacturers discover and solve problems in advance and reduce later costs and risks. In addition, chip testing is also an important means to ensure product safety and reliability. For users, chip testing can provide better user experience and protection.
[0003] Traditional chip testing is usually implemented on ATE (Automatic Test Equipment). When testing chips on ATE, corresponding test vectors need to be generated in advance. However, with the rapid development of integrated circuits, the circuit complexity and test scale of the chips to be tested have also increased. The more complex the circuit, the more test vectors are required. The number of test vectors that need to be generated in advance during chip testing is getting larger and larger.
[0004] Since generating test vectors requires a complex calculation process and consumes a large amount of data processing resources and development and debugging time, existing chip testing methods are costly. Summary of the invention
[0005] The present application provides a testing device, method, electronic device and computer-readable storage medium to simplify the calculation process of chip testing, improve the efficiency of chip testing and reduce the cost required for chip testing.
[0006] In the first aspect, the embodiment of the present application provides a test device, including: a clock source and an XOR comparison circuit. The clock source is connected to a reference chip and a chip to be tested respectively, the reference chip is connected to a first input terminal of the XOR comparison circuit, the output terminal of the chip to be tested is connected to a second input terminal of the XOR, the reference chip and the chip to be tested are chips of the same model, and the reference chip meets the test requirements; the clock source is used to output a test clock signal to the reference chip and the chip to be tested at the same time; the reference chip is used to output a reference output signal under the action of the test clock signal; the chip to be tested is used to output an output signal to be tested under the action of the test clock signal; the XOR comparison circuit is used to compare the reference output signal and the output signal to be tested, and output a test result, and the test result is used to characterize whether the chip to be tested meets the test requirements.
[0007] In some embodiments, the XOR comparison circuit is used to compare the reference output signal and the output signal to be tested, and output the test result, including: the XOR comparison circuit is used to compare the reference output signal and the output signal to be tested, and output the comparison level; if the comparison level is a low level, the test result meets the test requirements; if the comparison level is a high level, the test result does not meet the test requirements.
[0008] In some implementations, the comparison level is a low level, including: the comparison level is always at a low level within a preset period of time; the comparison level is a high level, including: the comparison level is at a high level within a preset period of time.
[0009] In some embodiments, the testing device also includes a first analog switch and a second analog switch, wherein two ends of the first analog switch are respectively connected to a first output end of the clock source and an input end of the reference chip, and two ends of the second analog switch are respectively connected to a second output end of the clock source and an input end of the reference chip; the first analog switch is used to control the clock source to output a test clock signal to the reference chip, and to control the clock source to stop outputting a test clock signal to the reference chip; the second analog switch is used to control the clock source to output a test clock signal to the chip to be tested, and to control the clock source to stop outputting a test clock signal to the chip to be tested.
[0010] In some embodiments, the device also includes: a first synchronization circuit and a second synchronization circuit; the clock source is also used to output a synchronization clock signal to the reference chip and the chip to be tested before simultaneously outputting a test clock signal to the reference chip and the chip to be tested; the first synchronization circuit is used to output a first locking signal when the reference chip outputs a first characteristic signal in response to the input synchronization clock signal, and the first locking signal is used to control the first analog switch to close; the second synchronization circuit is used to output a second locking signal when the chip to be tested outputs a second characteristic signal in response to the input synchronization clock signal, and the second locking signal is used to control the second analog switch to close.
[0011] In some implementations, before the clock source outputs a synchronous clock signal to the reference chip and the chip under test, the first synchronization circuit and the second synchronization circuit are in a reset state.
[0012] In some embodiments, the first synchronization circuit is also used to output a first error signal when the reference chip fails to output a first characteristic signal within a preset time period in response to an input synchronization clock signal, and the first error signal is used to indicate that there is a fault in the reference chip; the second synchronization circuit is also used to output a second error signal when the chip under test fails to output a second characteristic signal within a preset time period in response to an input synchronization clock signal, and the second error signal is used to indicate that there is a fault in the chip under test.
[0013] In the second aspect, an embodiment of the present application provides a testing method, which is applied to a testing device, and the testing device includes: a clock source, an XOR comparison circuit; the clock source is respectively connected to a reference chip and a chip to be tested, the reference chip is connected to a first input terminal of the XOR comparison circuit, the output terminal of the chip to be tested is connected to a second input terminal of the XOR, the reference chip and the chip to be tested are chips of the same model, and the reference chip meets the testing requirements; the method includes: the clock source simultaneously outputs a test clock signal to the reference chip and the chip to be tested; the reference chip outputs a reference output signal under the action of the test clock signal; the chip to be tested outputs a to-be-tested output signal under the action of the test clock signal; the XOR comparison circuit compares the reference output signal and the to-be-tested output signal, and outputs a test result, and the test result represents whether the chip to be tested meets the testing requirements.
[0014] In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, wherein the processor is used to execute a computer program stored in the memory to implement the method in the second aspect as described above.
[0015] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and is characterized in that when the computer program is executed by a processor, it implements the method in the second aspect above.
[0016] In the technical solution provided in the embodiment of the present application, the test device may include a clock source and an XOR comparison circuit. The clock source is connected to the reference chip and the chip to be tested respectively, the reference chip is connected to the first input end of the XOR comparison circuit, the output end of the chip to be tested is connected to the second input end of the XOR, the reference chip and the chip to be tested are chips of the same model, and the reference chip meets the test requirements. The clock source is used to output a test clock signal to the reference chip and the chip to be tested at the same time. The reference chip is used to output a reference output signal under the action of the test clock signal; the chip to be tested is used to output an output signal to be tested under the action of the test clock signal. The XOR comparison circuit is used to compare the reference output signal and the output signal to be tested, and output a test result, which is used to characterize whether the chip to be tested meets the test requirements. The technical solution provided in the embodiment of the present application does not need to generate a test vector, can simplify the calculation process of chip testing, improve the efficiency of chip testing, and reduce the cost required for chip testing. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0018] Figure 1It is a structural schematic diagram of a testing device provided in an embodiment of the present application.
[0019] Figure 2 This is another structural schematic diagram of a testing device provided in an embodiment of the present application.
[0020] Figure 3 This is another structural schematic diagram of a testing device provided in an embodiment of the present application.
[0021] Figure 4 It is a flow chart of a testing method provided in an embodiment of the present application.
[0022] Figure 5 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0024] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0025] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0026] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0027] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0028] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0029] The chip is the carrier of IC (integrated circuit). Integrated circuits can generally be divided into analog integrated circuits and digital integrated circuits. Among them, for digital integrated circuits, digital integrated circuits can be divided into combinational logic circuits and sequential logic circuits according to the different characteristics of the digital integrated circuit's logical functions.
[0030] For combinational logic circuits, since they do not contain storage elements and cannot memorize information, their output signals at any time are only determined by the input signals at the corresponding time. For sequential logic circuits, since they contain storage elements for memorizing information, their output signals at any time are jointly determined by the original state of the circuit and the output signals at the corresponding time.
[0031] With the rapid development of the integrated circuit field, users and chip manufacturers have further increased their requirements for chip quality and reliability. Chip testing can determine whether chip quality, performance, reliability and other parameters meet design requirements, ensuring that they meet the expected indicators and stability in actual use. In traditional technical solutions, the ATE test platform can provide a chip test environment, compare the chip output with the test results, and thus determine the quality of the chip, thereby achieving rapid testing and screening of the chip.
[0032] For sequential logic circuit chips and combinational logic circuit chips, in traditional technical solutions, the corresponding test vectors need to be generated in advance when testing sequential logic circuit chips and combinational logic circuit chips on ATE. The more complex the circuit, the more test vectors are required. The number of test vectors that need to be generated in advance during the testing of sequential logic circuit chips and combinational logic circuit chips is relatively large. Generating test vectors consumes a lot of data processing resources and development and debugging time, and the testing cost of sequential logic circuit chips and combinational logic circuit chips is relatively high.
[0033] In view of this, the present application provides a testing device that can reduce the cost required for testing sequential logic circuit chips and combinational logic circuit chips and improve chip testing efficiency.
[0034] In the process of testing sequential logic circuit chips and combinational logic circuit chips (hereinafter collectively referred to as chips to be tested), the embodiments of the present application introduce a reference chip. The reference chip is a good chip or a gold sample chip that meets the test requirements. After the same test clock signal is input to the chip to be tested and the reference chip, by comparing the reference output signal of the reference chip with the test output signal of the chip to be tested, it can be determined whether the chip to be tested is a good chip (i.e., whether it meets the test requirements).
[0035] For sequential logic circuit chips, since the sequential logic circuit chips contain storage elements for memorizing information, their output signals at any time are jointly determined by the original state of the circuit and the output signal at the corresponding time. Before testing the sequential logic circuit chip to be tested, the sequential logic circuit chip to be tested and the reference chip can be synchronized in timing. The sequential logic circuit chip to be tested and the reference chip are in the same output state before the test, so that the only variable in the test process is the input signal (test clock signal), which is convenient for comparing the outputs of the sequential logic circuit chip to be tested and the reference chip (reference output signal and output signal to be tested) to obtain the test results.
[0036] For a combinational logic circuit chip, since the combinational logic circuit chip does not contain storage elements and cannot memorize information, its output signal at any time is only determined by the input signal at the corresponding time. Therefore, it is not necessary to synchronize the output states of the combinational logic circuit chip to be tested and the reference chip before testing.
[0037] The technical solution provided by the embodiments of the present application is described below with reference to the accompanying drawings.
[0038] In an embodiment of the present application, before testing the sequential logic circuit chip, a synchronous clock signal can be output to the reference chip and the chip to be tested through a clock source, so that the sequential logic circuit chip to be tested and the reference chip are in the same output state before testing.
[0039] For sequential logic circuit chips, Figure 1 A structural schematic diagram of a testing device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0040] Reference Figure 1 The test device 10 may include a clock source 110 , a first analog switch 120 , a second analog switch 130 , a first synchronization circuit 140 , and a second synchronization circuit 150 .
[0041] The clock source 110 is respectively connected to the first analog switch 120 and the second analog switch 130. The first analog switch 120 is connected to the first synchronization circuit 140, and the second analog switch 130 is connected to the second synchronization circuit 150. The reference chip and the chip to be tested are chips of the same model, and the reference chip is a chip that meets the test requirements.
[0042] The clock source 110 outputs a synchronous clock signal to the reference chip and the chip under test.
[0043] In an embodiment of the present application, before testing the sequential logic circuit chip, a synchronous clock signal can be output to the reference chip and the chip to be tested through the clock source 110, so that the sequential logic circuit chip to be tested and the reference chip are in the same output state before the test, thereby ensuring the accuracy of subsequent tests.
[0044] The clock source 110 may be composed of a positive feedback oscillation circuit composed of a quartz crystal oscillator and a NAND gate, and is used to output a synchronous clock signal.
[0045] The clock source 110 may be controlled by a program to change the clock signal output by the clock source 110. For example, the frequency of the synchronous clock signal output by the clock source 110 to the reference chip and the chip under test may be 1 kHz or other frequencies, which are not limited in this application.
[0046] The first synchronization circuit 140 is used to output a first locking signal when the reference chip outputs a first characteristic signal in response to an input synchronization clock signal. The first locking signal is used to control the first analog switch 120 to be closed.
[0047] In the embodiment of the present application, the first synchronization circuit 140 may be a level-triggered or edge-triggered trigger. Before the test, the first synchronization circuit 140 may be in a reset state through program control. The first synchronization circuit 140 is used to monitor the output signal of the reference chip.
[0048] The reference chip outputs a reference output signal in response to the received synchronization clock signal. When the first synchronization circuit 140 detects the first characteristic signal appearing in the reference output signal output by the reference chip, it outputs a first locking signal to control the first analog switch 120 to close.
[0049] The first characteristic signal may be a singular signal (a jump occurs in the reference output signal) that appears in the reference output signal output by the reference chip.
[0050] When the first analog switch 120 is closed, the reference chip will maintain the current state, that is, maintain the current output state.
[0051] The second synchronization circuit 150 is used to output a second locking signal when the chip under test outputs a second characteristic signal in response to the input synchronization clock signal. The second locking signal is used to control the second analog switch 130 to close.
[0052] In the embodiment of the present application, the second synchronization circuit 150 may be the same circuit as the first synchronization circuit 140. Before the test, the first synchronization circuit 140 may be in a reset state through program control. The second synchronization circuit 150 is used to monitor the output signal of the chip under test.
[0053] The reference chip outputs the output signal to be tested in response to the received synchronous clock signal. When the second synchronization circuit 150 detects that the output signal to be tested output by the chip to be tested has a second characteristic signal, it outputs a second locking signal to control the second analog switch 130 to be closed.
[0054] The second characteristic signal may be a singular signal (a jump occurs in the reference output signal) that appears in the reference output signal output by the reference chip. The first characteristic signal and the second characteristic signal may be the same signal.
[0055] When the second analog switch 130 is closed, the chip under test will maintain the current state unchanged, that is, maintain the current output state unchanged.
[0056] When the first analog switch 120 and the second analog switch 130 are both in the closed state, the chip under test and the reference chip are in the same output state, that is, a synchronous state.
[0057] In the embodiment of the present application, when the second characteristic signal does not appear in the chip under test within the preset time period, that is, the second synchronization circuit 150 does not detect the second characteristic signal, the second synchronization circuit 150 outputs a second error signal. The second error signal is used to indicate that there is a fault in the chip under test. That is, the chip under test does not meet the test requirements and is a functional defective product, and the test is interrupted.
[0058] When the reference chip does not have the first characteristic signal within the preset time period, that is, the first synchronization circuit 140 does not detect the first characteristic signal, the first synchronization circuit 140 outputs a first error signal, which is used to indicate that the reference chip has a fault and the test is interrupted.
[0059] Whether the reference chip or the chip under test fails or is defective, the test will not continue.
[0060] In the embodiment of the present application, the preset time period may be the time required for the clock source 110 to output multiple synchronous clock signals to the reference chip and the chip under test. The multiple synchronous clock signals may default to 1000 or other numbers, which is not limited in the present application.
[0061] In the embodiment of the present application, when the chip under test and the reference chip are in the same output state, a test clock signal is input to the chip under test through a clock source to detect whether the chip under test meets the test requirements.
[0062] Figure 2 Another structural schematic diagram of a testing device provided in an embodiment of the present application is shown. For the sake of convenience of explanation, only the parts related to the embodiment of the present application are shown.
[0063] Reference Figure 2 , the test device 20 may include a clock source 110 and an XOR comparison circuit 120 .
[0064] The clock source 210 is connected to the reference chip and the chip under test respectively, the reference chip is connected to the first input terminal of the XOR comparison circuit 220, and the output terminal of the chip under test is connected to the second input terminal of the XOR. The reference chip and the chip under test are chips of the same model, and the reference chip meets the test requirements.
[0065] The clock source 210 is used to output a test clock signal to the reference chip and the chip under test simultaneously.
[0066] In the embodiment of the present application, the clock source 210 can be controlled by a program to change the clock signal output by the clock source 210. The test clock signal and the synchronization clock signal output by the clock source 210 can be different signals or the same signal.
[0067] Exemplarily, the test clock signal output by the clock source 210 may be greater than the synchronization clock signal. For example, the frequency of the test clock signal may be 1 kHz, and the frequency of the synchronization clock signal may be 1000 kHz.
[0068] By outputting a relatively large clock signal to the reference chip and the chip to be tested through the program clock source 210, the efficiency of testing the chip to be tested can be improved and the test time can be shortened.
[0069] After the clock source 210 outputs the test clock signal to the reference chip, the reference chip outputs a reference output signal.
[0070] After the clock source 210 outputs the test clock signal to the chip under test, the chip under test outputs the output signal under test.
[0071] The XOR comparison circuit 220 is used to compare the reference output signal and the output signal to be tested, and output a test result, which is used to indicate whether the chip to be tested meets the test requirements.
[0072] Exemplarily, when the XOR comparison circuit 220 compares the reference output signal and the output signal to be tested within the preset time period, and the comparison level outputted is always low, it means that when the chip to be tested and the reference chip input the same clock signal, the output signals are the same, that is, the performance of the chip to be tested is the same as or close to the performance of the reference chip, and the test result satisfies the test requirements. The preset time period can be the time required for the clock source 210 to output multiple test clock signals, such as 1000 test clock signals, or can be other set time, which is not limited in this application.
[0073] For example, when the preset time period is the time required for 1000 test clock signals, after the clock source 210 simultaneously inputs 1000 test clock signals to the reference chip and the chip under test, the output of the XOR comparison circuit 220 continues to be 0, that is, continues to be a low level, then the test result meets the test requirements.
[0074] Exemplarily, when within a preset time period, the XOR comparison circuit 220 compares the reference output signal and the output signal to be tested, and a high level exists in the output comparison level, it means that when the chip to be tested and the reference chip input the same clock signal, the output signals are different, that is, the performance of the chip to be tested and the performance of the reference chip are significantly different, and the test result is that the test requirements are not met.
[0075] For example, when the preset time period is the time required for 1000 test clock signals, when the clock source 210 simultaneously inputs the 800th test clock signal to the reference chip and the chip under test, the output of the XOR comparison circuit 220 is 1, that is, the comparison level is at a high level within the preset time period, and the test result is that the test requirements are not met.
[0076] In the technical solution provided by the embodiment of the present application, the test device may include a clock source and an XOR comparison circuit. The clock source is connected to the reference chip and the chip to be tested respectively, the reference chip is connected to the first input end of the XOR comparison circuit, the output end of the chip to be tested is connected to the second input end of the XOR, the reference chip and the chip to be tested are chips of the same model, and the reference chip meets the test requirements. The clock source is used to output a test clock signal to the reference chip and the chip to be tested at the same time. The reference chip is used to output a reference output signal under the action of the test clock signal; the chip to be tested is used to output the output signal to be tested under the action of the test clock signal. The XOR comparison circuit is used to compare the reference output signal and the output signal to be tested, and output a test result, and the test result is used to characterize whether the chip to be tested meets the test requirements. When the output level of the XOR comparison circuit is always low within a preset time period, the chip to be tested meets the test requirements. When the output level of the XOR comparison circuit appears high, the chip to be tested does not meet the test requirements. The technical solution provided by the embodiment of the present application does not need to generate a test vector, can simplify the calculation process of chip testing, improve the efficiency of chip testing, and reduce the cost required for chip testing.
[0077] In some implementations, the test device may further include a first analog switch and a second analog switch.
[0078] Figure 3 Another structural schematic diagram of a testing device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0079] Reference Figure 3 The test device 30 may include a clock source 310 , an XOR comparison circuit 320 , a first analog switch 330 , and a second analog switch 340 .
[0080] Two ends of the first analog switch 330 are respectively connected to the first output end of the clock source 310 and the input end of the reference chip, and two ends of the second analog switch 340 are respectively connected to the second output end of the clock source 310 and the input end of the reference chip.
[0081] The clock source 310 is used to output a test clock signal to the reference chip and the chip under test simultaneously.
[0082] The XOR comparison circuit 320 is used to compare the reference output signal and the output signal to be tested, and output a test result, which is used to indicate whether the chip to be tested meets the test requirements.
[0083] The test result output by the XOR comparison circuit 320 can refer to the description of the XOR comparison circuit 220 mentioned above, and the present application will not elaborate on it here.
[0084] The first analog switch 330 is used to control the clock source 310 to output the test clock signal to the reference chip, and to control the clock source 310 to stop outputting the test clock signal to the reference chip.
[0085] In the embodiment of the present application, when the first analog switch 330 and the second analog switch 340 can be opened or closed at the same time, when the first analog switch 330 and the second analog switch 340 are in the opened state at the same time, the clock source 310 outputs the test clock signal to the reference chip and the chip under test at the same time. When the first analog switch 330 and the second analog switch 340 are in the closed state at the same time, the clock source 310 stops outputting the test clock signal to the reference chip and the chip under test.
[0086] In the technical solution provided in the embodiment of the present application, the opening and closing of the first analog switch 330 and the second analog switch 340 can be realized through program control.
[0087] It should be noted that the above program can be run in a processor to perform the above control operation. Optionally, the processor can be a CPU of a computer device, etc.
[0088] It should be understood that, under the premise of no logical conflict, the above-mentioned various application embodiments can be implemented in combination with each other to meet actual application requirements. The specific embodiments or implementation plans obtained after these combinations still fall within the protection scope of this application.
[0089] Corresponding to the test device in the above embodiment, the embodiment of the present application provides a test method, which is applied to the test device, and the test device includes: a clock source and an XOR comparison circuit. The clock source is connected to a reference chip and a chip to be tested respectively, the reference chip is connected to a first input end of the XOR comparison circuit, the output end of the chip to be tested is connected to a second input end of the XOR, the reference chip and the chip to be tested are chips of the same model, and the reference chip meets the test requirements.
[0090] Figure 4 A flow chart of a testing method provided in an embodiment of the present application is shown. For ease of explanation, only the part related to the embodiment of the present application is shown.
[0091] Step S401: The clock source outputs a test clock signal to the reference chip and the chip under test simultaneously.
[0092] Step S402: the reference chip outputs a reference output signal under the action of the test clock signal.
[0093] Step S403: the chip under test outputs an output signal under test under the action of the test clock signal.
[0094] Step S404: the XOR comparison circuit compares the reference output signal and the output signal to be tested, and outputs a test result, which indicates whether the chip to be tested meets the test requirements.
[0095] In some implementations, step 404 includes: an XOR comparison circuit compares a reference output signal and an output signal to be tested, and outputs a comparison level; if the comparison level is a low level, the test result satisfies the test requirements; if the comparison level is a high level, the test result does not meet the test requirements.
[0096] In some implementations, the comparison level is a low level, including: the comparison level is always at a low level within a preset period of time; the comparison level is a high level, including: the comparison level is at a high level within a preset period of time.
[0097] In some embodiments, the testing method also includes a first analog switch and a second analog switch, wherein two ends of the first analog switch are respectively connected to a first output end of a clock source and an input end of a reference chip, and two ends of the second analog switch are respectively connected to a second output end of the clock source and an input end of the reference chip; the first analog switch controls the clock source to output a test clock signal to the reference chip, and controls the clock source to stop outputting a test clock signal to the reference chip; the second analog switch controls the clock source to output a test clock signal to the chip to be tested, and controls the clock source to stop outputting a test clock signal to the chip to be tested.
[0098] In some embodiments, the method also includes: a first synchronization circuit and a second synchronization circuit; the clock source also outputs a synchronization clock signal to the reference chip and the chip under test before simultaneously outputting a test clock signal to the reference chip and the chip under test; the first synchronization circuit outputs a first locking signal when the reference chip responds to the input synchronization clock signal and outputs a first characteristic signal, and the first locking signal controls the first analog switch to close; the second synchronization circuit outputs a second locking signal when the chip under test responds to the input synchronization clock signal and outputs a second characteristic signal, and the second locking signal controls the second analog switch to close.
[0099] In some implementations, before the clock source outputs a synchronous clock signal to the reference chip and the chip under test, the first synchronization circuit and the second synchronization circuit are in a reset state.
[0100] In some embodiments, the first synchronization circuit also outputs a first error signal when the reference chip responds to the input synchronization clock signal and fails to output the first characteristic signal within a preset time period, and the first error signal indicates that there is a fault in the reference chip; the second synchronization circuit also outputs a second error signal when the chip under test responds to the input synchronization clock signal and fails to output the second characteristic signal within a preset time period, and the second error signal indicates that there is a fault in the chip under test.
[0101] It should be noted that the interactions, execution processes, etc. between the above methods are based on the same concept as the device embodiments of the present application. Their specific functions and technical effects can be found in the device embodiments section and will not be repeated here.
[0102] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0103] Based on the same inventive concept, an embodiment of the present application also provides an electronic device.
[0104] Figure 5 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Figure 5As shown, the electronic device 5 of this embodiment includes: at least one processor 510 ( Figure 5 Only one is shown in the figure), memory 520, and communication module 540, memory 520 stores a computer program 530 that may be run on processor 510. When processor 510 executes computer program 530, steps in the above test method embodiment are implemented, such as Figure 4 Alternatively, when the processor 510 executes the computer program 530, the functions of each module / unit in the above-mentioned device embodiments are implemented, for example Figure 1 The functions of modules 110 to 150 shown in FIG. Figure 2 The functions of modules 210 to 220 shown in FIG. Figure 3 The functions of the modules 310 to 340 are shown, and the communication module 540 can be a separate communication unit for communicating with an external server or terminal device.
[0105] The electronic device 5 may include, but is not limited to: a processor 510 and a memory 520. Those skilled in the art will appreciate that Figure 5 It is only an example of the electronic device 5 and does not constitute a limitation of the electronic device 5. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device 5 may also include an input sending device, a network access device, a bus, etc.
[0106] The processor 510 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0107] In some embodiments, the memory 520 may be an internal storage unit of the electronic device 5, such as a hard disk or memory of the electronic device 5. The memory 520 may also be an external storage device of the electronic device 5, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 5. The memory 520 may also include both an internal storage unit of the electronic device 5 and an external storage device. The memory 520 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as program codes of a computer program 530. The memory 520 may also be used to temporarily store data that has been sent or is to be sent.
[0108] In addition, those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.
[0109] An embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on an electronic device, the electronic device executes the steps in the above-mentioned method embodiments.
[0110] An embodiment of the present application provides a chip, which includes a processor and a memory. The memory stores a computer program, and when the computer program is executed by the processor, the steps in the above-mentioned method embodiments are implemented.
[0111] An embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the steps in the above-mentioned method embodiments.
[0112] It should be understood that the processor mentioned in the embodiments of the present application may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0113] It should also be understood that the memory mentioned in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus random access memory (Direct Rambus RAM, DR RAM).
[0114] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0115] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0116] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0117] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the system embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0118] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0119] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0120] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device capable of carrying the computer program code to a large-screen device, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0121] Finally, it should be noted that the above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A testing device, characterized in that: include: A clock source, an XOR comparison circuit, a first analog switch, a second analog switch, a first synchronization circuit and a second synchronization circuit; Two ends of the first analog switch are respectively connected to a first output end of the clock source and an input end of a reference chip, two ends of the second analog switch are respectively connected to a second output end of the clock source and an input end of a chip to be tested, an output end of the reference chip is connected to a first input end of the XOR comparison circuit, an output end of the chip to be tested is connected to a second input end of the XOR comparison circuit, the reference chip and the chip to be tested are chips of the same model, and the reference chip meets the test requirements; The clock source is used to output a synchronous clock signal to the reference chip and the chip under test; The first synchronization circuit is used to output a first locking signal when the reference chip outputs a first characteristic signal in response to the input synchronization clock signal, and the first locking signal is used to control the first analog switch to be closed; The second synchronization circuit is used to output a second locking signal when the chip under test outputs a second characteristic signal in response to the input synchronization clock signal, and the second locking signal is used to control the second analog switch to close; The clock source is also used to output a test clock signal to the reference chip and the chip under test simultaneously; The reference chip is used to output a reference output signal under the action of the test clock signal; The chip to be tested is used to output an output signal to be tested under the action of the test clock signal; The XOR comparison circuit is used to compare the reference output signal and the output signal to be tested, and output a test result, wherein the test result is used to indicate whether the chip to be tested meets the test requirements.
2. The testing device according to claim 1, characterized in that: The XOR comparison circuit is used to compare the reference output signal and the output signal to be tested, and output a test result, including: The XOR comparison circuit is used to compare the reference output signal and the output signal to be measured, and output a comparison level; If the comparison level is always at a low level within a preset period of time, the test result satisfies the test requirement; If the comparison level is at a high level within a preset period of time, the test result is that the test requirement is not met.
3. The testing device according to claim 1, characterized in that: The first analog switch is used to control the clock source to output the test clock signal to the reference chip, and to control the clock source to stop outputting the test clock signal to the reference chip; The second analog switch is used to control the clock source to output the test clock signal to the chip under test, and to control the clock source to stop outputting the test clock signal to the chip under test.
4. The testing device according to claim 1, characterized in that: Before the clock source outputs a synchronous clock signal to the reference chip and the chip under test, the first synchronization circuit and the second synchronization circuit are in a reset state.
5. The testing device according to any one of claims 1 or 2, characterized in that: The first synchronization circuit is further used to output a first error signal when the reference chip does not output the first characteristic signal within a preset period of time in response to the input synchronization clock signal, wherein the first error signal is used to indicate that the reference chip has a fault; The second synchronization circuit is also used to output a second error signal when the chip under test does not output a second characteristic signal within a preset period of time in response to the input synchronization clock signal, and the second error signal is used to indicate that the chip under test is faulty.
6. A testing method, characterized in that: Applied to a test device, the test device comprises: a clock source, an XOR comparison circuit, a first analog switch, a second analog switch, a first synchronization circuit and a second synchronization circuit; Two ends of the first analog switch are respectively connected to a first output end of the clock source and an input end of a reference chip, two ends of the second analog switch are respectively connected to a second output end of the clock source and an input end of a chip to be tested, an output end of the reference chip is connected to a first input end of the XOR comparison circuit, an output end of the chip to be tested is connected to a second input end of the XOR comparison circuit, the reference chip and the chip to be tested are chips of the same model, and the reference chip meets the test requirements; the method comprises: The clock source outputs a synchronous clock signal to the reference chip and the chip under test; The first synchronization circuit outputs a first locking signal when the reference chip outputs a first characteristic signal in response to the input synchronization clock signal, and the first locking signal is used to control the first analog switch to be closed; The second synchronization circuit outputs a second locking signal when the chip under test outputs a second characteristic signal in response to the input synchronization clock signal, and the second locking signal is used to control the second analog switch to close; The clock source outputs a test clock signal to the reference chip and the chip under test simultaneously; The reference chip outputs a reference output signal under the action of the test clock signal; The chip under test outputs an output signal under test under the action of the test clock signal; The XOR comparison circuit compares the reference output signal and the output signal to be tested, and outputs a test result, wherein the test result indicates whether the chip to be tested meets the test requirements.
7. The testing method according to claim 6, characterized in that: The method further comprises: The first analog switch controls the clock source to output the test clock signal to the reference chip, and controls the clock source to stop outputting the test clock signal to the reference chip; The second analog switch controls the clock source to output the test clock signal to the chip under test, and controls the clock source to stop outputting the test clock signal to the chip under test.
8. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the processor is configured to execute a computer program stored in the memory to implement the method as claimed in any one of claims 6 or 7.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method as claimed in any one of claims 6 or 7 is implemented.
Citation Information
Patent Citations
Error rate testing method
JP1988207232A
