Verification environment generation, devices, equipment and storage media

By creating and connecting interface elements in the interface and generating verification environment code using template rendering technology, the problem of verification platform construction in the existing technology relying on manual code writing, and rapid construction and simulation operation are achieved, reducing human resource consumption.

CN118821687BActive Publication Date: 2024-11-29BEIJING INSTITUTE OF OPEN SOURCE CHIP
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411298295.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-14
Publication Date
2024-11-29
Estimated Expiration
2044-09-14

AI Technical Summary

Technical Problem

In the prior art, the construction of a verification platform for verification circuit design relies on manual code writing, resulting in high human resources consumption, high cost and long time.

Method used

By creating and connecting interface elements in the construction interface, generating verification platform structure and converting it into verification guide files, obtaining the basic framework library, and using template rendering technology to fill and compile code, it can achieve rapid construction and simulation operation of the verification environment, and reduce manual code writing link.

Benefits of technology

Reliance on human resources is reduced, the efficiency and intuitiveness of verification platform construction is improved, the cost and time of manual code writing is reduced, and rapid construction and simulation operation is achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118821687B_ABST
    Figure CN118821687B_ABST
Patent Text Reader

Abstract

The present application provides a verification environment generation, device, electronic device and computer-readable storage medium, including: in the construction interface, creating interface elements, interconnecting the interface elements, obtaining the verification platform structure, and converting the verification platform structure into a verification guide file; each interface element corresponds to a constituent unit in the verification platform; obtaining a basic framework library, and filling parameters of the basic framework templates in the basic framework library according to the verification guide file; after converting all the filled basic framework templates into verification environment code files, compiling and simulating the verification environment code files to obtain simulation results. The process of the present application eliminates the link of manually writing codes and scripts, greatly reducing the dependence on human resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a verification environment generation, device, electronic device and computer-readable storage medium. Background Art

[0002] In order to ensure the operational stability of the circuit design under test, the circuit design under test needs to be verified.

[0003] At present, the construction of a verification platform for implementing verification is achieved by manually writing code. Developers can write relevant codes for each verification component according to the verification requirements, and connect the various verification components to each other, and finally obtain the code of the constructed verification platform. The code of the constructed verification platform can then be compiled and simulated.

[0004] However, the current solution relies heavily on human resources, resulting in high labor costs. Summary of the invention

[0005] The embodiments of the present application provide a verification environment generation, device, electronic device and computer-readable storage medium to solve the problems in the related art.

[0006] In a first aspect, an embodiment of the present application provides a method for generating a verification environment, the method comprising:

[0007] In the construction interface, interface elements are created, the interface elements are interconnected, a verification platform structure is obtained, and the verification platform structure is converted into a verification guidance file; each of the interface elements corresponds to a constituent unit in the verification platform;

[0008] Obtain a basic framework library, and fill in parameters of a basic framework template in the basic framework library according to the verification guidance file;

[0009] After converting all filled basic framework templates into verification environment code files, the verification environment code files are compiled and simulated to obtain simulation results.

[0010] In a second aspect, an embodiment of the present application provides a device for generating a verification environment, the device comprising:

[0011] A construction module, used to create interface elements in the construction interface, interconnect the interface elements, obtain a verification platform structure, and convert the verification platform structure into a verification guidance file; each of the interface elements corresponds to a constituent unit in the verification platform;

[0012] A filling module is used to obtain a basic framework library and fill parameters of a basic framework template in the basic framework library according to the verification guidance file;

[0013] The running module is used to convert all the filled basic framework templates into verification environment code files, compile and simulate the verification environment code files to obtain simulation results.

[0014] In a third aspect, an embodiment of the present application further provides an electronic device, including a processor;

[0015] a memory for storing instructions executable by the processor;

[0016] The processor is configured to execute the instructions to implement the method of the first aspect.

[0017] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, which, when instructions in the computer-readable storage medium are executed by a processor of an electronic device, enables the electronic device to execute the method of the first aspect.

[0018] In the embodiment of the present application, each constituent unit of the verification platform can be converted into a displayable interface element, and the user can create the interface elements in the construction interface and perform operations such as positioning and interconnection, so as to realize the rapid construction of the verification platform structure and obtain the verification guide file. After that, the basic framework library can be obtained, and the basic framework template in the basic framework library can be filled with parameters according to the verification guide file, so as to quickly build the code fragments of the constituent units through the template rendering technology, and finally, all the filled basic framework templates are converted into verification environment code files, and the verification environment code files are compiled and simulated to obtain the simulation results. The whole process eliminates the link of manually writing codes and scripts, greatly reducing the dependence on human resources.

[0019] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] 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.

[0021] Figure 1 It is a flowchart of the steps of generating a verification environment provided by an embodiment of the present application;

[0022] Figure 2It is a flowchart of specific steps for generating a verification environment provided by an embodiment of the present application;

[0023] Figure 3 This is a diagram of a generation interface of a verification environment provided in an embodiment of the present application;

[0024] Figure 4 This is another generation interface diagram of a verification environment provided in an embodiment of the present application;

[0025] Figure 5 This is another generation interface diagram of a verification environment provided in an embodiment of the present application;

[0026] Figure 6 This is another generation interface diagram of a verification environment provided in an embodiment of the present application;

[0027] Figure 7 It is a block diagram of a device for generating a verification environment provided in an embodiment of the present application;

[0028] Figure 8 is a block diagram of an electronic device provided by an embodiment of the present invention;

[0029] Fig. 9 is a block diagram of another electronic device according to another embodiment of the present invention. DETAILED DESCRIPTION

[0030] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0031] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally a class, and the number of objects is not limited. For example, the first object can be one or more. In addition, the term "and / or" in the specification and claims is used to describe the association relationship of associated objects, indicating that three kinds of relationships can exist, for example, A and / or B can be represented: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the front and back associated objects are a kind of "or" relationship. In the embodiment of the present application, the term "multiple" refers to two or more, and other quantifiers are similar.

[0032] Figure 1 , is a flowchart of the steps of generating a verification environment provided by an embodiment of the present application, such as Figure 1 As shown, the method may include:

[0033] Step 101: In the construction interface, create interface elements, connect the interface elements to each other, obtain the verification platform structure, and convert the verification platform structure into a verification guidance file; each of the interface elements corresponds to a constituent unit in the verification platform.

[0034] In the design field of the intellectual property module (IP) of integrated circuits, designers can use Verilog (a hardware description language) to write circuit designs and obtain the circuit design file to be tested. The circuit design file to be tested can be used to describe the constituent units of the circuit, the interconnection relationship between the constituent units, etc. In order to ensure the operational stability of the circuit design to be tested, it is also necessary to build a verification platform corresponding to the circuit design to be tested to verify the stability of the circuit design to be tested. The relevant technology is to manually write the verification platform file based on the circuit design to be tested. The whole process is cumbersome and time-consuming.

[0035] In an embodiment of the present application, in order to reduce the cost and difficulty of building a verification platform for the circuit design to be tested, the embodiment of the present application can develop a convenient, intuitive and efficient interactive method to build a verification platform based on a simple and intuitive interface design.

[0036] The specific idea of ​​the embodiment of the present application is to convert each constituent unit of the verification platform into a displayable interface element, and the user can create interface elements, arrange the positions of interface elements, and connect them to each other through convenient operations such as dragging and connecting in the construction interface, so as to obtain the topological structure of the verification platform. After the design is completed, the verification platform structure can be stored to obtain a verification guidance file.

[0037] In addition, the verification guidance file includes information about each component of the verification platform, including the component's own attributes, the associated attributes between the component and other components, etc. The component's own attributes define the component's type, data processing method, interface, etc. The associated attributes of the component include the connection relationship between the component and other components, connection attributes (type of connection channel), etc.

[0038] Furthermore, the embodiments of the present application can implement the above-mentioned design process through convenient interactive operations. For example, the user can right-click in the design area to perform a creation operation, call out a creation list, and create the selected interface elements by selecting the interface elements in the creation list. After the interface elements are created, the interface elements can be dragged and dropped to set the position of the interface elements. The interface elements can also be connected to other interface elements through connection operations.

[0039] It should be noted that the information of the constituent units can be default information, which is automatically filled in the interface element when the corresponding interface element is created. The user can also adjust the information of the constituent units included in the interface element according to actual needs. In addition, after the verification platform structure is created, the circuit design to be tested can be imported into the verification platform structure to achieve the rendering of the circuit design to be tested in the verification platform, and perform interface analysis on the circuit design to be tested, so as to achieve the purpose of verifying the circuit design to be tested through the verification platform during subsequent verification.

[0040] In one implementation, the embodiment of the present application can build a verification platform based on the unified verification methodology (UVM, Universal Verification Methodology). UVM is a set of class libraries built using the SystemVerilog language to implement a verification methodology based on coverage-driven excitation random constraints. UVM aims to unify and standardize the verification specifications of the industry. In this step, a UVM canvas can be created in the construction interface to build a verification platform structure on the UVM canvas.

[0041] Step 102: Obtain a basic framework library, and fill in parameters of a basic framework template in the basic framework library according to the verification guide file.

[0042] In the embodiment of the present application, the interface element needs to be associated with a corresponding code snippet, which is used to implement the specific function of the constituent unit corresponding to the interface element. The related technology manually writes the code snippet, which is time-consuming and costly. However, the embodiment of the present application can use template rendering technology to quickly and conveniently implement the construction of code snippets. This technology can use the template engine to integrate parameters and template frameworks together, and finally achieve the purpose of rendering the code snippet corresponding to the constituent unit.

[0043] Specifically, the embodiment of the present application can provide a basic framework library, which includes basic framework templates corresponding to each constituent unit. The basic framework template defines the framework of the code snippet corresponding to the constituent unit. The fields related to the parameters in the basic framework template can be filled with the parameters. Since the verification guidance file includes the information of each constituent unit, the information of each constituent unit in the verification guidance file is filled into the basic framework template corresponding to the constituent unit in the form of parameter passing, so that the preliminary construction of the code snippet corresponding to the constituent unit can be achieved. Subsequently, all the filled basic framework templates are instantiated into codes, and the standardized basic framework templates will be converted into unique directional files, and the verification environment code file can be obtained. The whole process reduces the dependence on manual labor and is more intuitive and efficient.

[0044] The construction of the basic framework library mainly focuses on the creation of standardized templates, the main function of which is to provide standardized UVM verification environment reference code. The reference code starts from the original UVM framework and is expanded on this basis, replacing the non-standardized code part with variable information that follows the syntax rules of the template engine. This part of the non-standardized code can be regenerated in the form of user-specified configuration parameter information (i.e., fill in the parameters of the basic framework template in the basic framework library according to the verification guidance file), realizing the flexible generation of the verification environment.

[0045] It should be noted that, based on the coding specification of template engine technology, UVM reference code can be rewritten to build a standard UVM basic framework library, which is used for the generation of specific code fragments according to the verification guide file in the later stage. The template engine technology adopted here includes but is not limited to mako, jinjia2, cheetah, etc.

[0046] Step 103: After converting all filled basic framework templates into verification environment code files, compile and simulate the verification environment code files to obtain simulation results.

[0047] After obtaining all the filled basic framework templates, the code snippets corresponding to each component unit of the verification platform are obtained. By instantiating these code snippets, the verification environment code files can be obtained. After that, the verification environment code files can be compiled and simulated to realize the verification of the circuit design to be tested based on the verification platform and obtain simulation results.

[0048] In summary, in the embodiments of the present application, each constituent unit of the verification platform can be converted into a displayable interface element, and the user can create the interface elements in the construction interface and perform operations such as positioning and interconnection, so as to realize the rapid construction of the verification platform structure and obtain the verification guide file. After that, the basic framework library can be obtained, and according to the verification guide file, the basic framework template in the basic framework library can be filled with parameters, so as to quickly build the code fragments of the constituent units through the template rendering technology, and finally, all the filled basic framework templates are converted into verification environment code files, and the verification environment code files are compiled and simulated to obtain the simulation results. The whole process eliminates the link of manually writing codes and scripts, greatly reducing the dependence on human resources.

[0049] In addition, an intuitive building interface is provided in the whole process. The various components of the verification platform are intuitively displayed in the building interface in the form of interface elements, and simple and convenient interactive operations are used as assistance, which further reduces the difficulty of the building operation.

[0050] Figure 2 , is a flowchart of specific steps for generating a verification environment provided by an embodiment of the present application, such as Figure 2 As shown, the method may include:

[0051] Step 201: display a building interface, and in response to a creation operation in the building interface, display a list of interface elements.

[0052] Step 202: In response to a selection operation on the interface element list, select a created interface element.

[0053] Step 203: Setting the position of the interface element and interconnecting a plurality of the interface elements by dragging operations to obtain the verification platform structure, and converting the verification platform structure into a verification guide file.

[0054] In an embodiment of the present application, for steps 201-203, each constituent unit of the on-chip network can be converted into a displayable interface element, and the user can create corresponding interface elements in the construction interface and perform operations such as positioning and interconnection, thereby realizing the construction of the topological structure of the on-chip network.

[0055] Specifically, we can first show Figure 3 In the creation interface shown in the figure, enter the project name (such as: xx circuit design verification project) to create a verification platform construction project, and then you can display the following Figure 4In the construction interface shown, a material design area may be provided in the construction interface. The user may create interface elements through creation operations in the material design area. For example, the user may right-click in the material design area to perform a creation operation, call up a creation list, and select an object in the creation list to create the selected interface element. Of course, the material creation method may not be limited to the above method.

[0056] In general, the verification platform may include an external interface component, a processor core interface component, a verification comparison component, a verification reference model, a connection component, etc. Among them, the external interface component is used to implement the interactive interface between the verification platform and the external device, the processor core interface component is used to implement the interactive interface between the verification platform and the processor core, the data of the processor core can be transmitted to the verification comparison module by the processor core interface implemented by the verification platform, the data of the external device can be transmitted to the verification comparison module by the external interface implemented by the verification platform, and the verification comparison module is used to compare the data of the processor core, the data of the external device and the data of the verification reference model, so as to obtain the verification result. Of course, the verification platform can also include more components, which are not shown here one by one.

[0057] In addition, in the embodiment of the present application, each constituent unit may be configured with an interface element of a corresponding shape, and the interface elements of different constituent units may be different. Figure 4 In the example, you can configure the interface element of the verification and comparison module to be a rectangular box, the interface element of the device under test (loaded with the circuit design to be tested) to be an ellipse, and the interface element of the verification reference model to be a rounded box, etc.

[0058] like Figure 4 In the present invention, three interface elements, one configuration verification reference model interface element, one processor core interface element and one verification comparison module interface element are created to construct a verification platform structure, in which the three interface elements are connected to each other in sequence.

[0059] Optionally, the interface element is associated with information of a constituent unit corresponding to the interface element, and step 203 may specifically include:

[0060] Sub-step 2031: In response to the save operation, the verification platform structure is stored as a graph file.

[0061] Sub-step 2032: perform data processing on the information of the constituent units included in the image file in a preset manner, and fill the processed results into the verification guide file in a target format, where the target format is a format that matches the verification guide file.

[0062] In the embodiment of the present application, with respect to sub-steps 2031-2032, after completing the construction of the verification platform structure, in response to a save operation, the created verification platform structure can be persistently stored as a graph file.

[0063] However, the image file is a file that matches the data format of the building engine. The information in the image file needs to be used later to render the basic framework template through the template engine, but the data format of the image file does not match the data format of the template engine. Therefore, the embodiment of the present application can perform data processing on the information of the constituent units included in the image file in a preset manner, and fill the processed results into the verification guidance file in a target format, that is, the target format is a data format that matches the template engine, which can facilitate the stable operation of the template engine. Among them, the preset method can include data processing methods such as collection, reasoning, and classification of the information of the constituent units, and the processing of the preset method can realize the organization, statistics, and standardization of the information of the constituent units.

[0064] In one implementation, by creating a project on the UVM canvas, after completing the construction of the verification platform structure, in response to a storage operation, a UVMGraph file (graph file) can be obtained, and then after converting the UVMGraph file according to the target format, a UVMIndInfo file (verification guide file) can be obtained.

[0065] Step 204: parse the verification guide file to obtain information of the constituent unit; the information of the constituent unit includes: first information for defining the properties of the constituent unit itself, and second information for defining the associated properties of the constituent unit.

[0066] The verification guide file includes information of constituent units corresponding to the interface elements.

[0067] Step 205: determine a basic framework template corresponding to the information of the constituent unit, and fill the first information and the second information into the basic framework template respectively.

[0068] In the embodiment of the present application, for steps 204-205, the embodiment of the present application can use template rendering technology to quickly and conveniently implement the construction of code snippets corresponding to the interface elements in the verification platform structure. This technology can use the template engine to integrate parameters and template frameworks together, and ultimately achieve the purpose of rendering code snippets corresponding to the constituent units.

[0069] First, the template engine can parse the verification guidance file to obtain the information of the constituent unit; then, it can determine the basic framework template corresponding to the information of the constituent unit, and fill the information of the constituent unit into the basic framework template, so that the information of the constituent unit is filled into the basic framework template corresponding to the constituent unit in the form of parameter passing, thereby realizing the preliminary construction of the code snippet corresponding to the constituent unit.

[0070] Specifically, the automatic generation of the above code snippets is the core stage of the automatic generation of the verification platform. This stage mainly connects the UVMIndInfo file with the basic framework library and completes the process control and configuration information filling of the entire automatic generation of the verification platform. In this stage, the information in the UVMIndInfo file will be parsed, and the parsed information of the constituent units will be passed to the basic framework template in the form of dictionary variable parameters for rendering. The template will then be converted into a unique directional file to obtain the code snippet.

[0071] Next, we will use an example to describe the operation process of the template engine:

[0072] Taking the Mako engine as an example, the most basic method for processing the basic framework template, creating the basic framework template and rendering it is to use the Template class. For multiple template files in the verification environment, the TemplateLookup class needs to be used to implement it. By calling the render method, the information in UVMIndInfo can be passed to the Template text parameter. When the render method is called, a template operating environment will be established, and the render_body method in its library will be automatically called to generate some intermediate files and save them to the buffer. The template_dir parameter refers to the absolute path where the template file is located. The path set by the module_directory parameter is the buffer, which stores the intermediate files generated when the template is rendered. The path of the final generated file is the location represented by the save_path parameter obtained by parsing the user configuration information. Among them, part of the code that extracts the relevant information of each template file from the variable cfg_data of the user configuration information can be stored in the form of a dictionary. This information will be stored in various variables or lists for use in subsequent functions.

[0073] Furthermore, for building functions for rendering different template files, the uvm_top_gen function renders the template files at the testbench level, uvm_test_gen renders the template files under the test folder, uvm_envcomp_gen is responsible for rendering the template files in env, and uvm_agentcomp_gen renders the template files in agent. Parameters such as filename or envcomp_filename in the function represent the name of the template file, envname, agentname, etc. represent the corresponding component name information parsed, and **kwargs represents the configuration information needed to render the file. When calling part of the code of the function that renders the template file, part of the input in the function is the parsed user configuration information.

[0074] Finally, for the verification environment code file output stage, this stage is the stage of generating the final verification environment code file. After the parameter information is filled into the corresponding template, the user can edit the core code, develop test cases and simulate the verification platform (overall operation) based on the generated verification environment file on the UVM canvas. The final output file structure includes: rtl sim testbench verification, where rtl contains rtl-related files uploaded by the user through the UVM canvas of the client (rtl is the circuit design file to be tested), and the sim directory is used to store the simulation results of each test case when the subsequent user simulates. The testbench contains the generated core verification environment file, and the verification contains the Makefile file (run command file). The simulation command entered by the user on the client during simulation will be executed in this directory.

[0075] After obtaining the verification environment code file, the user can compile the verification environment code file first. The compilation process will execute the compilation command in the verification directory: make comp TESTNAME=mcdf_full_random_test USER_COMP_DEFINE=.

[0076] After the compilation is successful, you can run the compilation result, that is, execute the run command make run TESTNAME=mcdf_full_random_test SEED=100 USER_COMP_DEFINE= in the verification directory of the corresponding project in the background.

[0077] Step 206: After converting all filled basic framework templates into verification environment code files, compile and simulate the verification environment code files to obtain simulation results.

[0078] This step may be specifically referred to as the above step 103, which will not be described in detail here.

[0079] Optionally, the interface element has a corresponding basic framework template. Before step 206, the following may also be included:

[0080] Step 207: Display the verification platform structure in the building interface.

[0081] Step 208: In response to the modification operation, code modification is performed on the populated target basic framework template associated with the target constituent unit in the verification platform structure.

[0082] In an embodiment of the present application, for steps 207-208, after completing the filling of the basic framework template, the verification platform structure can be displayed in the construction interface. At this time, all the interface elements included in the verification platform structure have been displayed in the interface, and the connection relationship between the various interface elements has also been intuitively displayed. The user can comprehensively and intuitively view the constructed verification platform structure.

[0083] Furthermore, when the user has an optimization requirement for a target component unit corresponding to a target interface element, the user can also modify the code of the filled target basic framework template associated with the target component unit in the verification platform structure through modification operations. That is, the modification window of the target basic framework template of the target component unit can be called up in the building interface, and the user can view the content of the target basic framework template in the modification window and modify it. The purpose of personalized modification, debugging, reuse and integration of the components in the verification platform structure is achieved.

[0084] Optionally, step 208 may specifically include:

[0085] Sub-step 2081: In response to a triggering operation on a target constituent unit displayed in the verification platform structure, a preset window is created, and the code of a populated target basic framework template associated with the target constituent unit is displayed in the preset window.

[0086] Sub-step 2082: In response to the modification operation on the code in the preset window, complete the code modification of the filled target basic framework template.

[0087] Optionally, the preset window includes a first area and a second area, the first area including: codes related to the structural information and attribute information of the target constituent unit; the second area including: other codes in the code of the target basic framework template except the codes related to the structural information and the attribute information; the first area is configured to be in an unmodifiable state.

[0088] In an embodiment of the present application, for sub-steps 2081-2082, when the user has a modification and optimization requirement for the code snippet of the target constituent unit, the user can trigger the target constituent unit displayed in the building interface, thereby calling out a preset window displaying the code of the filled target basic framework template associated with the target constituent unit. The user can then perform code modification operations in the preset window to complete the code modification of the filled target basic framework template, thereby achieving modification and optimization of the code snippet of the target constituent unit.

[0089] Furthermore, the code snippet of the target constituent unit (the code of the filled target basic framework template) includes two parts: Content 1, code related to the attribute information of the target constituent unit and the topological relationship between the target constituent unit and other constituent units; Content 2, other code in the code snippet of the target constituent unit except the code of Content 1. The code of Content 2 can be modified and optimized according to the actual needs of the user, but the user's modification of the code of Content 1 will affect the topological relationship of the verification platform structure and the attributes of the constituent unit, thereby further affecting the operational stability of the verification platform structure. Therefore, the embodiment of the present application can display Content 1 in the first area of ​​the preset window, display Content 2 in the second area, and configure the first area to be unmodifiable, so as to avoid operational stability defects caused by modifying the attribute information and topological relationship of the target constituent unit.

[0090] Reference Figure 5 When the user has a code modification requirement for the verification comparison module in the verification platform structure, the user can double-click the verification comparison module to call out a preset window including a first area and a second area. The first area displays the code related to the properties and topological relationships of the verification comparison module, and the second area displays other codes except the properties and topological relationships. The content in the first area cannot be modified, and the user can modify the code in the second area to meet the purpose of debugging and optimizing the verification comparison module.

[0091] Optionally, before step 203, the following steps may also be included:

[0092] Step 209: Obtain the design file to be tested, and upload the design file to be tested to the verification platform structure.

[0093] Step 210: Render the design file to be tested in the verification platform structure.

[0094] In the embodiment of the present application, for steps 209-210, refer to Figure 6 The user can double-click the device under test in the verification platform structure to bring up the upload window. The user can upload the design file to be tested in the upload window, so that the design file to be tested can be rendered in the verification platform structure. Subsequently, the verification environment code file can be compiled and simulated to realize the verification of the circuit design to be tested based on the verification platform and obtain the simulation results.

[0095] In summary, in the embodiments of the present application, each constituent unit of the verification platform can be converted into a displayable interface element, and the user can create the interface elements in the construction interface and perform operations such as positioning and interconnection, so as to realize the rapid construction of the verification platform structure and obtain the verification guide file. After that, the basic framework library can be obtained, and according to the verification guide file, the basic framework template in the basic framework library can be filled with parameters, so as to quickly build the code fragments of the constituent units through the template rendering technology, and finally, all the filled basic framework templates are converted into verification environment code files, and the verification environment code files are compiled and simulated to obtain the simulation results. The whole process eliminates the link of manually writing codes and scripts, greatly reducing the dependence on human resources.

[0096] Figure 7 : is a block diagram of a device for generating a verification environment provided in an embodiment of the present application, the device comprising:

[0097] The construction module 301 is used to create interface elements in the construction interface, connect the interface elements to each other, obtain the verification platform structure, and convert the verification platform structure into a verification guide file; each of the interface elements corresponds to a component unit in the verification platform;

[0098] A filling module 302 is used to obtain a basic framework library and fill parameters of a basic framework template in the basic framework library according to the verification guide file;

[0099] The running module 303 is used to convert all the filled basic framework templates into verification environment code files, compile and simulate the verification environment code files to obtain simulation results.

[0100] Optionally, the construction module 301 includes:

[0101] A display submodule, for displaying a building interface and, in response to a creation operation in the building interface, displaying a list of interface elements;

[0102] A selection submodule, for selecting a created interface element in response to a selection operation on the interface element list;

[0103] The connection submodule is used to set the position of the interface element through a dragging operation, and to connect multiple interface elements to each other to obtain the verification platform structure.

[0104] Optionally, the construction module 301 includes:

[0105] A saving submodule, used for storing the verification platform structure as a graph file in response to a saving operation;

[0106] The data processing submodule is used to process the information of the constituent units included in the image file in a preset manner, and fill the processed results into the verification guide file in a target format, where the target format is a format that matches the verification guide file.

[0107] Optionally, the verification guide file includes information of constituent units corresponding to the interface elements;

[0108] The filling module 302 includes:

[0109] A parsing submodule, used to parse the verification guide file to obtain information of the constituent unit; the information of the constituent unit includes: first information for defining the properties of the constituent unit itself, and second information for defining the associated properties of the constituent unit;

[0110] The filling submodule is used to determine a basic framework template corresponding to the information of the constituent unit, and fill the first information and the second information into the basic framework template respectively.

[0111] Optionally, the interface element has a corresponding basic framework template;

[0112] The device also includes:

[0113] A display module, used to display the verification platform structure in the construction interface;

[0114] The modification module is used to modify the code of the filled target basic framework template associated with the target constituent unit in the verification platform structure in response to the modification operation.

[0115] Optionally, the modification module includes:

[0116] A pre-examination window submodule, for creating a preset window in response to a triggering operation on a target constituent unit displayed in the verification platform structure, and displaying in the preset window the code of a populated target basic framework template associated with the target constituent unit;

[0117] The modification submodule is used to complete the code modification of the filled target basic framework template in response to the modification operation of the code in the preset window.

[0118] Optionally, the preset window includes a first area and a second area, the first area includes: codes related to the structure information and attribute information of the target constituent unit; the second area includes: other codes in the code of the target basic framework template except the codes related to the structure information and the attribute information;

[0119] The first area is configured to be in an unmodifiable state.

[0120] Optionally, the device further comprises:

[0121] A file acquisition module, used to acquire the design file to be tested, and upload the design file to be tested to the verification platform structure;

[0122] A rendering module is used to render the design file to be tested in the verification platform structure.

[0123] In summary, in the embodiments of the present application, each constituent unit of the verification platform can be converted into a displayable interface element, and the user can create the interface elements in the construction interface and perform operations such as positioning and interconnection, so as to realize the rapid construction of the verification platform structure and obtain the verification guide file. After that, the basic framework library can be obtained, and according to the verification guide file, the basic framework template in the basic framework library can be filled with parameters, so as to quickly build the code fragments of the constituent units through the template rendering technology, and finally, all the filled basic framework templates are converted into verification environment code files, and the verification environment code files are compiled and simulated to obtain the simulation results. The whole process eliminates the link of manually writing codes and scripts, greatly reducing the dependence on human resources.

[0124] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0125] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0126] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0127] An embodiment of the present application provides a device for generating a verification environment, including a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors to perform the methods described in one or more of the above embodiments.

[0128] Figure 8 is a block diagram of an electronic device 600 according to an exemplary embodiment. For example, the electronic device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0129] Reference Figure 8, the electronic device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .

[0130] The processing component 602 generally controls the overall operation of the electronic device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.

[0131] The memory 604 is used to store various types of data to support the operation of the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phone book data, messages, pictures, multimedia, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0132] The power supply component 606 provides power to the various components of the electronic device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 600.

[0133] The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the electronic device 600 is in an operating mode, such as a shooting mode or a multimedia mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0134] The audio component 610 is used to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the electronic device 600 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is used to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.

[0135] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0136] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the electronic device 600. For example, the sensor assembly 614 can detect the open / closed state of the electronic device 600, the relative positioning of the components, such as the display and keypad of the electronic device 600, and the sensor assembly 614 can also detect the position change of the electronic device 600 or a component of the electronic device 600, the presence or absence of contact between the user and the electronic device 600, the orientation or acceleration / deceleration of the electronic device 600, and the temperature change of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0137] The communication component 616 is used to facilitate wired or wireless communication between the electronic device 600 and other devices. The electronic device 600 can access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G or 5G), or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0138] In an exemplary embodiment, the electronic device 600 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to implement the methods provided in the embodiments of the present application.

[0139] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by a processor 620 of an electronic device 600 to perform the above method. For example, the non-transitory storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0140] Fig. 9 is a block diagram of an electronic device 700 according to an exemplary embodiment. For example, the electronic device 700 may be provided as a server. Fig. 9 The electronic device 700 includes a processing component 722, which further includes one or more processors, and a memory resource represented by a memory 732 for storing instructions that can be executed by the processing component 722, such as an application. The application stored in the memory 732 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 722 is configured to execute instructions to perform the method provided in the embodiment of the present application.

[0141] The electronic device 700 may also include a power supply component 726 configured to perform power management of the electronic device 700, a wired or wireless network interface 750 configured to connect the electronic device 700 to a network, and an input / output (I / O) interface 758. The electronic device 700 may operate based on an operating system stored in the memory 732, such as Windows Server TM, Mac OS X TM, Unix TM, Linux TM, FreeBSD TM or the like.

[0142] An embodiment of the present application further provides a computer program product, including a computer program, which implements the method described in the above embodiment when executed by a processor.

[0143] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the application disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0144] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A method for generating a verification environment, characterized in that: The method comprises: In the construction interface, interface elements are created, the interface elements are interconnected, a verification platform structure is obtained, and the verification platform structure is converted into a verification guidance file; each of the interface elements corresponds to a constituent unit in the verification platform; Obtain a basic framework library, and fill in parameters of a basic framework template in the basic framework library according to the verification guidance file; After converting all filled basic framework templates into verification environment code files, compiling and simulating the verification environment code files to obtain simulation results; The interface element is associated with information of a constituent unit corresponding to the interface element, and the converting of the verification platform structure into a verification guide file includes: In response to a save operation, the verification platform structure is stored as a graph file; the graph file is a file that matches the data format of the building engine corresponding to the building interface; According to a preset method, data processing is performed on the information of the constituent units included in the graphic file, and the processed results are filled into the verification guidance file according to a target format, and the target format is a format that matches the verification guidance file; the preset method includes collecting, reasoning, and classifying the information of the constituent units.

2. The method for generating a verification environment according to claim 1, characterized in that: In the construction interface, interface elements are created, and the interface elements are interconnected to obtain a verification platform structure, including: Displaying a building interface, and in response to a creation operation in the building interface, displaying a list of interface elements; In response to a selection operation on the interface element list, selecting a created interface element; The position of the interface element is set by dragging, and a plurality of the interface elements are connected to each other to obtain the verification platform structure.

3. The method for generating a verification environment according to claim 1, characterized in that: The verification guide file includes information of constituent units corresponding to the interface elements; The step of filling parameters of the basic framework template in the basic framework library according to the verification guide file includes: Parsing the verification guide file to obtain information of the constituent unit; the information of the constituent unit includes: first information for defining the properties of the constituent unit itself, and second information for defining the associated properties of the constituent unit; A basic framework template corresponding to the information of the constituent unit is determined, and the first information and the second information are respectively filled into the basic framework template.

4. The method for generating a verification environment according to claim 1, characterized in that: The interface element has a corresponding basic framework template; Before converting all populated basic framework templates into verification environment code files, it also includes: Displaying the verification platform structure in the construction interface; In response to the modification operation, code modification is performed on the populated target base framework template associated with the target constituent unit in the verification platform structure.

5. The method for generating a verification environment according to claim 4, characterized in that: The step of modifying the code of the populated target basic framework template associated with the target constituent unit in the verification platform structure in response to the modification operation includes: In response to a triggering operation on a target constituent unit displayed in the verification platform structure, a preset window is created, and the code of the populated target basic framework template associated with the target constituent unit is displayed in the preset window; In response to the modification operation on the code in the preset window, the code modification of the filled target basic framework template is completed.

6. The method for generating a verification environment according to claim 5, characterized in that: The preset window includes a first area and a second area, wherein the first area includes: codes related to the structure information and the attribute information of the target constituent unit; the second area includes: other codes in the code of the target basic framework template except the codes related to the structure information and the attribute information; The first area is configured to be in an unmodifiable state.

7. The method for generating a verification environment according to claim 1, characterized in that: Before converting the verification platform structure into the verification guideline file, the method further includes: Obtaining a design file to be tested, and uploading the design file to be tested to the verification platform structure; The design file to be tested is rendered in the verification platform structure.

8. A device for generating a verification environment, characterized in that: The device comprises: A construction module, used to create interface elements in a construction interface, interconnect the interface elements, obtain a verification platform structure, and convert the verification platform structure into a verification guide file; each of the interface elements corresponds to a constituent unit in the verification platform; wherein the interface element is associated with information of the constituent unit corresponding to the interface element, and the conversion of the verification platform structure into a verification guide file includes: in response to a save operation, storing the verification platform structure as a graph file; the graph file is a file that matches the data format of a construction engine corresponding to the construction interface; in accordance with a preset method, data processing is performed on the information of the constituent units included in the graph file, and the processed results are filled into the verification guide file in a target format, wherein the target format is a format that matches the verification guide file; the preset method includes collecting, reasoning, and classifying the information of the constituent units; A filling module is used to obtain a basic framework library and fill parameters of a basic framework template in the basic framework library according to the verification guidance file; The running module is used to convert all the filled basic framework templates into verification environment code files, compile and simulate the verification environment code files to obtain simulation results.

9. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the method as claimed in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Graphical bus verification platform

    CN115481588A

  • Method and device for constructing front-end code engineering based on low-code application

    CN115857926A

  • Intelligent transportation low-code configuration platform for Chinese schools

    CN118276844A

  • Low-Code and No-Code Customization User Interface Components

    US20230146421A1