Distributed chip verification task scheduling method and device

By acquiring configuration data, metadata, and historical execution data, the task priority is dynamically calculated and scheduled, solving the problem of insufficient scheduling flexibility in chip verification tasks in existing technologies, and achieving efficient task scheduling and resource utilization.

CN123197546APending Publication Date: 2026-12-01HANGZHOU HUAFENG JIXIN ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611698190.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-30
Publication Date
2026-12-01

AI Technical Summary

Technical Problem

Existing chip verification task scheduling methods lack flexibility and are unable to adapt to cluster load and real-time optimization of task arrangement based on verification progress, resulting in idle or wasted resources and an inability to schedule high-value tasks in a timely manner.

Method used

By acquiring configuration data, metadata, and historical execution data, task priorities are dynamically calculated, and scheduling is performed based on task priorities. This supports task migration and resource preemption, enabling multi-dimensional data-driven task scheduling.

Benefits of technology

It improves the flexibility of chip verification task scheduling, avoids task delays and resource waste caused by rigid scheduling strategies, and enhances cluster resource utilization and task execution efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123197546A_ABST
    Figure CN123197546A_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a distributed chip verification task scheduling method and device. The method comprises: obtaining, based on configuration data, metadata and historical execution data, a task priority of a verification task in a target chip verification scheme; determining resource requirement data of the verification task according to the historical execution data, the resource requirement data representing computing resources required by the verification task at different time points; and if there is no second node in a target cluster that meets the resource requirement data, scheduling the verification task according to the task priority, wherein the configuration data, the metadata and the historical execution data of the verification task to be scheduled, the configuration data comprising importance configuration and urgency configuration, the importance configuration representing the importance of the verification task in the target chip verification scheme, and the urgency configuration representing the time urgency of executing the verification task. The method is used to improve the flexibility of task scheduling.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of chip verification, and in particular to a distributed chip verification task scheduling method and apparatus. Background Technology

[0002] In integrated circuit design, chips are generally verified based on the Universal Verification Methodology (UVM) framework. During the chip verification process, a verification scheme is generated. The verification tasks in the verification scheme are executed by nodes in a distributed cluster to efficiently complete the simulation of the entire verification scheme.

[0003] In related technologies, during the scheduling process of chip verification tasks, the priority of the verification task is usually determined by the static priority tag actively submitted by the user, and then the verification task is scheduled according to the priority.

[0004] Therefore, the scheduling methods in related technologies suffer from poor scheduling flexibility. Summary of the Invention

[0005] This application provides a method and apparatus for scheduling distributed chip verification tasks, which can improve the scheduling flexibility of distributed chip verification tasks.

[0006] In a first aspect, embodiments of this application provide a distributed chip verification task scheduling method, applied to a first node in a target cluster, comprising:

[0007] In the target chip verification scheme, obtain the configuration data, metadata, and historical execution data of the verification tasks to be scheduled. The configuration data includes importance configuration and urgency configuration. The importance configuration represents the importance of the verification task in the target chip verification scheme, and the urgency configuration represents the time urgency of executing the verification task.

[0008] Based on configuration data, metadata, and historical execution data, determine the task priority corresponding to the verification task;

[0009] The resource requirements for the verification task are determined based on historical execution data. The resource requirements data represent the computing resources required by the verification task at different points in time.

[0010] If there is no second node in the target cluster that meets the resource requirements, the verification task is scheduled according to the task priority.

[0011] In one possible embodiment, the task priority corresponding to the verification task is determined based on configuration data, metadata, and historical execution data, including:

[0012] The estimated coverage contribution and resource requirement complexity of the verification task are determined based on metadata and historical execution data. The estimated coverage contribution represents the increase in verification coverage after executing the verification task, and the resource requirement complexity represents the degree of computational resource consumption of the verification task.

[0013] The estimated coverage contribution, resource requirement complexity, importance configuration, and urgency configuration are weighted and summed to determine the task priority.

[0014] In one possible embodiment, the method further includes:

[0015] Update the configuration data of other verification tasks that are being executed on each node in the target cluster;

[0016] For each other verification task, update the task priority of the other verification task according to the updated configuration data of the other verification task.

[0017] In one possible embodiment, task scheduling for verification tasks based on task priority includes:

[0018] Get the execution status of other verification tasks that are currently being executed;

[0019] Determine the task priority of other verification tasks based on their execution status.

[0020] Based on the task priority corresponding to the verification task and the task priorities corresponding to other verification tasks, determine from the other verification tasks whether there is a first task that can be migrated;

[0021] If a first task exists, the first task will be migrated, and the verification task will be scheduled to be executed on the node corresponding to the first task.

[0022] In one possible embodiment, task migration of the first task includes:

[0023] Send a process pause command to the node currently executing the first task to stop the execution of the first task;

[0024] The current environment state is retrieved from the node executing the first task. The current environment state includes the component objects, configuration database, sequence queue state, and random number generator seed in the node corresponding to the first task.

[0025] The current environment state is serialized and compressed to obtain the archived data corresponding to the first task;

[0026] Store the archived data in the preset storage location and release the computing resources in the node corresponding to the first task.

[0027] In one possible embodiment, the method further includes:

[0028] Based on the computing resources required for the first task, detect whether there is a third node capable of executing the first task;

[0029] If a third node exists, the first task will be scheduled to be executed on the third node based on the archived data.

[0030] In one possible embodiment, determining whether there exists a first task that can be migrated from other verification tasks based on the task priority corresponding to the verification task and the task priorities corresponding to other verification tasks includes:

[0031] Identify at least one other verification task whose priority is lower than that of the verification task as the first candidate task;

[0032] If the first candidate task meets the preset conditions, then the first candidate task is determined as the first task.

[0033] If the first candidate task does not meet the preset conditions, the second candidate task with the lowest priority is determined from the other first candidate tasks, and it is checked whether the second candidate task meets the preset conditions.

[0034] In one possible embodiment, detecting that the first candidate task meets preset conditions includes:

[0035] The migration cost of migrating the first candidate task is less than the expected benefit of executing the verification task after migrating the first candidate task. The migration cost represents the time cost of migrating the first candidate task to other nodes for execution. The expected benefit is the time gain of migrating the first candidate task and executing the verification task after freeing up computing resources, compared to not migrating the first candidate task and having the verification task queued in place.

[0036] If the migration cost is less than the expected benefit, then the first candidate task is determined to meet the preset conditions.

[0037] If the migration cost exceeds the expected benefits, then the first candidate task is determined not to meet the preset conditions.

[0038] In one possible embodiment, the method further includes:

[0039] If a second node exists, schedule the verification task to be executed on the second node.

[0040] Secondly, embodiments of this application provide a distributed chip verification task scheduling device, comprising:

[0041] The acquisition module is used to acquire the configuration data, metadata, and historical execution data of the verification tasks to be scheduled in the target chip verification scheme. The configuration data includes importance configuration and urgency configuration. The importance configuration represents the importance of the verification task in the target chip verification scheme, and the urgency configuration represents the time urgency of executing the verification task.

[0042] The priority dynamic perception module is used to determine the task priority corresponding to the verification task based on configuration data, metadata and historical execution data;

[0043] The resource assessment module is used to determine the resource requirements of the verification task based on historical execution data. The resource requirements data represent the computing resources required by the verification task at different points in time.

[0044] The scheduling module is used to schedule verification tasks according to task priority if there is no second node in the target cluster that meets the resource requirements.

[0045] This application provides a distributed chip verification task scheduling method and apparatus. The method is applied to a first node in a target cluster. The method includes: obtaining the task priority corresponding to the verification task based on configuration data, metadata, and historical execution data in the target chip verification scheme; determining the resource requirement data of the verification task based on the historical execution data; the resource requirement data representing the computing resources required by the verification task at different time points; if there is no second node in the target cluster that meets the resource requirement data; and scheduling the verification task according to the task priority. The configuration data, metadata, and historical execution data of the verification task to be scheduled include importance configuration and urgency configuration. The importance configuration represents the importance of the verification task in the target chip verification scheme, and the urgency configuration represents the time urgency of executing the verification task. In this way, task priorities can be dynamically calculated and task time-sharing resource requirements can be predicted based on multi-dimensional data of various verification tasks under the target chip verification scheme. When cluster resources cannot meet the task running conditions, task scheduling is carried out based on dynamic priorities. This effectively overcomes the shortcomings of traditional static priority scheduling and fixed resource reservation scheduling methods, which lack flexibility. The scheduling logic adapts to the characteristics of chip verification business and adjusts adaptively with project progress, task urgency, and cluster resource status. This avoids the delay of high-value verification tasks and waste of computing resources caused by rigid scheduling strategies, and has greater scheduling flexibility. Attached Figure Description

[0046] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0047] Figure 1A flowchart illustrating the distributed chip verification task scheduling method provided in this application embodiment. Figure 1 ;

[0048] Figure 2 A flowchart illustrating the distributed chip verification task scheduling method provided in this application embodiment. Figure 2 ;

[0049] Figure 3 A schematic diagram of an architecture provided for an embodiment of this application;

[0050] Figure 4 A flowchart illustrating the distributed chip verification task scheduling method provided in this application embodiment. Figure 3 ;

[0051] Figure 5 This is a schematic diagram of the structure of the distributed chip verification task scheduling device provided in the embodiments of this application;

[0052] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0053] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0054] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0055] In the integrated circuit design flow, the verification phase requires the execution of massive test cases using the UVM framework to ensure the correctness and robustness of the design functionality. With the exponential growth in chip complexity, a single computing node can no longer meet the computational demands of verification tasks. Therefore, the industry commonly employs distributed verification clusters composed of multiple computing nodes to verify chips.

[0056] The scheduling mechanisms in related technologies include two types: Option 1 involves deploying a scheduler where, when a user submits a task, they manually or via script specify a static priority label (e.g., high, medium, low). The scheduler then allocates the task to idle computing nodes based on a simple strategy (e.g., prioritizing tasks by order of priority and using a round-robin approach). Therefore, node resource monitoring is only used to determine whether a node is "available" or "unavailable" (e.g., based on a central processing unit (CPU) load threshold). Option 2 requires users to estimate and declare the computing resources (e.g., number of CPU cores, memory size) needed for a verification task when submitting it. Then, based on the remaining allocable resources on each node, an algorithm similar to "boxing" is used to allocate the task to nodes that meet its resource reservation requirements. Once the task begins execution, it exclusively uses the declared resources until completion.

[0057] Both existing scheduling schemes have significant drawbacks: First, the scheduling strategies are relatively rigid, lacking dynamic adaptive adjustment capabilities, making it difficult to optimize task allocation in real time according to cluster load and verification progress. Second, they struggle to achieve precise resource matching, easily leading to node load imbalances, resource idleness, or wasted resource reservations, resulting in low cluster resource utilization. Third, they do not support cross-node migration and resource preemption for running verification tasks, preventing timely acquisition of computing resources when high-priority urgent tasks arrive. Fourth, the scheduling logic only considers priority labels or hardware resource constraints, failing to perceive chip verification business characteristics such as coverage contribution and task importance. In summary, both schemes are inherently inflexible, and their scheduling mechanisms cannot dynamically adapt to the continuously changing needs of chip verification scenarios.

[0058] In view of this, embodiments of this application provide a distributed chip verification task scheduling method and apparatus, wherein the method is applied to a first node in a target cluster, the method comprising: obtaining, based on configuration data, metadata and historical execution data in the target chip verification scheme, determining the task priority corresponding to the verification task; determining the resource requirement data of the verification task according to the historical execution data, wherein the resource requirement data represents the computing resources required by the verification task at different points in time; if there is no second node in the target cluster that meets the resource requirement data, scheduling the verification task according to the task priority, wherein the configuration data, metadata and historical execution data of the verification task to be scheduled, wherein the configuration data includes importance configuration and urgency configuration, wherein the importance configuration represents the importance of the verification task in the target chip verification scheme, and the urgency configuration represents the time urgency of executing the verification task. In this way, task priorities can be dynamically calculated and task time-sharing resource requirements can be predicted based on multi-dimensional data of various verification tasks under the target chip verification scheme. When cluster resources cannot meet the task running conditions, task scheduling is carried out based on dynamic priorities. This effectively overcomes the shortcomings of traditional static priority scheduling and fixed resource reservation scheduling methods, which lack flexibility. The scheduling logic adapts to the characteristics of chip verification business and adjusts adaptively with project progress, task urgency, and cluster resource status. This avoids the delay of high-value verification tasks and waste of computing resources caused by rigid scheduling strategies, and has greater scheduling flexibility.

[0059] Figure 1 A flowchart illustrating the distributed chip verification task scheduling method provided in this application embodiment. Figure 1 In this embodiment, the distributed chip verification task scheduling is applied to the first node in the target cluster. The first node can be an electronic device, which can be a server or a terminal, and is not limited thereto. It is understood that the target cluster can be a distributed computer cluster, which includes other computing nodes besides the first node, and each computing node can execute the verification tasks scheduled to it by the first node. (Refer to...) Figure 1 The distributed chip verification task scheduling method provided in this application may include:

[0060] S101, Obtain the configuration data, metadata, and historical execution data of the verification task to be scheduled in the target chip verification scheme.

[0061] The configuration data includes importance configuration and urgency configuration. Importance configuration represents the importance of the verification task in the target chip verification scheme, while urgency configuration represents the time urgency of executing the verification task.

[0062] Here, the target chip verification scheme is a complete verification implementation plan developed for the target chip. It defines all test tasks, verification objectives, and convergence requirements to be executed, including multiple verification tasks, and serves as the source of all verification tasks. Among them, the verification tasks to be scheduled refer to the chip simulation test cases currently waiting to be assigned to cluster computing nodes for execution.

[0063] In this embodiment of the application, the configuration data, metadata, and historical execution data of the verification task can be obtained before scheduling the verification task.

[0064] Here, configuration data is used to characterize the basic configuration content of the verification task to be scheduled. It is one of the inputs for determining task priority and scheduling tasks. In this embodiment, the configuration data includes at least importance configuration and urgency configuration. The importance configuration is used to characterize the importance of the verification task in the target chip verification scheme; the urgency configuration is used to characterize the time urgency of executing the verification task.

[0065] In this embodiment of the application, metadata of the verification task will also be obtained. Here, the metadata is used to provide descriptive information about the verification task, including at least the verification stage to which the verification task belongs in the target chip verification scheme, the expected coverage, and the execution deadline.

[0066] In this embodiment, historical execution data is used to reflect the performance of the verification task in the past execution process. It is an important basis for determining task priority and scheduling tasks. It may include the actual CPU and memory consumption, runtime, real coverage increment, and failure probability of the verification task in the historical time period.

[0067] Regarding the process of obtaining configuration data and metadata, in one possible implementation, the user submits configuration data and metadata at the same time when submitting the verification task, which can be read directly when obtaining the verification task.

[0068] In another possible implementation, the configuration data and metadata are stored in a preset storage location corresponding to the verification task. When reading the verification task, the configuration data and metadata corresponding to the verification task can be read at the same time.

[0069] Regarding the method of obtaining historical execution data of verification tasks, in some embodiments, when a verification task is executed, its past running records are structured as historical execution data and stored in a preset storage location (memory or cache). The historical execution data of the verification task can be read directly from the preset storage location according to the address corresponding to the preset storage location.

[0070] S102, based on configuration data, metadata and historical execution data, determine the task priority corresponding to the verification task.

[0071] In this application, task priority is used to characterize the order of verification tasks in scheduling and the priority of resource allocation. It is a result determined based on configuration data, metadata, and historical execution data, and is used for subsequent task scheduling.

[0072] In this step, the scheduling entity reads the task description records of each task to be scheduled, performs correlation analysis on configuration data, metadata, and historical execution data, and generates comparable priority scores or priority levels. Specifically, it processes relevant information from importance configuration, urgency configuration, and historical execution data, and combines this with metadata to comprehensively evaluate the priority of tasks, thereby obtaining task priorities.

[0073] In one specific implementation, the scheduling entity can use a comprehensive evaluation method to form task priorities, such as determining the relative priority order among various verification tasks based on the analysis results corresponding to importance configuration, urgency configuration, metadata, and historical execution data.

[0074] Regarding the analysis process, in one possible implementation, the priority of the task can be obtained by directly inputting the importance configuration, urgency configuration, metadata, and historical execution data into a preset priority evaluation model.

[0075] In another possible implementation, importance configuration, urgency configuration, metadata, and historical execution data can be quantified into numerical values, and statistical processing of each value, such as weighted average or weighted summation, can be performed to obtain the quantified task priority.

[0076] In some embodiments, the process of step S102, "determining the task priority corresponding to the verification task based on configuration data, metadata, and historical execution data," may include: determining the estimated coverage contribution and resource requirement complexity corresponding to the verification task based on metadata and historical execution data; performing a weighted summation calculation on the estimated coverage contribution, resource requirement complexity, importance configuration, and urgency configuration, and determining the calculation result as the task priority.

[0077] Among them, the estimated coverage contribution represents the increase in verification coverage after executing the verification task, and the resource requirement complexity represents the degree of computational resource consumption of the verification task.

[0078] Here, the incremental verification coverage represents the increase in overall chip verification coverage after executing the verification task compared to before the task ran. It represents the additional verification content such as RTL code, functional scenarios, and cross constraints that the task can cover. The resource requirement complexity is used to characterize the degree of computational resource consumption of the verification task, which can be characterized by the task runtime, CPU utilization, peak memory usage, number of parallel threads, and number of retries.

[0079] In this embodiment of the application, the estimated coverage contribution and resource requirement complexity can be determined by analyzing metadata and historical execution data.

[0080] In one possible implementation, the estimated coverage contribution and resource requirement complexity of the analysis model can be obtained by directly inputting metadata and historical execution data into a preset analysis model.

[0081] In another possible implementation, task type, associated modules, coverage target, simulation length and constraints can be extracted from metadata, and combined with historical coverage increments, historical resource consumption curves and failure rerun records in historical execution data to construct task profiles. After normalizing the historical execution data, the estimated coverage contribution can be estimated based on the coverage improvement of similar tasks, and the resource demand complexity can be estimated based on the historical average, peak and fluctuation range of resource consumption.

[0082] In this embodiment of the application, in order to integrate project delivery dimensions (importance, urgency) and verification technology dimensions (coverage contribution, resource complexity) indicators, unify the quantitative standards, abandon the traditional method of dividing priorities with a single static label, and achieve multi-dimensional comprehensive evaluation, the task priority calculation will integrate and analyze the estimated coverage contribution, resource requirement complexity, importance configuration, and urgency configuration to obtain the final task priority.

[0083] Regarding the analysis process, in this embodiment of the application, the four parameters of estimated coverage contribution, resource requirement complexity, importance configuration, and urgency configuration are weighted and summed to obtain the priority value.

[0084] Here, in order to further improve the flexibility of the task priority calculation process, the weights of each parameter can be adaptively adjusted.

[0085] In some embodiments, feedback on the execution results of verification tasks can be continuously received, including information such as whether defects were detected and the amount of coverage increase. Online optimization is carried out based on reinforcement learning algorithms, and coverage convergence speed and defect discovery efficiency are used as reward indicators. The weight coefficients corresponding to each dimension of the priority calculation formula, such as estimated coverage contribution, resource requirement complexity, importance configuration, and urgency configuration, are continuously tested. The weights of each dimension are dynamically fine-tuned based on the feedback effect. For example, when scheduling tasks with high estimated coverage contribution weight can promote faster convergence of overall coverage, the basic weight of that dimension can be automatically increased, so that the priority calculation rule can be continuously adaptively optimized to follow the verification scenario goal.

[0086] In this way, the aforementioned method of calculating task priorities can unify verification value, resource overhead, and time constraints into a single quantitative model, enabling subsequent scheduling to rank tasks based on their comprehensive attributes. Since historical execution data is incorporated into the estimated coverage contribution and resource requirement complexity, task priorities can reflect the actual performance of tasks in the current verification environment, thus making the scheduling results more aligned with the verification objectives and resource constraints of the target chip verification scheme.

[0087] Based on the foregoing embodiments, the method further includes: updating the configuration data of other verification tasks being executed on each node; and for each other verification task, updating the task priority corresponding to the other verification task according to the updated configuration data corresponding to the other verification task.

[0088] In this embodiment, other verification tasks being executed on each node refer to verification tasks that have been assigned to each computing node in the distributed verification cluster and are in a running state.

[0089] In the embodiments of this application, the indicators affecting the task priority of each verification task are not static. For example, as time goes on, the urgency of the verification task will increase as the delivery deadline approaches. Correspondingly, as the task progresses, the goal of the verification task has been basically achieved, and the task is no longer a key link that blocks tape-out and delivery. Therefore, its importance configuration may decrease.

[0090] Based on the foregoing, when there are verification tasks awaiting scheduling, the urgency and importance configurations of other verification tasks need to be updated to dynamically adjust their task priorities. This allows for dynamic task migration of lower-priority tasks when a higher-priority verification task is ready for scheduling.

[0091] Regarding the update process of urgency configuration, in one possible implementation, the remaining time can be determined by reading the deadline of each other verification task, and the urgency configuration of each running task can be updated uniformly according to the remaining time and the current completion status of other verification tasks, based on a preset remaining time decay rule; in another possible implementation, the urgency configuration can be updated according to the instructions input by the user.

[0092] Regarding the update process of importance configuration, in one possible implementation, the current completion progress and progress target of each other verification task can be obtained, and the importance configuration can be adjusted according to the progress achievement ratio; in another possible implementation, it is possible to detect whether the progress of each other verification task is causing the progress of the target chip verification scheme to be blocked, thereby adjusting its importance configuration.

[0093] In this embodiment of the application, when a new verification task to be scheduled is received, for other verification tasks that have been assigned to each node and are being executed, the urgency and importance configurations of the other verification tasks can be recalculated or recalibrated according to their association with the current high-urgency task, the remaining execution time, and the execution progress, so that they reflect the new time urgency and importance in subsequent scheduling judgments.

[0094] In some embodiments, the update process can be completed by the central node implementing this scheme issuing configuration refresh instructions to other computing nodes in the cluster, or the central node can uniformly refresh the relevant information of each other verification task.

[0095] Understandably, for each other verification task, when its urgency and importance configurations are refreshed, its task priority will also change. At this time, the task priority of each other verification task can be recalculated, thereby providing a reasonable scheduling strategy for subsequent task scheduling.

[0096] In this embodiment of the application, the process of updating the task priority of each other verification task can first calculate the current estimated coverage contribution and resource requirement complexity of each other verification task, and then recalculate the task priority based on the updated configuration data, estimated coverage contribution and resource requirement complexity.

[0097] In this way, by continuously updating the configuration data of other verification tasks running on each node and dynamically refreshing the priority of each task based on the new configuration, the priority of all tasks in the cluster is continuously updated iteratively. This breaks the limitation of traditional scheduling that only calculates the priority once when a task is submitted, ensuring that the priority value is valid for a long time. This further improves the dynamic adaptability and flexibility of distributed chip verification task scheduling, and provides reliable data support for dynamic reordering of tasks, migration of low-priority tasks, and resource preemption for urgent tasks.

[0098] S103, determine the resource requirements for the verification task based on historical execution data.

[0099] Among them, the resource requirement data characterizes the computing resources required by the verification task at different points in time.

[0100] In this embodiment, the resource requirement data can describe the temporal characteristics of resource occupancy throughout the entire lifecycle of the verification task, and may include, but is not limited to, the number of CPU cores and memory size required for the simulation startup phase, stable operation phase, and closing phase respectively; reflecting the characteristics of resource requirements changing with the simulation process.

[0101] In this embodiment of the application, the specific form of the resource requirement data can be a time series curve. For example, for verification task A, when it starts to execute, the first 2 minutes of the compilation stage requires a high load of 4 CPU cores; the subsequent 30 minutes of the simulation stage requires 2 CPU cores and 8GB of memory.

[0102] Understandably, traditional solutions rely on users to manually estimate the computing resources required for verification tasks. Once the verification task starts, it will forcibly monopolize the resources, which does not match the actual fluctuating resource requirements, resulting in resource fragmentation and low utilization.

[0103] Therefore, in this embodiment of the application, historical execution data can be used to predict time-sharing resource requirements, which can more accurately match node load.

[0104] Regarding the process of assessing the computational resource requirements of the verification task based on historical execution data, in one possible implementation, a requirement assessment model can be used to process the historical execution data to obtain computational resource requirement data output by the model. This data may include the computational resources required by the verification task at different times.

[0105] S104. If there is no second node in the target cluster that meets the resource requirements, schedule the verification task according to the task priority.

[0106] Here, the second node can refer to an idle computing node in the target cluster that meets the resource requirements and can support the execution of verification tasks.

[0107] Regarding the process of detecting the existence of a second node, in some embodiments, the real-time remaining CPU cores and available memory of each node in the cluster can be collected, and based on the resource requirement data of the verification task, it can be verified whether the remaining resources of each node can cover the resource peaks of the task startup phase, steady-state operation phase, and end phase. As long as the resource conditions of any node are met for all time periods, it is determined that a second node exists.

[0108] In some embodiments, a resource availability time window is maintained for each node. Combined with the estimated runtime of the task, the resource supply of the node during the complete execution cycle of the task is predicted. If the remaining resources of a certain node are always greater than or equal to the resource demand at the corresponding time of the task throughout the entire execution interval of the task, then the node is identified as an available second node.

[0109] In some embodiments, when the verification task meets the decomposition conditions, for example, when the scenario corresponding to the verification task is a large verification scenario, including 1000 independent but parallel random sequences, the verification task can be decomposed into multiple sub-tasks (for example, the 1000 random sequences can be decomposed into 10 sub-tasks, each sub-task including 100 sequences), and based on the computing resources required by each sub-task, multiple second nodes that can execute each sub-task in parallel are determined, so that each sub-task can be subsequently scheduled to each second node for execution.

[0110] Based on the foregoing embodiments, the method provided in this application includes: if a second node exists, scheduling the verification task to be executed on the second node.

[0111] Understandably, when the target cluster has a second node capable of running the verification task, computing resources should be allocated directly without waiting. In this case, the verification task can be scheduled to be executed on the second node.

[0112] In some embodiments, the number of second nodes is one. In this case, the verification task can be directly scheduled to run on the second node.

[0113] In some embodiments, there are multiple second nodes. In this case, the second node with the lowest current overall load can be selected, and a task start command can be issued to deploy the verification task to that node for execution. Alternatively, based on the running characteristics corresponding to the historical execution data of the task, the second node with higher simulation efficiency in the past running of the same type of verification task can be selected first to complete the issuance and start of the verification task.

[0114] In this way, task deployment can be completed quickly when available computing power nodes are detected, and task-oriented distribution can be achieved by relying on the results of refined resource matching. This improves the success rate of verification task startup and operational stability, rationally distributes cluster tasks, and improves the problem of uneven node load.

[0115] Correspondingly, in the case where there is no second node, the verification task can be scheduled according to the task priority.

[0116] It is understandable that the available computing resources of the target cluster have an upper limit, and it is normal for all nodes to be saturated at any moment. In order to avoid blocking higher-priority verification tasks in the first-come-first-served manner, verification tasks can be scheduled according to task priority.

[0117] In this embodiment, tasks with lower priority than the verification task can be selected from other verification tasks, and the task can be migrated to release the computing resources of its node so that the node is idle. Then, verification tasks with higher priority can be scheduled to run on the node, so that high-value and time-sensitive verification tasks can get priority execution opportunities.

[0118] In the above embodiments, task priorities can be dynamically calculated and task time-sharing resource requirements can be predicted based on multi-dimensional data of various verification tasks under the target chip verification scheme. When cluster resources cannot meet the task running conditions, task scheduling is carried out based on dynamic priorities, which effectively overcomes the shortcomings of traditional static priority scheduling and fixed resource reservation scheduling methods that lack flexibility. The scheduling logic adapts to the characteristics of chip verification business and adjusts adaptively with project progress, task urgency and cluster resource status, avoiding the delay of high-value verification tasks and waste of computing resources caused by rigid scheduling strategies, and has stronger scheduling flexibility.

[0119] Figure 2 A flowchart illustrating the distributed chip verification task scheduling method provided in this application embodiment. Figure 2 . Reference Figure 2 The process of step S104, "scheduling verification tasks according to task priority," may include:

[0120] S1041, obtain the execution status of other verification tasks that are currently being executed.

[0121] Here, the execution status is used to reflect the current running status of other verification tasks that are being executed, and serves as the basis for determining whether they are portable. The execution status may include, but is not limited to, configuration data, historical execution data, task runtime, current resource usage level, simulation stage, whether breakpoint migration is supported, task snapshot save status, estimated remaining runtime, and other runtime-related information.

[0122] Understandably, when the target cluster resources are saturated and there are no available second nodes, it is impossible to intuitively determine whether other running verification tasks can free up resources. Only by collecting the execution status of all other running verification tasks can we determine which tasks meet the migration conditions, provide basic data for subsequent preemption scheduling, and avoid blindly initiating task migrations that could cause simulation anomalies.

[0123] In one possible implementation, each node periodically reports the execution status of the verification tasks running on it.

[0124] In another possible implementation, the first node can periodically collect the execution status of verification tasks running on other nodes.

[0125] S1042, determine the task priority of other verification tasks based on the execution status of each other verification task.

[0126] It is understandable that the urgency configuration, importance configuration, estimated coverage contribution increment, and resource requirement complexity of other verification tasks will change as the tasks progress. Therefore, it is necessary to reconfirm the task priorities of other verification tasks.

[0127] In one possible implementation, the execution status includes dynamically updated task priorities, in which case the task priorities of other tasks can be directly obtained by reading the execution status.

[0128] In another possible implementation, the execution status includes dynamically updated configuration data and historical execution data. In this case, the task priority of each other verification task can be calculated according to the aforementioned calculation process of the task priority of the verification task, which will not be elaborated here.

[0129] S1043, Based on the task priority corresponding to the verification task and the task priorities corresponding to other verification tasks, determine from other verification tasks whether there is a first task that can be migrated.

[0130] Here, the first task refers to a verification task that is currently being executed but has a lower priority than the verification task to be scheduled and that supports cross-node migration.

[0131] In one possible implementation, if there is only one other verification task with a lower priority than the verification task, then the other verification task with a lower priority than the verification task can be directly determined as the first task; if there are multiple other verification tasks with a lower priority than the verification task, then the other verification task with the lowest priority can be determined as the first task.

[0132] In another possible implementation, the process of step S1043, "determining whether there is a first task that can be migrated from other verification tasks according to the task priority corresponding to the verification task and the task priorities corresponding to other verification tasks," may include: determining at least one other verification task with a task priority lower than that of the verification task as a first candidate task; detecting whether the first candidate task meets a preset condition; if the first candidate task meets the preset condition, determining the first candidate task as the first task; if the first candidate task does not meet the preset condition, determining the second candidate task with the lowest task priority from the other first candidate tasks, and detecting whether the second candidate task meets the preset condition.

[0133] Here, the first candidate task is used to represent other verification tasks with lower priority than the current verification task after the task priority comparison is selected, and it is sent to the subsequent condition detection as the initial object for task migration judgment.

[0134] Here, the preset conditions are used to characterize whether a candidate task is suitable for task migration. They can usually be judged by a comprehensive assessment of the relationship between migration cost, pause overhead, remaining execution volume, and the benefits after task migration.

[0135] Here, the second candidate task is used to further filter the target tasks obtained from multiple first candidate tasks. It has the lowest task priority, which makes it easier to continue to find more suitable objects for task migration when the previous candidate task does not meet the conditions.

[0136] In this embodiment of the application, after receiving the task priority of the current verification task and the task priorities of other verification tasks, tasks with lower task priorities than the current verification task are first screened out from the set of other verification tasks being executed, and these are used as the first candidate task set; then the execution status, remaining execution time, occupied resources, and task migration storage overhead of the first candidate task are matched and judged to determine whether they meet the preset conditions.

[0137] In some embodiments, the first candidate task with the lowest task priority can be selected, and it can be checked whether it meets the preset conditions. If it does, it can be directly marked as the first task and the subsequent task migration control can be triggered.

[0138] In some embodiments, when the first candidate task does not meet the preset conditions, the task with the lowest priority among the remaining first candidate tasks is selected as the second candidate task, and the same condition detection is performed on the second candidate task again until a first task that meets the preset conditions is detected.

[0139] Regarding the detection process, in one possible implementation, the estimated migration time and remaining runtime of the first candidate task can be detected. If the time loss caused by migration is less than the loss caused by the task to be scheduled continuously waiting, it is determined that the preset conditions are met and it is identified as the first task.

[0140] In another possible implementation, the process of "detecting that the first candidate task meets the preset conditions" may include: detecting whether the migration cost of the first candidate task is less than the expected benefit of the verification task after the first candidate task is migrated; if the migration cost is less than the expected benefit, then the first candidate task is determined to meet the preset conditions; if the migration cost is greater than the expected benefit, then the first candidate task is determined not to meet the preset conditions.

[0141] Among them, migration cost represents the time cost of migrating the first candidate task to other nodes for execution, and the expected benefit is the time gain of migrating the first candidate task and executing the verification task after freeing up computing resources, compared to not migrating the first candidate task and having the verification task queue up in place.

[0142] Understandably, relying solely on priority to determine task migration can have negative effects: if the migration takes a long time, the waiting time saved by the verification task cannot cover the additional delay caused by the migration, and the overall verification cycle will actually be lengthened.

[0143] Therefore, in this embodiment of the application, by comparing migration costs with expected benefits, the actual value of migration behavior is quantified from a time perspective, thus avoiding the execution of migration operations that are not worth the cost.

[0144] Regarding the calculation process of migration cost, in some embodiments, for the first candidate task, the basic migration cost can be obtained by summing information such as average transmission latency and recovery runtime based on its historical execution data; then, the final migration cost can be obtained by combining the current cluster network bandwidth usage and node load in real time.

[0145] Regarding the calculation process of expected benefits, in some embodiments, the historical execution data of the first candidate task can be read to estimate the remaining runtime of the task. This runtime is the estimated waiting time for the verification task to queue in place. Adding the estimated execution time of the verification task and subtracting the migration cost, the expected time gain corresponding to the migration of the first candidate task can be obtained, that is, the expected benefit.

[0146] Next, the expected benefits can be compared with the migration costs. In some embodiments, when the migration costs are lower than the expected benefits, it means that performing the task migration can shorten the waiting time of key verification tasks, generate positive benefits for the overall progress of chip verification, and is worth implementing the migration.

[0147] In some embodiments, when the migration cost exceeds the expected benefits, implementing task migration will lengthen the overall verification cycle. In this case, the migration of the current first candidate task should be abandoned, and other candidate tasks should be searched instead to avoid ineffective scheduling.

[0148] In this way, by quantitatively comparing the migration time cost of the first candidate task with the time gain that the verification task can obtain, we can distinguish whether the migration behavior can bring positive efficiency improvement. Only when the migration cost is less than the expected benefit is the candidate task considered to meet the preset conditions, otherwise the current candidate task is abandoned. This can effectively avoid blind task migration that is unprofitable and not worth the effort, reduce unnecessary simulation interruptions and data transmission overhead. Combined with the progressive screening mechanism of candidate tasks mentioned above, the preemptive migration scheduling takes into account both priority rules and time efficiency, further enhancing the adaptability and rationality of the entire scheduling mechanism.

[0149] Based on the aforementioned embodiments, firstly, candidate tasks with preemption eligibility are selected based on priority. Migration condition checks are then performed on these candidate tasks. If the first candidate task does not meet the migration requirements, the second candidate task with the lowest priority among the remaining candidates is automatically selected for further testing. This achieves an orderly and reasonable progressive search for transferable tasks. It strictly adheres to the scheduling rule of high-priority tasks preempting low-priority tasks while fully verifying the feasibility of task migration, avoiding invalid migrations and arbitrary interruptions of critical tasks. In cluster resource saturation scenarios, this increases the probability of discovering transferable tasks, enhances the fault tolerance and adaptability of the preemption scheduling mechanism, further improves the flexibility of the entire scheduling scheme, ensures that high-value verification tasks can quickly acquire computing resources, and accelerates the chip verification process.

[0150] S1044, If a first task exists, perform task migration for the first task and schedule the verification task to be executed on the node corresponding to the first task.

[0151] Here, task migration refers to interrupting the current execution of the first running task, transferring its relevant execution data to other idle nodes, resuming the simulation on the new nodes, and thus freeing up the current node to execute verification tasks with higher priority.

[0152] Understandably, the first task is a verification task that can be migrated. Therefore, after finding a suitable first task, there is no need to wait for the first task to finish running completely. Computing power can be released immediately for high-priority tasks to be scheduled, thus solving the problem of long-term blocking of urgent and high-value tasks.

[0153] Regarding the task migration process, in one possible implementation,

[0154] In another possible implementation, the process of "migrating the first task" in S1044 may include: sending a process pause command to the node currently executing the first task to stop the execution of the first task; capturing the current environment state from the node executing the first task, the current environment state including component objects, configuration database, sequence queue state, and random number generator seed in the node corresponding to the first task; performing serialization and compression processing on the current environment state to obtain the archived data corresponding to the first task; storing the archived data in a preset storage location and releasing the computing resources in the node corresponding to the first task.

[0155] Here, the process pause instruction is used to send a pause control signal to the node currently carrying the first task, so that the node stops continuing to execute the first task and enters the grabbing state.

[0156] In this embodiment of the application, in order to lock the current running status of the first task and avoid snapshot distortion caused by dynamic changes in data during the status acquisition, a process pause command will be sent to the node corresponding to the first task to instruct the node corresponding to the first task to stop executing the first task and perform an archiving operation.

[0157] In this embodiment of the application, the archiving operation, that is, capturing the current environmental state of the node corresponding to the first task, thereby avoiding the loss of critical states.

[0158] Here, the current environment state is used to characterize the runtime context of the simulation environment within the node when the first task is paused. Specifically, the component object records the instance state of each execution component in the simulation environment within the node; the configuration database stores configuration parameters during task execution; the sequence queue state reflects the sequences to be processed and their queuing relationships; and the random number generator seed maintains consistency in random behavior before and after the migration.

[0159] Regarding the process of capturing the current environment state, in one possible implementation, all execution components of the simulation environment in the node corresponding to the first task can be traversed to capture the current environment state.

[0160] Understandably, the original current environment state data is large in volume, and direct transmission and storage would consume a lot of network bandwidth and storage space. Therefore, the current environment data can be serialized and compressed according to preset rules. Serialization can unify the data format and ensure cross-node parsing, while compression can reduce transmission time and lower migration costs.

[0161] In this embodiment of the application, after the previous environment state is processed by sequence compression, storable archived data is generated, and the archived data is used to subsequently restore the execution of the first task.

[0162] Here, the archived data contains serialized and compressed environmental state information, and a preset storage location is used to save the archived data for subsequent recovery and retrieval.

[0163] Once the storage data is obtained, it can be stored in a preset storage location. Here, the preset storage location can refer to a storage area such as a shared storage server or distributed object storage within the cluster, which can be used by other computing nodes to read the archived data.

[0164] In this embodiment of the application, the preset storage location can be located on a storage node in the cluster that is dedicated to shared storage, or it can be located in the first node.

[0165] After storing the archived data that can be used to restore the first task's execution in a preset storage location, and ensuring that the archived data is not lost, the computing resources of the node corresponding to the first task can be released so that the node can execute a higher-priority verification task.

[0166] In this way, by sequentially pausing the simulation process, capturing the full simulation environment state, serializing and compressing the state to generate archived data, persisting the snapshot, and releasing node resources, a complete snapshot of the chip verification task's runtime context can be preserved. This allows for the safe freeing up of node computing resources for high-priority pending verification tasks without disrupting simulation continuity or ensuring the reproducibility of verification results, supporting the implementation of a preemptive scheduling mechanism. At the same time, by fully acquiring the state and controlling migration overhead through data compression and transmission, the risk of simulation anomalies caused by task migration is reduced, improving the dynamic computing power reallocation capability in cluster resource congestion scenarios and enhancing the flexibility of the entire verification task scheduling scheme.

[0167] Based on the foregoing embodiments, the method further includes: detecting whether there is a third node capable of executing the first task based on the computing resources required by the first task; if there is a third node, scheduling the first task to be executed on the third node based on the archived data.

[0168] Understandably, the first task cannot be terminated directly after it is moved out of the original node. A new node needs to be found to take over and continue the simulation in order to ensure that the verification work is not interrupted. Therefore, before releasing the resources of the original node, it is necessary to pre-search for a third node with the capacity to carry it, so as to avoid the verification task being interrupted due to the lack of a node to run after the first task is moved out.

[0169] Here, the third node refers to the computing node in the cluster that, apart from the original node running the first task, has sufficient available resources to match the remaining cycle resource requirements of the first task and can take over the operation of the first task after migration.

[0170] In this embodiment of the application, it is necessary to first estimate the computing resources required for the first task.

[0171] In one possible implementation, when the first task is scheduled to be executed on the original node, its resource requirement data will be obtained. Therefore, the computing resources currently required by the first task can be determined directly based on the resource requirement data.

[0172] In another possible implementation, after the first task reaches its current state, the resource data required by it may change. Therefore, the computing resources required by the first task can be re-evaluated based on the current environment state in the archived data, thereby determining the computing resources required by the first task.

[0173] Once the computing resources required for the first task are determined, the computing nodes in the cluster can be traversed to select a third node that can carry the first task, and the first task can be scheduled to run on the third node according to the archived data.

[0174] In this embodiment of the application, after determining that a third node exists, the archived data corresponding to the first task can be read from the preset storage location to complete the data decompression and deserialization of the current environment state, restore all simulation states such as component objects, random number seeds, and transaction queues, and start the simulation process to continue executing the first task.

[0175] It is understandable that the verification task to be scheduled cannot find an available second node and therefore needs to preempt the original node to execute the first task, while the first task can retrieve other nodes to execute. This is mainly due to the difference in resource requirements between the verification task and the first task, as well as the fragmentation of cluster computing power.

[0176] In some embodiments, if no third node is detected, the first task can be marked as suspended and its archived data can be retained. The resources of each node in the target cluster can be periodically polled to continuously detect available third nodes. Alternatively, the execution of the first task can be resumed on the original node after the node that originally executed the first task has completed the verification task.

[0177] In this way, based on the resource requirements of the first task, a third node capable of supporting the task's operation is retrieved. After finding a suitable third node, the simulation is restored remotely using archived data, enabling the migrated first task to continue its verification work without interruption due to preemptive scheduling. The entire migration link forms a closed loop, which can free up node resources for high-priority verification tasks awaiting scheduling, while ensuring that low-priority verification tasks do not lose their progress. It takes into account the advancement needs of verification tasks of different priorities, further improves the preemptive migration scheduling capability in cluster congestion scenarios, and enhances the reliability and flexibility of the entire scheduling scheme.

[0178] In the above embodiments, when there is no second node in the cluster that meets the resource requirements, the execution status of running tasks in the cluster is collected first, and the priority of each running task is dynamically recalculated. The priority of each running task is compared with that of the task to be scheduled for verification to select the first task that can be migrated. By migrating low-priority running tasks, node resources are freed up to supply high-priority tasks for execution, realizing dynamic preemption scheduling in resource congestion scenarios. This makes up for the shortcomings of traditional scheduling in that it does not have the ability to elastically preempt tasks, further improving the flexibility of the entire scheduling scheme. The computing power allocation can be dynamically adjusted according to the real-time task value, reducing the blocking delay of high-priority verification tasks and optimizing the computing power utilization efficiency of the distributed cluster.

[0179] The following describes the application of the embodiments of this application in a real-world scenario.

[0180] Figure 3 This is a schematic diagram of an architecture provided for an embodiment of this application.

[0181] Reference Figure 3As can be seen from the embodiments of this application, the first node executing the distributed chip verification task scheduling method may include the following software modules:

[0182] Dynamic Priority Evaluation Engine 311: Calculates task priorities in real time based on multi-dimensional factors (test importance, historical failure rate, coverage contribution, time urgency, and resource requirements).

[0183] Task Migration Manager 312: Responsible for monitoring node load, safely suspending, migrating, and resuming tasks when needed, and supporting priority-based preemption.

[0184] Predictive Analysis Module 313: Based on machine learning analysis of historical task execution patterns, predict future resource requirements and task execution time.

[0185] Adaptive Task Decomposer 314: Automatically breaks down large verification scenarios into subtasks that can be executed in parallel, and recombines the results when appropriate.

[0186] It is understandable that, in addition to the first node, resource monitoring agents 320 can also be configured on each task execution node 330 in the target cluster that can execute verification tasks. These resource monitoring agents may include:

[0187] Node Resource Collector 321: Collects real-time data on the CPU utilization, memory usage, network bandwidth, component load, and other resource status of computing nodes.

[0188] Task Status Monitor 322: Monitors the resource consumption, execution progress, and status changes of running tasks.

[0189] For each task execution node 330, it may include:

[0190] Verification Environment 331: Performs specific verification tasks, including compilation, simulation, and result collection.

[0191] Task migration executor 332: performs task suspension, state saving, migration and recovery operations according to scheduling instructions.

[0192] It is understandable that this architecture may also include a task submission and management interface 340, which includes:

[0193] Task submission interface 341: Receives verification tasks submitted by users, including test cases, configuration parameters and initial priority.

[0194] Task Status Database 342: Stores task metadata, execution history, priority change records, and scheduling decision logs.

[0195] Figure 4 A flowchart illustrating the distributed chip verification task scheduling method provided in this application embodiment. Figure 3 , refer to Figure 4 The method includes:

[0196] S401, Verification task submission and initialization.

[0197] S402 monitors and collects historical execution data generated by each node when performing different verification tasks.

[0198] S403, dynamically evaluates the task priority of verification tasks.

[0199] S404, Predictive analysis and verification of resource requirement data for tasks.

[0200] S405 makes scheduling decisions based on task priority and resource requirement data.

[0201] S406 performs task migration when the load on each node in the target cluster is uneven, scheduling the verification task to an idle node.

[0202] S407: When the load is balanced across all nodes in the target data group, i.e., all nodes are occupied, check whether the priority of the verification task is higher than other verification tasks that are being executed. If so, perform task preemption, select the first task to migrate the task, and schedule the verification task to the corresponding node for execution.

[0203] S408 If the priority of a verification task is lower than that of other verification tasks, then wait for a node that can execute the verification task to do so and monitor it.

[0204] S409: Before executing a verification task, it can be checked whether the verification task needs to be decomposed. If so, the task can be decomposed.

[0205] S410, after the task is completed, collect the task execution results.

[0206] S411, based on the task execution results, provides feedback and optimization on the evaluation model and scheduling decisions of the preceding resource demand data.

[0207] Figure 5 This is a schematic diagram of the structure of the distributed chip verification task scheduling device provided in the embodiments of this application, as shown below. Figure 5 As shown, the distributed chip verification task scheduling device 50 provided in this embodiment includes:

[0208] The acquisition module 501 is used to acquire the configuration data, metadata, and historical execution data of the verification tasks to be scheduled in the target chip verification scheme. The configuration data includes importance configuration and urgency configuration. The importance configuration represents the importance of the verification task in the target chip verification scheme, and the urgency configuration represents the time urgency of executing the verification task.

[0209] The priority dynamic perception module 502 is used to determine the task priority corresponding to the verification task based on configuration data, metadata and historical execution data;

[0210] The resource assessment module 503 is used to determine the resource requirements data of the verification task based on historical execution data. The resource requirements data represent the computing resources required by the verification task at different points in time.

[0211] The scheduling module 504 is used to schedule the verification task according to the task priority if there is no second node in the target cluster that meets the resource requirements.

[0212] In one possible implementation, the priority dynamic sensing module 502 includes:

[0213] The determination unit is used to determine the estimated coverage contribution and resource requirement complexity of the verification task based on metadata and historical execution data. The estimated coverage contribution represents the increase in verification coverage after executing the verification task, and the resource requirement complexity represents the degree of computational resource consumption of the verification task.

[0214] The weighted unit is used to perform a weighted summation calculation on the estimated coverage contribution, resource requirement complexity, importance configuration, and urgency configuration, and determine the calculation result as the task priority.

[0215] In one possible implementation, the distributed chip verification task scheduling device 50 further includes:

[0216] The update module is used to update the configuration data of other verification tasks that are being executed on each node in the target cluster; for each other verification task, the task priority of the other verification task is updated according to the updated configuration data of the other verification task.

[0217] In one possible implementation, the scheduling module 504 includes:

[0218] The status acquisition unit is used to acquire the execution status of other verification tasks that are currently being executed.

[0219] Other priority acquisition units are used to determine the task priority of other verification tasks based on the execution status of each other verification task.

[0220] The comparison unit is used to determine, based on the task priority of the verification task and the task priorities of other verification tasks, whether there is a first task that can be migrated.

[0221] The migration unit is used to migrate the first task if a first task exists, and schedule the verification task to be executed on the node corresponding to the first task.

[0222] In one possible implementation, the migration unit is specifically used to: send a process pause instruction to the node currently executing the first task to stop the execution of the first task; capture the current environment state from the node executing the first task, the current environment state including component objects, configuration database, sequence queue state, and random number generator seed in the node corresponding to the first task; perform serialization and compression processing on the current environment state to obtain the archived data corresponding to the first task; store the archived data in a preset storage location and release the computing resources in the node corresponding to the first task.

[0223] In one possible implementation, the migration unit is also used to: detect whether there is a third node that can execute the first task based on the computing resources required by the first task; if there is a third node, schedule the first task to be executed on the third node based on the archived data.

[0224] In one possible implementation, the migration unit is specifically used to perform: determining at least one other verification task with a task priority lower than the verification task as a first candidate task; detecting that the first candidate task meets a preset condition; if the first candidate task meets the preset condition, determining the first candidate task as the first task; if the first candidate task does not meet the preset condition, determining the second candidate task with the lowest task priority from the other first candidate tasks, and detecting whether the second candidate task meets the preset condition.

[0225] In one possible implementation, the migration unit is also used to perform:

[0226] The system checks whether the migration cost of migrating the first candidate task is less than the expected benefit of executing the verification task after migrating the first candidate task. The migration cost represents the time cost of migrating the first candidate task to another node for execution, and the expected benefit is the time gain of migrating the first candidate task and executing the verification task after freeing up computing resources, compared to not migrating the first candidate task and having the verification task queued in place. If the migration cost is less than the expected benefit, the first candidate task is determined to meet the preset conditions; if the migration cost is greater than the expected benefit, the first candidate task is determined not to meet the preset conditions.

[0227] In one possible implementation, the distributed chip verification task scheduling device 50 further includes:

[0228] The direct scheduling module is used to schedule the verification task to be executed on the second node if a second node exists.

[0229] The distributed chip verification task scheduling device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.

[0230] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device can be the first node in the target cluster, or it can be another node performing the verification task. Figure 6 As shown, the electronic device 60 provided in this embodiment includes at least one processor 601 and a memory 602. Optionally, the device 60 further includes a communication component 603. The processor 601, memory 602, and communication component 603 are connected via a bus 604.

[0231] In a specific implementation, at least one processor 601 executes computer execution instructions stored in memory 602, causing at least one processor 601 to perform the above-described method.

[0232] The specific implementation process of processor 601 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.

[0233] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.

[0234] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.

[0235] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.

[0236] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.

[0237] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.

[0238] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.

[0239] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.

[0240] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.

[0241] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0242] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0243] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0244] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0245] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.

Claims

1. A distributed chip verification task scheduling method, characterized in that, Applied to the first node in the target cluster, including: In the target chip verification scheme, the configuration data, metadata, and historical execution data of the verification tasks to be scheduled are obtained. The configuration data includes importance configuration and urgency configuration. The importance configuration represents the importance of the verification task in the target chip verification scheme, and the urgency configuration represents the time urgency of executing the verification task. Based on the configuration data, the metadata, and the historical execution data, the task priority corresponding to the verification task is determined; The resource requirement data of the verification task is determined based on the historical execution data, and the resource requirement data represents the computing resources required by the verification task at different points in time. If there is no second node in the target cluster that meets the resource requirements, the verification task is scheduled according to the task priority.

2. The method according to claim 1, characterized in that, The step of determining the task priority corresponding to the verification task based on the configuration data, the metadata, and the historical execution data includes: The estimated coverage contribution and resource requirement complexity of the verification task are determined based on the metadata and the historical execution data. The estimated coverage contribution represents the incremental verification coverage after executing the verification task, and the resource requirement complexity represents the degree of computational resource consumption of the verification task. The estimated coverage contribution, the resource requirement complexity, the importance configuration, and the urgency configuration are weighted and summed to determine the task priority.

3. The method according to claim 1, characterized in that, The method further includes: Update the configuration data of other verification tasks currently being executed on each node in the target cluster; For each of the other verification tasks, the task priority of the other verification task is updated according to the updated configuration data corresponding to the other verification task.

4. The method according to claim 1, characterized in that, The step of scheduling the verification task according to the task priority includes: Get the execution status of other verification tasks that are currently being executed; The task priority of each of the other verification tasks is determined based on its execution status. Based on the task priority corresponding to the verification task and the task priorities corresponding to the other verification tasks, determine whether there is a first task that can be migrated from the other verification tasks; If the first task exists, perform task migration on the first task and schedule the verification task to be executed on the node corresponding to the first task.

5. The method according to claim 4, characterized in that, The task migration for the first task includes: Send a process pause command to the node currently executing the first task to stop the execution of the first task; The current environment state is captured from the node executing the first task. The current environment state includes the component objects, configuration database, sequence queue state, and random number generator seed in the node corresponding to the first task. The current environment state is serialized and compressed to obtain the archived data corresponding to the first task; The archived data is stored in a preset storage location, and the computing resources in the node corresponding to the first task are released.

6. The method according to claim 5, characterized in that, The method further includes: Based on the computing resources required for the first task, detect whether there is a third node capable of executing the first task; If the third node exists, the first task is scheduled to be executed on the third node according to the archived data.

7. The method according to claim 4, characterized in that, The step of determining whether there exists a first task that can be migrated from the other verification tasks based on the task priority corresponding to the verification task and the task priorities corresponding to the other verification tasks includes: Identify at least one other verification task with a priority lower than that of the verification task as a first candidate task; If the first candidate task meets the preset conditions, then the first candidate task is determined to be the first task. If the first candidate task does not meet the preset conditions, the second candidate task with the lowest priority is determined from the other first candidate tasks, and it is checked whether the second candidate task meets the preset conditions.

8. The method according to claim 7, characterized in that, The detection that the first candidate task meets preset conditions includes: The migration cost of migrating the first candidate task is less than the expected benefit of executing the verification task after migrating the first candidate task. The migration cost represents the time cost of migrating the first candidate task to other nodes for execution. The expected benefit is the time gain of migrating the first candidate task and executing the verification task after freeing up computing resources, compared to not migrating the first candidate task and having the verification task queue up in place. If the migration cost is less than the expected benefit, then the first candidate task is determined to meet the preset condition; If the migration cost is greater than the expected benefit, then the first candidate task is determined not to meet the preset condition.

9. The method according to claim 1, characterized in that, The method further includes: If the second node exists, schedule the verification task to be executed on the second node.

10. A distributed chip verification task scheduling device, characterized in that, Applied to the first node in the target cluster, including: The acquisition module is used to acquire the configuration data, metadata, and historical execution data of the verification tasks to be scheduled in the target chip verification scheme. The configuration data includes importance configuration and urgency configuration. The importance configuration represents the importance of the verification task in the target chip verification scheme, and the urgency configuration represents the time urgency of executing the verification task. The priority dynamic perception module is used to determine the task priority corresponding to the verification task based on the configuration data, the metadata, and the historical execution data. The resource assessment module is used to determine the resource requirement data of the verification task based on the historical execution data, wherein the resource requirement data represents the computing resources required by the verification task at different points in time. The scheduling module is used to schedule the verification task according to the task priority if there is no second node in the target cluster that meets the resource requirements.