Automatic verification system based on simulation model

Through the automated verification system with modular hierarchical management and multilingual hybrid compilation, the problem of system-level simulation verification cost is solved, and the standardized processing of simulation models and multilingual support is realized, which reduces the simulation verification cost and improves efficiency. .

CN118885384APending Publication Date: 2024-11-01SHANGHAI UNIVISTA IND SOFTWARE GRP CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410900322.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

In the prior art, system-level simulation verification is costly and inefficient, resulting in frequent iteration of virtual simulation models functions and diverse types and supported protocols, resulting in low system-level simulation verification efficiency.

Method used

Adopt an automated verification system based on simulation model, including modular hierarchical management module, model and platform implementation module and hybrid module, and define entry, process related, test cases and post-processing templates through modular hierarchical management module, and the general interface layer Provides preset functions, the platform adaptation layer provides underlying implementation information, the hybrid module supports multi-language hybrid compilation, and the business verification layer performs simulation verification.

Benefits of technology

It realizes standardized processing of simulation models and multilingual hybrid compilation, improves the efficiency and availability of simulation verification, supports testing and verification of closed-source or open-source third-party models, and reduces system-level simulation costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118885384A_ABST
    Figure CN118885384A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of simulation verification, in particular to an automatic verification system based on a simulation model, and is characterized in that the system comprises a modular hierarchical management module, a model and platform implementation module and a shuffling module, the modular hierarchical management module comprises a model layer, a test unit layer, a test case layer and a verification layer, the model and platform implementation module comprises a service verification layer, a universal interface layer and a platform adaptation layer, various simple and complex models and continuously iterative simulation models can be tested and verified through a standardized process by constructing an automatic verification system, and test verification of closed-source or open-source third-party models can be supported; the problems that system-level simulation is high in cost and low in efficiency can be effectively solved, and support can be provided for follow-up continuous iteration verification platform and model simulation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of simulation verification, and in particular to an automatic verification system based on a simulation model. Background Art

[0002] In the chip design verification stage, system-level simulation and verification are usually involved. System simulation includes virtual simulation stage, prototype verification stage based on FPGA or hardware accelerator, etc. In the virtual simulation stage, some C++ or SystemC models will be compiled and simulated to generate RTL (Register Transfer Level) code for chip design. In the simulation stage and prototype verification stage, tasks such as compilation, simulation and / or waveform display will be performed based on C++, SystemC and / or RTL code.

[0003] In the existing technology, the functions of virtual simulation models are constantly iterating, and their types and supported protocols are increasing. Each type and protocol needs to be supported independently, which leads to high cost and low efficiency of system-level simulation verification. Therefore, how to improve the verification efficiency of system-level simulation and reduce the cost of system-level verification has become a technical problem that needs to be solved urgently. Summary of the invention

[0004] In view of the above technical problems, the technical solution adopted by the present invention is:

[0005] An automated verification system based on a simulation model, characterized in that the system includes: a modular hierarchical management module, a model and platform implementation module and a mixed compilation module, wherein the modular hierarchical management module includes a model layer, a test unit layer, a test case layer and a verification layer, and the model and platform implementation module includes a business verification layer, a general interface layer and a platform adaptation layer.

[0006] The model layer is used to define an entry template, the test unit layer is used to define a process-related template, the test case layer is used to define a test case template, and the verification layer is used to define a post-processing template.

[0007] The entry template, the process-related template, the test case template and the post-processing template are used for standardizing the simulation model to be verified, so as to obtain a model directory corresponding to the simulation model to be verified.

[0008] The general interface layer is used to provide general interfaces corresponding to a number of preset functions, and the interface catalog is generated by the general interface selected by the simulation model to be verified.

[0009] The platform adaptation layer is used to provide the general interface with underlying implementation information of several corresponding architectures, and to generate an architecture catalog based on the architecture selected by the simulation model to be verified.

[0010] The mixed compilation module is used to support multi-language mixed compilation of the model directory, the interface directory and the architecture directory.

[0011] The business verification layer is used to call the model directory, the interface directory and the architecture directory to perform simulation verification on the simulation model to be verified.

[0012] Compared with the prior art, the present invention has obvious beneficial effects. By means of the above technical solution, the present invention provides an automated verification system based on a simulation model, which can achieve considerable technical advancement and practicality, and has wide industrial utilization value, and has at least the following beneficial effects:

[0013] The present invention provides an automatic verification system based on a simulation model, characterized in that the system comprises: a modular hierarchical management module, a model and platform implementation module and a mixed compilation module, wherein the modular hierarchical management module comprises a model layer, a test unit layer, a test case layer and a verification layer, and the model and platform implementation module comprises a business verification layer, a general interface layer and a platform adaptation layer. The model layer is used to define an entry template, the test unit layer is used to define a process-related template, the test case layer is used to define a test case template, and the verification layer is used to define a post-processing template. The entry template, the process-related template, the test case template and the post-processing template are used to perform standardized processing on the simulation model to be verified, so as to obtain a model directory corresponding to the simulation model to be verified. The general interface layer is used to provide a general interface corresponding to several preset functions, and the general interface selected by the simulation model to be verified generates an interface directory. The platform adaptation layer is used to provide the general interface with several underlying implementation information of corresponding architectures, and the architecture selected by the simulation model to be verified generates an architecture directory. The mixed compilation module is used to support multi-language mixed compilation of the model directory, the interface directory and the architecture directory. The business verification layer is used to call the model directory, the interface directory and the architecture directory to perform simulation verification on the simulation model to be verified.

[0014] It can be seen that by building an automated verification system, various simple and complex models, and continuously iterative simulation models can be tested and verified with a standardized process, and can support the testing and verification of closed-source or open-source third-party models. It can effectively solve the problems of high cost and low efficiency of system-level simulation, and can also provide support for subsequent continuous iterative verification platforms and model simulations. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0016] Figure 1 A schematic diagram of the architecture of an automated verification system based on a simulation model provided by an embodiment of the present invention.

[0017] Figure 2 A schematic diagram of the architecture of a modular hierarchical management module in an automated verification system based on a simulation model provided by an embodiment of the present invention.

[0018] Figure 3 A schematic diagram of the architecture of a universal interface layer in an automated verification system based on a simulation model provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0019] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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 those skilled in the art without creative work are within the scope of protection of the present invention.

[0020] This embodiment provides an automated verification system based on a simulation model, the system comprising: a modular hierarchical management module, a model and platform implementation module and a mixed module, wherein the modular hierarchical management module comprises a model layer, a test unit layer, a test case layer and a verification layer, and the model and platform implementation module comprises a business verification layer, a general interface layer and a platform adaptation layer, see Figure 1 , is a schematic diagram of the architecture of an automated verification system based on a simulation model provided by an embodiment of the present invention;

[0021] The model layer is used to define the entry template, the test unit layer is used to define the process-related template, the test case layer is used to define the test case template, and the verification layer is used to define the post-processing template;

[0022] The entry template, the process-related template, the test case template and the post-processing template are used for standardizing the simulation model to be verified, so as to obtain a model directory corresponding to the simulation model to be verified;

[0023] The general interface layer is used to provide general interfaces corresponding to a number of preset functions, and the general interface selected by the simulation model to be verified generates an interface catalog;

[0024] The platform adaptation layer is used to provide the underlying implementation information of several corresponding architectures for the general interface, and to generate an architecture catalogue based on the architecture selected by the simulation model to be verified;

[0025] The mixed compilation module is used to support multi-language mixed compilation of the model directory, the interface directory and the architecture directory;

[0026] The business verification layer is used to call the model directory, the interface directory and the architecture directory to perform simulation verification on the simulation model to be verified.

[0027] Among them, the modular hierarchical management module, the model and platform implementation module and the mixed editing module can be used to support the modular management of model automatic verification, so that users can standardize, compile, update, delete and other processes for each link of the simulation model to be verified based on the module.

[0028] The deployment interface of each module can be deployed through a registration system using a function pointer array. The entry template, the process-related template, the test case template and the post-processing template are all implemented in a registration function manner. After the simulation model to be verified is registered, the automated verification system provided in this embodiment can be used for simulation verification. Through the registration system, independent debugging of each simulation model can be achieved.

[0029] The business verification layer realizes the refined management of test cases through modular hierarchical management modules, and also realizes the rapid iteration and performance analysis of model verification functions with the cooperation of the platform adaptation layer and the general interface layer. The business verification layer is the verification subject of the specific simulation model and completes the test verification implementation of the specific simulation model.

[0030] Specifically, in the early preparation stage, the mid-term use case testing stage and the later judgment and statistics stage of simulation verification, the corresponding process-related templates, test case templates and post-processing templates can be used to formulate specific codes for the simulation model to be tested, thereby improving the high availability of the automated verification system.

[0031] The test case layer can be used to be responsible for the running of test cases or verification cases and the return of results, and the verification layer can be used to provide a case determination interface and a statistical interface to realize the result feedback and statistics of test cases or verification cases.

[0032] It should be noted that users of process-related templates and post-processing templates can determine whether they need to be configured based on actual needs, thereby further improving the usability of various models.

[0033] This embodiment abstracts interfaces with the same functions of different architectures into universal interfaces, forms a universal interface layer from all universal interfaces, and forms a platform adaptation layer from the underlying implementation information of the architecture corresponding to the universal interface. This unifies interfaces of different architectures and enables the automated verification system to meet the requirements of combined verification of different architectures, memory mapping methods, and different IPs.

[0034] The general interface layer may include system class interfaces, statistical class interfaces, display and printing class interfaces, etc. The general interface layer allows users to conduct actual test verification without spending too much time on public resources, and has high reusability.

[0035] In a specific implementation, the process-related templates include a preparation phase template, a test unit template, and an exit phase template, and the preparation phase template at least includes an enable template and an initialization template.

[0036] Among them, the preparation phase template can be used by the user to specify the preparatory work of the simulation model before the use case test, such as initializing certain registers, enabling certain interfaces, etc. The test unit template can be used to specify specific test cases. The exit phase template can be used by the user to specify the exit work of the simulation model after the use case test.

[0037] In a specific implementation, the process-related template further includes an extension template, and the extension template is used to support user-defined operations.

[0038] Among them, the preparation phase template, test unit template, and exit phase template are usually only standardized for the models that the user actually needs to perform simulation verification. For the automated verification system provided in this embodiment, the user can also perform customized operations, such as resetting the entire model. Therefore, this embodiment provides an extended template and a corresponding interface to further improve the availability of the automated verification system.

[0039] In a specific implementation, the post-processing template includes a decision template and a statistics template, the decision template is used to feed back the test case results, and the statistics template is used to collect statistics on the test case results.

[0040] Among them, the use case judgment template can provide various assertions for users to choose from, and the statistical template can include initialization, clearing, addition and other processing for users to choose from.

[0041] See also Figure 2 , which is a schematic diagram of the architecture of a modular hierarchical management module in an automated verification system based on a simulation model provided in an embodiment of the present invention.

[0042] In a specific implementation, the preset functions corresponding to the universal interface at least include memory management and interruption.

[0043] Among them, memory management and interrupts correspond to system class interfaces, and system class interfaces can also include register interfaces, delay interfaces, etc. The preset functions corresponding to the general interfaces can also include test verification data statistics, performance metrics, etc. of the corresponding statistical class interfaces, and display and printing of the corresponding display and printing class interfaces.

[0044] It should be noted that the preset functions corresponding to the universal interface may include one or more of the above functions. No matter which combination of the above functions the implementer chooses to form a universal interface layer, it is within the protection scope of the present invention.

[0045] In a specific implementation, the preset functions corresponding to the universal interface further include user-defined functions;

[0046] When the preset function corresponding to the universal interface is a user-defined function, the user needs to add underlying implementation information supporting the user-defined function in the platform adaptation layer.

[0047] Among them, interfaces for custom functions are reserved for users in the general interface layer. Users can add interfaces corresponding to custom functions according to actual needs, and add underlying implementation information to support the custom functions in the platform adaptation layer. Similarly, when the user selects a general interface, but the platform adaptation layer does not contain the underlying implementation information of the general interface corresponding to the user-specified architecture, the user can also add underlying implementation information to support the general interface in the platform adaptation layer, thereby further improving the availability of the automated verification system.

[0048] See also Figure 3 , is a schematic diagram of the architecture of a general interface layer in an automated verification system based on a simulation model provided in an embodiment of the present invention.

[0049] In a specific implementation manner, the architecture corresponding to the underlying implementation information includes at least the M series and the A series in ARM.

[0050] Among them, the M series and A series in the above-mentioned ARM are only used as examples. In one embodiment, the implementer can choose one or more current processor architectures such as ARM series, x86 series, riscv series, etc. to abstract a common interface, that is, the architecture corresponding to the underlying implementation information can include one or more current processor architectures. No matter what current processor architecture the architecture corresponding to the underlying implementation information includes, it is within the protection scope of the present invention.

[0051] In a specific implementation, the programming languages ​​corresponding to the multi-language mixed compilation include C language and C++ language;

[0052] The multi-language mixed compilation is used to support the user to use C language and / or C++ language to compile to obtain the model directory, the interface directory and the architecture directory, and to support mutual calls between C language and C++ language.

[0053] In this embodiment, by building an automated verification system, various simple and complex models, and continuously iterative simulation models can be tested and verified with a standardized process, and can support the testing and verification of closed-source or open-source third-party models, which can effectively solve the problems of high cost and low efficiency of system-level simulation, and can also provide support for subsequent continuously iterative verification platforms and model simulations.

[0054] Although some specific embodiments of the present invention have been described in detail by way of example, it will be appreciated by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present invention. It will also be appreciated by those skilled in the art that various modifications may be made to the embodiments without departing from the scope and spirit of the present invention. The scope of the present invention is defined by the appended claims.

Claims

1. An automated verification system based on a simulation model, characterized in that: The system includes: a modular hierarchical management module, a model and platform implementation module and a mixed module, wherein the modular hierarchical management module includes a model layer, a test unit layer, a test case layer and a verification layer, and the model and platform implementation module includes a business verification layer, a general interface layer and a platform adaptation layer; The model layer is used to define the entry template, the test unit layer is used to define the process-related template, the test case layer is used to define the test case template, and the verification layer is used to define the post-processing template; The entry template, the process-related template, the test case template and the post-processing template are used for standardizing the simulation model to be verified, so as to obtain a model directory corresponding to the simulation model to be verified; The general interface layer is used to provide general interfaces corresponding to a number of preset functions, and the general interface selected by the simulation model to be verified generates an interface catalog; The platform adaptation layer is used to provide the underlying implementation information of several corresponding architectures for the general interface, and to generate an architecture catalogue based on the architecture selected by the simulation model to be verified; The mixed compilation module is used to support multi-language mixed compilation of the model directory, the interface directory and the architecture directory; The business verification layer is used to call the model directory, the interface directory and the architecture directory to perform simulation verification on the simulation model to be verified.

2. The automated verification system based on the simulation model according to claim 1, characterized in that: The process-related templates include a preparation phase template, a test unit template, and an exit phase template. The preparation phase template at least includes an enable template and an initialization template.

3. The automated verification system based on simulation model according to claim 2, characterized in that: The process-related template also includes an extension template, and the extension template is used to support user-defined operations.

4. The automated verification system based on simulation model according to claim 1, characterized in that: The post-processing template includes a judgment template and a statistical template. The judgment template is used to feed back the test case results, and the statistical template is used to collect statistics on the test case results.

5. The automated verification system based on simulation model according to claim 1, characterized in that: The preset functions corresponding to the universal interface at least include memory management and interruption.

6. The automated verification system based on simulation model according to claim 1, characterized in that: The preset functions corresponding to the universal interface also include user-defined functions; When the preset function corresponding to the universal interface is a user-defined function, the user needs to add underlying implementation information supporting the user-defined function in the platform adaptation layer.

7. The automated verification system based on simulation model according to claim 1, characterized in that: The architecture corresponding to the underlying implementation information includes at least the M series and A series of ARM.

8. The automated verification system based on simulation model according to claim 1, characterized in that: The programming languages ​​corresponding to the multi-language mixed compilation include C language and C++ language; The multi-language mixed compilation is used to support the user to use C language and / or C++ language to compile to obtain the model directory, the interface directory and the architecture directory, and to support mutual calls between C language and C++ language.