Microprocessor unit having a first level write-through cache memory and a smaller second-level write-back cache memory
First Claim
1. A microprocessor unit, comprising:
- a microprocessor having a processing unit operable to process digital data in accordance with computer instructions, and having a first cache of a selected capacity, said first cache being of write-through type, and coupled to said processing unit;
a second cache having a plurality of cache entries of a cumulative capacity that is substantially smaller than the capacity of said first cache, said second cache being of write-back type, and having a plurality of dirty bits, each associated with one of the plurality of cache entries for indicating, when set, that data in its associated cache entry has been modified, and said second cache coupled to said first cache at a higher cache level; and
memory control circuitry, for applying the contents of the plurality of entries of the second cache to a memory bus, responsive to all of the plurality of dirty bits of the second cache being set.
1 Assignment
0 Petitions
Accused Products
Abstract
An electronic device for use in a computer system, and having a small second-level write-back cache, is disclosed. The device may be implemented into a single integrated circuit, as a microprocessor unit, to include a microprocessor core, a memory controller circuit, and first and second level caches. In a system implementation, the device is connected to external dynamic random access memory (DRAM). The first level cache is a write-through cache, while the second level cache is a write-back cache that is much smaller than the first level cache. In operation, a write access that is a cache hit in the second level cache writes to the second level cache, rather than to DRAM, thus saving a wait state. A dirty bit is set for each modified entry in the second level cache. Upon the second level cache being full of modified data, a cache flush to DRAM is automatically performed. In addition, each entry of the second level cache is flushed to DRAM upon each of its byte locations being modified. The computer system may also include one or more additional integrated circuit devices, such as a direct memory access (DMA) circuit and a bus bridge interface circuit for bidirectional communication with the microprocessor unit. The microprocessor unit may also include handshaking control to prohibit configuration register updating when a memory access is in progress or is imminent. The disclosed microprocessor unit also includes circuitry for determining memory bank size and memory address type.
-
Citations
12 Claims
-
1. A microprocessor unit, comprising:
-
a microprocessor having a processing unit operable to process digital data in accordance with computer instructions, and having a first cache of a selected capacity, said first cache being of write-through type, and coupled to said processing unit; a second cache having a plurality of cache entries of a cumulative capacity that is substantially smaller than the capacity of said first cache, said second cache being of write-back type, and having a plurality of dirty bits, each associated with one of the plurality of cache entries for indicating, when set, that data in its associated cache entry has been modified, and said second cache coupled to said first cache at a higher cache level; and memory control circuitry, for applying the contents of the plurality of entries of the second cache to a memory bus, responsive to all of the plurality of dirty bits of the second cache being set. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A microprocessor unit, comprising:
-
a microprocessor having a processing unit operable to process digital data in accordance with computer instructions; a first cache comprising; write-through cache control circuitry; and a first cache storage area for data and instructions, and coupled to said processing unit; and a second cache comprising; a second cache storage area substantially smaller than the first cache storage area, arranged as a plurality of cache entries, coupled to said first cache, at a higher cache level, and to said processing unit, and having a plurality of dirty bits, each associated with one of the plurality of cache entries, for indicating, when set, that its associated cache entry has been modified; and write-back cache control circuitry for applying the contents of the plurality of entries of the second cache storage area to a memory bus responsive to all of the plurality of dirty bits being set. - View Dependent Claims (8, 9, 10, 11, 12)
-
Specification