Data cache having store queue bypass for out-of-order...

Electrical computers and digital processing systems: processing – Dynamic instruction dependency checking – monitoring or... – Reducing an impact of a stall or pipeline bubble

Reexamination Certificate

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

C712S218000, C712S206000

Reexamination Certificate

active

06360314

ABSTRACT:

BACKGROUND OF THE INVENTION
A computer program is an ordered set or sequence of instructions to be processed, or executed, by a computer processor. The processor fetches the program instructions and places them in an instruction queue. Normally, instructions are fetched and issued sequentially, with breaks in the sequence occurring when a branch or jump instruction is encountered. The order in which the instructions are fetched is the program order.
Many modern microprocessors allow instructions to execute out-of-order from the queue. In particular, instructions are executed from the queue, out of program order, depending on, for example, (i) register dependencies and/or (ii) memory dependencies. A register dependency relates to the availability of registers required by a subject instruction. A memory dependency relates to a memory address which needs to be calculated at execution time of the subject instruction and thus is unable to be known during the time instructions are scheduled for execution.
Thus, on the one hand, the out-of-order execution of instructions improves performance because it allows more instructions to complete in the same amount of time by efficiently distributing instructions among the computing resources of the microprocessor. On the other hand, problems may occur when executing load and store instructions out-of-order.
A data cache stores data that has been recently used by a processor and is likely to be used again. When the processor executes a program instruction, it first looks for the data in the data cache. If the data is not found in the cache, the required data is retrieved from main memory and placed in the cache. The general term “memory” as used herein refers to both cache and main memory.
The terms load, load instruction and load operation instruction are used herein interchangeably and refer to instructions which cause data to be loaded, or read, from cache or main memory. Similarly, store, store instruction and store operation instruction are used interchangeably and refer to instructions which cause data to be written to memory.
When a load instruction issues before an older store instruction referencing the same address, the load may retrieve an incorrect value because the store data the load should use is not yet present at the address.
SUMMARY OF THE INVENTION
To further compound the problem of out-of-order execution of loads and stores, there may be multiple prior stores to the same address that are still pending when a load that needs to read that address issues. It can also be the case that a prior store was for a data size that is smaller than the data size of a subsequent load instruction.
The present invention addresses the above-noted problems by providing a bypass mechanism that compares the address of each load with a set of recent stores that have not yet updated memory. A match of the recent stores provides the desired load data instead of having to retrieve the data from memory.
Accordingly, in a computing system that includes an execution unit for executing load and store instructions and a data cache subsystem, a bypass method for accessing the data cache subsystem comprises (a) providing a store queue for holding issued stores, the store queue having at least a store queue entry comprising a store queue address, and (b) providing a store data buffer having at least a store data entry corresponding to the store queue entry and comprising at least a data byte. An address of an issuing load is compared against the store queue address for each store queue entry. In response to an address match between the issuing load and a particular store queue entry, the store data entry in the store data buffer that corresponds to the particular store queue entry (referred to as the “address-matching store queue entry”) is passed to the execution unit when the issuing load is younger in program order than the address-matching store queue entry.
According to an aspect of the invention, each store queue entry and the issuing load includes a data size indicator. Subsequent to the data bypass, the data size indicator of the issuing load is compared against the data size indicator of the address-matching store queue entry. A trap is signaled when the data size indicator of the issuing load differs from the data size indicator of the address-matching store queue entry. The trap signal indicates that the data provided by the bypass mechanism was insufficient to satisfy the requirements of the load instruction.
According to another aspect of the invention, a physical address of the issuing load is compared against the store queue address of each store queue entry. In response to a physical address match between a first address portion of the issuing load and a particular store queue entry, a trap is signaled when there is a mismatch between a second address portion of the issuing load and the physical-address-matching store queue entry and the issuing load is younger in program order than the physical-address-matching store queue entry.
According to a further aspect of the invention, each store queue entry includes a match status indicator. An address of an issuing store is compared against the store queue address of each store queue entry. In response to an address match between the issuing store and a particular store queue entry, the match status indicator is set for the address-matching store queue entry when the issuing store is younger in program order than the address-matching store queue entry; otherwise, the match status indicator is set for the issuing store. The store data entry in the store data buffer corresponding to the address-matching store queue entry is passed to the execution unit when the issuing load is younger in program order than the address-matching store queue entry and the match status indicator for the address-matching store queue entry is not set. Subsequently, a physical address of the issuing load is compared against the store queue address of each store queue entry and in response to a physical address match between the issuing load and a particular store queue entry, a trap is signaled when the issuing load is younger in program order than the physical-address-matching store queue entry and the match status indicator for the physical-address-matching store queue entry is set.


REFERENCES:
patent: 5307477 (1994-04-01), Taylor et al.
patent: 5448699 (1995-09-01), Goss et al.
patent: 5479630 (1995-12-01), Killian
patent: 5557763 (1996-09-01), Senter et al.
patent: 5613081 (1997-03-01), Black et al.
patent: 5619662 (1997-04-01), Steely, Jr. et al.
patent: 5717883 (1998-02-01), Sagar
patent: 5737636 (1998-04-01), Caffo et al.
patent: 5867644 (1999-02-01), Ranson et al.
patent: 5897666 (1999-04-01), Mallick et al.
Gieseke, B. A., et al., “A 600MHz Superscalar RISC Microprocessor with Out-Of-Order Execution,” 1997 IEEE Internaional Solid-State Circuits Conference, Dig. Tech. Papers, pp. 176-177 and 451 (Feb., 1997).
Leibholz, D. and Razdan, R., “The Alpha 21264: A 500 MHZ Out-Of-Order Execution Microprocessor,”Proceedings of IEEE COMPCON'97, (Feb., 1997).
Gwennap, L., “Digital 21264 Sets New Standard,”Microprocessor Report,pp. 11-16 (Oct. 28, 1996).

LandOfFree

Say what you really think

Search LandOfFree.com for the USA inventors and patents. Rate them and share your experience with other people.

Rating

Data cache having store queue bypass for out-of-order... does not yet have a rating. At this time, there are no reviews or comments for this patent.

If you have personal experience with Data cache having store queue bypass for out-of-order..., we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Data cache having store queue bypass for out-of-order... will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFUS-PAI-O-2825292

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.