Operation dependency scheduling method, component and processor for out-of-order superscalar processor

Through the scheduling mechanism that combines dependency matrix and register number comparison, it solves the problem of increasing dependency detection and tracking complexity in out-of-order superscalar processors, and realizes fast wake-up of micro-operations and cancellation of dependent micro-operations, improving processor performance.

CN114780149BActive Publication Date: 2024-09-20NAT UNIV OF DEFENSE TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210361643.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-07
Publication Date
2024-09-20
Estimated Expiration
2042-04-07

AI Technical Summary

Technical Problem

In existing out-of-order superscalar processors, as the number of issue queue items and execution paths increases, the complexity of dependency detection and tracking increases significantly, resulting in micro-operation dependency detection and cancellation problems.

Method used

A scheduling mechanism that combines dependency matrix and register number comparison is used to rename micro-operations, record dependency information, update dependency matrices, select ready micro-operations to launch, and perform source operand acquisition and micro-operation cancellation in the execution pipeline.

Benefits of technology

It achieves fast wake-up of micro-operation dependency detection, determination of source operands and rapid cancellation of dependent micro-operations, reducing comparison logic complexity and improving processor performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114780149B
    Figure CN114780149B
Patent Text Reader

Abstract

The present invention discloses an operation dependency scheduling method, component and processor for an out-of-order superscalar processor. The present invention includes using a dependency matrix to record dependency information between micro-operations, updating the dependency matrix according to the micro-operation information of the result to be written back, selecting ready micro-operations to be emitted to each execution pipeline; in each execution pipeline, comparing the register number of the source operand of the micro-operation and the register number of the destination operand returned by the execution pipeline to select to obtain the source operand from the bypass or register, and if a micro-operation is cancelled, the micro-operation that depends on it is cancelled. The present invention only requires less comparison logic, can realize dependency detection, fast wake-up, source operand source determination and fast cancellation of micro-operations with dependencies, and effectively solves the problem of greatly increased complexity of dependency detection, tracking and handling caused by the increase in the number of emission queue items and execution paths.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to microprocessor design technology, and in particular relates to an operation dependency scheduling method, component and processor for an out-of-order superscalar processor. Background Art

[0002] With the upgrade of chip technology, the number of transistors that can be accommodated in the chip has increased rapidly, and the microarchitecture optimization technology of high-performance processors has also developed rapidly towards higher parallelism and higher execution efficiency. For high-performance processors with out-of-order superscalar technology, it has become an inevitable trend to use more logic brought by process upgrades to increase the port width of the front and back ends of the CPU. For example, the processor's launch port has been upgraded from four launches to eight launches, and the number of launch queue items and result buses has also increased rapidly. However, the impact that follows is that the bypass logic overhead of each result bus to each launch item in the launch queue has increased sharply, and the launch queue design modules closely related to bypass, such as the resolution of dependencies between micro-operations and dependency tracking for matching source operands, are also gradually facing the problems of increased complexity and tight timing. In short, the design of the launch queue has become a key factor limiting the performance of high-performance general-purpose processors.

[0003] With the trend of the front and back ends of microprocessors becoming wider, the depth of the emission queue increases and the data execution path increases, which leads to the problem of dependency detection of the micro-operations to be emitted in each emission item of the emission queue and the tracking and disposal after detection becoming difficult. The source operand of the micro-operation may come from the bypass. Therefore, in order to wake up the micro-operation with data dependency, it is necessary to confirm whether the micro-operations in the emission queue have met the emission requirements. That is, it is necessary to first detect whether there is a dependency relationship between the micro-operations in the queue and the micro-operations in the execution path. If there is a dependency relationship, it is judged from the timing cycle whether the subsequent emission stage can correctly obtain the dependent data through the bypass. In this regard, the general practice is to detect the dependency relationship between the micro-operations in the queue and the micro-operations in the execution path by comparing the bypass register tag (tag, register number). Then, it is judged when the micro-operation in the queue can be emitted according to the detected dependency relationship. At the same time, the detected dependency relationship is also used for subsequent micro-operations to determine the source of the source operand and quickly and continuously cancel the emitted micro-operations. Therefore, it is necessary to continuously track the dependency relationship and deal with the problem of operand source and micro-operation cancellation according to the dependency information. However, tag comparison requires that the destination operand register tag of each execution path result bus be compared with the source register tag of each micro-operation in the transmit queue. As the number of result buses and the number of transmit queue items both increase rapidly, the comparison logic complexity makes the area and timing unacceptable. Summary of the invention

[0004] Technical problem to be solved by the present invention: In view of the above-mentioned problems in the prior art, a method, component and processor for scheduling operation dependencies of an out-of-order superscalar processor are provided. The present invention only requires less comparison logic, and can realize dependency detection, fast wake-up, determination of the source operand source and fast cancellation of micro-operations with dependencies, effectively solving the difficult problem of greatly increased complexity of dependency detection, tracking and handling due to the increase in the number of emission queue items and execution paths.

[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0006] An operation dependency scheduling method for an out-of-order superscalar processor, comprising:

[0007] 1) Rename the decoded new micro-operations, obtain the dependency information between micro-operations, and dispatch them to the emission queue;

[0008] 2) Using a dependency matrix to record the dependency information between micro-operations, and updating the dependency matrix based on the micro-operation information returned by the execution pipeline that is about to write back the result, and selecting the ready micro-operations to be sent to each execution pipeline respectively;

[0009] 3) In each execution pipeline, the register number of the source operand of the micro-operation to be emitted and the register number of the destination operand returned by the execution pipeline to write back the result are compared. If they match, the source operand is directly obtained from the bypass corresponding to the destination operand register returned by the execution pipeline. If the micro-operation corresponding to the destination operand register returned by the execution pipeline is cancelled, the emitted micro-operation is also cancelled; otherwise, the source operand is obtained from the register stack;

[0010] 4) If the issued micro-operation is not canceled, the issued micro-operation is executed in the execution pipeline, and when the issued micro-operation is executed in the execution pipeline to the pipeline station corresponding to its execution cycle, the micro-operation information of the micro-operation and the register number of the destination operand are returned.

[0011] Optionally, obtaining dependency information between micro-operations in step 1) is achieved through a producer table for recording destination memory numbers of micro-operations whose results are not written back, and obtaining dependency information between micro-operations includes: mapping and matching the register number of the source operand of the decoded new micro-operation and the destination memory number of each micro-operation whose results are not written back recorded in the producer table, and if the two match, it is determined that the decoded new micro-operation has a dependency relationship with the matched micro-operation whose results are not written back.

[0012] Optionally, each row in the producer table represents a micro-operation, and each row includes two columns, the first column is the micro-operation sequence number, and the second column is the label value of the destination memory number of the micro-operation.

[0013] Optionally, in step 2), using a dependency matrix to record dependency information between micro-operations includes: generating a record in the dependency matrix for the new micro-operation after decoding, and the record includes a corresponding flag bit for all micro-operations whose results are not written back. The flag bit has a value of 1, indicating that the new micro-operation after decoding depends on the micro-operation whose results are not written back corresponding to the flag bit, and the flag bit has a value of 0, indicating that the new micro-operation after decoding does not depend on the micro-operation whose results are not written back corresponding to the flag bit.

[0014] Optionally, in step 2), updating the dependency matrix according to the micro-operation information of the write-back result returned by the execution pipeline includes: receiving the entry number entry_num corresponding to the micro-operation of the write-back result returned by each execution pipeline in each clock cycle, decoding the entry number entry_num corresponding to all micro-operations of the write-back result returned by each execution pipeline to form a clear vector, and releasing the micro-operation corresponding to each entry number entry_num in the dependency matrix corresponding to the clear vector, and setting the corresponding flag positions of all other micro-operations that depend on the released micro-operation to 0; in step 4), returning the micro-operation information of the result to be written back refers to generating a selection vector Px_Entry_num from the micro-operation information of the result to be written back returned by all pipeline stations in the same execution pipeline, the selection vector Px_Entry_num corresponds one-to-one to the execution pipeline and the dependency matrix, and the value of a bit in the selection vector Px_Entry_num is 1, indicating that the corresponding micro-operation in the dependency matrix is ​​about to write back the result.

[0015] Optionally, in step 2), selecting micro-operations that meet the emission conditions for emission includes: performing an OR-NOT operation on all flag bits of each record in the dependency matrix in each clock cycle; if the result of the OR-NOT operation is 1, it is determined that the source operands of the micro-operation corresponding to the record are all ready and meet the emission conditions; otherwise, it is determined that the source operands of the micro-operation corresponding to the record are not all ready and do not meet the emission conditions; concatenating the results of all OR-NOT operations of the same dependency matrix to form a ready vector, which is used to select the n oldest micro-operations for emission among the micro-operations whose source operands are all ready and meet the emission conditions recorded in each dependency matrix according to the ready vector so that one micro-operation is emitted to each pipeline, where n is the number of execution pipelines.

[0016] Optionally, step 3) includes: sending the register number dly0_tag of the destination operand returned by the execution pipeline to be written back to the first-level pipeline station i1 of each execution pipeline, and at the same time, the register number dly0_tag is also continuously stored in sequence for multiple beat cycles to form multiple intermediate register numbers dlyi_tag; in each execution pipeline, starting from the first-level pipeline station i1, the register number of each source operand of the micro-operation in each level of the pipeline station is compared with the register number dly0_tag and each intermediate register number dlyi_tag, and if it is the same as the register number dly0_tag or each intermediate register number dlyi_tag, If it matches any one of the intermediate register numbers dlyi_tag, the source operand of the micro-operation is determined to be obtained from the bypass corresponding to the destination operand register returned from the execution pipeline, and the timing information of the source operand is obtained as the timing corresponding to the register number dly0_tag or each intermediate register number dlyi_tag. If the micro-operation with register number dly0_tag as the destination operand register is cancelled, the pipeline station will also cancel the micro-operation issued; if it matches the register number dly0_tag and each intermediate register number dlyi_tag evenly, the source operand is obtained from the register stack.

[0017] The present invention also provides an operation dependency scheduling component used in the above operation dependency scheduling method, comprising:

[0018] The renaming module is used to rename the new micro-operations after decoding;

[0019] Dependency detection module, used to obtain dependency information between micro-operations;

[0020] A dispatch module, used to dispatch micro-operations that complete dependency information detection to a launch queue;

[0021] A dependency matrix module is used to record dependency information between micro-operations using a dependency matrix, and update the dependency matrix according to micro-operation information about the results to be written back returned by the execution pipeline;

[0022] A selection logic, for selecting ready micro-operations based on a dependency matrix module and transmitting them to each execution pipeline respectively;

[0023] A tag comparator is used to compare the register number of the source operand of the micro-operation to be emitted and the register number of the destination operand to be written back by the execution pipeline in each execution pipeline;

[0024] A source operand acquisition module is used to directly acquire the source operand from the bypass corresponding to the destination operand register returned by the execution pipeline when the result of the comparison by the tag comparator is a match; otherwise, the source operand is acquired from the register stack;

[0025] A micro-operation cancel module is used to cancel the issued micro-operation if the micro-operation corresponding to the destination operand register returned from the execution pipeline is canceled when the result of the comparison obtained by the tag comparator is a match;

[0026] An execution module, used for executing the issued micro-operation in the execution pipeline when the issued micro-operation is not cancelled, and returning the micro-operation information of the micro-operation and the register number of the destination operand when the issued micro-operation is executed in the execution pipeline to the pipeline station corresponding to its execution cycle;

[0027] The dependency matrix module corresponds one-to-one to the execution pipeline in the microprocessor, and the dependency matrix module includes:

[0028] An entry register item is used to record the entry number of any item in the emission queue corresponding to the dependency matrix module;

[0029] The valid flag is used to indicate the valid state of any micro-operation in the corresponding emission queue of the dependency matrix module;

[0030] A dependency matrix, used to record dependency information between all micro-operations that have not been written back, wherein the flag bit of any i-th row and j-th column in the dependency matrix indicates that the source operand of the i-th micro-operation in the emission queue depends on the destination operand of the j-th micro-operation, where a state of 1 indicates a dependency relationship, and a state of 0 indicates no dependency relationship;

[0031] The NOR logic is used to perform a NOR operation on all the bits of each row of the dependency matrix, and the NOR operation result forms a ready vector corresponding to the micro-operation of the row to select the ready micro-operation to be respectively transmitted to the corresponding execution pipeline. If the ready vector is a bit of 1, it means that the source operands of the micro-operation corresponding to the bit are all ready and meet the transmission conditions;

[0032] A decoder is used to update the dependency matrix according to the micro-operation information of the result to be written back returned by the execution pipeline.

[0033] In addition, the present invention also provides an out-of-order superscalar processor, including a decoder and a back-end scheduling module connected to the decoder, wherein the back-end scheduling module is programmed or configured to execute the steps of the operation dependency scheduling method for the out-of-order superscalar processor, or the back-end scheduling module is the operation dependency scheduling component.

[0034] In addition, the present invention also provides a computer-readable storage medium, in which a computer program is stored. The computer program is used to be executed by a microprocessor to implement the steps of the operation dependency scheduling method for an out-of-order superscalar processor.

[0035] Compared with the prior art, the present invention mainly has the following advantages:

[0036] The present invention uses a transmission queue scheduling mechanism that combines a dependency matrix with a register number (tag) comparison, so that it has multiple advantages of the two mechanisms.

[0037] 1. From the perspective of the number of comparators, if only the register number comparison method is used, the register number information fed back by the execution pipeline needs to be fed back to each entry, and the number of comparators required is relatively large. However, in the present invention, the register number information fed back by the execution pipeline only needs to be fed back to the i1 segment of each pipeline for register number comparison, and the number of comparators is greatly reduced.

[0038] 2. From the perspective of wake-up time, the wake-up method using only register number comparison requires the register number fed back by the execution pipeline to be compared by the comparator before the subsequent micro-operation can be awakened. However, the wake-up method of the present invention uses the wake-up mechanism of the dependency matrix, and only the clearing information of the dependency matrix needs to be fed back to refresh the dependency matrix, so the wake-up speed is improved.

[0039] 3. From the perspective of determining the source of the source operation, it is not possible to quickly obtain the source information of the operands by only using the dependency matrix. The present invention adopts the register number comparison mechanism of the ISSUE segment, and the comparison result can directly determine the source of the operands, which is faster and more convenient.

[0040] 4. From the perspective of continuous cancellation of micro-operations, only using the dependency matrix method cannot achieve rapid continuous cancellation of related micro-operations. However, the present invention adopts the register number comparison mechanism of the emission segment, and the comparison result can be directly used for continuous cancellation of micro-operations. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 Schematic diagram of the basic flow of the method of the embodiment of the present invention.

[0042] Figure 2 It is a schematic diagram of the framework structure of the scheduling component according to an embodiment of the present invention.

[0043] Figure 3 It is a schematic diagram of the structure of the dependency matrix module according to an embodiment of the present invention.

[0044] Figure 4 The figure is a schematic diagram of the implementation principle of the dependency matrix clearing mechanism in an embodiment of the present invention.

[0045] Figure 5 Schematic diagram of the implementation principle of the register number (label) comparison mechanism in an embodiment of the present invention. DETAILED DESCRIPTION

[0046] like Figure 1As shown, the operation dependency scheduling method for an out-of-order superscalar processor in this embodiment includes:

[0047] 1) Rename the decoded new micro-operations, obtain the dependency information between micro-operations, and dispatch them to the emission queue;

[0048] 2) Using a dependency matrix to record the dependency information between micro-operations, and updating the dependency matrix based on the micro-operation information returned by the execution pipeline that is about to write back the result, and selecting the ready micro-operations to be sent to each execution pipeline respectively;

[0049] 3) In each execution pipeline, the register number of the source operand of the micro-operation to be emitted and the register number of the destination operand returned by the execution pipeline to write back the result are compared. If they match, the source operand is directly obtained from the bypass corresponding to the destination operand register returned by the execution pipeline. If the micro-operation corresponding to the destination operand register returned by the execution pipeline is cancelled, the emitted micro-operation is also cancelled; otherwise, the source operand is obtained from the register stack;

[0050] 4) If the issued micro-operation is not canceled, the issued micro-operation is executed in the execution pipeline, and when the issued micro-operation is executed in the execution pipeline to the pipeline station corresponding to its execution cycle, the micro-operation information of the micro-operation and the register number of the destination operand are returned.

[0051] Step 1) First, rename the newly entered micro-operation uop1 in the RENAME module to solve the two types of correlations: write-after-write and read-after-write. When renaming the newly entered micro-operation, the renaming operation of the destination register assigns a register number (tag tag) of a physical register to the destination register of the micro-operation, and the renaming operation of the source register is to map the source register in the register mapping table to obtain the register number (tag tag) of the physical register corresponding to the source register. In this embodiment, the dependency information between micro-operations in step 1) is obtained by a producer table (named producer in this embodiment) for recording the destination memory number of the micro-operation whose results are not written back. Obtaining the dependency information between micro-operations includes: mapping and matching the register number of the source operand of the decoded new micro-operation and the destination memory number of each micro-operation whose results are not written back in the producer table. If the two match, it is determined that the decoded new micro-operation has a dependency relationship with the matched micro-operation whose results are not written back.

[0052] The producer table records the destination memory number of the micro-operation that does not write back the result, and can adopt the required form as needed. For example, as a specific implementation method, each row in the producer table in this embodiment represents a micro-operation, and each row includes two columns (columns), the first column (column) is the micro-operation sequence number, and the second column (column) is the label value of the destination memory number of the micro-operation. In this embodiment, the dependency matrix is ​​used in step 2) to record the dependency information between micro-operations, including: generating a record for the decoded new micro-operation in the dependency matrix, and the record corresponds to all micro-operations that do not write back the result. All of the micro-operations contain a corresponding flag bit, and the flag bit has a value of 1, indicating that the decoded new micro-operation depends on the micro-operation corresponding to the flag bit that does not write back the result, and the flag bit has a value of 0, indicating that the decoded new micro-operation does not depend on the micro-operation corresponding to the flag bit that does not write back the result. If the micro-operation uop1 contains a destination operand, an item is allocated for it in the producer table, and the micro-operation sequence number and its destination register number (label tag) are filled in the corresponding column. Step 1) Finally, dispatch the renamed micro-operation to the emission queue, and pass the detected dependency information to the dependency matrix. Dispatch the renamed micro-operation to the emission queue item corresponding to the producer item, and write the detected source operand dependency information to the corresponding row of the dependency matrix. That is, if micro-operation i depends on micro-operation j, when micro-operation i is dispatched to the emission queue item, the information of micro-operation number i is also filled in the corresponding row of the dependency matrix, and 1 is filled in the matrix of the i-th row and j-th column.

[0053] After the dispatch is completed, the micro-operation enters the launch queue and is in the ISSUE0 (pre-launch) stage. In this stage, the dependency matrix is ​​maintained and updated. The clearing information fed back from the execution pipeline releases the micro-operation that is about to be executed in the dependency matrix and clears all dependency information that depends on it.

[0054] In this embodiment, in step 2), updating the dependency matrix according to the micro-operation information of the write-back result returned by the execution pipeline includes: receiving the entry number entry_num corresponding to the micro-operation of the write-back result returned by each execution pipeline in each clock cycle, decoding the entry number entry_num corresponding to all micro-operations of the write-back result returned by each execution pipeline to form a clear vector, and releasing the micro-operation corresponding to each entry number entry_num in the dependency matrix corresponding to the clear vector, and setting the corresponding flag positions of all other micro-operations that depend on the released micro-operation to 0; in step 4), returning the micro-operation information of the result to be written back refers to generating a selection vector Px_Entry_num from the micro-operation information of the result to be written back returned by all pipeline stations in the same execution pipeline, the selection vector Px_Entry_num corresponds one-to-one to the execution pipeline and the dependency matrix, and the value of a certain bit in the selection vector Px_Entry_num is 1, indicating that the corresponding micro-operation in the dependency matrix is ​​about to write back the result.

[0055] Table 1 is a table of micro-operation feedback clearing status in different execution clock cycles. Table 1 describes in which clock cycle of the execution segment the micro-operations of different clock cycles will feed back the clearing information to the dependency matrix, where stations i1~i3 and stations e1~e6 are the pipeline stations in the same execution pipeline.

[0056] Table 1: Examples of micro-operation feedback clearing with different delay times.

[0057]

[0058]

[0059] The feedback clear information indicates that this micro-operation is about to be executed. If the micro-operation that depends on it is awakened and launched at this time, the i3 station that is awakened and launches the micro-operation can obtain the required source operation data. We first assume that the ISSUE segment has three clock cycles, then the micro-operation with an execution time of 2 clock cycles will feedback clear information at the i2 station, the micro-operation with an execution time of 3 cycles will feedback clear information at the i3 station, the micro-operation with an execution time of 4 cycles will feedback clear information at the e1 station, the micro-operation with an execution time of 5 cycles will feedback clear information at the e2 station, and the micro-operation with an execution time of 6 cycles will feedback clear information at the e3 station. Taking the 2cyc micro-operation uop3 as an example, it wakes up the micro-operation uop4 that depends on it at the i2 station. The micro-operation uop4 will be launched at the i3 station of the micro-operation uop3 at the earliest. In this case, the i3 station of the micro-operation uop3 corresponds to the i1 station of the micro-operation uop4. The micro-operation uop3 will calculate the result at the e2 station, which corresponds to the i3 station of the micro-operation uop4, which can meet the requirement that the micro-operation uop4 needs to get the source operand at the i3 station.

[0060] See also Figure 4The cleared information comes from n execution pipelines Pipeline 1~Pipeline n. Because there are many situations for the execution clock cycle number of the micro-operations executed in the pipeline, there will be many situations for the pipeline stations that need to feedback the clearing information. Therefore, each execution pipeline will choose the pipeline station's Entry_num information to be fed back according to the execution cycle information of the micro-operation being executed. The Entry_num information indicates which row the micro-operation exists in the dependency matrix, that is, which column of dependency information needs to be cleared. Since there may be multiple pipelines, each pipeline needs to feed back the Entry_num information. For example, P1_Entry_num_e3 is the Entry_num to be fed back by the e3 station of pipeline pipeline1, and the solid line with it represents the Entry_num fed back by other pipeline stations of pipeline1. All information enters selector 1 for selection. Similarly, P2_Entry_num_e3 is the Entry_num to be fed back by the e3 station of pipeline pipeline2. The dashed line represents the Entry_num fed back by other pipeline stations of pipeline2. All information enters selector 2 for selection. Only the feedback mechanism of pipeline 1 and 2 is drawn here. The rest of the pipelines are similar. The P1_Entry_num and P2_Entry_num generated by the two selectors represent the Entry_num information fed back to the dependency matrix by pipeline 1 and 2. This information enters the decoder and decodes the information into a clear vector. The i-th bit of the clear vector is 1, which means that the micro-operation of the i-th row of the dependency matrix is ​​about to be executed, and the dependency information of the i-th column of the dependency matrix can be cleared (set to 0). The clear signal of each bit of information in the clear vector is transmitted to each column of the dependency matrix to clear the corresponding column of the dependency matrix.

[0061] Table 2 is a comparison table of micro-operation register numbers (tags) at different execution times. This table describes at which clock cycle of the execution segment the tag information of the destination register will be fed back to the i1 station for micro-operations of different clock cycles. The tag information of the destination register directly fed back by the execution pipeline is dly0_tag, and there are also two types of tag information of the destination register, dly1_tag and dly2_tag. In Table 2, the i1~i3 stations and the e1~e6 stations are the pipeline stations in the same execution pipeline.

[0062] Table 2 shows an example of comparison of micro-operation tags with different execution times.

[0063] Delay i1 i2 i3 e1 e2 e3 e4 e5 e6 2cyc dly0 3cyc dly0 4cyc dly0 5cyc dly0 6cyc dly0

[0064] Table 2 is a comparison table of micro-operation tags at different execution times. The table describes the clock cycle in which the micro-operations of different clock cycles will feed back the register number information (dly0) of the destination register to the i1 station in the execution segment. The register number information of the destination register directly fed back by the execution pipeline is dly0_tag. In this embodiment, there are also register number information of the two destination registers dly1_tag and dly2_tag. Dly1_tag and dly2_tag are obtained by storing dly0_tag for one cycle and storing it for two cycles respectively. The reason why dly1_tag and dly2_tag are needed is that the micro-operation is awakened in the first three beats of the micro-operation on which it depends to write back the data. If the awakened micro-operation is not launched and executed in the next clock cycle, but is delayed by one or two beats before launching, then they need to obtain data from the bypass, so dly1_tag and dly2_tag need to be compared with its source operand register number to obtain bypass source information. It is worth noting that the source operands of micro-operations with a delay of three beats or more have been written into the register file, and no additional comparison is required to obtain the source operand source information. The register number information of the three destination registers will be compared with the register number information of each source register of the micro-operation at the i1 station. We first assume that the ISSUE segment has three clock cycles, then the micro-operation with an execution time of 2 clock cycles (cyc) will feedback the register number information of the destination register at the i2 station, the micro-operation with an execution time of 3 cyc will feedback the register number information of the destination register at the i3 station, the micro-operation with an execution time of 4 cyc will feedback the register number information of the destination register at the e1 station, the micro-operation with an execution time of 5 cyc will feedback the register number information of the destination register at the e2 station, and the micro-operation with an execution time of 6 cyc will feedback the register number information of the destination register at the e3 station. Take the 2cyc micro-operation uop5 as an example. It feeds back its destination register dly0_tag information at the i2 station. At this time, the micro-operation at the i1 station is the micro-operation uop6. The source operation register number of the micro-operation uop6 is compared with the register number information fed back by the micro-operation uop5. Then, the source operand source information converted from the comparison result and the timing information of the operand are transmitted to the i3 station of the micro-operation uop6. At the i3 station, the micro-operation uop6 obtains its source operand. In the next clock cycle, the register number information fed back by the micro-operation uop5 is stored for one beat to become dly1_tag. It continues to compare the register number with the micro-operation at the i1 station. At this time, the micro-operation at the i1 station is the micro-operation uop7. The source operation register number of the micro-operation uop7 is compared with the dly1_tag fed back by the micro-operation uop5. Then, the source operand source information converted from the comparison result and the timing information of the operand are transmitted to the i3 station of the micro-operation uop7.In the next clock cycle, the register number information fed back by uop5 is stored for one more beat to become dly2_tag, and the following operations are the same as dly0 and dly1. As mentioned above, each micro-operation of each i1 station needs to be compared with dly0_tag, dly1_tag, and dly2_tag of the current clock cycle. The matching result is stored in its i3 station to select the correct source operand.

[0065] Figure 5 This is a diagram of the register number (tag) comparison mechanism. The feedback dly0_tag information comes from the execution pipeline Pipeline1~Pipeline n. Because there are multiple execution cycles of the micro-operations executed in the execution pipeline, there will be multiple pipeline stations that feedback the dly0_tag information (register number of the destination operand). Therefore, each pipeline will choose which pipeline station's dly0_tag information to feedback based on the execution cycle information of the micro-operation being executed. Since there may be multiple pipelines, each pipeline needs to feedback the dly0_tag information. P1_Res_dly0_tag_e3 is the dly0_tag to be fed back by the e3 station of the execution pipeline pipeline1. The solid line with it represents the dly0_tag fed back by other pipeline stations of pipeline1. All information enters the selector 1 for selection. Similarly, P2_Res_dly0_tag_e3 is the dly0_tag to be fed back by the e3 station of pipeline2, and the dotted line with it represents the dly0_tag fed back by other pipeline stations of pipeline2, and all the information enters selector 2 for selection. It should be noted that only the feedback mechanism of execution pipelines pipeline 1 and 2 is drawn here for example, and the rest of the pipelines are similar. The P1_Res_dly0_tag and P2_Res_dly0_tag generated by the two selectors represent the dly0_tag information fed back to the i1 station by pipeline 1 and 2. The dly0_tag fed back by each pipeline will be fed back to the i1 station of all pipelines, and the fed-back dly0_tag will be compared with the register number (tag tag) of the micro-operation source register of the i1 station. In addition, dly0_tag will be stored and beat at the i1 station to obtain dly1_tag and dly2_tag, and will also be compared with the register number of the micro-operation source register of the i1 station.

[0066] After entering this stage, the micro-operation needs to wait for all its source operands to be ready, that is, to meet the emission conditions. In each clock cycle, the dependency matrix detects whether each item has met the emission conditions, forms a Ready Vector, and passes it to the selection logic. The selection logic selects the oldest micro-operation that meets the emission conditions for emission. The dependency matrix receives the clear information fed back from the emission execution pipeline stage, releases the micro-operation of the dependency matrix row corresponding to the bit of 1 in the clear vector (that is, the row can continue to be used by subsequent micro-operations), and clears the dependency relationship of the corresponding dependency matrix column (that is, all the columns are set to 0). Perform an OR / NOT operation on each bit of the dependency vector of each item in the dependency matrix to determine whether all micro-operations of the micro-operation of the row item are ready. All row items are OR / NOT operated, and the OR / NOT operation results of each row are spliced ​​to form a Ready vector and passed to the selection logic. The bit of 1 in the Ready vector represents that the micro-operation in the corresponding dependency matrix item is ready. The selection logic selects n oldest micro-operations that meet the emission conditions to be emitted from the Ready micro-operations, where n is the number of execution pipeline lines. Specifically, in step 2) of this embodiment, selecting micro-operations that meet the emission conditions for emission includes: performing an OR-NOT operation on all flag bits of each record in the dependency matrix in each clock cycle, and if the result of the OR-NOT operation is 1, it is determined that the source operands of the micro-operation corresponding to the record are all ready and meet the emission conditions, otherwise it is determined that the source operands of the micro-operation corresponding to the record are not yet all ready and do not meet the emission conditions; splicing the results of all OR-NOT operations of the same dependency matrix to form a ready vector, which is used to select the n oldest micro-operations for emission among the micro-operations whose source operands are all ready and meet the emission conditions recorded in each dependency matrix according to the ready vector so that each pipeline is emitted a micro-operation, where n is the number of execution pipelines.

[0067] After the launch, the micro-operation is in the launch (ISSUE) stage. In this stage, the register number (tag) of the micro-operation source register is first compared with the destination operand register number (tag) in all related result buses. The result of the comparison is used to obtain the source operand (Grab Source Operand) in the subsequent logic. At the same time, if the register number (tag) matches successfully, if the micro-operation uop2 that produces the result cancels the launch execution, then the micro-operation uop1 that depends on it will also cancel the launch execution. The micro-operation that has not been canceled after the launch will finally enter the EXE (execution) segment for execution. In this embodiment, step 3) includes: sending the register number dly0_tag of the destination operand returned by the execution pipeline to be written back to the first-level pipeline station i1 of each execution pipeline, and at the same time, the register number dly0_tag is also continuously stored in sequence for multiple beat cycles to form multiple intermediate register numbers dlyi_tag; in each execution pipeline, starting from the first-level pipeline station i1, the register number of each source operand of the micro-operation in each level of the pipeline station is compared with the register number dly0_tag and each intermediate register number dlyi_tag, and if it is the same as the register number dly0_tag or If any one of the intermediate register numbers dlyi_tag matches, the source operand of the micro-operation is determined to be obtained from the bypass corresponding to the destination operand register returned from the execution pipeline, and the timing information of the source operand is obtained as the timing corresponding to the register number dly0_tag or each intermediate register number dlyi_tag. If the micro-operation with register number dly0_tag as the destination operand register is canceled, the pipeline station will also cancel the micro-operation issued; if it matches the register number dly0_tag and each intermediate register number dlyi_tag evenly, the source operand is obtained from the register stack.

[0068] As shown in Table 1 and Table 2, when the micro-operation is executed to the pipeline station corresponding to its execution cycle, the clear information and dly0_tag information are fed back. That is, when the micro-operation uop10 is a 2-cycle micro-operation, it is executed to the i2 station, and the clear signal and dly0_tag signal are fed back. The clear signal indicates the original launch queue item (same dependency matrix item) of uop10, and the dly0_tag signal indicates the destination register number of uop10. Figure 5As shown, the clear signal fed back by the pipeline stations i2 and after the i2 station is selected by the selector to become Px_Entry_num, indicating which emission queue item the clear signal fed back by the pipeline is for. Subsequently, all the Px_Entry_num signals fed back by the pipeline enter the decoder, and the clear vector is decoded. If a certain bit of the clear vector is 1, it means that the emission queue item corresponding to the bit is released (that is, the item can continue to be used by subsequent micro-operations), the micro-operation of the dependency matrix row corresponding to the bit is released (that is, the row can continue to be used by subsequent micro-operations), and the dependency relationship of the corresponding dependency matrix column is cleared (that is, the column is set to 0). As shown Figure 5 As shown, the dly0_tag signal fed back by the pipeline stations after i2 and i2 is selected by the selector to become Px_Res_dly0_tag (where x is the execution pipeline number), and then all the pipeline feedback Px_Res_dly0_tag signals are compared and matched with each source operand ptag of the i1 station. Px_Res_dly0_tag will be stored for one cycle as Px_Res_dly1_tag, and compared and matched with the register number ptag of each source operand of the i1 station. Px_Res_dly1_tag will continue to be stored for one cycle as Px_Res_dly2_tag, and will also be compared and matched with the register number ptag of each source operand of the i1 station. Their comparison results are used to determine the source of the source operation and quickly cancel the issued micro-operation.

[0069] In summary, this embodiment proposes a scheduling method for instruction / operand dependencies in an out-of-order superscalar processor. The embodiment method combines two dependency detection and tracking methods: dependency matrix and tag (label, i.e., register number) comparison. In the pre-launch stage (issue0), the present invention uses dependency matrix detection and tracking to determine whether each micro-operation in the launch queue can meet the launch conditions; in the launch stage, register number comparison is used. If the register number comparison matches, the source operand is correctly obtained from the corresponding bypass according to the matching comparison result. If the register number comparison does not match, the source operand is obtained from the register stack. At the same time, the register number comparison result is used for the continuous cancellation of multiple micro-operations. When any of the previous micro-operations uop0 is canceled for some reason, if the subsequent micro-operation uop1 that has a dependency relationship with the micro-operation uop0 has been issued, it is necessary to continuously cancel the issuance and execution of the subsequent micro-operation uop1. The method of this embodiment requires only a small amount of comparison logic, and can implement dependency detection, fast wake-up, determination of the source operand source, and fast cancellation of dependent micro-operations, effectively solving the problem of greatly increased complexity of dependency detection, tracking, and handling due to the increase in the number of emission queue items and execution paths.

[0070] like Figure 2As shown, this embodiment further provides an operation dependency scheduling component for applying the aforementioned operation dependency scheduling method for an out-of-order superscalar processor, comprising:

[0071] The renaming module is used to rename the new micro-operations after decoding;

[0072] Dependency Detector module, used to obtain dependency information between micro-operations;

[0073] A dispatch module, used to dispatch micro-operations that complete dependency information detection to a launch queue;

[0074] A dependency matrix module is used to record dependency information between micro-operations using a dependency matrix, and update the dependency matrix according to micro-operation information about the results to be written back returned by the execution pipeline;

[0075] A selection logic, for selecting ready micro-operations based on a dependency matrix module and transmitting them to each execution pipeline respectively;

[0076] A tag comparator is used to compare the register number of the source operand of the micro-operation to be emitted and the register number of the destination operand to be written back by the execution pipeline in each execution pipeline;

[0077] A source operand acquisition module is used to directly acquire the source operand from the bypass corresponding to the destination operand register returned by the execution pipeline when the result of the comparison by the tag comparator is a match; otherwise, the source operand is acquired from the register stack;

[0078] A micro-operation cancel module is used to cancel the issued micro-operation if the micro-operation corresponding to the destination operand register returned from the execution pipeline is canceled when the result of the comparison obtained by the tag comparator is a match;

[0079] An execution module, used for executing the issued micro-operation in the execution pipeline when the issued micro-operation is not cancelled, and returning the micro-operation information of the micro-operation and the register number of the destination operand when the issued micro-operation is executed in the execution pipeline to the pipeline station corresponding to its execution cycle;

[0080] The dependency matrix modules correspond one-to-one to the execution pipelines in the microprocessor, e.g. Figure 3 As shown, the dependency matrix module includes:

[0081] An entry register item is used to record the entry number of any item in the emission queue corresponding to the dependency matrix module;

[0082] The valid flag is used to indicate the valid state of any micro-operation in the corresponding emission queue of the dependency matrix module;

[0083] The dependency matrix is ​​used to record the dependency information between all the micro-operations that have not been written back. The flag bit of any i-th row and j-th column in the dependency matrix indicates the state that the source operand of the i-th micro-operation in the transmit queue depends on the destination operand of the j-th micro-operation. The state of 1 indicates that there is a dependency relationship, and the state of 0 indicates that there is no dependency relationship. Each row of the dependency matrix can place the dependency information of a micro-operation. All bits of a row constitute a dependency vector. Each bit (flag bit) of the dependency vector indicates whether the micro-operation depends on the micro-operation of the corresponding column, that is, whether the source operand of the micro-operation is the destination operation of the micro-operation of the corresponding column. For example Figure 3 The flag bit at the 1st row and 2nd column pointed to by a indicates that the first bit operation depends on the flag bit of the second bit operation. If there is a dependency, the bit is set to 1, otherwise it is set to 0.

[0084] The NOR logic is used to perform a NOR operation on all the bits of each row of the dependency matrix, and the NOR operation result forms a ready vector corresponding to the micro-operation of the row to select the ready micro-operation to be respectively transmitted to the corresponding execution pipeline. If the ready vector is a bit of 1, it means that the source operands of the micro-operation corresponding to the bit are all ready and meet the transmission conditions;

[0085] A decoder is used to update the dependency matrix according to the micro-operation information of the result to be written back returned by the execution pipeline.

[0086] Each clock cycle execution pipeline will feedback the entry number (entry_num) of the micro-operation that is about to be executed. Entry number (entry_num). After being decoded by the decoder, a clear vector (Clear Vector) is formed. The number of bits of the clear vector (Clear Vector) is the same as the number of columns of the dependency matrix. Each bit of the clear vector (Clear Vector) is passed to the corresponding column of the dependency matrix. If the signal of the i-th bit of the clear vector (Clear Vector) is 1, it means that the dependency information of the i-th column of the dependency matrix needs to be cleared, otherwise it is not needed. Each clock cycle performs an OR-NOT operation on each bit of the dependency vector of each item in the dependency matrix, and the OR-NOT result of each item finally forms a ready vector. Each bit of the ready vector indicates whether the micro-operation of the corresponding row of the dependency matrix is ​​ready to be emitted. Finally, the ready vector is sent to the selection logic for emission.

[0087] The operation dependency scheduling component of this embodiment is used to execute the steps of the operation dependency scheduling method for the out-of-order superscalar processor, and can also use the dependency matrix to detect the dependency and quickly and efficiently wake up the micro-operation in the wake-up stage, use the register number (tag) comparison in the subsequent emission stage to track the dependency, and dynamically and efficiently obtain the source operand through the tracked dependency, and realize the fast and continuous cancellation of the micro-operation with the dependency relationship. It is practical to place the dependency detection and micro-operation wake-up in the wake-up stage, and place the two items of determining the source operand and realizing the continuous cancellation of the emitted micro-operation through the register number (tag) comparison result in the subsequent emission stage, so that the wake-up stage is completely decoupled from the emission stage, and the wake-up micro-operation is detected and the dependency information is processed by the dependency matrix, and the result of the register number (tag) comparison is no longer required, so that the comparator logic required by the scheduling mechanism is greatly reduced, and at the same time, it can also realize the fast wake-up of the micro-operation, the determination of the source operand source, and the continuous cancellation of the micro-operation with dependency, effectively solving the problem of increasing the complexity of micro-operation dependency detection, tracking, and processing due to the deepening of the emission queue depth and the widening of the execution path.

[0088] In addition, this embodiment also provides an out-of-order superscalar processor, including a decoder and a back-end scheduling module connected to the decoder, the back-end scheduling module is programmed or configured to execute the steps of the aforementioned operation dependency scheduling method for an out-of-order superscalar processor, or the back-end scheduling module is the aforementioned operation dependency scheduling component.

[0089] In addition, this embodiment further provides a computer-readable storage medium, in which a computer program is stored. The computer program is used to be executed by a microprocessor to implement the steps of the aforementioned operation dependency scheduling method for an out-of-order superscalar processor.

[0090] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, may be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the functions in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0091] The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.

Claims

1. An operation dependency scheduling method for an out-of-order superscalar processor, It is characterized in that include: 1) Rename the decoded new micro-operations, obtain the dependency information between micro-operations, and dispatch them to the emission queue; 2) Use the dependency matrix to record the dependency information between micro-operations, and update the dependency matrix according to the micro-operation information about the results to be written back returned by the execution pipeline, and select the ready micro-operations to be sent to each execution pipeline respectively; 3) In each execution pipeline, the register number of the source operand of the micro-operation to be emitted and the register number of the destination operand returned by the execution pipeline to write back the result are compared. If they match, the source operand is directly obtained from the bypass corresponding to the destination operand register returned by the execution pipeline. If the micro-operation corresponding to the destination operand register returned from the execution pipeline is cancelled, the emitted micro-operation is also cancelled; otherwise, the source operand is obtained from the register stack; 4) If the issued micro-operation is not canceled, the issued micro-operation is executed in the execution pipeline, and when the issued micro-operation is executed in the execution pipeline to the pipeline station corresponding to its execution cycle, the micro-operation information of the micro-operation and the register number of the destination operand are returned; In step 2), using the dependency matrix to record the dependency information between micro-operations includes: generating a record for the decoded new micro-operation in the dependency matrix, the record corresponding to all micro-operations whose results are not written back includes a corresponding flag bit, the flag bit has a value of 1, indicating that the decoded new micro-operation depends on the micro-operation whose results are not written back corresponding to the flag bit, and the flag bit has a value of 0, indicating that the decoded new micro-operation does not depend on the micro-operation whose results are not written back corresponding to the flag bit; In step 2), updating the dependency matrix according to the micro-operation information of the write-back result returned by the execution pipeline includes: receiving the entry number entry_num corresponding to the micro-operation of the write-back result returned by each execution pipeline in each clock cycle, decoding the entry number entry_num corresponding to all micro-operations of the write-back result returned by each execution pipeline to form a clear vector, and releasing the micro-operation corresponding to each entry number entry_num in the dependency matrix corresponding to the clear vector, and setting the corresponding flag positions of all other micro-operations that depend on the released micro-operation to 0; in step 4), returning the micro-operation information of the result to be written back means generating a selection vector Px_Entry_num from the micro-operation information of the result to be written back returned by all pipeline stations in the same execution pipeline, the selection vector Px_Entry_num corresponds one-to-one to the execution pipeline and the dependency matrix, and the value of a certain bit in the selection vector Px_Entry_num is 1, indicating that the corresponding micro-operation in the dependency matrix is ​​about to write back the result.

2. The operation dependency scheduling method for an out-of-order superscalar processor according to claim 1, It is characterized in that Obtaining the dependency information between micro-operations in step 1) is achieved through a producer table for recording the destination memory numbers of micro-operations whose results are not written back. Obtaining the dependency information between micro-operations includes: mapping and matching the register number of the source operand of the decoded new micro-operation and the destination memory number of each micro-operation whose results are not written back recorded in the producer table. If the two match, it is determined that the decoded new micro-operation has a dependency relationship with the matched micro-operation whose results are not written back.

3. The operation dependency scheduling method for an out-of-order superscalar processor according to claim 2, It is characterized in that Each row in the producer table represents a micro-operation, and each row includes two columns, the first column is the micro-operation sequence number, and the second column is the label value of the destination memory number of the micro-operation.

4. The operation dependency scheduling method for an out-of-order superscalar processor according to claim 1, It is characterized in that In step 2), the micro-operations satisfying the emission conditions are selected for emission, including: performing an OR-NOT operation on all flag bits of each record in the dependency matrix in each clock cycle; if the result of the OR-NOT operation is 1, it is determined that the source operands of the micro-operation corresponding to the record are all ready and satisfy the emission conditions; otherwise, it is determined that the source operands of the micro-operation corresponding to the record are not all ready and do not satisfy the emission conditions; the results of all OR-NOT operations of the same dependency matrix are concatenated to form a ready vector, which is used to select the n oldest micro-operations for emission among the micro-operations whose source operands are all ready and satisfy the emission conditions recorded in each dependency matrix according to the ready vector, so that each pipeline is emitted a micro-operation, where n is the number of execution pipelines.

5. The operation dependency scheduling method for an out-of-order superscalar processor according to claim 1, It is characterized in that Step 3) includes: sending the register number dly0_tag of the destination operand returned by the execution pipeline to be written back to the first-stage pipeline station i1 of each execution pipeline, and at the same time, the register number dly0_tag is also stored in sequence for multiple beat cycles to form multiple intermediate register numbers dlyi_tag; in each execution pipeline, starting from the first-stage pipeline station i1, the register number of each source operand of the micro-operation in each stage of the pipeline station is compared with the register number dly0_tag and each intermediate register number dlyi_tag, and if it is the same as the register number dly0_tag or each intermediate register number dlyi_tag, If any one of the intermediate register numbers dlyi_tag matches, the source operand of the micro-operation is determined to be obtained from the bypass corresponding to the destination operand register returned from the execution pipeline, and the timing information of the source operand is obtained as the timing corresponding to the register number dly0_tag or each intermediate register number dlyi_tag. If the micro-operation with register number dly0_tag as the destination operand register is cancelled, the pipeline station will also cancel the micro-operation issued; if it matches evenly with the register number dly0_tag and each intermediate register number dlyi_tag, the source operand is obtained from the register stack.

6. An operation dependency scheduling component for applying the operation dependency scheduling method for an out-of-order superscalar processor according to any one of claims 1 to 5, It is characterized in that include: The renaming module is used to rename the new micro-operations after decoding; Dependency detection module, used to obtain dependency information between micro-operations; A dispatch module, used to dispatch micro-operations that complete dependency information detection to a launch queue; A dependency matrix module is used to record dependency information between micro-operations using a dependency matrix, and update the dependency matrix according to micro-operation information about the results to be written back returned by the execution pipeline; A selection logic, for selecting ready micro-operations based on a dependency matrix module and transmitting them to each execution pipeline respectively; A tag comparator is used to compare the register number of the source operand of the micro-operation to be emitted and the register number of the destination operand to be written back by the execution pipeline in each execution pipeline; A source operand acquisition module is used to directly acquire the source operand from the bypass corresponding to the destination operand register returned by the execution pipeline when the result of the comparison by the tag comparator is a match; otherwise, the source operand is acquired from the register stack; A micro-operation cancel module is used to cancel the issued micro-operation if the micro-operation corresponding to the destination operand register returned from the execution pipeline is canceled when the result of the comparison obtained by the tag comparator is a match; An execution module, used for executing the issued micro-operation in the execution pipeline when the issued micro-operation is not cancelled, and returning the micro-operation information of the micro-operation and the register number of the destination operand when the issued micro-operation is executed in the execution pipeline to the pipeline station corresponding to its execution cycle; The dependency matrix module corresponds one-to-one to the execution pipeline in the microprocessor, and the dependency matrix module includes: An entry register item is used to record the entry number of any item in the emission queue corresponding to the dependency matrix module; The valid flag is used to indicate the valid state of any micro-operation in the corresponding emission queue of the dependency matrix module; A dependency matrix, used to record dependency information between all micro-operations that have not been written back, wherein the flag bit of any i-th row and j-th column in the dependency matrix indicates that the source operand of the i-th micro-operation in the emission queue depends on the destination operand of the j-th micro-operation, where a state of 1 indicates a dependency relationship, and a state of 0 indicates no dependency relationship; The NOR logic is used to perform a NOR operation on all the bits of each row of the dependency matrix, and the NOR operation result forms a ready vector corresponding to the micro-operation of the row to select the ready micro-operation to be respectively transmitted to the corresponding execution pipeline. If the ready vector is a bit of 1, it means that the source operands of the micro-operation corresponding to the bit are all ready and meet the transmission conditions; A decoder is used to update the dependency matrix according to the micro-operation information of the result to be written back returned by the execution pipeline.

7. An out-of-order superscalar processor, comprising a decoder and a back-end scheduling module connected to the decoder, It is characterized in that The back-end scheduling module is programmed or configured to execute the steps of the operation dependency scheduling method for an out-of-order superscalar processor as described in any one of claims 1 to 5, or the back-end scheduling module is the operation dependency scheduling component as described in claim 6.

8. A computer-readable storage medium having a computer program stored therein, It is characterized in that The computer program is used to be executed by a microprocessor to implement the steps of the operation dependency scheduling method for an out-of-order superscalar processor as claimed in any one of claims 1 to 5.