×

Apparatus and method for updating LRU pointer in a controller for two-way set associative cache

  • US 5,530,833 A
  • Filed: 06/06/1995
  • Issued: 06/25/1996
  • Est. Priority Date: 04/25/1991
  • Status: Expired due to Term
First Claim
Patent Images

1. An apparatus for selecting which way to fill during a line fill cycle in a cache directory that is divided into two ways, a right way and a left way, each way storing tag addresses and in which there are two lines selected during a line fill to one of said ways, said apparatus including a least recently used pointer in each line of a data array, said least recently used pointer when set to a first state pointing to said left way and when set to a second state pointing to said right way, said apparatus comprising:

  • a bus connected to said right way of said directory and to said left way of said directory, for transmitting a bus address including a tag;

    a first logic (28) connected to said bus that generates a right hit signal upon a first condition that a match exists between said tag and one of said tag addresses stored in said right way;

    a second logic (26) connected to said bus that generates a left hit signal upon a second condition that a match exists between said tag and one of said tag addresses stored in said left way; and

    ,an interface control logic (30), connected to said first logic (28), said second logic (26) and said least recently used pointer, that selects said right way for a line fill in response to said right hit signal and selects said left way for a line fill in response to said left hit signal and upon a third condition that neither said right hit signal nor said left hit signal occurs, that selects said left way for a line fill provided that said least recently used pointer is set to said first state and that selects said right way for a line fill in response to said right hit signal provided that said least recently used pointer is set to said second state, said interface control logic (30) setting said least recently used pointer to said second state upon a filling of a line of said left way and setting said least recently used pointer to said first state upon a filling of a line of said right way.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×