A DPU chip multi-scenario verification method and system based on UVM platform
By concentrating the packet processing process in different scenarios of the DPU chip in different reference models, and using the class inheritance function of the UVM platform, the problem of difficult and low working efficiency in DPU chip verification is solved, and the problem of high quality and low efficiency of reference model development in DPU chip verification is realized. Efficient multi-scenario verification reduces costs and improves scalability.
Patent Information
- Application Number
- CN202311466806.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-03
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2043-11-03
AI Technical Summary
The system-level function verification of DPU chips is complex, and the existing UVM verification platform requires reference models to simulate all scenarios, resulting in high development difficulty, low work efficiency, high cost and poor scalability.
By concentrating the message processing process in different scenarios in different reference models, and using the class inheritance function of the UVM platform, we avoid repeated development of the same functions, simplifying the reference model structure, improving work efficiency, and instantiating through parameter control Reference model required to save hardware memory resources.
It reduces the difficulty of developing the reference model, improves work efficiency, saves costs, and improves the scalability of system-level verification, allowing independent development and debugging of message processing processes in various scenarios.
Smart Images

Figure CN117520072B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of chip verification, and in particular relates to a DPU chip multi-scenario verification method and system based on a UVM platform. Background Art
[0002] The DPU chip (Data Processing Unit) is a hot spot for technological innovation in data centers and will become the next core computing chip after the GPU. It plays an important role in data network processing, storage, computing, security and other scenarios. Figure 1 The figure shows the function set that the DPU chip is to implement.
[0003] DPU chips need to realize functional processing in many scenarios, and the data processing protocols involved are constantly upgraded and iterated during the chip development cycle. At present, our company has developed DPU chips, and its chip architecture is as follows: Figure 2 As shown in the figure, by embedding many processor cores in the DPU chip, it can cope with changes in different application scenarios, different performance requirements, and different protocol versions. For scene-independent functional processing such as input and output message processing and message cache scheduling, circuit hardening is performed to increase the speed of message processing.
[0004] System-level functional verification of DPU chips is usually carried out by building Figure 3 The UVM verification platform shown in the figure is implemented. The execution process of the verification platform can be divided into the following three steps: (1) The stimulus generation module (sqr) generates various messages and sends them to the DPU chip through the interface driver module (drv) according to the interface timing of the DPU chip; (2) The reference model module (RM) executes the same processing flow as the DPU chip on the input message, obtains the expected processed message and sends it to the message comparison module (scb); (3) The DPU chip calls different processors and runs different message processing flows on them to process the input message and output it; (4) The interface monitoring module (mon) collects the output message, obtains the actual processed message, and sends it to the message comparison module (scb) for comparison. If the actual output message is consistent with the expected output message, it is considered that the chip processes the input message correctly, otherwise the processing is wrong.
[0005] There are many application scenarios of DPU chips, and the above verification method requires the reference model of the UVM verification platform to simulate all scenarios to verify the correctness of the chip functions, which makes the system-level verification of DPU chips complicated. It often requires multiple people to develop reference models at the same time, resulting in low work efficiency, high cost and poor scalability. Summary of the invention
[0006] In order to solve the problems of great difficulty in reference model development, low work efficiency and high cost in the existing DPU chip verification technology, the present invention provides a DPU chip multi-scenario verification method and system based on a UVM platform. The present invention concentrates different message processing processes in different scenarios in different reference models, that is, one reference model only needs to include the message processing process of the DPU chip in the same scenario, which greatly reduces the difficulty of developing a single reference model. At the same time, through the inheritance of classes in the UVM methodology, reference models of different processing processes can be inherited from base_rm, avoiding the development of the same function and greatly improving the work efficiency.
[0007] The present invention is achieved through the following technical solutions:
[0008] A multi-scenario verification method for a DPU chip based on a UVM platform, the multi-scenario verification method for a DPU chip comprising:
[0009] Constructing a common reference model, in which a common processing process of the DPU chip in different scenarios is implemented;
[0010] According to the different message processing processes of the DPU chip in different scenarios, different reference models are constructed respectively, that is, one reference model corresponds to the message processing process of the DPU chip in one scenario;
[0011] Through the class inheritance function of the UVM platform, the reference models of different message processing processes are inherited from the common reference model.
[0012] The reference model of the existing UVM verification platform includes the simulation of all processing processes of the chip, and the DPU chip involves many application scenarios. If all the processing processes in different scenarios are concentrated in one reference model, the reference model will become extremely complex and difficult to debug, and will affect each other, resulting in low verification efficiency. The verification method proposed in the present invention concentrates the different message processing processes in different scenarios of the DPU chip in different reference models, simplifies the structure of the reference model, and a single model can be independently developed, debugged, etc., without affecting each other or introducing conflicts, reducing the difficulty of development, improving work efficiency, and saving costs; at the same time, the verification method proposed in the present invention also concentrates the common processing flows in different scenarios, such as message sending and receiving, caching, etc., in one reference model, and uses the UVM platform class inheritance function to make the reference models of different message processing flows inherit from the reference model of the common processing flow, thus avoiding repeated development of the same function and improving work efficiency.
[0013] As a preferred embodiment, the DPU chip multi-scenario verification method of the present invention further includes:
[0014] Through parameter control, reference models of different message processing flows are instantiated.
[0015] As a preferred embodiment, the DPU chip multi-scenario verification method of the present invention further includes:
[0016] Through parameter control, instantiate the reference model of the required message processing flow.
[0017] The present invention instantiates reference models of different message processing flows through parameter control, so that parameters can be controlled according to actual needs to instantiate only required reference models without instantiating all reference models, thus saving hardware memory resources and improving operating efficiency.
[0018] As a preferred embodiment, the reference model instantiation process of the present invention specifically includes:
[0019] Instantiate the uvm_cmdline_processor class provided by the UVM platform, and obtain the value of the simulation running parameter data_proc_name passed in by the command line during simulation by calling the get_arg_value function of the class;
[0020] According to the simulation run parameter data_proc_name, the reference model is instantiated at the top level of env.
[0021] As a preferred embodiment, the DPU chip multi-scenario verification method of the present invention further includes:
[0022] Run the simulation in the command line and pass in different parameters to run different simulation processing flows.
[0023] As a preferred embodiment, the DPU chip multi-scenario verification method of the present invention further includes:
[0024] When an existing reference model needs to be modified, simply modify the reference model that needs to be modified.
[0025] As a preferred embodiment, the DPU chip multi-scenario verification method of the present invention further includes:
[0026] When the DPU chip adds a new scenario verification, a new reference model is directly constructed for the message processing flow under the new scenario, and at the same time, the new reference model is inherited from the public reference model through the class inheritance function of the UVM platform.
[0027] When a new scenario verification is added to the DPU chip, the verification method proposed in the present invention only needs to rebuild the reference model for the new scenario and inherit it from base_rm, without affecting the original reference model. The verification method has strong scalability and improves development efficiency.
[0028] In a second aspect, the present invention proposes a DPU chip multi-scenario verification system based on a UVM platform, and the DPU chip multi-scenario verification system includes:
[0029] Several reference models, wherein the several reference models respectively implement different message processing processes of the DPU chip in different scenarios, that is, one reference model corresponds to the message processing process of the DPU chip in one scenario;
[0030] And several of the reference models are inherited from the common reference model through the class inheritance function of the UVM platform;
[0031] The common reference model implements the common processing process of the DPU chip in different scenarios.
[0032] As a preferred embodiment, the DPU chip multi-scenario verification system of the present invention further includes:
[0033] The stimulus generation module is used to generate various messages, which are sent to the DPU chip through the interface driver module according to the interface timing of the DPU chip; at the same time, the message is transmitted to the corresponding reference model, and the corresponding reference model executes the same processing flow as the DPU chip on the input message, obtains the expected processed message and sends it to the message comparison module;
[0034] A DPU chip, wherein the DPU chip processes input messages and outputs them after processing them by calling different processors and running different message processing flows thereon;
[0035] The interface monitoring module collects the output messages of the DPU chip, obtains the actual processed messages, and sends them to the message comparison module for comparison; if the actual processed messages are consistent with the expected processed messages, the DPU chip processes the input messages correctly, otherwise the processing is wrong.
[0036] In a third aspect, the present invention proposes a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method of the present invention when executing the computer program.
[0037] Compared with the prior art, the present invention has the following advantages and beneficial effects:
[0038] 1. The present invention decouples different message processing processes in different scenarios of the DPU chip, and implements different message processing processes in different reference models, thereby simplifying the structure of the reference model. A single reference model can realize independent development and debugging, etc., without mutual influence or conflict, thereby reducing the development difficulty, improving work efficiency, and saving costs. At the same time, the present invention also implements common processing flows in different scenarios in a common reference model, and uses the UVM platform class inheritance function to make the reference models of different message processing processes inherit from the common reference model, thereby avoiding repeated development of the same function and greatly improving work efficiency.
[0039] 2. The present invention instantiates reference models of different message processing processes by means of parameter control, so that parameters can be controlled according to actual needs to instantiate only the required reference models, without instantiating all reference models, thus saving hardware memory resources and improving hardware operation efficiency;
[0040] 3. The present invention can modify each existing reference model separately without affecting each other. At the same time, when the DPU chip adds a new scenario verification, the present invention only needs to rebuild the corresponding reference model for the message processing flow under the new scenario, and inherit from the public reference model through the class inheritance function of the UVM platform, without affecting the original reference model, has strong scalability, and improves development efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The drawings described herein are used to provide a further understanding of the embodiments of the present invention, constitute a part of this application, and do not constitute a limitation of the embodiments of the present invention. In the drawings:
[0042] Figure 1 It is the function set of DPU chip.
[0043] Figure 2 This is the DPU chip architecture diagram.
[0044] Figure 3 Verify the architecture diagram for the traditional UVM platform-based DPU chip.
[0045] Figure 4 The following is a diagram of a DPU chip verification architecture based on a UVM platform according to an embodiment of the present invention. DETAILED DESCRIPTION
[0046] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with embodiments and drawings. The exemplary embodiments of the present invention and their description are only used to explain the present invention and are not intended to limit the present invention.
[0047] Example:
[0048] The reference model of the existing UVM verification platform includes the simulation of all chip processing processes, and the DPU chip involves many application scenarios. If the processing processes of different scenarios are all concentrated in one reference model, the reference model will become extremely complex and difficult to debug, and the debugging of one of the processing processes will often affect other processing processes; at the same time, multiple people operate the same reference model, which inevitably causes conflicts, resulting in low verification efficiency. Based on this, this embodiment proposes a multi-scenario verification method for DPU chips based on the UVM platform. The method proposed in this embodiment concentrates the common processing processes of the DPU chip in different scenarios in base_rm, and concentrates the different message processing processes of the DPU chip in different scenarios in different reference models, that is, one reference model corresponds to the message processing process in one scenario. At the same time, through the inheritance of classes in UVM methodology, the reference models of different message processing processes can be inherited from base_rm, avoiding repeated development of the same function, and significantly improving the system-level verification efficiency of multiple scenarios.
[0049] The DPU chip multi-scenario verification method proposed in this embodiment specifically includes the following steps:
[0050] Construct a common reference model (base_rm), which implements the common processing process of the DPU chip in different scenarios; the common processing process of the DPU chip in different scenarios includes: receiving messages from different input interfaces (i.e., input message processing), sending processed messages to different interfaces (i.e., output message processing), message caching, CRC check and generation of messages, etc.;
[0051] Construct reference model 1 (data_pro_1_rm), which implements the message processing process of the DPU chip in the first scenario. The first reference model is inherited from base_rm. When the reference model 1 implements the common processing such as message reception, message transmission, and message buffering involved in the message processing process, the processing result of base_rm can be directly used;
[0052] Construct reference model 2 (data_pro_2_rm), which implements the message processing process of the DPU chip in the second scenario. The reference model 2 inherits from base_rm; similarly, when the reference model 2 implements the common processing such as message reception, message transmission, and message buffering involved in the message processing process, the processing result of base_rm can be directly used;
[0053] Similarly, a reference model n (data_pro_n_rm) is constructed, which implements the message processing process of the DPU chip in the nth scenario. The reference model n inherits from base_rm. Similarly, when the reference model n implements the common processing such as message reception, message transmission, and message buffering involved in the message processing process, the processing result of base_rm can be directly used. Among them, n is the number of scenarios that the DPU chip currently needs to implement.
[0054] The verification method proposed in this embodiment decouples the message processing processes in different scenarios, and the message processing processes in different scenarios are respectively implemented by different reference models, that is, one reference model corresponds to the message processing process in one scenario, so that the structure of a single reference model is simplified, and independent development, debugging and modification can be achieved without mutual influence or conflict, thereby reducing the development difficulty, improving work efficiency and saving costs; at the same time, the verification method proposed in this embodiment also concentrates the common processing processes in different scenarios, such as message reception, transmission, caching and other processes, in one reference model (base_rm), and utilizes the class inheritance function of the UVM platform, so that the reference models of different message processing processes can all inherit from base_rm, thus avoiding the development of the same function, further reducing the development difficulty of a single reference model, improving work efficiency, and facilitating the change and modification of the common processing flow.
[0055] Furthermore, the verification method proposed in this embodiment also includes:
[0056] Instantiate the uvm_cmdline_processor class provided by the UVM platform, and obtain the data_proc_name parameter value passed in by the command line during simulation by calling the get_arg_value function of the class. data_proc_name represents the message processing flow in different application scenarios of the DPU chip.
[0057] Different reference models are instantiated at the top level of env according to the simulation run parameter data_proc_name.
[0058] For example, If (data_proc_name == "data_proc_1") instantiates reference model 1 corresponding to process flow 1;
[0059] If (data_proc_name == "data_proc_2") instantiate reference model 2 corresponding to process 2;
[0060] And so on
[0061] If (data_proc_name == "data_proc_n") instantiate reference model n corresponding to process flow n. Therefore, this embodiment can instantiate the required reference model through parameter control without instantiating all reference models, further improving the operation efficiency.
[0062] Run the simulation in the command line and pass in different parameters to run different simulation processing flows.
[0063] For example: vcs-sverilog-full64-f.. / tb / sim_sv.vc-top tb_top-fsdb+data_proc_name=data_proc_1, which means running processing flow 1.
[0064] Furthermore, the verification method proposed in this embodiment also includes:
[0065] When an existing reference model needs to be modified, the simulation file corresponding to the reference model is directly modified without modifying other reference models, and the modification will not affect other reference models.
[0066] The verification method proposed in this embodiment has strong operability, is easy to manage, and reduces maintenance costs.
[0067] Furthermore, the verification method proposed in this embodiment also includes:
[0068] When the DPU chip adds a new application scenario verification, a new reference model is directly built for the new application scenario, and the corresponding simulation file of the reference model is run to implement the instantiation to verify the new application scenario.
[0069] The verification method proposed in this embodiment is highly scalable. When a new scenario is added to the DPU chip, there is no need to modify the previously constructed reference model. The reference model can be directly rebuilt for the new scenario, that is, the simulation file can be rewritten. This does not affect the previously constructed reference model, and the development is simple and scalable, which reduces development costs and improves efficiency.
[0070] It should be noted that the verification process of the DPU chip in the verification method proposed in this embodiment is the same as the existing verification process, and the only difference is that the verification of the message processing process in different application scenarios of the DPU chip uses different reference models to obtain the expected value. Therefore, this embodiment will not elaborate on other processes.
[0071] Based on the above concept, this embodiment also proposes a DPU chip multi-scenario verification system based on the UVM platform, as shown in the following figure: Figure 4 As shown, the DPU chip multi-scenario verification system specifically includes:
[0072] Stimulus generation module (sqr), which is used to generate various messages and send them to the DPU chip through the interface driver module (drv) according to the interface timing of the DPU chip; at the same time, the messages are transmitted to the corresponding reference model;
[0073] Through the several reference models (data_proc_1_rm to data_proc_n_rm) constructed by the above method, select the corresponding reference model module to perform the same processing flow as the DPU chip on the input message, obtain the expected processed message and send it to the message comparison module (scb);
[0074] DPU chip: The DPU chip processes different message processing flows by calling different processors, processes the input messages, and then outputs them;
[0075] The interface monitoring module (mon) collects the output messages of the DPU chip, obtains the actual processed messages, and sends them to the message comparison module (scb) for comparison; if the actual processed messages are consistent with the expected processed messages, the DPU chip processes the input messages correctly, otherwise the processing is wrong.
[0076] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0077] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0078] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0079] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0080] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A multi-scenario verification method for DPU chips based on UVM platform, characterized in that: The DPU chip multi-scenario verification method includes: Constructing a common reference model, in which a common processing process of the DPU chip in different scenarios is implemented, and the common processing process includes: input message processing, output message processing, message buffering, CRC check and generation of messages; n reference models are constructed, and the n reference models are inherited from the common reference model through the class inheritance function of the UVM platform; n is the number of scenarios that the DPU chip currently needs to implement; the n reference models respectively implement different message processing processes of the DPU chip in n different scenarios, that is, one reference model corresponds to the message processing process of the DPU chip in one scenario, and the common processing process involved in the message processing process directly uses the processing result of the common reference model; the DPU chip multi-scenario verification method also includes: Through parameter control, instantiate reference models of different message processing processes; The reference model instantiation process specifically includes: Instantiate the uvm_cmdline_processor class provided by the UVM platform, and obtain the value of the simulation running parameter data_proc_name passed in by the command line during simulation by calling the get_arg_value function of the class; According to the simulation run parameter data_proc_name, the reference model is instantiated at the top level of env.
2. A DPU chip multi-scenario verification method based on UVM platform according to claim 1, characterized in that, The DPU chip multi-scenario verification method also includes: Through parameter control, instantiate the reference model of the required message processing process.
3. A DPU chip multi-scenario verification method based on UVM platform according to claim 1, characterized in that, The DPU chip multi-scenario verification method also includes: Run the simulation in the command line and pass in different parameters to run different simulation processing flows.
4. A DPU chip multi-scenario verification method based on UVM platform according to claim 1, characterized in that, The DPU chip multi-scenario verification method also includes: When an existing reference model needs to be modified, simply modify the reference model that needs to be modified.
5. A DPU chip multi-scenario verification method based on UVM platform according to claim 1, characterized in that, The DPU chip multi-scenario verification method also includes: When the DPU chip adds a new scenario verification, a new reference model is directly constructed for the message processing flow under the new scenario, and at the same time, the new reference model is inherited from the public reference model through the class inheritance function of the UVM platform.
6. A DPU chip multi-scenario verification system based on UVM platform, characterized in that: The DPU chip multi-scenario verification system includes: n reference models, wherein the n reference models are inherited from the common reference model through the class inheritance function of the UVM platform; n is the number of scenarios that the DPU chip currently needs to implement; The n reference models respectively implement different message processing processes of the DPU chip in n different scenarios, that is, one reference model corresponds to the message processing process of the DPU chip in one scenario, and the common processing process involved in the message processing process directly uses the processing result of the common reference model; The common reference model implements the common processing process of the DPU chip in different scenarios, and the common processing process includes: input message processing, output message processing, message buffering, CRC check and generation of messages; The DPU chip multi-scenario verification system instantiates reference models of different message processing processes through parameter control; The reference model instantiation process specifically includes: Instantiate the uvm_cmdline_processor class provided by the UVM platform, and obtain the value of the simulation running parameter data_proc_name passed in by the command line during simulation by calling the get_arg_value function of the class; According to the simulation run parameter data_proc_name, the reference model is instantiated at the top level of env.
7. A DPU chip multi-scenario verification system based on UVM platform according to claim 6, characterized in that, The DPU chip multi-scenario verification system also includes: The stimulus generation module is used to generate various messages, which are sent to the DPU chip through the interface driver module according to the interface timing of the DPU chip; at the same time, the message is transmitted to the corresponding reference model, and the corresponding reference model executes the same processing flow as the DPU chip on the input message, obtains the expected processed message and sends it to the message comparison module; A DPU chip, wherein the DPU chip processes input messages and outputs them after processing them by calling different processors and running different message processing flows thereon; The interface monitoring module collects the output messages of the DPU chip, obtains the actual processed messages, and sends them to the message comparison module for comparison; if the actual processed messages are consistent with the expected processed messages, the DPU chip processes the input messages correctly, otherwise the processing is wrong.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
