WikiPatents - Community Patent Review
Create Free Account  |  License or Sell Your Patent  |  WikiPatents Marketplace  |  WikiPatents Blog
Username:  Password:  
    
Advanced Search
System for controlling an internally-installed cache memory    
United States Patent5517633   
Link to this pagehttp://www.wikipatents.com/5517633.html
Inventor(s)Ohta; Hidenobu (Kawasaki, JP); Sato; Taizo (Kawasaki, JP)
AbstractA cache uses A bits of an offset portion which are not subjected to the address translation of the logical address and B bits of the portion other than the offset portion, which are subjected to an address translation. It has an address monitor portion having a tag portion corresponding to the tag portion of the CPU using only A bits of the offset portion of the set address which are used as the set address in the cache and having a 2.sup.B .times.N-way set associative structure and a portion for making said tag portion of the cache correspond to said tag portion of the address monitor portion, thereby performing management of N address stored in the tag portion of the address monitor portion and transmitting the result of the management of the address to the cache and for invalidating the corresponding recording portion of the tag in the cache.
   














 Title Information Submit all comments and votes
 
Patent Text Patent PDF Print Page Summary File History
Plain text PDF images Print Summary File History
Drawing from US Patent 5517633
System for controlling an internally-installed cache memory - US Patent 5517633 Drawing
System for controlling an internally-installed cache memory
Inventor     Ohta; Hidenobu (Kawasaki, JP); Sato; Taizo (Kawasaki, JP)
Owner/Assignee     Fujitsu Limited (Kawasaki, JP)
Patent assignment
All assignments
Publication Date     May 14, 1996
Application Number     08/406,785
PAIR File History     Application Data   Transaction History
Image File Wrapper   Patent Term   Fees
Litigation
Filing Date     March 20, 1995
US Classification     711/146 711/118 711/212 711/220
Int'l Classification     G06F 012/06 G06F 013/00
Examiner     Swann; Tod R.
Assistant Examiner     Asta; Frank J.
Attorney/Law Firm     Armstrong, Westerman, Hattori, McLeland & Naughton
Address
Parent Case     This application is a Continuation application of Ser. No. 08/187,133, filed Jan. 27, 1994, abandoned, which is a Continuation of Ser. No. 07/643,961, filed Jan. 22, 1990, now abandoned.
Priority Data     Jan 22, 1990[JP]2-012220
USPTO Field of Search     364/243.45 364/251.3 364/243.41 364/243.44 364/247.8 364/251.3 364/255.1 364/256.6 395/421.02 395/421.10 395/445 395/473
Patent Tags     controlling internally-installed cache memory
   
Enter a comma (,) or semicolon (;) between multiple tag words/phrases.
Describe this patent:
 Amusing   
 Clever   
 Complex   
 Efficient   
 Historic   
 Important   
 Innovative   
 Interesting   
 Practical   
 Simple   
[no votes]
Patent WIKI

Share information and news about this patent, including information and news about the technology, inventors, company, ligation and licensing.

 References Submit all comments and votes
 
*references marked with an asterisk below are user-added references
 U.S. References
 
Add a new US reference:  
ReferenceRelevancyCommentsReferenceRelevancyComments
5226133
Taylor
711/207
Jul,1993

[0 after 0 votes]
5210845
Crawford
711/128
May,1993

[0 after 0 votes]
5155824
Edenfield
711/143
Oct,1992

[0 after 0 votes]
5119290
Loo
711/210
Jun,1992

[0 after 0 votes]
5109335
Watanabe
711/3
Apr,1992

[0 after 0 votes]
5029070
McCarthy
711/143
Jul,1991

[0 after 0 votes]
5003459
Ramanujan
711/3
Mar,1991

[0 after 0 votes]
4991081
Bosshart
711/3
Feb,1991

[0 after 0 votes]
4985829
Thatte
711/207
Jan,1991

[0 after 0 votes]
4943914
Kubo
711/3
Jul,1990

[0 after 0 votes]
4926317
Wallach
711/3
May,1990

[0 after 0 votes]
4797814
Brenza
711/3
Jan,1989

[0 after 0 votes]
4683533
Shiozaki
709/213
Jul,1987

[0 after 0 votes]
4618926
Kubo
711/3
Oct,1986

[0 after 0 votes]
4332010
Messina
711/3
May,1982

[0 after 0 votes]
 Foreign References
 Other References
 Market Review Submit all comments and votes
   
Market Size
Estimate the gross annual revenues of the relevant market sector:
> $10B
$5B - $10B
$2B - $5B
$500M - $2B
$100M - $500M
$10M - $100M
$1M - $10M
$500K - $1M
$100K - $500K
< $100K
[No votes]
$0
 
$0   $2.5B   $5B   $7.5B   $10B
Market Share
Estimate the percentage of the relevant market sector this invention will capture:
75% - 100%
50% - 74.99%
25% - 49.99%
10 - 24.99%
5 - 9.99%
2 - 4.99%
1 - 1.99%
< 1%
[No votes]
0.0%
 
0%   25%   50%   75%   100%
Reasonable Royalty
What percentage of gross sales should the inventor or assignee be paid?
75% - 100%
50% - 74.99%
25% - 49.99%
10 - 24.99%
5 - 9.99%
2 - 4.99%
1 - 1.99%
< 1%
[No votes]
0.0%
 
0%   25%   50%   75%   100%
Public's "Guesstimation" of Royalty Value
Market SizeN/A[No votes]
xMarket ShareN/A[No votes]
xReasonable RoyaltyN/A[No votes]

N/A

License Availablity
If you are NOT the owner or assignee, answer here:
Yes, license is available for purchase

No, license is not currently available



[No votes]
License Availablity
If you ARE the owner or assignee, answer here:
Yes, license is available for purchase

No, license is not currently available



[No votes]
Competitive Advantage
Does this invention have a significant competitive advantage over similar technologies?
Yes

No



[No votes]
Most helpful competitive advantage comment
[No comments]

Commercial Alternatives
Are there viable commercial alternatives for this invention?
Yes

No



[No votes]
Most helpful commercial alternative comment
[No comments]

 Technical Review Submit all comments and votes
 Claims Submit all comments and votes
 


What is claimed is:

1. A cache memory control system for use in a computer system including

a main memory apparatus; a plurality of data processing apparatuses with respective CPUs, said respective CPUs receiving data on a data bus and logical addresses on an address bus, and said respective CPUs performing address translation of the logical addresses which are received so as to translate the logical address to a physical address; and a system bus connecting said data processing apparatuses and said main memory;

said cache memory control system comprising:

a cache memory portion and a tag portion, which are provided in each of the said respective CPUs, said tag portion receiving a logical address having A bits in an offset portion and B bits in a portion other than said offset portion, said cache memory portion having A bits of said offset portion of said logical address, and said B bits of said portion other than said A bits of said offset portion; said A bits not being subjected to an address translation of said logical address, and said B bits being not included in the physical address when the logical address is translated to the physical address wherein, when the cache memory portion and tag portion is accessed by the logical address, the cache memory portion and tag portion is accessed by said A bits of the offset portion of its logical address and said B bits in other portions than the offset portion of said logical address; and

an address monitor portion having a tag portion, said address monitor portion storing physical address information stored in said tag portion provided in the CPU at a region corresponding to said B bits of the logical address and using only said A bits of the offset portion of a set address which is used as the set address in said CPU and having a 2.sup.B .times.N-way set associative structure, and said address monitor portion having means for causing an address stored in said tag portion provided in said CPU correspond to the corresponding address stored in said tag portion of said address monitor portion, wherein, when the cache memory portion and the tag portion are accessed by the physical address, the address monitor portion is accessed by the A bits of the physical address transmitted through an external bus, a part of the physical address is compared with the physical address information stored in the address monitor portion by using the A bits of the physical address, a position information of the region at which the part of the physical address accords with the physical address information stored in the address monitor portion in which each physical address information is stored in each of 2.sup.B .times.N regions and is selected by using said A bits as a set address is encoded to provide the B bits, thereby invalidating the cache memory portion and its tag portion by using said logical address which is composed of said A bits and said B bits, so that, when another CPU updates the contents of the physical address, the corresponding contents of said cache memory portion is invalidated.

2. A cache memory control system internally installed in a CPU, comprising:

a first memory to be accessed by an address having A bits concatenated with B bits;

a second memory to be accessed by an address having A bits, and said second memory comprising 2.sup.B regions in an address designated by A bits;

means for writing information into said address of said first memory designated by said A bits concatenated with B bits and for writing said information into one of 2.sup.B regions corresponding to a binary code of B bits in said address designated by said A bits in said second memory during a registration operation;

comparison means for, when external information including said A bits and said information is provided, and said second memory is accessed by using A bits of said external information, reading the content of said address designated by A bits and comparing the content of respective 2.sup.B regions which are read-out with said information of said external information, and detecting a region in which the read-out information accords with said information of said external information;

converting means for converting through an encoding operation a position information of one of the regions 2.sup.B at which the read-out information accords with said information of said external information; and

invalidating means for combining said B bits with said A bits to provide A bits concatenated with B bits, thereby accessing said first memory and invalidating the content of the accessed address of said first memory by using said A bits concatenated with B bits.

3. The internally-installed cache memory control system according to claim 2, wherein

said A bits comprise predetermined bits of an offset portion of a logical address which is the same as offset portion of a physical address.

4. The internally-installed cache memory control system according to claim 2, wherein

said B bits comprise predetermined bits other than the offset portion of the logical address and does not exist in the physical address.

5. The internally-installed cache memory control system according to claim 2, wherein

said first memory comprises a tag portion and a cache memory portion addressed by said A bits concatenated with B bits, and wherein said information comprises a physical address corresponding to a logical address.

6. The internally-installed cache memory control system according to claim 2, wherein

said second memory forms an address monitor means comprising a set address designated by A bits, the region corresponding to said set address being divided into 2.sup.B regions corresponding to B bits and for writing the information in one of 2.sup.B regions at the address designated by A bits.

7. The internally-installed cache memory control system according to claim 2, wherein

said B bits are bits which are provided next to an offset portion of a logical address.

8. The internally-installed cache memory control system according to claim 2, wherein

said external information comprises a logical address provided by another CPU which supplies the logical address on an external bus.

9. The internally-installed cache memory control system according to claim 2, wherein

said external information is supplied on an external address bus and comprises a physical address produced when another CPU updates the content of said main memory which corresponds to said physical address, said address monitor means comprises 2.sup.B .times.N regions in respective addresses and the tag portion and cache memory portion accessed by the A bits concatenated with the B bits is invalidated.

10. A cache memory control system, comprising:

a memory to be accessed by a physical address on an external address bus, said physical address being composed of A bits concatenated with B bits, said A bits comprising an offset portion of said physical address on the external address bus;

an address monitor portion to be accessed by said A bits;

comparing means for reading a physical address from said address monitor portion by using said A bits of said offset portion of said physical address on said external address bus, for comparing the physical address read from the address monitor portion with the physical address carried on the external address bus, to select a position information corresponding to one of 2.sup.B regions;

conversion means for encoding the position information obtained as a result of the comparisons to produce converted information comprising B bits; and

invalidation control means for forming said A bits concatenated with B bits by using B bits from the converted information produced by the conversion means and A bits of an offset portion of physical address carried by the external address bus, said invalidation control means supplying an address having A bits concatenated with B bits to a tag portion of a cache, and said invalidation control means causing a valid information stored in the memory to become inactive in order to invalidate the content of said memory corresponding to the address provided by A bits concatenated with B bits which are supplied by said invalidation control means.

11. A memory control system comprising:

a first memory to be accessed by a logical address including A bits concatenated with B bits;

a second memory which is accessed by another address, said another address being composed of A bits, and wherein said second memory comprises 2.sup.B regions in said another address designated by A bits;

means for writing a part of a physical address into an address of said first memory designated by A bits concatenated with B bits and writing the same physical address as written in the first memory in at least one of said 2.sup.B regions in said address designated by A bits in the second memory during a registration operation;

comparison means for, when external information including said A bits and bits representing the physical address is provided to the second memory, accessing the second memory by using A bits of the external information, reading the content of said address designated by A bits and comparing the content of the respective 2.sup.B regions with said part of the physical address of said external information, and detecting the region in which the part of the physical address stored in the region accords with the part of the physical address of the external information during an address monitor operation; and

invalidating means for producing B bits by encoding the result of said comparing means, combining the B bits with the A bits to provide A bits concatenated with B bits, thereby accessing said first memory and invalidating information stored in said first memory by using A bits concatenated with B bits when an external CPU changes the content in a main memory which corresponds to the physical address.

12. A memory control system comprising:

a first memory to be accessed by A bits concatenated with B bits, and wherein said first memory has information written therein; and an address monitor means comprising:

a second memory for storing said information in one of 2.sup.B regions of an address of said second memory, said region being determined by information corresponding to said B bits and said address being accessed by said A bits, and

means for reproducing said B bits based on region in which external information coincides with said information in said second memory, thereby producing A bits concatenated with B bits in said first memory.

13. The memory control system according to claim 12, wherein

said first memory comprises a tag portion and a cache memory portion;

said second memory comprises an address monitor;

said A bits comprise an offset portion of a physical address;

said B bits comprises a portion other than said offset portion of said physical address;

said logical address being comprised of said A bits concatenated with said B bits for accessing said first memory; and

said A bits for accessing said second memory are a part of said offset portion of said physical address.
 Description Submit all comments and votes
 


BACKGROUND OF THE INVENTION

The present invention relates to a system for controlling an internally-installed cache memory to maintain consistency between a main memory and an internally-installed cache in a data processing apparatus and for internally-installing the cache into which the data in the main memory is copied.

To meet recent demand for a high-speed data-processing apparatus, the data access to the main memory must be speeded up. Therefore, a cache memory for copying data from the main memory is provided in the data processing apparatus and the cache is made larger.

To raise the performance of the apparatus, increased use has been made of a multi-processor structure with a plurality of micro-processors (MPUs) instead of a single micro-processor, and of a system in which a DMA controller is used to speed up transmission speed between memories.

Where a system with such a structure has a cache memory installed in an MPU/CPU, it is nonsense that data of the main memory in which the content has already been changed because another processor has written data in the main memory is maintained in the internally-installed cache memory. Thus, it is necessary to maintain consistency between the internally-installed cache memory and the main memory.

To maintain consistency between the internally-installed cache memory and the main memory, a function called an address monitor is conventionally used. This address monitor observes the system bus to which the main memory is connected. When the other bus master produces a write signal for the main memory, the address monitor reads the address on the system bus and compares it with the content in the tag portion of the internally-installed cache memory. When the address accords with the content in the tag portion, the corresponding data in the internally-installed cache memory is invalidated. Thus, consistency is maintained between the main memory and the internally-installed cache memory.

As an ordinary program is written using a logic address, it is necessary to translate the logic address to a physical address so that the program can be operated on an actual hardware. This operation is called an address translation.

The offset portion of the logical address subjected to this address translation is not changed in the physical address and the portion other than the offset portion is not the same as that of the physical address when the logical address is translated to the physical address according to the address translation table.

As the internally-installed cache is small in the conventional data processing apparatus, only the offset portion of the logical address is used as a set address, thereby forming an N-way set associative cache. In this case, the offset portions of the logical address and the physical address are the same, even if they are subjected to address translation. Therefore, the physical address output on the system bus is directly used to determine a set address of cache to be subjected to a comparison and to access the set address of the cache in which the content corresponding to the physical address is stored.

Where, in accordance with a request for a larger cache memory, the cache is made larger, the offset portion is insufficient for the set address. A bit position for which the logical address may be different from the physical address is used.

When the physical address of the system bus is used as the set address of the cache, there is no problem when the logical address is the same as the physical address. When the logical address is different from the physical address, the conventional control invalidates a different content of the cache memory and the portion of the cache memory which should be invalidated remains valid.

Views showing the state of the cache, shown in FIG. 1A, 1B and 1C, are explained. In the following explanation, LA represents a logical address and PA represents a physical address. LA(a:b) represents a bit series from the a-th bit to the b-th bit of the logical address. PA(a:b) represents a bit series from the a-th bit to the b-th bit of the physical address. In this example, both the logical address and the physical address comprise 32 bits. The highest bit is the 31st bit and the lowest bit is 0th bit.

The address translation table shown in FIG. 1A is provided and correspondence between the address and the data is as shown in FIG. 1B. The data is registered in the cache as shown in FIG. 1C in which the tag portion and the cache memory portion are shown.

When PA(31:1)=H'00003000 is provided on a system bus as an address to be address-monitored, and PA(14:4)=H'300 is a set address, PA(31:12)=H'0003 on the system bus is compared with H'0002 stored in the set address H'300 in the tag portion and as they do not coincide, the data stored in the set address H'300 is not subjected to any operation. PA(31:1)=H'00003000, which should be originally invalidated, remains.

When the portion of the logical address other than the offset portion is used as the set address of the cache, the physical address cannot determine the set address to be subjected to the address comparison.

Therefore, where the portion of the logical address other than the offset portion is used as the set address of the cache of the set associative structure, the conventional method cannot maintain consistency between the main memory and the internally-installed cache.

SUMMARY OF THE INVENTION

An object of the present invention is to maintain consistency between a main memory and an internally-installed cache even when the portion of the logical address other than the offset portion is used as the set address of the cache.

A feature of the present invention resides in a cache memory control system in a computer system comprising a main memory apparatus, a plurality of data processing apparatuses with respective CPUs and a system bus connecting them. The cache memory control system comprises a cache memory portion and a tag portion. They are provided in said CPU and have an N-way set associative structure. The cache uses A bits of an offset portion which is not subjected to the address translation of the logical address and a B-bit portion other than the offset portion. The B-bit portion is subjected to an address translation. The cache also uses an address monitor portion having a tag portion corresponding to the tag portion of the CPU using only A bits of the offset portion of the set address which are used as the set address in said CPU and having 2.sup.B .times.N-way set associative structure and means for making the tag portion of the CPU correspond to the tag portion of the address monitor portion. Thus, it manages the N address stored in said tag portion and transmits the result of the address observation to the CPU and invalidates the corresponding recording portion of the tag in the CPU.

BRIEF DESCRIPTION OF THE DRAWINGS

FIGS. 1A to 1C show views of a state explanation of the cache to explain the problem to be solved by the present invention,

FIGS. 2A and 2B show examples of a structure of the present invention,

FIGS. 3A and 3B show explanatory views of the correspondence between a CPU and an address monitor portion in the preferred embodiment of the present invention,

FIG. 4 shows an example of a data registration to a cache according to the preferred embodiment of the present invention,

FIG. 5 shows an example of an address monitor according to the preferred embodiment of the present invention,

FIGS. 6A to 6D show circuit diagrams of the blocks shown in FIGS. 4 and 5,

FIG. 7 shows a block diagram for explaining the relation between a TLB and cache according to the preferred embodiment of the present invention, and

FIG. 8 designates a timing chart of a read operation in the block diagram in FIG. 7.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT

FIGS. 2A and 2B show the preferred embodiment of the present invention.

In FIG. 2A, CPU 10 performs an arithmetic operation and a memory management, for example. The CPU 10 contains a cache memory portion 11 and a tag portion 12 of the cache memory portion 11. An address monitor portion 13 is provided to the internally-installed cache and a tag portion 14 to the address monitor portion 13 corresponding to the tag portion 12 of the CPU 10. A main memory apparatus 15 stores a program or data processed by the CPU 10. An external cache 16 is provided to decrease the load of the system bus. It has a larger capacity than the cache installed in the CPU 10. A data bus 17 and an address bus 18 are connected to the CPU 10. A monitor bus 19 is connected between the CPU 10 and the address monitor portion 13. The data bus 17 and the address bus 18 are connected to an external data bus 21 and an external, address bus 20, respectively, through the external cache 16.

The present system comprises a plurality of data of data processing apparatuses, a main memory apparatus 15, and a system bus comprising an external address bus 20 and an external data bus 21 which connect a plurality of data processing apparatuses and the main memory apparatus 15.

At least one of the data processing apparatuses comprises the CPU 10, the address monitor portion 13 and the external cache 16. The data bus 17 connects the CPU 10 and the external cache 16, and the address bus 18 connects the CPU 10 to the external cache 16 external the address monitor portion 13. The external address bus 20 connects the main memory apparatus 15 to the address monitor portion 13 and the external cache 16. The external data bus 21 connects the main memory apparatus 15 to the external cache 16.

In this embodiment, the CPU 10 and the address monitor portion 13 are formed of different chips. The CPU 10 performs an address translation from logical address LA to physical address PA by using the portion other than the offset portion as an object of the address translation, as shown in FIG. 1B.

The cache memory portion 11 and the tag portion 12 in the CPU 10 use A bits in the offset portion of the logical address and B bits in the portion other than the offset portion as shown in FIG. 1B. The cache is accessed by using a set address of (A+B)bits, thereby forming an N-way set associative structure.

The tag portion 12 has an address information recording portion for updating the address of the data stored in the cache memory portion 11 in the main memory apparatus 15 and a recording portion designating that the data of the cache memory portion 11 is effective.

The address monitor portion 13 is used for maintaining the consistency of the content of the cache memory portion 11 in the CPU 10 and the main memory apparatus 15. The address monitor portion 13 contains the address monitor tag portion 14, which uses only A bits of the offset portion of the set address used in the CPU 10 for accessing the tag portion 12 of the cache as the set address of the address monitor tag portion 14 and has 2.sup.B .times.N-way set associative structures. That is, 2.sup.B .times.N regions (WAY0 to WAY15) exist in the address monitor tag portion 14, which is accessed by the set address (equal to A bits of the offset portion). When a set address is provided to the address monitor tag portion 14, a physical address is read out from a particular one (for example, WAY2) of 16 regions. This particular region is designated by B+log N when the physical address is written in the address monitor 13. In this embodiment, as the number N of the way is 2, and B comprises 3 bits, for example, B+log N=4 bits and one of 16 ways is selected as described in detail later by referring to FIG. 4 and 5.

In this data processing apparatus, the tag portion 12 of the CPU 10 is made to correspond to the address monitor tag portion 14 of the address monitor portion 13. The chip of the address monitor portion 13 performs an address monitor function, thereby sending the result of the monitoring function to the CPU 10, and then invalidating the corresponding recording portion of the tag portion 12 in the CPU 10.

In the present embodiment, when the address monitoring is performed as shown in FIG. 2A, the physical address of the external address bus 20 is compared with the content of 2.sup.B .times.N ways of the address monitor tag portion 14 for a set address of A bits. The result of the comparison of the respective ways (2.sup.B .times.N ways) is converted to B bits of the set address of tag portion 12 in the CPU 10, a way signal and an invalidation enable signal designating whether the invalidation is performed and then is transmitted to the CPU 10.

The CPU 10 combines B bits with A bits of the offset portion of the physical address on the external address bus 20 which is transmitted through the monitor bus 19 and determines the corresponding address set of the tag portion 12 in the CPU 10 and invalidates a valid bit of the corresponding portion based on the way signal output from the address monitor portion 13, thereby maintaining consistency between the main memory apparatus 15 and the internally-installed cache in the CPU 10.

FIGS. 3A and 3B show the correspondence relation between the CPU and the address monitor portion in the preferred embodiment of the present invention, FIG. 4 shows an example of the data registration into the cache in the preferred embodiment of the present invention, FIG. 5 shows an example of the address monitor in the preferred embodiment of the present invention, FIGS. 6A to 6D show circuit diagrams of blocks shown in FIGS. 4 and 5, FIG. 7 shows a block diagram for explaining the relation between TLB and cache in the preferred embodiment of the present invention, and FIG. 8 shows a read operation timing chart for the block diagram shown in FIG. 5.

The preferred embodiment explained hereinafter has the following structure. These conditions can be changed in accordance with the system structure when the present invention is practiced.

1 The logical address LA comprises 32 bits and the offset portion comprises 12 bits of LA(11:0).

2 The block of the internally-installed cache memory in CPU comprises 16 bytes.

3 The structure of the internally-installed cache in the CPU comprises a 2-way set associative structure.

4 The internally-installed cache memory in the CPU comprises 32 Kbytes.

5 The tag portion of the address monitor portion comprises a 16-way set associative structure of the set address of LA(11:4).

According to the above condition 4, LA(14:4) is used as the set address of the cache installed in the CPU.

Firstly, the case in which data is registered in the cache is explained by referring to FIGS. 2A, 2B and 4.

The logical address designated by the program is subjected to an address translation and is translated to the physical address, which is output to address bus 18. The CPU 10 receives 16 bytes of data to be registered from the external cache 16 through the data bus 17.

Then, the CPU 10 registers a physical address PA(31:12) (for example, 00003 ) corresponding to the data registered in the set address (for example, 200) corresponding to the logical address LA(14:4) and in the way (for example, WAY0) designated by the CPU-way selecting circuit 30 with regard to the tag portion 12 in the CPU 10, thereby invalidating the valid bit. In this example, 16 bytes of data are registered in the set portion in the cache memory portion 11 in the same way as in the tag portion 12. However, this is not directly related to the present invention so its detailed explanation is omitted.

At the same time, the above-recited physical address PA(31:12) is registered in the way given by CPU way number+logical address LA(14:12) and in the set address given by the logical address LA(11:4) for the address monitor tag portion 14 of the address monitor portion 13.

FIG. 3A shows a correspondence table between a signal transmitted from the CPU 10 to the address monitor unit 13 and the way of the address monitor tag portion 14. The address monitor portion way selecting circuit 31 controls the selection of a way in accordance with this table.

For example, as shown in FIG. 4, suppose that, as a result of the address translation, the logical address is H'00002000 and the physical address is H'00003000. The set address A+B applied to the cache comprises LA(14:4) and can be expressed as 200 in hexadecimal numbers. In this instance, where 200 is used as the set address of the cache in CPU 10, and the CPU way selecting circuit 30 designates WAY0, 00003 of PA(31:12), namely, H'000003000 of the physical address is stored at the address 200 of the tag portion 12 and the validity indicating bit is made valid.

Simultaneously, the way selection signal (WAY=0) provided by the CPU way selecting circuit 30 and the logical address LA(14:12)=B'010 (which corresponds to B of A+B in FIG. 2A) are input to the address monitor portion way selecting circuit 31 and WAY2 is selected as a way of address monitor tag portion 14 based on the third line of the correspondence table shown in FIG. 3A.

00003 is registered at the place designated by logicai address LA(11:4), i.e. 00 of LA 200 in FIG. 4, i.e., 0 address and WAY 2, and the valid bit is simultaneously made valid. One of 16 ways is selected the number of ways being determined by LA(14:12), i.e., three bits. The number of ways can be generally expressed as 2.sup.B. In this manner, the same physical address is registered in the tag portion 12 of the CPU 10 and in the tag portion 14 in the address monitor portion 13.

Next, an operation of the address monitor for performing an invalidation operation of the cache memory is explained by referring to FIG. 5. The invalidation of the cache is performed by detecting that PA(31:12) of the physical address produced on the address bus when the other CPU rewrites the main memory apparatus is stored in the address monitor portion; by decoding the way number of the address monitor portion when the physical address (31:12) exists in the address monitor portion, thereby providing B bits and combining them with the A bits to provide A+B bits; and by invalidating the content of the cache memory address designated by the A+B bits.

First, an external address EA (31:0)=H'000030000, i.e., the physical address PA to be monitored, is latched in the external address buffer 40 of the address monitor portion 13 and the set to be monitored is determined by using (11:4) of EA, i.e., 00 of 3000 of the external address EA, which is the offset portion and is thus equal to the logical address (11:4). Thus, the logical address (11:4) is used to access the address monitor portion 14, and the 0 address of the address monitor portion 14 is accessed. Then, as shown in FIG. 4, the 0 address of the address monitor portion 14 outputs 0003 in WAY2, which is written in the address portion 00 in the address monitor portion 14. 0003 is physical address (31:12) and is equal to external address EA (31:12). The physical address of respective ways WAY0-WAY15 registered in address monitor tag portion 14 are respectively compared with (31:12) of the external address EA by the address comparison portion 41.

As a result, if the physical address accords with (31:12) of the external address EA, the circuit 42 for signal translation and invalidation control converts the HIT signal of the WAY2 to the CPU WAY0 and the address monitor logical address LA(14:12), namely B bits, which should be used for the invalidation, in accordance with the third line of the correspondence relation table shown in FIG. 3B, and transmits the CPU way and the address monitor logical address to the CPU 10. Only HIT2 of CMP2 selected from among CMP0 to CM15 becomes 1 and the other HIT signals become 0. Then the signal of HIT2 is decoded to provide the B bits (B'110). As the A bits of LA(14:11) already exist, the B bits are connected to the upper side of LA(14:11), thereby providing LA(14:4) to tag portion 12 through selector 9. The circuit 42 also outputs to the CPU 10 the invalidation enable signal 53 (obtained by the logical OR of HIT signals) designating whether the cache should be invalidated or not.

The CPU 10 combines the above output (B bits) from the circuit 42 with the external address EA(11:4), namely, address monitor logical access LA(11:4), to provide the set address and access the tag portion 12 by using the set address. The address monitor tag portion 14 has a valid bit, so the address which is hit in the address monitor portion 13 should always be hit in the CPU 10. Therefore, the valid bit to be accessed by the tag portion 12 of the CPU 10 is invalidated.

Comparison with the corresponding portion of the address monitor portion 13, namely, external address EA, is performed simultaneously. Then, the valid bit of the portion which accords with the external address EA is invalidated. The external cache 16 shown in FIG. 2A performs an address monitor function for itself.

If the address 3000 is in the external address bus 20 and the address monitoring operation is required in FIG. 5, the external address EA(31:4) is first input and latched in the external address buffer 40. Then, the set address of the address monitor tag portion 14 becomes 00 based on (11:4) of the external address EA. WAY