×

Cache memory control circuit and method for controlling reading and writing requests

  • US 5,535,358 A
  • Filed: 12/27/1994
  • Issued: 07/09/1996
  • Est. Priority Date: 12/27/1993
  • Status: Expired due to Fees
First Claim
Patent Images

1. A cache memory control circuit, comprising:

  • data storing means for storing pieces of word data in each of a plurality of data entries, N pieces of word data being stored in each of the data entries, each of the word data being stored in M data addresses, and a set of M data addresses for a piece of word data functioning as an administrative unit;

    tag means for registering a plurality of tag addresses in a plurality of tag entries and a plurality of entry states respectively determined for a unit of M tag addresses, M×

    N tag addresses being registered in each of the tag entries, N entry states being determined in each of the tag entries, the tag entries corresponding to the data entries in one-to-one correspondence, the tag addresses corresponding to one of the data addresses in one-to-one correspondence, the entry states being classified into an effective state, an invalid state and an access state, the effective state set for a unit of M tag addresses indicating that a piece of word data stored in M data addresses corresponding to the unit of M tag addresses is effective, the invalid state set for a unit of M tag addresses indicating that a piece of word data stored in M data addresses corresponding to the unit of M tag addresses is invalid, and the access state for a unit of M tag addresses indicating that an external access for searching for a piece of external word data expected to be stored in M data addresses corresponding to the unit of M tag addresses is under performance;

    hit judging means for judging whether an entry state registered in the tag means is set in the effective state or the invalid state, outputting an external access request to request an external access for the purpose of obtaining N pieces of external word data to be stored in a first remarked data entry of the data storing means corresponding to a first remarked tag entry of the tag means which is designated by a first input tag address relating to a reading request in cases where it is judged that an entry state of a first remarked unit of M tag addresses represented by the first input tag address is set in the invalid state, outputting a first hit signal in cases where it is judged that an entry state of the first remarked unit of M tag addresses represented by the first input tag address is set in the effective state, and outputting a second hit signal in cases where it is judged that an entry state of a second remarked unit of M tag addresses represented by a second input tag address relating to a writing request is set in the effective state;

    tag entry preparing means for preparing the first remarked tag entry in which the first remarked unit of M tag addresses and other three remarked units of M tag addresses are respectively set in the access state in the tag means in cases where it is judged by the hit judging means that the entry state of the first remarked unit of M tag addresses represented by the first input tag address is set in the invalid state;

    access state detecting means for detecting whether or not the second remarked unit of M tag addresses is set in the access state in cases where it is judged by the hit judging means that the entry state of the second remarked unit of M tag addresses is not set in the effective state, and detecting whether or not the first remarked unit of M tag addresses prepared by the tag entry preparing means is set in the access state in cases where the external access requested by the hit judging means is finished, the second remarked unit of M tag addresses being set in the access state in cases where the second remarked unit of M tag addresses agrees with the first remarked unit of M tag addresses or the other three remarked units of M tag addresses registered in the first remarked tag entry on condition that the external access requested by the hit judging means is not finished, and the first remarked unit of M tag addresses prepared by the tag entry preparing means being maintained in the access state in cases where the external access requested by the hit judging means is not finished;

    tag writing-in control means for changing the entry state of the second remarked unit of M tag addresses from the access state to the effective state in cases where it is judged by the access state detecting means that the second remarked unit of M tag addresses is set in the access state, and changing the entry state of the first remarked unit of M tag addresses from the access state to the effective state in cases where it is judged by the access state detecting means that the first remarked unit of M tag addresses is set in the access state on condition that the external access requested by the hit judging means is finished;

    data writing operation control means for writing the N external word data obtained according to the external access request of the hit judging means in the first remarked data entry of the data storing means in cases where it is detected by the access state detecting means that each of the remarked units of M tag addresses in the first remarked tag entry prepared by the tag entry preparing means is set in the access state, writing a piece of first updated word data in a second remarked unit of data addresses of the data storing means corresponding to the second remarked unit of M tag addresses in cases where the second hit signal output from the hit judging means is received, and writing a piece of second updated word data in a second remarked unit of M data addresses of the data storing means corresponding to the second remarked unit of M tag addresses in cases where it is judged by the access state detecting means that the second remarked unit of tag addresses is set in the access state; and

    data reading operation control means for reading one of the N external word data which is obtained according to the external access request of the hit judging means and is stored in a first remarked unit of M data addresses of the data storing means corresponding to the first remarked unit of M tag addresses in cases where the N external word data are written in the first remarked data entry of the data storing means by the data writing operation control means, and reading a piece of required word data stored in a first remarked unit of M data addresses of the data storing means corresponding to the first remarked unit of M tag addresses in cases where the first hit signal output from the hit judging means is received.

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