Chip simulation verification acceleration method and platform and computer readable storage medium
By decomposing and parallel processing of chip simulation tasks, the problem of low efficiency of traditional single-core CPUs is solved, efficient chip simulation verification is achieved, and verification speed and accuracy are improved.
Patent Information
- Application Number
- CN202411143493.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2024-11-29
AI Technical Summary
Traditional chip simulation verification methods based on single-core CPUs are inefficient and prone to errors, which cannot meet the needs of large-scale chip designs and cannot effectively improve the efficiency and accuracy of chip design verification.
By obtaining the tested design files and test excitations, performing simulation analysis, decomposing the simulation process into multiple operation tasks, and it is distributed in parallel to compile and simulate in a multi-core processor to obtain simulation verification results.
The speed of pre- and post-simulation simulation is improved, automated execution is achieved, and the efficiency and accuracy of chip verification is improved.
Smart Images

Figure CN119047391A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of chip verification technology, and in particular to a chip simulation verification acceleration method, platform and computer-readable storage medium. Background Art
[0002] Chip design requires a lot of simulation testing to verify whether the chip's functions and performance meet the design requirements. As the scale of chip design continues to increase and the complexity of design increases, chip verification will be a time-consuming and complicated process.
[0003] However, the traditional simulation verification method based on single-core CPU cannot meet the needs of large-scale chip design, is inefficient and prone to errors. Therefore, a new acceleration platform is urgently needed to improve the efficiency and accuracy of chip design verification. Summary of the invention
[0004] The purpose of the present invention is to provide a chip simulation verification acceleration method, platform and computer-readable storage medium, which can improve the efficiency and accuracy of chip design verification.
[0005] In order to achieve the above object, the present invention provides a chip simulation verification acceleration method, comprising:
[0006] Obtain the design files and test stimuli under test;
[0007] According to the simulation analysis of the design file under test and the test stimulus, obtaining corresponding simulation analysis results;
[0008] According to the simulation analysis results, the simulation process is decomposed into operations to obtain multiple operation tasks;
[0009] Distributing the multiple operation tasks in parallel among the multi-core processors;
[0010] Compile and simulate each of the decomposed operation tasks to obtain simulation verification results.
[0011] Furthermore, the design file under test includes source code, a netlist and a standard delay file to be simulated and verified; the test stimulus includes a test environment and test cases corresponding to the design file under test.
[0012] Further, the obtaining corresponding simulation analysis results according to the simulation analysis of the design file under test and the test stimulus includes:
[0013] According to the design file under test and the test stimulus, the clock, hierarchical structure and test environment of the chip system are simulated and analyzed to obtain corresponding simulation analysis results.
[0014] Furthermore, the simulation process is decomposed into operations according to the simulation analysis results to obtain multiple operation tasks, including:
[0015] According to the simulation analysis results, the operations of the design under test, simulation environment, test cases, coverage, assertions and debugging are decomposed into multiple operation tasks.
[0016] The present invention also provides a chip simulation verification acceleration platform, comprising:
[0017] An acquisition module is used to acquire the design file under test and the test stimulus;
[0018] A simulation analyzer, used for obtaining corresponding simulation analysis results according to the simulation analysis of the design file under test and the test stimulus;
[0019] A task decomposer is used to decompose the simulation process into operations according to the simulation analysis results to obtain multiple operation tasks;
[0020] An automatic distributor, for distributing the plurality of operation tasks in parallel among the multi-core processors;
[0021] The simulator is used to compile and simulate each of the decomposed operation tasks to obtain simulation verification results.
[0022] Furthermore, the design file under test includes source code, netlist and standard delay file to be simulated and verified; the test stimulus includes a test environment and test cases.
[0023] Furthermore, the simulation analyzer is specifically used to: perform simulation analysis on the clock, hierarchical structure and test environment of the chip system according to the design file under test and the test stimulus to obtain corresponding simulation analysis results.
[0024] Furthermore, the task decomposer is specifically used for:
[0025] According to the simulation analysis results, the operations of the design under test, simulation environment, test cases, coverage, assertions and debugging are decomposed into multiple operation tasks.
[0026] The present invention also provides a computer-readable storage medium, which stores one or more programs. When the one or more programs are executed by a processor, the aforementioned chip simulation verification acceleration method is implemented.
[0027] The present invention can obtain the tested design file and test stimulus; obtain the corresponding simulation analysis results according to the simulation analysis of the tested design file and test stimulus; then decompose the simulation process according to the simulation analysis results to obtain multiple operation tasks; and then distribute the multiple operation tasks in parallel on a multi-core processor, and compile and simulate the decomposed operation tasks to obtain simulation verification results. In this way, the present invention can improve the simulation speed of chip pre-simulation and post-simulation, can be automatically executed, and improve chip verification efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 A flowchart of the steps of the chip simulation verification acceleration method provided by an embodiment of the present invention;
[0029] Figure 2 A schematic block diagram of the structure of the chip simulation verification acceleration platform provided in one embodiment of the present invention;
[0030] Figure 3 A specific workflow diagram of the chip simulation verification acceleration platform provided in one embodiment of the present invention. DETAILED DESCRIPTION
[0031] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0032] It should be noted that references to "one embodiment", "embodiment", "example embodiment", etc. in this specification refer to the embodiment described, which may include specific features, structures or characteristics, but not every embodiment must include these specific features, structures or characteristics. In addition, such expressions do not refer to the same embodiment. Furthermore, when describing specific features, structures or characteristics in conjunction with an embodiment, whether or not there is an explicit description, it has been shown that it is within the knowledge of those skilled in the art to combine such features, structures or characteristics into other embodiments.
[0033] In addition, certain words are used in the specification and subsequent claims to refer to specific components or parts. Those with ordinary knowledge in the relevant field should understand that manufacturers can use different nouns or terms to refer to the same component or part. This specification and subsequent claims do not use differences in names as a way to distinguish components or parts, but use differences in the functions of components or parts as the criteria for distinction. "Including" and "including" mentioned throughout the specification and subsequent claims are open-ended terms and should be interpreted as "including but not limited to". In addition, the word "connected" here includes any direct and indirect electrical connection means. Indirect electrical connection means include connection through other devices.
[0034] Embodiment 1
[0035] Figure 1 A chip simulation verification acceleration method provided by an embodiment of the present invention is shown, comprising the following steps:
[0036] S101: Get the design file under test and the test stimulus. The design file under test is the target object of chip simulation verification, and the test stimulus is a series of signals or data acting on the design under test to stimulate and monitor the various functions and performance of the design under test; that is, in this step S101, it is necessary to prepare the relevant files of the design under test first, and configure the corresponding test stimulus for it. Specifically, the design file under test includes the source code, netlist and standard delay file to be simulated and verified; the test stimulus includes the test environment and test cases corresponding to the design file under test.
[0037] The design under test in this embodiment may be an RTL (Register Transfer Level) source code or a gate-level integrated netlist or a gate-level back-end gate list.
[0038] S102: Obtain corresponding simulation analysis results based on the simulation analysis of the design file under test and the test stimulus.
[0039] Step S102 of this embodiment specifically includes: according to the tested design file and test stimulus, the clock, hierarchical structure and test environment of the chip system are simulated and analyzed to obtain the corresponding simulation analysis results. In specific implementation, the tested design file and test stimulus can be analyzed by a simulation analyzer; the simulation analyzer is an engine for analyzing the tested design file and test stimulus, and the supported inputs include Testbench stimulus, RTL code, gate-level netlist and standard delay sdf (Standard Delay Format File, standard delay format file) files, etc. The above input files can be analyzed by the simulation analyzer for the system's clock module, top-level module, submodule, hierarchical structure, test case and other information, and the simulation analysis results are given.
[0040] S103: According to the simulation analysis result, the simulation process is decomposed into operations to obtain a plurality of operation tasks.
[0041] Step S103 of this embodiment specifically includes: according to the simulation analysis results, decomposing the operations of the design under test, simulation environment, test cases, coverage, assertions and debugging into multiple operation tasks. The simulation process of the chip is to write test cases and use the simulation environment to test the design under test, evaluate the adequacy of the test through coverage, use assertions to check key conditions, and debug when problems occur, so as to jointly ensure the quality of the chip design and the correctness of the function; step S103 is to divide the above-mentioned entire simulation verification operation into multiple sub-operations that can be processed in parallel, and each sub-operation corresponds to an operation task, so as to obtain multiple modules, multiple threads and multiple parallel operation tasks.
[0042] In specific implementation, this embodiment can perform operation decomposition on the simulation analysis result through a task decomposer including multiple computing units, so as to obtain multiple operation tasks.
[0043] S104: Distribute the multiple operation tasks in parallel in the multi-core processor. That is, the decomposed multiple operation tasks are distributed in parallel in multiple processor cores; in this embodiment, the decomposed multiple operation tasks can be released by an automatic distributor.
[0044] S105: compile and simulate each decomposed operation task to obtain a simulation verification result. That is, by executing multiple operation tasks in parallel, compile and simulate the entire decomposed design and environment to obtain a simulation verification result. In specific implementation, step S105 can be executed in a commonly used simulator.
[0045] The chip simulation verification acceleration method provided in this embodiment can support the simulation acceleration of RTL-level and gate-level netlists at the same time. Both pre-simulation and post-simulation can be accelerated, especially the post-simulation acceleration performance is superior; it can support the SDF back-annotation function, can support multi-core high-speed parallel distributed simulation calculations at the same time, and support large-scale logic circuit simulation at the tens of millions gate level. The simulation process can be automatically executed to reduce manual work and improve the work efficiency of chip verification.
[0046] Embodiment 2
[0047] Figure 2 A chip simulation verification acceleration platform 100 provided by an embodiment of the present invention is shown, comprising an acquisition module 10, a simulation analyzer 20, a task decomposer 30, an automatic distributor 40 and a simulator 50; wherein:
[0048] The acquisition module 10 is used to obtain the design file under test and the test stimulus; the simulation analyzer 20 is used to obtain the corresponding simulation analysis results based on the simulation analysis of the design file under test and the test stimulus; the task decomposer 30 is used to decompose the simulation process into operations according to the simulation analysis results to obtain multiple operation tasks; the automatic distributor 40 is used to distribute the multiple operation tasks in parallel in a multi-core processor; the simulator 50 is used to compile and simulate each decomposed operation task to obtain a simulation verification result.
[0049] The specific working process of the chip simulation verification acceleration platform 100 of this embodiment is as follows: Figure 3 As shown, after acquiring the design file under test and the test stimulus, the acquisition module 10 inputs the design file under test and the test stimulus into the simulation analyzer 20, performs simulation analysis on them by running the simulation analyzer 20, and obtains corresponding simulation analysis results; then inputs the simulation analysis results into the simulation task decomposer 30, runs the simulation task decomposer 30 to decompose the tasks; inputs the decomposed tasks into the automatic distributor 40, and the automatic distributor 40 distributes the decomposed tasks in parallel on the multi-core processor, and compiles and runs the entire verification environment through the simulator 50 to output the simulation results.
[0050] The design file under test in this embodiment includes source code, netlist and standard delay file to be simulated and verified; the test stimulus includes a test environment and test cases.
[0051] The simulation analyzer 20 is used to analyze and divide the design under test and the test stimulus. The simulation analyzer 20 of this embodiment is specifically used to: perform simulation analysis on the clock, hierarchical structure and test environment of the chip system according to the design under test file and the test stimulus to obtain corresponding simulation analysis results.
[0052] Furthermore, the task decomposer 30 of this embodiment is specifically used to decompose the operations of the design under test, simulation environment, test cases, coverage, assertion and debugging into multiple operation tasks according to the simulation analysis results.
[0053] Based on the same inventive structure, the present invention also provides a computer-readable storage medium, which stores one or more programs. When the one or more programs are executed by a processor, the aforementioned chip simulation verification acceleration method is implemented.
[0054] The above one or more programs are implemented by an automation script. In combination with the above embodiments, the specific workflow of the automation script is as follows:
[0055] Step 1: Use the design under test and test stimulus as input conditions for the simulation analyzer.
[0056] Step 2: Run the simulation analyzer and output the analysis results.
[0057] Step 3: Use the analysis results of the simulation analyzer as the input conditions of the task decomposer.
[0058] Step 4: Run the task decomposer to decompose the task.
[0059] Step 5: Use the tasks decomposed by the task decomposer as the input conditions of the automatic distributor.
[0060] Step 6: Run the automatic distributor to distribute the tasks in parallel on multi-core CPUs.
[0061] Step 7: Call the simulator, compile and run the entire verification environment.
[0062] Step 8: Output simulation results and the process ends.
[0063] In conjunction with the above-mentioned chip simulation verification acceleration platform 100, after the platform is built, the verification personnel can directly run the automation script to complete the execution of the verification case and analyze the simulation results, which greatly improves the simulation efficiency.
[0064] In summary, the chip simulation verification acceleration method and platform of the present invention obtains the tested design file and test stimulus; obtains the corresponding simulation analysis results based on the simulation analysis of the tested design file and test stimulus; then decomposes the simulation process according to the simulation analysis results to obtain multiple operation tasks; and after distributing the multiple operation tasks in parallel on a multi-core processor, compiles and simulates each decomposed operation task to obtain a simulation verification result. In this way, the present invention can improve the simulation speed of chip pre-simulation and post-simulation, can be automatically executed, and improve chip verification efficiency.
[0065] It should be noted that the present application can be implemented in software and / or a combination of software and hardware, for example, can be implemented using an application specific integrated circuit (ASIC), a general purpose computer or any other similar hardware device. In one embodiment, the software program of the present application can be executed by a processor to implement the above steps or functions. Similarly, the software program of the present application (including relevant data structures) can be stored in a computer-readable recording medium, for example, a RAM memory, a magnetic or optical drive or a floppy disk and similar devices. In addition, some steps or functions of the present application can be implemented using hardware, for example, as a circuit that cooperates with a processor to perform each step or function.
[0066] The method according to the present invention can be implemented on a computer as a computer-implemented method, or implemented in dedicated hardware, or implemented in a combination of the two. The executable code or part thereof for the method according to the present invention can be stored on a computer program product. The example of a computer program product includes a memory device, an optical storage device, an integrated circuit, a server, online software, etc. Preferably, the computer program product includes a non-temporary program code component stored on a computer-readable medium so as to perform the method according to the present invention when the program product is executed on a computer.
[0067] Of course, the present invention may have many other embodiments. Without departing from the spirit and essence of the present invention, those skilled in the art may make various corresponding changes and modifications based on the present invention, but these corresponding changes and modifications should all fall within the scope of protection of the claims attached to the present invention.
Claims
1. A chip simulation verification acceleration method, characterized in that: include: Obtain the design files and test stimuli under test; According to the simulation analysis of the design file under test and the test stimulus, obtaining corresponding simulation analysis results; According to the simulation analysis result, the simulation process is decomposed into operations to obtain multiple operation tasks; Distributing the multiple operation tasks in parallel among the multi-core processors; Compile and simulate each of the decomposed operation tasks to obtain simulation verification results.
2. The chip simulation verification acceleration method according to claim 1, characterized in that: The design file under test includes source code, netlist and standard delay file to be simulated and verified; the test stimulus includes the test environment and test cases corresponding to the design file under test.
3. The chip simulation verification acceleration method according to claim 1, characterized in that: The obtaining corresponding simulation analysis results according to the simulation analysis of the design file under test and the test stimulus comprises: According to the design file under test and the test stimulus, the clock, hierarchical structure and test environment of the chip system are simulated and analyzed to obtain corresponding simulation analysis results.
4. The chip simulation verification acceleration method according to claim 1, characterized in that: Decomposing the simulation process into operations according to the simulation analysis results to obtain multiple operation tasks includes: According to the simulation analysis results, the operations of the design under test, simulation environment, test cases, coverage, assertions and debugging are decomposed into multiple operation tasks.
5. A chip simulation verification acceleration platform, characterized in that: Included are: An acquisition module is used to acquire the design file under test and the test stimulus; A simulation analyzer, used for obtaining corresponding simulation analysis results according to the simulation analysis of the design file under test and the test stimulus; A task decomposer is used to decompose the simulation process into operations according to the simulation analysis results to obtain multiple operation tasks; An automatic distributor, for distributing the plurality of operation tasks in parallel among the multi-core processors; The simulator is used to compile and simulate each of the decomposed operation tasks to obtain simulation verification results.
6. The chip simulation verification acceleration platform according to claim 1, characterized in that: The design file under test includes source code, netlist and standard delay file to be simulated and verified; the test stimulus includes test environment and test cases.
7. The chip simulation verification acceleration platform according to claim 1, characterized in that: The simulation analyzer is specifically used to: perform simulation analysis on the clock, hierarchical structure and test environment of the chip system according to the design file under test and the test stimulus to obtain corresponding simulation analysis results.
8. The chip simulation verification acceleration platform according to claim 1, characterized in that: The task decomposer is specifically used for: According to the simulation analysis results, the operations of the design under test, simulation environment, test cases, coverage, assertions and debugging are decomposed into multiple operation tasks.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and when the one or more programs are executed by a processor, the chip simulation verification acceleration method according to any one of claims 1 to 4 is implemented.
Citation Information
Cited By
Chip post-simulation method and device
CN119808701A
