The invention discloses a hardware-friendly circuit speculation loading method based on a loading sequence. The hardware-friendly circuit speculation loading method based on the loading sequence comprises the first design of saving area, the second design of saving area and the second design of optimizing the
time sequence. The invention opens up a read-after-write
data structure RAW! According to the method, the concept of a Load-Sets (Load-Sets) is provided. Employing RAW! According to the method and the
system, a search mode of Load-Sets is combined, and accurate updating of a preorder storage instruction in a speculative Load process is realized with a relatively small circuit area. The method and the
system have the advantages that the method and the
system are easy to implement, and the method and the system can be used for realizing accurate updating of the preorder storage instruction in the speculative Load process. RAW! According to the method, a
memory address stdr written by a
Store instruction is taken as a key (Key), and a difference value between a specific load and a
program counter of a dependent store is taken as a value (Values), so that the situation that a large area is consumed when a complete storepc is stored is avoided; in the design of optimizing the
time sequence, firstly, stadr is matched in Load-Sets, a
Load instruction for speculating loading failure aiming at a
memory address in history is locked, and then RAW! Is carried out. The method comprises the following steps of: indexing the Load instructions to obtain each dependent store; relative to direct RAW! According to a traditional method for retrieving storepc, the retrieval complexity is reduced from O (N2) to O (N) in a step-by-step retrieval mode.