PCIe device module verification method
The combination of the custom verification environment layer and the PCIe intellectual property core verification module simplifies the verification process of the PCIe device module, solves the problems of verification complexity and low efficiency in the existing technology, and achieves rapid construction and efficient verification.
Patent Information
- Application Number
- CN202411043334.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-07-31
AI Technical Summary
The method of verifying PCIe device modules in the prior art requires cumbersome test case construction steps, resulting in complex verification environment construction and low efficiency.
Using a custom verification environment layer and PCIe intellectual property core verification module, custom or VIP test sequences are sent through the test sequence library, combined with custom drivers and monitors, to quickly build a verification environment and simplify the verification process.
It achieves rapid verification environment construction and convenient application of PCIe device modules, shortens simulation time, and improves verification efficiency.
Smart Images

Figure CN118569160B_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 method. Background Art
[0002] With the development of digital integrated circuits, chip verification is an important means to discover 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 also developing rapidly.
[0003] From the early use of Verilog hardware description language to build a simple verification environment platform, and simple verification of different design codes in turn, to the introduction of the higher-level object-oriented System Verilog hardware description and verification language, and the creation of a more complete verification platform, to the development and improvement of today's verification methodology (Universal Verification Methodology, UVM), the reusability and verification efficiency of the verification environment have been greatly improved.
[0004] In order to save time and reduce risks, electronic design automation manufacturers have launched some efficient and reliable intellectual property verification (Verification Intellectual Property, VIP) modules, which can be implanted in the user's verification environment for the connection and inspection of protocol standards and interfaces. The intellectual property verification module can usually provide interfaces based on the SystemVerilog hardware description and verification language and UVM, and users can directly introduce the intellectual property verification module into their own verification environment for use. The intellectual property verification module imitates the protocol of specific requirements and generates corresponding incentives for verification. Referencing the intellectual property verification module can greatly reduce the verification workload and improve the verification efficiency.
[0005] 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.
[0006] In the prior art, the method for verifying PCIe device modules has the following main disadvantages: when setting up a verification environment, especially for a channel test scenario, cumbersome test case construction steps are required.
[0007] The present invention provides a PCIe device module verification method, which can realize the rapid construction and convenient application of the verification environment of the PCIe device module, simplify the verification process, shorten the simulation time, and improve the verification efficiency of the PCIe device module. Summary of the invention
[0008] In order to alleviate or partially alleviate the above technical problems, the solution of the present invention is as follows:
[0009] A PCIe device module verification method is applied to a PCIe device module verification system, wherein the PCIe device module verification system includes a custom verification environment layer and a verification environment layer in a PCIe intellectual property core verification module, and the custom verification environment layer includes at least a custom driver and a custom sequence transmitter. The PCIe device module verification method includes at least the following steps:
[0010] Step S20: after sending the custom test sequence to the custom sequence transmitter through the test sequence library, the custom sequence transmitter sends the custom test sequence containing the transaction package to the custom driver, and enters step S30; or / and, sending the test sequence provided by the PCIe intellectual property core verification module to the PCIe intellectual property core verification module through the test sequence library, and enters step S40;
[0011] Step S30: the custom driver sends a VIP test sequence stimulus to the PCIe intellectual property core verification module, and the PCIe intellectual property core verification module sends the test stimulus to the PCIe device module through the intellectual property core verification module interface; or / and, the custom driver sends the test stimulus to the PCIe device module through the custom interface; then, proceed to step S50;
[0012] Step S40: the PCIe intellectual property verification module sends a test stimulus to the PCIe device module through the intellectual property verification module interface; then, proceeding to step S50;
[0013] Step S50: If the preset test scenario supports test judgment in the custom verification environment layer, the custom driver also sends a custom transaction package to the custom reference model and performs test judgment in the custom verification environment layer; otherwise, test judgment is performed in the verification environment layer of the PCIe intellectual property core verification module.
[0014] Furthermore, the custom verification environment layer also includes: a custom monitor.
[0015] Furthermore, the custom monitor monitors the behavior and status of the PCIe device module and the transaction package sent by the PCIe device module to the PCIe intellectual property core verification module, and then composes a custom transaction package and sends it to the custom scoring module; the custom scoring module compares the custom transaction package sent by the custom monitor with the expected transaction package sent by the custom reference model, determines whether the test passes, and outputs the test results.
[0016] Furthermore, in step S30, before the custom driver sends the VIP test sequence stimulus to the PCIe intellectual property core verification module, the custom driver disassembles the custom test sequence into several test sequences provided by the PCIe intellectual property core verification module.
[0017] Furthermore, the custom driver receives the custom test sequence including the transaction package, parses the transaction package, and then converts it into a VIP test sequence stimulus.
[0018] Furthermore, before step S20, the following steps are also included: Step S10: start the test case and test sequence library.
[0019] Furthermore, the PCIe device module verification system includes: a test case layer and a PCIe device module; the test case layer includes: a verification environment layer; the verification environment layer includes: a PCIe intellectual property core verification module, a custom verification environment layer, a custom scoring module and a custom reference model.
[0020] Furthermore, the custom verification environment layer includes a custom verification platform agent module; the custom verification platform agent module includes: a custom driver, a custom sequence transmitter and a custom monitor.
[0021] Furthermore, the custom interface connects the custom driver and the PCIe device module.
[0022] Furthermore, the intellectual property verification module interface connects the PCIe intellectual property verification module and the PCIe device module.
[0023] The technical solution of the present invention has one or more of the following beneficial technical effects:
[0024] 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, realize the rapid construction and convenient application of the verification environment for the PCIe device module, simplify the verification process, shorten the simulation time, and improve the verification efficiency of the PCIe device module.
[0025] In addition, other beneficial effects of the present invention will be mentioned in the specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 It is a schematic diagram of the different flow directions of two different test sequences being sent to the DUT;
[0027] Figure 2 It is a schematic diagram of information transmission in which a test stimulus is sent through an intellectual property verification module interface and a test judgment is performed in a custom verification environment layer;
[0028] Figure 3 It is a process flow chart from test sequence to output test results. DETAILED DESCRIPTION
[0029] 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.
[0030] 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.
[0031] The PCIe device module verification method disclosed in the present invention comprises the following steps:
[0032] Step S10: Start the test case and test sequence library.
[0033] Specifically, the test case and test sequence library can be launched through the UVM environment through the testbench top level.
[0034] Figure 1 The schematic diagram shows two different flow directions of two different test sequences being sent to the Design Under Test (DUT). In the present invention, the DUT is a PCIe device module, specifically a chip including at least a PCIe interface, usually a register transfer level code.
[0035] The top layer of the test platform involved in the present invention includes the DUT and the test case layer. The top layer of the test platform is used to initialize its own initial state and environment and control the start and end of the simulation test case. The test case layer includes the verification environment layer, the verification environment layer, the test sequence library, etc.
[0036] The test case layer 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 test sequence mechanism of UVM to generate different test sequence stimuli.
[0037] The verification environment layer of the present invention includes a PCIe intellectual property core verification module, a custom verification environment layer, a custom scoring module, a custom reference model, etc. The custom verification environment layer includes a custom verification platform agent module. The custom verification platform agent module includes a custom driver, a custom sequence transmitter, and a custom monitor. The custom verification environment layer provides a set of test judgment mechanisms in the present invention.
[0038] In addition, the PCIe intellectual property core verification module also provides a verification environment layer, which is located in the PCIe intellectual property core verification module and is another test judgment mechanism in the present invention.
[0039] There are two interfaces connected to the DUT, namely the custom interface 700 and the intellectual property core verification module interface 900. Among them, the intellectual property core verification module interface 900 connects the PCIe intellectual property core verification module and the PCIe device module in the test case layer, and the custom interface 700 connects the custom verification environment layer and the PCIe device module. Specifically, the custom interface 700 connects the custom driver in the custom verification environment layer and the PCIe device module.
[0040] According to different test scenarios, 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 700 and the intellectual property core verification module interface 900.
[0041] The custom interface 700 of the present invention can be constructed by using the interface components in the System Verilog hardware description and verification language, and the configuration information of the custom interface 700 is set according to the instantiated custom verification environment layer.
[0042] In the present invention, a test case may generate one or more test stimuli, such as a combination of multiple test sequences. Test stimuli are usually of more than one type, including test sequence stimuli and other types of stimuli. Other types of stimuli include transmission packet stimuli, stimuli generated by the interface itself, stimuli generated by the driver, etc. For a test sequence, if the test sequence is sent to the DUT, the test sequence is called a test sequence stimulus.
[0043] Furthermore, in the test case, each module is configured through the parameter configuration module in the test case layer, and the test sequence library is started.
[0044] Step S20: After sending the custom test sequence to the custom sequence transmitter through the test sequence library, the custom sequence transmitter sends the custom test sequence containing the transaction package to the custom driver and enters step S30; or / and, sending the test sequence provided by the PCIe intellectual property core verification module to the PCIe intellectual property core verification module through the test sequence library and entering step S40.
[0045] The test sequence library proposed in the present invention includes custom test sequences and test sequences provided by the PCIe intellectual property core verification module. The test sequence library proposed in the present invention can provide a large number of test sequences required by application / test scenarios, which greatly facilitates the development of test cases by verification personnel. The test sequence library is configured to send custom test sequences and / or test sequences provided by the PCIe intellectual property core verification module according to a preset test scenario.
[0046] The user-defined test sequence of the present invention includes user-defined transactions and transactions provided by the PCIe intellectual property core verification module. The user-defined test sequence can be implemented through the uvm_sequence_item of UVM.
[0047] According to the characteristics of the PCIe device module, several preset test scenarios are pre-built. Combined with the custom transactions and the transactions provided by the PCIe intellectual property core verification module, the custom test sequence is directly called in at least one preset test scenario. This avoids the need for users to understand the cumbersome test mechanism of the PCIe intellectual property core verification module in detail, and realizes the rapid construction and convenient application of the verification environment for the PCIe device module.
[0048] For example, the test scenario may be a performance test scenario, an exception test scenario, a functional test scenario, or the like.
[0049] The configuration sequence library can also send the test sequence provided by the PCIe intellectual property core verification module, or can choose to send a custom test sequence. For two different test sequences, as described in step S20, the subsequent processing flows are different.
[0050] Furthermore, the configuration sequence library may select to send the test sequence randomly or in a cycle.
[0051] Step S30: The custom driver sends a VIP test sequence stimulus to the PCIe intellectual property core verification module, and the PCIe intellectual property core verification module sends the test stimulus to the PCIe device module through the intellectual property core verification module interface; or / and, the custom driver sends the test stimulus to the PCIe device module through the custom interface. Then, enter step S50.
[0052] Specifically, after the custom test sequence is sent to the custom sequence transmitter, the custom sequence transmitter sends the custom test sequence containing the transaction package to the custom driver; the custom driver sends the VIP test sequence stimulus to the PCIe intellectual property core verification module, and the PCIe intellectual property core verification module sends the test stimulus to the PCIe device module through the intellectual property core verification module interface 900; or / and, the custom driver sends the test stimulus to the PCIe device module through the custom interface 700.
[0053] Figure 2 The schematic diagram of information transmission for sending test stimulus via the intellectual property verification module interface and executing test judgment in the custom verification environment layer is shown. The custom sequence transmitter receives the test sequence, especially the custom test sequence, obtains the transmitted transaction, and sends the custom test sequence including the transaction package to the custom driver.
[0054] Furthermore, when the preset test scenario supports it, the custom driver will also send a custom transaction package to the custom reference model.
[0055] Furthermore, the custom driver decomposes the custom test sequence containing the transaction package into several test sequences provided by the PCIe intellectual property core verification module. When used as input to the PCIe intellectual property verification module, the test sequence provided by the PCIe intellectual property core verification module becomes the VIP test sequence stimulus of the PCIe intellectual property verification module.
[0056] Furthermore, the custom driver receives the custom test sequence including the transaction packet, parses the transaction packet, converts it into a VIP test sequence stimulus, and sends it to the PCIe intellectual property core verification module.
[0057] In the present invention, the processing of the custom test sequence by the custom driver includes the following two ways, and the two ways can exist at the same time.
[0058] The first method is to decompose the custom test sequence into several (one or more) test sequences provided by the PCIe intellectual property core verification module, and then send the VIP test sequence stimulus to the PCIe intellectual property core verification module, which then sends the test stimulus to the DUT through the intellectual property core verification module interface 900.
[0059] The second way is: the custom driver sends the test stimulus to the DUT through the custom interface 700 .
[0060] For the above two methods that can coexist in the same embodiment, whether the custom driver sends the custom transaction package to the custom reference model depends on whether the preset test scenario is supported. If supported, it is sent, otherwise it is not sent.
[0061] Step S40: The PCIe intellectual property verification module sends a test stimulus to the PCIe device module through the intellectual property verification module interface. Then, the process proceeds to step S50.
[0062] Furthermore, when the test sequence provided by the PCIe intellectual property core verification module is sent through the test sequence library, whether the custom driver sends the custom transaction packet to the custom reference model also depends on whether the preset test scenario is supported.
[0063] Step S50: If the preset test scenario supports test judgment in the custom verification environment layer, the custom driver also sends a custom transaction package to the custom reference model and performs test judgment in the custom verification environment layer; otherwise, test judgment is performed in the verification environment layer of the PCIe intellectual property core verification module.
[0064] It should be noted that, since the present invention can have a variety of different implementation methods to choose from or combine, multiple parallel technical solutions are expressed by the term "or / and" in step S20 and step S30. For the "or / and" in step S20, one of the technical solutions covered only includes step S20, step S30 and step S50, another technical solution only includes step S20, step S40 and step S50, and another technical solution includes step S20, step S30, step S40 and step S50. In these parallel technical solutions, it is still possible to select one or two specific implementation methods for the two different technical features included in step S30.
[0065] Figure 3 The process flow chart from test sequence to output test results is shown.
[0066] Specifically, if the preset test scenario supports making test judgments in the custom verification environment layer, the custom driver sends a custom transaction package to the custom reference model, and the test is executed in the custom verification environment layer.
[0067] Furthermore, the custom monitor monitors the behavior and status of the PCIe device module and the transaction package sent by the PCIe device module to the PCIe intellectual property core verification module, and then composes a custom transaction package and sends it to the custom scoring module. The custom scoring module compares the custom transaction package sent by the custom monitor with the expected transaction package sent by the custom reference model, determines whether the test passes, and outputs the test results.
[0068] The expected transaction packet refers to the correct transaction packet that should be sent if the DUT can work normally. It is an expected output result and is the basis for verifying whether the DUT can pass the test.
[0069] On the contrary, if the preset test scenario does not support test judgment in the custom verification environment layer, the test judgment is performed in the verification environment layer of the PCIe intellectual property core verification module.
[0070] The verification environment layer provided by the PCIe intellectual property core verification module includes the driver in the intellectual property core verification module, the monitor in the intellectual property core verification module, the sequence transmitter in the intellectual property core verification module, the reference model in the intellectual property core verification module, the scoring module in the intellectual property core verification module, etc. It 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.
[0071] How to perform test judgment in the verification environment layer provided by the PCIe intellectual property core verification module is common technical knowledge in the art. In general, the transaction package output by the reference model in the intellectual property core verification module and the transaction package output by the monitor in the intellectual property core verification module are compared by the scoring module in the intellectual property core verification module. If the two are consistent, the test passes, otherwise the test fails.
[0072] For example, if there are multiple ways to send test stimuli to the DUT, the test stimulus sent by the custom interface 700 is only a part of the test stimulus.
[0073] The test stimulus generated by the custom test sequence can be sent to the DUT through the custom interface 700 .
[0074] Through the intellectual property core verification module interface 900, not only the test stimulus generated by the test sequence provided by the PCIe intellectual property core verification module can be sent to the DUT, but also the test stimulus generated by the custom test sequence can be sent to the DUT.
[0075] In addition, no matter what method is used to generate the test stimulus to the DUT, whether to send the custom transaction package to the custom reference model depends on whether the preset test scenario supports it. If the custom transaction package is not sent to the custom reference model, the process of executing the test judgment occurs in the PCIe intellectual property verification module, such as the scoring module, reference model and monitor in the PCIe intellectual property verification module.
[0076] 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.
[0077] 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 method, applied to a PCIe device module verification system, wherein the PCIe device module verification system comprises a custom verification environment layer and a verification environment layer in a PCIe intellectual property core verification module, and the custom verification environment layer comprises at least a custom driver and a custom sequence transmitter, characterized in that: The PCIe device module verification method comprises at least the following steps: Step S20: after sending the custom test sequence to the custom sequence transmitter through the test sequence library, the custom sequence transmitter sends the custom test sequence containing the transaction package to the custom driver, and enters step S30; or / and, sending the test sequence provided by the PCIe intellectual property core verification module to the PCIe intellectual property core verification module through the test sequence library, and enters step S40; Step S30: the custom driver sends a VIP test sequence stimulus to the PCIe intellectual property core verification module, and the PCIe intellectual property core verification module sends the test stimulus to the PCIe device module through the intellectual property core verification module interface; or / and, the custom driver sends the test stimulus to the PCIe device module through the custom interface; then, proceed to step S50; Step S40: the PCIe intellectual property verification module sends a test stimulus to the PCIe device module through the intellectual property verification module interface; Then, proceed to step S50; Step S50: If the preset test scenario supports test judgment in the custom verification environment layer, the custom driver also sends the custom transaction package to the custom reference model and performs test judgment in the custom verification environment layer; otherwise, the test judgment is performed in the verification environment layer of the PCIe intellectual property core verification module; and, The custom monitor monitors the behavior and status of the PCIe device module and the transaction packets sent by the PCIe device module to the PCIe intellectual property verification module, and then composes a custom transaction packet and sends it to the custom scoring module; The custom scoring module compares the custom transaction package sent by the custom monitor with the expected transaction package sent by the custom reference model, determines whether the test passes, and outputs the test result; In step S30, before the custom driver sends the VIP test sequence stimulus to the PCIe intellectual property core verification module, the custom driver disassembles the custom test sequence into several test sequences provided by the PCIe intellectual property core verification module; The custom driver receives the custom test sequence containing the transaction package, parses the transaction package, and then converts it into a VIP test sequence stimulus; as well as, The PCIe device module verification system comprises: a test case layer and a PCIe device module; The test case layer includes: a verification environment layer; The verification environment layer includes: a PCIe intellectual property core verification module, a custom verification environment layer, a custom scoring module and a custom reference model; The custom verification environment layer includes a custom verification platform agent module and a custom monitor; The custom verification platform agent module includes: a custom driver, a custom sequence transmitter and a custom monitor.
2. The PCIe device module verification method according to claim 1, characterized in that: Before step S20, the following steps are also included: Step S10: Start the test case and test sequence library.
3. The PCIe device module verification method according to claim 2, characterized in that: The custom interface connects the custom driver and the PCIe device module.
4. The PCIe device module verification method according to claim 3, characterized in that: The intellectual property rights verification module interface connects the PCIe intellectual property rights verification module and the PCIe device module.
Citation Information
Patent Citations
PCIE verification method based on UVM
CN103530216A
Chip software and hardware simulation environment based on UVM and FPGA
CN107463473A
Software integration into hardware verification
US20200272701A1
