Claims
- 1. A method for configuring a variable sized cache memory, said cache memory having a data portion and a tag portion, each of said portions having a plurality of locations, addressed by a plurality of address lines, comprising the steps of:
- receiving into said cache memory a first set of address signals on a first group of said plurality of address lines, said first set of address signals specifying a cache memory location in said data portion of said cache memory;
- receiving a second set of address signals on a second group of said plurality of address lines, said second set address signals specifying a cache memory location in said tag portion of said cache memory;
- limiting the total number of addressable cache memory locations by setting a first number of address signals in said first set of address signals each to a predetermined logic value to limit said first set of address signals to specify a predetermined number of cache memory locations in said data portion of said cache memory;
- selecting a line size for said cache memory by setting a second number of address signals in said second set of address signals each to a predetermined logic value to limit said second set of address signals to specify a predetermined number of cache memory locations in said tag portion of said cache memory; and
- substituting one of said first set of address signals with a designated signal of said plurality of address lines to logically divide said cache memory into an instruction cache memory and a data cache memory, said designated signal indicating whether an instruction or a datum is accessed.
- 2. A structure for configuring a variable sized cache memory addressed by a plurality of address lines, comprising:
- a data portion of said cache memory, said data portion of said cache memory including a plurality of cache memory locations, said data portion of said cache memory receiving a first set of address signals on a first group of address lines coupled to said plurality of address lines, said first set of address signals specifying a cache memory location in said data portion of said cache memory;
- a tag portion of said cache memory, said tag portion of said cache memory including a plurality of cache memory locations, said tag portion of said cache memory receiving a second set of address signals on a second group of address lines coupled to said plurality of address lines, said second set of address signals specifying a cache memory location in said tag portion of said cache memory;
- means for limiting the total number of addressable cache memory locations by setting a first number of address signals in said first set of address signals each to a predetermined logic value to limit said first set of address signals to specify a predetermined number of memory locations in said data portion of said cache memory;
- means for selecting a line size for said cache memory, said means for selecting a line size setting a second number of address signals in said second set of address signals each to predetermined logic value to limit said second set of address signals to specify a predetermined number of memory locations in said tag portion of said cache memory; and
- substituting one of said first set of address signals with a designated signal of said plurality of address lines to logically divide said cache memory into an instruction cache memory and a data cache memory, said designated signal indicating whether an instruction or a datum is accessed.
Parent Case Info
This application is a continuation of application Ser. No. 07/835,165, filed Feb. 12, 1992, now abandoned.
US Referenced Citations (8)
Continuations (1)
|
Number |
Date |
Country |
Parent |
835165 |
Feb 1992 |
|