Portable chip testing method and device based on FPGA
Through the portable chip testing method based on FPGA, the EMIF interface of the main control DSP unit and FPGA unit is used for test code transmission and fault detection, which solves the problems of high chip testing cost and low detection coverage in the existing technology, and achieves low-cost , Simple chip fault detection.
Patent Information
- Application Number
- CN202210042897.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-14
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-01-14
AI Technical Summary
The existing FPGA-based chip testing methods have the problems of high cost, large equipment, and complex operations. In particular, the coverage rate of detecting chip delay faults is not high, and there is a lack of portable testing methods.
Using a portable chip testing method based on FPGA, the FPGA unit is initialized and configured through the EMIF interface of the main control DSP unit, the test code is generated and data is transmitted through FIFO to achieve slow scanning and real-speed testing, and sliding window comparison is used to detect faults. .
It realizes chip testing with simple and compact structure, easy operation and low cost. It can detect fixed faults and delay faults, is suitable for small batch and after-sales testing, and reduces testing costs.
Smart Images

Figure CN114624564B
Abstract
Description
Technical Field
[0001] The present invention mainly relates to the technical field of chip testing, and in particular to a portable chip testing method and device based on FPGA. Background Art
[0002] Testing is a crucial link in the chip design and manufacturing process. Screening out failed or semi-failed chips as accurately as possible can effectively reduce subsequent production and maintenance costs.
[0003] At present, scan test (SCAN) is the most commonly used testability design technology. It uses scan triggers to replace some or all of the original ordinary D flip-flops to construct a scan chain, which can obtain the internal state of the chip and output it (see Figure 1 ).
[0004] The scan test process generally has three stages: the scan shift stage (Shift in), the capture stage (Capture), and the scan output stage (Shift out). The scan test is divided into tests based on fixed-type faults (stuck-at tests or slow scan tests) and tests based on delay faults (real-speed tests); the difference between the two is mainly in the capture stage. The clock used by the slow scan test in the capture stage is a slow scan shift clock of tens of MHz, and only one beat is used as capture, while the real-speed test uses a high-speed clock of hundreds of MHz or even GHz that the chip actually works in the capture stage, and requires two high-speed clock pulses as launch and capture (see Figure 2 ).
[0005] In current practical applications, the chip testing process mainly relies on automatic test equipment (ATE). However, ATE equipment is generally very expensive, bulky, and requires precise settings and professional personnel to operate, resulting in high testing costs.
[0006] FPGA chips have programmable functions for data acquisition and high-speed transmission, so they can be used to implement most of the functions of ATE test machines and ensure a certain degree of accuracy.
[0007] At present, most of the research on FPGA-based chip testing is aimed at chips with smaller transistors and fewer pins, or functional testing of chips with the help of FPGA. There is no research on FPGA portable testing methods for defects and faults that occur during chip production. Some foreign studies have used FPGA-based slow scan testing to detect chip fixed faults, but the fault coverage and yield rate are not high, and real-speed testing has not been achieved to diagnose chip delay faults. Summary of the invention
[0008] The technical problem to be solved by the present invention is: in view of the technical problems existing in the prior art, the present invention provides a portable chip testing method and device based on FPGA with simple and compact structure, easy operation, low cost and wide application range.
[0009] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0010] A portable chip testing method based on FPGA, the steps of which include:
[0011] Initialize the control register write value in the FPGA unit through the EMIF interface of the main control DSP unit and configure it to slow scan mode or real speed test mode;
[0012] The test code is written into the corresponding FIFO in the FPGA unit according to the pin through the EMIF interface of the main control DSP unit;
[0013] The test controller selects the FIFO in real time, so that all pin test codes are output to the DSP chip under test synchronously;
[0014] The test response is read back from the output port of the DSP chip under test for analysis and processing.
[0015] As a further improvement of the method of the present invention: the process of the slow scan test includes:
[0016] Step S10: Generate a .wgl test code file by the tool chain software, use Python transcoding to process it, and save it as a .bin file according to the pin;
[0017] Step S20: Start the test. The host computer transmits the test code .bin file to the main control DSP unit through the network port TCP, stores it in the DDR3 connected to it, and initializes the control register write value in the FPGA unit through the EMIF interface of the main control DSP unit, and configures it to slow scanning mode;
[0018] Step S30: writing the test code into the corresponding FIFO in the FPGA unit according to the pin through the EMIF interface of the main control DSP unit;
[0019] Step S40: Decode the test code and use FIFO to perform parallel-to-serial conversion on the data;
[0020] Step S50: the test controller monitors the empty state of the selected FIFO outlet in real time. Once the test codes of all selected input pins are ready, the read enable of the FIFO is pulled high at the same time, so that all pin test codes are synchronously output to the DSP chip to be tested;
[0021] Step S60: while starting to input the test code, the write enable of the response recovery FIFO is pulled high, and the test response is read back from the output port of the chip clock under test, and after serial-to-parallel conversion, it is retrieved back to the DDR by the main control DSP unit through the EMIF interface;
[0022] Step S70: Compare the test response with the standard result by using a sliding window. If there is any inconsistency, it is considered that the chip has a fixed fault. If they are consistent, it is considered that the chip is normal.
[0023] As a further improvement of the method of the present invention: the process of the actual speed test includes:
[0024] Step S100: Generate a .wgl test code file by the tool chain software, use Python transcoding to process it, and save it as a .bin file according to the pin;
[0025] Step S200: Start the test. The host computer transmits the test code .bin file to the main control DSP unit through the network port TCP, stores it in the DDR3 connected to it, and initializes the control register write value in the FPGA through the EMIF interface of the main control DSP unit, and configures it to the real-speed test mode;
[0026] Step S300: writing the test code into the corresponding FIFO in the FPGA unit according to the pin through the EMIF interface of the main control DSP unit;
[0027] Step S400: Decode the test code and use FIFO to perform parallel-to-serial conversion on the data;
[0028] Step S500: the test controller monitors the empty state of the selected FIFO outlet in real time. Once the test codes of all selected input pins are ready, the read enable of these FIFOs is pulled high at the same time, so that all pin test codes are synchronously output to the DSP unit under test;
[0029] Step S600: while starting to input the test code, the write enable of the response recovery FIFO is pulled high, and the test response is read back from the output port of the chip clock under test, and after serial-to-parallel conversion, it is retrieved back to the DDR by the main control DSP unit through the EMIF interface;
[0030] Step S700: Compare the test response with the standard result using a sliding window. If there is any inconsistency, it is considered that the chip has a delay fault and cannot work normally at the current operating frequency. If they are consistent, the chip is considered normal.
[0031] The present invention further provides a portable chip testing device based on FPGA, comprising:
[0032] FPGA unit, connecting all scan chain input and output ports, scan control ports and real-speed test related ports of the DSP chip to be tested to the FPGA unit;
[0033] The main control DSP unit, as the controller of the whole scan test process, is connected to the FPGA unit through the EMIF related interface and is used to place the DSP chip to be tested;
[0034] DDR unit, connected to the main control DSP unit.
[0035] As a further improvement of the device of the present invention: the FPGA unit and the main control DSP unit are integrated on the main board card of the test platform, and both communicate with the computer through their respective JTAG interfaces.
[0036] As a further improvement of the device of the present invention: the DDR unit is integrated on the mainboard card of the test platform.
[0037] As a further improvement of the device of the present invention: a daughter board is connected to the main board of the test platform, and the daughter board has a chip socket with a plastic-encapsulated ball implant for placing the DSP chip to be tested.
[0038] As a further improvement of the device of the present invention: the test platform mainboard card has an SD card slot, a PCIE interface and a network port as the source of the test code.
[0039] As a further improvement of the device of the present invention: the FPGA unit comprises:
[0040] The interface module is used to enable the main control DSP unit to read and write the data path and configuration registers inside the FPGA unit through the EMIF interface;
[0041] The data path uses asynchronous FIFO to store and access test data and realize high-speed transmission of test data and parallel-to-serial conversion of test data. Each FIFO corresponds to a test port of the DSP chip to be tested.
[0042] The test controller has configuration registers that can be modified by the main control DSP unit, including an enable register for controlling the input port required for the current test, an enable register for collecting the test response path, and a control register for selecting the current test mode; the enable register of the input and output pins controls the selection of the pins required for the current test, and the control register of the test mode is responsible for configuring the current test as a slow scan mode or a real-speed test mode. The signal characteristics of some pins in the two modes are different and need to be distinguished; the test controller is used to monitor the empty and full status of the FIFO corresponding to the port required for the current test in real time, and when the test codes of all ports are in place, it is ensured that they are transmitted to the corresponding pins of the DSP chip to be tested at the same time according to the test clock;
[0043] The clock management module is responsible for the clocks needed during the test process.
[0044] As a further improvement of the device of the present invention: compression of the test data is achieved through a run-length encoding unit to achieve a high compression rate and ensure signal integrity.
[0045] Compared with the prior art, the advantages of the present invention are:
[0046] The portable chip testing method and device based on FPGA of the present invention has a simple and compact structure, is easy to operate, has low cost, and has a wide range of applications. It can realize slow scanning test of the chip to detect fixed faults and real-speed test to detect delay faults. With the technical solution of the present invention, the whole device is small in size, easy to carry, low in cost, and guarantees test accuracy. It can be well applied to small batch chip testing, after-sales testing, and maintenance testing, greatly reducing the cost of chip testing. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 This is a schematic diagram of the principle of traditional scanning test.
[0048] Figure 2 It is a schematic diagram of the principle of the traditional scanning test process.
[0049] Figure 3 It is a schematic diagram of the topological structure principle of the device of the present invention in a specific application example.
[0050] Figure 4 It is a schematic diagram of the topological structure principle of the FPGA unit in a specific application example of the device of the present invention.
[0051] Figure 5 It is a waveform diagram of three clocks of the clock management module in a specific application example of the device of the present invention.
[0052] Figure 6 It is a schematic diagram of the process of the method of the present invention in a specific application example.
[0053] Figure 7 A schematic flow chart of a slow scanning mode of the method of the present invention in a specific application example.
[0054] Figure 8 It is a flow chart of the real-speed test mode of the method of the present invention in a specific application example. DETAILED DESCRIPTION
[0055] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0056] See also Figure 6 As shown, a portable chip testing method based on FPGA of the present invention comprises the following steps:
[0057] Initialize the control register write value in the FPGA unit through the EMIF interface of the main control DSP unit and configure it to slow scan mode or real speed test mode;
[0058] The test code is written into the corresponding FIFO in the FPGA unit according to the pin through the EMIF interface of the main control DSP unit;
[0059] The test controller selects the FIFO in real time, so that all pin test codes are output to the DSP chip under test synchronously;
[0060] The test response is read back from the output port of the DSP chip under test for analysis and processing.
[0061] See also Figure 7 As shown, in a specific application example, the specific process of the slow scanning test includes:
[0062] Step S10: Generate a .wgl test code file by the tool chain software, use Python transcoding to process it, and save it as a .bin file according to the pin.
[0063] Step S20: Start the test. The host computer transmits the test code .bin file to the master DSP through the network port TCP, stores it in the connected DDR3, and initializes the control register write value in the FPGA through the EMIF interface of the master DSP, configuring it to slow scanning mode.
[0064] Step S30: writing the test code into the corresponding FIFO in the FPGA according to the pin through the EMIF interface of the master control DSP.
[0065] Step S40: Decode the test code and use FIFO to perform parallel-to-serial conversion on the data (32 bits to 1 bit).
[0066] Step S50: The test controller monitors the empty state of the selected FIFO outlet in real time. Once the test codes of all selected input pins are ready (ie, the FIFO is not empty), the read enable of these FIFOs is pulled high at the same time, so that all pin test codes are synchronously output to the DSP under test.
[0067] Step S60: When the test code is input, the write enable of the response recovery FIFO is pulled high, and the test response is read back from the output port of the chip clock under test. After serial-to-parallel conversion (1 bit to 32 bits), it is retrieved into the DDR by the main control DSP through the EMIF interface.
[0068] Step S70: Compare the test response with the standard result by using a sliding window. If there is any inconsistency, it is considered that the chip has a fixed fault. If they are consistent, it is considered that the chip is normal.
[0069] See also Figure 8 As shown, in a specific application example, the specific process of the actual speed test includes:
[0070] Step S100: Generate a .wgl test code file by the tool chain software, use Python transcoding to process it, and save it as a .bin file according to the pin.
[0071] Step S200: Start the test. The host computer transmits the test code .bin file to the master DSP through the network port TCP, stores it in the DDR3 connected to it, and initializes the control register write value in the FPGA through the EMIF interface of the master DSP, and configures it to the real-speed test mode.
[0072] Step S300: writing the test code into the corresponding FIFO in the FPGA according to the pin through the EMIF interface of the master control DSP.
[0073] Step S400: Decode the test code and use FIFO to perform parallel-to-serial conversion on the data (32 bits to 1 bit).
[0074] Step S500: The test controller monitors the empty state of the selected FIFO outlet in real time. Once the test codes of all selected input pins are ready (ie, the FIFO is not empty), the read enable of these FIFOs is pulled high at the same time, so that all pin test codes are synchronously output to the DSP under test.
[0075] Step S600: When the test code is input, the write enable of the response recovery FIFO is pulled high, and the test response is read back from the output port of the chip clock under test, and after serial-to-parallel conversion (1 bit to 32 bits), it is retrieved into the DDR by the main control DSP through the EMIF interface.
[0076] Step S700: Compare the test response with the standard result using a sliding window. If there is any inconsistency, it is considered that the chip has a delay fault and cannot work normally at the current operating frequency. If they are consistent, the chip is considered normal.
[0077] like Figure 3 As shown, the portable chip testing device based on FPGA of the present invention comprises:
[0078] The FPGA unit connects all the scan chain input and output ports, scan control ports and real-speed test related ports of the DSP chip to be tested to the FPGA unit according to the Design for Testability (DFT) of the chip to be tested.
[0079] The main control DSP unit, as the controller of the whole scan test process, is connected to the FPGA unit through the EMIF related interface and is used to place the DSP chip to be tested;
[0080] DDR unit, connected to the main control DSP unit.
[0081] In a specific application example, the FPGA unit and the main control DSP unit are integrated on the test platform mainboard, and both communicate with the computer through their respective JTAG interfaces. For example, in this example, a development board integrating a Xilinx Kintex-7 series FPGA and a main control DSP is used as the test platform mainboard.
[0082] Furthermore, the DDR unit is also integrated on the test platform mainboard card, such as a DDR unit with a total size of 2 GB connected to the main control DSP in this example.
[0083] Furthermore, in a specific application example, a daughter card is connected to the main board of the test platform, and the daughter card has a chip socket with a plastic-encapsulated ball implant for placing the DSP chip to be tested.
[0084] Furthermore, in a preferred embodiment, the test platform mainboard card also has an SD card slot, a PCIE interface, and a network port, which can all be used as sources of test codes, see Figure 3 .
[0085] See also Figure 3 and Figure 4 ,In a specific application example, the Verilog hardware design in the FPGA unit includes:
[0086] The interface module is used to enable the master DSP unit to read and write the data path and configuration registers inside the FPGA unit through the EMIF interface, and use the 6-bit DSPM[23:18] in the address line of the master DSP unit for branch selection, as shown in Table 1:
[0087] Table 1
[0088] DSPM_EMIFA[23:18] 6'b000000 6'b000001 6'b000010 6'b000011 6'b000100 …… Corresponding to the chip port under test EMIFD00 EMIFD01 EMIFD02 EMIFD03 EMIFD04 ……
[0089] The data path uses asynchronous FIFO to access test data and realize high-speed transmission of test data and parallel-to-serial conversion of test data. Each FIFO corresponds to a test port of the DSP chip to be tested. The main control DSP unit communicates with the FPGA unit through the EMIF interface. The main clock is 100MHz, there are 32-bit data lines, and the maximum data transmission rate is about 400MB / s.
[0090] The test controller has configuration registers that can be modified by the main control DSP unit, including an enable register for controlling the input port required for the current test, an enable register for collecting the test response path, and a control register for selecting the current test mode. The enable registers of the input and output pins control the selection of the pins required for the current test. The control register of the test mode is responsible for configuring the current test as a slow scan mode or a real-speed test mode. The signal characteristics of some pins in the two modes are different and need to be distinguished. The test controller is used to monitor the empty and full status of the FIFO corresponding to the port required for the current test in real time. When the test codes of all ports are in place, it is ensured that they are transmitted to the corresponding pins of the DSP chip to be tested at the same time according to the test clock.
[0091] The clock management module is responsible for the clocks needed during the test process. The 25MHz clock is used as the read clock of the FIFO, and a test clock DFT_TEST_CLK with a duty cycle of 25% is also generated and input to the chip under test as the test clock. Furthermore, to ensure the synchronization of the clock and data, the signal of the DFT_TEST_CLK pin is generated by the test code and the test clock. In order to correctly sample the output, the present invention generates a sampling clock PROBE CLK according to the output signal characteristics. The waveforms of the three clocks are shown in Figure 5 Furthermore, the present invention also provides a master clock for the DSP to be tested. When the operating frequency is 1 GHz and the internal PLL multiplication frequency is 40, the master clock of the DSP chip to be tested is 25 MHz.
[0092] Furthermore, the present invention uses a run-length encoding unit (RLE) to achieve compression of test data, so as to achieve a high compression rate and ensure signal integrity, and has a low circuit cost, so as to reduce the amount of data transmission and alleviate the transmission pressure between the main control DSP unit and the FPGA unit. Run-length encoding is a "variable length-fixed length" encoding method. The 3-bit run-length encoding table is shown in Table 2 below. It can be seen that run-length encoding has a better compression effect on test codes with a large number of 0s.
[0093] Table 2. 3-bit run-length encoding table
[0094]
[0095]
[0096] Furthermore, the present invention sets a read and write count for the FIFO and provides an error correction mechanism to prevent errors in test code transmission.
[0097] The above are only preferred embodiments of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should be regarded as the protection scope of the present invention.
Claims
1. A portable chip testing method based on FPGA, characterized in that the steps include: Initialize the control register write value in the FPGA unit through the EMIF interface of the main control DSP unit and configure it to slow scan mode or real speed test mode; The test code is written into the corresponding FIFO in the FPGA unit according to the pin through the EMIF interface of the main control DSP unit; The test controller selects the FIFO in real time, so that all pin test codes are output to the DSP chip under test synchronously; Read back the test response from the output port of the DSP chip under test and perform analysis and processing; The process of the slow scanning mode includes: Step S10: Generate a .wgl test code file by the tool chain software, use Python transcoding to process it, and save it as a .bin file according to the pin; Step S20: Start the test. The host computer transmits the test code .bin file to the main control DSP unit through the network port TCP, stores it in the DDR3 connected to it, and initializes the control register write value in the FPGA unit through the EMIF interface of the main control DSP unit, and configures it to slow scanning mode; Step S30: writing the test code into the corresponding FIFO in the FPGA unit according to the pin through the EMIF interface of the main control DSP unit; Step S40: Decode the test code and use FIFO to perform parallel-to-serial conversion on the data; Step S50: the test controller monitors the empty state of the selected FIFO outlet in real time. Once the test codes of all selected input pins are ready, the read enable of the FIFO is pulled high at the same time, so that all pin test codes are synchronously output to the DSP chip to be tested; Step S60: while starting to input the test code, the write enable of the response recovery FIFO is pulled high, and the test response is read back from the output port of the chip clock under test, and after serial-to-parallel conversion, it is retrieved back to the DDR by the main control DSP unit through the EMIF interface; Step S70: Compare the test response with the standard result by using a sliding window. If there is any inconsistency, it is considered that the chip has a fixed fault. If they are consistent, it is considered that the chip is normal.
2. The portable chip testing method based on FPGA according to claim 1, characterized in that: The process of the real speed test mode includes: Step S100: Generate a .wgl test code file by the tool chain software, use Python transcoding to process it, and save it as a .bin file according to the pin; Step S200: Start the test. The host computer transmits the test code .bin file to the main control DSP unit through the network port TCP, stores it in the DDR3 connected to it, and initializes the control register write value in the FPGA through the EMIF interface of the main control DSP unit, and configures it to the real-speed test mode; Step S300: writing the test code into the corresponding FIFO in the FPGA unit according to the pin through the EMIF interface of the main control DSP unit; Step S400: Decode the test code and use FIFO to perform parallel-to-serial conversion on the data; Step S500: the test controller monitors the empty state of the selected FIFO outlet in real time. Once the test codes of all selected input pins are ready, the read enable of these FIFOs is pulled high at the same time, so that all pin test codes are synchronously output to the DSP unit under test; Step S600: while starting to input the test code, the write enable of the response recovery FIFO is pulled high, and the test response is read back from the output port of the chip clock under test, and after serial-to-parallel conversion, it is retrieved back to the DDR by the main control DSP unit through the EMIF interface; Step S700: Compare the test response with the standard result using a sliding window. If there is any inconsistency, it is considered that the chip has a delay fault and cannot work normally at the current operating frequency. If they are consistent, the chip is considered normal.
3. A device for testing a portable chip based on the FPGA according to any one of claims 1 to 2, characterized in that: include: FPGA unit, connecting all scan chain input and output ports, scan control ports and real-speed test related ports of the DSP chip to be tested to the FPGA unit; The main control DSP unit, as the controller of the whole scan test process, is connected to the FPGA unit through the EMIF related interface and is used to place the DSP chip to be tested; DDR unit, connected to the main control DSP unit.
4. The portable chip testing device based on FPGA according to claim 3, characterized in that: The FPGA unit and the main control DSP unit are integrated on the test platform mainboard card, and both communicate with the computer through their respective JTAG interfaces.
5. The portable chip testing device based on FPGA according to claim 4, characterized in that: The DDR unit is integrated on the test platform mainboard card.
6. The portable chip testing device based on FPGA according to claim 4 or 5, characterized in that: A daughter board is connected to the main board of the test platform. The daughter board has a chip socket with a plastic-encapsulated ball implant for placing the DSP chip to be tested.
7. The portable chip testing device based on FPGA according to claim 6, characterized in that: The test platform mainboard card has an SD card slot, a PCIE interface and a network port as the source of the test code.
8. The portable chip testing device based on FPGA according to any one of claims 3 to 5, characterized in that: The FPGA unit comprises: The interface module is used to enable the main control DSP unit to read and write the data path and configuration registers inside the FPGA unit through the EMIF interface; The data path uses asynchronous FIFO to store and access test data and realize high-speed transmission of test data and parallel-to-serial conversion of test data. Each FIFO corresponds to a test port of the DSP chip to be tested. The test controller has configuration registers that can be modified by the main control DSP unit, including an enable register for controlling the input port required for the current test, an enable register for collecting the test response path, and a control register for selecting the current test mode; the enable register of the input and output pins controls the selection of the pins required for the current test, and the control register of the test mode is responsible for configuring the current test as a slow scan mode or a real-speed test mode. The signal characteristics of some pins in the two modes are different and need to be distinguished; the test controller is used to monitor the empty and full status of the FIFO corresponding to the port required for the current test in real time, and when the test codes of all ports are in place, it is ensured that they are transmitted to the corresponding pins of the DSP chip to be tested at the same time according to the test clock; The clock management module is responsible for the clocks needed during the test process.
9. The portable chip testing device based on FPGA according to claim 8, characterized in that: The test data is compressed by a run-length encoding unit to achieve a high compression rate and ensure signal integrity.
Citation Information
Patent Citations
Simple boundary scan test system and method based on single-chip microcomputer
CN104133171A
DSP and FPGA space radiation effect test device and test method
CN112115006A
Method and Apparatus of ATE IC Scan Test Using FPGA-Based System
US20110078525A1
