Chip simulation verification method and system based on hardware accelerator

The simulation verification process of the PXP hardware accelerator is optimized by using a graphical user interface (GUI) and a server-dynamic allocation module, which solves the problems of excessive manual intervention by engineers and low resource utilization efficiency, and achieves more efficient simulation verification.

CN117291143BActive Publication Date: 2026-11-27MOLCHIP TECH (SHANGHAI) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311349241.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-18
Publication Date
2026-11-27
Estimated Expiration
2043-10-18

AI Technical Summary

Technical Problem

In chip design, when using PXP hardware accelerators for simulation verification, the existing technology requires a large amount of manual work from engineers, resulting in extended development cycles and low efficiency in the utilization of computing resources.

Method used

Design a graphical user interface (GUI) to automate test request processing and optimize task configuration by dynamically allocating modules through a server, thereby reducing manual intervention and improving simulation verification efficiency.

Benefits of technology

It reduces the time and manpower required for verification engineers, improves the efficiency of simulation verification, and optimizes the utilization of server resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117291143B_ABST
    Figure CN117291143B_ABST
Patent Text Reader

Abstract

The application discloses a chip simulation verification method and system based on a hardware accelerator, and relates to the technical field of integrated circuit design.The method comprises the following steps: receiving a test request sent by a user terminal graphical user interface (GUI), wherein the test request is sent through a test trigger control in the GUI; and a PXP hardware accelerator simulation verification system executes the following process according to the test request: determining whether a test case corresponding to test case ID information input by a user in the GUI is a test case that has been run; when the test case is determined to be a new test case that has not been run, sequentially executing related steps S1, S2 and S3 in order; and when the test case is determined to be a test case that has been run, executing step S3 after obtaining a simulation verification data packet generated when the test case is run.The application reduces the manual participation process in PXP simulation, saves human resources and time resources, and improves the simulation verification efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of integrated circuit design technology. Background Technology

[0002] In the field of chip design, verification is an integral part of the entire design process. From behavioral-level HDL (Hardware Description Language) design to tape-out, extensive EDA (Electronic Design Automation) verification is required to ensure that the designed chip meets expectations. EDA simulation uses test cases to verify test items; a test case is a series of codes written to verify the functionality or performance of a test item. Taking UVM (Universal Verification Methodology), a commonly used method in chip design, as an example, its test cases are based on System Verilog and generate test stimuli using UVM sequences. Different test cases correspond to different test stimuli.

[0003] With the development of very large-scale integrated circuits (VLSI), the difficulty and speed of verification are among the most pressing issues to be addressed. The introduction of hardware emulators has solved the problems of slow testing speed and small test instruction size during large-scale simulation verification of chips before tape-out. Among them, PXP (Palladium XP), a fully integrated high-performance verification acceleration system launched by Cadence, integrates simulation, acceleration, and emulation functions in a unified verification environment. The introduction of the PXP hardware accelerator into the chip verification platform significantly accelerates simulation efficiency, improving it by more than 100 times compared to traditional software simulation verification. Compared to FPGA prototype system verification, it can provide various waveform download and analysis capabilities (offering waveform observation capabilities similar to software simulation), greatly accelerating the design efficiency of large-scale system-on-a-chip (SoC).

[0004] When using the PXP hardware accelerator for simulation, the register-transfer level (RTL) code of the designed chip (the RTL code formed by describing the hardware circuit functions of the designed chip using a hardware description language such as Verilog) is usually processed separately from the simulation stimulus test file (testbench, used to apply stimuli to the RTL, i.e., simulate external signal input, to determine whether the aforementioned RTL code can run correctly). See [link to relevant documentation]. Figure 1As shown, the RTL code of the designed chip is compiled into a gate-level netlist file (converting Verilog code into actual circuitry) and then stored in the PXP hardware accelerator. The simulation stimulus testbench file is compiled and then transmitted to a host computer, such as a PC, for execution. During PXP simulation, the verification engineer is required to first locate the RTL code of the chip to be verified and compile it into a gate-level netlist file. Then, they must locate the test cases under the aforementioned test items for the chip to be verified, compile the compiled gate-level netlist file and the corresponding simulation stimulus testbench file into a data packet that can run on the PXP platform, and then send the data packet to the verification platform for execution. During runtime, the simulation stimulus testbench portion of the data packet is configured to run on the PC server, while the gate-level netlist portion is configured to run on the PXP hardware accelerator. However, in PXP simulation, the acquisition and compilation of RTL code files, the acquisition of simulation stimulus test files (testbench files), the synthesis and compilation of the gate-level netlist file and the simulation stimulus test file (testbench), and the transmission of data packets all require manual intervention by verification engineers. This consumes a significant amount of their time and, to some extent, impacts the entire chip development cycle. Furthermore, the compilation of RTL code files, the simultaneous compilation of the gate-level netlist file and the simulation stimulus test file (testbench), and the configuration of data packet transmission all require a certain amount of computing resources. These resources are provided by associated servers. In this scenario, tasks such as file compilation and data transmission are assigned to the current server group. The task management system of the current server group sends requests to servers within the group with available resources to run the requested tasks. However, currently, this process is typically completed sequentially by one server in the server group, resulting in low efficiency. Summary of the Invention

[0005] The purpose of this invention is to overcome the shortcomings of existing technologies and provide a chip simulation verification method and system based on a hardware accelerator. The chip simulation verification scheme based on a hardware accelerator provided by this invention features a graphical user interface (GUI) designed for the user end. Test requests for PXP simulation are issued through test trigger controls in the GUI. Upon receiving the test request, the associated PXP hardware accelerator simulation verification system can determine whether the corresponding test case has been run based on the test case ID information entered by the user in the GUI, and execute different test strategies according to the determination result. This reduces the manual intervention of verification engineers in PXP simulation, saves human and time resources, and improves simulation verification efficiency. Furthermore, a server dynamic allocation module is used to configure server tasks to ensure that the entire simulation verification process runs in the optimal environment within the current server group, further improving the chip simulation verification efficiency.

[0006] To achieve the above objectives, the present invention provides the following technical solution: A chip simulation and verification method based on a hardware accelerator includes: Receive a test request sent by the user-side graphical user interface (GUI), the test request being issued through a test trigger control in the GUI; The PXP hardware accelerator simulation verification system performs the following process according to the aforementioned test request: It obtains the test case ID information input by the user in the aforementioned GUI, and determines whether the corresponding test case is a previously run test case based on the aforementioned test case ID information; if the test case is determined to be a new test case that has not been run, it executes the following steps S1, S2, and S3 in sequence; if the test case is determined to be a test case that has already been run, it obtains the simulation verification data packet generated during the runtime of the test case and then executes step S3. Steps S1, S2, and S3 are as follows: S1, Obtain the register transfer level RTL code of the chip to be verified, compile the RTL code into a gate-level netlist file netlist, and store the gate-level netlist file netlistz as the first data file; S2, based on the aforementioned test case ID, retrieve the simulation stimulus test file testbench of the test case from the preset test case database, compile the simulation stimulus test file testbench together with the aforementioned first data file database1 to form a simulation verification data package, and store the simulation verification data package; S3, run the aforementioned simulation verification data package, wherein the simulation stimulus test file testbench part of the simulation verification data package runs on the host server, and the first data file part of the simulation verification data package runs on the hardware accelerator PXP.

[0007] Furthermore, the user-side graphical user interface (GUI) includes at least a test case information collection bar, a test trigger control, and a test case simulation result output bar; The test case information collection field is used for users to input the test case ID information of the test project; The test trigger control serves as the access interface for the aforementioned PXP hardware accelerator simulation verification system. When triggered, it can send a test request to the aforementioned PXP hardware accelerator simulation verification system. The test case simulation result output column is used to output whether the aforementioned test case ran successfully.

[0008] Furthermore, when a user enters multiple test case IDs in the test case information collection field, the tests for each test case are performed sequentially according to the order of the aforementioned test case IDs; and, Based on the order of the aforementioned test case IDs, the running results of each test case are output sequentially in the test case simulation result output column.

[0009] Furthermore, the test case ID serves as the identification information for a test case, uniquely identifying each test case. The test case ID includes the name and / or number of the corresponding test case, with different test cases corresponding to different case names and case numbers.

[0010] Furthermore, it also includes a server dynamic allocation module; The server dynamic allocation module is configured to: when steps S1, S2 and S3 need to be executed, analyze the load information of all servers in the current server group, and determine three target servers for executing the aforementioned steps S1, S2 and S3 based on the load of each server, and run steps S1, S2 and S3 on the three target servers respectively.

[0011] Furthermore, the server dynamic allocation module includes a dynamic allocation script, which selects the aforementioned three target servers from the current server group, and assigns the first target server with the lowest load to the aforementioned step S1 to run the data processing task of step S1 on the first target server, assigns the second target server with the second lowest load to the aforementioned step S2 to run the data processing task of step S2 on the second target server, and assigns the third target server with the third lowest load to the aforementioned step S3 to run the data processing task of step S3 on the third target server.

[0012] Furthermore, the dynamic allocation script is a Python script.

[0013] Furthermore, the dynamic allocation script is configured to perform the following steps: S210 is configured with two empty stacks, namely stack_1 and stack_2. S220, obtain the server sequence information of the current server group, and push the server ID ranked 1st into the first stack stack_1 as the top element s1_top; S230, Based on the server order in the server sequence, select the second-ranked server as the server to be compared; S240, obtain the load x of the server to be compared, and perform a peek operation on the top of the first stack to return the top element s1_top. Compare the load x of the server to be compared with the load y of the server corresponding to the top element s1_top. If the load x of the server to be compared is less than the load y, proceed to step S250. If the load x of the server to be compared is greater than or equal to the load y, proceed to step S260. S250, push the server ID of the server to be compared onto the first stack stack_1 as the new stack top element s1_top. At this time, the first stack stack_1 stores multiple server IDs, and the server ID of the server with the smaller load is used as the stack top element; execute step S270. S260, Perform a pop operation on the stack elements in the first stack_1 to pop the top element s1_top, push the popped top element s1_top onto the second stack_2 as the top element s2_top, and then push the server ID of the server to be compared onto the second stack_2; and perform a pop operation on all stack elements stored in the second stack_2 and push them onto the first stack_1 as stack elements. At this time, the first stack_1 stores the server IDs of multiple servers, with the server ID of the server with the smaller load as the top element, and the second stack_2 is an empty stack; proceed to step S270; S270, determine whether there are any uncompared servers in the server sequence; if there are uncompared servers, obtain the next server as the service to be compared according to the server order in the server sequence, and then return to step S240, and so on, until all servers in the server sequence have been compared, and then execute step S280; if there are no uncompared servers, directly execute step S280. S280, perform three pop operations on the stack elements in stack_1. The server ID popped by the first pop operation corresponds to the server with the lowest load, the server ID popped by the second pop operation corresponds to the server with the second lowest load, and the server ID popped by the third pop operation corresponds to the server with the third lowest load.

[0014] Furthermore, it also includes a server monitoring module; The server monitoring module is configured to: monitor the processing progress of the data processing tasks corresponding to steps S1, S2, and S3 running on the three target servers, determine whether the data processing tasks of each step are completed, and when a step is determined to be completed, trigger the next target server to execute the next step, until all three steps are completed. When the third step is completed, output a prompt indicating that the corresponding test case has passed; when a step is determined to be incomplete, return to that step and output a prompt indicating that the corresponding test case has failed.

[0015] The present invention also provides a chip simulation and verification system based on a hardware accelerator, the system comprising: The user terminal is equipped with a graphical user interface (GUI) for users to input test case ID information and send test requests. The test requests are sent through test trigger controls in the GUI. The PXP hardware accelerator simulation verification system is used to receive the aforementioned test request and perform the following process according to the aforementioned test request: obtain the test case ID information input by the user, and determine whether the corresponding test case is a test case that has been run based on the aforementioned test case ID information; if the test case is determined to be a new test case that has not been run, execute the following steps S1, S2 and S3 in sequence; if the test case is determined to be a test case that has been run, obtain the simulation verification data packet generated when the test case is run, and then execute step S3. Steps S1, S2, and S3 are as follows: S1, Obtain the register transfer level RTL code of the chip to be verified, compile the RTL code into a gate-level netlist file netlist, and store the gate-level netlist file netlistz as the first data file; S2, based on the aforementioned test case ID, retrieve the simulation stimulus test file testbench of the test case from the preset test case database, compile the simulation stimulus test file testbench together with the aforementioned first data file database1 to form a simulation verification data package, and store the simulation verification data package; S3, run the aforementioned simulation verification data package, wherein the simulation stimulus test file testbench part of the simulation verification data package runs on the host server, and the first data file part of the simulation verification data package runs on the hardware accelerator PXP.

[0016] Compared with existing technologies, this invention, by adopting the above technical solution, has the following advantages and positive effects, as an example: The hardware accelerator-based chip simulation verification scheme features a graphical user interface (GUI) designed for the user end. Test requests for PXP simulation are issued through test trigger controls in the GUI. Upon receiving the test request, the associated PXP hardware accelerator simulation verification system can determine whether the corresponding test case is a previously run test case based on the test case ID entered by the user in the GUI, and execute different test strategies according to the determination result. This reduces the manual intervention of verification engineers in PXP simulation, saves human and time resources, and improves simulation verification efficiency. Furthermore, a server dynamic allocation module is used to configure server tasks, ensuring the entire simulation verification process runs in the optimal environment within the current server group, further improving chip simulation verification efficiency. Attached Figure Description

[0017] Figure 1 A logic structure diagram for PXP simulation of chips provided by existing technology.

[0018] Figure 2 A flowchart of a chip simulation and verification method based on a hardware accelerator provided in an embodiment of the present invention.

[0019] Figure 3 This is a typical example diagram of a user-side graphical user interface (GUI) provided for embodiments of the present invention.

[0020] Figure 4 This is a flowchart illustrating the optimization of the PXP simulation process using dynamically allocated scripts, as provided in an embodiment of the present invention. Detailed Implementation

[0021] The chip simulation and verification method and system based on hardware accelerators disclosed in this invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that techniques (including methods and apparatus) known to those skilled in the art may not be discussed in detail, but where appropriate, the aforementioned known techniques are considered part of the specification. Furthermore, other examples of exemplary embodiments may have different values. The structures, proportions, sizes, etc., depicted in the accompanying drawings are only for illustrative purposes to aid those skilled in the art and are not intended to limit the conditions under which the invention can be implemented.

[0022] In the description of the embodiments of this application, " / " means "or", and "and / or" is used to describe the relationship between related objects, indicating that there can be three relationships. For example, "A and / or B" means: A and B exist alone, B exists alone, and A and B exist simultaneously. In the description of the embodiments of this application, "multiple" refers to two or more. Example

[0023] See Figure 2 The image shows a chip simulation and verification method based on a hardware accelerator provided in this embodiment. The method includes the following steps.

[0024] S100, receive a test request sent by the user-side graphical user interface (GUI), the test request being issued through a test trigger control in the user-side graphical user interface (GUI).

[0025] S200, the PXP hardware accelerator simulation verification system performs the following process according to the aforementioned test request: obtains the test case ID information input by the user in the aforementioned user-end graphical user interface (GUI), and determines whether the corresponding test case is a previously run test case based on the aforementioned test case ID information; if the test case is determined to be a new test case that has not been run, steps S1, S2, and S3 are executed sequentially; if the test case is determined to be a previously run test case, after obtaining the simulation verification data packet database2 corresponding to the test case, step S3 is executed directly.

[0026] The steps S1, S2 and S3 are as follows.

[0027] S1, obtain the register transfer level RTL code of the chip to be verified, compile the RTL code into a gate-level netlist file netlist, and store the gate-level netlist file netlistz as the first data file database1.

[0028] S2, based on the aforementioned test case ID, retrieve the simulation stimulus test file testbench of the test case from the preset test case database, compile the simulation stimulus test file testbench together with the aforementioned first data file database1 to form a simulation verification data package database2, and store the simulation verification data package database2.

[0029] S3, run the aforementioned simulation verification data package database2, wherein the simulation stimulus test file testbench part of the simulation verification data package database2 runs on a host server - the host can be, for example, a PC, and the first data file database1 part of the simulation verification data package database2 runs on a hardware accelerator PXP.

[0030] In other words, if the test case is a new test case that has not been run before, steps S1, S2, and S3 will be executed sequentially, where step S2 depends on the result of step S1, and step S3 depends on the result of step S2. If the test case has been run before, step S3 can be executed directly.

[0031] In this embodiment, the test case ID serves as the identification information for a test case, uniquely identifying each test case. In specific implementations, the test case ID can be represented by a string and / or a number.

[0032] The test case ID may include the name and / or number of the corresponding test case, with different test cases having different case names and case numbers.

[0033] A test case database is pre-configured to store relevant information for each test case. Within this database, test case information (including simulation test stimulus files) is mapped to test case IDs. The test case ID allows retrieval of relevant test case information, such as simulation test stimulus files, from the database.

[0034] In this embodiment, see Figure 3 As shown, the user-side graphical user interface (GUI) may include at least a test case information collection bar, a test trigger control, and a test case simulation result output bar.

[0035] The test case information collection field is used for users to input the test case ID information of the test project.

[0036] The test trigger control "gen&run control" (control is a button) serves as the access interface for the aforementioned PXP hardware accelerator simulation verification system. When triggered, it can send a test request to the aforementioned PXP hardware accelerator simulation verification system.

[0037] The test case simulation result output column is used to output whether the aforementioned test case ran successfully.

[0038] In this way, users can... Figure 3The example user-side graphical user interface (GUI) sends simulation verification commands for the relevant test cases. After the user clicks the "gen&run control" in the image, the following steps are performed: The relevant test files for the test case ID are obtained and compiled. After obtaining test files usable for PXP simulation—including the simulation verification data package database2 generated in step S2 and the test case files on the test bench (TB)—the aforementioned test files are run to perform PXP simulation. The test case execution results are then displayed in the test case simulation result output column.

[0039] Preferably, users can enter one or more test case IDs in the test case information collection field as needed.

[0040] If the user enters multiple test case IDs in the test case information collection field, it is preferable to test each test case in the order of the aforementioned test case IDs; and, in the order of the aforementioned test case IDs, the running results of each test case are output in the test case simulation result output field in sequence.

[0041] As an example, and not a limitation, for instance, the test case ID information entered by the user in the test case information collection field is: Case 0 Case 1; The stimulus tests for test cases Case0 and Case1 are then performed sequentially according to the order of the aforementioned test case IDs. Assuming test case Case0 passes verification and Case1 fails verification, the output information in the test case simulation result output column can be as follows: Case 0 PASS Case 1 FAIL.

[0042] This allows users to input multiple test cases belonging to a single test item into the test case information collection field, based on the test items of the chip to be verified, so as to achieve automatic verification testing of a series of multiple test cases.

[0043] In another embodiment of this example, a server dynamic allocation module is also included. The server dynamic allocation module is configured to: when steps S1, S2 and S3 need to be executed, analyze the load information of all servers in the current server group, and determine three target servers for executing the aforementioned steps S1, S2 and S3 based on the load of each server, and run steps S1, S2 and S3 on the three target servers respectively.

[0044] In specific configuration, the server dynamic allocation module includes a dynamic allocation script, see [link to script]. Figure 4As shown, the dynamic allocation script selects the aforementioned three target servers from the current server group, and assigns the first target server with the lowest load to the aforementioned step S1 to run the data processing task of step S1 on the first target server, assigns the second target server with the second lowest load to the aforementioned step S2 to run the data processing task of step S2 on the second target server, and assigns the third target server with the third lowest load to the aforementioned step S3 to run the data processing task of step S3 on the third target server.

[0045] The dynamic allocation script is preferably a Python script.

[0046] As can be seen, the dynamic allocation script is used to find the three servers with the lowest load in the current server group, assign the server with the lowest load to step S1, the server with the second lowest load to step S2, and the server with the third lowest load to step S3. Servers with lower loads usually run faster. In this way, the entire simulation execution process runs in the optimal environment within the current server group, improving the simulation verification efficiency.

[0047] Specifically, the dynamic allocation script is configured to perform the following steps.

[0048] S210 is configured with two empty stacks, namely stack_1 and stack_2.

[0049] S220, obtain the server sequence information of the current server group, and push the server ID of the first-ranked server onto the first stack (stack_1) as the top element (s1_top). The server ID serves as the server's identification information to uniquely identify a server, and the server ID may include the server name and / or number.

[0050] S230, Based on the server order in the server sequence, select the second-ranked server as the server to be compared.

[0051] S240: Obtain the load x of the server to be compared, and perform a peek operation on the top of the first stack to return the top element s1_top. Compare the load x of the server to be compared with the load y of the server corresponding to the top element s1_top. If the load x of the server to be compared is less than the load y, proceed to step S250; if the load x of the server to be compared is greater than or equal to the load y, proceed to step S260.

[0052] S250, push the server ID of the server to be compared onto the first stack stack_1 as the new stack top element s1_top. At this time, the first stack stack_1 stores multiple server IDs, and the server ID of the server with the smaller load is used as the stack top element; execute step S270.

[0053] S260, Perform a pop operation on the stack elements in the first stack_1 to pop the top element s1_top, push the popped top element s1_top onto the second stack_2 as the top element s2_top, and then push the server ID of the server to be compared onto the second stack_2; and perform a pop operation on all stack elements stored in the second stack_2 and push them onto the first stack_1 as stack elements. At this time, the first stack_1 stores the server IDs of multiple servers, with the server ID of the server with the smaller load as the top element, and the second stack_2 is an empty stack; proceed to step S270.

[0054] S270, determine whether there are any uncompared servers in the server sequence; if there are uncompared servers, obtain the next server as the service to be compared according to the server order in the server sequence, and then return to step S240, and so on, until all servers in the server sequence have been compared, and then execute step S280; if there are no uncompared servers, directly execute step S280.

[0055] S280, perform three pop operations on the stack elements in stack_1. The server ID popped by the first pop operation corresponds to the server with the lowest load, the server ID popped by the second pop operation corresponds to the server with the second lowest load, and the server ID popped by the third pop operation corresponds to the server with the third lowest load.

[0056] As an example, and not a limitation, the server sequence information for the current server group is as follows: Server 1, Server 2, Server 3, Server 4, Server 5; the load information of each server is as follows: Server 1: 90% load Server 2: Load 30% Server 3: Load 40% Server 4: Load 80% Server 5: Load 20% At this point, the dynamic allocation script is configured as follows: First, obtain the server sequence information of the current server group. Then, push the server ID of the first-ranked server, "Server 1," onto the first stack. Next, based on the server order in the server sequence, obtain the second-ranked server as the server to be compared, i.e., Server 2. Compare the load of Server 2 with the load of the server peeked from stack 1, i.e., the load of Server 1. If the load of Server 2 is less than the load of the server peeked from stack 1, then push Server 2 onto the first stack. If the load of Server 2 is greater than the load of the server peeked from stack 1, then first perform a pop operation on the first stack, then push the popped server ID onto the second stack, then push Server 2 back onto the second stack, and finally pop all server IDs from the second stack and push them onto the first stack. Obtain the third-ranked server as the server to be compared, and repeat the comparison method as described above until all N servers in the current server group (N=5 in the aforementioned sequence, i.e., a total of 5 servers) have been compared. At this point, the first stack stores all server IDs according to their load size. Perform three pop operations on the stack elements in the first stack. The server ID popped by the first pop operation corresponds to the server with the smallest load, the server ID popped by the second pop operation corresponds to the server with the second smallest load, and the server ID popped by the third pop operation corresponds to the server with the third smallest load.

[0057] In another embodiment of this example, a server monitoring module may be included. This server monitoring module is configured to: monitor the processing progress of the data processing tasks corresponding to steps S1, S2, and S3 running on the three target servers, determine whether each step's data processing task is complete, and when a step's data processing task is determined to be complete, trigger the next target server to execute the next step, until all three steps' data processing tasks are completed. When the third step's data processing task is completed, output a prompt indicating that the corresponding test case has passed. When a step's data processing task is determined to be incomplete, return to that step and output a prompt indicating that the corresponding test case has failed. See also... Figure 4 As shown.

[0058] Preferably, the PXP hardware accelerator simulation verification system can also be linked to the user's communication tool to send the corresponding test case execution results information to the user. As a typical example, when outputting the test case execution results through the test case simulation result output field of the GUI, the test case execution results and related execution files are simultaneously sent to the user's designated communication tool, such as sending them to the user's email address via email.

[0059] Another embodiment of the present invention provides a chip simulation and verification system based on a hardware accelerator. The system includes a user terminal and a PXP hardware accelerator simulation and verification system.

[0060] The user terminal is equipped with a graphical user interface (GUI) for users to input test case ID information and send test requests. The test requests are sent through test trigger controls in the GUI.

[0061] The PXP hardware accelerator simulation verification system is used to receive the aforementioned test request and perform the following process according to the aforementioned test request: obtain the test case ID information input by the user, and determine whether the corresponding test case is a test case that has been run based on the aforementioned test case ID information; if the test case is determined to be a new test case that has not been run, execute the following steps S1, S2 and S3 in sequence; if the test case is determined to be a test case that has been run, obtain the simulation verification data packet database2 corresponding to the test case and directly execute step S3.

[0062] Steps S1, S2, and S3 are as follows: S1, obtain the register transfer level RTL code of the chip to be verified, compile the RTL code into a gate-level netlist file netlist, and store the gate-level netlist file netlistz as the first data file database1; S2, based on the aforementioned test case ID, retrieve the simulation stimulus test file testbench of the test case from the preset test case database, compile the simulation stimulus test file testbench together with the aforementioned first data file database1 to form a simulation verification data package database2, and store the simulation verification data package database2; S3, run the aforementioned simulation verification data package database2, wherein the simulation stimulus test file testbench part of the simulation verification data package database2 runs on the host server, and the first data file database1 part of the simulation verification data package database2 runs on the hardware accelerator PXP.

[0063] Other technical features are described in the preceding embodiments and will not be repeated here.

[0064] In the above description, the disclosure of this invention is not intended to limit itself to these aspects. Rather, within the scope of the objectives of this disclosure, components can be selectively and operationally combined in any number. Furthermore, terms such as “comprising,” “encompassing,” and “having” should be interpreted by default as inclusive or open-ended, rather than exclusive or closed, unless explicitly defined as such. All technical, scientific, or other terms are to be understood by those skilled in the art, unless defined as such. Public terms found in dictionaries should not be interpreted in the context of the relevant technical documents in an overly idealistic or impractical manner, unless explicitly defined as such in this disclosure. Any modifications or alterations made by those skilled in the art based on the foregoing disclosure are within the scope of the claims.

Claims

1. A chip simulation and verification method based on a hardware accelerator, characterized in that: Receive a test request sent by the user-side graphical user interface (GUI), the test request being issued through a test trigger control in the GUI; The PXP hardware accelerator simulation verification system performs the following process according to the aforementioned test request: It obtains the test case ID information input by the user in the aforementioned GUI, and determines whether the corresponding test case is a previously run test case based on the aforementioned test case ID information; if the test case is determined to be a new test case that has not been run, it executes the following steps S1, S2, and S3 in sequence; if the test case is determined to be a test case that has already been run, it obtains the simulation verification data packet generated during the runtime of the test case and then executes step S3. Steps S1, S2, and S3 are as follows: S1, Obtain the register transfer level RTL code of the chip to be verified, compile the RTL code into a gate-level netlist file netlist, and store the gate-level netlist file netlistz as the first data file; S2, based on the aforementioned test case ID, retrieve the simulation stimulus test file testbench of the test case from the preset test case database, compile the simulation stimulus test file testbench together with the aforementioned first data file database1 to form a simulation verification data package, and store the simulation verification data package; S3, run the aforementioned simulation verification data package, wherein the simulation stimulus test file testbench part of the simulation verification data package runs on the host server, and the first data file part of the simulation verification data package runs on the hardware accelerator PXP.

2. The chip simulation verification method according to claim 1, characterized in that: The user-side graphical user interface (GUI) includes at least a test case information collection bar, a test trigger control, and a test case simulation result output bar. The test case information collection field is used for users to input the test case ID information of the test project; The test trigger control serves as the access interface for the aforementioned PXP hardware accelerator simulation verification system. When triggered, it can send a test request to the aforementioned PXP hardware accelerator simulation verification system. The test case simulation result output column is used to output whether the aforementioned test case ran successfully.

3. The chip simulation verification method according to claim 2, characterized in that: When a user enters multiple test case IDs in the test case information collection field, the tests will be performed sequentially according to the order of the aforementioned test case IDs; and, Based on the order of the aforementioned test case IDs, the running results of each test case are output sequentially in the test case simulation result output column.

4. The chip simulation verification method according to claim 1, characterized in that: The test case ID serves as the identification information for a test case, uniquely identifying each test case. The test case ID includes the name and / or number of the corresponding test case, with different test cases having different case names and case numbers.

5. The chip simulation verification method according to claim 1, characterized in that: It also includes a server dynamic allocation module; The server dynamic allocation module is configured to: when steps S1, S2 and S3 need to be executed, analyze the load information of all servers in the current server group, and determine three target servers for executing the aforementioned steps S1, S2 and S3 based on the load of each server, and run steps S1, S2 and S3 on the three target servers respectively.

6. The chip simulation verification method according to claim 5, characterized in that: The server dynamic allocation module includes a dynamic allocation script, which selects the aforementioned three target servers from the current server group, and assigns the first target server with the lowest load to the aforementioned step S1 to run the data processing task of step S1 on the first target server, assigns the second target server with the second lowest load to the aforementioned step S2 to run the data processing task of step S2 on the second target server, and assigns the third target server with the third lowest load to the aforementioned step S3 to run the data processing task of step S3 on the third target server.

7. The chip simulation verification method according to claim 6, characterized in that: The dynamic allocation script is a Python script.

8. The chip simulation verification method according to claim 7, characterized in that: The dynamic allocation script is configured to perform the following steps. S210 is configured with two empty stacks, namely stack_1 and stack_2. S220, obtain the server sequence information of the current server group, and push the server ID ranked 1st into the first stack stack_1 as the top element s1_top; S230, Based on the server order in the server sequence, select the second-ranked server as the server to be compared; S240, obtain the load x of the server to be compared, and perform a peek operation on the top of the first stack to return the top element s1_top. Compare the load x of the server to be compared with the load y of the server corresponding to the top element s1_top. If the load x of the server to be compared is less than the load y, proceed to step S250. If the load x of the server to be compared is greater than or equal to the load y, proceed to step S260. S250, push the server ID of the server to be compared onto the first stack stack_1 as the new stack top element s1_top. At this time, the first stack stack_1 stores multiple server IDs, and the server ID of the server with the smaller load is used as the stack top element; execute step S270. S260, Perform a pop operation on the stack elements in the first stack_1 to pop the top element s1_top, push the popped top element s1_top onto the second stack_2 as the top element s2_top, and then push the server ID of the server to be compared onto the second stack_2; and perform a pop operation on all stack elements stored in the second stack_2 and push them onto the first stack_1 as stack elements. At this time, the first stack_1 stores the server IDs of multiple servers, with the server ID of the server with the smaller load as the top element, and the second stack_2 is an empty stack; proceed to step S270; S270, determine whether there are any uncompared servers in the server sequence; if there are uncompared servers, obtain the next server as the service to be compared according to the server order in the server sequence, and then return to step S240, and so on, until all servers in the server sequence have been compared, and then execute step S280; if there are no uncompared servers, directly execute step S280. S280, perform three pop operations on the stack elements in stack_1. The server ID popped by the first pop operation corresponds to the server with the lowest load, the server ID popped by the second pop operation corresponds to the server with the second lowest load, and the server ID popped by the third pop operation corresponds to the server with the third lowest load.

9. The chip simulation verification method according to claim 5, characterized in that: It also includes a server monitoring module; The server monitoring module is configured to: monitor the processing progress of the data processing tasks corresponding to steps S1, S2, and S3 running on the three target servers, determine whether the data processing tasks of each step are completed, and when a step is determined to be completed, trigger the next target server to execute the next step, until all three steps are completed. When the third step is completed, output a prompt indicating that the corresponding test case has passed; when a step is determined to be incomplete, return to that step and output a prompt indicating that the corresponding test case has failed.

10. A chip simulation and verification system based on a hardware accelerator, characterized in that... include: The user terminal is equipped with a graphical user interface (GUI) for users to input test case ID information and send test requests. The test requests are sent through test trigger controls in the GUI. The PXP hardware accelerator simulation verification system is used to receive the aforementioned test request and perform the following process according to the aforementioned test request: obtain the test case ID information input by the user, and determine whether the corresponding test case is a test case that has been run based on the aforementioned test case ID information; if the test case is determined to be a new test case that has not been run, execute the following steps S1, S2 and S3 in sequence; if the test case is determined to be a test case that has been run, obtain the simulation verification data packet generated when the test case is run, and then execute step S3. Steps S1, S2, and S3 are as follows: S1, Obtain the register transfer level RTL code of the chip to be verified, compile the RTL code into a gate-level netlist file netlist, and store the gate-level netlist file netlistz as the first data file; S2, based on the aforementioned test case ID, retrieve the simulation stimulus test file testbench of the test case from the preset test case database, compile the simulation stimulus test file testbench together with the aforementioned first data file database1 to form a simulation verification data package, and store the simulation verification data package; S3, run the aforementioned simulation verification data package, wherein the simulation stimulus test file testbench part of the simulation verification data package runs on the host server, and the first data file part of the simulation verification data package runs on the hardware accelerator PXP.

Citation Information

Patent Citations

  • Method and device for constructing operating environment of software and hardware co-simulation accelerator

    CN106202685A

  • Software and hardware co-simulation method

    CN113343617A