PCIe device module verification system
The PCIe device module verification system based on UVM and PCIe intellectual property core verification module solves the problems of low efficiency and poor reusability of PCIe device module verification in the existing technology, realizes a verification environment that is quickly built and conveniently applied, and reduces the learning cost. Cost and risk of missing defects are reduced, and verification efficiency is improved.
Patent Information
- Application Number
- CN202411043412.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-07-31
AI Technical Summary
The existing technology has low efficiency and poor reusability when verifying PCIe device modules, making it difficult to find design defects and requiring a lot of time and learning costs.
Designed a PCIe device module verification system based on UVM and PCIe intellectual property core verification module, including test case layer, custom verification environment layer and custom verification platform agent module, connected through custom interface and intellectual property core verification module interface The PCIe device module realizes a verification environment for rapid construction and convenient application.
It reduces the time to build the verification environment, reduces the possibility of missing defects, improves verification efficiency, simplifies the learning investment in the PCIe intellectual property core verification module, enables rapid development of verification use cases, and improves the reusability of the verification environment.
Smart Images

Figure CN118586332B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of chip testing, and in particular to a PCIe device module verification system. Background Art
[0002] With the development of digital integrated circuits, chip verification is an important means to find design code defects before tape-out and improve the success rate of chip tape-out. The demand for chip verification is also growing, and digital chip verification is developing rapidly. The development and improvement of the Universal Verification Methodology (UVM) has greatly improved the reusability and verification efficiency of the verification environment. The latest Verification Intellectual Property (VIP) solution further saves time and reduces risks.
[0003] Peripheral Component Interconnect express (PCIe) is a high-speed serial computer expansion bus standard that has become the industry standard for connecting almost all internal computer components. As an important high-speed data transmission bus, the PCIe interface has greatly increased the number of products using PCIe devices, so the demand for verifying chips or chip modules that contain PCIe standards is increasing, and the importance is also increasing.
[0004] The existing technical paths for verifying PCIe device modules mainly include the following three:
[0005] (1) Developing a PCIe device module verification platform by yourself. This method requires a lot of manpower and time to develop, resulting in extremely low efficiency and benefits. It is also easy to miss design defects due to the verification platform developers' misunderstanding of the protocol.
[0006] (2) By using the Field Programmable Gate Array (FPGA) to develop test cases for verification, the chip design code is synthesized using the tools provided by the FPGA manufacturer and burned into the FPGA, and then connected to the corresponding PCIe device for real chip communication transmission. Although this method can allow chip verification to be separated from EDA simulation and enter real physical verification, it is difficult to discover hidden design defects and debug discovered problems due to the inability to monitor chip internal signals in real time and the difficulty in constructing a large number of random test cases.
[0007] (3) The PCIe device module is verified through the verification environment sample provided by the PCIe intellectual property core verification module. Although there is no need to develop an additional verification environment, the verification environment sample provided by the PCIe intellectual property core verification module is more difficult to apply: not only does it require learning a large amount of information provided by the intellectual property core verification module, but the steps for constructing test cases are also more cumbersome and difficult. Whenever a new test scenario needs to be constructed, it is necessary to first consult the information and then construct the test case according to the requirements of the intellectual property core verification module. Therefore, the reusability is also poor.
[0008] The present invention provides a PCIe device module verification system based on UVM and PCIe intellectual property core verification modules, which realizes the rapid construction and convenient application of the verification environment of the PCIe device module, simplifies the verification process, shortens the simulation time, and improves the verification efficiency of the PCIe device module. Summary of the invention
[0009] In order to alleviate or partially alleviate the above technical problems, the solution of the present invention is as follows:
[0010] A PCIe device module verification system comprises: a test case layer, the test case layer comprises a test sequence library and a verification environment layer, wherein the verification environment layer comprises a PCIe intellectual property core verification module and a custom verification environment layer, and the custom verification environment layer comprises a custom verification platform agent module; a PCIe device module is configured to be connected to a custom driver in the custom verification platform agent module through a custom interface, and to be connected to the PCIe intellectual property core verification module through an intellectual property core verification module interface; wherein the test sequence library is configured to send a custom test sequence or / and a test sequence provided by the PCIe intellectual property core verification module according to a preset test scenario.
[0011] Furthermore, the custom verification environment layer is used to configure a custom verification platform agent module according to different preset test scenarios.
[0012] Furthermore, the custom verification platform agent module includes: a custom sequence transmitter; if the test sequence library sends a custom test sequence, the custom test sequence is sent to the custom sequence transmitter, and the custom sequence transmitter sends the custom test sequence containing the transaction package to the custom driver; the custom driver receives the custom test sequence containing the transaction package and converts it into a VIP test sequence stimulus, and sends it to the PCIe intellectual property core verification module.
[0013] Furthermore, the custom verification platform agent module includes: a custom monitor; the verification environment layer also includes: a custom scoring module; the custom monitor monitors the behavior and status of the PCIe device module and the PCIe intellectual property core verification module in real time through a custom interface to obtain a custom transaction package; the custom monitor sends the custom transaction package to the custom scoring module to determine whether the test passes.
[0014] Furthermore, the verification environment layer also includes: a custom reference model; the custom reference model receives a custom transaction package from a custom driver, converts the received custom transaction package into an expected transaction package, and then sends the expected transaction package to a custom scoring module to determine whether the test passes.
[0015] Furthermore, whether the custom reference model receives a custom transaction package from the custom driver depends on a preset test scenario; if the preset test scenario does not support the custom reference model receiving a custom transaction package from the custom driver, the PCIe intellectual property core verification module determines whether the test passes.
[0016] Further, if the test sequence library sends a custom test sequence, the test stimulus is sent to the PCIe device module through the intellectual property core verification module interface, or the test stimulus is sent to the PCIe device module through the custom interface.
[0017] Further, if the test sequence library sends a test sequence provided by the PCIe intellectual property core verification module, the test stimulus is sent to the PCIe device module through the intellectual property core verification module interface.
[0018] Furthermore, the custom verification platform agent module includes: a custom driver, a custom monitor and a custom sequence transmitter; the PCIe intellectual property core verification module includes: a driver in the intellectual property core verification module, a monitor in the intellectual property core verification module and a driver sequence transmitter in the intellectual property core verification module.
[0019] Furthermore, the custom monitor monitors the transaction packets sent by the PCIe device module to the PCIe intellectual property core verification module.
[0020] The technical solution of the present invention has one or more of the following beneficial technical effects:
[0021] (1) The PCIe intellectual property core verification module is used to reduce the time of setting up the verification environment, avoid incomplete verification coverage, and ensure the quality of verification.
[0022] (2) Using electronic design automation simulation tools, test cases can be easily constructed through the System Verilog hardware description and verification language and UVM, reducing the possibility of missing defects.
[0023] (3) The PCIe intellectual property core verification module is further encapsulated by means of a test sequence library and a custom test sequence, and the test scenario is pre-set, so that users can quickly develop verification use cases through the present invention, reduce the learning investment in the PCIe intellectual property core verification module, and do not need to have an in-depth understanding of the mechanism and structure of the PCIe intellectual property core verification module.
[0024] In addition, other beneficial effects of the present invention will be mentioned in the specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 The invention relates to a PCIe device module verification system. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of 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.
[0027] In order to clearly describe the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order.
[0028] Figure 1 The PCIe device module verification system of the present invention is demonstrated, which is a verification system based on UVM and PCIe intellectual property core verification module. The top layer of the test platform includes the design module to be tested and the test case layer.
[0029] Figure 1 The solid line represents the information transmission between different submodules in the same module, and the dotted line represents the information transmission between submodules in different modules. If a module is connected to another module, in a specific embodiment, the submodule of the module can be connected to the other module.
[0030] The top layer of the test platform is used to initialize its own initial state and environment, control the start and end of simulation test cases, and instantiate and connect the design module to be tested and the test case layer as well as the two interfaces used to connect them, namely the intellectual property core verification module interface and the custom interface.
[0031] In the present invention, the design module to be tested is a PCIe device module, which is a chip at least including a PCIe interface, and is usually a register transfer level code.
[0032] The test case layer and the PCIe device module are connected through two interfaces, namely the aforementioned intellectual property core verification module interface and the custom interface. Among them, the intellectual property core verification module interface connects the PCIe intellectual property core verification module and the PCIe device module in the test case layer, and the custom interface connects the test case layer and the PCIe device module. Specifically, the custom interface connects the custom driver in the test case layer and the PCIe device module.
[0033] The custom interface of the present invention is constructed by the interface component in the System Verilog hardware description and verification language, and the configuration information of the custom interface is set according to the instantiated custom verification environment layer. The intellectual property core verification module interface in the present invention is the interface provided by the PCIe intellectual property core verification module.
[0034] The test case layer is the parent class of all test cases. It is used to instantiate the verification environment layer and configuration parameter module, create test cases for testing PCIe device modules, and start the default test sequence library through the UVM test sequence mechanism to generate different test sequence stimuli.
[0035] In the present invention, test stimulus is usually more than one type, including test sequence stimulus and other types of stimulus. Here, other types of stimulus, such as transmission packet stimulus, stimulus generated by the interface itself, or stimulus generated by the driver, etc. Test sequence is a unique technical term in the UVM field. If the test sequence is sent to the design module to be tested, the test sequence is called test sequence stimulus. Test case can generate one or more test stimuli, such as a combination of multiple test sequences.
[0036] According to different test requirements, the configuration of different test cases and the test sequences used are usually different and will be adjusted according to different test scenarios. The test stimulus is transmitted to the PCIe device module through the custom interface and the intellectual property core verification module interface.
[0037] For example, the test scenario may be a performance test scenario, an abnormality test scenario, a functional test scenario, etc., but the present invention is not limited thereto and is not thereby limited.
[0038] The test sequence library proposed in the present invention includes a custom test sequence and a test sequence provided by a PCIe intellectual property core verification module. The test sequence library of the present invention can provide a large number of test sequences required by applications or test scenarios, which greatly facilitates verification personnel to develop test cases. The test sequence library is configured to send a custom test sequence or / and a test sequence provided by a PCIe intellectual property core verification module according to a preset test scenario.
[0039] The test sequence library is implemented through the uvm_sequence_library in UVM. All the test sequence stimuli needed are added in the uvm_sequence_library, and the UVM mechanism can be used to send the test sequence stimuli in the test sequence library randomly and sequentially. In the verification environment layer, multiple test sequence libraries can also be created for different test scenarios.
[0040] Different test sequences are generated according to different test scenarios. The test sequence library can directly generate the test sequence provided by the PCIe intellectual property core verification module and send it to the PCIe device module through the PCIe intellectual property core verification module.
[0041] In addition, the test sequence library can also generate custom test sequences and send test stimuli to the PCIe device module through the custom verification environment layer. The test stimuli here include test sequence stimuli.
[0042] The custom test sequence of the present invention includes custom transactions and transactions provided by the PCIe intellectual property core verification module. According to the characteristics of the PCIe device module, several preset test scenarios are pre-built, and the custom test sequence is directly called in at least one preset test scenario in combination with the custom transactions and the transactions provided by the PCIe intellectual property core verification module. This makes it unnecessary for users who use the verification solution of the present invention to understand the cumbersome test mechanism of the PCIe intellectual property core verification module, and realizes the rapid construction and convenient application of the verification environment of the PCIe device module.
[0043] Custom test sequences can be implemented through UVM's uvm_sequence_item. The uvm_sequence_item includes all the test stimuli in the test case, and these stimuli are passed to other components or modules in the form of transaction packets through the test sequence mechanism in UVM, or can be passed to the components or modules of the PCIe intellectual property core verification module through the test stimuli provided by the PCIe intellectual property core verification module.
[0044] For the parameter configuration module, the test case can configure each module in the test case layer through the parameter configuration module.
[0045] The verification environment layer includes the custom verification environment layer, the verification environment layer provided by the PCIe intellectual property core verification module, the custom reference model, and the custom scoring module. The verification environment layer is used to instantiate and connect the custom verification environment layer and the verification environment layer provided by the PCIe intellectual property core verification module, and is used to connect the transmission ports between various modules or components.
[0046] The custom verification environment layer includes a custom verification platform agent module. The custom verification environment layer is used to configure the custom verification platform agent module according to different preset test scenarios.
[0047] For custom testbench agent modules, include custom sequencer, custom driver, and custom monitor.
[0048] The custom sequence transmitter receives the test sequence, obtains the transmitted transaction, and sends the custom test sequence containing the transaction package to the custom driver. The custom driver receives the custom test sequence containing the transaction package, parses the transaction package, converts it into a VIP test sequence stimulus, and sends it to the PCIe intellectual property core verification module. At the same time, if the preset test scenario supports it, the custom driver will also send the custom transaction package to the custom reference model.
[0049] The custom driver uses the test sequence mechanism of UVM to receive the custom test sequence containing the transaction package through the seq_item_port port, and parses the received transaction package. Generally, the test sequence includes or carries the transaction package. According to the information in the transaction package, it is converted into a custom test sequence that can be recognized by the PCIe intellectual property core verification module, and it depends on the preset test scenario to decide whether to send the converted custom test sequence to the PCIe intellectual property core verification module. In some test scenarios, the custom driver sends the test stimulus to the PCIe device module through the PCIe intellectual property core verification module and the intellectual property core verification module interface; in other test scenarios, the custom driver sends the test stimulus to the PCIe device module through the custom interface.
[0050] The custom monitor monitors the behavior and status of the PCIe device module and the PCIe intellectual property core verification module in real time through a custom interface, actually monitors and constructs a custom transaction package, and through a port connected to the custom scoring module, the custom monitor sends the monitored custom transaction package to the custom scoring module to determine whether the test passes.
[0051] Furthermore, the custom monitor monitors the transaction packets sent by the PCIe device module to the PCIe intellectual property core verification module, as well as the behavior and status of the PCIe intellectual property core verification module, and combines them into a custom transaction packet, which is sent to the custom scoring module to determine whether the test passes.
[0052] In the present invention, the test sequence library sends a custom test sequence or / and a test sequence provided by the PCIe intellectual property core verification module to the PCIe device module. It can be divided into the following situations:
[0053] If the test sequence provided by the PCIe intellectual property core verification module is sent, the VIP test sequence stimulus is sent to the PCIe intellectual property core verification module, and the test stimulus is sent to the PCIe device module through the intellectual property core verification module interface.
[0054] Further, depending on the test scenario, according to the test sequence provided by the PCIe IP core verification module, the custom transaction package generated by the custom driver is also sent to the custom reference model and used to generate the expected transaction package. In other test scenarios, it is not necessary to send the custom transaction package to the custom reference model.
[0055] If a custom test sequence is sent, the custom test sequence is first sent to the custom sequence transmitter, and then the custom test sequence containing the transaction package is sent to the custom driver. Then the custom driver has two processing methods: one is that the custom driver disassembles the custom test sequence containing the transaction package into several (one or more) test sequences provided by the PCIe intellectual property core verification module, and sends the VIP test sequence stimulus to the PCIe intellectual property core verification module, and then sends the test stimulus to the PCIe device module through the intellectual property core verification module interface; the second is that the custom driver directly sends the test stimulus or part of the test stimulus to the PCIe device module through the custom interface. For example, these two processing methods can be driven independently and can coexist.
[0056] Further, when sending a custom test sequence, if it is disassembled into several test sequences provided by the PCIe intellectual property core verification module, if the preset test scenario supports it, the relevant custom transaction package output by the custom driver is sent to the custom reference model.
[0057] Furthermore, when sending a custom test sequence, if the custom driver directly sends the test stimulus to the PCIe device module through the custom interface, if the preset test scenario supports it, the relevant custom transaction package output by the custom driver is sent to the custom reference model.
[0058] The verification environment layer provided by the PCIe intellectual property core verification module is located in the PCIe intellectual property core verification module. The PCIe intellectual property core verification module at least includes: a driver in the intellectual property core verification module, a monitor in the intellectual property core verification module, a sequence transmitter in the intellectual property core verification module, a reference model in the intellectual property core verification module, a scoring module in the intellectual property core verification module, etc., which can accept transaction packets from the test sequence library and the driver in the PCIe intellectual property core verification module, convert them into test stimuli, and then send them to the PCIe device module through the intellectual property core verification module interface.
[0059] In other words, compared with the conventional technical means that only provide a set of test judgment mechanisms through the PCIe intellectual property core verification module, the present invention also provides an additional set of test judgment mechanisms including a custom reference model, a custom monitor, and a custom scoring module on this basis, which enables the present invention to realize the construction and application of the verification environment more quickly.
[0060] For a custom reference model, the custom reference model and the custom driver are connected via a transmission port, and the custom reference model receives a custom transaction package from the custom driver via the transmission port. Then, the custom reference model converts the received custom transaction package into an expected transaction package, and then sends the expected transaction package to the custom scoring module to determine whether the test passes.
[0061] For the custom scoring module, the expected transaction package output by the custom reference model and the custom transaction package output by the custom monitor are received through the corresponding transmission ports, and then the expected transaction package output by the custom reference model and the custom transaction package output by the custom monitor are compared according to the test scenario. If the comparison results are consistent, the test is considered to have passed; otherwise, the test is considered to have failed, and relevant information is output, such as by printing.
[0062] In summary, the present invention reduces the application complexity of the PCIe intellectual property core verification module through mechanisms such as a customized verification environment, a test sequence library, and a customized test sequence, reduces a large amount of learning time for the PCIe intellectual property core verification module for verification personnel, avoids the complex use case construction mechanism of the PCIe intellectual property core verification module, speeds up the construction of the PCIe device verification environment, speeds up the verification progress and improves the verification efficiency, while retaining the original use case construction mechanism of the PCIe intellectual property core verification module to improve the flexibility of the present invention; and the application of the reference model and the scoring module ensures the correctness of the test stimulus sending and the behavior of the design module to be tested, and improves the efficiency of the verification personnel in debugging the design module to be tested; through the pre-set test scenario, the verification of the design module to be tested is more comprehensive, and the possibility of missing defects in the design module to be tested is reduced.
[0063] In order to better illustrate the present invention, numerous specific details are provided in the above specific embodiments. It should be understood by those skilled in the art that the present invention can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present invention.
[0064] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A PCIe device module verification system, It is characterized in that include: A test case layer, the test case layer includes a test sequence library and a verification environment layer, wherein the verification environment layer includes a PCIe intellectual property core verification module and a custom verification environment layer, and the custom verification environment layer includes a custom verification platform agent module; The PCIe device module is configured to be connected to a custom driver in the custom verification platform agent module through a custom interface and to be connected to the PCIe intellectual property core verification module through an intellectual property core verification module interface; wherein, The test sequence library is configured to send a custom test sequence or / and a test sequence provided by the PCIe intellectual property core verification module according to a preset test scenario; The custom verification environment layer is used to configure the custom verification platform agent module according to different preset test scenarios; The custom verification platform agent module includes: a custom sequence transmitter; If the test sequence library sends a custom test sequence, the custom test sequence is sent to the custom sequence sender, and the custom sequence sender sends the custom test sequence including the transaction package to the custom driver; The custom driver receives the custom test sequence including the transaction package and converts it into a VIP test sequence stimulus, and sends it to the PCIe intellectual property core verification module; The custom verification platform agent module includes: a custom monitor; The verification environment layer also includes: a custom scoring module; The custom monitor monitors the behavior and status of the PCIe device module and the PCIe intellectual property core verification module in real time through a custom interface to obtain a custom transaction package; The custom monitor sends the custom transaction package to a custom scoring module for determining whether the test passes; The verification environment layer also includes: a custom reference model; The custom reference model receives a custom transaction package from a custom driver, converts the received custom transaction package into an expected transaction package, and then sends the expected transaction package to a custom scoring module to determine whether the test passes.
2. The PCIe device module verification system according to claim 1, Features: Whether the custom reference model receives the custom transaction package from the custom driver depends on the preset test scenario; If the preset test scenario does not support the custom reference model receiving the custom transaction packet from the custom driver, the PCIe intellectual property core verification module determines whether the test passes.
3. The PCIe device module verification system according to claim 2, Features: If the test sequence library sends a custom test sequence, the test stimulus is sent to the PCIe device module through the intellectual property core verification module interface, or the test stimulus is sent to the PCIe device module through the custom interface.
4. The PCIe device module verification system according to claim 3, Features: If the test sequence library sends the test sequence provided by the PCIe intellectual property core verification module, the test stimulus is sent to the PCIe device module through the intellectual property core verification module interface.
5. The PCIe device module verification system according to claim 4, Features: The custom verification platform agent module includes: a custom driver, a custom monitor and a custom sequence transmitter; The PCIe intellectual property core verification module includes: a driver in the intellectual property core verification module, a monitor in the intellectual property core verification module and a sequence transmitter in the intellectual property core verification module.
6. The PCIe device module verification system according to claim 5, Features: The custom monitor monitors the transaction packets sent by the PCIe device module to the PCIe intellectual property core verification module.
