PCIe channel phase offset verification method and system based on UVM and FPGA verification platform

By using the UVM and FPGA verification platform in the PCIe bus, we build a simulation and hardware test environment to verify and correct the phase offset between channels, solving the problem of unstable data transmission caused by the phase offset between channels in the PCIe bus, and achieving a better High data transmission reliability and system performance optimization.

CN118779170APending Publication Date: 2024-10-15Chinese People's Liberation Army Cyberspace Force Information Engineering University
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410999110.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

In the PCIe bus, data transmission is unstable due to phase offset between channels. Existing technologies are difficult to effectively verify and correct, affecting the reliability and timing of data transmission.

Method used

A verification platform based on UVM and FPGA is used to build a simulation and hardware test environment. The phase offset between PCIe channels is verified through the clock synchronization model and deskew algorithm. The UVM test module and FPGA test module are combined to achieve accurate deskew processing and fault tolerance adjustment.

Benefits of technology

It improves the reliability and timing accuracy of data transmission, reduces the error rate, improves the tape-out success rate and product quality, provides more detailed design reference information, and optimizes system performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118779170A_ABST
    Figure CN118779170A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computer extension bus verification, in particular to a PCIe channel phase offset verification method and system based on a UVM and FPGA verification platform, a test environment is established based on the UVM, and a connection relation between a verification IP and a tested design is established in the test environment; testing and verifying the phase offset between the PCIe channels of the tested design by using the test case so as to lock the phase offset and the phase offset accommodating range of the PCIe channels; the method comprises the following steps: establishing a hardware test environment based on FPGA programmable logic resources, establishing a docking relationship between an FPGA test board card and a tester in the hardware test environment, testing and acquiring a docking link establishment phenomenon of the FPGA test board card by using the tester, and capturing a receiving end signal of a physical layer so as to analyze a fault-tolerant adjustment range of the physical layer to a tested design. According to the method, the UVM and the FPGA are combined to bring the channel difference permissible test into the verification process of the whole PCIe system, and the test is matched with hardware, so that the reliability of data transmission of the PCIe receiving end can be ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer expansion bus verification, and in particular to a PCIe channel phase offset verification method and system based on UVM and FPGA verification platform. Background Art

[0002] PCIE bus technology, also known as computer internal bus technology, is peripheral component interconnection. It is generally used in large data centers and can connect to off-chip devices such as network cards and graphics cards. The basic structure of PCIe includes root components (root complex), switches (switch) and various terminal devices (endpoint). The PCIe subsystem has 4 types of devices, divided into root complex (RC), PCIe switch, PCIe End Point and PCIe Bridge. Switch devices and RC devices can connect to the PCIe bus upward or downward, and the bottom layer of the PCIe bus is the EP device. In PCI-Express, lane_to_lane_deskew is an important concept, which refers to the phase offset between channels. This phase offset may come from multiple aspects, including sampling differences between the chip driver and the receiver, and delays introduced by serialization and deserialization logic. In addition, impedance changes in printed circuit boards and mismatches in channel line lengths can also cause a certain gap between channel timing and data. When there are multiple lanes on a PCIe link, if symbols transmitted simultaneously on different lanes reach the receiver at different time points and are then converted from serial to parallel, data confusion will occur. To ensure correct reception and processing of data, the phase offset needs to be tested and verified to eliminate the phase offset between channels and ensure parallel processing of data. Summary of the invention

[0003] The present invention provides a PCIe channel phase offset verification method and system based on UVM and FPGA verification platform, which incorporates the permissible test of channel difference into the verification process of the PCIe full system and cooperates with the hardware test to ensure the reliability of data transmission at the PCIe receiving end.

[0004] According to the design scheme provided by the present invention, on the one hand, a PCIe channel phase offset verification method based on UVM and FPGA verification platform is provided, comprising:

[0005] A test environment for simulating the full system verification of the PCIe protocol is built based on UVM, a connection relationship between the verification IP and the design under test is established in the test environment, and the phase offset between the PCIe channels of the design under test is tested and verified using test cases, and the phase offset and the phase offset tolerance range of the PCIe channel are locked according to the test verification results. The full system verification of the PCIe protocol includes timing constraint verification, end-to-end exchange verification, interrupt flow verification and exception verification, and the design under test is a deskew circuit;

[0006] A hardware test environment is built based on FPGA programmable logic resources to map the hardware environment of the design under test. A docking relationship between the FPGA test board and the tester is established in the hardware test environment. The tester is used to test and obtain the docking and link establishment phenomenon of the FPGA test board. The physical layer receiving end signal is captured and the fault tolerance adjustment range of the physical layer to the design under test is analyzed. The FPGA test board is configured according to the parameters of the design under test.

[0007] As a PCIe channel phase offset verification method based on UVM and FPGA verification platform of the present invention, further, before building a test environment for simulating PCIe protocol full system verification based on UVM, it also includes:

[0008] Clock synchronization models are established at the serial and parallel ports of the design under test respectively through hardware description language, so as to utilize the clock synchronization models to simulate different clock skews inside and outside the design under test, and the clock synchronization models are generated using deskew algorithm.

[0009] As a PCIe channel phase offset verification method based on UVM and FPGA verification platform of the present invention, further, a test environment for simulating PCIe protocol full system verification is built based on UVM, including:

[0010] Setting environmental static variables in the test environment according to the function and role of the design under test, wherein the environmental static variables include the test mode, the start range of the read and write port of the design under test, and the port message type and port message length;

[0011] Set up a scoreboard for checking the integrity of the data received by the design under test and an RM queue for simulating the routing and forwarding function of the design under test.

[0012] As a PCIe channel phase offset verification method based on UVM and FPGA verification platform of the present invention, further, a connection relationship between the verification IP and the design under test is established, including:

[0013] In each test case in the verification IP, the specified function is used to rewrite the environmental static variables in the test environment. The connection between the verification IP and the design under test is delayed and beat configured according to the signal, so as to change the phase offset of the corresponding channel of the design under test according to the specific value of the delayed beat configuration.

[0014] As a PCIe channel phase offset verification method based on UVM and FPGA verification platform of the present invention, further, a connection relationship between the verification IP and the design under test is established, which also includes:

[0015] The upstream and downstream docking ports of the design under test are configured according to the cascade debugging environment, and delay beat configuration is performed on each group of signals in the channel at the upstream and downstream docking ports, wherein the specific value of the delay beat is independently configured according to each PCIe channel.

[0016] As a PCIe channel phase offset verification method based on UVM and FPGA verification platform of the present invention, further, the phase offset between the PCIe channels of the tested design is tested and verified by using a test case, including:

[0017] Initialize the verification IP memory connected to each port of the design under test, and simulate the routing forwarding function in the rm queue to test the message transmission performance of each PCIe port under different phase offsets.

[0018] As a PCIe channel phase offset verification method based on UVM and FPGA verification platform of the present invention, further, the phase offset between the PCIe channels of the tested design is tested and verified by using the test case provided by the verification IP, and it also includes:

[0019] The performance test cases, fault-tolerant test cases and redundancy test cases provided by the verification IP are used to perform end-to-end exchange verification, interruption process verification and exception verification on the design under test respectively.

[0020] On the other hand, the present invention also provides a PCIe channel phase offset verification system based on UVM and FPGA verification platform, comprising: a UVM test module and an FPGA test module, wherein:

[0021] The UVM test module is used to build a test environment for simulating the full system verification of the PCIe protocol based on UVM, establish a connection relationship between the verification IP and the design under test in the test environment, and use test cases to test and verify the phase offset between the PCIe channels of the design under test, and lock the phase offset and the phase offset accommodation range of the PCIe channel according to the test verification result. The full system verification of the PCIe protocol includes timing constraint verification, end-to-end exchange verification, interrupt flow verification and exception verification, and the design under test is a deskew circuit;

[0022] The FPGA test module is used to build a hardware test environment for mapping the hardware environment of the design under test based on FPGA programmable logic resources, establish a docking relationship between the FPGA test board and the tester in the hardware test environment, and use the tester to test and obtain the FPGA test board docking and link building phenomenon, capture the physical layer receiving end signal and analyze the fault tolerance adjustment range of the physical layer for the design under test. The FPGA test board is configured according to the design parameters under test.

[0023] Beneficial effects of the present invention:

[0024] The present invention aims at the serious timing problem caused by clock jitter or uneven transmission line in high-speed data transmission, and the data may have clock offset, based on UVM and FPGA to build a test environment and hardware platform to achieve more accurate deskew processing, which can more effectively correct the clock offset and ensure that the data can be accurately and stably parsed at the receiving end, thereby reducing the data transmission error rate. In integrated circuit design, the timing problem is one of the common reasons for the failure of tape-out. In the scheme of this case, by more realistically simulating the clock offset in the actual working environment, the potential timing problem can be found and solved earlier in the design stage, thereby improving the success rate of the entire tape-out process and reducing unnecessary redesign and manufacturing costs. Combining FPGA testing and UVM verification to achieve more accurate deskew processing, designers can obtain more reference information, specifically, using UVM upstream and downstream port docking or docking with verification IP in a full system environment, can more comprehensively understand the critical phenomenon and boundary value of deskew, can provide designers with more data and insights, so that they can more targetedly adjust the clock compensation strategy and optimize system performance. This solution can achieve more accurate and realistic deskew processing, and can bring significant benefits to the fields of electronic system design and communications, including improving data transmission reliability, increasing tape-out success rate, providing more design reference information, and deepening the understanding of the entire system, which will help optimize product design, improve product quality, and has good application prospects. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 It is a schematic diagram of the PCIe channel phase offset verification process based on UVM and FPGA verification platform in the embodiment;

[0026] Figure 2 This is a schematic diagram of the differences between different versions of channels in the embodiment;

[0027] Figure 3 It is a schematic diagram of the UVM test environment architecture in the embodiment;

[0028] Figure 4 This is an illustration of UVM verification in the embodiment. DETAILED DESCRIPTION

[0029] In order to make the purpose, technical solutions and advantages of the present invention clearer and more understandable, the present invention is further described in detail below in conjunction with the accompanying drawings and technical solutions.

[0030] The communication between PCIe devices is realized in the form of data packets. At the sending end: the content of the data packet is formed in the transaction layer, and its content is obtained from the device core and application program; when the data packet reaches the data link layer, the additional information required for the receiving device to detect errors is added to this layer; then it is encoded accordingly through the physical layer, and differentially sent on the link through the analog part of the physical layer. The transmission of the data packet is realized through the available link channel of its adjacent receiving device. At the receiving end of the device: the transmission of the data packet is just the opposite of the sending end. The device decodes the data packet content through the physical layer and sends it to the upper layer. The data link layer will perform relevant error checks on the received data packet. If the data packet is correct, it will be sent to the upper layer, namely the transaction layer. Finally, the converted data packet is operated accordingly through the device core and application program. The PCIe interface bus protocol defines a three-layer structure of the underlying physical layer, the middle layer data link layer, and the top layer transaction layer. Each layer is divided into two parts: one part is used to process outbound sender information, and the other part is used to process inbound receiver information.

[0031] In an end-to-end communication network, the PCIe receiver needs to eliminate the phase offset between channels to achieve parallel data processing. This process is also called phase compensation between links. The range of phase compensation is limited, so it is necessary to understand that the PCIe controller operates within the range allowed by the PIPE (Parallel Interface for PCI Express) protocol standard. In order to ensure the reliability of data transmission at the PCIe receiver, it is necessary to incorporate the channel difference tolerance test into the verification process of the entire system and cooperate with the hardware for debugging. Figure 1 As shown, a PCIe channel phase offset verification method based on UVM and FPGA verification platform is provided, including:

[0032] S101. A test environment for simulating full-system verification of the PCIe protocol is built based on UVM, a connection relationship between the verification IP and the design under test is established in the test environment, and the phase offset between the PCIe channels of the design under test is tested and verified using test cases. The phase offset and the phase offset tolerance range of the PCIe channel are locked according to the test verification results. The full-system verification of the PCIe protocol includes timing constraint verification, end-to-end exchange verification, interrupt flow verification and exception verification. The design under test is a deskew circuit.

[0033] like Figure 2 As shown, during phase compensation, because the channel offset allowed by the receiving end in different device versions is different, it is necessary to understand the range allowed by the PCIe controller in the PIPE (Parallel Interface for PCI Express) protocol standard and perform phase compensation within this range.

[0034] The deskew algorithm is to fine-tune the received signal at the receiving end to make it fully synchronized with the local clock. This fine-tuning can be achieved through calibration and compensation in specific frames during data transmission.

[0035] In the embodiment of this case, clock synchronization models are respectively established at the serial and parallel ports of the design under test through hardware description language, so as to utilize the clock synchronization model to simulate different clock skews inside and outside the design under test, and the clock synchronization model is generated using the deskew algorithm.

[0036] That is, the deskew algorithm can be generated through hardware description language. The models of Deskew modules are established at the serial and parallel ports of the controller, including its input and output interfaces, internal logic and control registers, etc., to simulate different clock skews introduced internally and externally, so as to realize the functional simulation of Deskew and ensure its correctness in the simulation environment.

[0037] Specifically, the test environment for simulating the full system verification of the PCIe protocol based on UVM can be designed to include:

[0038] Setting environmental static variables in the test environment according to the function and role of the design under test, wherein the environmental static variables include the test mode, the start range of the read and write port of the design under test, and the port message type and port message length;

[0039] Set up a scoreboard for checking the integrity of the data received by the design under test and an RM queue for simulating the routing and forwarding function of the design under test.

[0040] Build a UVM verification environment, i.e., a PCIE full system environment. The system can simulate PCIE protocol end-to-end exchange verification, interruption process verification, and exception verification, etc. In the full system verification process, the verification process is supported by instantiating VIPs. Initialize the memory of the VIP connected to each port, and construct a queue in RM to simulate the routing function, and further implement the test of message transmission under different deskews.

[0041] The basic structure of PCIe includes root complex, switch and various terminal devices. PCIe subsystem has 4 types of devices, including root complex (RC), PCIe switch, PCIe EndPoint and PCIe Bridge. Figure 3 As shown, the switch device and the RC device can be connected to the PCIe bus upward or downward, and the bottom layer of the PCIe bus is the EP device. When there are multiple lanes on the PCIe link, there is often a problem of phase offset between channels. If the symbols transmitted simultaneously on different lanes reach the receiver at different time points and are then converted from serial to parallel, data confusion will occur. In order to ensure the correct reception and processing of data, the phase offset needs to be tested and verified to eliminate the phase offset between channels. Scoreboard, check the data integrity in the system. RX is the receiving end (receive) and TX is the transmitting end (transport). TX driver is used to drive the transmission line to realize the transmission of TX high-speed serial data. SW switch is a switching device of PCIe, which is equivalent to multiple I / O bridges in the PCI architecture. For the switch, the port in the direction of the root complex is called the upstream port, and the other ports are called the downstream port.

[0042] In the static variable env_cfg, set the RC or EP mode, width, starting address range (separate read and write areas for each port), message type and length, whether to enable the port NTB function, etc. PCIe devices can be divided into root complex (RC), endpoint (EP) and slot (SW) according to their functions and roles. RC can be understood as PCIe host bridge, or PCIe controller, which completes the conversion from CPU domain address to PCI domain address. EP is a network card with a PCIe interface, SATA controller, etc. In RC mode, the device usually does not communicate directly with other devices, but performs data transmission and control through the root endpoint. In EP mode, the device is usually an external device, such as a graphics card, network card, storage controller, etc.

[0043] In the embodiment of this case, the environment static variables in the test environment are rewritten using the specified function in each test case, and the connection between the verification IP and the design under test is delayed and beat configured according to the signal, so as to change the phase offset of the corresponding channel of the design under test according to the specific value of the delay beat configuration. The upstream and downstream docking ports of the design under test can be configured according to the cascade debugging environment, and each group of signals in the channel can be delayed and beat configured at the upstream and downstream docking ports, wherein the specific value of the delay beat is independently configured according to each PCIe channel.

[0044] A set of basic configurations can be randomly generated in env_cfg. During the test, each test case changes the configuration of env_cfg through override in the new function. At the same time, delay beats are performed on the vip and dut chain lines.

[0045] Specifically, add the tx_delay_time parameter between the lanes of the RX end of the vip and the TX end of the dut under test, add the rx_delay_time parameter at the location where the TX end of the vip and the RX end of the dut are connected, and define a macro to assign values ​​to these two sets of parameters and lane_num. This can change the channel skew of a lane in a targeted manner.

[0046] At the same time, a cascade debugging environment is constructed, configured for upstream and downstream port docking, and each group of signals is configured with a beat at the pipe port, with a range of 1 to 256 beats. The beat can be configured independently for each lane. To ensure rigor, lane0, 1, 2, and 3 can be selected to have different beats to confirm the results of link building and packet passing. In this process, we will find that the phenomenon of pulling lane0 and lane2 is completely different. The difference between three beats and two beats can also be confirmed through the vip log of the serial port.

[0047] Initialize the verification IP memory connected to each port of the design under test, and simulate the routing forwarding function in the rm queue to test the message transmission performance of each PCIe port under different phase offsets; use the performance test cases, fault-tolerant test cases and redundant test cases provided by the verification IP to perform end-to-end switching verification, interrupt process verification and exception verification on the design under test.

[0048] Verify the timing constraints to ensure that the deskew circuit can meet the timing requirements in different environments. Use performance test cases to evaluate the performance of the skew circuit in the case of high-speed signals and large data flows. Inject different types of errors, such as input clock jitter, noise, etc., to verify the fault tolerance of the deskew circuit. Implement a redundancy check mechanism to ensure that the deskew circuit can correctly identify and handle possible error conditions.

[0049] S102. A hardware test environment is constructed based on FPGA programmable logic resources to map the hardware environment of the design under test. A docking relationship between the FPGA test board and the tester is established in the hardware test environment. The tester is used to test and obtain the docking and link establishment phenomenon of the FPGA test board. The physical layer receiving end signal is captured and the fault tolerance adjustment range of the physical layer to the design under test is analyzed. The FPGA test board is configured according to the parameters of the design under test.

[0050] The hardware platform is used to perform a docking simulation test of different boards for the PCIe channel of the tested design, and the different boards at least include: boards with different delay addition positions, boards with different RC equipment, and boards with different delay beat counts.

[0051] Combined with FPGA to implement hardware verification, it is closer to the actual working environment of integrated circuits. Its real-time performance allows deskew verification to be carried out under real working conditions. Build a hardware environment and conduct docking tests between different boards and testers. Configure deskew module parameters to enter the test for different delay addition positions, different RC devices, different delay beats, etc. At the same time, the board UP and DP are connected by themselves for testing. Check the UP and DP docking and link establishment phenomena and enumerate them. At the same time, capture RX related signals on the PHY side for phenomenon analysis. Among them, UP is a single-channel motherboard with a maximum of one CPU; DP is a dual-channel motherboard with a maximum of two CPUs.

[0052] This solution combines the verification results of UVM and FPGA to confirm the channel phase offset, so as to optimize the performance of the design under test by utilizing the maximum deskew that the controller can tolerate, the fault tolerance adjustment capability of the physical layer for deskew, the different processing capabilities of PCS and PMA for deskew, etc.

[0053] Further, based on the above method, an embodiment of the present invention also provides a PCIe channel phase offset verification system based on UVM and FPGA verification platform, comprising: a UVM test module and an FPGA test module, wherein:

[0054] The UVM test module is used to build a test environment for simulating the full system verification of the PCIe protocol based on UVM, establish a connection relationship between the verification IP and the design under test in the test environment, and use test cases to test and verify the phase offset between the PCIe channels of the design under test, and lock the phase offset and the phase offset accommodation range of the PCIe channel according to the test verification result. The full system verification of the PCIe protocol includes timing constraint verification, end-to-end exchange verification, interrupt flow verification and exception verification, and the design under test is a deskew circuit;

[0055] The FPGA test module is used to build a hardware test environment for mapping the hardware environment of the design under test based on FPGA programmable logic resources, establish a docking relationship between the FPGA test board and the tester in the hardware test environment, and use the tester to test and obtain the FPGA test board docking and link building phenomenon, capture the physical layer receiving end signal and analyze the fault tolerance adjustment range of the physical layer for the design under test. The FPGA test board is configured according to the design parameters under test.

[0056] In order to verify the effectiveness of this solution, the following is a further explanation based on experimental data:

[0057] like Figure 4 The output data of deskew under different data inputs shows that the input data is not aligned, but the output data is aligned. In the scenario of three-beat link establishment with the verification IP, by checking the log, the specific data is that the COM PAD PAD on the biased lane is nearly aligned with the COM PAD on the other three lanes (2ns difference), and the corresponding state is jumped out after sampling; when playing two beats, it can be seen that the COM code of lane0 will be far away from the COM of lane1, which is roughly in the middle of the loop.

[0058] Even if ltssm reaches L0, that is, smlh_link_up, there may still be problems in the process of credit interaction to achieve rdlh_link_up, so it is necessary to pay attention to the physical layer and data link layer status simultaneously during the process of beating to confirm link establishment.

[0059] Similarly, during the verification of credit interaction, we encountered the phenomenon that SDP and END could not be aligned, that is, the link was successfully established but the message sending and receiving was unstable.

[0060] In the FPGA hardware platform, the controller to be tested is connected to different RCs, and the vivado tool is used to capture the rxvalid, rxdata, and rxdatak signals on the controller side for analysis. Each of the above signals is bound to each lane. In the polling process, the ltssm state machine interacts with the other end through pwr_req and pwr_ack, and the indication signal rxvalid is sampled, which represents the actual valid width considered by the controller. The receiving end data of each lane is rxdata, and rxdatak represents whether the k code is transmitted at this time. If datak has no special indication, the D code is transmitted and no special attention is required. The COM code of concern is the K code, so the three groups of signals need to be combined.

[0061] When PCIe is connected to different RCs, the test results vary. The reasons for the differences are inconsistent support for lane flipping features by RCs and different de-skew processing capabilities of RCs. When deskew is within the range, link establishment and packet sending are normal; when deskew delay is critical, there are two situations: (1) physical layer link establishment and link layer link establishment fail, and (2) link drop after physical layer link establishment is irreversible. When deskew exceeds the range, there are two situations: (1) RC supports lane flipping, and the link is established using a lane without skew delay; (2) RC does not support lane flipping, and the physical layer cannot establish a link. Boundary analysis can be performed based on different phenomena to confirm the actual circuit.

[0062] Since the verification IP in UVM simulation does not support automatic lane flipping, the upstream and downstream ports do not reduce the width to establish a link; if the lane of the deviated port is not lane0, the width will be reduced in the polling stage to establish a link. If the deviation time is too much, if the deviated port is lane2 or lane3, the port will be reduced to 2x, and if the deviated port is lane0, it will be reduced to 1x.

[0063] Overall, the total skew is composed of wire skew+phy skew+mac skew+margin, which means that the maximum skew supported by deskew fifo in gen4 is 5ns+6*2ns+2ns=19ns. The simulation results show that gen3 cannot establish a link when the skew is 28.05ns in currentmode. It is normal in 12ns skew mode, which is consistent with the analysis.

[0064] Through the confirmation and guarantee of the FPGA platform and UVM verification platform, the processing and accommodation range of deskew can be further locked, the stability of the chain building of the design under test can be guaranteed, the situation in the real environment can be better simulated, and more accurate clock calibration can be achieved. In particular, by using UVM upstream and downstream port docking or docking with the verification IP (VIP) in the full system environment, the key phenomena and boundary conditions of deskew can be more fully understood. This method provides designers with more references, enabling them to adjust clock compensation in a targeted manner and make more informed decisions in the process of serial devices (SerDes), physical layer interfaces (PHY) and PIPE protocols. This method not only improves the accuracy and reliability of the design, but also helps to optimize the performance of the overall system, thereby improving the quality and competitiveness of the product.

[0065] Unless otherwise specifically stated, the relative steps, numerical expressions and values ​​of the components and steps set forth in these embodiments do not limit the scope of the present invention.

[0066] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0067] The units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. A person of ordinary skill in the art may use different methods to implement the described functions for each specific application, but such implementation is not considered to be beyond the scope of the present invention.

[0068] Those skilled in the art will appreciate that all or part of the steps in the above method can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, such as a read-only memory, a disk or an optical disk. Optionally, all or part of the steps in the above embodiment can also be implemented using one or more integrated circuits, and accordingly, each module / unit in the above embodiment can be implemented in the form of hardware or in the form of software function modules. The present invention is not limited to any specific form of combination of hardware and software.

[0069] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A PCIe channel phase offset verification method based on UVM and FPGA verification platform, characterized in that: Include: A test environment for simulating full-system verification of the PCIe protocol is built based on UVM, a connection relationship between the verification IP and the design under test is established in the test environment, and the phase offset between the PCIe channels of the design under test is tested and verified using test cases, and the phase offset and the phase offset tolerance range of the PCIe channel are locked according to the test verification results. The full-system verification of the PCIe protocol includes timing constraint verification, end-to-end exchange verification, interrupt process verification and exception verification, and the design under test is a deskew circuit; A hardware test environment is built based on FPGA programmable logic resources to map the hardware environment of the design under test. A docking relationship between the FPGA test board and the tester is established in the hardware test environment. The tester is used to test and obtain the docking and link establishment phenomenon of the FPGA test board. The physical layer receiving end signal is captured and the fault tolerance adjustment range of the physical layer to the design under test is analyzed. The FPGA test board is configured according to the parameters of the design under test.

2. The PCIe channel phase offset verification method based on UVM and FPGA verification platform according to claim 1, wherein Before building a test environment for simulating full-system verification of the PCIe protocol based on UVM, it also includes: Clock synchronization models are established at the serial and parallel ports of the design under test respectively through hardware description language, so as to utilize the clock synchronization models to simulate different clock skews inside and outside the design under test, and the clock synchronization models are generated using deskew algorithm.

3. The PCIe channel phase offset verification method based on UVM and FPGA verification platform according to claim 1 or 2, characterized in that, Based on UVM, a test environment for simulating the full system verification of the PCIe protocol is built, including: Setting environmental static variables in the test environment according to the function and role of the design under test, wherein the environmental static variables include the test mode, the start range of the read and write port of the design under test, and the port message type and port message length; Set up a scoreboard for checking the integrity of the data received by the design under test and an RM queue for simulating the routing and forwarding function of the design under test.

4. The PCIe channel phase offset verification method based on UVM and FPGA verification platform according to claim 1, characterized in that, Establishing the connection between the verification IP and the design under test in the test environment, including: In each test case in the verification IP, the specified function is used to rewrite the environmental static variables in the test environment. The connection between the verification IP and the design under test is delayed and beat configured according to the signal, so as to change the phase offset of the corresponding channel of the design under test according to the specific value of the delayed beat configuration.

5. The PCIe channel phase offset verification method based on UVM and FPGA verification platform according to claim 1 or 4, characterized in that, The test environment establishes the connection between the verification IP and the design under test, and also includes: The upstream and downstream docking ports of the design under test are configured according to the cascade debugging environment, and delay beat configuration is performed on each group of signals in the channel at the upstream and downstream docking ports, wherein the specific value of the delay beat is independently configured according to each PCIe channel.

6. The PCIe channel phase offset verification method based on UVM and FPGA verification platform according to claim 1, characterized in that, The test cases are used to test and verify the phase offset between PCIe channels of the tested design, including: Initialize the verification IP memory connected to each port of the design under test, and simulate the routing forwarding function in the rm queue to test the message transmission performance of each PCIe port under different phase offsets.

7. The PCIe channel phase offset verification method based on UVM and FPGA verification platform according to claim 1, characterized in that, The test cases are used to test and verify the phase offset between the PCIe channels of the tested design, which also includes: The performance test cases, fault-tolerant test cases and redundancy test cases provided by the verification IP are used to perform end-to-end exchange verification, interruption process verification and exception verification on the design under test respectively.

8. A PCIe channel phase offset verification system based on UVM and FPGA verification platform, characterized in that: Contains: UVM test module and FPGA test module, among which, The UVM test module is used to build a test environment for simulating the full system verification of the PCIe protocol based on UVM, establish a connection relationship between the verification IP and the design under test in the test environment, and use test cases to test and verify the phase offset between the PCIe channels of the design under test, and lock the phase offset and the phase offset accommodation range of the PCIe channel according to the test verification result. The full system verification of the PCIe protocol includes timing constraint verification, end-to-end exchange verification, interrupt flow verification and exception verification, and the design under test is a deskew circuit; The FPGA test module is used to build a hardware test environment for mapping the hardware environment of the design under test based on FPGA programmable logic resources, establish a docking relationship between the FPGA test board and the tester in the hardware test environment, and use the tester to test and obtain the FPGA test board docking and link building phenomenon, capture the physical layer receiving end signal and analyze the fault tolerance adjustment range of the physical layer for the design under test. The FPGA test board is configured according to the design parameters under test.

9. An electronic device, characterized in that: include: at least one processor, and a memory coupled to the at least one processor; The memory stores a computer program, and the computer program can be executed by the at least one processor to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the method according to any one of claims 1 to 7 can be implemented.

Citation Information

Cited By

  • Equipment debugging method and device, equipment, equipment system and medium

    CN119697064A

  • UVM verification platform supporting single-port and double-port pcie SSD

    CN119782068A

  • A UVM verification system supporting single and dual-port PCIe SSDs

    CN119782068B