Simulation method, model, electronic device, storage medium

By distinguishing rendering task types and processing them through a simulation method that does not use large programming libraries, it solves the problems of high model maintenance costs and execution process blocking in graphics processor hardware design, and improves development efficiency and performance judgment accuracy.

CN117634369BActive Publication Date: 2024-09-20MOORE THREADS TECH CO LTD
View PDF 16 Cites 0 Cited by

Patent Information

Application Number
CN202311714251.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-13
Publication Date
2024-09-20
Estimated Expiration
2043-12-13

AI Technical Summary

Technical Problem

The existing technology uses large programming libraries to model firmware simulation models in graphics processor hardware design, resulting in high model maintenance costs, low development efficiency, and prone to execution flow blocking, affecting the accuracy of performance judgment.

Method used

A simulation method that does not use a large programming library is adopted. By obtaining the instructions in the firmware code and distinguishing the rendering task types according to the task volume, the light task types are executed in real time, and the heavy task types continue to obtain instructions after the cache is completed to avoid long-term blocking.

Benefits of technology

It reduces model maintenance costs, improves model development efficiency and performance judgment accuracy, avoids long-term blocking of the execution process, and improves the verification effect of firmware simulation models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117634369B
    Figure CN117634369B
Patent Text Reader

Abstract

The present disclosure relates to the field of integrated circuit design, and proposes a simulation method, model, electronic device, and storage medium. The simulation method is applied to a firmware simulation model, including: obtaining instructions in the firmware code, executing the obtained instructions, and generating a register access task when the obtained instructions are related to the access of the register model; executing the register access task, and generating a rendering task when the type of the register access task is a trigger type; when the rendering task is a heavy task type, transmitting the rendering task to the graphics rendering pipeline model, and continuing to obtain the next instruction after receiving information indicating that the rendering task has been cached to the graphics rendering pipeline model. The simulation method of the embodiment of the present disclosure is applied to a lightweight model, which can reduce the model maintenance cost, improve the model development efficiency, and avoid long-term blocking of the execution process of the firmware code, thereby improving the performance judgment accuracy of the firmware simulation model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of integrated circuit design, and in particular to a simulation method, a model, an electronic device, and a storage medium. Background Art

[0002] In the design process of graphics processing unit (GPU), it is necessary to model the software of the GPU in the early stage of design. On the one hand, the function and performance of the GPU can be verified in advance. On the other hand, a development platform can be provided to software developers in advance through a virtual machine, which is convenient for multiple departments to develop the GPU in parallel. In the modeling process of the GPU, firmware simulation is an indispensable part.

[0003] In the prior art, firmware is usually modeled based on graphics processor hardware design using high-level programming languages ​​to implement firmware code parsing, execution and other operations. Due to hardware characteristics, the model maintenance cost is high. In addition, large programming libraries such as SystemC are used to implement the interconnection between modules and clock settings included in the firmware simulation model. The model development workload is relatively large, resulting in low model development efficiency. When using the firmware simulation model for verification, it is also easy to cause the execution process of the firmware code to be blocked for a long time, resulting in incorrect judgment of the performance of the firmware simulation model, affecting the verification effect of the model. Summary of the invention

[0004] In view of this, the present disclosure proposes a simulation method, model, electronic device, and storage medium. The simulation method of the embodiment of the present disclosure does not require the use of a large programming library and does not require the setting of a clock. Therefore, this method is applied to a lightweight model, which can reduce the model maintenance cost, improve the model development efficiency, and avoid long-term blocking of the execution process of the firmware code, thereby improving the performance judgment accuracy of the firmware simulation model and improving the verification effect of the model.

[0005] According to one aspect of the present disclosure, a simulation method is provided, which is applied to a firmware simulation model, wherein the firmware simulation model is arranged in a graphics processor simulation model, wherein the graphics processor simulation model further comprises a graphics rendering pipeline model and a register model, wherein the method comprises: obtaining instructions in a firmware code, wherein the firmware code comprises a plurality of instructions; executing the obtained instructions, and generating a register access task when the obtained instructions are related to access to the register model; executing the register access task, and generating a rendering task when the type of the register access task is a trigger type; when the rendering task is a light task type, transmitting the rendering task to the graphics rendering pipeline model, and continuing to obtain a next instruction after receiving information indicating that the rendering task has been executed; when the rendering task is a heavy task type, transmitting the rendering task to the graphics rendering pipeline model, and continuing to obtain a next instruction after receiving information indicating that the rendering task has been cached in the graphics rendering pipeline model, wherein the task amount corresponding to the heavy task type is greater than the task amount corresponding to the light task type.

[0006] In one possible implementation, the firmware simulation model and the graphics rendering pipeline model correspond to different threads, and the method further includes: when the rendering task is a light task type, calling an instance of the graphics rendering pipeline model in the thread corresponding to the firmware simulation model to execute the rendering task.

[0007] In one possible implementation, the firmware simulation model and the graphics rendering pipeline model correspond to different threads, the thread corresponding to the graphics rendering pipeline model includes a first cache module, and the method further includes: when the rendering task is a heavy task type, caching the rendering task to the first cache module, the first cache module calling the instance of the graphics rendering pipeline model to execute the rendering task, and the first cache module caching the rendering task in a first-in-first-out manner.

[0008] In a possible implementation, the graphics processor simulation model is run by a virtual machine, and the virtual machine also runs a user end. Before obtaining instructions in the firmware code, the method also includes: receiving a hardware interrupt signal from the graphics rendering pipeline model; and transmitting the hardware interrupt signal to the user end.

[0009] In a possible implementation, the graphics processor simulation model also includes a memory model, and the method also includes: when the acquired instruction is related to the access of the memory model, a memory access task is generated; binding the memory access operation to the entry of the memory access processing function through a callback function; executing the memory access task, calling back the memory access operation to the entry of the memory access processing function, and in the memory access processing function, determining whether to enter a direct memory access mode; when entering the direct memory access mode, executing the memory access operation through the direct memory access function.

[0010] In a possible implementation, the executing register access task also includes: when the type of the register access task is a non-trigger type, transmitting the register access task to the graphics rendering pipeline model, and after receiving information indicating that the register access task has been executed, continuing to obtain the next instruction.

[0011] According to another aspect of the present disclosure, a firmware simulation model is provided, the firmware simulation model is arranged in a graphics processor simulation model, the graphics processor simulation model further includes a graphics rendering pipeline model and a register model, the firmware simulation model includes a high-speed peripheral component interconnect interface, a firmware instruction simulation unit, and a register interface, the firmware instruction simulation unit is used to: obtain instructions in firmware code through the high-speed peripheral component interconnect interface, the firmware code includes a plurality of instructions; execute the obtained instructions, and when the obtained instructions are related to the access of the register model, generate a register access task; execute the register access task through the register interface, and when the type of the register access task is a trigger type, generate a rendering rendering task; when the rendering task is a light task type, the rendering task is transmitted to the graphics rendering pipeline model through the register interface, and after receiving the information indicating that the rendering task has been executed through the register interface, continue to obtain the next instruction through the high-speed peripheral component interconnect interface; when the rendering task is a heavy task type, the rendering task is transmitted to the graphics rendering pipeline model through the register interface, and after receiving the information indicating that the rendering task has been cached to the graphics rendering pipeline model through the register interface, continue to obtain the next instruction through the high-speed peripheral component interconnect interface, wherein the task amount corresponding to the heavy task type is greater than the task amount corresponding to the light task type.

[0012] In one possible implementation, the firmware simulation model and the graphics rendering pipeline model correspond to different threads, and the firmware simulation model is used to: when the rendering task is a light task type, call an instance of the graphics rendering pipeline model in the thread corresponding to the firmware simulation model to execute the rendering task.

[0013] In one possible implementation, the firmware simulation model and the graphics rendering pipeline model correspond to different threads, the thread corresponding to the graphics rendering pipeline model includes a first cache module, and the firmware simulation model is used to: when the rendering task is a heavy task type, cache the rendering task to the first cache module, the first cache module calls the instance of the graphics rendering pipeline model to execute the rendering task, and the first cache module caches the rendering task in a first-in-first-out manner.

[0014] In one possible implementation, the graphics processor simulation model is run by a virtual machine, and the virtual machine also runs a user end. The model also includes a hardware interrupt processing unit, and the firmware instruction simulation unit is also used to: receive a hardware interrupt signal from the graphics rendering pipeline model through the hardware interrupt processing unit; and transmit the hardware interrupt signal to the user end.

[0015] In a possible implementation, the graphics processor simulation model also includes a memory model, the firmware simulation model also includes a memory interface, and the firmware instruction simulation unit is further used to: generate a memory access task when the acquired instruction is related to the access of the memory model; bind the memory access operation to the entry of the memory access processing function through a callback function; execute the memory access task through the memory interface, call back the memory access operation to the entry of the memory access processing function, and in the memory access processing function, determine whether to enter a direct memory access mode; when entering the direct memory access mode, execute the memory access operation through the direct memory access function.

[0016] According to another aspect of the present disclosure, a graphics processor simulation model is provided, including the firmware simulation model described above, as well as a graphics rendering pipeline model, a register model, and a memory model.

[0017] In a possible implementation, the executing register access task also includes: when the type of the register access task is a non-trigger type, transmitting the register access task to the graphics rendering pipeline model, and after receiving information indicating that the register access task has been executed, continuing to obtain the next instruction.

[0018] According to another aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to implement the above method when executing the instructions stored in the memory.

[0019] According to another aspect of the present disclosure, a non-volatile computer-readable storage medium is provided, on which computer program instructions are stored, wherein the computer program instructions implement the above method when executed by a processor.

[0020] According to another aspect of the present disclosure, a computer program product is provided, including a computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the above method.

[0021] According to the simulation method of the embodiment of the present disclosure, the instructions in the firmware code can be obtained, the obtained instructions are executed, and when the obtained instructions are related to the access of the register model, a register access task is generated, and the simulation of the generation method of the register access task can be completed; the register access task is executed, and when the type of the register access task is a trigger type, a rendering task is generated, and the simulation of the generation method of the rendering task can be completed; when the rendering task is a light task type, the rendering task is transmitted to the graphics rendering pipeline model, and after receiving the information indicating that the rendering task has been executed, the next instruction is continued to be obtained, and when the rendering task is a heavy task type, the rendering task is transmitted to the graphics rendering pipeline model, and after receiving the information indicating that the rendering task has been cached to the graphics rendering pipeline model, the next instruction is continued to be obtained, wherein the task amount corresponding to the heavy task type is greater than the task amount corresponding to the light task type, and the simulation of the execution process of the instruction can be completed. The simulation method of the embodiment of the present disclosure does not need to use a large programming library and does not need to set a clock, so the method is applied to a lightweight model, which can reduce the model maintenance cost and improve the model development efficiency. The execution process of instructions is differentiated according to the task volume. Light task type rendering tasks with small task volume can be executed in real time and wait for completion before obtaining new instructions. Heavy task type rendering tasks with large task volume can obtain new instructions after caching. This avoids the inability to obtain information on the completion of heavy task type rendering tasks for a long time, which causes the execution process of the firmware code to be blocked for a long time, resulting in misjudgment of the performance of the model. This improves the performance judgment accuracy of the firmware simulation model and improves the verification effect of the model.

[0022] Further features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.

[0024] Figure 1 An exemplary application scenario of the simulation method according to an embodiment of the present disclosure is shown.

[0025] Figure 2 A schematic diagram showing the flow of a simulation method according to an embodiment of the present disclosure.

[0026] Figure 3An exemplary architecture diagram of a firmware simulation model according to an embodiment of the present disclosure is shown.

[0027] Figure 4 An exemplary architecture diagram of a firmware simulation model according to an embodiment of the present disclosure is shown.

[0028] Figure 5 A schematic diagram showing the flow of a simulation method according to an embodiment of the present disclosure.

[0029] Figure 6 A schematic diagram showing threads corresponding to a firmware simulation model and a graphics rendering pipeline model according to an embodiment of the present disclosure.

[0030] Figure 7 A block diagram of an electronic device 1900 according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0031] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.

[0032] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.

[0033] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.

[0034] In the design process of the graphics processing unit (GPU), it is necessary to perform software modeling on the graphics processing unit in the early stage of design. On the one hand, the functions and performance of the graphics processing unit can be verified in advance. On the other hand, a development platform can be provided to software developers in advance through a virtual machine, which is convenient for multiple departments to develop the graphics processing unit in parallel. In the modeling process of the graphics processing unit, it is necessary to provide a complete and designed graphics processing unit model to the software developers to parse the standardized data passed to the graphics processing unit model by the user-side application software in the virtual machine through the high-speed peripheral component interconnect express (PCIE) interface. In this process, firmware simulation is an indispensable part. The firmware plays a connecting role in the graphics processing unit. In the actual graphics processing unit hardware, it usually runs on one (or more) microcontroller units (MCUs) connected to the graphics processing unit core (GPU core) to process the information passed to the graphics processing unit by the high-speed peripheral component interconnect interface and manage the graphics processing unit core. In the modeling process of the graphics processing unit, the firmware needs to be modeled.

[0035] In the prior art, the firmware is usually modeled based on the graphics processor hardware design using a high-level programming language to implement firmware code parsing, execution and other operations, and a large programming library such as SystemC is used to implement the interconnection between the modules included in the firmware simulation model and clock settings. This solution has the following disadvantages:

[0036] 1. The hardware design of the graphics processor is too cumbersome and complicated. It needs to consider a large number of clocks, registers, consistency and other issues, which will increase the complexity of the firmware simulation model and make it difficult to maintain.

[0037] 2. Due to the hardware characteristics, there is a very heavy coupling relationship between the modules of the firmware simulation model. It is difficult to decouple the modules, which is not conducive to subsequent maintenance.

[0038] 3. Software developers usually do not care about the details of hardware implementation. In the process of simultaneous development of software and hardware, the firmware simulation model based on hardware design is difficult to give software developers correct feedback, resulting in low development efficiency.

[0039] 4. The hardware-based firmware simulation model has a lot of hardware simulation details, so the operation efficiency is slow.

[0040] 5. The firmware code includes multiple instructions. When using a hardware-based firmware simulation model for verification, the next instruction is usually executed after the rendering task corresponding to an instruction is completed. If the workload of a certain rendering task is large, the execution process will be stagnant at a certain instruction, which can easily be misjudged as a problem with the firmware simulation model, resulting in poor verification of the model.

[0041] In view of this, the present disclosure proposes a simulation method, model, electronic device, and storage medium. The simulation method of the embodiment of the present disclosure does not require the use of a large programming library and does not require the setting of a clock. Therefore, this method is applied to a lightweight model, which can reduce the model maintenance cost, improve the model development efficiency, and avoid long-term blocking of the execution process of the firmware code, thereby improving the performance judgment accuracy of the firmware simulation model and improving the verification effect of the model.

[0042] Figure 1 An exemplary application scenario of the simulation method according to an embodiment of the present disclosure is shown.

[0043] like Figure 1 As shown, the simulation method of the embodiment of the present disclosure can be executed by a firmware simulation model, and the firmware simulation model can be set in a graphics processor simulation model, and the graphics processor simulation model also includes a graphics rendering pipeline model, a register model, and a memory model. The graphics processor simulation model runs in a virtual machine (not shown), communicates with the user end of the virtual machine through a high-speed peripheral component interconnect interface, and provides model simulation services for software developers using the user end.

[0044] The software developer writes the firmware code on the user side. The firmware code includes multiple instructions and is stored in a specific storage area of ​​the firmware code (not shown). The instruction can record vertex data, configuration information, etc. related to a rendering. The firmware simulation model can be designed to be able to obtain instructions in the firmware code through a high-speed peripheral component interconnect interface. The firmware simulation model then executes the obtained instructions. The instruction may be related to the access of the register model and / or the memory model. For example, it may be an instruction to write data to the memory model, and the corresponding data is usually large segments of data such as index data and vertex data, and may also include some configuration information. It may also be an instruction to write data to the register model, and the corresponding data usually includes the main configuration information and control information of the graphics processor core, such as the start and stop of the graphics rendering pipeline model, and may also include data generated by the graphics rendering pipeline model (used for logical judgment by the firmware simulation model). When the instruction is related to the access to the register model, the firmware simulation model accesses the register model, reads data from the register model and outputs it to the graphics rendering pipeline model, or writes the data output by the graphics rendering pipeline model into the register model. When the instruction is related to the access of the memory model, the firmware simulation model accesses the memory model, reads data from the memory model and outputs it to the graphics rendering pipeline model, or writes data output by the graphics rendering pipeline model to the memory model.

[0045] Executing instructions may trigger rendering tasks. When executing instructions does not trigger rendering tasks, the next instruction can be obtained and executed after the instruction is executed. When executing instructions triggers rendering tasks, after the graphics rendering pipeline model completes the execution of the rendering task or caches the rendering task, the next instruction can be obtained, thereby completing the loop of obtaining and executing instructions.

[0046] When the firmware simulation model executes the simulation method of the embodiment of the present disclosure, the above functions designed by the firmware simulation model can be verified, and further, whether the firmware simulation model is normal can be determined based on the verification results. If an abnormality occurs, the location and type of the abnormality can be recorded in a log and reported to the user end.

[0047] Figure 2 A schematic diagram showing the flow of a simulation method according to an embodiment of the present disclosure.

[0048] In a possible implementation, the present disclosure proposes a simulation method, which is applied to a firmware simulation model. The firmware simulation model is set in a graphics processor simulation model. The graphics processor simulation model also includes a graphics rendering pipeline model and a register model. An exemplary structure of the graphics processor simulation model can be found in Figure 1 .

[0049] like Figure 2 As shown, the method includes steps S21-S25:

[0050] Step S21, obtaining instructions in the firmware code, where the firmware code includes a plurality of instructions.

[0051] The firmware code may be written in advance by the developer, including multiple instructions. These instructions are usually for access (reading / writing) of the memory model or the register model. When executing step S21 to obtain the instructions in the firmware code, one instruction may be obtained each time.

[0052] Figure 3 FIG. 2 shows an exemplary architecture diagram of a firmware simulation model according to an embodiment of the present disclosure. Figure 3 As shown, the firmware simulation model may be provided with a firmware instruction simulation unit, a high-speed peripheral component interconnect interface, and a register interface. Steps S21-S25 may be executed by the firmware instruction simulation unit, using the high-speed peripheral component interconnect interface and the register interface.

[0053] The firmware code may originate from the user end. The high-speed peripheral component interconnect interface in the firmware simulation model may communicate with the high-speed peripheral component interconnect interface in the graphics processor simulation model and outside the firmware simulation model. The firmware instruction simulation unit executes step S21, and may obtain instructions in the firmware code from the user end through the high-speed peripheral component interconnect interface. The firmware instruction simulation unit may parse the obtained instructions and store them in its own buffer (not shown). The purpose of the parsing may be to parse the instructions written in the programming language into executable code, and the parsing may be implemented based on the prior art, which will not be described in detail here.

[0054] Step S22, executing the acquired instruction, and generating a register access task when the acquired instruction is related to the access of the register model.

[0055] In step S22, the instruction to be executed may be the parsed instruction. The instruction may be related to the access to the register model, that is, the execution of the instruction involves the access operation to the register model, which may require reading data from the register model or writing data to the register model. In this case, a register access task may be generated.

[0056] The steps performed when the instruction is independent of the register model can be seen later and Figure 5 Related description.

[0057] Step S23, executing the register access task, and generating a rendering task when the type of the register access task is a trigger type.

[0058] Step S23 may also be performed by a firmware instruction simulation unit. Figure 3 As shown, the register interface can communicate with the register model. The firmware instruction simulation unit can perform register access tasks through the register interface.

[0059] There are two types of register access tasks, one is a non-trigger type, that is, executing a register access task to complete the reading or writing of data will not trigger other tasks. After the register access task is completed, you can continue to get the next instruction, that is, execute step S21 and subsequent steps. The other is a trigger type, that is, executing a register access task to access a specific register model, and when reading or writing specific data, a rendering task can be triggered. For example, when writing 1 to a specific register, the triggered rendering task can be the startup task of the graphics rendering pipeline model. Triggering a rendering task can be achieved by setting a callback function. The callback function is an existing function in the prior art, and using the callback function to trigger a rendering task can be implemented based on the prior art, which will not be repeated here.

[0060] Those skilled in the art should understand that the rendering task is only a name, and does not mean that the triggered task is necessarily related to the rendering operation. There may be more types of rendering tasks that can be triggered, and the embodiments of the present disclosure do not limit this.

[0061] Step S24, when the rendering task is a light task type, the rendering task is transmitted to the graphics rendering pipeline model, and after receiving information indicating that the rendering task has been executed, the next instruction is obtained.

[0062] The task volume of the possible rendering tasks can be determined in advance, and a threshold is determined according to the size of the task volume, and the rendering tasks with a task volume less than or equal to the threshold are determined as light task types, and the rendering tasks with a task volume greater than the threshold are determined as heavy task types. Therefore, the task volume corresponding to the heavy task type is greater than the task volume corresponding to the light task type.

[0063] In step S24, when the rendering task is a light task type, the firmware instruction simulation unit transmits the rendering task to the graphics rendering pipeline model, which may be output to a certain area in the register model through a register interface. The graphics rendering pipeline model can read the rendering task from the area and execute it.

[0064] Since the amount of light-task type rendering tasks is small, the rendering tasks are executed relatively quickly. Real-time execution of rendering tasks will not cause the execution process to stagnate at a certain instruction, so it will not cause misjudgment. The graphics rendering pipeline model can store information indicating that the rendering task has been completed in a certain area in the register model. The firmware instruction simulation unit can read the information indicating that the rendering task has been completed from the area through the register interface. After reading (receiving) the information indicating that the rendering task has been completed, continue to obtain the next instruction, that is, execute step S21 and subsequent steps.

[0065] Step S25, when the rendering task is a heavy task type, the rendering task is transmitted to the graphics rendering pipeline model, and after receiving information indicating that the rendering task has been cached in the graphics rendering pipeline model, the next instruction is continued to be obtained, wherein the task amount corresponding to the heavy task type is greater than the task amount corresponding to the light task type.

[0066] In step S25, when the rendering task is a heavy task type, the firmware instruction simulation unit transmits the rendering task to the graphics rendering pipeline model, which may be output to a cache at a certain area in the register model through a register interface (which may be the first cache module described below). The graphics rendering pipeline model can read the rendering task from the area and execute it.

[0067] Since the amount of heavy-duty rendering tasks is large, the rendering tasks are executed slowly. Real-time execution of tasks may cause the execution process to stagnate at a certain instruction, resulting in misjudgment. In this regard, when executing step S25, after the rendering task has been cached in the graphics rendering pipeline model, the firmware instruction simulation unit begins to obtain new instructions and execute the new instructions.

[0068] The graphics rendering pipeline model may store information indicating that the rendering task has been cached in the graphics rendering pipeline model in a certain area in the register model. The firmware instruction simulation unit may read the information indicating that the rendering task has been cached in the graphics rendering pipeline model from the area through the register interface. After reading (receiving) the information indicating that the rendering task has been cached in the graphics rendering pipeline model, continue to obtain the next instruction, that is, execute step S21 and subsequent steps until all instructions in the firmware code are executed.

[0069] According to the simulation method of the embodiment of the present disclosure, the instructions in the firmware code can be obtained, the obtained instructions are executed, and when the obtained instructions are related to the access of the register model, a register access task is generated, and the simulation of the generation method of the register access task can be completed; the register access task is executed, and when the type of the register access task is a trigger type, a rendering task is generated, and the simulation of the generation method of the rendering task can be completed; when the rendering task is a light task type, the rendering task is transmitted to the graphics rendering pipeline model, and after receiving the information indicating that the rendering task has been executed, the next instruction is continued to be obtained, and when the rendering task is a heavy task type, the rendering task is transmitted to the graphics rendering pipeline model, and after receiving the information indicating that the rendering task has been cached to the graphics rendering pipeline model, the next instruction is continued to be obtained, wherein the task amount corresponding to the heavy task type is greater than the task amount corresponding to the light task type, and the simulation of the execution process of the instruction can be completed. The simulation method of the embodiment of the present disclosure does not need to use a large programming library and does not need to set a clock, so the method is applied to a lightweight model, which can reduce the model maintenance cost and improve the model development efficiency. The execution process of instructions is differentiated according to the task volume. Light task type rendering tasks with small task volume can be executed in real time and wait for completion before obtaining new instructions. Heavy task type rendering tasks with large task volume can obtain new instructions after caching. This avoids the inability to obtain information on the completion of heavy task type rendering tasks for a long time, which causes the execution process of the firmware code to be blocked for a long time, resulting in misjudgment of the performance of the model. This improves the performance judgment accuracy of the firmware simulation model and improves the verification effect of the model.

[0070] In a possible implementation, executing the register access task also includes: when the type of the register access task is a non-trigger type, transmitting the register access task to the graphics rendering pipeline model, and after receiving information indicating that the register access task has been executed, continuing to obtain the next instruction.

[0071] For example, if the register access task is a non-trigger type, then executing the register access task to complete the reading or writing of data will not trigger other tasks. Therefore, a non-trigger type register access task is also a light task. The exemplary execution method may be the same as the execution method of the rendering task of the light task type mentioned above. For example, the firmware instruction simulation unit may output the register access task to a certain area in the register model through the register interface. The graphics rendering pipeline model may read the register access task from the area and execute it. The graphics rendering pipeline model completes the reading or writing of data when executing the register access task. The graphics rendering pipeline model may store information indicating that the rendering task has been completed in a certain area in the register model. The firmware instruction simulation unit may read the information indicating that the rendering task has been completed from the area through the register interface. After reading (receiving) the information indicating that the rendering task has been completed, continue to obtain the next instruction, that is, execute step S21 and subsequent steps.

[0072] The firmware simulation model may also include more models and interfaces to accomplish more functions. Figure 4 An exemplary architecture diagram of a firmware simulation model according to an embodiment of the present disclosure is shown. Figure 5 A schematic diagram showing the flow of a simulation method according to an embodiment of the present disclosure.

[0073] Combine the following Figure 4 and Figure 5 Further description is given of more functions of the firmware simulation model.

[0074] like Figure 5 As shown, in a possible implementation, the graphics processor simulation model is run by a virtual machine, and the virtual machine also runs a user terminal.

[0075] Before step S21, the method further includes:

[0076] Receive a hardware interrupt signal from the graphics rendering pipeline model;

[0077] Transmits hardware interrupt signals to the user side.

[0078] For example, the graphics rendering pipeline model generates hardware interrupt signals when executing rendering tasks. Figure 4 As shown, the firmware simulation model can also be provided with a hardware interrupt processing unit, which is responsible for receiving the hardware interrupt signal from the graphics rendering pipeline model and notifying the firmware instruction simulation unit to perform the hardware interrupt operation. The details of the generation method of the hardware interrupt signal can be found in the further description of the threads of the graphics rendering pipeline model and the firmware simulation model below.

[0079] Exemplarily, when the firmware instruction simulation unit performs a hardware interrupt operation, the hardware interrupt signal may be transmitted to the user end through the high-speed peripheral component interconnect interface. After completing the hardware interrupt operation, the firmware instruction simulation unit performs step S21 and subsequent steps.

[0080] In this way, the firmware simulation model can complete the processing of hardware interrupts, so that the firmware simulation model can obtain instructions in the firmware code.

[0081] In a possible implementation, the graphics processor simulation model also includes a memory model, such as Figure 5 As shown, the method also includes:

[0082] When the fetched instruction is related to the access of the memory model, a memory access task is generated;

[0083] Bind the memory access operation to the entry of the memory access processing function through the callback function;

[0084] Execute the memory access task, call back the memory access operation to the entry of the memory access processing function, and in the memory access processing function, determine whether to enter the direct memory access mode;

[0085] When entering direct memory access mode, memory access operations are performed through direct memory access functions.

[0086] For example, if Figure 4 As shown, the firmware simulation model may also be provided with a memory interface and a direct memory access module. The memory interface is used to communicate with the memory model, and the direct memory access module includes a direct memory access function, which can realize the function of quickly moving data to the memory.

[0087] When the acquired instruction is related to the access of the memory model, the firmware instruction simulation unit can generate a memory access task. The memory access operation can be bound to the entry of the memory access processing function through a callback function. The memory access processing function can be a function already available in the prior art. After that, the firmware instruction simulation unit communicates with the memory model through the memory interface to perform the memory access task and calls back the memory access operation to the entry of the memory access processing function. In the memory access processing function, it is determined whether to enter the direct memory access (DMA) mode.

[0088] If it is determined that the direct memory access mode is entered, the memory access operation can be performed through the direct memory access function. For example, the memory model is accessed by calling the direct memory access function and the memory interface. If it is determined that the memory access mode is not entered, the memory model is accessed through the memory interface.

[0089] When executing memory access tasks, all kinds of function calls can be direct calls. During the memory access process, the firmware simulation model cannot return real-time feedback to the user end. Since memory access generally does not take too long, all logic related to memory access can be set as a direct call to the callback function.

[0090] In this way, the firmware simulation model can complete memory access operations.

[0091] In the disclosed embodiment, the firmware simulation model and the graphics rendering pipeline model correspond to different threads. Figure 6 A schematic diagram showing threads corresponding to a firmware simulation model and a graphics rendering pipeline model according to an embodiment of the present disclosure is shown. Figure 6 The execution details of light task type and heavy task type rendering tasks are introduced respectively.

[0092] In a possible implementation, the firmware simulation model and the graphics rendering pipeline model correspond to different threads, and the method further includes:

[0093] When the rendering task is a light task type, an instance of the graphics rendering pipeline model is called in a thread corresponding to the firmware simulation model to execute the rendering task.

[0094] For example, a light task type rendering task may be a task with low complexity, such as state update, state reading, unit switch control, and other rendering tasks. Figure 6 As shown, for light task type rendering tasks, a direct function call method can be used to directly call an instance of the graphics rendering pipeline model in the thread of the firmware simulation model for execution. After the rendering task is completed, the graphics rendering pipeline model can notify the firmware simulation model to continue to obtain instructions or handle interrupts by register access.

[0095] like Figure 6 As shown, the thread of the graphics rendering pipeline model also includes a second cache module for caching hardware interrupt instructions in a first-in-first-out manner. If a hardware interrupt signal is generated when executing a rendering task, the hardware interrupt signal can be stored in the second cache module. Before the firmware simulation model obtains the next instruction, a hardware interrupt signal can be taken out from the second cache module and hardware interrupt processing can be performed (see Figure 5 ). The method of hardware interrupt processing has been described above and will not be repeated here.

[0096] In this way, rendering tasks with a small amount of tasks can be performed with the advantages of high synchronization and low performance occupation.

[0097] In a possible implementation, the firmware simulation model and the graphics rendering pipeline model correspond to different threads, the thread corresponding to the graphics rendering pipeline model includes a first cache module, and the method further includes:

[0098] When the rendering task is a heavy task type, the rendering task is cached in the first cache module, the first cache module calls the instance of the graphics rendering pipeline model to execute the rendering task, and the first cache module caches the rendering task in a first-in-first-out manner.

[0099] For example, a heavy-duty rendering task may be a task with high complexity and heavy workload, such as rendering an image, passing drawing instructions, etc. For heavy-duty rendering tasks, the firmware simulation model can be separated from the task execution part of the graphics rendering pipeline model, thereby decoupling the firmware simulation and the rendering pipeline simulation. Figure 6 As shown, the thread of the graphics rendering pipeline model also includes a first cache module. A newly received rendering task can be cached at the first cache module. For the thread of the firmware simulation model, after caching the rendering task at the first cache module, other operations such as obtaining the next instruction or processing interrupts can be continued without waiting for the thread of the graphics rendering pipeline model to complete the rendering task. The first cache module can call an instance of the graphics rendering pipeline model, read the rendering task from the first cache module and execute it.

[0100] If a hardware interrupt signal is generated when executing the rendering task, the hardware interrupt signal can be stored in the second cache module. Before the firmware simulation model obtains the next instruction, a hardware interrupt signal can be taken out from the second cache module and the hardware interrupt processing can be performed (see Figure 5 ). The method of hardware interrupt processing has been described above and will not be repeated here.

[0101] In this way, the firmware simulation and rendering pipeline simulation can be decoupled to achieve the effect of time-sharing computing.

[0102] The present disclosure also provides a firmware simulation model, the schematic diagram of which can be seen in Figure 3 and Figure 4 .

[0103] The firmware simulation model is set in the graphics processor simulation model, and the graphics processor simulation model also includes a graphics rendering pipeline model and a register model, such as Figure 3 As shown, the firmware simulation model includes a high-speed peripheral component interconnect interface, a firmware instruction simulation unit, and a register interface.

[0104] The firmware instruction simulation unit is used for:

[0105] Obtaining instructions in a firmware code through the PCI Express interface, wherein the firmware code includes a plurality of instructions;

[0106] executing the fetched instructions, and generating a register access task when the fetched instructions are related to access of the register model;

[0107] Execute the register access task through the register interface, and generate a rendering task when the type of the register access task is a trigger type;

[0108] When the rendering task is a light task type, transmitting the rendering task to the graphics rendering pipeline model through the register interface, and after receiving information indicating that the rendering task has been completed through the register interface, continuing to obtain a next instruction through the PCI Express interface;

[0109] When the rendering task is a heavy task type, the rendering task is transmitted to the graphics rendering pipeline model through the register interface, and after receiving information indicating that the rendering task has been cached in the graphics rendering pipeline model through the register interface, continue to obtain the next instruction through the high-speed peripheral component interconnect interface, wherein the task amount corresponding to the heavy task type is greater than the task amount corresponding to the light task type.

[0110] The firmware simulation model of the disclosed embodiment has high operating efficiency, and when using the firmware simulation model, the high-speed peripheral component interconnect interface in the virtual machine will not be blocked for a long time. The coupling degree between modules of the firmware simulation model is small, which facilitates the expansion and updating of the firmware simulation model.

[0111] The firmware simulation model of the disclosed embodiment solves the cumbersome modeling problem based on hardware design, greatly shortens the development time, and improves the convenience of model maintenance. In the process of graphics processor design, the firmware simulation model of the disclosed embodiment can greatly advance the start time of software development and achieve the purpose of parallel development.

[0112] The firmware simulation model of the embodiment of the present disclosure solves the heavy coupling problem existing in the firmware simulation model based on hardware design. It uses modules based on functional concepts to replace hardware modules for modeling, deletes functions such as synchronization information between hardware modules, and realizes high cohesion and low coupling of the model.

[0113] The firmware simulation model of the disclosed embodiment provides important information about the firmware operation to software developers and saves it in the form of a log, which makes it easier for software developers to troubleshoot errors during the development process and reduces development time and cost.

[0114] The firmware simulation model of the disclosed embodiment is a lightweight model that deletes a large number of hardware simulation details, thereby greatly improving the simulation speed of the firmware simulation model.

[0115] In a possible implementation, the firmware simulation model and the graphics rendering pipeline model correspond to different threads, and the firmware simulation model is used to:

[0116] When the rendering task is a light task type, the instance of the graphics rendering pipeline model is called in the thread corresponding to the firmware simulation model to execute the rendering task.

[0117] In a possible implementation, the firmware simulation model and the graphics rendering pipeline model correspond to different threads, the thread corresponding to the graphics rendering pipeline model includes a first cache module, and the firmware simulation model is used to:

[0118] When the rendering task is a heavy task type, the rendering task is cached in the first cache module, the first cache module calls the instance of the graphics rendering pipeline model to execute the rendering task, and the first cache module caches the rendering task in a first-in-first-out manner.

[0119] In a possible implementation, the graphics processor simulation model is run by a virtual machine, and the virtual machine also runs a user terminal.

[0120] The model also includes a hardware interrupt processing unit, and the firmware instruction simulation unit is further used for:

[0121] Receiving a hardware interrupt signal from the graphics rendering pipeline model through the hardware interrupt processing unit;

[0122] The hardware interrupt signal is transmitted to the user end.

[0123] In a possible implementation, the graphics processor simulation model further includes a memory model, the firmware simulation model further includes a memory interface, and the firmware instruction simulation unit is further used for:

[0124] When the acquired instruction is related to the access of the memory model, a memory access task is generated;

[0125] Bind the memory access operation to the entry of the memory access processing function through the callback function;

[0126] Executing the memory access task through the memory interface, calling back the memory access operation to the entry of the memory access processing function, and determining in the memory access processing function whether to enter the direct memory access mode;

[0127] When entering the direct memory access mode, the memory access operation is performed through a direct memory access function.

[0128] In a possible implementation, the executing register access task also includes: when the type of the register access task is a non-trigger type, transmitting the register access task to the graphics rendering pipeline model, and after receiving information indicating that the register access task has been executed, continuing to obtain the next instruction.

[0129] In some embodiments, the functions or modules included in the model provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation thereof can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.

[0130] The present disclosure also provides a graphics processor simulation model, including the firmware simulation model described above, as well as a graphics rendering pipeline model, a register model, and a memory model. A schematic diagram of the structure of the graphics processor simulation model can be found in Figure 1 .

[0131] The embodiment of the present disclosure also provides a computer-readable storage medium on which computer program instructions are stored, and the computer program instructions implement the above method when executed by a processor. The computer-readable storage medium can be a volatile or non-volatile computer-readable storage medium.

[0132] An embodiment of the present disclosure further proposes an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to implement the above method when executing the instructions stored in the memory.

[0133] The embodiments of the present disclosure also provide a computer program product, including a computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the above method.

[0134] Figure 7 1 is a block diagram of an electronic device 1900 according to an embodiment of the present disclosure. For example, the electronic device 1900 may be provided as a server or a terminal device. Figure 7 , the electronic device 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932 for storing instructions executable by the processing component 1922, such as an application. The application stored in the memory 1932 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above method.

[0135] The electronic device 1900 may also include a power supply component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input / output interface 1958 (I / O interface). The electronic device 1900 may operate based on an operating system stored in the memory 1932, such as Windows Server 2003. TM , Mac OS X TM , Unix TM ,Linux TM , FreeBSD TM or similar.

[0136] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 1932 including computer program instructions, which can be executed by the processing component 1922 of the electronic device 1900 to perform the above method.

[0137] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.

[0138] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.

[0139] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0140] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.

[0141] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0142] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0143] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0144] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.

[0145] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A simulation method, characterized in that: Applied to a firmware simulation model, the firmware simulation model is set in a graphics processor simulation model, the graphics processor simulation model also includes a graphics rendering pipeline model and a register model, the method includes: Obtaining instructions in a firmware code, wherein the firmware code includes a plurality of instructions; executing the fetched instructions, and generating a register access task when the fetched instructions are related to access of the register model; Executing the register access task, and generating a rendering task when the type of the register access task is a trigger type; When the rendering task is a light task type, transmitting the rendering task to the graphics rendering pipeline model, and after receiving information indicating that the rendering task has been completed, continuing to obtain a next instruction; When the rendering task is a heavy task type, the rendering task is transmitted to the graphics rendering pipeline model, and after receiving information indicating that the rendering task has been cached in the graphics rendering pipeline model, the next instruction is continued to be obtained, wherein the task amount corresponding to the heavy task type is greater than the task amount corresponding to the light task type, the task amount corresponding to the heavy task type is greater than a threshold, and the task amount of the light task type is less than a threshold.

2. The method according to claim 1, characterized in that The firmware simulation model and the graphics rendering pipeline model correspond to different threads, and the method further includes: When the rendering task is a light task type, the instance of the graphics rendering pipeline model is called in the thread corresponding to the firmware simulation model to execute the rendering task.

3. The method according to claim 1 or 2, characterized in that: The firmware simulation model and the graphics rendering pipeline model correspond to different threads, the thread corresponding to the graphics rendering pipeline model includes a first cache module, and the method further includes: When the rendering task is a heavy task type, the rendering task is cached in the first cache module, the first cache module calls the instance of the graphics rendering pipeline model to execute the rendering task, and the first cache module caches the rendering task in a first-in-first-out manner.

4. The method according to claim 1, characterized in that: The graphics processor simulation model is run by a virtual machine, and the virtual machine also runs a user terminal. Before obtaining the instructions in the firmware code, the method further includes: Receiving a hardware interrupt signal from the graphics rendering pipeline model; The hardware interrupt signal is transmitted to the user end.

5. The method according to claim 1, characterized in that The graphics processor simulation model also includes a memory model, and the method further includes: When the acquired instruction is related to the access of the memory model, a memory access task is generated; Bind the memory access operation to the entry of the memory access processing function through the callback function; Execute the memory access task, call back the memory access operation to the entry of the memory access processing function, and in the memory access processing function, determine whether to enter the direct memory access mode; When entering the direct memory access mode, the memory access operation is performed through a direct memory access function.

6. The method according to claim 1, characterized in that The performing of the register access task further comprises: When the type of the register access task is a non-trigger type, the register access task is transmitted to the graphics rendering pipeline model, and after receiving information indicating that the register access task has been executed, the next instruction is continuously obtained.

7. A firmware simulation model, characterized in that: The firmware simulation model is set in the graphics processor simulation model, the graphics processor simulation model also includes a graphics rendering pipeline model and a register model, the firmware simulation model includes a high-speed peripheral component interconnect interface, a firmware instruction simulation unit, and a register interface, The firmware instruction simulation unit is used for: Obtaining instructions in a firmware code through the PCI Express interface, wherein the firmware code includes a plurality of instructions; executing the fetched instructions, and generating a register access task when the fetched instructions are related to access of the register model; Execute the register access task through the register interface, and generate a rendering task when the type of the register access task is a trigger type; When the rendering task is a light task type, transmitting the rendering task to the graphics rendering pipeline model through the register interface, and after receiving information indicating that the rendering task has been completed through the register interface, continuing to obtain a next instruction through the PCI Express interface; When the rendering task is a heavy task type, the rendering task is transmitted to the graphics rendering pipeline model through the register interface, and after receiving information indicating that the rendering task has been cached in the graphics rendering pipeline model through the register interface, continue to obtain the next instruction through the high-speed peripheral component interconnect interface, wherein the task amount corresponding to the heavy task type is greater than the task amount corresponding to the light task type, the task amount corresponding to the heavy task type is greater than a threshold, and the task amount of the light task type is less than a threshold.

8. A graphics processor simulation model, characterized in that: It includes the firmware simulation model as described in claim 7, as well as a graphics rendering pipeline model, a register model, and a memory model.

9. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the method described in any one of claims 1 to 6 when executing the instructions stored in the memory.

10. A non-volatile computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Model reasoning method and device based on graphic rendering pipeline and storage medium

    CN112348732A

  • Remote image rendering method and device, electronic equipment and medium

    CN114077508A

  • Rendering method and device based on liquid level, equipment, medium and program product

    CN114092621A

  • Cross-platform simulation system suitable for multiple graphic interfaces

    CN115983047A

  • Self-tuning thread dispatch policy

    CN116302107A