Claims
- 1. An integrated circuit including:
- a processor and a memory coupled by data and address buses,
- switch means for switching the memory between a first, standard, mode of operation in which a memory controller is operative and a second, cache, mode of operation in which a cache controller is operative,
- the cache controller including a memory area comprising a valid bits array, a bit of which is set when a valid word is stored in a respective memory address of the memory in standard mode,
- and means, in the cache controller, for reading the valid bits array and thereby determining, in the cache model whether a valid bit exists corresponding to an address on the address bus so that information loaded into the memory in standard mode can be used by the processor in cache mode.
- 2. An integrated circuit as claimed in claim 1, further including means for setting selected bits of the valid bits array when corresponding addresses of the memory are loaded with data in the standard mode of operation, whereby when the mode changes to cache mode, the data will remain in memory as valid data.
- 3. An integrated circuit as claimed in claim 1, further including reset means for resetting the valid bits array to flush the cache in a single operation.
- 4. An integrated circuit as claimed in claim 1, wherein said integrated circuit chip is a digital signal processor.
- 5. An integrated circuit as claimed in claim 4, wherein the memory comprises an instruction cache.
- 6. An integrated circuit as claimed in claim 1, wherein the switch means includes an operating mode register having a cache enable section, and a cache enable control line coupled to the memory.
- 7. An integrated circuit as claimed in claim 6, wherein the switch means includes a switch controlled by the cache enable control line to switch access to the memory between the address bus and the cache controller.
- 8. An integrated circuit as claimed in claim 1, wherein the cache controller is arranged to divide the memory into a predetermined number of sectors, each sector having a predetermined number of words, the cache controller having a memory sector accessing means including a tag register in which an address tag of each sector is stored, and means for comparing the sector addresses with an address on the address bus.
- 9. An integrated circuit as claimed in claim 8, further including hit/miss determination means for determining whether a sector hit/miss occurs and whether a word hit/miss occurs.
- 10. An integrated circuit as claimed in claim 9, further including a sector replacement unit for replacing a sector when a sector miss occurs.
- 11. An integrated circuit as claimed in claim 10, further including means for locking any of the sectors, thereby preventing replacement of the sectors by the sector replacement unit when a sector miss occurs.
Priority Claims (1)
Number |
Date |
Country |
Kind |
9118312 |
Aug 1991 |
GBX |
|
Parent Case Info
This application is a continuation of prior application Ser. No. 07/912,470, filed Jul. 13, 1992, now abandoned.
US Referenced Citations (16)
Continuations (1)
|
Number |
Date |
Country |
Parent |
912470 |
Jul 1992 |
|