A test unit based on FPGA and its test system and test method
By integrating the error storage control unit in the FPGA test unit, the problem that traditional chip testing cannot monitor and analyze error information is solved, the cause of chip errors is accurately identified and analyzed, and the accuracy and efficiency of chip quality detection are improved.
Patent Information
- Application Number
- CN201910972435.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-10-16
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2039-10-16
AI Technical Summary
Traditional chip testing methods lack status monitoring during the testing process of the chip under test, and cannot discover and analyze the underlying causes of chip error messages.
Design a test unit based on FPGA, including address generation unit, data generation unit, address encoding control unit, sending and receiving control unit and error storage control unit. Through these units, the error information of the chip under test is stored and analyzed, and a Bit Map is generated. to identify the cause of the error.
It realizes effective storage and analysis of error information of the chip under test, and improves the accuracy and production efficiency of chip quality detection.
Smart Images

Figure CN112666443B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of chip testing, and in particular to a test unit based on FPGA and a test system and a test method thereof. Background Art
[0002] The chip is the heart or computer of various electronic devices or equipment. Its importance is self-evident. The quality of the chip directly determines the quality of the electronic device or equipment, so the quality of the chip is of paramount importance. In order to ensure the quality of the chip, testing the chip quality before the chip leaves the factory becomes a necessary process.
[0003] However, traditional chip testing mainly involves repeatedly performing basic read and write operations on the chip under test. This method can accelerate the operation of the chip under test, but the traditional testing method lacks status monitoring of the chip under test during the testing process, and cannot detect error information that occurs during the testing of the chip under test, let alone further analyze the internal reasons for the error information of the chip under test. Summary of the invention
[0004] In order to overcome the deficiencies of the prior art, one of the purposes of the present invention is to provide a test unit based on FPGA, which can store error information of the chip under test during the test, and can analyze the internal cause of the error of the chip under test;
[0005] A second object of the present invention is to provide a testing system;
[0006] A third object of the present invention is to provide a testing method.
[0007] One of the purposes of the present invention is achieved by the following technical solution:
[0008] A test unit based on FPGA comprises an address generating unit, a data generating unit, an address coding control unit, a sending and receiving control unit and an error storage control unit for controlling error information, wherein the data generating unit and the address coding control unit are respectively connected to the address generating unit signal, the address coding control unit and the data generating unit are respectively connected to the sending and receiving control unit signal, and the sending and receiving control unit is connected to the error storage control unit signal.
[0009] Preferably, the address generating unit comprises a 24-bitX address generator and a 24-bitY address generator, and the 24-bitX address generator is signal-connected to the 24-bitY address generator.
[0010] Preferably, the 24-bitX address generator includes four 24-bitX address counters, the Y address generator includes four 24-bitY address counters, and the 24-bitX address counter is linked to the 24-bitY address counter.
[0011] Preferably, the data generating unit comprises a 2-bit data generator for logic operation information address, and the 2-bit data generator is signal-connected to the address generating unit.
[0012] Preferably, the 2-bit data generator includes two logic operation modules for performing logic operations on the X address and the Y address.
[0013] Preferably, the logic operation includes an AND operation, an OR operation and an XOR operation.
[0014] The second object of the present invention is achieved by adopting the following technical solution:
[0015] A test system includes the above-mentioned test unit, and also includes a vector memory, an address code memory, a timing controller, a driver for driving test information, a receiver for receiving test feedback information of a chip to be tested, and an error memory for storing error information, wherein the vector memory, the address code memory, the timing controller, and the receiver are electrically connected to the FPGA respectively, the timing controller is connected to the driver signal, the driver is connected to the receiver signal through the chip to be tested, the address code memory is connected to the address code control unit signal, and the error memory is connected to the error storage control unit signal.
[0016] Preferably, the vector memory includes an address information register and a data information register provided with a plurality of operation instructions, and the vector memory generates test vectors of a plurality of test algorithms by calling the operation instructions, setting the address information register and the data information register, and stores the test vectors.
[0017] Preferably, the operation instructions include addition instructions, subtraction instructions and shift instructions.
[0018] The third object of the present invention is achieved by adopting the following technical solutions:
[0019] A testing method comprising:
[0020] Step A, testing the chip to be tested by the above-mentioned test system;
[0021] Step B, storing error information of the chip to be tested in the error memory of the test system;
[0022] Step C: Draw a Bit Map according to the stored error information, and analyze the cause of the error of the chip to be tested through the drawn Bit Map.
[0023] Compared with the prior art, the present invention has the following beneficial effects:
[0024] The test unit of the present invention is provided with an error storage control unit, which can control the error memory in the test system so that the error memory stores the error information of the chip to be tested, and a Bit Map can be drawn according to the stored error information, and the error cause analysis of the chip to be tested can be performed through the drawn Bit Map. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 is a functional structure diagram of the test unit of the present invention;
[0026] Figure 2 A functional system block diagram of a preferred embodiment of the test unit of the present invention;
[0027] Figure 3 It is a functional structure block diagram of the data generating unit of the present invention;
[0028] Figure 4 is a functional system block diagram of the test system of the present invention;
[0029] Figure 5 It is a working principle diagram of the address coding memory of the present invention;
[0030] Figure 6 Flow chart of the testing method of the present invention. DETAILED DESCRIPTION
[0031] In order to more clearly understand the specific technical solutions, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0032] In the description of the present invention, it should be noted that the terms "upper", "lower", "left", "right", "lateral", "longitudinal", "horizontal", "inner", "outer", etc. indicate the orientation or position relationship based on the orientation or position relationship shown in the drawings, or the orientation or position relationship in which the product of the invention is usually placed when in use. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.
[0033] like Figure 1-2As shown, the present invention discloses a test unit based on FPGA, which includes an address generating unit, a data generating unit, an address coding control unit, a sending and receiving control unit and an error storage control unit for controlling error information, wherein the data generating unit and the address coding control unit are respectively connected to the address generating unit signal, the address coding control unit and the data generating unit are respectively connected to the sending and receiving control unit signal, and the sending and receiving control unit is connected to the error storage control unit signal.
[0034] In the above implementation, the address generation unit can generate a corresponding data address, which corresponds to a logical address on the chip to be tested (mainly referring to the memory). The data generation unit can generate relevant data to be sent to the chip to be tested, as well as expected data output by the chip to be tested, wherein the relevant data is test information such as parameter information, level information, address information, etc. related to the test of the chip to be tested; the expected data is the data that should be output if the chip to be tested is normal when the chip to be tested is tested, and the difference between the expected data and the actual data output during the test of the chip to be tested can be used to judge the quality of the chip to be tested. The address encoding control unit can control the encoding memory to realize the encoding of the actual physical address of the chip to be tested to the logical address, and facilitate the access to the actual physical address. The sending and receiving control unit can transmit the address information generated by the address encoding control unit and the data information (relevant data and expected data) generated by the data generation unit to the relevant test system to test the chip to be tested. The error storage control unit can control the error memory in the test system, control whether the error memory stores the error information or distortion information of the chip to be tested, how to store the error information, and what error information to store, and can analyze the error information of the chip to be tested.
[0035] like Figure 2 As shown, in a preferred embodiment, the difference is that the address generating unit includes a 24-bitX address generator and a 24-bitY address generator, and the 24-bitX address generator is signal-connected to the 24-bitY address generator. The 24-bitX address generator includes four 24-bitX address counters, and the Y address generator includes four 24-bitY address counters, and the 24-bitX address counters are linked to the 24-bitY address counters.
[0036] In the above implementation, bit is a bit position, and the address capacity of a 24-bit address is relatively large. Generally, the more addresses there are, the larger the corresponding data is, and the address generation unit includes 4 24-bitX address counters and 4 24-bitY address counters, so that chips with relatively large data capacity can be tested. The 24-bitX address counter and the 24-bitY address counter can perform operations such as addition, subtraction, shifting, addition by 1, and subtraction by 1 on the address, thereby realizing various transformations of the address. It can be understood that the address generation unit can also include a 24-bitZ address generator to realize the test of a chip with a three-dimensional space address.
[0037] like Figure 3 As shown, in another preferred embodiment, the difference is that the data generating unit includes a 2-bit data generator for logical operation information address, and the 2-bit data generator is signal-connected to the address generating unit. The 2-bit data generator includes two logical operation modules for performing logical operation on X address and Y address. The logical operation includes AND operation, OR operation and XOR operation.
[0038] In the above implementation, one logic operation module takes X and Y address information as input and outputs the related logic detection of X and Y address information, for example, when the X address is the same as the Y address, data 1 is generated; the other logic operation module takes X and Y address information as input and outputs the result of their logic operation, wherein the logic operation includes AND operation, OR operation, XOR operation, NAND operation, 1 generation operation and 0 generation operation, etc. The output data information (related data and expected data) can be selected from the data output by the two logic operation modules. The data generation methods of the two logic operation modules can conveniently implement detection algorithms such as checkerboard, diagonal line and moving diagonal line.
[0039] The data generating unit also includes a 24-bit data generator. The 24-bit data generator is mainly used when the number of data pins is less than 24. The 24-bit data generator can be used to directly generate a "walk 1 test algorithm" between the data pins, so that each data pin can be tested to see if they are in good contact and whether there is a short circuit between the data pins. In addition, when some chips to be tested are memories, the memories need to be written into different test background graphic formats. The 24-bit data generator can conveniently generate various test background graphic information.
[0040] like Figure 4As shown, the present invention also discloses a test system, which includes the above-mentioned FPGA, and also includes a vector memory, an address coding memory, a timing controller, a driver for driving test information, a receiver for receiving test feedback information of a chip to be tested, and an error memory for storing error information, wherein the vector memory, the address coding memory, the timing controller, and the receiver are electrically connected to the FPGA respectively, the timing controller is connected to the driver signal, the driver is connected to the receiver signal through the chip to be tested, the address coding memory is connected to the address coding control unit signal, and the error memory is connected to the error storage control unit signal.
[0041] The vector memory includes an address information register and a data information register provided with a plurality of operation instructions. The vector memory generates test vectors of a plurality of test algorithms by calling the operation instructions and setting the address information register and the data information register, and stores the test vectors. When executing a test task, the test vectors stored in the vector memory are read into the FPGA by controlling the FPGA, and the test task is executed according to the corresponding operation instructions.
[0042] The operation instructions include addition instructions, subtraction instructions and shift instructions.
[0043] In the above embodiment, the timing controller is mainly used to control the timing during the test. The error memory is used to store error information generated during the test. Through the error storage control unit in the test unit, it can be controlled whether to store various error information including X address, Y address, error data, etc., and failure analysis can be performed on the chip under test.
[0044] In actual memory testing, the various algorithms used to test the memory are all for the actual physical address of the memory. Through various algorithms, the failure or distortion of adjacent cells or cells with logical relationships under specific conditions can be effectively monitored. Traditional simplified memory testing assumes that the actual physical unit address of the memory corresponds one-to-one with the logical unit address when used. But in fact, this is not the case. The arrangement of the actual physical address of most memories is not the same as the arrangement of the logical address when used. Instead, there is a certain mathematical relationship, which is sometimes very complex.
[0045] In order to achieve the actual test purpose of various memory test algorithms, the address coding memory can complete the conversion relationship between the actual physical address and the logical address, and complete the address coding.
[0046] The address coding memory is responsible for storing the address coding algorithm. The algorithm representing the correspondence between the logical address and the actual physical address is stored in the address coding memory in advance, so that when testing the memory, the actual physical address can be converted into a logical address in real time, thereby facilitating accurate testing of the memory.
[0047] It can be understood that when address encoding is not required, the function of address encoding can be bypassed and the address generated by the address generating unit can be directly used for testing.
[0048] like Figure 5 As shown, the following is an example of address encoding during the test memory process:
[0049] (1) Get the actual physical address of the memory that needs to be actually operated: X=0, Y=0;
[0050] (2) The actual physical address "X=0, Y=0" is encoded by the address encoding memory to obtain a logical address: X=3, Y=2;
[0051] (3) By operating the logical address X=3, Y=2, the purpose of operating the actual physical address X=0, Y=0 is achieved.
[0052] like Figure 6 As shown, the present invention also discloses a testing method, comprising:
[0053] Step A, testing the chip to be tested by the above-mentioned test system;
[0054] Step B, storing error information of the chip to be tested in the error memory of the test system;
[0055] Step C: Draw a Bit Map according to the stored error information, and analyze the cause of the error of the chip to be tested through the drawn Bit Map.
[0056] In this test method, Bit Map is an error bit map (bit information map) drawn for various test algorithms based on error information. The drawn Bit Map can be used to analyze which actual physical address unit of the chip under test has an error and what the error is, and analyze the internal cause of the error in the chip under test.
[0057] In summary, the test unit of the present invention is provided with an error storage control unit, which can control the error memory in the test system so that the error memory stores the error information of the chip to be tested, and can draw a Bit Map according to the stored error information. The cause of the error of the chip to be tested is analyzed through the drawn Bit Map, thereby improving the quality of the produced chips.
[0058] The basic principles, main features and advantages of the present invention are shown and described above. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The above embodiments and the description in the specification are only to illustrate the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention to be protected. The scope of protection of the present invention is defined by the attached claims and their equivalents.
Claims
1. A test unit based on FPGA, characterized in that: It includes an address generating unit, a data generating unit, an address coding control unit, a sending and receiving control unit and an error storage control unit for controlling error information. The data generating unit and the address coding control unit are respectively connected to the address generating unit by signal, the address coding control unit and the data generating unit are respectively connected to the sending and receiving control unit by signal, the sending and receiving control unit is connected to the error storage control unit by signal, the address generating unit includes a 24-bitX address generator and a 24-bitY address generator, the 24-bitX address generator is connected to the 24-bitY address generator by signal, the 24-bitX address generator includes four 24-bitX address counters, the Y address generator includes four 24-bitY address counters, the 24-bitX address counter is linked to the 24-bitY address counter, the data generating unit includes a 2-bit data generator for logic operation information address, the 2-bit data generator is connected to the address generating unit by signal, and the 2-bit data generator includes two logic operation modules for performing logic operation on X address and Y address.
2. The test unit according to claim 1, characterized in that: The logic operation includes an AND operation, an OR operation and an XOR operation.
3. A testing system, characterized in that: It includes the test unit described in any one of claims 1 to 2, and also includes a vector memory, an address coding memory, a timing controller, a driver for driving test information, a receiver for receiving test feedback information of a chip under test, and an error memory for storing error information, wherein the vector memory, the address coding memory, the timing controller, and the receiver are electrically connected to the FPGA respectively, the timing controller is connected to the driver signal, the driver is connected to the receiver signal through the chip under test, the address coding memory is connected to the address coding control unit signal, and the error memory is connected to the error storage control unit signal.
4. The test system according to claim 3, characterized in that: The vector memory includes an address information register and a data information register provided with a plurality of operation instructions. The vector memory generates test vectors of a plurality of test algorithms by calling the operation instructions, setting the address information register and the data information register, and stores the test vectors.
5. The test system according to claim 4, characterized in that: The operation instructions include addition instructions, subtraction instructions and shift instructions.
6. A testing method using the testing system of claim 3, characterized in that: include: Step A, testing the chip to be tested by the above-mentioned test system; Step B, storing error information of the chip to be tested in the error memory of the test system; Step C: Draw a Bit Map according to the stored error information, and analyze the cause of the error of the chip to be tested through the drawn Bit Map.
