WO2014022115A1 - Systems and methods for supporting a plurality of load accesses of a cache in a single cycle - Google Patents

Systems and methods for supporting a plurality of load accesses of a cache in a single cycle Download PDF

Info

Publication number
WO2014022115A1
WO2014022115A1 PCT/US2013/051128 US2013051128W WO2014022115A1 WO 2014022115 A1 WO2014022115 A1 WO 2014022115A1 US 2013051128 W US2013051128 W US 2013051128W WO 2014022115 A1 WO2014022115 A1 WO 2014022115A1
Authority
WO
WIPO (PCT)
Prior art keywords
cache
access
data cache
requests
data
Prior art date
Application number
PCT/US2013/051128
Other languages
French (fr)
Inventor
Karthikeyan Avudaiyappan
Mohammad Abdallah
Original Assignee
Soft Machines, Inc.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from US13/561,570 external-priority patent/US9229873B2/en
Priority claimed from US13/561,528 external-priority patent/US9430410B2/en
Priority claimed from US13/561,491 external-priority patent/US9710399B2/en
Priority claimed from US13/561,441 external-priority patent/US9740612B2/en
Application filed by Soft Machines, Inc. filed Critical Soft Machines, Inc.
Publication of WO2014022115A1 publication Critical patent/WO2014022115A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0844Multiple simultaneous or quasi-simultaneous cache accessing
    • G06F12/0846Cache with multiple tag or data arrays being simultaneously accessible

Definitions

  • 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.
  • caches 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.
  • the request that will be allowed to access the bank must be determined.
  • arbitration is used to determine which request will be allowed to access a given tag and data bank.
  • 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.
  • 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.
  • 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.
  • Figure 1 A shows an exemplary operating environment of a system for supporting a plurality of load accesses of a data cache in a single cycle according to one embodiment.
  • Figure 1 B shows the manner in which a plurality of data blocks facilitate the accessing of a data cache by a throughput of multiple load accesses in the same clock cycle according to one embodiment.
  • Figure 1 C shows a data cache tag memory that maintains a plurality of copies of the tags that correspond to the entries of a level one data cache according to one embodiment.
  • Figure 1 D illustrates arbitration operations associated with a first access request and a second access request of access requests 1 -N being executed in parallel with a search of a data cache tag memory according to one embodiment.
  • Figure 1 E illustrates the operations that are performed by a system for supporting a plurality of load accesses of a data cache in a single cycle according to one embodiment.
  • Figure 2 shows components of a system for supporting a plurality of load accesses of a data cache in a single cycle according to one embodiment.
  • Figure 3 shows a flowchart of a method for supporting a plurality of load accesses of a data cache in a single cycle according to one embodiment.
  • 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.
  • various features are described which may be exhibited by some embodiments and not by others.
  • various requirements are described which may be requirements for some embodiments but not other embodiments.
  • FIG. 1A shows an exemplary operating environment 100 for supporting a plurality of load accesses of a data cache in a single clock cycle according to one embodiment.
  • System 101 enables tags corresponding to data sought by a plurality of load requests to a level one data cache (that has a plurality of data blocks to accommodate the plurality of requests) to be obtained within a single clock cycle.
  • block access arbitrations involving the plurality of load requests to the level one data cache are executed within the same clock cycle. Consequently, a throughput of a plurality of load accesses is accommodated and the penalty to the timing of load hit signals that is exacted by arbitration in conventional approaches is avoided.
  • Figure 1A shows system 101 , level one (L1 ) cache 103, level one (L1 ) data cache 103a, data cache tag memory 103b, L1 cache controller 103c, CPU 105, level two (L2) cache 107, main memory 109 and system interface 1 1 1 .
  • L1 cache 103 is a level 1 or "primary" cache and L2 cache 107 is a level 2 or "secondary" cache.
  • L1 cache 103 can be formed as a part of CPU 105.
  • L1 cache 103 can include L1 data cache 103a, data cache tag memory 103b and L1 cache controller 103c.
  • L1 data cache 103a can be divided into a plurality of data blocks.
  • L1 data cache 103a can be divided into four 8 kilobyte data blocks.
  • L1 data cache 103a can be divided into other numbers of data blocks that have the capacity to store other amounts of data.
  • the plurality of data blocks facilitate the accessing of L1 data cache 103a by a throughput of multiple accesses in the same clock cycle.
  • conflicting requests for access that seek to access the same block of L1 data cache 103a at the same time can be resolved using arbitration (whose time impact as discussed above is negated).
  • the data blocks can include cache line entries that are accessed by loads.
  • Data cache tag memory 103b is configured to maintain tag entries for each of the cache line entries stored in L1 data cache 103a.
  • data cache tag memory 103b maintains a plurality of copies (e.g., 1 -N) of the tags that correspond to the entries of L1 data cache 103a.
  • each request to access L1 data cache 103a is accorded a dedicated copy of tags corresponding to the entries of L1 data cache 103a. This manner of maintaining tag entries facilitates the identification of tags that are associated with the cache line entries within a single clock cycle.
  • an identification of a tag can be completed in the same clock cycle in which an arbitration involving an access request (e.g., load request) to L1 data cache 103a for data associated with the tag is executed.
  • access requests e.g., load requests
  • L1 data cache 103a trigger a search of data cache tag memory 103b for the tag that corresponds to the data that is sought by the load request.
  • system 101 responsive to a receipt by L1 cache 103 of a plurality of request to access L1 data cache 103a of L1 cache 103, executes a search of a data cache tag memory 103b such that tags that correspond to data sought by the plurality of requests are identified in parallel with the execution of any arbitration operations that are associated with the requests.
  • This is illustrated in Figure 1 D, where arbitration operations associated with a first access request AR1 and a second access request AR2 of access requests 1 -N, are shown as being executed in parallel with a search of data cache tag memory 103b.
  • the aforementioned action of system 101 operates to avoid a deleterious impact of arbitration operations on the timing of load hit signals.
  • system 101 supported by duplicated data cache tag memory 103b and blocked L1 data cache 103a, facilitates the access of a cache by several load requests in one clock cycle without penalizing cache hit latency and throughput.
  • system 101 can be located in cache controller 103c. In other embodiments, system 101 can be separate from cache controller 103c, but operate cooperatively therewith.
  • main memory 1 1 1 includes physical addresses that store the information that is copied into cache memory.
  • the corresponding cached information is updated to reflect the changes made to the information stored in main memory.
  • system interface 1 1 1 is also shown in Figure 1 A . OPERATION
  • Figure 1 E illustrates operations performed by system 101 for supporting a plurality of load accesses of a data cache in a single cycle according to one embodiment. These operations, which relate to supporting a plurality of load accesses to a data cache are illustrated for purposes of clarity and brevity. It should be appreciated that other operations not illustrated by Figure 1 E can be performed in accordance with one embodiment.
  • a plurality of requests to access data cache 103a are received.
  • two of the plurality of requests, access request AR1 and access request AR2 attempt to access the same data block (for example block 0 as identified by virtual address bits 6 and 7 of AR1 and AR2, e.g., virtual address bits 7:6 of the virtual address associated with AR1 and AR2) of L1 data cache 103a are received.
  • 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.
  • the plurality of access requests (except those that are arbitration losers such as AR2 in the Figure 1 E example) access data cache 103a using the tags that are identified at B.
  • 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).
  • system 101 is designed to operate in environments where several load and store instructions are provided in a single cycle.
  • the methodology disclosed herein avoids the reliance upon the use of an excessive number of cache ports, which may not be practical.
  • throughput is enabled without negatively impacting the timing of the "Load Hit" signal.
  • 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.
  • a latency penalty the addition of latency
  • Figure 2 shows components of a system 101 for supporting a plurality of load accesses of a cache in a single cycle according to one embodiment.
  • components of system 101 implement an algorithm for supporting a plurality of load accesses.
  • components of system 101 include load request accessor 201 , tag memory accessor 203 and cache accessor 205.
  • 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 Figure 1A).
  • L1 data cache e.g., 103a in Figure 1A
  • more than one load request of the plurality of load requests can seek to access the same data block in the L1 data cache. In such cases, an arbitration is executed to decide which of the load requests will be allowed to access that block of the L1 data cache.
  • 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 Figure 1A) that correspond to the entries of an L1 data cache (e.g., 103a of Figure 1A).
  • each load request is accorded a dedicated copy of tags that correspond to the entries of the L1 data cache. This manner of maintaining tag entries facilitates the identification of tags that are associated with the cache line entries within a single clock cycle.
  • an arbitration involving an access request (e.g., load request) to a block of the L1 data cache for data associated with a tag is executed within the same clock cycle in which an identification of the tag is completed.
  • 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.
  • the plurality of data blocks facilitates the accessing of the L1 data cache (e.g. 103a in Figure 1A) by multiple access requestors in the same clock cycle.
  • conflicting requests for access that seek to access the same block of the L1 data cache at the same time can be resolved using arbitration (whose time impact on the "Load Hit" signal, as discussed herein, is negated by the operation of system 101 ).
  • the accesses to the data blocks involve a loading of data.
  • components and operations of system 101 can be implemented in hardware or software or in a combination of both.
  • 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 Figure 1A).
  • components and operations of system 101 can be separate from the aforementioned one or more computer components or programs but can operate cooperatively with components and operations thereof.
  • FIG. 3 shows a flowchart 300 of a method for supporting a plurality of load accesses of a data cache in a single cycle according to one embodiment.
  • the flowchart includes processes that, in one embodiment can be carried out by processors and electrical components under the control of computer-readable and computer-executable instructions. Although specific steps are disclosed in the flowcharts, such steps are exemplary. That is the present embodiment is well suited to performing various other steps or variations of the steps recited in the flowchart.
  • a plurality of load requests to access a data cache are accessed.
  • the data cache can include a plurality of blocks that can accommodate the plurality of load requests.
  • the plurality of load requests can include a plurality of requests that seek to access the same block of the aforementioned data cache.
  • a tag memory is accessed that maintains a plurality of copies of the tags that correspond to the entries of the data cache.
  • tags are identified that correspond to individual load requests of the plurality of load requests received by the L1 cache.
  • each load request is accorded a dedicated copy of the set of tags that correspond to the entries located in the data cache.
  • 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.
  • 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.

Abstract

A method for supporting a plurality of load accesses is disclosed. A plurality of requests to access a 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 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.

Description

SYSTEMS AND METHODS FOR SUPPORTING A PLURALITY OF LOAD ACCESSES OF A CACHE IN A SINGLE CYCLE
[0001] 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).
[0002] 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.
[0003] 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.
[0004] 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.
SUMMARY
[0005] 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.
BRIEF DESCRIPTION OF THE DRAWINGS
[0006] 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: [0007] Figure 1 A shows an exemplary operating environment of a system for supporting a plurality of load accesses of a data cache in a single cycle according to one embodiment.
[0008] Figure 1 B shows the manner in which a plurality of data blocks facilitate the accessing of a data cache by a throughput of multiple load accesses in the same clock cycle according to one embodiment.
[0009] Figure 1 C shows a data cache tag memory that maintains a plurality of copies of the tags that correspond to the entries of a level one data cache according to one embodiment.
[0010] Figure 1 D illustrates arbitration operations associated with a first access request and a second access request of access requests 1 -N being executed in parallel with a search of a data cache tag memory according to one embodiment.
[001 1 ] Figure 1 E illustrates the operations that are performed by a system for supporting a plurality of load accesses of a data cache in a single cycle according to one embodiment.
[0012] Figure 2 shows components of a system for supporting a plurality of load accesses of a data cache in a single cycle according to one embodiment.
[0013] Figure 3 shows a flowchart of a method for supporting a plurality of load accesses of a data cache in a single cycle according to one embodiment.
[0014] It should be noted that like reference numbers refer to like elements in the figures. DETAILED DESCRIPTION
[0015] 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.
[0016] 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.
[0017] 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.
[0018] 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.
[0019] 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.
EXEMPLARY OPERATING ENVIRONMENT OF A SYSTEM FOR SUPPORTING A PLURALITY OF LOAD ACCESSES OF A CACHE IN A SINGLE CYCLE ACCORDING TO ONE EMBODIMENT
[0020] Figure 1A shows an exemplary operating environment 100 for supporting a plurality of load accesses of a data cache in a single clock cycle according to one embodiment. System 101 enables tags corresponding to data sought by a plurality of load requests to a level one data cache (that has a plurality of data blocks to accommodate the plurality of requests) to be obtained within a single clock cycle. Moreover, as a part of the operation of system 101 , block access arbitrations involving the plurality of load requests to the level one data cache are executed within the same clock cycle. Consequently, a throughput of a plurality of load accesses is accommodated and the penalty to the timing of load hit signals that is exacted by arbitration in conventional approaches is avoided. Figure 1A shows system 101 , level one (L1 ) cache 103, level one (L1 ) data cache 103a, data cache tag memory 103b, L1 cache controller 103c, CPU 105, level two (L2) cache 107, main memory 109 and system interface 1 1 1 .
[0021 ] Referring to Figure 1A, L1 cache 103 is a level 1 or "primary" cache and L2 cache 107 is a level 2 or "secondary" cache. In one embodiment, L1 cache 103 can be formed as a part of CPU 105. In one embodiment, as is shown in Figure 1A, L1 cache 103 can include L1 data cache 103a, data cache tag memory 103b and L1 cache controller 103c. In one embodiment, L1 data cache 103a can be divided into a plurality of data blocks. In one embodiment, L1 data cache 103a can be divided into four 8 kilobyte data blocks. In other embodiments, L1 data cache 103a can be divided into other numbers of data blocks that have the capacity to store other amounts of data. In one embodiment, as shown in Figure 1 B, the plurality of data blocks facilitate the accessing of L1 data cache 103a by a throughput of multiple accesses in the same clock cycle. In one embodiment, conflicting requests for access that seek to access the same block of L1 data cache 103a at the same time can be resolved using arbitration (whose time impact as discussed above is negated). In one embodiment, the data blocks can include cache line entries that are accessed by loads.
[0022] 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 Figure 1 C, in one embodiment, as a part of the aforementioned configuration, data cache tag memory 103b maintains a plurality of copies (e.g., 1 -N) of the tags that correspond to the entries of L1 data cache 103a. In particular, each request to access L1 data cache 103a is accorded a dedicated copy of tags corresponding to the entries of L1 data cache 103a. This manner of maintaining tag entries facilitates the identification of tags that are associated with the cache line entries within a single clock cycle. In one embodiment, an identification of a tag can be completed in the same clock cycle in which an arbitration involving an access request (e.g., load request) to L1 data cache 103a for data associated with the tag is executed. In one embodiment, access requests (e.g., load requests) to L1 data cache 103a trigger a search of data cache tag memory 103b for the tag that corresponds to the data that is sought by the load request.
[0023] Referring to Figure 1A, system 101 , responsive to a receipt by L1 cache 103 of a plurality of request to access L1 data cache 103a of L1 cache 103, executes a search of a data cache tag memory 103b such that tags that correspond to data sought by the plurality of requests are identified in parallel with the execution of any arbitration operations that are associated with the requests. This is illustrated in Figure 1 D, where arbitration operations associated with a first access request AR1 and a second access request AR2 of access requests 1 -N, are shown as being executed in parallel with a search of data cache tag memory 103b. In one embodiment, the aforementioned action of system 101 operates to avoid a deleterious impact of arbitration operations on the timing of load hit signals. In particular, system 101 , supported by duplicated data cache tag memory 103b and blocked L1 data cache 103a, facilitates the access of a cache by several load requests in one clock cycle without penalizing cache hit latency and throughput. In one embodiment, system 101 can be located in cache controller 103c. In other embodiments, system 101 can be separate from cache controller 103c, but operate cooperatively therewith.
[0024] Referring again to Figure 1A, main memory 1 1 1 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 Figure 1 A is system interface 1 1 1 . OPERATION
[0025] Figure 1 E illustrates operations performed by system 101 for supporting a plurality of load accesses of a data cache in a single cycle according to one embodiment. These operations, which relate to supporting a plurality of load accesses to a data cache are illustrated for purposes of clarity and brevity. It should be appreciated that other operations not illustrated by Figure 1 E can be performed in accordance with one embodiment.
[0026] Referring to Figure 1 E, at A, a plurality of requests to access data cache 103a are received. In the Figure 1 E example, two of the plurality of requests, access request AR1 and access request AR2, attempt to access the same data block (for example block 0 as identified by virtual address bits 6 and 7 of AR1 and AR2, e.g., virtual address bits 7:6 of the virtual address associated with AR1 and AR2) of L1 data cache 103a are received.
[0027] 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.
[0028] 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.
[0029] At D, the plurality of access requests (except those that are arbitration losers such as AR2 in the Figure 1 E example) access data cache 103a using the tags that are identified at B. [0030] 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).
[0031 ] 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.
[0032] 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.
COMPONENTS OF SYSTEM FOR SUPPORTING A PLURALITY OF LOAD ACCESSES OF A CACHE IN A SINGLE CYCLE ACCORDING TO ONE
EMBODIMENT
[0033] Figure 2 shows components of a system 101 for supporting a plurality of load accesses of a cache in a single cycle according to one embodiment. In one embodiment, components of system 101 implement an algorithm for supporting a plurality of load accesses. In the Figure 2 embodiment, components of system 101 include load request accessor 201 , tag memory accessor 203 and cache accessor 205. [0034] 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 Figure 1A). In one embodiment, in some cases, more than one load request of the plurality of load requests can seek to access the same data block in the L1 data cache. In such cases, an arbitration is executed to decide which of the load requests will be allowed to access that block of the L1 data cache.
[0035] 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 Figure 1A) that correspond to the entries of an L1 data cache (e.g., 103a of Figure 1A). In one embodiment, each load request is accorded a dedicated copy of tags that correspond to the entries of the L1 data cache. This manner of maintaining tag entries facilitates the identification of tags that are associated with the cache line entries within a single clock cycle. In one embodiment, an arbitration involving an access request (e.g., load request) to a block of the L1 data cache for data associated with a tag is executed within the same clock cycle in which an identification of the tag is completed.
[0036] 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 Figure 1A) by multiple access requestors in the same clock cycle. In one embodiment, conflicting requests for access that seek to access the same block of the L1 data cache at the same time can be resolved using arbitration (whose time impact on the "Load Hit" signal, as discussed herein, is negated by the operation of system 101 ). In one embodiment, the accesses to the data blocks involve a loading of data.
[0037] 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 Figure 1A). In another embodiment, components and operations of system 101 can be separate from the aforementioned one or more computer components or programs but can operate cooperatively with components and operations thereof.
METHOD FOR SUPPORTING A PLURALITY OF LOAD ACCESSES OF A CACHE IN A SINGLE CYCLE ACCORDING TO ONE EMBODIMENT
[0038] Figure 3 shows a flowchart 300 of a method for supporting a plurality of load accesses of a data cache in a single cycle according to one embodiment. The flowchart includes processes that, in one embodiment can be carried out by processors and electrical components under the control of computer-readable and computer-executable instructions. Although specific steps are disclosed in the flowcharts, such steps are exemplary. That is the present embodiment is well suited to performing various other steps or variations of the steps recited in the flowchart.
[0039] Referring to Figure 3, at 301 a plurality of load requests to access a data cache are accessed. In one embodiment, the data cache can include a plurality of blocks that can accommodate the plurality of load requests. In one embodiment, the plurality of load requests can include a plurality of requests that seek to access the same block of the aforementioned data cache.
[0040] 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.
[0041 ] 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. [0042] 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.
[0043] 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.
[0044] 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.

Claims

CLAIMS We Claim:
1 . A method for supporting a plurality of accesses of a data cache, comprising:
accessing a plurality of requests to access said data cache, wherein said data cache comprises a plurality of blocks;
responsive to said plurality of requests to access said data cache, accessing a tag memory that maintains a plurality of copies of tags for each entry in said data cache and identifying tags that correspond to individual requests of said plurality of requests; and
accessing said data cache based on said tags that correspond to said individual requests, wherein a plurality of requests to access a same block of said plurality of blocks causes an access arbitration that is executed in the same clock cycle as said accessing said tag memory.
2. The method of Claim 1 wherein said accessing said data cache based on said tags comprises a plurality of loads that are executed in a single clock cycle.
3. The method of Claim 1 wherein each request of said plurality of requests to access said data cache has a dedicated copy of tags that correspond to entries located in said load cache.
4. The method of Claim 1 wherein a plurality of said requests to access said data cache seek to access respective blocks.
5. The method of Claim 1 wherein a plurality of said plurality of requests to access said data cache seek access to different addresses within a same block of said data cache in the same cycle.
6. The method of Claim 1 wherein said plurality of blocks comprise respective parts of a level one data cache and contain cache line entries.
7. The method of Claim 1 wherein said tag memory comprises a tag
SRAM.
8. A cache system, comprising:
a data cache divided into a plurality of data blocks;
tag memory configured to maintain tags that correspond to a plurality of copies of tags that correspond to entries of said load cache; and a cache subsystem configured to access said tag memory and said data cache wherein arbitration operations related to a plurality of requests to access said data cache are executed in the same clock cycle as accesses of said tag memory.
9. The cache system of Claim 8 wherein said plurality of data blocks accommodate a plurality of loads that are executed within a single clock cycle.
10. The cache system of Claim 8 wherein a plurality of said plurality of requests to access said data cache seek to access respective data blocks.
1 1 . The cache system of Claim 8 wherein each request of said plurality of requests has a dedicated copy of tags that correspond to cache line entries located in said data cache.
12. The cache system of Claim 8 wherein said data cache is divided into four 8 kilobyte data blocks.
13. The cache system of Claim 8 wherein a plurality of load requests access the same block at different addresses in the same cycle.
14. The cache system of Claim 8 wherein said tag memory comprises a tag SRAM.
15. A computer system, comprising:
a memory;
a processor; and
a cache system, comprising:
a data cache configured to store units of data;
a tag memory configured to store tags that correspond to said units of data; and
a cache controller comprising a system for supporting a plurality of accesses to said data cache, comprising:
a request accessing component for accessing a plurality of requests to access said data cache, wherein said data cache comprises a plurality of blocks;
a tag memory accessing component for accessing a tag memory that maintains a plurality of copies of tags for each entry in said data cache and identifying tags that correspond to individual requests of said plurality of requests; and
a data cache accessing component for accessing said data cache based on said tags that correspond to said individual requests, wherein a plurality of requests to access a same block of said plurality of blocks causes an access arbitration that is executed in the same clock cycle as said accessing said tag memory.
16. The computer system of Claim 15 wherein said accessing said data cache comprises a plurality of loads that are executed within a single clock cycle.
17. The computer system of Claim 15 wherein each request of said plurality of requests to access said data cache has a dedicated copy of tags that correspond to entries located in said load cache.
18. The computer system of Claim 15 wherein said plurality of requests to access said data cache seek access to respective blocks.
19. The computer system of Claim 15 wherein said plurality of requests to access said data cache seek to access different addresses of the same block in the same cycle.
20. The computer system of Claim 15 wherein said plurality of blocks
comprise respective parts of a level one data cache and contain cache line entries.
PCT/US2013/051128 2012-07-30 2013-07-18 Systems and methods for supporting a plurality of load accesses of a cache in a single cycle WO2014022115A1 (en)

Applications Claiming Priority (8)

Application Number Priority Date Filing Date Title
US13/561,570 US9229873B2 (en) 2012-07-30 2012-07-30 Systems and methods for supporting a plurality of load and store accesses of a cache
US13/561,528 US9430410B2 (en) 2012-07-30 2012-07-30 Systems and methods for supporting a plurality of load accesses of a cache in a single cycle
US13/561,441 2012-07-30
US13/561,491 US9710399B2 (en) 2012-07-30 2012-07-30 Systems and methods for flushing a cache with modified data
US13/561,491 2012-07-30
US13/561,528 2012-07-30
US13/561,570 2012-07-30
US13/561,441 US9740612B2 (en) 2012-07-30 2012-07-30 Systems and methods for maintaining the coherency of a store coalescing cache and a load cache

Publications (1)

Publication Number Publication Date
WO2014022115A1 true WO2014022115A1 (en) 2014-02-06

Family

ID=50028431

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US2013/051128 WO2014022115A1 (en) 2012-07-30 2013-07-18 Systems and methods for supporting a plurality of load accesses of a cache in a single cycle

Country Status (2)

Country Link
TW (1) TWI537731B (en)
WO (1) WO2014022115A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0596636A2 (en) * 1992-11-02 1994-05-11 STMicroelectronics, Inc. Cache tag memory
EP0706133A2 (en) * 1994-10-05 1996-04-10 International Business Machines Corporation Method and system for concurrent access in a data cache array utilizing multiple match line selection paths
US5752260A (en) * 1996-04-29 1998-05-12 International Business Machines Corporation High-speed, multiple-port, interleaved cache with arbitration of multiple access addresses
WO2001025921A1 (en) * 1999-10-01 2001-04-12 Sun Microsystems, Inc. An arbitration protocol for a shared data cache
US20050060457A1 (en) * 2003-08-19 2005-03-17 Sun Microsystems, Inc. Cache crossbar arbitration

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0596636A2 (en) * 1992-11-02 1994-05-11 STMicroelectronics, Inc. Cache tag memory
EP0706133A2 (en) * 1994-10-05 1996-04-10 International Business Machines Corporation Method and system for concurrent access in a data cache array utilizing multiple match line selection paths
US5752260A (en) * 1996-04-29 1998-05-12 International Business Machines Corporation High-speed, multiple-port, interleaved cache with arbitration of multiple access addresses
WO2001025921A1 (en) * 1999-10-01 2001-04-12 Sun Microsystems, Inc. An arbitration protocol for a shared data cache
US20050060457A1 (en) * 2003-08-19 2005-03-17 Sun Microsystems, Inc. Cache crossbar arbitration

Also Published As

Publication number Publication date
TWI537731B (en) 2016-06-11
TW201428494A (en) 2014-07-16

Similar Documents

Publication Publication Date Title
US9430410B2 (en) Systems and methods for supporting a plurality of load accesses of a cache in a single cycle
US9720839B2 (en) Systems and methods for supporting a plurality of load and store accesses of a cache
US10698833B2 (en) Method and apparatus for supporting a plurality of load accesses of a cache in a single cycle to maintain throughput
US11314647B2 (en) Methods and systems for managing synonyms in virtually indexed physically tagged caches
US20180011791A1 (en) Systems and methods for maintaining the coherency of a store coalescing cache and a load cache
US10474584B2 (en) Storing cache metadata separately from integrated circuit containing cache controller
US10002076B2 (en) Shared cache protocol for parallel search and replacement
US8370575B2 (en) Optimized software cache lookup for SIMD architectures
US8566607B2 (en) Cryptography methods and apparatus used with a processor
US6427188B1 (en) Method and system for early tag accesses for lower-level caches in parallel with first-level cache
US10831675B2 (en) Adaptive tablewalk translation storage buffer predictor
US20080098178A1 (en) Data storage on a switching system coupling multiple processors of a computer system
US20180081585A1 (en) Page migration acceleration using a two-level bloom filter on high bandwidth memory systems
US6567900B1 (en) Efficient address interleaving with simultaneous multiple locality options
US20120173843A1 (en) Translation look-aside buffer including hazard state
US7702875B1 (en) System and method for memory compression
US20080016282A1 (en) Cache memory system
US10310981B2 (en) Method and apparatus for performing memory prefetching
CN113515470A (en) Cache addressing
US10754791B2 (en) Software translation prefetch instructions
US8356141B2 (en) Identifying replacement memory pages from three page record lists
US20140013054A1 (en) Storing data structures in cache
US10565121B2 (en) Method and apparatus for reducing read/write contention to a cache
US20020188805A1 (en) Mechanism for implementing cache line fills
US6662265B1 (en) Mechanism to track all open pages in a DRAM memory system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13824735

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13824735

Country of ref document: EP

Kind code of ref document: A1