Verification method, device and storage medium based on UVM verification platform
By acquiring and converting the component configuration files of the UVM verification platform, the problem of low flexibility of the UVM verification platform is solved, and a component-free and efficient verification process is achieved.
Patent Information
- Application Number
- CN202111182393.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-11
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2041-10-11
AI Technical Summary
The UVM verification platform has low flexibility and dependencies between components, resulting in low verification efficiency. Every configuration change requires recompiling the entire environment.
By retrieving configuration files for multiple components from a specified directory, the system controls the components to read and filter data, converting it into component configuration data. The configuration data is then used to complete the component configuration, which is then verified through the UVM platform to obtain the verification results.
The UVM verification platform is more flexible, with no dependencies between components. Changing the configuration file alone does not require recompiling the environment, thus improving verification efficiency.
Smart Images

Figure CN113962069B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the chip verification technical field, and particularly relates to a verification method and device of a UVM verification platform based on a file operation tool and a storage medium. BACKGROUND
[0002] With the increasing complexity of chips, the scale of chip design is also increasing, and the workload of chip verification in chip design accounts for an increasing proportion of the entire design cycle, so it is necessary to improve the efficiency of chip verification. UVM (Universal Verification Methodology) is a verification framework that realizes coverage-driven verification.
[0003] At present, the UVM verification platform mainly tests the correctness of a DUT (Design Under Test), applies different excitations to the DUT, and observes the output result of the DUT, compares the output result with standard data generated under the same excitation, and thereby verifies the correctness of the DUT.
[0004] However, the UVM verification platform has strong dependency between components, and changing the configuration of one component requires changing the associated components, resulting in low flexibility of the existing UVM verification platform. Moreover, each time the UVM platform changes the configuration, the entire environment needs to be recompiled, which reduces the verification efficiency. SUMMARY
[0005] The present application provides a verification method and device of a UVM verification platform and a storage medium to at least solve the technical problems of low flexibility and low verification efficiency in related technologies.
[0006] An embodiment of the first aspect of the present application provides a verification method of a UVM verification platform, comprising:
[0007] obtaining configuration files of a plurality of components from a specified directory;
[0008] controlling the plurality of components to read data in the configuration files and performing filtering processing on the data;
[0009] converting the filtered data to obtain configuration data of the plurality of components;
[0010] configuring the plurality of components by using the configuration data of the plurality of components, and verifying a DUT (Design Under Test) by using the UVM platform;
[0011] obtaining a verification result of the DUT from the UVM verification platform.
[0012] The second aspect embodiment of the present application provides a verification device based on a UVM verification platform, comprising:
[0013] An acquisition module is configured to acquire configuration files of a plurality of components from a specified directory.
[0014] A processing module is configured to control the plurality of components to read data in the configuration files and perform filtering processing on the data.
[0015] A conversion module is configured to convert the filtered data to obtain configuration data of the plurality of components.
[0016] A configuration module is configured to complete configuration of the plurality of components by using the configuration data of the plurality of components, and perform verification on a design under test (DUT) by using the UVM platform.
[0017] A verification result module is configured to acquire a verification result of the DUT from the UVM verification platform.
[0018] The third aspect embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores computer executable instructions; and the computer executable instructions are executed by a processor to implement the method of the first aspect.
[0019] The fourth aspect embodiment of the present application provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor; and the processor implements the method of the first aspect when executing the program.
[0020] The technical solution provided by the embodiments of the present application at least brings the following beneficial effects:
[0021] The verification method, device and storage medium based on the UVM verification platform provided in the embodiments of the present application can acquire configuration files of a plurality of components from a specified directory, then control the plurality of components to read data in the configuration files and perform filtering processing on the data, after that, convert the filtered data to obtain configuration data of the plurality of components, complete configuration of the plurality of components by using the configuration data of the plurality of components, perform verification on a DUT by using the UVM platform, and finally acquire a verification result of the DUT from the verification platform. Therefore, in the embodiments of the present application, the plurality of components can obtain configuration data of each component through the configuration files, and there is no dependency between the components, so that the configuration file of one component can be changed individually, thereby improving flexibility of the UVM verification platform. Moreover, after the UVM platform changes the configuration file each time, the UVM verification platform only needs to be reconfigured, and does not need to be recompiled as a whole, thereby improving verification efficiency.
[0022] In addition, in the embodiments of the present disclosure, the ScoreBoard component can obtain the expected result of the DUT through a configuration file, without obtaining the expected result of the DUT through development of the ReferenceModel module, thereby reducing the workload of development of the UVM verification platform.
[0023] Additional aspects and advantages of the present application will be made apparent by the following description and the accompanying drawings. BRIEF DESCRIPTION OF DRAWINGS
[0024] The above and / or additional aspects and advantages of the present application will become apparent and be readily appreciated from the following description, including the accompanying drawings.
[0025] Figure 1 A flowchart of a verification method based on a UVM verification platform according to an embodiment of the present application is provided;
[0026] Figure 2 A flowchart of a verification method based on a UVM verification platform according to an embodiment of the present application is provided;
[0027] Figure 3 A structural diagram of a verification device based on a UVM verification platform according to an embodiment of the present application is provided. DETAILED DESCRIPTION
[0028] Embodiments of the present application are described in detail below with reference to the accompanying drawings, in which the same or similar components have the same or similar designations and functions throughout. The embodiments described below are examples in which the present application is applied to explain the present application, and are not to be construed as limiting the present application.
[0029] The verification method, device and storage medium based on the UVM verification platform provided in the embodiments of the present disclosure can obtain configuration files of a plurality of components from a specified directory, then control the plurality of components to read data in the configuration files and perform filtering processing on the data, after that, convert the filtered data to obtain configuration data of the plurality of components, complete configuration of the plurality of components by using the configuration data of the plurality of components, perform verification on the DUT through the UVM platform, and finally obtain a verification result of the DUT from the verification platform. As can be seen, in the embodiments of the present disclosure, the plurality of components can obtain configuration data of each component through configuration files, and there is no dependency between the components, so that the configuration file of one component can be changed individually, thereby improving the flexibility of the UVM verification platform. Moreover, after the UVM platform changes the configuration file each time, the UVM verification platform only needs to be reconfigured, without the need to recompile the entire environment, thereby improving the verification efficiency.
[0030] In addition, in the embodiments of the present disclosure, the ScoreBoard component can obtain the expected result of the DUT through the configuration file, without obtaining the expected result of the DUT through the development of the ReferenceModel module, thereby reducing the workload of the UVM verification platform.
[0031] The UVM verification platform-based verification method and device according to the embodiments of the present application are described below with reference to the accompanying drawings.
[0032] Embodiment One
[0033] Figure 1 A flowchart of the UVM verification platform-based verification method according to one embodiment of the present application is shown in FIG. 1, which can include the following steps: Figure 1
[0034] Step 101: Obtain configuration files of multiple components from a specified directory.
[0035] In the embodiments of the present disclosure, different components correspond to different configuration files.
[0036] For example, the configuration file obtained by the ScoreBoard component is ScoreBoardcfg.txt, the configuration file obtained by the Driver component is Drivercfg.txt, the configuration file obtained by the Sequencer component is Sequencercfg.txt, and the configuration file obtained by the Backdoor component is Backdoorcfg.txt.
[0037] In the embodiments of the present disclosure, when the UVM verification platform is started through the Case component, the UVM verification platform obtains the configuration files of the multiple components from the specified directory.
[0038] Step 102: Control the multiple components to read data in the configuration files and perform filtering processing on the data.
[0039] It should be noted that in the embodiments of the present disclosure, the UVM verification platform can control the multiple components to read the data in the configuration files through respective file operation tools. In the embodiments of the present disclosure, the file operation tools can be installed in the multiple components to perform file operations (for example, opening a file, reading data in the file, etc.).
[0040] In the embodiments of the present disclosure, the components will first open the obtained configuration files through the file operation tools before reading the configuration files.
[0041] Specifically, in the embodiments of the present disclosure, when the component successfully opens the configuration file through the file operation tool, the data in the configuration file is read; when the component fails to open the configuration file through the file operation tool, the UVM verification platform is exited, and error information is output. The error information can include specific component information, configuration file name information, and the like.
[0042] Further, in the embodiments of the present disclosure, after the component reads the data in the configuration file through the file operation tool, the component also performs filtering processing on the read data. The method for filtering the data by the component can include the following steps:
[0043] Step a, scanning the data;
[0044] Step b, when the marker is scanned, the data before the marker is extracted.
[0045] In the embodiments of the present disclosure, the marker in step b can be a tag of a string. After step b is performed, the component continues to scan the data after the marker and repeatedly performs the operation in step b until the end of the data is scanned.
[0046] In addition, in the embodiments of the present disclosure, before the component filters the data, the component also deletes spaces and comments in the data, so that subsequent filtering of the data can be performed directly without being disturbed by the spaces and comments.
[0047] Step 103, converting the filtered data to obtain configuration data of the plurality of components.
[0048] In the embodiments of the present disclosure, different components require different configuration data.
[0049] For example, assuming that the filtered data is a string, and the configuration data required by the Driver component is an int (integer data), the UVM verification platform converts the string data to int data to obtain the configuration data of the Driver component.
[0050] Step 104, configuring the plurality of components by using the configuration data of the plurality of components, and verifying the design DUT through the UVM platform.
[0051] In the embodiments of the present disclosure, after the configuration of the plurality of components is completed by using the configuration data of the plurality of components, the Driver component outputs corresponding stimuli to the DUT according to the obtained configuration data, and the Scoreboard component stores the expected results obtained through the configuration file in a dynamic array, so that the results output by the DUT can be judged in real time, and whether the verification of the DUT is successful can be determined.
[0052] Specifically, in the embodiments of the present disclosure, when the result output by the DUT is consistent with the expected result in the Scoreboard, the verification result of the DUT is successful; when the result output by the DUT is inconsistent with the expected result in the Scoreboard, the verification result of the DUT is unsuccessful.
[0053] Step 105, obtaining the verification result of the DUT from the UVM verification platform.
[0054] In the embodiments of the present disclosure, if the verification result of the DUT is successful, the UVM platform outputs verification success; if the verification result of the DUT is unsuccessful, the UVM platform outputs the time stamp when the output result of the DUT is inconsistent with the expected result in the Scoreboard component, so that the user can locate the error of the DUT.
[0055] In addition, in the embodiments of the present disclosure, the UVM verification platform needs to use the Backdoor component for verification in the process of verifying the DUT. For example, when the UVM verification platform needs to operate an image, the Backdoor component needs to be used to store the image, and the data can be read according to the pixel points during operation, and then the data is sequentially added to the DUT according to the address of the data for verification.
[0056] Specifically, in the embodiments of the present disclosure, the method for verifying the UVM verification platform by using the Backdoor component can include the following steps:
[0057] Step 1, judging whether the UVM verification platform needs to use the Backdoor component;
[0058] Step 2, if needed, obtaining the configuration file of the Backdoor component from a specified directory;
[0059] Step 3, controlling the Backdoor component to read the data in the configuration file and process the data;
[0060] Step 4, sequentially adding the processed data to the DUT according to the address of the data.
[0061] In the embodiments of the present disclosure, the specific introduction of the Backdoor component reading the data in the configuration file and processing the data in step 3 can be referred to the above description, and will not be repeated here.
[0062] Based on the above description, Figure 2 A flowchart of a verification method based on a UVM verification platform is provided for an embodiment of the present disclosure. As shown in Figure 2As shown, after the Case component starts the entire platform, the UVM verification platform controls the Driver component to obtain the configuration file Drivercfg.txt, the Sequencer component to obtain the configuration file Sequencercfg.txt, and the ScoreBoard component to obtain the configuration file ScoreBoardcfg.txt. Each component reads the data in the configuration file of each component through a file operation tool, filters the data, converts the filtered data to obtain the configuration data of each component, and then configures the platform itself by using the configuration data of each component.
[0063] The Driver component outputs the stimulus to the DUT according to different configurations, the Scoreboard component stores the expected result obtained through the ScoreBoardcfg.txt in a dynamic array, and judges the result output by the DUT in real time. When the result output by the DUT is consistent with the expected result in the Scoreboard, the verification result of the DUT is successful, and the UVM platform outputs the verification success. When the result output by the DUT is inconsistent with the expected result in the Scoreboard, the verification result of the DUT is unsuccessful, and the UVM platform outputs the time stamp when the result output by the DUT is inconsistent with the expected result in the Scoreboard, so that the user can locate the error of the DUT.
[0064] When the UVM verification platform judges that the Backdoor component needs to be used in the verification process, the configuration file Backdoorcfg.txt of the Backdoor component is obtained from the specified directory, the Backdoor component is controlled to read the data in the configuration file and process the data, and then the processed data is sequentially added to the DUT according to the address of the data, so that the DUT can directly obtain the data in the corresponding address without going through the previous calculation process, and output the obtained data to the Scoreboard component in real time, and compare the output result with the expected result in the Scoreboard component. When the result output by the DUT is inconsistent with the expected result in the Scoreboard, the verification result of the DUT is successful, and the UVM platform outputs the verification success. When the result output by the DUT is consistent with the expected result in the Scoreboard, the verification result of the DUT is unsuccessful, and the UVM platform outputs the time stamp when the result output by the DUT is inconsistent with the expected result in the Scoreboard, so that the user can locate the error of the DUT.
[0065] In conclusion, the verification method based on the UVM verification platform provided in the embodiments of the present disclosure can obtain the configuration files of the plurality of components from the specified directory, then control the plurality of components to read the data in the configuration files, and perform filtering processing on the data, after which the filtered data is converted to obtain the configuration data of the plurality of components, the configuration of the plurality of components is completed by using the configuration data of the plurality of components, the DUT is verified by using the UVM platform, and finally the verification result of the DUT is obtained from the verification platform. As can be seen, in the embodiments of the present disclosure, the configuration data of each component can be obtained by the plurality of components through the configuration file, and there is no dependency between the components, so that the configuration file of one component can be changed individually, thereby improving the flexibility of the UVM verification platform. Moreover, after the UVM platform changes the configuration file each time, the UVM verification platform only needs to be reconfigured, and does not need to be recompiled as a whole, thereby improving the verification efficiency.
[0066] In addition, in the embodiments of the present disclosure, the ScoreBoard component can obtain the expected result of the DUT through the configuration file, without obtaining the expected result of the DUT through the development of the ReferenceModel module, thereby reducing the workload of the development of the UVM verification platform.
[0067] Embodiment Two
[0068] Figure 3 The structure schematic diagram of the verification device based on the UVM verification platform provided according to an embodiment of the present disclosure is shown in Figure 1 As shown, the device can include:
[0069] The obtaining module 301 is configured to obtain the configuration files of the plurality of components from the specified directory.
[0070] The processing module 302 is configured to control the plurality of components to read the data in the configuration files, and perform filtering processing on the data.
[0071] The conversion module 303 is configured to convert the filtered data to obtain the configuration data of the plurality of components.
[0072] The configuration module 304 is configured to complete the configuration of the plurality of components by using the configuration data of the plurality of components, and verify the DUT by using the UVM platform.
[0073] The verification result module 305 is configured to obtain the verification result of the DUT from the UVM verification platform.
[0074] In the embodiments of the present disclosure, the processing module scans the data, and extracts the data before the marker when the marker is scanned.
[0075] In addition, in the embodiments of the present disclosure, the processing module is further configured to delete the spaces and comments in the data.
[0076] Further, in the embodiment of the present disclosure, the verification result module outputs a verification success when the verification result of the DUT is successful, and outputs a time stamp when the output result of the DUT is inconsistent with the expected result when the verification result of the DUT is unsuccessful.
[0077] Further, in the embodiment of the present disclosure, the device further includes an adding module. In the embodiment of the present disclosure, the adding module is configured to, when it is determined that the UVM verification platform needs to use a Backdoor component, obtain a configuration file of the Backdoor component from a specified directory, control the Backdoor component to read data in the configuration file, process the data, and add the processed data to the DUT according to the addresses of the data.
[0078] In summary, in the embodiment of the present disclosure, the verification method, device and storage medium based on the UVM verification platform can obtain configuration files of a plurality of components from a specified directory, then control the plurality of components to read data in the configuration files, filter the data, convert the filtered data to obtain configuration data of the plurality of components, configure the plurality of components by using the configuration data of the plurality of components, verify the DUT by using the UVM platform, and finally obtain a verification result of the DUT from the verification platform. As can be seen, in the embodiment of the present disclosure, the plurality of components can obtain configuration data of each component through the configuration file, and there is no dependency between the components, so that the configuration file of one component can be changed independently, thereby improving the flexibility of the UVM verification platform. Moreover, after the UVM platform changes the configuration file each time, the UVM verification platform only needs to be reconfigured, and does not need to be recompiled, thereby improving the verification efficiency.
[0079] In addition, in the embodiment of the present disclosure, the ScoreBoard component can obtain the expected result of the DUT through the configuration file, and does not need to obtain the expected result of the DUT through the development of the ReferenceModel module, thereby reducing the workload of the development of the UVM verification platform.
[0080] In order to implement the above-mentioned embodiments, the present disclosure further proposes a computer storage medium.
[0081] The computer storage medium provided by the embodiment of the present disclosure stores an executable program; the executable program is executed by a processor, and can implement the method as shown in any of Figure 2 or Figure 1 the above-mentioned embodiments.
[0082] In order to implement the above-mentioned embodiments, the present disclosure further proposes a computer device.
[0083] The computer device provided by the embodiments of the present disclosure comprises a memory, a processor and a computer program stored in the memory and executable on the processor; when the processor executes the program, the method shown in any of the above Figure 2 or embodiments can be implemented.
[0084] In the description of the present specification, the description of the terms "one embodiment", "some embodiments", "an example", "a specific example" or "some examples" means that the specific features, structures, materials or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. In the present specification, the illustrative description of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any appropriate manner in any one or more embodiments or examples. In addition, the person skilled in the art can combine and combine the different embodiments or examples described in the present specification and the features of the different embodiments or examples without contradiction.
[0085] Any process or method descriptions in flow charts or described elsewhere in this specification can be understood as representing code modules, segments, or portions of code which include one or more executable instructions for performing specific logic functions (or steps) or portions of the application, and the various embodiments of the application can include additional or fewer steps performing the same or equivalent functions as those shown or discussed. The various embodiments of the application can be practiced in conjunction with a specific operating environment including a personal computer, a mobile device, a computer server, a computer network, or other digital network.
[0086] Although the embodiments of the present application have been shown and described above, it should be understood that the above-described embodiments are exemplary and should not be construed as limiting the present application, and those of ordinary skill in the art can make changes, modifications, replacements and variations to the above-described embodiments within the scope of the present application.
Claims
1. A verification method based on a universal verification methodology (UVM) verification platform, characterized in that, The method comprises: obtaining configuration files of a plurality of components from a specified directory; controlling the plurality of components to read data in the configuration files and to perform filtering processing on the data; converting the filtered data to obtain configuration data of the plurality of components; completing configuration of the plurality of components by using the configuration data of the plurality of components, and verifying a design under test (DUT) by using a UVM verification platform; obtaining a verification result of the DUT from the UVM verification platform; the filtering processing on the data comprises: scanning the data; when a marker is scanned, extracting data before the marker.
2. The verification method based on a universal verification methodology (UVM) verification platform according to claim 1, wherein, Before the scanning of the data, the method further comprises: deleting spaces and comments in the data.
3. The verification method based on a universal verification methodology (UVM) verification platform according to claim 1, wherein, the obtaining of the verification result of the DUT from the UVM verification platform comprises: if the verification result of the DUT is successful, the UVM verification platform outputs verification success; if the verification result of the DUT is unsuccessful, the UVM verification platform outputs a time stamp when an output result of the DUT is inconsistent with an expected result.
4. The verification method based on a universal verification methodology (UVM) verification platform according to claim 1, wherein, The method further comprises: judging whether a backdoor component is needed by the UVM verification platform; if needed, obtaining a configuration file of the backdoor component from a specified directory; controlling the backdoor component to read data in the configuration file and to perform processing on the data; adding the processed data to the DUT according to addresses of the data.
5. A verification apparatus based on a UVM verification platform, characterized by, The apparatus comprises: an obtaining module, configured to obtain configuration files of a plurality of components from a specified directory; a processing module, configured to control the plurality of components to read data in the configuration files and to perform filtering processing on the data; a converting module, configured to convert the filtered data to obtain configuration data of the plurality of components; a configuration module, configured to complete configuration of the plurality of components by using the configuration data of the plurality of components, and to verify a design under test (DUT) by using a UVM verification platform; a verification result module, configured to obtain a verification result of the DUT from the UVM verification platform; the processing module scans the data, and extracts data before a marker when the marker is scanned.
6. The verification apparatus based on a UVM verification platform according to claim 5, wherein, The processing module is further configured to delete spaces and comments in the data.
7. The verification apparatus based on a UVM verification platform according to claim 5, wherein, The verification result module outputs verification success when the verification result of the DUT is successful, and outputs a time stamp when an output result of the DUT is inconsistent with an expected result when the verification result of the DUT is unsuccessful.
8. The verification apparatus based on a UVM verification platform according to claim 5, wherein, The apparatus further comprises: an adding module, configured to, when it is judged that a backdoor component is needed by the UVM verification platform, obtain a configuration file of the backdoor component from a specified directory, control the backdoor component to read data in the configuration file, perform processing on the data, and add the processed data to the DUT according to addresses of the data.
9. A computer storage medium, wherein, The computer storage medium stores computer executable instructions; the computer executable instructions are executed by a processor to implement the method in any of claims 1-4.
10. A computer device, comprising: A computer program product comprising a memory, a processor and a computer program stored on the memory and loadable on the processor, the processor implementing the method according to any one of claims 1 to 4 when running the program.
Citation Information
Patent Citations
A high-level verification method applying a UVM verification platform
CN109684681A
Chip verification method and device and storage medium
CN113468000A