FPGA configuration test system and method based on FLASH and relay

By using FLASH and relays in the FPGA test system, multiple real-time configurations of the FPGA are realized, solving the problem of manual multiple configurations in the prior art and improving testing and configuration efficiency.

CN112241388BActive Publication Date: 2024-11-12BEIJING ZHENXING METROLOGY & TEST INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910646937.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-07-17
Publication Date
2024-11-12
Estimated Expiration
2039-07-17

AI Technical Summary

Technical Problem

Existing FPGA testing processes require multiple manual operations and resource consumption, and place high demands on testers, making it impossible to achieve efficient multiple configuration tests.

Method used

An FPGA configuration test system based on FLASH and relays is adopted. The configuration file loading of the FLASH chip is controlled by the relay to realize multiple real-time configurations.

Benefits of technology

It realizes the continuous automation process of FPGA testing, reduces the difficulty of operation, improves testing and configuration efficiency, and saves testing time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112241388B_ABST
    Figure CN112241388B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of electronic component detection, and discloses a FPGA configuration test system and method based on FLASH and relays. The system comprises: a configuration test board; a FLASH chip, which is arranged on the configuration test board and is used to load a corresponding configuration file into the FPGA chip during the test; a relay, which is arranged on the configuration test board and connected to the FLASH chip and is used to perform a switching operation according to a received configuration instruction to control the loading of the configuration file of the FLASH chip; and a test device, which is used to test the FPGA chip loaded with the configuration file. Thus, the data loading of the configuration FLASH chip can be configured by switching the relay to control the loading of the configuration file, thereby realizing multiple real-time configurations of the FPGA test.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic component detection, and in particular to a FPGA configuration test system and method based on FLASH and relays. Background Art

[0002] Field Programmable Gate Array (FPGA) devices are blank components without any functions before configuration. To test FPGA devices, you should first configure them to configure the FPGA into a circuit with certain logic functions, and then test the configured FPGA with specific functions (use the test system (ATE) to apply corresponding stimuli, and recover the stimulus response according to the logic function of the designed circuit to determine whether the FPGA is qualified). Therefore, the process of testing FPGA is to realize the process of "configuring-testing" FPGA, so the configuration of FPGA is the cornerstone of the entire FPGA test.

[0003] FPGA has rich embedded resources and complex functions. It is generally composed of multiple modules such as programmable logic units, programmable IO, embedded RAM, embedded phase-locked loops, and embedded multipliers. To conduct a comprehensive test on an FPGA with numerous resources and complex functions, it is necessary to test the numerous resource modules of the FPGA separately, create multiple application projects based on different resources to be tested, design multiple logic circuits, and generate multiple configuration files (such as configuration file 1, configuration file 2, ... configuration file n), and configure these configuration files into the FPGA chip multiple times; for each configuration file, write a corresponding test program on the ATE test system, repeatedly apply stimulus and recover test response through the test system, and compare the recovered response data with the expected data to diagnose faults. Therefore, it is possible to conduct a comprehensive test on a complex and powerful FPGA (supporting I / O levels of different standards) only after multiple configurations. One or two configurations cannot achieve the completeness test of the FPGA. The test of FPGA in the prior art is such a process:

[0004] Power on FPGA - open configuration file 1 - configure to FPGA - test;

[0005] Power on FPGA - open configuration file 2 - configure to FPGA - test;

[0006] …

[0007] n) FPGA power on - open configuration file n - configure to FPGA - test.

[0008] It can be seen that the above process is a manual operation process. To test which part of the resources, you need to manually open the corresponding application project and configure the configuration file to the FPGA chip through the JTAG mode. This is a discontinuous process and requires multiple manual-automatic switching operations. The whole process takes a lot of time and occupies more resources of the test system. At the same time, it has high requirements for testers. Summary of the invention

[0009] The present invention provides a FLASH and relay-based FPGA configuration test system and method, which can solve the technical problems in the prior art.

[0010] The present invention provides a FPGA configuration test system based on FLASH and relays, wherein the system comprises:

[0011] Configure the test board;

[0012] A FLASH chip is provided on the configuration test board and is used to load a corresponding configuration file into the FPGA chip during the test process;

[0013] A relay, arranged on the configuration test board and connected to the FLASH chip, for performing a switching operation according to a received configuration instruction to control the loading of a configuration file of the FLASH chip;

[0014] The test device is used to test the FPGA chip loaded with the configuration file.

[0015] Preferably, the relay comprises a first relay and a second relay, wherein:

[0016] The first relay performs a switching operation according to the received configuration instruction to determine the FLASH chip where the configuration file to be loaded is located;

[0017] The second relay performs a switching operation according to the received configuration instruction to determine the area of ​​the configuration file to be loaded in the determined FLASH chip;

[0018] The FLASH chip loads the configuration file in the determined area into the FPGA chip.

[0019] Preferably, the configuration modes for loading the corresponding configuration files into the FPGA chip include a master-serial configuration mode, a master-parallel configuration mode, a slave-serial configuration mode and a slave-parallel configuration mode.

[0020] Preferably, the system further comprises an FPGA socket for arranging the FPGA chip.

[0021] The present invention also provides a FPGA configuration test method based on FLASH and relays, wherein the method comprises:

[0022] The relay performs switching operations according to the received configuration instructions to control the loading of the configuration file of the FLASH chip;

[0023] The FLASH chip loads the corresponding configuration file to the FPGA chip during the test according to the control of the relay, and the FLASH chip and the relay are arranged on the configuration test board and connected to each other;

[0024] The test device tests the FPGA chip loaded with the configuration file.

[0025] Preferably, the relay comprises a first relay and a second relay, wherein:

[0026] The first relay performs a switching operation according to the received configuration instruction to determine the FLASH chip where the configuration file to be loaded is located;

[0027] The second relay performs a switching operation according to the received configuration instruction to determine the area of ​​the configuration file to be loaded in the determined FLASH chip;

[0028] The configuration file in the determined area is loaded into the FPGA chip.

[0029] Preferably, the configuration modes for loading the corresponding configuration files into the FPGA chip include a master-serial configuration mode, a master-parallel configuration mode, a slave-serial configuration mode and a slave-parallel configuration mode.

[0030] Through the above technical solution, a FLASH chip and a relay connected to each other can be set on the configuration test board, and the relay can perform a switching operation according to the received configuration instruction to control the loading of the configuration file of the FLASH chip. The FLASH chip loads the corresponding configuration file to the FPGA chip during the test according to the control of the relay, and then the test device can test the FPGA chip loaded with the configuration file. Therefore, the data loading of the FLASH chip can be configured by switching the relay to control the configuration, and multiple real-time configurations of the FPGA test can be realized. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] The included drawings are used to provide a further understanding of the embodiments of the present invention, which constitute a part of the specification, are used to illustrate the embodiments of the present invention, and together with the text description, explain the principles of the present invention. Obviously, the drawings in the following description are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0032] Figure 1A block diagram of a FPGA configuration test system based on FLASH and relays according to an embodiment of the present invention is shown;

[0033] Figure 2 A flow chart of a FPGA configuration test method based on FLASH and relays according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0034] It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other. The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present invention and its application or use. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0035] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0036] Unless otherwise specifically stated, the relative arrangement of the parts and steps described in these embodiments, numerical expressions and numerical values ​​do not limit the scope of the present invention. At the same time, it should be understood that, for ease of description, the sizes of the various parts shown in the accompanying drawings are not drawn according to the actual proportional relationship. The technology, method and equipment known to ordinary technicians in the relevant field may not be discussed in detail, but in appropriate cases, the technology, method and equipment should be regarded as a part of the authorization specification. In all examples shown and discussed here, any specific value should be interpreted as being merely exemplary, rather than as a limitation. Therefore, other examples of exemplary embodiments may have different values. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once a certain item is defined in an accompanying drawing, it does not need to be further discussed in subsequent drawings.

[0037] Figure 1 A block diagram of a FPGA configuration test system based on FLASH and relays according to an embodiment of the present invention is shown.

[0038] like Figure 1As shown, an embodiment of the present invention provides an FPGA configuration test system based on FLASH and relays, wherein the system includes:

[0039] Configure the test board 10;

[0040] The FLASH chip 12 is arranged on the configuration test board 10 and is used to load the corresponding configuration file into the FPGA chip 18 during the test process;

[0041] That is, the configuration file is configured on the FPGA chip through the FLASH chip. The number of FLASH chips can be determined according to the number and size of the configuration files, and the present invention does not limit this.

[0042] Among them, the FPGA chip can also be set on the configuration test board 10.

[0043] A relay 14 is provided on the configuration test board 10 and connected to the FLASH chip 12 (i.e., the relay is connected to the pin of the FLASH chip in hardware), and is used to perform a switching operation according to a received configuration instruction to control the loading of the configuration file of the FLASH chip;

[0044] That is, the relay is used to determine which FLASH chip is used to configure the configuration file: the switching of the relay determines the FLASH chip that ultimately executes the configuration file loading, and the configuration file loading can then be performed.

[0045] The testing device 16 is used to test the FPGA chip loaded with the configuration file.

[0046] The test device may be an ATE test device. The test process of the FPGA chip is realized by connecting each pin of the FPGA chip on the configuration test board to the test channel of the test device. In addition, before the assembly test, the test pins of the test device and the FPGA are powered on.

[0047] Through the above technical solution, a FLASH chip and a relay connected to each other can be set on the configuration test board, and the relay can perform a switching operation according to the received configuration instruction to control the loading of the configuration file of the FLASH chip. The FLASH chip loads the corresponding configuration file to the FPGA chip during the test according to the control of the relay, and then the test device can test the FPGA chip loaded with the configuration file. Therefore, the data loading of the FLASH chip can be configured by switching the relay to control the configuration, and multiple real-time configurations of the FPGA test can be realized.

[0048] According to an embodiment of the present invention, the relay comprises a first relay and a second relay, wherein:

[0049] The first relay performs a switching operation according to the received configuration instruction to determine the FLASH chip where the configuration file to be loaded is located;

[0050] The second relay performs a switching operation according to the received configuration instruction to determine the area of ​​the configuration file to be loaded in the determined FLASH chip;

[0051] The FLASH chip loads the configuration file in the determined area into the FPGA chip.

[0052] That is, the target FLASH chip and the area of ​​the configuration file in the target FLASH chip can be determined through the switching operation of the relay (for example, the relay is turned on or off), so that the configuration file in the determined area can be loaded into the FPGA chip through the target FLASH chip, thereby realizing automatic loading of the corresponding configuration file (that is, selecting the internal area data of the FLASH chip, and when a specific part of the FPGA function is tested, the corresponding configuration file is automatically loaded into the FPGA chip, thereby realizing automatic configuration during the test process).

[0053] For example, taking the case where there are two FLASH chips (FLASH chip A and FLASH chip B), a first relay can be set accordingly. The FLASH chip where the configuration file is located can be selected by turning the first relay on or off. The method for the first relay to specifically determine the FLASH chip is shown in Table 1 below.

[0054] Table 1

[0055] First relay on or off Determined FLASH chip open FLASH chip A close FLASH chip B

[0056] When the number of FLASH chips is more than two, multiple first relays may be provided, for example, one first relay may be provided for every two FLASH chips. When the number of FLASH chips is odd, one first relay may be provided for a single FLASH chip.

[0057] In hardware, the second relay is connected to the pin of the FLASH chip (for example, the area selection pin), and the internal area of ​​the FLASH chip can be selected by turning the second relay on or off. Assume that FLASH chip A is selected in the above FLASH chip selection process, and there are four areas in FLASH chip A, and there are configuration files 1, 2, 3, and 4 in the four areas, as shown in Table 2 below.

[0058] Table 2

[0059] Configuration Files The area stored in the FLASH chip Profile 1 Region 1 Profile 2 Area 2 Profile 3 Area 3 Profile 4 Region 4

[0060] For example, for each FLASH chip area selection, two second relays (second relay 1 and second relay 2) may be provided. The method of selecting the area of ​​the FLASH chip for file configuration by controlling the area selection pin through the switch of the second relay is shown in Table 3 below.

[0061] Table 3

[0062] Second relay 1 Second relay 2 open open FLASH chip area 1 file is configured to FPGA open close FLASH chip area 2 file is configured to FPGA close open FLASH chip area 3 file is configured to FPGA close close FLASH chip area 4 file is configured to FPGA

[0063] Those skilled in the art should understand that the descriptions about the relay and the FLASH chip in Tables 1 to 3 above are merely exemplary and are not intended to limit the present invention.

[0064] According to an embodiment of the present invention, the configuration modes for loading the corresponding configuration files into the FPGA chip include a master-serial configuration mode, a master-parallel configuration mode, a slave-serial configuration mode, and a slave-parallel configuration mode.

[0065] For example, in the case of master-parallel configuration, in order to realize the automatic loading of data of FLASH chip during the test, relays are used to connect FLASH chip, and relays are used to connect the region selection pins of FLASH chip. Assuming that two FLASH chips A and B are used, relays are used to connect the data pins D[7:0] of FPGA to the data pins of two FLASH chips respectively, and relays are used to connect the configuration pins TCK, TMS, TDI, INTB, DONE, CFG_CLK of FPGA to the configuration pins TCK, TMS, TDI, INTB, DONE, CFG_CLK of two FLASH chips, and relays are used to connect the region selection pins REV_SEL0 and REV_SEL1 of FLASH chip.

[0066] For example, the FPGA chip to be tested can be selected as the XC6SLX25-2CSG324I chip. The XC6SLX25-2CSG324I chip is one of the Spartan 6 series produced by XILINX. The XC6SLX25-2CSG324I chip mainly includes the following main parts: programmable input and output unit module IOB, programmable logic array module CLB, clock management module CMT, embedded memory module BRAM, embedded DSP module (DSP48A1).

[0067] The configuration bitstream in the off-chip non-volatile memory is loaded through the master-parallel mode configuration. Since the integrity test of the chip XC6SLX25-2CSG324I requires multiple configurations, according to its functional structure, it takes about 6 to 8 configurations to fully cover all resources, and a PROM can only load about 4 configuration files. To meet the integrity test requirements, two XCF32PVG48 chips (that is, the FLASH chip can use the XCF32PVG48 chip) are cascaded. The XCF32PVG48 is divided into 4 independent areas in units of 8Mb, and each independent area can store 1 independent configuration file. The pins D0 to D7 of the FPGA are connected to the D0 to D7 pins of the two configuration chips through relays, and then the PROM area selection pins REV_SEL0 and REV_SEL1 are used to select which independent area of ​​the PROM the configuration file is loaded into. The clock signal CCLK required for the master and parallel configuration is generated by the FPGA. The corresponding PROM sends data from the D0~D7 pins to the D0~D7 pins of the FPGA at the rising edge of CCLK. The FPGA and PROM are connected in series in the same link according to the JTAG standard. The TDI of JTAG is connected to the TDI of the FPGA, the TDO of the FPGA is connected to the TDI of the PROM, and the TDO of the PROM is connected back to the TDO of the JTAG interface. TMS and TCK are connected to the FPGA respectively. TCK, TMS, TDI, and TDO are all pulled up to 2.5V VCCAUX. The CCLK, INTB, DONE, and DIN of the FPGA are connected to the CLK, OE, CE, and D0 of the PROM respectively, and all except D0 are pulled up.

[0068] According to one embodiment of the present invention, the system further includes an FPGA socket for arranging the FPGA chip.

[0069] In addition, during the testing process of the test device, after completing the test of one resource, it can be determined whether there are other resources that need to be tested. If there are other resources to be tested, the test of other resources will continue to start until all resources of the FPGA chip are tested.

[0070] Figure 2 A flow chart of a FPGA configuration test method based on FLASH and relays according to an embodiment of the present invention is shown.

[0071] like Figure 2 As shown, an embodiment of the present invention provides an FPGA configuration test method based on FLASH and relays, wherein the method includes:

[0072] S200, the relay performs a switching operation according to the received configuration instruction to control the loading of the configuration file of the FLASH chip;

[0073] S202, the FLASH chip loads the corresponding configuration file to the FPGA chip during the test according to the control of the relay, and the FLASH chip and the relay are arranged on a configuration test board and connected to each other;

[0074] S204, the testing device tests the FPGA chip loaded with the configuration file.

[0075] Through the above technical solution, the FPGA configuration can be performed by configuring the interconnected FLASH chip and relays set on the test board. The relay can perform a switching operation according to the received configuration instruction to control the loading of the configuration file of the FLASH chip. The FLASH chip loads the corresponding configuration file to the FPGA chip during the test according to the control of the relay, and then the test device can test the FPGA chip loaded with the configuration file. Therefore, the data loading of the FLASH chip can be configured by switching the relay to control the configuration, and multiple real-time configurations of the FPGA test can be realized.

[0076] According to an embodiment of the present invention, the relay comprises a first relay and a second relay, wherein:

[0077] The first relay performs a switching operation according to the received configuration instruction to determine the FLASH chip where the configuration file to be loaded is located;

[0078] The second relay performs a switching operation according to the received configuration instruction to determine the area of ​​the configuration file to be loaded in the determined FLASH chip;

[0079] The FLASH chip loads the configuration file in the determined area into the FPGA chip.

[0080] According to an embodiment of the present invention, the configuration modes for loading the corresponding configuration files into the FPGA chip include a master-serial configuration mode, a master-parallel configuration mode, a slave-serial configuration mode, and a slave-parallel configuration mode.

[0081] Figure 2 The method described is similar to Figure 1 The system described above corresponds to the system described above. For specific examples, please refer to Figure 1 The description will not be repeated here.

[0082] It can be seen from the above embodiments that the FPGA configuration test system and method based on FLASH and relays described in the present invention allows the entire FPGA chip test process to be carried out continuously, without the need to manually open the design file for downloading operations. The corresponding design file is configured in real time during each part of the resource test, and the entire test process does not require manual operation to complete the test process, thereby realizing multiple real-time configurations of FPGA chip testing. As a result, the difficulty of FPGA test operation is reduced, making the operator's test operation more convenient and quick, and in FPGA testing, there is a higher configuration efficiency and test efficiency, saving test time. In addition, the above-mentioned system and method of the present invention can be applied to other ATE test equipment based on the WINDOS operating environment, and has strong portability.

[0083] In the description of the present invention, it is necessary to understand that the directions or positional relationships indicated by directional words such as "front, back, up, down, left, right", "lateral, vertical, perpendicular, horizontal" and "top, bottom" are usually based on the directions or positional relationships shown in the drawings. They are only for the convenience of describing the present invention and simplifying the description. Unless otherwise specified, these directional words do not indicate or imply that the devices or elements referred to must have a specific direction or be constructed and operated in a specific direction. Therefore, they cannot be understood as limiting the scope of protection of the present invention. The directional words "inside and outside" refer to the inside and outside relative to the contours of each component itself.

[0084] For ease of description, spatially relative terms such as "above", "above", "on the upper surface of", "above", etc. may be used here to describe the spatial positional relationship between a device or feature and other devices or features as shown in the figure. It should be understood that spatially relative terms are intended to include different orientations of the device in use or operation in addition to the orientation described in the figure. For example, if the device in the accompanying drawings is inverted, the device described as "above other devices or structures" or "above other devices or structures" will be positioned as "below other devices or structures" or "below other devices or structures". Thus, the exemplary term "above" can include both "above" and "below". The device can also be positioned in other different ways (rotated 90 degrees or in other orientations), and the spatially relative descriptions used here are interpreted accordingly.

[0085] In addition, it should be noted that the use of terms such as "first" and "second" to limit components is only for the convenience of distinguishing the corresponding components. If not otherwise stated, the above terms have no special meaning and therefore cannot be understood as limiting the scope of protection of the present invention.

[0086] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A FPGA configuration test system based on FLASH and relays, characterized in that: The system includes: Configure the test board; A FLASH chip is provided on the configuration test board and is used to load a corresponding configuration file into the FPGA chip during the test process; A relay, arranged on the configuration test board and connected to the FLASH chip, for performing a switching operation according to a received configuration instruction to control the loading of a configuration file of the FLASH chip; A test device, used for testing the FPGA chip loaded with the configuration file; The relay comprises a first relay and a second relay, wherein: The first relay performs a switching operation according to the received configuration instruction to determine the FLASH chip where the configuration file to be loaded is located; The second relay performs a switching operation according to the received configuration instruction to determine the area of ​​the configuration file to be loaded in the determined FLASH chip; The FLASH chip loads the configuration file in the determined area into the FPGA chip.

2. The system according to claim 1, characterized in that The configuration modes for loading the corresponding configuration files into the FPGA chip include master-serial configuration mode, master-parallel configuration mode, slave-serial configuration mode and slave-parallel configuration mode.

3. The system according to claim 1 or 2, characterized in that: The system also includes an FPGA socket for arranging the FPGA chip.

4. A FPGA configuration test method based on FLASH and relay, characterized in that: The method includes: The relay performs switching operations according to the received configuration instructions to control the loading of the configuration file of the FLASH chip; The FLASH chip loads the corresponding configuration file to the FPGA chip during the test according to the control of the relay, and the FLASH chip and the relay are arranged on the configuration test board and connected to each other; The testing device tests the FPGA chip loaded with the configuration file; The relay comprises a first relay and a second relay, wherein: The first relay performs a switching operation according to the received configuration instruction to determine the FLASH chip where the configuration file to be loaded is located; The second relay performs a switching operation according to the received configuration instruction to determine the area of ​​the configuration file to be loaded in the determined FLASH chip; The FLASH chip loads the configuration file in the determined area into the FPGA chip.

5. The method according to claim 4, characterized in that The configuration modes for loading the corresponding configuration files into the FPGA chip include master-serial configuration mode, master-parallel configuration mode, slave-serial configuration mode and slave-parallel configuration mode.