FPGA embedded Interlaken IP test method and system based on DRP

By using the dynamic reconfiguration port (DRP) and the self-test structure (BIST) in the FPGA chip, the functional test of the Interlaken IP is realized, which solves the problem of multiple configurations of the FPGA in the existing technology, improves the test efficiency and reduces the cost. .

CN118567924APending Publication Date: 2024-08-30BEIJING MICROELECTRONICS TECH INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410699729.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

When embedding Interlaken IP in an FPGA chip, due to its high flexibility, existing test technology requires multiple configurations of the entire FPGA, resulting in too long test times and affecting test efficiency.

Method used

A DRP-based test method is adopted, by dynamically reconfiguring the parameters of the Interlaken IP, using the BIST controller and the DRP interface, to generate PRBS pattern test data, perform functional testing, and reduce the number of configurations of the entire FPGA.

Benefits of technology

It effectively shortens the test time, reduces the configuration time and BIT file generation time, improves the test efficiency, simplifies the test process, and reduces the test cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118567924A
    Figure CN118567924A
Patent Text Reader

Abstract

The invention discloses an FPGA embedded Interlaken IP test method based on a DRP, and the method comprises the following steps: configuring a BIST controller according to the Interlaken protocol specification for the requirements of a test item, and setting a PRBS code pattern adopted by the test; an Interlaken IP (Internet Protocol) is reconfigured through a DRP (Data Redundancy Protocol) interface; generating corresponding PRBS code pattern test data; packaging test data into a data packet according to a protocol, and sending the data packet to the Interlaken IP; analyzing an output signal sent by the Interlaken IP into output data, comparing the output data with an expected value, and judging whether the Interlaken IP operates normally under the test vector or not according to a comparison result; after the test vector is completed, generating a next test vector until all test vectors in the test item are completed; and after one function test is completed, reconfiguring the BIST controller and the DRP interface according to the requirement of the next test item until the Interlaken IP function test is completely completed. According to the method and the device, the parameters of the FPGA embedded Interlaken IP can be dynamically reconfigured based on the DRP for the test item, and the configuration frequency of the whole FPGA in the test process is effectively reduced, so that the total test time is shortened, the test efficiency is improved, and the test cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of FPGA testing technology, and in particular to a DRP-based FPGA embedded Interlaken IP testing method and system. Background Art

[0002] The Interlaken interface protocol has higher channelization, burst interleaving, flow control mechanism and flexibility of use, so it has become the first choice for low-latency and high-reliability inter-chip interconnection protocols. The Interlaken protocol is highly scalable and flexible. The Interlaken protocol allows users to flexibly configure parameters such as transmission rate, number of channels, data width and priority according to their own needs. At the same time, the efficient flow control mechanism of the Interlaken protocol can ensure the reliability and stability of data transmission under high load conditions. This feature makes the Interlaken protocol widely used in the field of high-speed data exchange and communication. In order to facilitate IC design companies to use the Interlaken protocol, it is usually solidified into an IP hard core according to the protocol specification, and the Interlaken IP hard core is embedded in FPGA, ASIC, DSP and other chips to shorten the product development cycle and R&D costs.

[0003] When the Interlaken IP is embedded inside the FPGA chip, the possibility of IP core failure is inevitable, which will affect the overall performance of the FPGA chip. To this end, designers usually perform systematic testing and verification on each unit module to ensure the stability and reliability of the system as much as possible. However, due to the high flexibility and high degree of configurability of the Interlaken IP itself, the existing testing technology needs to configure the entire FPGA multiple times when performing Interlaken testing. The time to configure the FPGA is too long, resulting in increased testing time, which seriously affects the test efficiency. In this case, reducing the number of configurations of the entire FPGA and thus reducing the test cost has become an urgent problem to be solved. Summary of the invention

[0004] The technical problem solved by the present invention is: in order to break through the limitation of the prior art, effectively reduce the number of FPGA configurations, and thus shorten the test time, a DRP-based FPGA embedded Interlaken IP test method and system are provided. A dynamic reconfiguration port (DRP) design is introduced into the existing built-in self-test (BIST) structure, and the Interlaken IP is partially reconstructed by DRP to meet the requirements of the functional test items for the IP, so as to realize the dynamic configuration of various parameters inside the IP. Then, the DRP and BIST are controlled by the test process controller to coordinate the test input, IP configuration, and test output comparison to complete the functional test of the Interlaken interface.

[0005] The technical solution of the present invention is:

[0006] First,

[0007] The present invention proposes a DRP-based FPGA embedded Interlaken IP testing method, comprising:

[0008] (1) According to the requirements of the test items, configure the BIST controller according to the Interlaken protocol specification and set the PRBS pattern used in the test;

[0009] (2) Reconfigure the Interlaken IP through the DRP interface;

[0010] (3) Generate corresponding PRBS pattern test data;

[0011] (4) encapsulating the PRBS pattern test data into a data packet and sending it to the Interlaken IP according to the Interlaken protocol;

[0012] (5) Receive output signals from Interlaken IP;

[0013] (6) Parse the output signal into output data and compare it with the expected value, and determine whether the Interlaken IP runs normally under the test vector based on the comparison result;

[0014] (7) After completing the test vector, generate the next test vector, repeat steps (1) to (6) until all test vectors in the test item are completed, and proceed to step (8);

[0015] (8) After completing a functional test, reconfigure the BIST controller according to the requirements of the next test item and repeat steps (1) to (7) until all Interlaken IP functional tests are completed.

[0016] Furthermore,

[0017] The BIST controller is configured in accordance with the Interlaken protocol specification as described in step (1), including: number of lane channels, data packet mode, bypass mode, word skipping mode, transmission rate setting, BurstShort length, BurstMax length, number of Channels, and number of Calendars.

[0018] Furthermore,

[0019] The PRBS code types used in the test set in step (1) include PRBS7, PRBS9, PRBS11, PRBS15, PRBS20, PRBS23, and PRBS31 code types.

[0020] Furthermore,

[0021] In step (2), the Interlaken IP is reconfigured through the DRP interface. The configuration items include the number of lane channels, data packet mode, bypass mode, word skipping mode, transmission rate setting, BurstShort length, BurstMax length, number of Channels, and number of Calendars.

[0022] Furthermore,

[0023] In step (6), the output signal is parsed into output data and compared with the expected value, and the expected value is the corresponding PRBS code type test data generated in step (3).

[0024] Second,

[0025] The present invention also proposes a DRP-based FPGA embedded Interlaken IP test system, comprising: a test process controller, a BIST controller module, a TPG module, an ORA module and a DRP configuration module;

[0026] The test process controller configures the BIST controller module according to the Interlaken protocol specification and sets the PRBS pattern used in the test;

[0027] The DRP configuration module reconfigures the Interlaken IP through the DRP interface under the control of the test process controller;

[0028] Under the control of the BIST controller module, the TPG module generates corresponding PRBS pattern test data and encapsulates the PRBS pattern test data into data packets and sends them to the Interlaken IP according to the Interlaken protocol;

[0029] The ORA module parses the Interlaken IP output signal into output data and compares it with the expected value. Based on the comparison result, it determines whether the Interlaken IP operates normally under the test vector, which is used to determine the circuit operation status and output a response signal to the test process controller.

[0030] The BIST controller module, TPG module, ORA module and DRP configuration module are all implemented on FPGA.

[0031] Thirdly,

[0032] The present invention provides a computer program product, which implements the steps of a DRP-based FPGA embedded Interlaken IP testing method when executed by a processor.

[0033] The beneficial effects of the present invention compared with the prior art are:

[0034] (1) The present invention completes Interlaken testing based on DRP and completes corresponding testing by dynamically reconstructing Interlaken IP without configuring the entire FPGA. This can effectively reduce the number of configurations of the entire FPGA and the test logic implementation time, effectively reduce the FPGA configuration time and BIT file generation time, improve test efficiency, and reduce test costs.

[0035] (2) The present invention provides 7 PRBS patterns when generating test data, which effectively enhances the pertinence of the test. PRBS patterns are widely used in high-speed serial link testing and have randomness and periodicity. Users can perform targeted tests on the Interlaken interface according to their application and test requirements.

[0036] (3) The entire test process of the present invention does not require repeated configuration of the FPGA and the entire test system, which simplifies the test process and reduces the test cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 It is a flow chart of a DRP-based FPGA embedded Interlaken IP testing method of the present invention;

[0038] Figure 2 The present invention is a schematic diagram of a DRP-based FPGA embedded Interlaken IP test system. DETAILED DESCRIPTION

[0039] like Figure 1 As shown, in view of the problem that the whole FPGA needs to be reconfigured multiple times in the prior art, the present invention proposes a DRP-based FPGA embedded Interlaken IP testing method, comprising the following steps:

[0040] (1) According to the requirements of the test items, configure the BIST controller according to the Interlaken protocol specification, including the number of lane channels, data packet mode, bypass mode, word skipping mode, transmission rate setting, BurstShort length, BurstMax length, number of channels, and number of calendars. Set the PRBS pattern used in the test, including PRBS7, PRBS9, PRBS11, PRBS15, PRBS20, PRBS23, and PRBS31 patterns;

[0041] (2) Reconfigure the Interlaken IP through the DRP interface. The configuration items include the number of lanes, packet mode, bypass mode, word skipping mode, transmission rate setting, BurstShort length, BurstMax length, number of channels, and number of calendars.

[0042] (3) Generate corresponding PRBS pattern test data;

[0043] (4) Encapsulate the test data into data packets and send them to Interlaken IP according to the protocol;

[0044] (5) Receive output signals from Interlaken IP;

[0045] (6) Parse the output signal into output data and compare it with the expected value, and judge whether Interlaken IP runs normally under the test vector according to the comparison result, where the expected value is to generate the corresponding PRBS code test data;

[0046] (7) After completing the test vector, generate the next test vector, repeat steps (1) to (6) until all test vectors in the test item are completed, and proceed to step (8);

[0047] (8) After completing a functional test, reconfigure the BIST controller and DRP interface according to the requirements of the next test item, and repeat steps (1) to (7) until all Interlaken IP functional tests are completed.

[0048] like Figure 2 As shown, the present invention also proposes a DRP-based FPGA embedded Interlaken IP test system, including: a test process controller and a DRP configuration module; the test process controller controls the DRP configuration module and the BIST controller to coordinate test input, IP configuration, and test output comparison to complete the functional test of the Interlaken interface; the DRP configuration module can partially reconstruct the Interlaken IP embedded in the FPGA according to the requirements of the test items.

[0049] Specific implementation is as follows Figure 2As shown, the FPGA embedded Interlaken IP test system consists of a test process controller, a BIST controller, a TPG module, an ORA module and a DRP configuration module. Except for the test process controller, the remaining modules are implemented on the FPGA. The test process controller configures the BIST controller module according to the Interlaken protocol specification and sets the PRBS pattern used in the test; the DRP configuration module reconfigures the Interlaken IP through the DRP interface under the control of the test process controller; the TPG module generates the corresponding PRBS pattern test data under the control of the BIST controller module and encapsulates the PRBS pattern test data into a data packet and sends it to the Interlaken IP according to the Interlaken protocol; the ORA module parses the Interlaken IP output signal into output data and compares it with the expected value, and judges whether the Interlaken IP runs normally under the test vector according to the comparison result, which is used to determine the circuit operation status, and outputs a response signal to the test process controller. The BIST controller is used to configure the TPG and ORA modules, and can also respond to the Interlaken IP signal.

[0050] Example:

[0051] (1) Configure the BIST module according to the Interlaken protocol specification and the number of lanes. Set the PRBS pattern used in the test to PRBS7;

[0052] (2) Reconfigure the Interlaken IP through the DRP interface and configure the number of lane channels;

[0053] (3) The TPG module generates the corresponding PRBS7 pattern test data;

[0054] (4) The TPG module encapsulates the test data into data packets according to the protocol and sends them to the Interlaken IP;

[0055] (5) The ORA module receives the output signal sent by the Interlaken IP;

[0056] (6) The ORA module parses the output signal into output data and compares it with the expected value. Based on the comparison result, it is determined whether the Interlaken IP operates normally under the test vector, where the expected value is the PRBS7 code test data corresponding to the TPG module;

[0057] (7) After the test vector is completed, the next test vector is generated by the test vector generation module (TPG module), and steps (1) to (6) are repeated until 100 test vectors are completed, and then step (8) is entered;

[0058] (8) After completing a functional test, repeat steps (1) to (7) according to the number of lane channels of the reconfigured BIST module and DRP interface until the number of lane channels of the Interlaken IP is completed from 1 to 12.

[0059] The technical solution of the present invention completes the Interlaken test based on DRP, and completes the corresponding test by dynamically reconstructing the Interlaken IP without configuring the entire FPGA, which can effectively reduce the number of configurations of the entire FPGA and the test logic implementation time, and effectively reduce the FPGA configuration time and BIT file generation time. Seven PRBS code types are provided when generating test data, which effectively enhances the pertinence of the test. At the same time, the entire test process does not need to repeatedly configure the FPGA and the entire test system, which simplifies the test process and reduces the test cost.

[0060] Parts of the present invention that are not described in detail belong to common knowledge among those skilled in the art.

Claims

1. A DRP-based FPGA embedded Interlaken IP testing method, characterized in that: include: (1) According to the requirements of the test items, configure the BIST controller according to the Interlaken protocol specification and set the PRBS pattern used in the test; (2) Reconfigure the Interlaken IP through the DRP interface; (3) Generate corresponding PRBS pattern test data; (4) Encapsulating the PRBS pattern test data into a data packet and sending it to Interlaken IP according to the Interlaken protocol; (5) Receive output signals from Interlaken IP; (6) Parse the output signal into output data and compare it with the expected value, and determine whether the Interlaken IP runs normally under the test vector based on the comparison result; (7) After completing the test vector, generate the next test vector, repeat steps (1) to (6) until all test vectors in the test item are completed, and proceed to step (8); (8) After completing a functional test, reconfigure the BIST controller according to the requirements of the next test item and repeat steps (1) to (7) until all Interlaken IP functional tests are completed.

2. The DRP-based FPGA embedded Interlaken IP testing method according to claim 1, characterized in that: The BIST controller is configured in accordance with the Interlaken protocol specification as described in step (1), including: number of lane channels, data packet mode, bypass mode, word skipping mode, transmission rate setting, BurstShort length, BurstMax length, number of Channels, and number of Calendars.

3. The DRP-based FPGA embedded Interlaken IP testing method according to claim 1, characterized in that: The PRBS code types used in the test set in step (1) include PRBS7, PRBS9, PRBS11, PRBS15, PRBS20, PRBS23, and PRBS31 code types.

4. The DRP-based FPGA embedded Interlaken IP testing method according to claim 1, characterized in that: In step (2), the Interlaken IP is reconfigured through the DRP interface. The configuration items include the number of lane channels, data packet mode, bypass mode, word skipping mode, transmission rate setting, BurstShort length, BurstMax length, number of Channels, and number of Calendars.

5. The DRP-based FPGA embedded Interlaken IP testing method according to claim 1, characterized in that: In step (6), the output signal is parsed into output data and compared with the expected value, and the expected value is the corresponding PRBS code type test data generated in step (3).

6. A DRP-based FPGA embedded Interlaken IP test system, characterized in that include: Test process controller, BIST controller module, TPG module, ORA module and DRP configuration module; The test process controller configures the BIST controller module according to the Interlaken protocol specification and sets the PRBS pattern used in the test; The DRP configuration module reconfigures the Interlaken IP through the DRP interface under the control of the test process controller; Under the control of the BIST controller module, the TPG module generates corresponding PRBS pattern test data and encapsulates the PRBS pattern test data into data packets and sends them to the Interlaken IP according to the Interlaken protocol; The ORA module parses the Interlaken IP output signal into output data and compares it with the expected value. Based on the comparison result, it determines whether the Interlaken IP operates normally under the test vector, which is used to determine the circuit operation status and output a response signal to the test process controller.

7. The DRP-based FPGA embedded Interlaken IP test system according to claim 6, characterized in that: The BIST controller module, TPG module, ORA module and DRP configuration module are all implemented on FPGA.

8. The DRP-based FPGA embedded Interlaken IP test system according to claim 6, characterized in that: The BIST controller is configured according to the Interlaken protocol specification, specifically including: lane channel number, data packet mode, bypass mode, word skipping mode, transmission rate setting, BurstShort length, BurstMax length, Channel number, Calendar number; The PRBS code patterns used in the setting test include PRBS7, PRBS9, PRBS11, PRBS15, PRBS20, PRBS23, and PRBS31 code patterns; The Interlaken IP is reconfigured through the DRP interface, and the configuration items include the number of lane channels, data packet mode, bypass mode, word skipping mode, transmission rate setting, BurstShort length, BurstMax length, number of Channels, and number of Calendars.

9. The DRP-based FPGA embedded Interlaken IP test system according to claim 6, characterized in that: The output signal is parsed into output data and compared with the expected value, and the expected value is the generated corresponding PRBS code type test data.

10. A computer program product, characterized in that When the computer program product is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.