Method, device, terminal and medium for evaluating performance of rtl simulation

By classifying and converting the basic program blocks in the RTL simulation performance evaluation method into simulation traces, the problems of slow simulation speed and high resource consumption of large test programs are solved, and efficient acquisition of simulation test results is achieved.

CN117785641BActive Publication Date: 2026-11-20SHANGHAI ADVANCED RES INST CHINESE ACADEMY OF SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311840933.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-28
Publication Date
2026-11-20
Estimated Expiration
2043-12-28

AI Technical Summary

Technical Problem

Existing RTL simulation performance evaluation methods suffer from slow simulation speed and high platform resource consumption when evaluating large test programs, failing to fully leverage their advantages of high accuracy and low debugging cost.

Method used

By acquiring the frequency information of the program under test, the basic blocks of the program are classified, the degree intervals are extracted, and converted into simulation traces. The simulation platform is then used to perform IPC performance testing to obtain the simulation test results.

Benefits of technology

It effectively reduces the amount of data and resource consumption of simulation traces, improves simulation efficiency, and significantly increases the verification speed and loading speed of test programs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117785641B_ABST
    Figure CN117785641B_ABST
Patent Text Reader

Abstract

This invention provides an RTL simulation performance evaluation method, apparatus, terminal, and medium. The method includes: acquiring frequency information of each basic program block in the program to be tested; classifying each basic program block based on the frequency information and extracting program interval segments from each type of basic program block; acquiring processing information corresponding to each program interval segment; converting each program interval segment into a corresponding simulation trace based on the processing information; performing IPC performance testing using a simulation platform based on each simulation trace; and acquiring the simulation test results of the program to be tested based on the performance test results of the IPC performance test. This invention can effectively improve simulation speed and reduce platform resource consumption.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer application technology, and to an RTL simulation performance evaluation method, device, terminal, and medium. Background Technology

[0002] CPU performance evaluation aims to predict the processing performance of CPU programs through software / hardware simulation before processor tape-out. It is one of the important tasks before processor production. Performance evaluation can guide the selection of CPU design schemes, optimize the CPU design space, and verify existing design schemes to ensure that the hardware design meets the expected performance requirements.

[0003] RTL simulation performance evaluation is one of the main methods for pre-silicon CPU performance evaluation. After the RTL design is completed, a logic simulator is used to simulate and evaluate the performance of the RTL code. However, for large test programs and applications, using RTL simulation performance evaluation methods has several drawbacks. Firstly, it requires multiple validity checks. Secondly, when many simulation traces are loaded simultaneously, it significantly impacts the simulation speed and consumes substantial simulation platform resources. For example, the SPEC CPU2006 test program has tens or hundreds of megabytes of instructions. Running the program fully loaded on a simulation platform would generate a large amount of memory data, leading to resource waste. Therefore, for large test programs and applications, other performance evaluation methods such as simulation performance evaluation and hardware simulation performance evaluation are often used instead of fully utilizing RTL simulation performance evaluation methods, and the advantages of high accuracy and low debugging cost of RTL simulation performance evaluation have not been effectively realized.

[0004] Therefore, for large-scale test programs and applications, improving the efficiency and resource consumption of RTL simulation performance evaluation methods is a technical problem that needs to be solved in this field. Summary of the Invention

[0005] In view of the shortcomings of the prior art, the purpose of this invention is to provide an RTL simulation performance evaluation method, device, terminal and computer storage medium to solve the problems of slow simulation speed and high platform resource consumption in the performance evaluation of large test programs by existing RTL simulation performance evaluation methods.

[0006] To achieve the above and other related objectives, the present invention provides, in a first aspect, an RTL simulation performance evaluation method, comprising: acquiring frequency information of each basic program block in the program to be tested; wherein the frequency information includes the number of instructions and the number of calls of the basic program block; classifying each basic program block based on the frequency information; extracting degree interval segments from each type of basic program block; acquiring processing information corresponding to each degree interval segment; converting each program interval segment into a corresponding simulation trace based on the processing information; performing IPC performance testing using a simulation platform based on each simulation trace; and acquiring simulation test results of the program to be tested based on the performance test results of the IPC performance test.

[0007] In one embodiment of the first aspect of the present invention, the frame interpolation process between two adjacent reference images of the first image sequence includes: for a single reference image in the first image sequence, according to a preset interpolation ratio, using a preset sliding window, resampling the current reference image and the next reference image adjacent to the current reference image to obtain the corresponding interpolated frame image; and inserting the interpolated frame image between the current reference image and the next reference image.

[0008] In one embodiment of the first aspect of the present invention, classifying each program basic block based on the frequency information includes: dividing each program basic block into several different types of program basic block groups using the K-means clustering analysis method based on the frequency information; extracting n program basic blocks from each type of program basic block group as representative blocks of that type; using the extracted n program basic blocks as program interval segments, and removing other program basic blocks.

[0009] In one embodiment of the first aspect of the present invention, the processing information includes register information, memory information, and page table entry information; obtaining the processing information corresponding to each of the program interval segments includes: using the SDK interface function in the Pin tool to obtain the register information of the program interval segment; performing dynamic replay on each instruction in the program interval segment to obtain the actually executed instructions and actual memory information; based on the actual memory information, trimming the total memory in the RTL simulation platform to determine the available memory space of the RTL simulation platform; based on the available memory space, mapping the virtual address range of the actually executed instructions to a specified physical address; and constructing the page table entry information according to the correspondence between the virtual address and the physical address.

[0010] In one embodiment of the first aspect of the present invention, the step of converting each program segment into a corresponding simulation trace based on the processing information includes: initializing the register information of the program segment; and converting the program segment into a corresponding simulation trace based on the initialized register information, the actual storage information, and the page table entry information.

[0011] In one embodiment of the first aspect of the present invention, obtaining the simulation test result of the program under test based on the performance test result of the IPC performance test includes: obtaining the evaluation weight corresponding to each simulation trace; combining the evaluation weight of each simulation trace with its corresponding performance test result, and obtaining the total performance test result by weighting; and using the total performance test result as the simulation test result of the program under test.

[0012] In one embodiment of the first aspect of the present invention, the step of performing IPC performance testing using a simulation platform based on each of the simulation traces includes: determining, according to a preset instruction counting requirement, a simulation trace that meets the instruction counting requirement as the simulation trace of interest; testing the simulation trace of interest on the simulation platform and recording its clock cycle to obtain the IPC value of each simulation trace of interest.

[0013] In a second aspect, the present invention provides a program performance evaluation device based on an RTL simulation platform, comprising: a frequency information acquisition module for acquiring frequency information of each basic program block in the program to be tested; wherein the frequency information includes the number of instructions and the number of calls of the basic program block; a degree interval acquisition module for classifying each basic program block based on the frequency information; extracting degree intervals from each type of basic program block; a simulation trace generation module for acquiring processing information corresponding to each degree interval, and converting each program interval into a corresponding simulation trace based on the processing information; and a performance testing module for performing IPC performance testing using the simulation platform based on each simulation trace; and acquiring the simulation test results of the program to be tested based on the performance test results of the IPC performance test.

[0014] In a third aspect, the present invention provides a terminal, comprising: a processor and a memory; the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the terminal performs the RTL simulation performance evaluation method as described in any of the above.

[0015] In a fourth aspect, the present invention provides a computer storage medium storing a computer program, characterized in that the computer program is executed by a processor using the RTL simulation performance evaluation method described in any of the preceding claims.

[0016] As described above, the RTL simulation performance evaluation method, apparatus, terminal, and computer storage medium provided by the present invention classify each basic program block of the program to be tested based on its frequency information, and determine the program interval segment that represents the frequency of that type in each category; and by converting each program interval segment into a corresponding simulation trace and performing simulation evaluation on each simulation trace, the total simulation evaluation result of each simulation trace is obtained as the simulation evaluation result of the program to be tested. This limits the number of simulation traces to a threshold range, greatly reduces the data size of the simulation traces and the resource consumption of the simulation platform, and effectively improves the simulation efficiency of the program to be tested. Attached Figure Description

[0017] Figure 1 The diagram shown is a flowchart of an embodiment of the RTL simulation performance evaluation method of the present invention;

[0018] Figure 2 The program performance evaluation device based on the RTL simulation platform described in this invention is shown in an embodiment.

[0019] The structural diagram in the example;

[0020] Figure 3 The diagram shown is a structural schematic of the terminal described in one embodiment of the present invention.

[0021] Figure 4 The display shows the performance differences between IPC performance evaluation results obtained on different simulation platforms in this invention.

[0022] The result of the fit;

[0023] Figure 5 The display shows a comparison between the average size of the RTL simulation trace extracted in this invention and the size of the overall test program. Detailed Implementation

[0024] The following specific examples illustrate the implementation of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that, unless otherwise specified, the following embodiments and features described therein can be combined with each other.

[0025] It should be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of the present invention. Therefore, the drawings only show the components related to the present invention and are not drawn according to the actual number, shape and size of the components in the actual implementation. In the actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.

[0026] Existing RTL simulation performance evaluation methods suffer from insufficient simulation efficiency and high platform resource consumption when performing large-scale program tests. The RTL simulation performance evaluation method, apparatus, terminal, and computer storage medium provided in this application, under the condition of limited simulation platform resources (memory), extracts basic program blocks from the program under test, extracts program intervals from various basic program blocks, and converts each program interval into a simulation trace. By testing the performance of these simulation traces on the simulation platform, the simulation test results of the test program under resource (memory) constraints can be quickly evaluated.

[0027] The program to be tested includes a binary test program; the simulation platform includes an RTL simulation platform.

[0028] Please see Figure 1 The diagram shows a flowchart of an embodiment of the RTL simulation performance evaluation method provided by the present invention.

[0029] like Figure 1 As shown, the method includes:

[0030] S100, obtain the frequency information of each basic block of the program under test;

[0031] The frequency information is used to characterize the frequency of operations to be performed during program execution, including the number of instructions in a single program basic block and the number of times the instructions are called.

[0032] Specifically, the overall program block corresponding to the program to be tested is obtained, the overall program block includes several basic program blocks, and the frequency information of each basic program block is extracted.

[0033] In one specific implementation, the test program is simulated by using Intel's binary analysis tool Pin. The basic program blocks are generated by running the '-l' option command of the brepred_pinpoints.py script in the Pin tool, and the number of calls and the number of instructions contained in each basic program block are extracted by running the '-b' option command of the brepred_pinpoints.py script in the Pin tool.

[0034] S200, based on the frequency information, classify each of the program basic blocks and extract the degree interval segment from each type of program basic block;

[0035] The degree interval segment refers to one or more basic program blocks that have the same or similar running information.

[0036] Specifically, after extracting the frequency information of each program basic block, a clustering analysis method is used to classify each program basic block, that is, to divide each program basic block into several different types of program basic block groups; n program basic blocks are extracted from each type of program basic block group as representative program blocks of that type, so that they can effectively represent the execution instructions of the program to be tested; the extracted n program basic blocks are used as the program interval segment, and other program basic blocks are removed.

[0037] In this case, n is preferred to be 1.

[0038] Optionally, K-means clustering analysis can be used to classify each of the basic blocks of the program.

[0039] In one specific implementation, the program basic blocks are clustered and clustered to obtain the program interval segments by running the '-p' option command of the brepred_pinpoints.py script in the Pin tool.

[0040] It should be noted that for a single program to be tested, the program interval segment obtained based on step S100 can be a single segment or multiple segments, and the specific number is the same as the number of clusters.

[0041] S300, obtain the processing information corresponding to each of the said degree intervals, and based on the processing information, convert each of the said program intervals into the corresponding simulation trace;

[0042] The processing information includes register information, memory information, and page table entry information.

[0043] In this embodiment, the register information includes general-purpose registers, pointer and variable pointer registers, and segment registers, etc.

[0044] The memory information refers to the memory information of the program under test during dynamic runtime in the RTL simulation platform.

[0045] The page table entry information represents the correspondence between virtual addresses and physical addresses.

[0046] Specifically, using SDK interface functions in the Pin tool, such as IARG_INST_PTR, INS_Disassemble, PIN_GetContextRegval, INS_HasMemoryRead, INS_IsStandardMemop, and INS_IsMemoryWrite, the linear address, disassembled instructions, register information, and memory (read and write) operation information of each specified level range at the time of execution can be obtained.

[0047] Dynamic replay is performed on each instruction in the program segment, that is, each instruction in the program segment is dynamically run, the actual executed instruction stream, actual register information and actual memory information are output, and instructions that are not actually executed and memory information that are not accessed in the program segment are removed, so as to reduce the memory resources required for the simulation trace to run.

[0048] After determining the actual memory information, the total memory in the RTL simulation platform is trimmed to determine the available memory space of the RTL simulation platform; based on the available memory space, an automatic page table construction method is used to map the virtual address range actually used during simulation to the specified physical address range; according to the correspondence between the virtual address and the physical address, page table entries that conform to the architecture design are constructed in a top-down manner.

[0049] After obtaining the register information, memory information, and page table entry information, each program segment is converted into a simulation trace instruction that the RTL simulation platform can recognize.

[0050] S400, based on the simulation traces described above, performs IPC performance testing using a simulation platform, and uses the performance test results as the simulation test results of the program under test.

[0051] Specifically, using a simulation platform, IPC performance tests are performed in parallel on each simulation trace to obtain the performance test results corresponding to each simulation trace; and the evaluation weights corresponding to each simulation trace are determined. The evaluation weights of each simulation trace are then combined with its corresponding performance test results to obtain the total performance test result using a weighted method, as follows:

[0052] IPCwhole=∑ i W i *IPC i

[0053] Where Wi represents the weight of each simulated Trace, IPCi represents the IPC value of each simulated Trace tested on the simulation platform, and IPCwhole represents the IPC of the overall test program calculated based on the weight and IPC value of each Trace.

[0054] The overall performance test result is used as the simulation test result of the program under test.

[0055] Optionally, the step of performing IPC performance testing using a simulation platform based on each of the simulation traces includes:

[0056] From each of the simulation traces, identify the simulation trace of interest, and use the simulation platform to perform IPC performance tests on each of the simulation traces of interest.

[0057] Specifically, based on the preset instruction count requirement, the simulation trace that meets the instruction count requirement is determined from each of the simulation traces and is taken as the simulation trace of interest. That is, the simulation trace of warmup is removed according to the preset instruction count. The simulation trace of interest is tested on the simulation platform, and the clock cycle of the instruction interval of interest is recorded to obtain the IPC value of each instruction interval of interest.

[0058] To verify the beneficial effects of the method described in this application, a set of comparative experiments will be conducted below to demonstrate the simulation evaluation effect and simulation efficiency.

[0059] The specific experimental environment is as follows: RTL simulation experiments were conducted using the UVM simulation platform. The server platform based on UVM simulation uses an Intel(R) Xeon(R) Gold 5218R CPU, with an L1 size of 32K and an L2 size of 1024K.

[0060] To test the behavior of the simulated Trace response test program, it was simultaneously verified on a Haps 80 FPGA prototype verification machine (4GB RAM, 240GB SSD) and tested using SPEC CPU 2006 and the Ackermann test suite.

[0061] (1) Verify whether the RTL simulation trace can effectively reflect the behavior of the actual test program. Test the IPC of the trace on the RTL simulation platform and compare it with the overall performance test on the FPGA; specific performance data are attached. Figure 4 As shown, the average IPC performance convergence between the simulation platform and the FPGA platform is 88.99%. The above experiments demonstrate that the RTL simulation trace constructed using the method of this application can effectively reflect the behavior of the actual test program.

[0062] (2) Verifying the performance testing speed of the RTL simulation platform: Since there are no dependencies between simulation traces, they can run independently. Therefore, multiple RTL simulation traces can run in parallel on the RTL simulation platform. Testing all simulation traces on the RTL platform can be completed within 13 hours, while running the entire test program (more than 50 million instructions) generally takes several days. This demonstrates that the method provided in this application can significantly improve the verification speed of the test program.

[0063] (3) Verify the loading speed of the simulated trace. The loading speed is directly related to the loading size of the test program. The average size of the extracted RTL simulated trace and the overall size of the test program were compared, as shown in the attached figure. Figure 5 As shown, the size of the extracted RTL simulation trace was reduced by an average of 12.4 times compared to the overall test program size. Since there are no dependencies between simulation traces, they can run independently. Therefore, multiple RTL simulation traces can be loaded in parallel on the RTL simulation platform. Actual loading tests revealed that the loading speed of RTL simulation traces is more than 10 times faster than loading the overall binary program. These experiments demonstrate that the RTL method testing scheme proposed in this paper can effectively improve the loading speed of constructed simulation traces.

[0064] To address the problems existing in the prior art, the present invention also provides a program performance evaluation device based on an RTL simulation platform, used to obtain the simulation evaluation results of the program to be tested.

[0065] Please see Figure 2 The diagram shows a schematic representation of the program performance evaluation device based on the RTL simulation platform provided by the present invention in one embodiment.

[0066] like Figure 2 As shown, the program performance evaluation device 400 based on the RTL simulation platform includes: a frequency information acquisition module 410, a degree interval acquisition module 420, a simulation trace generation module 430, and a performance testing module 440.

[0067] The frequency information acquisition module 410 is used to acquire the frequency information of each basic program block in the program to be tested; wherein, the frequency information includes the number of instructions and the number of times the basic program block is called;

[0068] Specifically, the method for obtaining the frequency information of the basic program blocks is the same as the implementation method in the above embodiments, and will not be repeated here.

[0069] The program interval segment acquisition module 420 is used to classify each program basic block based on the frequency information; and extract degree interval segments from each type of program basic block.

[0070] Specifically, the implementation method for extracting degree interval segments from various types of basic program blocks is the same as the implementation method in the above embodiments, and will not be repeated here.

[0071] The simulation trace generation module 430 is used to obtain the processing information corresponding to each degree interval segment, and based on the processing information, convert each program interval segment into a corresponding simulation trace.

[0072] Specifically, the implementation method of converting each program segment into a corresponding simulation trace based on the processing information is the same as the implementation method in the above embodiments, and will not be repeated here.

[0073] The performance testing module 440 is used to perform IPC performance testing using a simulation platform based on each of the simulation traces; and to obtain the simulation test results of the program under test based on the performance test results of the IPC performance test.

[0074] Specifically, the method for obtaining the simulation test results of the program under test based on the performance test results of the IPC performance test is the same as the method in the above embodiments, and will not be repeated here.

[0075] To address the problems existing in the prior art, the present invention also provides a terminal, please refer to [link / reference]. Figure 3 A schematic diagram of the structure of the terminal described in this invention is shown; as follows: Figure 3 As shown, the terminal 5 includes a memory 51 and a processor 52 connected to each other; the memory 51 is used to store computer programs, and the processor 52 is used to execute the computer programs stored in the memory, so that when the terminal is executed, it can implement the steps in the RTL simulation performance evaluation method described in the above embodiment.

[0076] Optionally, the number of memories can be one or more, and the number of processors can be one or more.

[0077] Optionally, the processor in the terminal loads one or more instructions corresponding to program processes into the memory according to the steps in the RTL simulation performance evaluation method described in the above embodiment, and the processor runs the program stored in the memory, thereby realizing the functions in the RTL simulation performance evaluation method as described above, which will not be elaborated here.

[0078] It should be noted that memory includes, but is not limited to, random access memory (RAM), and may also include non-volatile memory, such as at least one disk storage device. Similarly, processors can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0079] Furthermore, the present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when invoked by a processor, implements the various steps in the RTL simulation performance evaluation method described above.

[0080] A computer-readable storage medium can be a tangible device capable of holding and storing instructions used by an instruction execution device. Computer-readable storage media can be, for example, (but not limited to) electrical storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital multifunction disc (DVD), memory sticks, floppy disks, and mechanical encoding devices.

[0081] The computer-readable program described herein can be downloaded from a computer-readable storage medium to various computing / processing devices, or downloaded via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network, to an external computer or external storage device. A network adapter card or network interface in each computing / processing device receives computer-readable program instructions from the network and forwards these instructions to the computer-readable storage medium in the respective computing / processing device.

[0082] In summary, the RTL simulation performance evaluation method, apparatus, terminal, and computer storage medium provided by this invention classify each basic program block of the program to be tested based on its frequency information, and determine the program interval segment that represents the frequency of that type within each category; and by converting each program interval segment into a corresponding simulation trace and performing simulation evaluation on each simulation trace, the total simulation evaluation result of each simulation trace is obtained as the simulation evaluation result of the program to be tested. This limits the number of simulation traces to a threshold range, significantly reducing the data size of the simulation traces and the resource consumption of the simulation platform, effectively improving the simulation efficiency of the program to be tested.

[0083] The above embodiments are merely illustrative of the principles and effects of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by those skilled in the art without departing from the spirit and technical concept disclosed in the present invention should still be covered by the claims of the present invention.

Claims

1. A method for evaluating the performance of RTL simulation, characterized in that, include: Obtain the frequency information of each basic program block in the program to be tested; wherein, the frequency information includes the number of instructions and the number of times the basic program block is called; Based on the frequency information, each of the program basic blocks is classified; program interval segments are extracted from each type of program basic block; wherein, the program interval segment is one or more program basic blocks with the same or similar running information; Obtain the processing information corresponding to each program segment, and based on the processing information, convert each program segment into a corresponding simulation trace; Based on the simulation traces described above, IPC performance testing is performed using a simulation platform; based on the performance test results of the IPC performance test, the simulation test results of the program under test are obtained. The processing information includes register information, memory information, and page table entry information. Obtaining the processing information corresponding to each program segment includes: using SDK interface functions in the Pin tool to obtain the register information of the program segment; dynamically replaying each instruction in the program segment to obtain the actually executed instructions and actual memory information; based on the actual memory information, trimming the total memory in the RTL simulation platform to determine the available memory space of the RTL simulation platform; based on the available memory space, mapping the virtual address range of the actually executed instructions to a specified physical address; and constructing the page table entry information according to the correspondence between the virtual address and the physical address.

2. The RTL simulation performance evaluation method according to claim 1, characterized in that, The classification of each program basic block based on the frequency information includes: Based on the frequency information, the K-means clustering analysis method is used to divide each of the program basic blocks into several different types of program basic block groups; Extract n basic program blocks from each type of basic program block group as representative blocks for that type; The extracted n basic program blocks are used as the program interval segment, and the other basic program blocks are removed.

3. The RTL simulation performance evaluation method according to claim 1, characterized in that, The step of converting each program segment into a corresponding simulation trace based on the processing information includes: The register information of the program segment is initialized; Based on the initialized register information, actual storage information, and page table entry information, the program segment is converted into a corresponding simulation trace.

4. The RTL simulation performance evaluation method according to claim 1, characterized in that, The performance test results based on IPC performance testing, and the simulation test results of the program under test, include: Obtain the evaluation weights corresponding to each simulation trace; The evaluation weights of each simulation trace are combined with their corresponding performance test results to obtain the overall performance test result using a weighted method. The overall performance test result is used as the simulation test result of the program under test.

5. The RTL simulation performance evaluation method according to claim 1 or 3, characterized in that, The IPC performance test based on each of the simulation traces, using a simulation platform, includes: Based on the preset instruction counting requirements, among each of the simulation traces, the simulation trace that meets the instruction counting requirements is determined as the simulation trace of interest; The simulation traces of interest are tested on a simulation platform, and their clock cycles are recorded to obtain the IPC values ​​of each simulation trace of interest.

6. A program performance evaluation device based on an RTL simulation platform, characterized in that, include: The frequency information acquisition module is used to acquire the frequency information of each basic program block in the program to be tested; wherein, the frequency information includes the number of instructions and the number of times the basic program block is called; The program segment acquisition module is used to classify each program basic block based on the frequency information; and to extract program segments from each type of program basic block; wherein, the program segment is one or more program basic blocks with the same or similar running information; The simulation trace generation module is used to obtain the processing information corresponding to each program segment, and convert each program segment into a corresponding simulation trace based on the processing information. The performance testing module is used to perform IPC performance testing using a simulation platform based on each of the simulation traces; and to obtain the simulation test results of the program under test based on the performance test results of the IPC performance test. The processing information includes register information, memory information, and page table entry information. Obtaining the processing information corresponding to each program segment includes: using SDK interface functions in the Pin tool to obtain the register information of the program segment; dynamically replaying each instruction in the program segment to obtain the actually executed instructions and actual memory information; based on the actual memory information, trimming the total memory in the RTL simulation platform to determine the available memory space of the RTL simulation platform; based on the available memory space, mapping the virtual address range of the actually executed instructions to a specified physical address; and constructing the page table entry information according to the correspondence between the virtual address and the physical address.

7. A terminal, characterized in that, include: Processor and memory; The memory is used to store computer programs, and the processor is used to execute the computer programs stored in the memory to enable the terminal to perform the RTL simulation performance evaluation method as described in any one of claims 1 to 5.

8. A computer storage medium storing a computer program, characterized in that, The computer program is executed by a processor using the RTL simulation performance evaluation method as described in any one of claims 1 to 5.