A cache in a central processing unit is a data storage structure that is used by the central processing unit of a computer to reduce the average time that it takes to access memory. It is a memory which stores copies of data that is located in the most frequently used main memory locations. Moreover, cache memory is memory that is smaller and that may be accessed more quickly than main memory. There are several different types of caches. These include physically indexed physically tagged (PIPT), virtually indexed virtually tagged (VIVT) and virtually indexed physically tagged (VIPT).
Caches that can accommodate multiple accesses in a single cycle provide performance advantages. In particular, such caches feature reduced access latencies. Conventional approaches to accommodating multiple accesses in a single cycle include the use of multi-ported caches and the provision of caches that include a plurality of tag and data banks.
A multi-ported cache is a cache which can serve more than one request at a time. In accessing some conventional caches a single memory address is requested, whereas in a multi-ported cache, N memory addresses can be requested at a time, where N is the number of ports that is possessed by the multi-ported cache. An advantage of a multi ported cache is that greater throughput (e.g., a greater number of load and store requests) may be accommodated. However, the number of cache ports that are needed to accommodate increasingly high levels of throughput may not be practical.
Caches that include a plurality of tag and data banks can serve more than one request at a time as each tag and data bank can serve at least one request. However, when more than one request attempts to access the same bank, the request that will be allowed to access the bank must be determined. In one conventional approach arbitration is used to determine which request will be allowed to access a given tag and data bank. In such conventional approaches, the time that it takes to execute the arbitration can delay access to the tag bank and thus delay the triggering of the critical Load Hit signal, typically found in the level 1 cache of processors.
Conventional approaches to accommodating throughput that involve multiple loads can result in unsatisfactory delays in receiving load hit signals. A method for supporting a plurality of load accesses of a data cache (e.g., formed from SRAM or other type memory) is disclosed that addresses these shortcomings. However, the claimed embodiments are not limited to implementations that address any or all of the aforementioned shortcomings. As a part of the method, a plurality of requests to access the data cache is accessed, and in response, a tag memory is accessed that maintains a plurality of copies of tags for each entry in the data cache. Tags are identified that correspond to individual requests. The data cache (e.g., formed from SRAM or other type memory) is divided into many banks or “blocks”. The data cache is accessed based on the identified tags. A plurality of requests to access the same block of the plurality of blocks of the data cache results in an access arbitration with respect to that block. The block access arbitration is executed in parallel with the access of tags that correspond to individual access requests. Consequently, the penalty to the timing of load hit signals that is exacted by arbitration to access tag and data banks found in conventional approaches is avoided.
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:
It should be noted that like reference numbers refer to like elements in the figures.
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.
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.
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.
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.
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 “accessing” 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.
Referring to
Data cache tag memory 103b is configured to maintain tag entries for each of the cache line entries stored in L1 data cache 103a. Referring to
Referring to
Referring again to
Operation
Referring to
At B, data cache tag memory 103b is searched and tags residing therein that are associated with the data sought by the plurality of requests (AR1-ARN) to access L1 data cache 103a are identified.
At C, during the same clock cycle as the search of data cache tag memory 103b that is executed at B, an arbitration process to determine which of the two requests (access request AR1 and access request AR2) will be allowed to access block 0 of L1 data cache 103a is initiated and completed. As a part of the aforementioned arbitration process, one of the two requests (access request AR1) is chosen to proceed with access of block 0.
At D, the plurality of access requests (except those that are arbitration losers such as AR2 in the
At E, the data (for example “X” corresponding to AR1) that is sought by the access requests are identified in L1 data cache 103a and read (e.g., loaded).
In one embodiment, system 101 is designed to operate in environments where several load and store instructions are provided in a single cycle. In one embodiment, the methodology disclosed herein avoids the reliance upon the use of an excessive number of cache ports, which may not be practical. In exemplary embodiments, throughput is enabled without negatively impacting the timing of the “Load Hit” signal.
In one embodiment, as discussed herein, L1 data cache 103a can be organized into a plurality of blocks and the tags that correspond to data that is maintained in L1 data cache 103a can be duplicated and stored in data cache tag memory 103b. Moreover, as discussed herein, the organization of data cache 103a into blocks enable several loads to be supported in a single cycle if they do not access the same data block. However, in one embodiment, multiple loads to a single data block can be accommodated as long as they are to the same address. In exemplary embodiments, the approach discussed herein does not perform any arbitration with regard to tags and thus avoids a latency penalty (the addition of latency) related to the timing of a “Load Hit” signal that would derive from such arbitration operations.
Load request accessor 201 accesses a plurality of load requests that seek to access data stored in an L1 data cache (e.g., 103a in
Tag memory accessor 203, in response to the receipt of a plurality of load requests, searches in parallel, respective copies (e.g., 1-N) of the tags of a data cache tag memory (e.g., 103b in
Cache accessor 205 accesses a plurality of data blocks of the L1 data cache using the tags that are identified by tag memory accessor 203. In one embodiment, the plurality of data blocks facilitates the accessing of the L1 data cache (e.g. 103a in
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 103c in
Referring to
At 303, a tag memory is accessed that maintains a plurality of copies of the tags that correspond to the entries of the data cache.
At 305, tags are identified that correspond to individual load requests of the plurality of load requests received by the L1 cache. In one embodiment, each load request is accorded a dedicated copy of the set of tags that correspond to the entries located in the data cache.
At 307, the blocks of the data cache are accessed based on the tags that are identified as corresponding to the individual requests. In one embodiment, the accessing of the plurality of blocks enables a throughput of multiple load accesses in the same clock cycle.
With regard to exemplary embodiments thereof, systems and methods for accessing a data cache is disclosed. A plurality of requests to access the data cache is accessed, and in response, a tag memory is accessed that maintains a plurality of copies of tags for each entry in the load cache. Tags are identified that correspond to individual requests. The data cache is accessed based on the tags that correspond to the individual requests. A plurality of requests to access the same block of the plurality of blocks causes an access arbitration that is executed in the same clock cycle as is the access of the tag memory.
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.
Number | Name | Date | Kind |
---|---|---|---|
4075704 | O'Leary | Feb 1978 | A |
4245344 | Richter | Jan 1981 | A |
4356550 | Katzman et al. | Oct 1982 | A |
4414624 | Summer, Jr. et al. | Nov 1983 | A |
4524415 | Mills, Jr. et al. | Jun 1985 | A |
4527237 | Frieder et al. | Jul 1985 | A |
4577273 | Hoppert et al. | Mar 1986 | A |
4597061 | Cline et al. | Jun 1986 | A |
4600986 | Scheuneman et al. | Jul 1986 | A |
4633434 | Scheuneman | Dec 1986 | A |
4682281 | Woffinden et al. | Jul 1987 | A |
4816991 | Watanabe et al. | Mar 1989 | A |
4920477 | Colwell et al. | Apr 1990 | A |
5294897 | Notani et al. | Mar 1994 | A |
5317705 | Gannon et al. | May 1994 | A |
5317754 | Blandy et al. | May 1994 | A |
5548742 | Wang et al. | Aug 1996 | A |
5559986 | Alpert et al. | Sep 1996 | A |
5574878 | Onodera et al. | Nov 1996 | A |
5634068 | Nishtala et al. | May 1997 | A |
5752260 | Liu | May 1998 | A |
5754818 | Mohamed | May 1998 | A |
5787494 | DeLano et al. | Jul 1998 | A |
5793941 | Pencis et al. | Aug 1998 | A |
5802602 | Rahman et al. | Sep 1998 | A |
5806085 | Berliner | Sep 1998 | A |
5813031 | Chou et al. | Sep 1998 | A |
5835951 | McMahan | Nov 1998 | A |
5852738 | Beakowski et al. | Dec 1998 | A |
5860146 | Vishin et al. | Jan 1999 | A |
5864657 | Stiffler | Jan 1999 | A |
5872985 | Kimura | Feb 1999 | A |
5905509 | Jones et al. | May 1999 | A |
5918251 | Yamada et al. | Jun 1999 | A |
5956753 | Glew et al. | Sep 1999 | A |
5974506 | Sicola et al. | Oct 1999 | A |
6016533 | Tran | Jan 2000 | A |
6073230 | Pickett et al. | Jun 2000 | A |
6075938 | Bugnion et al. | Jun 2000 | A |
6088780 | Yamada et al. | Jul 2000 | A |
6092172 | Nishimoto et al. | Jul 2000 | A |
6101577 | Tran | Aug 2000 | A |
6134634 | Marshall, Jr. et al. | Oct 2000 | A |
6138226 | Yoshioka et al. | Oct 2000 | A |
6167490 | Levy et al. | Dec 2000 | A |
6212613 | Belair | Apr 2001 | B1 |
6226732 | Pei et al. | May 2001 | B1 |
6260131 | Kikuta et al. | Jul 2001 | B1 |
6272662 | Jadav et al. | Aug 2001 | B1 |
6275917 | Okada | Aug 2001 | B1 |
6321298 | Hubis | Nov 2001 | B1 |
6341324 | Caulk, Jr. et al. | Jan 2002 | B1 |
6437789 | Tidwell et al. | Aug 2002 | B1 |
6449671 | Patkar et al. | Sep 2002 | B1 |
6557083 | Sperber et al. | Apr 2003 | B1 |
6604187 | McGrath et al. | Aug 2003 | B1 |
6658549 | Wilson et al. | Dec 2003 | B2 |
6681395 | Nishi | Jan 2004 | B1 |
6907600 | Neiger et al. | Jun 2005 | B2 |
6912644 | O'Connor et al. | Jun 2005 | B1 |
7007108 | Emerson et al. | Feb 2006 | B2 |
7111145 | Chen et al. | Sep 2006 | B1 |
7149872 | Rozas et al. | Dec 2006 | B2 |
7213106 | Koster et al. | May 2007 | B1 |
7278030 | Chen et al. | Oct 2007 | B1 |
7380096 | Rozas et al. | May 2008 | B1 |
7406581 | Southwell | Jul 2008 | B2 |
7546420 | Shar et al. | Jun 2009 | B1 |
7856530 | Mu | Dec 2010 | B1 |
7913058 | Rozas et al. | Mar 2011 | B2 |
8145844 | Bruce | Mar 2012 | B2 |
8239656 | Rozas et al. | Aug 2012 | B2 |
8301847 | Dantzig et al. | Oct 2012 | B2 |
8522253 | Rozas et al. | Aug 2013 | B1 |
8868838 | Glasco et al. | Oct 2014 | B1 |
8930674 | Avudaiyappan et al. | Jan 2015 | B2 |
9047178 | Talagala et al. | Jun 2015 | B2 |
20020069326 | Richardson et al. | Jun 2002 | A1 |
20020082824 | Neiger et al. | Jun 2002 | A1 |
20020099913 | Steely, Jr. | Jul 2002 | A1 |
20030088752 | Harman | May 2003 | A1 |
20040044850 | George et al. | Mar 2004 | A1 |
20040064668 | Kjos et al. | Apr 2004 | A1 |
20040117593 | Uhlig et al. | Jun 2004 | A1 |
20040117594 | VanderSpek | Jun 2004 | A1 |
20040205296 | Bearden | Oct 2004 | A1 |
20040215886 | Cargnoni et al. | Oct 2004 | A1 |
20050027961 | Zhang | Feb 2005 | A1 |
20050060457 | Olukotun | Mar 2005 | A1 |
20050108480 | Correale, Jr. et al. | May 2005 | A1 |
20050154867 | DeWitt et al. | Jul 2005 | A1 |
20060026381 | Doi et al. | Feb 2006 | A1 |
20060236074 | Williamson et al. | Oct 2006 | A1 |
20060277365 | Pong | Dec 2006 | A1 |
20080077813 | Keller et al. | Mar 2008 | A1 |
20080091880 | Vishin | Apr 2008 | A1 |
20080126771 | Chen et al. | May 2008 | A1 |
20080215865 | Hino et al. | Sep 2008 | A1 |
20080270758 | Ozer et al. | Oct 2008 | A1 |
20080282037 | Kusachi et al. | Nov 2008 | A1 |
20090138659 | Lauterbach | May 2009 | A1 |
20090157980 | Bruce | Jun 2009 | A1 |
20090164733 | Kim et al. | Jun 2009 | A1 |
20090172344 | Grochowski et al. | Jul 2009 | A1 |
20100138607 | Hughes et al. | Jun 2010 | A1 |
20100169578 | Nychka et al. | Jul 2010 | A1 |
20100211746 | Tsukishiro | Aug 2010 | A1 |
20110010521 | Wang et al. | Jan 2011 | A1 |
20110082983 | Koktan | Apr 2011 | A1 |
20110153955 | Herrenschmidt et al. | Jun 2011 | A1 |
20120042126 | Krick et al. | Feb 2012 | A1 |
20130019047 | Podvalny et al. | Jan 2013 | A1 |
20130046934 | Nychka et al. | Feb 2013 | A1 |
20130086417 | Sivaramakrishnan et al. | Apr 2013 | A1 |
20130097369 | Talagala et al. | Apr 2013 | A1 |
20130238874 | Avudaiyappan et al. | Sep 2013 | A1 |
20130346699 | Walker | Dec 2013 | A1 |
20140032844 | Avudaiyappan et al. | Jan 2014 | A1 |
20140032845 | Avudaiyappan et al. | Jan 2014 | A1 |
20140032856 | Avudaiyappan et al. | Jan 2014 | A1 |
20140108730 | Avudaiyappan et al. | Apr 2014 | A1 |
20140156947 | Avudaiyappan et al. | Jun 2014 | A1 |
20140281242 | Abdallah et al. | Sep 2014 | A1 |
20160041908 | Avudaiyappan et al. | Feb 2016 | A1 |
20160041913 | Avudaiyappan et al. | Feb 2016 | A1 |
20160041930 | Avudaiyappan et al. | Feb 2016 | A1 |
Number | Date | Country |
---|---|---|
0596636 | May 1994 | EP |
0706133 | Apr 1996 | EP |
0125921 | Apr 2001 | WO |
Entry |
---|
Barham et al., “Xen and the Art of Virtualization,” ACM; Oct. 19, 2003; pp. 164-177. |
Gene Cooperman, Cache Basics, 2003, http://www.ccs.neu.edu/course/com3200/parent/Notes/cache-basics.html, pp. 1-3. |
Number | Date | Country | |
---|---|---|---|
20140032845 A1 | Jan 2014 | US |