Claims
- 1. A cache controller for controlling a cache memory, comprising:
- an address comparator unit that compares an address to be accessed with a N-bit tag address;
- an invalid pattern comparator, coupled to the address comparator, that compares the N-bit tag address with an N-bit invalid pattern, the N-bit invalid pattern being used to indicate that data stored in the cache memory at a particular location is invalid; and
- a qualifier unit, coupled to the address comparator and the invalid pattern comparator, that outputs a hit/valid signal when the address to be accessed matches the N-bit tag address, and the tag address does not match the N-bit invalid pattern.
- 2. The cache controller of claim 1, wherein the address comparator unit comprises:
- a plurality of XOR gates, wherein each of the plurality of XOR gates compares one bit of the address to be accessed with one bit of the N-bit tag address; and
- a NOR gate coupled to outputs of the plurality of XOR gates that outputs a hit signal when all bits of the address to be accessed match all bits of the N-bit tag address.
- 3. The cache controller of claim 1, wherein the invalid pattern comparator comprises:
- a plurality of XOR gates, wherein each of the plurality of XOR gates compares a different bit of the N-bit tag address with a corresponding bit of the N-bit invalid pattern; and
- an OR gate coupled to outputs of the plurality of XOR gates that outputs a valid signal when the N-bit tag address does not match the N-bit invalid pattern.
- 4. The cache controller of claim 1, wherein the qualifier unit comprises an AND gate that outputs the hit/valid signal, the AND gate having respective inputs coupled to receive the hit and valid signals.
- 5. A computer system, comprising:
- a bus;
- a processor coupled to the bus;
- a display device controller coupled to the bus;
- external memory coupled to the bus;
- cache memory coupled to the bus; and
- a cache controller, coupled to the bus and the cache memory, the cache controller including:
- an address comparator unit that compares an address to be accessed with a N-bit tag address;
- an invalid pattern comparator, coupled to the address comparator that compares the N-bit tag address with an N-bit invalid pattern, the N-bit invalid pattern being used to indicate that data stored in the cache memory at a particular location is invalid; and
- a qualifier unit, coupled to the address comparator and the invalid pattern comparator, that outputs a hit/valid signal when the address to be accessed matches the N-bit tag address, and the tag address does not match the N-bit invalid pattern.
- 6. The cache controller of claim 5, wherein the address comparator comprises:
- a plurality of XOR gates, wherein each of the plurality of XOR gates compares one bit of the address to be accessed with one bit of the N-bit tag address; and
- a NOR gate coupled to outputs of the plurality of XOR gates that outputs a hit signal when all bits of the address to be accessed match all bits of the N-bit tag address.
- 7. The cache controller of claim 5, wherein the invalid pattern comparator comprises:
- a plurality of XOR gates, wherein each of the plurality of XOR gates compares a different bit of the N-bit tag address with a corresponding bit of the N-bit invalid pattern; and
- an OR gate coupled to outputs of the plurality of XOR gates that outputs a valid signal when the N-bit tag address does not match the N-bit invalid pattern.
- 8. The cache controller of claim 5, wherein the qualifier unit comprises an AND gate that outputs the hit/valid signal, the AND gate having respective inputs coupled to receive the hit and valid signals.
Parent Case Info
This is a continuation of application Ser. No. 08/536,110, filed on Sep. 29, 1995, now abandoned.
US Referenced Citations (10)
Continuations (1)
|
Number |
Date |
Country |
Parent |
536110 |
Sep 1995 |
|