Task processing method and device, and electronic device
By receiving configuration instructions and determining task dependencies, the FPGA design process is executed automatically, solving the problem of low efficiency of manual operation in existing technologies and achieving efficient FPGA configuration.
Patent Information
- Application Number
- CN202611622555.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-20
- Publication Date
- 2026-11-20
AI Technical Summary
In current FPGA design processes, the configuration process is complex and relies on manual operation, resulting in low efficiency.
By receiving configuration instructions, the tasks of the target device and their dependencies are determined, and the tasks are executed sequentially to generate configuration results, reducing manual intervention.
It enables the automatic generation of FPGA configuration results without manual operation, thus improving configuration efficiency.
Smart Images

Figure CN123137939A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of electronic circuits, and more specifically, to a task processing method, apparatus, and electronic device. Background Technology
[0002] As the integration scale and configuration complexity of Field Programmable Gate Array (FPGA) devices continue to increase, FPGA design has gradually evolved into a complex configuration process that includes multiple stages such as configuration source file management, device and engineering parameter configuration, intellectual property (IP) core integration, timing constraint configuration, logic synthesis, placement and routing, timing analysis, configuration result generation, and configuration result verification, in order to configure a logic function for the target device.
[0003] In related technologies, FPGA design engineering configuration is typically performed through the graphical interface of Electronic Design Automation (EDA) tools. Designers first use EDA tools to select the target device and create a configuration project file for it. Then, they add configuration source files, constraint files, and IP cores to the project file in sequence. Next, they configure synthesis, implementation, and output parameters. Finally, following the configuration process, they execute synthesis, placement and routing, and bitstream generation sequentially to generate a binary file capable of implementing the corresponding logic functions for the target device.
[0004] This shows that most of the FPGA design work needs to be done manually, which makes the FPGA design efficiency low. Summary of the Invention
[0005] The purpose of this disclosure is to provide a task processing method, apparatus, and electronic device, which can at least to some extent overcome the defects of the related technologies and improve the configuration efficiency of configuring preset logic functions for target devices.
[0006] Other features and advantages of this disclosure will become apparent from the following detailed description, or may be learned in part from practice of this disclosure.
[0007] According to a first aspect of this disclosure, a task processing method is provided, the task processing method comprising: Receive a configuration instruction, the configuration instruction including target configuration information related to the target device, the target configuration information being used to configure preset logic functions for the target device; In response to the configuration instruction, based on the target configuration information, at least one task and the dependencies between the at least one task are determined, and each task corresponds to a different task stage for configuring a preset logic function for the target device; Based on the aforementioned dependencies, at least one task is executed sequentially to obtain a configuration result that configures a preset logic function for the target device.
[0008] According to a second aspect of this disclosure, a task processing apparatus is provided, the apparatus comprising: An acquisition module is used to receive configuration instructions, the configuration instructions including target configuration information related to the target device, the target configuration information being used to configure preset logic functions for the target device; The determination module is configured to, in response to the configuration instruction, determine at least one task and the dependencies between the at least one task based on the target configuration information, wherein each task corresponds to a different task stage for configuring a preset logic function for the target device; An execution module is used to execute at least one task sequentially based on the dependencies, and obtain a configuration result for configuring preset logic functions for the target device.
[0009] According to a third aspect of this disclosure, an electronic device is provided, including a processor and a memory for storing processor-executable instructions; wherein the processor is configured to implement the steps of the method described in the first aspect via executing the executable instructions.
[0010] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, wherein when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the task processing method described in the first aspect.
[0011] According to a fifth aspect of the present disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements the task processing method as described in the first aspect.
[0012] The task processing method in the exemplary embodiments of this disclosure receives a configuration instruction, which includes target configuration information related to a target device. The target configuration information is used to configure preset logical functions for the target device. Based on the target configuration information, at least one task and the dependencies between the at least one task are determined, with each task corresponding to a different task stage for configuring preset logical functions for the target device. Based on the dependencies, at least one task is executed sequentially to obtain a configuration result for configuring preset logical functions for the target device. Thus, by receiving a configuration instruction and determining at least one task and the dependencies between the at least one task at different task stages for configuring preset logical functions for the target device based on the target configuration information related to the target device, the electronic device can execute at least one task sequentially based on the dependencies to obtain a configuration result for configuring preset logical functions for the target device. This eliminates the need for extensive operator intervention and allows the electronic device to automatically generate the configuration result, significantly improving configuration efficiency.
[0013] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0014] The above and other objects, features, and advantages of this disclosure will become readily apparent from the following detailed description of exemplary embodiments, taken in conjunction with the accompanying drawings. Several embodiments of this disclosure are illustrated in the drawings by way of example and not limitation.
[0015] Figure 1 A first flowchart of a task processing method according to an exemplary embodiment of the present disclosure is shown.
[0016] Figure 2 A second flowchart of a task processing method according to an exemplary embodiment of the present disclosure is shown.
[0017] Figure 3 A structural diagram of an FPGA design flow automatic orchestration system according to an exemplary embodiment of the present disclosure is shown.
[0018] Figure 4 A schematic diagram of an FPGA design flow according to an exemplary embodiment of the present disclosure is shown.
[0019] Figure 5 A schematic diagram of resource scheduling management in an FPGA design process according to an exemplary embodiment of the present disclosure is shown.
[0020] Figure 6 A schematic diagram of a task exception handling process according to an exemplary embodiment of the present disclosure is shown.
[0021] Figure 7 A schematic diagram of the structure of a task processing apparatus according to an exemplary embodiment of the present disclosure is shown.
[0022] Figure 8 A schematic diagram of the structure of an electronic device according to an exemplary embodiment of the present disclosure is shown.
[0023] In the accompanying drawings, the same or corresponding reference numerals indicate the same or corresponding parts. Detailed Implementation
[0024] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be more comprehensive and complete, and will fully convey the concept of exemplary embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar structures, and therefore their detailed description will be omitted.
[0025] Furthermore, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Numerous specific details are provided in the following description to give a thorough understanding of embodiments of this disclosure. However, those skilled in the art will recognize that the technical solutions of this disclosure can be practiced without one or more of the specific details described, or other methods, components, apparatuses, steps, etc., can be employed. In other instances, well-known structures, methods, apparatuses, implementations, or operations are not shown or described in detail to avoid obscuring various aspects of this disclosure.
[0026] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, or in one or more software-hardened modules, or in different network and / or processor devices and / or microcontroller devices.
[0027] refer to Figure 1 The diagram shows a flowchart of a task processing method according to an exemplary embodiment of this disclosure, which can be applied to an electronic device. Figure 1 As shown, the task processing method may include the following steps 101 to 103: Step 101: The electronic device receives the configuration command.
[0028] In some embodiments of this disclosure, the configuration instructions can be user-initiated instructions to configure preset logic functions for a target device, and the configuration instructions can include target configuration information related to the target device.
[0029] In some embodiments of this disclosure, the target configuration information described above is used to configure preset logic functions for the target device described above.
[0030] In some embodiments of this disclosure, the target device described above may be a programmable logic device.
[0031] In some embodiments of this disclosure, the target configuration information includes the device parameters of the target device and at least one of the following: The above-mentioned preset logical function's function identification information, the above-mentioned preset logical function's corresponding configuration source file, the above-mentioned preset logical function's corresponding constraint file, the above-mentioned preset logical function's corresponding configuration strategy information, and the first instruction information; The first instruction information is used to instruct at least one of the following: generating a checkpoint during the process of configuring the preset logic function for the target device, generating a report during the process of configuring the preset logic function for the target device, and generating an operation log during the process of configuring the preset logic function for the target device.
[0032] In some embodiments of this disclosure, the aforementioned functional identification information may include the function name information of the aforementioned preset logical function. For example, the aforementioned preset logical function may be an Ethernet interface and a Joint Test Action Group (JTAG) interface, etc., which can be determined according to actual needs, and this embodiment does not impose specific limitations here.
[0033] In some embodiments of this disclosure, the configuration source file may be a file that describes the hardware description language source file constituting the configuration of the preset logical function and its organizational relationship.
[0034] In some embodiments of this disclosure, the constraint file may be a constraint file that describes the configuration timing, pins, and other configuration constraints of the preset logic function.
[0035] In some embodiments of this disclosure, the target configuration information may directly include the configuration source file and the constraint file, or it may indirectly include the configuration source file and the constraint file.
[0036] In some embodiments of this disclosure, the above-mentioned target configuration information indirectly includes the above-mentioned configuration source file and the above-mentioned constraint file. This can be understood as follows: the above-mentioned configuration source file and the above-mentioned constraint file are encapsulated in an integrated IP resource core, and the above-mentioned target configuration information may include the IP resource core.
[0037] In some embodiments of this disclosure, the configuration strategy information may include at least one of the comprehensive strategy information of the preset logical function and the implementation strategy information of the preset logical function.
[0038] In some embodiments of this disclosure, the checkpoints may include databases, intermediate configuration results, configuration status information, or other information that can support the continued execution of subsequent tasks, indicating different task stages for configuring preset logic functions of the target device. The specific checkpoints can be determined according to actual needs, and no specific limitations are imposed here.
[0039] Step 102: In response to the configuration command, the electronic device determines at least one task and the dependencies between at least one task based on the target configuration information.
[0040] In some embodiments of this disclosure, each task corresponds to a different task stage for configuring preset logic functions for the target device described above.
[0041] In some embodiments of this disclosure, combined with Figure 1 ,like Figure 2 As shown, the step 102 above, "determining at least one task and the dependencies between at least one task based on the target configuration information," can be achieved through the following steps 102a1 to 102a5: Step 102a1: The electronic device determines the configuration initialization task based on the device parameters of the target device and the function identification information of the preset logic function.
[0042] In some embodiments of this disclosure, the configuration initialization task is used to initialize the configuration tool, and the configuration tool is used to configure the preset logic function for the target device.
[0043] In some embodiments of this disclosure, the configuration tool described above can be an EDA tool.
[0044] In some embodiments of this disclosure, after the electronic device obtains the device parameters and the function identification information, it can determine that the device parameters and the function identification information are used to create a configuration project file for configuring the preset logic function for the target device. That is, the device parameters and the function identification information can be used to complete the initialization of the configuration tool. Then, the electronic device can determine the configuration initialization task based on the device parameters and the function identification information.
[0045] Step 102a2: The electronic device determines the resource configuration task based on the configuration source file and the constraint file.
[0046] In some embodiments of this disclosure, the resource configuration task described above is used to configure a reference configuration file for the configuration tool described above.
[0047] In some embodiments of this disclosure, the reference configuration file may include the above-described configuration source file and constraint file, or the above-described IP resource core.
[0048] In some embodiments of this disclosure, after the electronic device obtains at least one of the configuration source file, the constraint file, and the IP resource core, it can determine that the configuration source file and the constraint file, or the IP resource core, are reference configuration files required by the configuration tool to configure the preset logic function for the target device. That is, the electronic device can determine that the configuration tool needs to add the configuration source file and the constraint file, or the IP resource core, to the configuration project file as a reference configuration file required to configure the preset logic function for the target device. Then, the electronic device can determine the resource configuration task based on the configuration source file and the constraint file, or the IP resource core.
[0049] In some embodiments of this disclosure, the resource configuration task described above depends on the configuration initialization task described above.
[0050] In some embodiments of this disclosure, since the above-mentioned reference configuration file can only be added to the above-mentioned configuration project file after the above-mentioned configuration project file is created, the electronic device can determine that the above-mentioned resource configuration task depends on the above-mentioned configuration initialization task.
[0051] Step 102a3: The electronic device determines the logical function configuration task based on the configuration source file, constraint file, and configuration strategy information.
[0052] In some embodiments of this disclosure, the above-mentioned logical function configuration task is used to generate the configuration result corresponding to the above-mentioned preset logical function.
[0053] In some embodiments of this disclosure, after the electronic device obtains the configuration source file, the constraint file, and the configuration strategy information, it can determine that the configuration tool can configure the preset logic function for the target device through the configuration source file, the constraint file, and the configuration strategy information, that is, generate the configuration result corresponding to the preset logic function. Therefore, the electronic device can determine the logic function configuration task based on the configuration source file, the constraint file, and the configuration strategy information.
[0054] In some embodiments of this disclosure, the above-described logical function configuration task depends on the above-described resource configuration task.
[0055] In some embodiments of this disclosure, since the configuration tool needs to configure the preset logic function for the target device through the reference configuration file, the electronic device can determine that the logic function configuration task depends on the resource configuration task.
[0056] Step 102a4: Configure the electronic device based on logical functions and determine the configuration result analysis task.
[0057] In some embodiments of this disclosure, the configuration result analysis task analyzes the configuration results.
[0058] In some embodiments of this disclosure, the electronic device can control the configuration tool to set checkpoints and generate logs and reports during the process of configuring preset logic functions for the target device based on the first instruction information.
[0059] In some embodiments of this disclosure, the above report may include at least one of a timing analysis report, a resource utilization report, an implementation status report, and a power consumption analysis report.
[0060] In some embodiments of this disclosure, the electronic device can analyze the configuration results based on the above checkpoints, logs, and reports to determine whether the configuration results are normal.
[0061] In some embodiments of this disclosure, the above configuration result analysis task depends on the above logical function configuration task.
[0062] In some embodiments of this disclosure, since the configuration tool can only analyze the configuration results after the configuration results are generated, the electronic device can determine the configuration result analysis task based on the logical function configuration task, and determine that the configuration result analysis task depends on the logical function configuration task.
[0063] Step 102a5: The electronic device determines the configuration result archiving task based on the first instruction information.
[0064] In some embodiments of this disclosure, the above-mentioned configuration result archiving task is used to archive the reports generated during the configuration process, the logs generated during the configuration process, and the above-mentioned configuration results.
[0065] In some embodiments of this disclosure, the above configuration result archiving task depends on the above configuration result analysis task.
[0066] In some embodiments of this disclosure, since the electronic device can archive the configuration results only after analyzing the configuration results based on the first indication information, the electronic device can determine the configuration result archiving task based on the first indication information.
[0067] Step 103: The electronic device executes at least one task sequentially based on the dependency relationship to obtain the configuration result of configuring the preset logic function for the target device.
[0068] In some embodiments of this disclosure, an electronic device can control the configuration tool to execute at least one of the above tasks in sequence based on the above dependencies, thereby obtaining a configuration result that configures a preset logic function for the target device.
[0069] In some embodiments of this disclosure, the configuration strategy information includes comprehensive strategy information and implementation strategy information; the logical function configuration task includes a logic synthesis subtask, a configuration implementation subtask, and a configuration result generation subtask; step 102a3 can be implemented through the following steps A1 to A3: Step A1: The electronic device determines the logic synthesis subtask based on the configuration source file, constraint file, and synthesis strategy information.
[0070] In some embodiments of this disclosure, the above-mentioned logic synthesis subtask is used to generate the comprehensive configuration result corresponding to the above-mentioned preset logic function.
[0071] In some embodiments of this disclosure, after the electronic device obtains the configuration source file, the constraint file, and the configuration strategy information, it can determine that the configuration tool can perform a comprehensive configuration operation corresponding to the preset logical function through the configuration source file, the constraint file, and the configuration strategy information, that is, generate a comprehensive configuration result corresponding to the preset logical function. Therefore, the electronic device can determine the logical synthesis sub-task based on the configuration source file, the constraint file, and the configuration strategy information.
[0072] In some embodiments of this disclosure, the above-described logic synthesis subtask may depend on the above-described resource configuration task.
[0073] In some embodiments of this disclosure, since the configuration tool needs to perform a comprehensive configuration operation corresponding to the preset logical function through the reference configuration file, the electronic device can determine that the logical comprehensive subtask depends on the resource configuration task.
[0074] Step A2: The electronic device determines the configuration implementation subtask based on the logic synthesis subtask and implementation strategy information.
[0075] In some embodiments of this disclosure, the above-described configuration implementation subtask is used to perform physical implementation operations on the above-described comprehensive configuration results.
[0076] In some embodiments of this disclosure, the above-mentioned physical implementation operations may include layout operations, routing operations, or other physical implementation operations, which can be determined according to actual needs. This embodiment does not impose specific limitations here.
[0077] In some embodiments of this disclosure, since the configuration tool needs the implementation strategy information to perform physical implementation operations on the comprehensive configuration results, the electronic device can determine the configuration implementation sub-task based on the logical synthesis sub-task and the implementation strategy information.
[0078] In some embodiments of this disclosure, the above configuration implementation subtask depends on the above logical synthesis subtask.
[0079] In some embodiments of this disclosure, since the configuration implementation subtask is used to perform physical implementation operations on the above-mentioned comprehensive configuration result, the configuration implementation subtask needs to rely on the task execution result of the above-mentioned logical synthesis subtask. Therefore, the electronic device can determine that the configuration implementation subtask depends on the above-mentioned logical synthesis subtask.
[0080] Step A3: The electronic device implements sub-tasks based on the configuration and generates sub-tasks based on the configuration results.
[0081] In some embodiments of this disclosure, the above-described configuration result generation subtask is used to generate the configuration result of a binary file based on the physical configuration result of the above-described comprehensive configuration result.
[0082] In some embodiments of this disclosure, the configuration result of the binary file can be the binary configuration result obtained after configuring the preset logic function for the target device.
[0083] In some embodiments of this disclosure, since the configuration tool needs the physical configuration result based on the comprehensive configuration result to generate the configuration result of the binary file, the electronic device can implement subtasks based on the configuration and determine the configuration result to generate subtasks.
[0084] In some embodiments of this disclosure, the subtasks generated by the above configuration result depend on the above configuration to implement the subtasks.
[0085] In some embodiments of this disclosure, since the electronic device needs to generate the configuration result of the binary file based on the physical configuration result of the above comprehensive configuration result, the above configuration result generation subtask needs to rely on the execution result of the above configuration implementation subtask. Therefore, the electronic device can determine that the above configuration result generation subtask depends on the above configuration implementation subtask.
[0086] In some embodiments of this disclosure, prior to step 103, the task processing method provided in this disclosure may further include step 104, and step 103 may be implemented through steps 103a1 to 103a3: Step 104: The electronic device sets the task status of at least one task to an inactive state.
[0087] In some embodiments of this disclosure, the aforementioned non-execution state may indicate that at least one of the aforementioned tasks has not been executed.
[0088] In some embodiments of this disclosure, since the electronic device does not perform at least one of the above tasks, the electronic device can set the task status of the at least one task to an unexecuted state.
[0089] In some embodiments of this disclosure, the task status of at least one of the above-mentioned tasks is set to an unexecuted state, and the electronic device can monitor the task status of the at least one of the above-mentioned tasks in real time.
[0090] Step 103a1: The electronic device executes the i-th task in at least one task and updates the task status of the i-th task from the unexecuted state to the executing state.
[0091] In some embodiments of this disclosure, i∈[1,N-1], N is a positive integer greater than 1, and N represents the number of at least one of the above tasks.
[0092] In some embodiments of this disclosure, the electronic device can perform the i-th task described above using the configuration tool described above.
[0093] In some embodiments of this disclosure, the above-mentioned execution status can indicate that the i-th task is being executed.
[0094] In some embodiments of this disclosure, since the electronic device starts executing the i-th task, the electronic device can update the task status of the i-th task from an unexecuted state to an executing state.
[0095] Step 103a2: After the electronic device completes the execution of the i-th task, it updates the task status of the i-th task from the executing state to the execution completed state.
[0096] In some embodiments of this disclosure, the above-mentioned execution completion status can represent the completion of the i-th task.
[0097] Step 103a3: If the electronic device determines that the task status of the i-th task is completed, it executes at least the (i+1)-th task and updates the task status of the (i+1)-th task from unexecuted to in-process.
[0098] In some embodiments of this disclosure, the (i+1)th task depends on the i-th task.
[0099] In some embodiments of this disclosure, the task status of the i-th task is an execution completed state, indicating that the i-th task has been completed. Therefore, the electronic device can continue to execute the (i+1)-th task that depends on the i-th task, and update the task status of the (i+1)-th task from the unexecuted state to the executing state.
[0100] In this way, electronic devices can uniformly manage the task status of each task stage and obtain the overall execution status of at least one task, thereby providing a basis for subsequent task scheduling and anomaly recovery, and thus ensuring that preset logic functions can be successfully configured for the target device.
[0101] The task processing method in the exemplary embodiments of this disclosure receives a configuration instruction, which includes target configuration information related to a target device. The target configuration information is used to configure preset logical functions for the target device. In response to the configuration instruction, based on the target configuration information, at least one task and the dependencies between the at least one task are determined, each task corresponding to a different task stage for configuring preset logical functions for the target device. Based on the dependencies, at least one task is executed sequentially to obtain a configuration result for configuring preset logical functions for the target device. Thus, by receiving a configuration instruction and determining at least one task and the dependencies between the at least one task at different task stages for configuring preset logical functions for the target device based on the target configuration information related to the target device, the electronic device can execute at least one task sequentially based on the dependencies to obtain a configuration result for configuring preset logical functions for the target device. This eliminates the need for extensive operator intervention and allows the electronic device to automatically generate the configuration result, significantly improving configuration efficiency.
[0102] In some embodiments of this disclosure, the above-mentioned task state further includes: execution failure state; the task processing method provided in the embodiments of this disclosure may further include the following steps 105 to 108: Step 105: If the (i+1)th task fails, the electronic device updates the task status of the (i+1)th task to the execution failure status.
[0103] In some embodiments of this disclosure, the above-mentioned execution failure status is used to indicate that the (i+1)th task has failed to execute.
[0104] Step 106: When the electronic device determines that the task status of the (i+1)th task has been updated to an execution failure status, it obtains the checkpoint information corresponding to the i-th task.
[0105] In some embodiments of this disclosure, the checkpoint information corresponding to the i-th task is used to restore the task result of the i-th task.
[0106] Step 107: The electronic device recovers the task result of the i-th task based on the checkpoint information.
[0107] In some embodiments of this disclosure, since the checkpoint information covers all information in the task phase process corresponding to the i-th task, the electronic device can recover the task result of the i-th task based on the checkpoint information.
[0108] Step 108: Based on the result of the i-th task, the electronic device re-executes the (i+1)-th task and updates the task status of the (i+1)-th task from the execution failure status to the execution status.
[0109] In some embodiments of this disclosure, if the task status of the (i+1)th task is updated to a failed execution status, the (i+1)th task needs to be re-executed. Therefore, the electronic device can re-execute the (i+1)th task based on the task result of the i-th task.
[0110] In some embodiments of this disclosure, after re-executing the (i+1)th task, the electronic device can update the task status of the (i+1)th task from the execution failure state to the execution in progress state.
[0111] In this way, when the electronic device fails to execute the task in the current task stage, it can obtain the checkpoint information corresponding to the previous task stage adjacent to the current task stage, and restore the task result corresponding to the previous task stage based on the checkpoint information. It can then continue to execute subsequent tasks starting from the current task stage based on the task result, thereby ensuring that the preset logic function can be successfully configured for the target device.
[0112] In some embodiments of this disclosure, the task processing method provided by this disclosure may further include the following steps 109 and 110: Step 109: The electronic device establishes the correspondence between the configuration artifacts generated in each task stage and the corresponding subtasks of that task stage.
[0113] In some embodiments of this disclosure, the above-described configuration artifact includes at least one of the following: The checkpoints, operation logs, reports, power consumption analysis results, and task execution results for each task phase are listed below.
[0114] In some embodiments of this disclosure, by establishing a correspondence between the configuration artifacts generated in each task stage and the subtasks corresponding to that task stage, the electronic device can quickly determine which task stage each set of configuration artifacts was generated in based on the correspondence.
[0115] Step 110: The electronic device establishes the association between the functional identification information of each task in at least one task and the preset logical function and the device parameters of the target device.
[0116] In some embodiments of this disclosure, by establishing an association between each of the at least one task and the function identification information of the preset logic function and the device parameters of the target device, the electronic device can determine, based on the association, that the at least one task is for configuring the preset logic function for the target device.
[0117] In this way, the electronic device establishes an association between the functional identification information of each task in at least one task and the preset logical function by the correspondence between the configuration workpiece generated in each task stage and the corresponding sub-tasks of that task stage. This enables the electronic device to associate each configuration workpiece with the corresponding task stage and the at least one task with the preset logical function and the target device. As a result, the electronic device can query the corresponding configuration results in different task stages based on the association and correspondence when configuring the preset logical function for the target device.
[0118] In some embodiments of this disclosure, the target configuration information includes at least one set of configuration information, and at least one item of configuration information is different in any two sets of configuration information; The step 102 above, "determining at least one task and the dependency relationship between at least one task based on the target configuration information", can be implemented by the following step 102b. The step 103 above, "executing at least one task in sequence based on the dependency relationship", can be implemented by the following step 103b. The task processing method provided in this embodiment of the disclosure may also include the following step 111: Step 102b: The electronic device determines at least one task corresponding to each set of configuration information and the dependency relationship between at least one task based on each set of configuration information.
[0119] It should be noted that the specific implementation process of step 102b can be referred to the relevant descriptions in steps 102a1 to 102a5 above. To avoid repetition, this embodiment will not repeat the details here.
[0120] Step 103b: The electronic device executes at least one task corresponding to each set of configuration information in parallel. The at least one task corresponding to each set of configuration information is executed sequentially based on the dependencies corresponding to that set of configuration information.
[0121] In some embodiments of this disclosure, the electronic device may employ different processes to execute at least one task corresponding to each set of configuration information in parallel.
[0122] In some embodiments of this disclosure, each process can execute at least one task corresponding to that process in sequence according to the dependency relationship corresponding to the corresponding group configuration information.
[0123] Step 111: The electronic device generates different tag information for the configuration results corresponding to each set of configuration information, and stores at least one configuration result corresponding to at least one set of configuration information into the same storage area.
[0124] In some embodiments of this disclosure, the configuration result corresponding to each set of configuration information is the configuration result obtained after executing at least one task corresponding to that set of configuration information.
[0125] In this way, by independently identifying and uniformly archiving the configuration results generated by different task flows, multiple configuration schemes can be built, executed, and their results managed under a unified process.
[0126] The task processing method provided in this disclosure will be described below with reference to specific implementation methods. In this embodiment, configuring the preset logic function for the target device can be regarded as an FPGA design, and the configuration artifact is the design artifact in the FPGA design process. The task processing method provided in this embodiment can be used to automate the management of FPGA design projects from project initialization, design resource configuration, design flow execution to design result output.
[0127] The task processing method described in this embodiment can be applied to, for example... Figure 3 The FPGA design flow automatic orchestration system 300 shown includes a configuration management module 301, a workflow generation module 302, a workflow scheduling module 303, a process execution module 304, a status management module 305, a checkpoint management module 306, a design workpiece management module 307, and a result management module 308.
[0128] The configuration management module 301 is used to obtain the configuration information corresponding to the FPGA design task and to uniformly manage the target device, design source file, constraint file, IP resources, design strategy, running parameters and output rules.
[0129] The workflow generation module 302 is used to generate a workflow corresponding to the current design task based on the design configuration provided by the configuration management module, and to divide the FPGA design process into multiple task nodes with execution dependencies.
[0130] The workflow scheduling module 303 is used to determine the execution order of tasks based on the dependencies between task nodes and the current status of tasks, and submit tasks that meet the execution conditions to the process execution module.
[0131] The process execution module 304 is used to call EDA design tools to complete the corresponding FPGA design operations.
[0132] The status management module 305 is used to record the execution status of each task node and update the status of the entire workflow based on the task execution results.
[0133] The checkpoint management module 306 is used to save the staged design status and intermediate results formed during the FPGA design process, so that subsequent processes can continue to execute based on the completed stages.
[0134] The design workpiece management module 307 is used to uniformly organize and associate logs, checkpoints, design reports, and final design documents generated during the design process.
[0135] The results management module 308 is used to uniformly archive the results generated by different design configurations, different design strategies, or different engineering tasks.
[0136] Thus, through the collaboration between the above modules, the FPGA design process is transformed from a traditional discrete operation into a manageable workflow driven by a unified configuration.
[0137] For example, in this embodiment, at least one of the above tasks can be regarded as an entire FPGA design task, and an FPGA design task includes at least the following configuration items: Design engineering signage; Target device information; Design source files; Constraint documents; IP resources; Comprehensive strategy; Implementation strategy; Operating parameters; Output directory; Report configuration; Batch execute configuration.
[0138] For example, after obtaining the design configuration, the workflow generation module creates corresponding design task nodes based on the configuration content.
[0139] For example, such as Figure 4 As shown, the FPGA design flow can be divided into the following 9 tasks.
[0140] The T1 project initialization task is used to create project files and set device and project properties.
[0141] The T2 Design Resource Configuration task is used to add design source files, constraint files, and IP resources to the design project and establish the corresponding design resource relationships.
[0142] The T3 design environment configuration task is used to configure the device information, operating parameters, and design strategies required for the design process.
[0143] The T4 logic synthesis task is used to generate a synthesized design result based on the design source files and constraint information.
[0144] The T5 design implementation task is used to perform layout, routing, and related physical design operations on the synthesized design.
[0145] For example, the design implementation task can be further divided into logic optimization subtask, layout subtask, post-layout physical optimization subtask, routing subtask, and post-routing physical optimization subtask. Each subtask forms a series or directed acyclic task relationship according to the dependency relationship, and generates corresponding phased design checkpoints in at least one preset stage.
[0146] The T6 bitstream generation task is used to generate a final output file that can be configured for the FPGA based on the implementation results.
[0147] The T7 Design Results Analysis task is used to acquire and organize the timing, resource utilization, and other design results generated during the design process.
[0148] The T8 results archiving task is used to uniformly save the design workpieces generated in this design task.
[0149] For example, after the workflow of the FPGA design is generated, the workflow scheduling module performs task scheduling based on the dependencies between task nodes. Specifically, the workflow scheduling module first reads the status of each task node in the current workflow.
[0150] The T9 task completion function is used to output the task flow status after the task is completed.
[0151] When all the prerequisite tasks for a task node are completed and the current task node has not yet been executed, the task node is determined as an executable task.
[0152] Subsequently, the workflow scheduling module submits the executable tasks to the process execution module.
[0153] After the process execution module returns the task execution result, the status management module updates the status of the corresponding task node based on the returned result.
[0154] Using the above method, there is no need to manually start the design process stage by stage. Instead, the workflow scheduling module automatically advances the entire FPGA design process according to task dependencies.
[0155] For example, in the FPGA design process, different design strategies may have different effects on the design results.
[0156] For example, the same FPGA design project can employ different synthesis strategies, place-and-route strategies, or physical optimization strategies to achieve different timing performance, resource utilization, or design runtime. Specifically, for example... Figure 5 As shown.
[0157] For example, this implementation describes the design strategy parametrically through a configuration model. The workflow generation module generates corresponding workflows based on different configurations.
[0158] Each workflow is associated with a corresponding configuration identifier, making the design tasks corresponding to different strategies independent of each other.
[0159] The workflow scheduling module can execute multiple design tasks sequentially according to a preset execution method, or execute multiple independent design tasks in parallel if computing resources allow.
[0160] After each task is completed, the results management module saves the comprehensive results, implementation results, timing results, resource utilization results, and final output files corresponding to each design strategy.
[0161] Therefore, while maintaining consistency in design source files and basic configurations, design results generated by different design strategies can be managed and compared in a unified manner.
[0162] For example, in complex FPGA design processes, the synthesis and implementation phases typically require significant computation time. To avoid re-execution of completed design phases due to exceptions in later stages, this embodiment saves the corresponding stage design results after the completion of preset process nodes, forming checkpoints. The checkpoint and exception recovery process is as follows: Figure 6 As shown.
[0163] After logic synthesis is completed, the synthesis checkpoint is saved. After design implementation is completed, the implementation checkpoint is saved. Checkpoints are associated with the current design configuration and workflow status. When a subsequent design task fails, the status management module first determines the completion status of the failed task and its predecessor tasks.
[0164] If a valid checkpoint matching the current design configuration exists in the system, the checkpoint management module retrieves the most recent valid checkpoint.
[0165] Subsequently, the process execution module loads the design state corresponding to the checkpoint and continues to execute subsequent workflow tasks from the corresponding stage.
[0166] Compared to restarting from the initialization phase of the project, the above method can reduce redundant calculations in already completed phases.
[0167] For example, during the execution of the FPGA design flow, a large number of files and data related to the design tasks are generated. This implementation abstracts these files and data into a unified design artifact.
[0168] The designed workpiece may include: Project documents; Design source files; Constraint documents; IP-related documents; Phased checkpoints; Comprehensive log; Implement logging; Time series report; Resource utilization rate report; Implement status reporting; Bitstream file; Other design analysis results.
[0169] The design workpiece management module establishes unique association information for each design workpiece and associates it with the design task identifier, configuration identifier, and workflow stage.
[0170] When querying the implementation results of a specific design task, the corresponding implementation checkpoints, logs, and analysis reports can be quickly located based on the design task identifier. When comparing design results using different strategies, the corresponding design artifacts can also be retrieved based on different configuration identifiers.
[0171] The task processing method provided in this implementation has several advantages. First, by establishing a unified design configuration model, it uniformly describes target devices, design source files, constraint files, IP resources, design strategies, and output information, reducing configuration differences caused by repetitive configurations between different projects or design tasks and improving the consistency of the design process. Second, through workflow generation and scheduling mechanisms, it organizes multiple design stages into task flows with clear dependencies, enabling design tasks to be executed automatically according to unified rules, reducing manual intervention. Third, because the design configuration and workflow execution relationship are uniformly described, the same configuration can generate design flows with the same or consistent structure, which is beneficial for design flow reproducibility and project migration. Fourth, through process status management and stage checkpoint mechanisms, when a design task is abnormally interrupted, it can determine available checkpoints based on the current state and continue execution from the corresponding stage, thereby reducing the repetitive execution of completed stages. Fifth, by automatically generating multiple design tasks for different configurations or design strategies and uniformly scheduling them, it can reduce the workload of repeatedly creating and configuring projects during batch design, improving the efficiency of multi-scheme design and verification. Sixthly, by establishing the association between design configuration, workflow stages, execution status, and design artifacts, design logs, checkpoints, analysis reports, and final output results can be uniformly managed, facilitating the querying, analysis, reproduction, and subsequent use of design results. Seventhly, by modularizing design configuration, task scheduling, process execution, status management, and design artifact management, when new design stages are added to the design process or existing task execution relationships are adjusted, the process can be expanded by adjusting the configuration model and workflow task relationships, reducing the cost of modifying the entire automated process.
[0172] Figure 7 This is a block diagram of a task processing device provided in an embodiment of this disclosure. Figure 7 As shown, the task processing device 700 includes: an acquisition module 701, a determination module 702, and an execution module 703. The acquisition module 701 is used to receive a configuration instruction, the configuration instruction including target configuration information related to a target device, the target configuration information being used to configure a preset logical function for the target device; the determination module 702 is used, in response to the configuration instruction, to determine at least one task and the dependencies between the at least one task based on the target configuration information, each task corresponding to a different task stage for configuring the preset logical function for the target device; the execution module 703 is used to execute the at least one task sequentially based on the dependencies, to obtain a configuration result for configuring the preset logical function for the target device.
[0173] In some embodiments of this disclosure, the target configuration information includes device parameters of the target device and at least one of the following: The preset logical function's function identifier information, the preset logical function's corresponding configuration source file, the preset logical function's corresponding constraint file, the preset logical function's corresponding configuration strategy information, and the first indication information; The first indication information is used to indicate at least one of the following: generating a checkpoint during the process of configuring a preset logic function for the target device, generating a report during the process of configuring a preset logic function for the target device, and generating an operation log during the process of configuring a preset logic function for the target device.
[0174] In some embodiments of this disclosure, the determining module 702 is specifically used for: Based on the device parameters of the target device and the function identification information of the preset logic function, a configuration initialization task is determined. The configuration initialization task is used to initialize the configuration tool, and the configuration tool is used to configure the preset logic function for the target device. Based on the configuration source file and the constraint file, a resource configuration task is determined, which is used to configure a reference configuration file for the configuration tool; Based on the configuration source file, the constraint file, and the configuration strategy information, a logical function configuration task is determined. The logical function configuration task is used to generate the configuration result corresponding to the preset logical function. Based on the logical function configuration task, a configuration result analysis task is determined, which is used to analyze the configuration result; Based on the first indication information, a configuration result archiving task is determined. The configuration result archiving task is used to archive the reports generated during the configuration process, the logs generated during the configuration process, and the configuration results. The resource configuration task depends on the configuration initialization task, the logical function configuration task depends on the resource configuration task, the configuration result analysis task depends on the logical function configuration task, and the configuration result archiving task depends on the configuration result analysis task.
[0175] In some embodiments of this disclosure, the configuration strategy information includes comprehensive strategy information and implementation strategy information, and the logical function configuration task includes a logical synthesis subtask, a configuration implementation subtask, and a configuration result generation subtask. The determining module 702 is specifically used for: Based on the configuration source file, the constraint file, and the comprehensive strategy information, the logical synthesis subtask is determined, and the logical synthesis subtask is used to generate the comprehensive configuration result corresponding to the preset logical function. Based on the logical synthesis subtask and the implementation strategy information, the configuration implementation subtask is determined, and the configuration implementation subtask is used to perform physical implementation operations on the synthesis configuration result; Based on the configuration, a subtask is implemented, and the configuration result generation subtask is determined. The configuration result generation subtask is used to generate the configuration result of the binary file based on the physical configuration result of the comprehensive configuration result. The logic synthesis subtask depends on the resource configuration task, the configuration implementation subtask depends on the logic synthesis subtask, and the configuration result generation subtask depends on the configuration implementation subtask.
[0176] In some embodiments of this disclosure, the determining module 702 is further configured to: Based on the aforementioned dependency, before executing the at least one task sequentially, the task status of the at least one task is set to an unexecuted state; The execution module 703 is specifically used for: Execute the i-th task among the at least one tasks, and update the task status of the i-th task from the unexecuted state to the executing state; After the i-th task is completed, the task status of the i-th task is updated from the executing state to the executing state; If the task status of the i-th task is determined to be the execution completed state, then the (i+1)-th task among the at least one task is executed, and the task status of the (i+1)-th task is updated from the unexecuted state to the executing state, wherein the (i+1)-th task depends on the i-th task; i∈[1,N-1], where N is a positive integer greater than 1, and N represents the number of the at least one task.
[0177] In some embodiments of this disclosure, the task state further includes: an execution failure state; the execution module is further configured to: If the (i+1)th task fails to execute, the task status of the (i+1)th task is updated to the execution failure status; If the task status of the (i+1)th task is updated to the execution failure status, obtain the checkpoint information corresponding to the i-th task; The task result of the i-th task is recovered based on the checkpoint information; Based on the result of the i-th task, the (i+1)-th task is re-executed, and the task status of the (i+1)-th task is updated from the execution failure status to the execution status.
[0178] In some embodiments of this disclosure, the determining module 702 is further configured to: Establish the correspondence between the configuration artifacts generated in each task phase and the corresponding subtasks of that task phase; Establish the association between the functional identification information of each task in the at least one task and the preset logic function and the device parameters of the target device; The configured workpiece includes at least one of the following: The checkpoints, operation logs, reports, power consumption analysis results, and task execution results for each task phase are listed below.
[0179] In some embodiments of this disclosure, the target configuration information includes at least one set of configuration information, and at least one item of configuration information is different in any two sets of configuration information; The determining module 702 is specifically used for: Based on each set of configuration information, determine at least one task corresponding to that set of configuration information and the dependencies between the at least one task; The execution module 703 is specifically used for: At least one task corresponding to each set of configuration information is executed in parallel, and at least one task corresponding to each set of configuration information is executed sequentially based on the dependencies corresponding to that set of configuration information. The task processing device 700 further includes: The storage module is used to generate different tagging information for the configuration results corresponding to each set of configuration information, and to store at least one configuration result corresponding to the at least one set of configuration information in the same storage area; The configuration result corresponding to each set of configuration information is the configuration result obtained after executing at least one task corresponding to that set of configuration information.
[0180] It should be noted that although several modules or units of the task processing apparatus have been mentioned in the detailed description above, this division is not mandatory. In fact, according to embodiments of this disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0181] Exemplary embodiments of this disclosure also provide a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the task processing method described above.
[0182] In one implementation, the computer program product can be a tangible product containing a computer program, such as a computer-readable storage medium storing the computer program. The readable storage medium can be a storage medium based on electrical, magnetic, optical, electromagnetic, infrared, or other signals, including but not limited to: random access memory (RAM), read-only memory (ROM), magnetic tape, floppy disk, flash memory, hard disk drive (HDD), solid-state drive (SSD), etc. For example, the computer program product can be implemented as a non-volatile storage medium storing a computer program, such as read-only memory, NAND flash memory, etc.
[0183] In one implementation, the computer program product can be an intangible product containing a computer program. For example, the computer program product can be implemented as a virtual digital product, such as an executable file, installation package, or other digital file storing the computer program.
[0184] Computer program code can be written in one or more programming languages. Examples of programming languages include C, Java, and C++. Program code can execute entirely on the user's computing device, partially on the user's computing device, or as a standalone software package. It can also execute partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, such as a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via an internet connection provided by a mobile network operator).
[0185] Computer programs can be carried or transmitted via signals such as electrical, magnetic, optical, electromagnetic, and infrared rays. Electronic devices can convert the signals carrying computer programs into digital signals, thereby running the computer programs. When a computer program runs on an electronic device, its code is used to cause the electronic device to execute (more specifically, the processor of the electronic device to execute) the method steps of various exemplary embodiments of this disclosure, such as the task processing methods described above.
[0186] Furthermore, in an exemplary embodiment of this disclosure, an electronic device capable of implementing the above-described method is also provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform an exemplary method of any of the above-described methods by executing the executable instructions.
[0187] The following is for reference. Figure 8 The electronic device is illustrated by way of a general-purpose computing device. It should be understood that... Figure 8The electronic device 800 shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments disclosed herein.
[0188] like Figure 8 As shown, the electronic device 800 may include: a processor 810, a memory 820, a bus 830, an I / O (input / output) interface 840, and a network adapter 850.
[0189] The memory 820 may include volatile memory, such as RAM 821 and cache unit 822, and may also include non-volatile memory, such as ROM 823. The memory 820 may also include one or more program modules 824, including but not limited to: an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. For example, program module 824 may include the modules described above.
[0190] The processor 810 may include one or more processing units, such as an AP (Application Processor), a modem processor, a GPU (Graphics Processing Unit), an ISP (Image Signal Processor), a controller, an encoder, a decoder, a DSP (Digital Signal Processor), a baseband processor, and / or an NPU (Neural-Network Processing Unit).
[0191] The processor 810 can be used to execute executable instructions stored in the memory 820 to perform method steps of various embodiments of this disclosure, such as... Figure 1 The steps are shown.
[0192] Bus 830 is used to connect different components of electronic device 800 and may include data bus, address bus and control bus.
[0193] Electronic device 800 can communicate with one or more external devices 900 (such as keyboard, mouse, external controller, etc.) through I / O interface 840.
[0194] Electronic device 800 can communicate with one or more networks via network adapter 850. For example, network adapter 850 can provide mobile communication solutions such as 3G / 4G / 5G, or wireless communication solutions such as wireless LAN, Bluetooth, and near-field communication. Network adapter 850 can communicate with other modules of electronic device 800 via bus 830.
[0195] In one embodiment, the electronic device 800 further includes a display for displaying a graphical user interface.
[0196] although Figure 8 As not shown in the diagram, other hardware and / or software modules may also be configured in the electronic device 800, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (Redundant Arrays of Independent Disks) systems, tape drives, and data backup storage systems.
[0197] In an exemplary embodiment of this disclosure, a non-transitory computer-readable storage medium is provided, wherein when the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the task processing method described above.
[0198] As can be seen from the above, the technical solutions disclosed herein can be implemented as methods, apparatus, systems, computer program products, storage media, electronic devices, etc. Those skilled in the art will understand that various aspects of this disclosure can be specifically implemented in the following forms: a completely hardware implementation, a completely software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software aspects, which may be referred to as "circuit," "module," or "system," respectively.
[0199] It should be understood that this disclosure is not limited to the specific methods, steps, or structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. Those skilled in the art will readily conceive of other embodiments based on the specific implementations provided in this disclosure. Therefore, the specific implementations provided in this disclosure are merely exemplary, and the scope and spirit of this disclosure are indicated by the claims, and should cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary technical means in the art not disclosed in this disclosure.
Claims
1. A task processing method, characterized in that, include: Receive a configuration instruction, the configuration instruction including target configuration information related to the target device, the target configuration information being used to configure preset logic functions for the target device; In response to the configuration instruction, based on the target configuration information, at least one task and the dependencies between the at least one task are determined, and each task corresponds to a different task stage for configuring a preset logic function for the target device; Based on the aforementioned dependency relationship, at least one task is executed sequentially to obtain a configuration result for configuring the preset logic function for the target device.
2. The task processing method according to claim 1, characterized in that, The target configuration information includes the device parameters of the target device and at least one of the following: The preset logical function's function identifier information, the preset logical function's corresponding configuration source file, the preset logical function's corresponding constraint file, the preset logical function's corresponding configuration strategy information, and the first indication information; The first indication information is used to indicate at least one of the following: generating a checkpoint during the process of configuring a preset logic function for the target device, generating a report during the process of configuring a preset logic function for the target device, and generating an operation log during the process of configuring a preset logic function for the target device.
3. The task processing method according to claim 2, characterized in that, The step of determining at least one task and the dependencies between the at least one task based on the target configuration information includes: Based on the device parameters of the target device and the function identification information of the preset logic function, a configuration initialization task is determined. The configuration initialization task is used to initialize the configuration tool, and the configuration tool is used to configure the preset logic function for the target device. Based on the configuration source file and the constraint file, a resource configuration task is determined, which is used to configure a reference configuration file for the configuration tool; Based on the configuration source file, the constraint file, and the configuration strategy information, a logical function configuration task is determined. The logical function configuration task is used to generate the configuration result corresponding to the preset logical function. Based on the logical function configuration task, a configuration result analysis task is determined, which is used to analyze the configuration result; Based on the first indication information, a configuration result archiving task is determined. The configuration result archiving task is used to archive the reports generated during the configuration process, the logs generated during the configuration process, and the configuration results. The resource configuration task depends on the configuration initialization task, the logical function configuration task depends on the resource configuration task, the configuration result analysis task depends on the logical function configuration task, and the configuration result archiving task depends on the configuration result analysis task.
4. The task processing method according to claim 3, characterized in that, The configuration strategy information includes comprehensive strategy information and implementation strategy information, and the logical function configuration task includes a logical synthesis subtask, a configuration implementation subtask, and a configuration result generation subtask. The step of determining the logical function configuration task based on the configuration source file, the constraint file, and the configuration strategy information includes: Based on the configuration source file, the constraint file, and the comprehensive strategy information, the logical synthesis subtask is determined, and the logical synthesis subtask is used to generate the comprehensive configuration result corresponding to the preset logical function. Based on the logical synthesis subtask and the implementation strategy information, the configuration implementation subtask is determined, and the configuration implementation subtask is used to perform physical implementation operations on the synthesis configuration result; Based on the configuration, a subtask is implemented, and the configuration result generation subtask is determined. The configuration result generation subtask is used to generate the configuration result of the binary file based on the physical configuration result of the comprehensive configuration result. The logic synthesis subtask depends on the resource configuration task, the configuration implementation subtask depends on the logic synthesis subtask, and the configuration result generation subtask depends on the configuration implementation subtask.
5. The task processing method according to claim 1, characterized in that, Before executing the at least one task sequentially based on the dependency relationship, the method further includes: Set the task status of the at least one task to an inactive state; The step of executing the at least one task sequentially based on the dependency relationship includes: Execute the i-th task among the at least one tasks, and update the task status of the i-th task from the unexecuted state to the executing state; After the i-th task is completed, the task status of the i-th task is updated from the executing state to the executing state; If the task status of the i-th task is determined to be the execution completed state, then the (i+1)-th task among the at least one task is executed, and the task status of the (i+1)-th task is updated from the unexecuted state to the executing state, wherein the (i+1)-th task depends on the i-th task; i∈[1,N-1], where N is a positive integer greater than 1, and N represents the number of the at least one task.
6. The task processing method according to claim 5, characterized in that, The task status also includes: execution failure status; the task processing method also includes: If the (i+1)th task fails to execute, the task status of the (i+1)th task is updated to the execution failure status; If the task status of the (i+1)th task is updated to the execution failure status, obtain the checkpoint information corresponding to the i-th task; The task result of the i-th task is recovered based on the checkpoint information; Based on the result of the i-th task, the (i+1)-th task is re-executed, and the task status of the (i+1)-th task is updated from the execution failure status to the execution status.
7. The task processing method according to claim 1, characterized in that, The method further includes: Establish the correspondence between the configuration artifacts generated in each task phase and the corresponding subtasks of that task phase; Establish the association between the functional identification information of each task in the at least one task and the preset logic function and the device parameters of the target device; The configured workpiece includes at least one of the following: The checkpoints, operation logs, reports, power consumption analysis results, and task execution results for each task phase are listed below.
8. The task processing method according to claim 1, characterized in that, The target configuration information includes at least one set of configuration information, and at least one item of configuration information is different in any two sets of configuration information; The step of determining at least one task and the dependencies between the at least one task based on the target configuration information includes: Based on each set of configuration information, determine at least one task corresponding to that set of configuration information and the dependencies between the at least one task; The step of executing the at least one task sequentially based on the dependency relationship includes: At least one task corresponding to each set of configuration information is executed in parallel, and at least one task corresponding to each set of configuration information is executed sequentially based on the dependencies corresponding to that set of configuration information. The task processing method further includes: Different tagging information is generated for the configuration results corresponding to each set of configuration information, and at least one configuration result corresponding to the at least one set of configuration information is stored in the same storage area; The configuration result corresponding to each set of configuration information is the configuration result obtained after executing at least one task corresponding to that set of configuration information.
9. A task processing device, characterized in that, include: An acquisition module is used to receive configuration instructions, the configuration instructions including target configuration information related to the target device, the target configuration information being used to configure preset logic functions for the target device; The determination module is configured to, in response to the configuration instruction, determine at least one task and the dependencies between the at least one task based on the target configuration information, wherein each task corresponds to a different task stage for configuring a preset logic function for the target device; An execution module is used to execute at least one task sequentially based on the dependencies, and obtain a configuration result for configuring the preset logic function for the target device.
10. An electronic device, characterized in that, include: processor; as well as Memory for storing the executable instructions of the processor; The processor is configured to execute the task processing method of any one of claims 1 to 8 by executing the executable instructions.
