Chip DFT (Discrete Fourier Transform) test method and system based on low-cost FPGA (Field Programmable Gate Array)
By using low-cost FPGA boards for chip DFT testing, the problems of expensive and complex traditional testing equipment are solved, enabling efficient debugging and rapid production transition.
Patent Information
- Application Number
- CN202411141612.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2024-11-29
AI Technical Summary
Traditional chip DFT testing requires expensive equipment, complex environment setup, and high personnel costs, which leads to extended chip production turnaround time.
Low-cost FPGA boards are used to replace the equipment. Through the collaborative work of the host computer and the FPGA board, DFT testing is realized, including reset, load, run, unload and judgment modes. Signal acquisition and analysis are performed using the local memory of the FPGA board.
It reduced testing costs, simplified the debugging environment, improved debugging efficiency, reduced reliance on personnel, and shortened the time required for chip production transition from research and development to mass production.
Smart Images

Figure CN119044741A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of integrated circuit testing, and in particular to a chip DFT testing method and system based on low-cost FPGA. Background Art
[0002] Chip DFT refers to the Design For Test code embedded in the chip, and DFT testing refers to the chip testing methods and means of traversing the DFT code through peripheral devices.
[0003] Traditional chip DFT testing requires testers to use dedicated equipment on the production line for debugging. This type of debugging has the following shortcomings during the production transition stage:
[0004] (1) The equipment is expensive, the testing tasks are heavy, and the debugging time allocated to a single chip is often short;
[0005] (2) The construction environment is complex, requiring machine test boards and professional testers to repeatedly debug;
[0006] (3) Poor adjustability, and the iteration time for each change of DFT test template file and machine verification is long;
[0007] (IV) The personnel cost is high, and a stable test template and test process can only be formed by relying mainly on testing personnel and cooperating with R&D.
[0008] Due to the above reasons, chip production conversion is usually delayed. Summary of the invention
[0009] Based on the above problems, the purpose of the present invention is to transfer the debugging of test template files from production line equipment to low-cost FPGA boards in the R&D office, thereby shortening the conversion time between chip development and mass production, and utilizing boards integrated with low-cost FPGAs such as Xilinx ARTIX chips as peripheral equipment for DFT testing to replace expensive equipment during the conversion stage.
[0010] The technical solution adopted by the present invention to achieve its invention object is a chip DFT testing method based on low-cost FPGA, comprising the following steps:
[0011] S1. Turn on or switch the test script ATP file;
[0012] S2, enter the reset mode, that is, the host computer resets the internal state machine register of the FPGA board;
[0013] S3, entering the loading mode, that is, the host computer parses the machine test script ATP file, the FPGA board receives the ATP file entry, that is, Pattern, sent by the host computer through RS232 or IP network, and expands the Pattern in the local memory of the FPGA board;
[0014] The above pattern will indicate the PIN range, PIN input and output direction, and PIN output value covered by this test. The configuration of this group of PINs in the pattern specifies the working sequence of this group of PINs during this test. For example, a pattern can be an I2C read and write operation, a memory read and write operation, etc. The specific content of the pattern depends on the test purpose and test content.
[0015] S4, entering the running mode, that is, performing DFT test on the chip device under test according to the Pattern through the FPGA board, and collecting the output signal of the chip device under test;
[0016] S5, enter the unloading mode, that is, the collection items recorded in the local memory of the FPGA board are transmitted to the host computer one by one through RS232 or IP network, and the host computer receives the collection items and writes them into the output file, and the output file is used to analyze the debugging results or determine the test results;
[0017] S6, determine whether the same Pattern is repeatedly run, if so, go to step S4, otherwise go to step S7;
[0018] S7, determine whether to proceed to the next Pattern, if yes, go to step S2, otherwise go to step S8;
[0019] S8, shut down and end the DFT test.
[0020] Furthermore, in step S3, the local memory includes a PIN configuration area and an output configuration area, the input and output directions of the PIN pin are stored in the PIN configuration area, and the output entries loaded by the host computer are stored in the output configuration area.
[0021] Furthermore, the specific steps of step S4 are:
[0022] S41, configuration stage: the FPGA board first refreshes the content of the PIN configuration area to make the configuration effective, that is, configures the input and output of the IO interface, and the IO interface is connected to the chip device under test;
[0023] S42, operation stage: the FPGA board refreshes the content of the output configuration area at a specific frequency, generates a set of output timings on the output PIN pin according to the pattern configuration content at a specific frequency; at the same time, the output signal of the chip device under test is collected from the input PIN pin at the corresponding clock position of the output, and recorded in the input collection area in the local memory of the FPGA board. The input and output are carried out and completed at the same time, and the output and input are synchronized at a specific frequency by the same clock.
[0024] The present invention also provides a chip DFT test system based on low-cost FPGA, including a host computer, an FPGA board and a chip device under test, wherein:
[0025] The host computer is connected to the FPGA board via RS232 or IP network; the FPGA board is connected to the chip device under test via the IO interface.
[0026] The host computer is used to reset the internal state machine register of the FPGA board, to parse the machine test script ATP file, and to send the ATP file entry, i.e., Pattern, to the FPGA board, to receive the collection entry of the FPGA board and write it into the output file, and the output file is used to analyze the debugging result or determine the test result;
[0027] The FPGA board is used to receive the Pattern sent by the host computer, and expand the Pattern in the local memory of the FPGA board, to perform DFT testing on the chip device under test, to collect the output signal of the chip device under test and transmit the collected items to the host computer.
[0028] Further, the local memory of the FPGA board includes a PIN configuration area, an output configuration area, and an input acquisition area, wherein:
[0029] The PIN configuration area is used to store the input and output directions of the PIN pin;
[0030] The output configuration area is used to store output items loaded by the host computer;
[0031] The input acquisition area is used to store the output signal of the chip device under test collected from the input PIN pin.
[0032] Based on the above low-cost FPGA board platform, programming the FPGA can complete the DFT debugging and testing tasks in the production conversion stage. The FPGA platform can be replaced, and the core lies in the FPGA program.
[0033] The FPGA platform is a general-purpose FPGA motherboard, which is a board on the market that completes other FPGA functions and is used to complete DFT testing. By injecting DFT test logic code into the FPGA platform, the FPGA platform can generate the same test output signal as the machine at the general IO PIN pin, so it can replace the machine for DFT testing, and the FPGA platform is universal, so the platform procurement cost is low.
[0034] When selecting an FPGA board, it is necessary to have enough universal PIN pins for DFT testing to connect the carrier board of the test chip. Normally, only 20 pins are needed, and most FPGA development boards have this number of universal PINs.
[0035] Machine testing requires writing a test script ATP file. This ATP file needs to be repeatedly iterated and debugged on the machine (trial and error, improvement, trial and error improvement). The present invention uses logic code + general FPGA motherboard to finally generate an ATP file. This ATP file is used for the FPGA motherboard of the present invention and can also be used for the machine. In terms of interface timing control, the logic code ensures the correctness and integrity of the timing output without loss, duplication, or delay.
[0036] The beneficial effects of the present invention are:
[0037] (1) The test environment can be built based on the low-cost FPGA development board on the market, which is inexpensive;
[0038] (2) The initial testing and debugging environment was moved from the production line to the R&D office to facilitate debugging by R&D personnel;
[0039] (III) Good adjustability, mainly for R&D personnel, can quickly create or modify test codes, and can quickly form test template files.
[0040] (IV) It can be used in the early debugging stage of DFT testing to save machine equipment debugging time and help the machine equipment quickly enter mass production testing. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 A schematic diagram of the topological structure of a test system according to an embodiment of the present invention;
[0042] Figure 2 This is a schematic diagram of a test mode of an embodiment of the present invention;
[0043] Figure 3 This is a schematic diagram of the overall test flow of an embodiment of the present invention;
[0044] Figure 4 A schematic diagram of the working topology of the loading mode according to an embodiment of the present invention;
[0045] Figure 5 A schematic diagram of the working topology in the operation mode configuration stage of an embodiment of the present invention;
[0046] Figure 6 A schematic diagram of the working topology in the operation mode of the embodiment of the present invention during the operation phase;
[0047] Figure 7 A schematic diagram of the working topology of the unloading mode according to an embodiment of the present invention;
[0048] Figure 8 A schematic diagram of storage partitions according to an embodiment of the present invention;
[0049] Fig. 9 A schematic diagram of the distribution format of output items in the memory according to an embodiment of the present invention;
[0050] Fig.10 A schematic diagram of the distribution format of input items in the memory according to an embodiment of the present invention. DETAILED DESCRIPTION
[0051] In order to more clearly understand the above-mentioned objects, features and advantages of the present invention, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0052] Figures 3 to 7 A specific implementation of the chip DFT testing method based on low-cost FPGA of the present invention is shown, comprising the following steps:
[0053] S1. Turn on or switch the test script ATP file;
[0054] S2, enter the reset mode, that is, the host computer resets the internal state machine register of the FPGA board;
[0055] S3, enter the loading mode, such as Figure 4 As shown, the host computer parses the machine test script ATP file, and the FPGA board receives the ATP file entry, i.e., Pattern, sent by the host computer through RS232 or IP network, and expands the Pattern in the local memory of the FPGA board;
[0056] S4, entering the running mode, that is, performing DFT test on the chip device under test according to the Pattern through the FPGA board, and collecting the output signal of the chip device under test;
[0057] S5, enter the uninstall mode, such as Figure 7 As shown, the collection items recorded in the local memory of the FPGA board are transmitted to the host computer one by one through RS232 or IP network, and the host computer receives the collection items and writes them into the output file, and the output file is used to analyze the debugging results or determine the test results;
[0058] S6, determine whether the same Pattern is repeatedly run, if so, go to step S4, otherwise go to step S7;
[0059] S7, determine whether to proceed to the next Pattern, if yes, go to step S2, otherwise go to step S8;
[0060] S8, shut down and end the DFT test.
[0061] Wherein: in step S3, the local memory includes a PIN configuration area and an output configuration area, the input and output directions of the PIN pin are stored in the PIN configuration area, and the output items loaded by the host computer are stored in the output configuration area.
[0062] Wherein: the specific steps of step S4 are:
[0063] S41, configuration phase: Figure 5 As shown, the FPGA board first refreshes the content of the PIN configuration area to make the configuration effective, that is, configures the input and output of the IO interface, and the IO interface is connected to the chip device under test;
[0064] S42, Operation phase: Figure 6 As shown, the FPGA board refreshes the content of the output configuration area at a specific frequency, generates a set of output timings on the output PIN pin according to the Pattern configuration content at a specific frequency; at the same time, the output signal of the chip device under test is collected from the input PIN pin at the corresponding clock position of the output, and recorded in the input collection area in the local memory of the FPGA board. Input and output are carried out and completed at the same time, and both output and input are synchronized at a specific frequency by the same clock.
[0065] In this embodiment, Figure 2 There are five modes in total as shown. In addition to the reset mode, loading mode, running mode, and unloading mode described in the above steps, there is also an IDLE mode, which is the idle mode of the logic code.
[0066] In this embodiment, each PIN timing output of the operation mode is recorded in the local memory (such as DDR memory) of the FPGA board, and the record entry content is as follows: Fig. 9 and Fig.10 shown.
[0067] Figure 1 A specific implementation of the chip DFT test system based on low-cost FPGA of the present invention is shown, including a host computer, an FPGA board and a chip device under test, wherein:
[0068] The host computer is connected to the FPGA board via RS232 or IP network; the FPGA board is connected to the chip device under test via the IO interface.
[0069] The host computer is used to reset the internal state machine register of the FPGA board, to parse the machine test script ATP file, and to send the ATP file entry, i.e., Pattern, to the FPGA board, to receive the collection entry of the FPGA board and write it into the output file, and the output file is used to analyze the debugging result or determine the test result;
[0070] The FPGA board is used to receive the Pattern sent by the host computer, and expand the Pattern in the local memory of the FPGA board, to perform DFT testing on the chip device under test, to collect the output signal of the chip device under test and transmit the collected items to the host computer.
[0071] In this embodiment, the local memory of the FPGA board includes a PIN configuration area, an output configuration area, and an input acquisition area, wherein:
[0072] The PIN configuration area is used to store the input and output directions of the PIN pin;
[0073] The output configuration area is used to store output items loaded by the host computer;
[0074] The input acquisition area is used to store the output signal of the chip device under test collected from the input PIN pin.
[0075] The size of the storage capacity will affect the number of clocks output and collected. For testing with higher requirements, a platform with higher FPGA onboard storage can be selected. For testing with lower requirements, a platform with lower FPGA onboard storage can be selected. Figure 8 shown.
[0076] The above embodiments of the present invention are merely examples for illustrating the present invention, and are not intended to limit the embodiments of the present invention. For those skilled in the art, other different forms of changes and modifications can be made based on the above description. It is impossible to list all the embodiments here. Any obvious changes or modifications derived from the technical solution of the present invention are still within the scope of protection of the present invention.
Claims
1. A chip DFT testing method based on low-cost FPGA, characterized in that: The steps include: S1. Turn on or switch the test script ATP file; S2, enter the reset mode, that is, the host computer resets the internal state machine register of the FPGA board; S3, entering the loading mode, that is, the host computer parses the machine test script ATP file, the FPGA board receives the ATP file entry, that is, Pattern, sent by the host computer through RS232 or IP network, and expands the Pattern in the local memory of the FPGA board; S4, entering the running mode, that is, performing DFT test on the chip device under test according to the Pattern through the FPGA board, and collecting the output signal of the chip device under test; S5, enter the unloading mode, that is, the collection items recorded in the local memory of the FPGA board are transmitted to the host computer one by one through RS232 or IP network, and the host computer receives the collection items and writes them into the output file, and the output file is used to analyze the debugging results or determine the test results; S6, determine whether the same Pattern is repeatedly run, if so, go to step S4, otherwise go to step S7; S7, determine whether to proceed to the next Pattern, if yes, go to step S2, otherwise go to step S8; S8, shut down and end the DFT test.
2. The chip DFT testing method based on low-cost FPGA according to claim 1, characterized in that: In step S3, the local memory includes a PIN configuration area and an output configuration area, the input and output directions of the PIN pin are stored in the PIN configuration area, and the output items loaded by the host computer are stored in the output configuration area.
3. A chip DFT testing method based on low-cost FPGA according to claim 2, characterized in that: The specific steps of step S4 are: S41, configuration stage: the FPGA board first refreshes the content of the PIN configuration area to make the configuration effective, that is, configures the input and output of the IO interface, and the IO interface is connected to the chip device under test; S42, operation stage: the FPGA board refreshes the content of the output configuration area at a specific frequency, and generates a set of output timings on the output PIN pin according to the Pattern configuration content at a specific frequency; at the same time, the output signal of the chip device under test is collected from the input PIN pin at the corresponding clock position of the output, and recorded in the input collection area in the local memory of the FPGA board.
4. A chip DFT test system based on low-cost FPGA, characterized in that: It includes host computer, FPGA board and chip device under test, including: The host computer is connected to the FPGA board through RS232 or IP network; the FPGA board is connected to the chip device under test through the IO interface. The host computer is used to reset the internal state machine register of the FPGA board, to parse the machine test script ATP file, and to send the ATP file entry, i.e., Pattern, to the FPGA board, to receive the collection entry of the FPGA board and write it into the output file, and the output file is used to analyze the debugging result or determine the test result; The FPGA board is used to receive the Pattern sent by the host computer, and expand the Pattern in the local memory of the FPGA board, to perform DFT testing on the chip device under test, to collect the output signal of the chip device under test and transmit the collected items to the host computer.
5. The chip DFT test system based on low-cost FPGA according to claim 4, characterized in that: The local memory of the FPGA board includes a PIN configuration area, an output configuration area, and an input acquisition area, wherein: The PIN configuration area is used to store the input and output directions of the PIN pin; The output configuration area is used to store output items loaded by the host computer; The input acquisition area is used to store the output signal of the chip device under test collected from the input PIN pin.
Citation Information
Cited By
Board card test tool circuit board
CN121955693A
