Write-back cache system using concurrent address transfers to setup requested address in main memory before dirty miss signal from cache
First Claim
1. In a computer system comprising a central processing unit (CPU), a write-back cache memory unit (cache) having a data store and a comparator for indicating whether information requested by the CPU from the cache is a hit, a clean miss, or a dirty miss, and a main memory unit (main memory), said units coupled so that the main memory can communicate only with the cache and so that the CPU can fetch information from and store information to the main memory only via the cache, and further coupled so that state machines representing the states of the cache and the main memory, respectively, are linked together, a method comprising the steps of:
- (a) simultaneously sending an address of information desired to be read from the cache by the CPU from the CPU to both the cache and main memory at such a time that said address is set up in the main memory prior to receiving a dirty miss indication from the comparator;
(b) fetching the encached copy of said information from the data store and then temporarily buffering the fetched information in the computer system prior to receiving said dirty miss indication from said comparator; and
,(c) storing a copy of the desired information fetched from the main memory into the cache if either a clean or dirty miss indication is provided by the comparator;
wherein step (c) takes place before dirty information buffered in the system is written back to the main memory if the comparator provides a dirty miss indication.
0 Assignments
0 Petitions
Accused Products
Abstract
A computer system in which only the cache memory is permitted to communicate with main memory and the same address being used in the cache is also sent at the same time to the main memory. Thus, as soon as it is discovered that the desired main memory address is not presently in the cache, the main memory RAMs can be read to the cache without being delayed by the main memory address set up time. In addition, since the main memory is not accessable other than from the cache memory, there is also no main memory access delay caused by requests from other system modules such as the I/O controller. Likewise, since the contents of the cache memory is written into a temporary register before being sent to the main memory, a main memory read can be performed before doing a writeback of the cache to the main memory, so that data can be back to the cache in approximately the same amount of time required for a normal main memory access. The result is a significant reduction in the overhead time normally associated with cache memories.
-
Citations
8 Claims
-
1. In a computer system comprising a central processing unit (CPU), a write-back cache memory unit (cache) having a data store and a comparator for indicating whether information requested by the CPU from the cache is a hit, a clean miss, or a dirty miss, and a main memory unit (main memory), said units coupled so that the main memory can communicate only with the cache and so that the CPU can fetch information from and store information to the main memory only via the cache, and further coupled so that state machines representing the states of the cache and the main memory, respectively, are linked together, a method comprising the steps of:
-
(a) simultaneously sending an address of information desired to be read from the cache by the CPU from the CPU to both the cache and main memory at such a time that said address is set up in the main memory prior to receiving a dirty miss indication from the comparator; (b) fetching the encached copy of said information from the data store and then temporarily buffering the fetched information in the computer system prior to receiving said dirty miss indication from said comparator; and
,(c) storing a copy of the desired information fetched from the main memory into the cache if either a clean or dirty miss indication is provided by the comparator; wherein step (c) takes place before dirty information buffered in the system is written back to the main memory if the comparator provides a dirty miss indication. - View Dependent Claims (2, 3, 4, 5)
-
-
6. In a computer system comprising a central processing unit (CPU), a write-back cache memory unit (cache) having a data store and a comparator for indicating whether information requested by the CPU from the cache is a hit, a clean miss, or a dirty miss, and a main memory unit (main memory), said units coupled so that the main memory can communicate only with the cache and so that the CPU can fetch information from and store information to the main memory only via the cache, and further coupled so that state machines representing the states of the cache and the main memory, respectively, are linked together, a method comprising the steps of:
-
(a) comparing with said comparator an address of the cache to an address sent from the CPU while simultaneously fetching a copy of information from the data store encached at said address; (b) storing the fetched information into a temporary register before a dirty miss indication is provided by said comparator; (c) storing a copy of the information fetched from the main memory into the cache if either a clean or dirty miss indication is provided by the comparator, wherein step (c) takes place before dirty information stored in the temporary register is written back to the main memory if the comparator provides a dirty miss indication; and
,(d) storing the information residing in the temporary register into the main memory if the comparator provides a dirty miss indication. - View Dependent Claims (7, 8)
-
Specification