Task queue design method, system, terminal and storage medium

By using the methods for writing task parameter files and queue files, and by generating relevant code and charts using configuration file processing scripts, errors caused by misunderstandings in hardware accelerator development were resolved, development efficiency and accuracy were improved, and a single source for verification and software development was achieved.

CN115686622BActive Publication Date: 2026-11-24SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211318779.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-26
Publication Date
2026-11-24
Estimated Expiration
2042-10-26

AI Technical Summary

Technical Problem

In existing technologies, the process of defining task parameters and task lists for hardware accelerators is prone to errors, resulting in low development efficiency and slow synchronization during architecture adjustments, making it difficult to achieve a single source for verification and software development.

Method used

By employing a task parameter file and task queue file writing method, and generating ralf files, JSON schema files, static configuration functions, and dynamic configuration functions through configuration file processing scripts, the system achieves automatic completion and syntax checking of the task queue, reducing errors caused by misunderstandings and improving development efficiency.

Benefits of technology

This improved development efficiency during the task queue design process for hardware accelerators, reduced bugs caused by misunderstandings, ensured a single source for verification and software development, and improved the efficiency and accuracy of chip development.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115686622B_ABST
    Figure CN115686622B_ABST
Patent Text Reader

Abstract

This invention relates to the field of computer technology, specifically to a task queue design method, system, terminal, and storage medium. The method involves writing task parameter files; using a configuration file processing script to process all task parameter files, generating ralf files, C / C++ code files, and JSON schema files; writing task queue files; using the configuration file processing script to process the task queue files, generating static configuration functions, dynamic configuration functions, and flowcharts for the task queues. This invention avoids bugs caused by misunderstandings and improves development efficiency. When the architecture is adjusted, the code and model can be updated using tools, further improving chip development efficiency. It also achieves a single source for verification and software development data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a task queue design method, system, terminal, and storage medium. Background Technology

[0002] With the continuous development of technologies such as artificial intelligence, big data, and the internet, the amount of data is exponentially increasing, and the demand for computing power for data processing is growing rapidly. The computing power of general-purpose CPUs can no longer meet the ever-increasing demand for data processing. Various accelerators are used to accelerate specific business processes, thereby improving system computing power and reducing costs. The most typical example is deep learning accelerators. Whether using GPUs, FPGAs, or various NPUs, they can increase the system's computing power several times compared to a pure CPU solution.

[0003] Domain-specific hardware accelerators are designed for a specific business domain. These business domains often include multiple user scenarios, and the hardware accelerator needs to implement different functions in each scenario. The required functions are broken down into combinations of various independent sub-processes, and each sub-process is designed with a dedicated hardware acceleration module, called a sub-engine.

[0004] Sub-engines can be reused across different user scenarios, and their positions and task parameters in the data processing flow differ in different user scenarios.

[0005] Define the parameters required by each sub-engine to process tasks as task parameters. Arrange the task parameters of the sub-engines required to process user scenarios into a task list in order.

[0006] The task scheduler retrieves the task parameters from the task list in sequence and sends them to the sub-engine according to the type of the task parameter, so that the sub-engine can complete the corresponding sub-task.

[0007] The traditional task parameter and task list definitions mentioned above are generally defined by the chip architecture based on the business domain design. Then, verification and software development teams implement SV&UVM and C / C++ code respectively based on the architecture definition. Furthermore, the task list assembly process often requires software development to write relevant processing logic based on an understanding of the architecture definition. This approach has the following significant drawbacks:

[0008] 1) Prone to errors. Because verification and software development require separate understanding of the architecture definition and development of different code, misunderstandings and errors may lead to different output results in design, verification and software. Moreover, the cost of multiple verification and error checking is relatively high.

[0009] 2) Low efficiency: The definition of task lists often involves a lot of logical processing and judgment. This requires developers to generate corresponding task lists according to different logic based on different user scenarios. The amount of logical processing is large and the development efficiency is low. Moreover, it is necessary to design relevant verification models for each scenario and perform verification.

[0010] 3) Slow synchronization: When the architecture needs adjustment, it involves updates to design, verification, and software. Each department needs to redefine and modify or redevelop related code and models. This can easily lead to inconsistencies between design, verification, and software status. Summary of the Invention

[0011] To address the technical problems existing in the prior art, this invention provides a task queue design method, system, terminal, and storage medium. The sub-engine task queue design for a hardware accelerator customized for the aforementioned fields avoids bugs caused by misunderstandings and improves development efficiency. When the architecture is adjusted, tools can be used to update code and models, further enhancing chip development efficiency. A single source for verification and software development data is achieved.

[0012] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:

[0013] In a first aspect, in one embodiment of the present invention, a task queue design method is provided, the method comprising the following steps:

[0014] Task parameter file writing;

[0015] The configuration file processing script processes all task parameter files and generates ralf files, C / C++ code files, and JSON schema files.

[0016] Task queue file writing;

[0017] The configuration file processing script processes the task queue file, generating static configuration functions, dynamic configuration functions, and flowcharts for the task queue.

[0018] As a further aspect of the present invention, the task parameter file writing includes:

[0019] The architecture breaks down tasks based on business needs, analyzes and abstracts the required sub-engines, determines the parameter list required by the sub-engines, defines parameter names, parameter widths, and parameter types, and fills the parameter information into the first worksheet of the task parameter file according to the rules of the task parameter description document.

[0020] Analyze the sub-engines one by one to obtain their usage, and determine the static and dynamic parameters based on the different usages; fill the usages into the second worksheet of the task parameter file according to the rules of the task parameter description document.

[0021] As a further aspect of the present invention, the task queue file writing includes:

[0022] Abstract the tasks of business logic into a collection of sub-engines;

[0023] Define the usage, location, and process of the sub-engines required in the task;

[0024] According to the task queue file writing rules, fill in the usage, location and process of the sub-engine into the task queue file. JSON schema can be imported when writing the task queue file.

[0025] Secondly, in another embodiment provided by the present invention, a task queue design system is provided, the system comprising:

[0026] Configuration files and configuration file processing scripts;

[0027] The configuration file is used to describe the task parameters and usage of the sub-engine, and to describe the position, process and usage of the sub-engine in the task queue.

[0028] The configuration file processing script is used to convert configuration files into SV&UVM and C / C++ code; and to convert configuration files into charts.

[0029] As a further aspect of the present invention, the configuration file includes a task parameter file and a task queue file;

[0030] The task parameter file is used to describe the task parameters of the sub-engine and the usage of the sub-engine;

[0031] The task queue file is used to describe the position, process, and usage of the sub-engine in the task queue.

[0032] As a further aspect of the present invention, the task parameter file corresponds one-to-one with the sub-engine, and the file uses Excel format, including a first worksheet and a second worksheet; the first worksheet is used to describe the structural information of the task parameters, including the sub-engine name, parameter name, parameter attribute, and parameter width; the second worksheet describes various uses of the sub-engine, as well as the parameters corresponding to the uses of the sub-engine.

[0033] As a further aspect of the present invention, the task queue file is used to describe the location, usage, and task flow of the sub-engine. The file uses JSON format and specifies multiple JSON objects.

[0034] As a further aspect of the present invention, the plurality of JSON objects include:

[0035] 1) root object: Each task queue file has one and only one root object. The value of the root object represents some descriptive information about the task queue.

[0036] 2) Sub-engine usage object, the value of which includes the sub-engine name and the sub-engine usage name.

[0037] 3) Flow control objects include four types: sequential, branching, looping, and parallel. Each type of flow control object contains an array element. The values ​​in the array can be sub-engine usage objects or flow control objects. The flow properties of the values ​​in the array inherit the properties of their parent objects.

[0038] Thirdly, in another embodiment provided by the present invention, a terminal is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor loads and executes the computer program to implement the steps of the task queue design method.

[0039] Fourthly, in another embodiment provided by the present invention, a storage medium is provided storing a computer program, which, when loaded and executed by a processor, implements the steps of the task queue design method.

[0040] The technical solution provided by this invention has the following beneficial effects:

[0041] This invention provides a task queue design method, system, terminal, and storage medium. The method includes the following steps: writing task parameter files; processing all task parameter files using a configuration file processing script to generate ralf files, C / C++ code files, and JSON schema files; writing task queue files; and processing the task queue files using the configuration file processing script to generate static configuration functions, dynamic configuration functions, and flowcharts for the task queues. This invention avoids bugs caused by misunderstandings and improves development efficiency. When the architecture is adjusted, the code and models can be updated using tools, further improving chip development efficiency. It also achieves a single source for verification and software development data.

[0042] These or other aspects of the invention will become more apparent from the following description of embodiments. It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only, and are not intended to limit the invention. Attached Figure Description

[0043] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other embodiments can be obtained based on these drawings without creative effort.

[0044] Figure 1 A flowchart illustrating a task queue design method according to an embodiment of the present invention;

[0045] Figure 2 This is a schematic diagram of a task queue design system conversion according to an embodiment of the present invention;

[0046] Figure 3 This is a flowchart of a task parameter file in a task queue design system according to an embodiment of the present invention;

[0047] Figure 4 This is a flowchart of a task queue file in a task queue design system according to an embodiment of the present invention;

[0048] Figure 5 This is a schematic diagram of the structure of a terminal according to an embodiment of the present invention.

[0049] In the diagram: Processor-501, Communication Interface-502, Memory-503, Communication Bus-504. Detailed Implementation

[0050] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0051] The flowchart shown in the attached diagram is for illustrative purposes only and does not necessarily include all content and operations / steps, nor does it necessarily have to be performed in the order described. For example, some operations / steps can be broken down, combined, or partially merged, so the actual execution order may change depending on the actual situation.

[0052] It should be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.

[0053] Specifically, the embodiments of the present invention will be further described below with reference to the accompanying drawings.

[0054] Please see Figure 1 , Figure 1 This is a flowchart of a task queue design method provided in an embodiment of the present invention, such as... Figure 1 As shown, the task queue design method includes steps S10 to S40.

[0055] S10, Task parameter file writing.

[0056] In an embodiment of the present invention, the task parameter file writing includes:

[0057] The architecture breaks down tasks based on business logic, analyzes and abstracts the required sub-engines, determines the parameter list required by the sub-engines, defines parameter names, parameter widths, and parameter types, and fills the parameter information into the first worksheet of the task parameter file according to the rules of the task parameter description document.

[0058] Analyze each sub-engine sequentially to obtain its usage, and determine the static and dynamic parameters based on different usages. Fill the usage details into the second worksheet of the task parameter file according to the rules in the task parameter description document.

[0059] S20. Use the configuration file processing script to process all task parameter files and generate ralf files, C / C++ code files, and JSON schema files.

[0060] The generated code can be used for validation and software development. The JSON schema file can be used for auto-completion and syntax checking when writing task queue files.

[0061] S30, Writing the Task Queue File.

[0062] In an embodiment of the present invention, the task queue file writing includes:

[0063] Abstract the tasks of business logic into a collection of sub-engines. Define the usage, location, and process of the sub-engines required in the task. According to the task queue file writing rules, fill in the usage, location, and process of the sub-engines into the task queue file. When writing the task queue file, you can import a JSON schema to provide auto-completion and syntax checking functions.

[0064] S40. Use the configuration file processing script to process the task queue file and generate the task queue static configuration function, the task queue dynamic configuration function, and the task queue flowchart.

[0065] The static and dynamic configuration functions for the task queue can be used for software and verification development, while the task queue flowchart can be used for writing related documentation.

[0066] This invention converts task parameter files and task queue files into RTL, SV&UVM, C / C++ code, and related diagrams using tools, reducing the probability of errors during chip development and improving development efficiency.

[0067] It should be understood that although the above description follows a certain order, these steps are not necessarily executed in that order. Unless otherwise expressly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, some steps in this embodiment may include multiple steps or multiple stages, which are not necessarily completed at the same time, but may be executed at different times. The execution order of these steps or stages is not necessarily sequential, but may be performed alternately or in turn with other steps or at least a portion of the steps or stages in other steps.

[0068] In one embodiment, see Figure 3 As shown, an embodiment of the present invention also provides a task queue design system, which includes a configuration file and a configuration file processing script;

[0069] The configuration file is used to describe the task parameters and usage of the sub-engine, as well as the sub-engine's position, process, and usage in the task queue.

[0070] In this embodiment of the invention, the configuration file includes a task parameter file and a task queue file.

[0071] The task parameter file is used to describe the task parameters of the sub-engine and the usage of the sub-engine.

[0072] The task parameter file corresponds one-to-one with the sub-engine. The file uses Excel format and contains a first worksheet and a second worksheet. The first worksheet describes the structural information of the task parameters, including the sub-engine name, parameter name, parameter attribute, and parameter width. The second worksheet describes the various uses of the sub-engine and the parameters corresponding to the sub-engine uses. Parameters with fixed values ​​are called static parameters, and parameters marked with the word "Dynamic" are dynamic parameters that need to be updated at runtime.

[0073] The task queue file is used to describe the position, process, and usage of the sub-engine in the task queue.

[0074] The task queue file describes the location, usage, and task flow of the sub-engines, and is in JSON format. The task queue file specifies multiple JSON objects.

[0075] In this embodiment of the invention, the plurality of JSON objects include:

[0076] 1) root object: Each task queue file has one and only one root object. The value of the root object represents some descriptive information about the task queue.

[0077] 2) Sub-engine usage object, the value of which includes the sub-engine name and the sub-engine usage name.

[0078] 3) Flow control objects include four types: sequential, branching, looping, and parallel. Each type of flow control object contains an array element. The values ​​in the array can be sub-engine usage objects or flow control objects. The flow properties of the values ​​in the array inherit the properties of their parent objects.

[0079] The configuration file processing script is used to convert configuration files into SV&UVM and C / C++ code for development and verification; and to convert configuration files into diagrams for the development of chip documentation.

[0080] In this embodiment of the invention, the configuration file processing script includes a code generation tool and a document generation tool.

[0081] The code generation tool is used to convert configuration files into SV&UVM and C / C++ code, which facilitates development and verification.

[0082] The document generation tool is used to convert configuration files into diagrams, which facilitates the development of chip documentation.

[0083] In this embodiment of the invention, the tool script processes the task parameter file, including the following steps:

[0084] Step 1: Generate a ralf file. The ralf file can be converted into an SV&UVM model using a script. In this model, the sub-engine name is converted into a block name. A register is generated for every 32-bit parameter. Each parameter item is described by a field, and the parameter name is the field name. The parameter type and parameter bit width are converted into field attributes.

[0085] Step 2: Generate C / C++ files, where sub-engine names are converted to structure names, parameter names to structure member variable names, parameter attributes to structure member variable types, and parameter bit widths to structure bit fields. Each sub-engine usage corresponds to two C / C++ functions: a static configuration function, used to initialize the parameters for each usage; and a dynamic configuration function, whose content needs to be manually written, used to calculate runtime-related parameter values. All task parameter files are converted into lookup tables, associating usages with the static and dynamic configuration functions.

[0086] Step 3: Generate a JSON schema. Parse all task parameter files to obtain the sub-engine name and usage name, associate the sub-engine name with the usage name, and generate a JSON schema file. The JSON schema file is used to write the task queue file, providing it with auto-completion and syntax checking functions.

[0087] The tool script processes the task queue file, including the following steps:

[0088] Step 1: Generate the task queue static configuration function. Obtain the task queue name from the root object and convert it into the task queue static configuration function name. Convert the flow control object into C / C++ flow control statements and convert the sub-engine usage object into statements that call the corresponding sub-engine static configuration function.

[0089] Step 2: Generate the task queue dynamic configuration function. Obtain the task queue name from the root object, convert it into the task queue dynamic configuration function name, and convert the sub-engine usage object into a statement that calls the corresponding sub-engine dynamic configuration function.

[0090] Step 3: Generate the task queue flowchart. Obtain the task queue name from the root object and convert it into a flowchart name. Convert the flow control object into the relevant flow structure in the flowchart and convert the sub-engine usage object into a flow object.

[0091] This invention converts task parameter files and task queue files into RTL, SV&UVM, C / C++ code, and related diagrams using tools, reducing the probability of errors during chip development and improving development efficiency.

[0092] In one embodiment, see Figure 5 As shown, an embodiment of the present invention also provides a terminal, including a processor 501, a communication interface 502, a memory 503 and a communication bus 504, wherein the processor 501, the communication interface 502 and the memory 503 communicate with each other through the communication bus 504.

[0093] Memory 503 is used to store computer programs;

[0094] When processor 501 executes the computer program stored in memory 503, it executes the task queue design method described above. When executing instructions, the processor implements the steps in the above method embodiment:

[0095] S10, Task parameter file writing.

[0096] In an embodiment of the present invention, the task parameter file writing includes:

[0097] The architecture breaks down tasks based on business logic, analyzes and abstracts the required sub-engines, determines the parameter list required by the sub-engines, defines parameter names, parameter widths, and parameter types, and fills the parameter information into the first worksheet of the task parameter file according to the rules of the task parameter description document.

[0098] Analyze each sub-engine sequentially to obtain its usage, and determine the static and dynamic parameters based on different usages. Fill the usage details into the second worksheet of the task parameter file according to the rules in the task parameter description document.

[0099] S20. Use the configuration file processing script to process all task parameter files and generate ralf files, C / C++ code files, and JSON schema files.

[0100] The generated code can be used for validation and software development. The JSON schema file can be used for auto-completion and syntax checking when writing task queue files.

[0101] S30, Writing the Task Queue File.

[0102] In an embodiment of the present invention, the task queue file writing includes:

[0103] Abstract the tasks of business logic into a collection of sub-engines. Define the usage, location, and process of the sub-engines required in the task. According to the task queue file writing rules, fill in the usage, location, and process of the sub-engines into the task queue file. When writing the task queue file, you can import a JSON schema to provide auto-completion and syntax checking functions.

[0104] S40. Use the configuration file processing script to process the task queue file and generate the task queue static configuration function, the task queue dynamic configuration function, and the task queue flowchart.

[0105] The static and dynamic configuration functions for the task queue can be used for software and verification development, while the task queue flowchart can be used for writing related documentation.

[0106] This invention converts task parameter files and task queue files into RTL, SV&UVM, C / C++ code, and related diagrams using tools, reducing the probability of errors during chip development and improving development efficiency.

[0107] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in the diagram, but this does not mean that there is only one bus or one type of bus.

[0108] The communication interface is used for communication between the aforementioned terminal and other devices.

[0109] The memory may include random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.

[0110] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0111] The terminal includes user equipment and network equipment. The user equipment includes, but is not limited to, computers, smartphones, and PDAs. The network equipment includes, but is not limited to, a single network server, a server group consisting of multiple network servers, or a cloud based on cloud computing, which is a type of distributed computing consisting of a super virtual computer composed of a group of loosely coupled computers. The terminal can operate independently to implement this invention, or it can connect to a network and interact with other terminals on the network to implement this invention. The network in which the terminal is located includes, but is not limited to, the Internet, wide area network (WAN), metropolitan area network (MAN), local area network (LAN), and VPN network.

[0112] The terminal includes user equipment and network equipment. The user equipment includes, but is not limited to, computers, smartphones, and PDAs. The network equipment includes, but is not limited to, a single network server, a server group consisting of multiple network servers, or a cloud based on cloud computing, which is a type of distributed computing consisting of a super virtual computer composed of a group of loosely coupled computers. The terminal can operate independently to implement this invention, or it can connect to a network and interact with other terminals on the network to implement this invention. The network in which the terminal is located includes, but is not limited to, the Internet, wide area network (WAN), metropolitan area network (MAN), local area network (LAN), and VPN network.

[0113] It should also be understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0114] In one embodiment of the present invention, a storage medium is also provided, on which a computer program is stored, which, when executed by a processor, implements the steps in the above-described method embodiments:

[0115] S10, Task parameter file writing.

[0116] In an embodiment of the present invention, the task parameter file writing includes:

[0117] The architecture breaks down tasks based on business logic, analyzes and abstracts the required sub-engines, determines the parameter list required by the sub-engines, defines parameter names, parameter widths, and parameter types, and fills the parameter information into the first worksheet of the task parameter file according to the rules of the task parameter description document.

[0118] Analyze each sub-engine sequentially to obtain its usage, and determine the static and dynamic parameters based on different usages. Fill the usage details into the second worksheet of the task parameter file according to the rules in the task parameter description document.

[0119] S20. Use the configuration file processing script to process all task parameter files and generate ralf files, C / C++ code files, and JSON schema files.

[0120] The generated code can be used for validation and software development. The JSON schema file can be used for auto-completion and syntax checking when writing task queue files.

[0121] S30, Writing the Task Queue File.

[0122] In an embodiment of the present invention, the task queue file writing includes:

[0123] Abstract the tasks of business logic into a collection of sub-engines. Define the usage, location, and process of the sub-engines required in the task. According to the task queue file writing rules, fill in the usage, location, and process of the sub-engines into the task queue file. When writing the task queue file, you can import a JSON schema to provide auto-completion and syntax checking functions.

[0124] S40. Use the configuration file processing script to process the task queue file and generate the task queue static configuration function, the task queue dynamic configuration function, and the task queue flowchart.

[0125] The static and dynamic configuration functions for the task queue can be used for software and verification development, while the task queue flowchart can be used for writing related documentation.

[0126] This invention converts task parameter files and task queue files into RTL, SV&UVM, C / C++ code, and related diagrams using tools, reducing the probability of errors during chip development and improving development efficiency.

[0127] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Furthermore, any references to memory, storage, databases, or other media used in the embodiments provided by this invention can include at least one of non-volatile and volatile memory.

[0128] It should be understood that, as used herein, the singular form "a" is intended to include the plural form as well, unless the context clearly supports an exception. It should also be understood that, as used herein, "and / or" refers to any and all possible combinations of one or more of the associatedly listed items. The embodiment numbers disclosed above are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0129] Those skilled in the art should understand that the discussion of any of the above embodiments is merely exemplary and is not intended to imply that the scope of the invention (including the claims) is limited to these examples. Within the framework of the invention, technical features of the above embodiments or different embodiments can be combined, and many other variations of different aspects of the invention exist, which are not provided in the details for the sake of brevity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the invention should be included within the protection scope of the invention.

Claims

1. A method for designing a task queue, characterized by, The method includes: Write the task parameter file; The configuration file processing script processes the task parameter file to generate a ralf file, a C / C++ code file, and a JSON schema file. Write the task queue file; The configuration file processing script processes the task queue file to generate static configuration functions, dynamic configuration functions, and a flowchart for the task queue. The task parameter file writing process includes: breaking down tasks according to business logic, analyzing and abstracting the required sub-engines, determining the parameter list required by the sub-engines, defining parameter names, parameter widths, and parameter types; filling the parameter information into the first worksheet of the task parameter file according to the rules of the task parameter description document; analyzing the sub-engines sequentially to obtain their usage, determining static and dynamic parameters based on different usages; and filling the usage into the second worksheet of the task parameter file according to the rules of the task parameter description document. The task queue file writing process includes: abstracting the tasks of business breakdown into a collection of sub-engines; defining the usage, location, and process of the sub-engines required in the task; and filling the usage, location, and process of the sub-engines into the task queue file according to the task queue file writing rules. JSON schema can be imported when writing the task queue file.

2. A task queue design system, characterized by, The system includes: configuration files and configuration file processing scripts; The configuration file is used to describe the task parameters and usage of the sub-engine, and to describe the position, process and usage of the sub-engine in the task queue. The configuration file processing script is used to convert configuration files into SV&UVM and C / C++ code; and to convert configuration files into charts. The configuration file includes a task parameter file and a task queue file; the task parameter file is used to describe the task parameters of the sub-engine and the usage of the sub-engine; the task queue file is used to describe the position, process, and usage of the sub-engine in the task queue. The task parameter file corresponds one-to-one with the sub-engine. The file uses Excel format and contains a first worksheet and a second worksheet. The first worksheet describes the structural information of the task parameters, including the sub-engine name, parameter name, parameter attribute, and parameter width. The second worksheet describes the various uses of the sub-engine and the parameters corresponding to the uses of the sub-engine.

3. The task queue design system as described in claim 2, characterized in that, The task queue file is used to describe the location, usage, and task flow of the sub-engine. The file uses JSON format and specifies multiple JSON objects.

4. The task queue design system as described in claim 3, characterized in that, The plurality of the JSON objects include: The root object is unique to each task queue file. The value of the root object represents some descriptive information about the task queue. A sub-engine usage object, the value of which includes the sub-engine name and the sub-engine usage name; Flow control objects include four types: sequential, branching, looping, and parallel. Each type of flow control object contains an array element. The values ​​in the array are either child engine usage objects or flow control objects. The flow properties of the values ​​in the array are inherited from the properties of their parent objects.

5. A terminal, comprising a memory and a processor, the memory storing a computer program, wherein the processor loads and executes the computer program to implement the steps of the task queue design method as described in claim 1.

6. A storage medium storing a computer program, which, when loaded and executed by a processor, implements the steps of the task queue design method as described in claim 1.

Citation Information

Patent Citations

  • Media processing system capable of arranging process

    CN112751856A

  • Self-adaptive task scheduling method and device for distributed rule engine and electronic equipment

    CN114327807A