SYSTEMS AND METHODS FOR MAINTAINING THE COHERENCY OF A STORE COALESCING CACHE AND A LOAD CACHE
20180011791 · 2018-01-11
Inventors
Cpc classification
G06F2212/1032
PHYSICS
International classification
Abstract
A method for maintaining the coherency of a store coalescing cache and a load cache is disclosed. As a part of the method, responsive to a write-back of an entry from a level one store coalescing cache to a level two cache, the entry is written into the level two cache and into the level one load cache. The writing of the entry into the level two cache and into the level one load cache is executed at the speed of access of the level two cache.
Claims
1. A method for maintaining a cache, comprising: writing an entry from a level one store coalescing cache into a level two cache; and writing the entry into a level one load cache, wherein the writing of the entry into the level two cache and the writing of the entry into the level one load cache maintains coherency of the store coalescing cache and the level one load cache.
2. The method of claim 1, wherein the writing of the entry into the level two cache and the writing of the entry into the level one cache is performed in a single clock cycle.
3. The method of claim 1, wherein the writing of the entry into the level two cache and the writing of the entry into the level one load cache is executed at a speed of access of the level two cache.
4. The method of claim 1, wherein the writing of the entry from the level one store coalescing cache into a level two cache is in response to a write-back request.
5. The method of claim 1, wherein the writing of the entry into the level one load cache is performed with a write port of the level one load cache.
6. The method of claim 5, wherein the level two cache is configured to control the write port of the level one load cache.
7. The method of claim 1, wherein the writing of the entry into the level one load cache updates a stale entry in the level one load cache.
8. The method of claim 1, wherein an address associated with the entry has a value associated therewith in the level one store coalescing cache that is different from a corresponding value in the level one load cache before the writing of the entry from the level one store coalescing cache into the level two cache.
9. A cache system comprising: a level one cache comprising: a store coalescing cache; and a load cache; a level two cache comprising: a cache controller comprising: a write-back accessing component for accessing a write-back request to the store coalescing cache; and a writing component configured for writing an entry into the level two cache and writing the entry into the load cache, wherein the writing of the entry into the level two cache and the writing of the entry into the load cache are configured to maintain coherency of the store coalescing cache and the load cache.
10. The cache system of claim 8, wherein writing component is configured to write the entry into the store coalescing cache and into the load cache in response to the write-back request.
11. The cache system of claim 8, wherein the writing of the entry into the level two cache and the writing of the entry into the load cache is performed in a single clock cycle.
12. The cache system of claim 8, wherein the writing the entry into the level two cache and the writing the entry into the load cache is executed at a speed of access of the level two cache.
13. The cache system of claim 8, wherein the writing of the entry into the level two cache and the writing of the entry into the load cache is executed at a pipeline speed of the level two cache.
14. The cache system of claim 8, wherein of the writing the entry into the load cache is performed with a write port of the load cache.
15. The cache system of claim 14, wherein the level two cache is configured to control the write port of the load cache.
16. The cache system of claim 8, wherein the writing of the entry into the load cache updates a stale entry in the load cache.
17. The cache system of claim 8, wherein an address associated with the entry has a value associated therewith in the store coalescing cache that is different from a corresponding value in the load cache before the writing of the entry into the level two cache.
18. A processor, comprising: a cache system, comprising: a level one cache comprising: a first cache portion; and a second cache portion; a level two cache comprising: a cache controller comprising: a write-back accessing component for accessing a write-back request to the first cache portion; and a writing component for configured for writing an entry into the level two cache and writing the entry into the second cache portion, wherein the writing of the entry into the level two cache and the writing of the entry into the second cache portion are configured to maintain coherency of the first cache portion and the second cache portion.
19. The processor of claim 15, wherein writing component is configured to write the entry into the level two cache and write the entry into the second cache portion in response to the write-back request.
20. The processor of claim 15, wherein the writing of the entry to the second cache portion is executed at the speed of access of the level two cache.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0007] The invention, together with further advantages thereof, may best be understood by reference to the following description taken in conjunction with the accompanying drawings in which:
[0008]
[0009]
[0010]
[0011]
[0012]
[0013] It should be noted that like reference numbers refer to like elements in the figures.
DETAILED DESCRIPTION
[0014] Although the present invention has been described in connection with one embodiment, the invention is not intended to be limited to the specific forms set forth herein. On the contrary, it is intended to cover such alternatives, modifications, and equivalents as can be reasonably included within the scope of the invention as defined by the appended claims.
[0015] In the following detailed description, numerous specific details such as specific method orders, structures, elements, and connections have been set forth. It is to be understood however that these and other specific details need not be utilized to practice embodiments of the present invention. In other circumstances, well-known structures, elements, or connections have been omitted, or have not been described in particular detail in order to avoid unnecessarily obscuring this description.
[0016] References within the specification to “one embodiment” or “an embodiment” are intended to indicate that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. The appearance of the phrase “in one embodiment” in various places within the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Moreover, various features are described which may be exhibited by some embodiments and not by others. Similarly, various requirements are described which may be requirements for some embodiments but not other embodiments.
[0017] Some portions of the detailed descriptions, which follow, are presented in terms of procedures, steps, logic blocks, processing, and other symbolic representations of operations on data bits within a computer memory. These descriptions and representations are the means used by those skilled in the data processing arts to most effectively convey the substance of their work to others skilled in the art. A procedure, computer executed step, logic block, process, etc., is here, and generally, conceived to be a self-consistent sequence of steps or instructions leading to a desired result. The steps are those requiring physical manipulations of physical quantities. Usually, though not necessarily, these quantities take the form of electrical or magnetic signals of a computer readable storage medium and are capable of being stored, transferred, combined, compared, and otherwise manipulated in a computer system. It has proven convenient at times, principally for reasons of common usage, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, or the like.
[0018] It should be borne in mind, however, that all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. Unless specifically stated otherwise as apparent from the following discussions, it is appreciated that throughout the present invention, discussions utilizing terms such as “receiving” or “searching” or “identifying” or “providing” or the like, refer to the action and processes of a computer system, or similar electronic computing device that manipulates and transforms data represented as physical (electronic) quantities within the computer system's registers and memories and other computer readable media into other data similarly represented as physical quantities within the computer system memories or registers or other such information storage, transmission or display devices.
Exemplary Operating Environment of a System for Maintaining the Coherency of a Store Coalescing Cache and a Load Cache According to One Embodiment
[0019]
[0020] Referring
[0021] In one embodiment, stores that update entries in store coalescing cache 103a may not update copies of the entries that are maintained in load cache 103b. Accordingly, in one embodiment, at the time of a request to write-back a data entry that resides in store coalescing cache 103a, a corresponding data entry that is then present in load cache 103b can be stale. In one embodiment, when this occurs, requests to replace data in store coalescing cache 103a are used to trigger the writing of L2 cache 107 to include the entry that is to be replaced in store coalescing cache 103a as part of the requested write-back. Thereafter, the entry can be written to load cache 103b in the same clock cycle. In one embodiment, when the entry from store coalescing cache 103a is in the queue to be written to L2 cache 107, the write port of load cache 103b that is under the control of L2 cache 107 is made available for the write from L2 cache 107 to load cache 103b.
[0022] Referring again to
[0023] Main memory 111 includes physical addresses that store the information that is copied into cache memory. In one embodiment, when the information that is contained in the physical addresses of main memory that have been cached is changed, the corresponding cached information is updated to reflect the changes made to the information stored in main memory. Also shown in
Operation
[0024]
[0025] Referring to
[0026] At B (e.g., time 1), store A writes A with value 1 into a store coalescing cache (e.g., 103a in
[0027] At C (e.g., time 2), store B requests a write-back of A from the store coalescing cache to the L2 cache by requesting that a data of value X corresponding to address B replace the data of value 1 that corresponds to address A that is present in the aforementioned index of the store coalescing cache. In one embodiment, store B is a request to write-back the data value 1 corresponding to address A into an index of the L2 cache (e.g., 107 in
[0028] At D (e.g., time 3), the L2 cache writes itself for A with data value 1. Because in one embodiment, the L2 cache does not include the contents of store coalescing cache, the entry corresponding to address A is newly written into an index of the L2 cache.
[0029] At E (e.g., time 4), the L2 cache also writes the load cache for A with value 1. The addresses and values used in the description of the operation of the embodiment of
[0030] In one embodiment, as is discussed herein, because stores that are received by the store coalescing cache that update the data that is maintained therein may not immediately update the copies of the data that are maintained in the load cache, a copy of the data that is maintained by the load cache can be stale. Consequently, providing the load cache with the most up to date (most recent) version of the data is undertaken such that at the time of write-back, the load cache is cache coherent with the store coalescing cache with respect to the data that is written-back ( the data that is removed from the store coalescing cache).
Components of System for Maintaining Coherency of a Store Coalescing Cache and a Load Cache According to One Embodiment
[0031]
[0032] Write-back request accessor 201 accesses a write-back request that seeks to replace an entry that is maintained in a level one store coalescing cache (e.g., store coalescing cache 103a in
[0033] Write-back component 201, responsive to a write-back or an authorization of a write-back of an entry from a level one store coalescing cache to a level two cache, writes the entry into the level two cache and then writes the entry into the level one load cache (e.g., load cache 103b in
[0034] It should be appreciated that the aforementioned components of system 101 can be implemented in hardware or software or in a combination of both. In one embodiment, components and operations of system 101 can be encompassed by components and operations of one or more computer components or programs (e.g., cache controller 107a in
Method for Maintaining Coherency of a Store Coalescing Cache and a Load Cache According to One Embodiment
[0035]
[0036] Referring to
[0037] At 303, responsive to a write-back of an entry or an authorization of a write-back from a level one store coalescing cache to a level two cache, the entry is written into the level two cache. In one embodiment, the level two cache (e.g., L2 cache 107) does not include the contents of the store coalescing cache or the load cache (e.g., store coalescing cache 103a and load cache 103b), accordingly it must be first written to the level two cache before the load cache can be updated.
[0038] At 305, the entry is written into the level one load cache. In one embodiment, the aforementioned writing the entry into the level two cache and the writing the entry into the level one load cache is executed at the speed of access of the level two cache. In one embodiment, the level two cache controls a port for writing data to level one load cache, whereas the level one store coalescing cache does not. As such, in order for the entry that is written back to the level two cache to be written to the level one load cache, the entry is initially written to the level two cache as discussed, from whence it can be written to the level one load cache using the level two cache write port.
[0039] With regard to exemplary embodiments thereof, a method for maintaining the coherency of a store coalescing cache and a load cache is disclosed. As a part of the method, responsive to a write-back of an entry from a level one store coalescing cache to a level two cache, the entry is written into the level two cache and into the level one load cache. The writing of the entry into the level two cache and into the level one load cache is executed at the speed of access of the level two cache.
[0040] Although many of the components and processes are described above in the singular for convenience, it will be appreciated by one of skill in the art that multiple components and repeated processes can also be used to practice the techniques of the present invention. Further, while the invention has been particularly shown and described with reference to specific embodiments thereof, it will be understood by those skilled in the art that changes in the form and details of the disclosed embodiments may be made without departing from the spirit or scope of the invention. For example, embodiments of the present invention may be employed with a variety of components and should not be restricted to the ones mentioned above. It is therefore intended that the invention be interpreted to include all variations and equivalents that fall within the true spirit and scope of the present invention.