A non-intrusive cache system has des an external cache and a plurality of On-Chip caches each having a set of tags associated therewith, with at least one of the On-Chip caches including data which is absent from the external cache. A pipelined Snoop bus is ported to each of the set of tags of the plurality of On-Chip caches and transmits a snoop address to the plurality of On-Chip caches. A system interface unit is responsive to a received ed Snoop request to scan the external cache and to apply the Snoop address of the Snoop request to the pipelined Snoop bus. A plurality of response signal lines respectively extend from the plurality of On-Chip caches to the system interface unit, each of the signal lines for transmitting a snoop response from a corresponding one of the on-board caches to the system interface unit. the set of tags can be implemented by dual-porting the cache tags, or by providing a duplicate and dedicated set of Snoop tags.
Background of the exception1. field of the exception
The present injection generally relates to microprocessor ubuntures, and more specifically, the present injection relates to a method using a pipelined Snoop bus for maintaining coherence among caches in a Multiprocessor configuration.
2. Description of the related art
In multiprocessor systems, processor cache memories often maintain multiple copies of a same data object. when one processor alters one copy of the data object, it is necessary to somehow update or invalidate all other copies of the object which may appear elsewhere in the multiprocessor system. thus, to insure coherence among multiple copies, every valid write to one copy of an object must update or invalidate every other copy of the object.
Consider, for example, the conventional multiprocessor configuration and located to the right of the dashed line are external (ext .) components 104. reference numeral 106 denotes an external cache (e-Cache) which is visible to all processors and which interfaces with a main memory (not shown ). access to and from the main memory can only occur through the e-Cache 106.
The CPU 102 contains multiple processors which share the main memory via the common memory bus (not shown) and the e-Cache 106. when one processor is granted exclusive use of a data object, the object is placed in the external cache 106 and used on the CPU chip 102 until it is taken away or evicted from the e-Cache 106. specified strated within the CPU 102 are the on-board caches 108 and 110 associated with one processor. cache 108 is a data cache (D-Cache) for storing data as it is passed back and forth from the execution units of the processor, and cache 110 is an instruction cache (I-Cache) holding instructions prior to execution by the processor's execution units.
Reference numeral 112 denotes an interface unit. when a processor desires exclusive use of an object from main memory, the corresponding interface unit 112 issues a snoop request. snooping protocols are generally designed so that all memory access requests are observed by each cache. in the event of a coherent write, each cache is responsive to the Snoop request to scan its directory to identify any copies of the object which may require invalidation or updating. however, to avoid searching every cache directory upon the occurrence of every coherent write, the conventional systems adopt an "aggressive" approach to the cache coherencies.
The basic principal underlying cache coherency schemes is that when one processor is granted exclusive use of a data object, all other processors invalidate that data in their own memories. in the conventional aggressive cache coherency structure, the e-cache contains des data existing in all the other caches on the chip. that is to say, any data that exists on the on-board caches of the chip must exist in the e-Cache as well. if a data object gets evicted out of the e-cache or snooped out of the e-cache, It is removed from all the on-chip caches.
As such, referring to the flowchart of fig. 2, when a snoop comes in from some other processor (Step 202), the system interface unit 112 looks to the E-Cache first to scan its contents (Step 204 ), and if the data object is not there (No at Step 206), snooping is complete since the data object cannot exist on the on-board caches of the chip. again, this is because every time something is evicted from the e-cache, It is invalidated on each of the on-board caches. if the data is found in the e-Cache (Yes at Step 206), then the interface unit 112 sends out a signal to invalidate the data as it exists on the on-board caches.
Since Snoop processing is complete when the data is not found in the e-cache, the conventional technique of looking first to the E-Cache for the data has the effect of filtering the Snoop requests applied to the on-board cache memories of the processors. this in turn CES the average bandwidth of the on-board Snoop processing.
However, the conventional scheme does suffer drawbacks. for example, each time a data object is evicted from the e-cache, it must be invalidated on each of the on-board memories to preserve the specified siveness of the configuration. if the e-cache is a large direct-mapped cache, and something is evicted, it must be evicted (invalidated) in all the lower level caches as well, even if not necessary. this often results in inefficiencies, since the e-Cache might have collisions which are not present in the on-board caches. this ultimately results in a condition ction in the cache hit rate.
Further, it is always possible for a number of Snoop requests to hit the e-cache in a row which require invalidates in the on-board memories, and thus, the chip must support this "peak" bandwidth. thus, the filtering is of limited value since over any given stretch of time, it may be necessary to carry out on-board Snoop processing at full bandwidth.
Summary of the partition tion
It is an object of the present partition is to overcome or at least minimize the drawbacks associated with the conventional snooping scheme described above.
It is a further object of the present partition tion to provide a snoop process for ensuring cache coherency without use of an aggressive e-Cache arrangement in which all data found in the On-Chip caches must be present in the e-Cache as well.
According to one aspect of the partition, a non-invasive cache method is provided for a processor system having an external cache and a plurality of On-Chip caches, including: including data in at least one of the On-Chip caches which is absent from the external cache; scanning the external cache and applying a snoop address of a snoop request to a pipelined Snoop bus in response to receipof the Snoop request; and transmitting the Snoop address to the plurality of on-board caches via the pipelined Snoop bus which is ported to each of a set of tags associated with the plurality of On-Chip caches.
According to another aspect of the partition, the method further provided des transmitting a snoop response from a corresponding one of the On-Chip caches to a system interface unit via a plurality of response signal lines respectively extending from the plurality of On-Chip caches to the system interface unit.
According to yet another aspect of the partition, A same multiple number of clock cycles are expended between a transmission of the Snoop address on the pipelined Snoop bus to receipof the Snoop response from each of the On-Chip caches.
According to still another aspect of the tion, the Snoop request is either one of two types, a first type being a request to invalidate a data object contained in any of the On-Chip caches, and a second type being a request to check for the presence of the Data Object in any of the On-Chip caches.
According to another aspect of the injection, the set of tags between des a set cache tags and a dedicated set of Snoop tags duplicating the set of cache tags, and the pipelined Snoop bus is ported to each of the dedicated set of Snoop tags.
According to still another aspect of the partition tion, the sets of tags should des a set of dual-port cache tags.
Brief description of the drawings
The above and other objects and advantages of the present detection will become readily apparent to those skilled in the art from the description that follows, with reference to the accompanying drawings, in which:
Fig. 1 is a block dimo-for explaining the conventional aggressive-type cache coherency configuration;
Fig. 2 is a simplified flowchart for explaining the snooping protocol of the configuration shown in Fig. 1;
Fig. 3 is a block divisor for explaining the non-intrusive cache coherency configuration of the present partition; and,
Fig. 4 is a simplified flowchart for explaining the snooping protocol of the configuration shown in Fig. 3.
Detailed description of the preferred embodiments
The present partition tion, an exemplary embodiment of which is shown in Fig. 3, presents a non-intrusive implementation of a cache coherency scheme. that is, there is no requirement that all data contained in the On-Chip caches also be present in the off-chip e-Cache as well.
Referring to fig. 3, to the left of the vertical dashed line sits the CPU chip 302, and located to the right of the dashed line are external (ext .) components 304. reference numeral 306 denotes an external cache (e-Cache) which is visible to all processors and which interfaces with a main memory (not shown ). access to and from the main memory can only occur through the e-Cache 306.
The CPU chip 302 contains multiple processors which share the main memory via the common memory bus (not shown) and the e-Cache 306. when one processor is granted exclusive use of a data object, the object is placed in the external cache 306 and used on the CPU chip 302 until it is taken away or evicted from the e-Cache 306. specified strated within the CPU chip 302 are the on-board caches 308 and 310 associated with one processor. cache 308 is a data cache (D-Cache) for storing data as it is passed back and forth from the execution units of the processor, and cache 310 is an instruction cache (I-Cache) holding instructions prior to execution by the processor's execution units. each processor may have other types of caches as well.
Each cache when des special Snoop tags 308a and 310a which when tively duplicate the corresponding cache tags. alternatively, the cache tags themselves may be dual-ported to provide a dedicated set of tags ports for snooping. in either case, the arrangement shocould support a full Snoop bandwidth.
Reference numeral 312 denotes a System Interface Unit (SIU ). when a processor desires exclusive use of an object from main memory, the corresponding interface unit 312 issues a snoop request. reference Number 314 is a dedicated pipelined Snoop bus which transmits the snoops in a pipeline, and reference numerals 316 and 318 are dedicated Snoop response lines.
The operation of the operation will now be described with reference to the flowchart of Fig. 4, as well as the block digoal of Fig. 3.
A Snoop arrives to the system interface unit 312 (Step 402), and, in the normal manner, the tags on the e-Cache 306 are checked right away (Step 404 ). A response is returned from the e-Cache 306 indicating whether one of the e-Cache tags matches the Snoop address. even in the event that the object is not found in the e-Cache 306, it is still necessary to examine the on-chip caches. again, the cache coherency system of the partition tion is non-intrusive, meaning that data may exist in an on-chip cache and not be present in the e-Cache 306.
Thus, in addition to checking the e-cache in steps 404 and 406, the SIU must check the on-chip caches as well. this is already strated by steps 408-422 which run in parallel to steps 404 and 406.
Initially, the SIU 312 applies the snoop to the pipelined Snoop bus 314 (Step 408), and the Snoop address is checked against the special dedicated Snoop tags of each cache (Step 410 ). it is noted that there is no filtering of snoops in the present injection, and thus, the snoops tags are designed at full bandwidth.
In one embodiment of the partition tion, there are two types of Snoop requests. the first simply invalidates the object, if it is present, and requires no response back. the second (called a "shared response" herein) checks for the presence of an object and thus requires a response back. in the case of the former (Yes at Step 412), the object in the cache is invalidated (Step 416) if it exists, I. E ., if there is a match between the Snoop address and a cache tag (Yes at Step 414 ). in the case of the later (not at Step 412 ), responses are sent back to the SIU 312 on lines 316 and 318 indicating that the data object is located in the On-Chip caches (Step 422) or is not located in the On-Chip caches (step 1, 420 ). the lines 316 and 318 are preferably one-bit wide, indicating the presence or absence of the snooped Data Object in each cache.
According to the injection, the Snoop bus 314 is pipelined and goes to its own dedicated port of tags. moreover, the snoops do not arrive at the tags in one cycle. rather, in the embodiment of the partition tion, it takes two cycles to get to the chip tag, and then up to three cycles to go through them, and then another two cycles to go back to the SIU 312. reference numeral 320 is a delay which is representative of the lengthening of the loops. since it is generally not possible to get all the way into ss the chip and back in one cycle, the loops are designed to have the same operational length of a specific number of cycles. in this manner, the SIU 312 knows the timing (number of cycles) of the response back from the caches. moreover, the pipelined bus is a part of the implementation that allows the system to work at the clock frequency.
Thus, according to the tion, the Snoop bus and duplicated Snoop tag rams are fully pipelined. all snoops (invalidate and share) are handled by all the on-chip caches since such caches may contain in data not found in the e-cache. also, shared responses are of a fixed latency to the Snoop originator or system interface unit.
Src = https://www.google.com.hk/patents/US6061766
Non-Intrusive cache method using pipelined Snoop Bus