Flexible cache structure for caching compressed data and non-compressed data
By introducing flexible tags and data RAM into the cache structure, supporting mixed storage of compressed and uncompressed data, the flexibility and efficiency problems in the existing technology are solved, and efficient cache data storage is achieved.
Patent Information
- Application Number
- CN202410208109.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-02-27
- Filing Date
- 2024-02-26
- Publication Date
- 2024-08-27
AI Technical Summary
Existing cache compression technologies are either inflexible, waste resources, and cannot effectively handle data in different formats, resulting in wasted space or increased latency when storing uncompressed data.
Adopting a flexible cache structure, by including two parts of RAM in the cache RAM: one part is used to store tag information, and the other part is used to store cache line data, the storage format can be flexibly selected in different modes. Supports mixed storage of compressed and uncompressed data, reducing latency and improving storage efficiency.
It achieves flexible storage of cache lines in different formats without increasing delay and power consumption, reducing space waste and improving cache storage efficiency and flexibility.
Smart Images

Figure CN118550851A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to a flexible cache structure for caching compressed data and uncompressed data. Background Art
[0002] Processors typically include caches to supplement source memory. When data is retrieved from source memory, the data may be cached so that it is available in the cache in case the data will be used again soon. The cache includes a temporary storage location that is smaller in data capacity than the source memory, but is physically closer to the execution pipeline and faster to access. The cached data unit is called a "cache line", and this will include a copy of the data that is the target of the data access operation in question. In other words, the cache caches data in units of discrete cache lines at a certain granularity, and if a memory access operation accesses a data item from memory that has not yet been found in the cache, the cache will cache the cache line that includes the accessed data item. For example, a processor can access 32 or 64 bits of data from within a 512-bit (64-byte) cache line. If the data access misses in the cache, the entire 512-bit cache line is retrieved from the source memory and placed in the cache so that the data being accessed can be used again soon, and nearby data (data within the same cache line) can also be used for fast access.
[0003] Cache memory usually consists of a tag RAM that holds address information and a data RAM that holds the actual cached data (cache lines). Figure 21 and 2. Each of the data RAM and tag RAM includes a plurality of fields having an architecturally fixed width (i.e., a width in bits). For example, each field in the data RAM may be 64 bytes wide, for holding a 64-byte cache line. Each field in the tag RAM corresponds to a corresponding field in the data RAM, which together form a corresponding cache entry. Tags are typically smaller than cache lines, so the fields in the tag RAM are typically correspondingly shorter. For example, the tag RAM may typically be 20 bits wide. The address is typically 32 bits (although it can be larger), and for a 64-byte cache line, bits 31 to 6 of the address typically form the address of the cache line, and the lower 6 bits (bits 5 to 0) form the address of the first byte within the cache line being accessed by the load or store instruction. The tag RAM only needs to store the upper address bits, i.e., the bits indicating which cache lines are contained in the cache. The lower 6 bits do not need to be stored. Some of the upper address bits are stored in the tag RAM entry. These bits are called address tags. The remaining high address bits are used as an index to the tag RAM. The number of address bits used as tags and the number of address bits used as tag RAM indexes vary depending on the cache size and structure. For example, for a 32KB cache (fairly typical for an L1 cache), the cache requires 512 entries (512×64 byte cache lines=32KB). For example, if the cache is 4-way set associative, the 512 entries are divided into 4 groups of 128 entries that can be searched in parallel. For 128 entries, 7 high address bits (remember, the high address bits are bits 31 to 6) will be required to act as a tag RAM index. The remaining 19 high address bits form the tag stored in the tag RAM entry. So, in this example, in this case, the tag RAM will need to be at least 20 bits wide (19 bits for the tag and 1 bit to indicate whether the entry contains valid information).
[0004] The cache may be implemented to support retrieval of many different types of data. For example, the data in question may be operand data loaded by a load / store unit (LSU) of a pipeline of a processor in response to execution of one or more load instructions, or may be one or more instructions fetched by a fetch unit of the pipeline, or may even be data retrieved by some other component outside of the pipeline, such as a DMA (direct memory access) engine.
[0005] When data is requested from memory, the dedicated cache hardware checks to see if the address of the requested data corresponds to a tag in the tag RAM. If so (a cache hit), the hardware retrieves the requested data from the corresponding field in the cache's data RAM instead of from the source memory.
[0006] Conventionally, data is cached only in uncompressed form. It has also been proposed to cache data in compressed form. In this case, the cached data is automatically compressed into the form of a compressed cache line when cached, and is automatically decompressed when retrieved from the cache again on a cache hit. For example, an example of cache compression may be applied when half of the bits of the data to be cached include all zeros, in which case these bits may be removed for caching and then automatically added again when retrieved on a cache hit. Another example would be if the data includes a repeated bit pattern, in which case only one instance of the repeated pattern may be cached and then copied again on a cache hit. The purpose of cache compression is to make it possible to make the data RAM size smaller in order to save silicon area, or to increase the effective capacity of the data RAM while maintaining the same silicon area. Summary of the invention
[0007] One problem with previously proposed cache compression techniques is that they are either inflexible or wasteful.
[0008] In one previously proposed technique, the data RAM is designed to have a width of only one compressed cache line. Figure 3 However, this means that if there is incompressible data, this data cannot be cached at all, or a separate cache must be provided to handle the incompressible data (and providing a separate cache has various disadvantages of its own, which may include latency, power consumption and / or memory congestion).
[0009] In another previously proposed technique, the data RAM is made wide enough so that each field can accommodate one uncompressed cache line or multiple compressed cache lines. However, this means that in order to accommodate the situation where multiple compressed cache lines are cached in one field of the data RAM, the corresponding field in the tag RAM must be made wider so that it can accommodate multiple tags (one for each compressed cache line in the corresponding field of the data RAM). This Figure 4 This in turn means that, in the case of caching a non-compressed cache line, some of the space in the corresponding field of the tag RAM is now wasted (it has been designed to be wide enough to accommodate multiple tags, but is only used to store one tag).
[0010] It is desirable to provide a cache structure that can flexibly store cache lines in different formats (eg, compressed and uncompressed formats) but with less wasted space than existing designs.
[0011] According to one aspect disclosed herein, a device is provided, the device comprising: a cache RAM, the cache RAM comprising a first RAM and a second RAM; and a cache circuit, the cache circuit being arranged to perform a cache operation in response to a memory access operation, each cache operation caching a corresponding cache line and a corresponding tag in the cache RAM. The first RAM comprises a plurality of fields having an architecture-defined width, and the second RAM comprises a plurality of corresponding fields also having an architecture-defined width, each field in the first RAM together with a corresponding field in the second RAM forming a corresponding entry of the cache RAM. The cache circuit is operable to select between applying a first mode and a second mode in at least one of the entries in the cache RAM. When the first mode is applied, the corresponding fields in the first RAM are used to save a first portion of a single cache line in a first format, and the corresponding fields in the second RAM are used to save the corresponding tags of the single cache line and the remaining portion of the single cache line. When the second mode is applied, the first RAM is used to save a plurality of cache lines in a second format shorter than the first format, and the corresponding entries in the second RAM are used to save the corresponding tags in the plurality of cache lines.
[0012] Thus, the second RAM - typically a tag-only RAM - includes a flexible portion that can be used to hold tags in the case of a second, shorter cache line format (e.g., compressed), or to hold a portion of a cache line in the case of a first format (e.g., uncompressed). The second RAM can be implemented in one or more physical RAM devices: the flexible portion can be implemented in the same RAM device as the tag-only portion, or in a separate RAM device. Figure 5 and Figure 6 An example is shown in FIG, and will be discussed in more detail later.
[0013] In an embodiment, the first format may be an uncompressed form and the second format may be a compressed form.
[0014] In an embodiment, the format may be statically configured by setting values in a programmable control register or applying values to some pins, in which case the setting applies for multiple cache operations until and unless the setting in the control register is reprogrammed. The static configuration may apply to the entire cache, or corresponding static settings may apply to different regions of the cache, or even to individual cache entries.
[0015] Alternatively, the format may be dynamically configurable, ie, individually configured for each individual cache operation and cache entry.
[0016] In an embodiment, the cache circuit is also operable to select between different variations of the first mode and / or between different variations of the second mode, i.e., between different sub-modes of the first mode and / or the second mode. For example, the available sub-modes of the second mode may use different variations of the second format (e.g., different compression schemes), or different values of the plurality (number of cache lines per field in the second RAM). And / or the available sub-modes of the first mode may use different variations of the first format, or have first portions of different sizes relative to the remainder (i.e., the sizes of the portions stored in the first RAM and the second RAM).
[0017] In other embodiments, the device is arranged so that when a subsequent memory access operation requesting access to data of a corresponding cache line that has been cached according to the first mode achieves a cache hit, the remaining portion of the corresponding cache line is retrieved from the second RAM in a first clock cycle in a sequence of clock cycles, and then the first portion of the corresponding cache line is retrieved from the first RAM in a subsequent clock cycle of the clock cycle.
[0018] This advantageously provides the ability to reduce latency by accessing a portion of a cache line from the flexible second RAM in the same cycle as the tag. This can be contrasted with existing caches where the cache line is read out in a subsequent cycle after the tag is read, which is slower, or the entire cache entry is read out in one same cycle, which is more power intensive.
[0019] In an embodiment, a processing device (e.g., a CPU, a GPU, a neural network accelerator, or an Ethernet packet processor) is provided, the processing device comprising the disclosed device and an execution unit, wherein the memory access operation is performed by the execution unit or another component of the processing device. In an embodiment, a data processing system is provided, the data processing system comprising a processing device and a memory (including one or more memory units), wherein the memory access operation is an operation to retrieve data from the memory. However, more generally, the disclosed technology can be applied to any device that retrieves and caches data from internal or external memory.
[0020] According to another aspect disclosed herein, there is provided a method of operating a processing device, the processing device comprising a cache RAM, the cache RAM comprising a first RAM and a second RAM, the first RAM comprising a plurality of fields having an architecturally defined width, and the second RAM comprising a plurality of corresponding fields also having an architecturally defined width, each field in the first RAM together with a corresponding field in the second RAM forming a corresponding entry of the cache RAM. The method comprises: in a first entry of the entries of the cache RAM, caching a first cache line and a corresponding tag according to a first pattern, whereby the corresponding field in the first RAM is used to store a first portion of the first cache line in a first format, and the corresponding field in the second RAM is used to store the corresponding tag of the first cache line and the remaining portion of the first cache line; and in a second entry of the entries of the cache RAM, or in a first entry at a different time, caching a plurality of second cache lines and corresponding tags according to a second pattern, whereby the first RAM is used to store the second cache line in a second format shorter than the first format, and the corresponding entry in the second RAM is used to store the corresponding tag of the second cache line.
[0021] The disclosed apparatus or data processing system may be included in hardware on an integrated circuit. A method of manufacturing an apparatus or data processing system including an apparatus according to the present disclosure at an integrated circuit manufacturing system may be provided. An integrated circuit definition data set may be provided, which, when processed in an integrated circuit manufacturing system, configures the manufacturing system to manufacture an apparatus or data processing system. A non-transitory computer-readable storage medium may be provided, having stored thereon a computer-readable description of an apparatus or data processing system, which, when processed in an integrated circuit manufacturing system, causes the integrated circuit manufacturing system to manufacture an integrated circuit including the apparatus or data processing system.
[0022] An integrated circuit manufacturing system may be provided, comprising: a non-transitory computer-readable storage medium having stored thereon a computer-readable description of a device or a data processing system; a layout processing system configured to process the computer-readable description so as to generate a circuit layout description of an integrated circuit including the device or the data processing system; and an integrated circuit generation system configured to manufacture the device or the data processing system according to the circuit layout description.
[0023] A computer program code for executing any of the methods described herein may be provided. A non-transitory computer readable storage medium may be provided having computer readable instructions stored thereon which, when executed at a computer system, cause the computer system to execute any of the methods described herein.
[0024] As will be apparent to those skilled in the art, the above-described features may be combined as appropriate and may be combined with any aspects of the examples described herein.
[0025] This summary is provided only to illustrate some of the concepts disclosed herein and their possible implementations. Not all of what is described in the summary is intended to limit the scope of the present disclosure. Instead, the scope of the present disclosure is limited only by the claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Examples will now be described in detail with reference to the accompanying drawings, in which:
[0027] Figure 1 is a schematic block diagram of the processing system,
[0028] Figure 2 is a schematic diagram of a conventional cache structure.
[0029] Figure 3 is a schematic diagram of an existing cache structure for caching data in compressed form,
[0030] Figure 4 is a schematic diagram of an existing cache structure for caching data in compressed and uncompressed forms,
[0031] Figure 5 is a schematic diagram of a cache structure for caching data in compressed and uncompressed forms according to an embodiment of the present disclosure,
[0032] Figure 6 is a schematic diagram of a cache structure for caching data in compressed and uncompressed forms according to other embodiments of the present disclosure,
[0033] Figure 7 is a schematic block diagram of a computer system in which the disclosed apparatus or data processing system is implemented, and
[0034] Figure 8 is a schematic block diagram of an integrated circuit manufacturing system for producing an integrated circuit including the disclosed apparatus or data processing system.
[0035] The accompanying drawings show various examples. It will be appreciated by the skilled person that the element boundaries (e.g., boxes, groups of boxes, or other shapes) shown in the accompanying drawings represent an example of boundaries. In some examples, it may be the case that an element can be designed as multiple elements, or multiple elements can be designed as one element. Where appropriate, common reference numerals are used throughout the accompanying drawings to indicate similar features. DETAILED DESCRIPTION
[0036] The following description is presented by way of example to enable one skilled in the art to make and use the invention.The present invention is not limited to the embodiments described herein, and various modifications to the disclosed embodiments will be apparent to those skilled in the art.
[0037] Embodiments will now be described by way of example only.
[0038] Figure 1 Some major components of the data processing system 100 are schematically shown. The processing system 100 includes a processing device 102 and a memory 104. The processing device 102 includes at least one processor, such as a central processing unit (CPU); or an accelerator processor or a special-purpose processor, such as a graphics processing unit (GPU), an artificial intelligence (AI) accelerator processor (e.g., a neural network accelerator), a digital signal processor (DSP), an Ethernet packet processor, or an encryption processor. The processing device 102 is incorporated into an integrated circuit (IC), also called a chip or a die.
[0039] The (or each) processor of the processing device 102 includes an execution pipeline 106. The system 100 also includes a cache, which includes cache logic 108 and cache RAM (random access memory) 112. The cache logic 108 is implemented in dedicated hardware, i.e., fixed function circuits, and may also be referred to as cache circuits in this article. The cache RAM 112 may be implemented in one or more RAM devices, as will be discussed in more detail later. The cache logic 108 and cache RAM may be implemented as part of the same processor core as the pipeline 106, or implemented elsewhere on the same die, or a combination of both.
[0040] Memory 104 may be referred to herein as source memory because it is the source of data to be cached. This does not necessarily mean that it is the ultimate source of data. Source memory 104 may be implemented in one or more memory devices. Source memory 104 may include volatile memory (e.g., RAM) and / or non-volatile memory. Source memory 104 may employ one or more memory media, such as electronic media, such as DRAM (dynamic RAM), SRAM (static RAM), ROM (read-only memory), PROM (programmable ROM), EEPROM (electronically erasable and programmable ROM), flash memory, or SSD (solid state drive); or magnetic media, such as HDD (hard disk drive), magneto-optical memory, or tape; or any combination of these and / or other memory media types. Source memory 104 may be implemented externally to the IC on which the (multiple) processors of processing device 102 are implemented, such as on the same board or in the same housing but externally to the IC; or source memory 104 may be implemented on the same IC but externally to the processing core of the (multiple) processors, such as on the same IC but accessed via an internal bus. For example, in one embodiment, source memory 104 is external to the CPU core but on the same chip and connected via an on-chip interface (e.g., an AXI interface). If a memory access operation such as a load or store misses in the CPU cache (multiple) the CPU will make a read or write request on its external memory interface (e.g., an AXI interface). As another alternative, source memory 104 may even be implemented in the same core as pipeline 106, but still physically further away from pipeline 106 than cache RAM 112. In one possibility, source memory 104 may include a higher layer of cache in a hierarchical cache arrangement. Source memory 104 may also include a combination of different memory devices implemented in different locations.
[0041] The processing device 102 also includes an interface 103 for connecting to a source memory 104. The interface 103 may represent any suitable interface with the type(s) of internal or external source memory in question. For example, the interface 103 may include an internal bus or other interconnect (e.g., a crossbar interconnect) to a source memory on the same IC, or a port capable of connecting to an external source memory. The processing device 103 may be sold in a form in which the source memory 104 is already connected to the interface 103 (e.g., on the same IC) or in a form that enables a downstream manufacturer or consumer to connect the source memory 104 (e.g., via an external port) to the interface. In either case, the interface 103 allows one or more components of the processing device 102, such as the pipeline 106 or a DMA engine (not shown), to retrieve data from the source memory 104.
[0042] Regardless of where it is implemented, the pipeline 106 is slower to access source memory 104 than to access cache RAM 112, typically because it is larger in data capacity and / or physically implemented farther away from the pipeline 106 in design. Therefore, caches are typically employed to speed up retrieval of repeatedly accessed data.
[0043] When data is loaded from source memory 104, the data may be cached in case the data will be used again in the near future. A cache is a temporary storage location that is smaller in data capacity than general purpose memory, but closer to the execution pipeline and faster to access. Various possible cache strategies for determining which data to cache and which data to evict from the cache are known per se in the art.
[0044] Figure 2 The structure of a conventional implementation of the cache RAM 112 is shown. The cache RAM 112 includes two component areas of RAM: some first RAM 201 in the form of data RAM and some second RAM 202 in the form of tag RAM. The tag RAM 202 is arranged to store address information, and the data RAM 201 is arranged to store cache data (cache lines). The first RAM 201 includes a plurality of fields, each field having an architecturally defined bit width, each field being used to store a corresponding cache line; and the second RAM 202 also includes a plurality of fields, each field having an architecturally defined bit width, each field being used to store a corresponding tag. The architecturally defined width at least means that each individual field is fixed in size by silicon design, and typically all fields in the first RAM 201 are the same size as each other, and all fields in the second RAM 202 are the same size as each other (although the fields in the second RAM 202 do not have to be the same size as the fields in the first RAM 201, and typically do not have the same size). Each field in the second RAM 202 corresponds to a corresponding field in the first RAM 201, and together they form a corresponding cache entry. It should be understood that Figure 2 Only four entries are shown in order to simplify the drawing for illustrative purposes only, and in practice there may be any number of entries available, typically more.
[0045] The second tag RAM 202 and the first data RAM 201 are typically separate RAM devices, but in principle, the tag and data RAMs can be implemented as different areas in the same physical RAM device. Separate RAM devices for this purpose mean that the devices 201, 202 have their own independent addressing circuits and also have independent data input and output circuits, but the separate RAM devices may still be on the same chip. The reason why the tag RAM 202 and the data RAM 202 are usually separated is so that the cache logic 108 can check for cache hits in the tag RAM 202 before consuming power to activate the data RAM, or avoid activating the tag RAM if the cache logic 108 already knows that there will be a cache hit. Each RAM device has an area overhead associated with the address and data circuits, which is independent of the area associated with the stored information. In the case of multiple small RAMs of the same structure, it may be more area efficient to implement them as a single larger RAM device so as to merge the address and data circuits. However, this will affect power consumption.
[0046] The cache logic 108 is arranged to perform cache operations to cache cache lines and corresponding tags in response to memory access operations performed by the pipeline 106 and / or other components of the processing device 102 (e.g., a data prefetcher or a DMA engine). The data prefetcher looks at the memory access pattern and tries to predict which memory locations will be accessed next. It then fetches these cache lines before an explicit memory access operation that would otherwise trigger a cache line fetch.
[0047] Each cache operation caches a corresponding cache line and a corresponding tag, wherein the corresponding cache line includes a copy of the corresponding line of data retrieved from the source memory 104 via the interface 103, and the corresponding tag includes at least a portion of the address of the data in the memory 104. Note: In practice, there may also be several bits of other information associated with each cache line. These bits will indicate such things as whether the cache line entry is valid or invalid, whether the cache line is dirty or clean (i.e., whether it contains updated data about the data in the source memory), what the memory attributes are (e.g., whether the cache line can be shared with other CPUs), and the cache coherence state (e.g., indicating whether this cache is the only cache currently holding a copy of the cache line). These bits will typically be included in a tag RAM along with the tag, or sometimes in a separate RAM along with the tag and data RAM. For simplicity, these additional bits are not shown in the figure.
[0048] Each cache operation is performed in response to one or more memory access operations performed by pipeline 106 or other components (e.g., a data prefetcher of a DMA engine), and the cached cache line includes the data item requested to be retrieved by the memory access operation. In some cases, the data line copied as a cache line may include a larger data portion than the requested data item. For example, if the cache line is a certain size, such as 64 bytes long, and the memory retrieval operation is only used to retrieve a subset of these bytes, then the entire row of memory including the requested word size of 64 bytes can be copied and cached in the data RAM as a cache line. Alternatively, there may be a one-to-one mapping between the size of the data item requested by the memory access operation and the size of the cache line cached by the cache operation. In either case, the cache operation may be performed in response to a separate corresponding memory access operation, or more than one memory access operation from the same memory location may be required to trigger the corresponding cache operation. In addition, depending on the cache strategy adopted, not every memory access operation will result in a cache operation.
[0049] The tag associated with a given cache line may include only a portion of the address of the cache line in memory. Some types of caches, such as N-way set associative caches, do not allow a cache line from a given address in memory to be cached in any arbitrary entry of the cache. Instead, a portion of the address range of the cache line is used to determine the subset of cache entries that are allowed to cache the cache line: typically the least significant portion of the address range. This may be referred to as an index. That is, all possible cache lines sharing the same index can only be cached to a given subset of cache entries. In this arrangement, the index is used to narrow the range of cache entries that need to be searched in order to achieve a cache hit. That is, when a memory access is performed, the cache will go directly to the subset of cache entries that map to the index of the cache line, which will contain the accessed piece of data (if any). This means that, since the index portion of the address is implicit in indexing the cache, only the remainder of the address range of the cache line needs to be stored as a tag in the cache entry to search within the subset. For example, see the example given in the background section.
[0050] The skilled person will appreciate that there are various possibilities for determining when and how much data to cache in response to the content of the memory access operation, depending on the particular cache policy selected by the designer and various options for cache associativity that will affect the extent to which the addresses of cache lines are used as tags. The skilled person will be aware of the various cache policies and associativity techniques themselves, and the details of these themselves (e.g., which data is cached and when) are not the focus of this disclosure.
[0051] Regardless of what cache strategy has been used to cache the data, the cache logic 108 is arranged so that if another memory access operation requests another instance of some data for which the corresponding cache line is already cached (i.e., a cache hit), the cache logic 108 will detect this situation based on the tags in the second RAM 202. Then, instead of retrieving the requested another instance of the data from the source memory 104, the cache logic 108 will intervene to retrieve the corresponding copy of the data from the first RAM 201 instead and provide it to the requesting component (e.g., the pipeline 106 or the DMA engine). Note that when there is a cache hit, it is not necessarily necessary to retrieve the entire cache line from the data RAM, but only the portion of the cache line targeted by the memory access operation.
[0052] The data being cached and retrieved can be of any form, depending on the purpose for which the caching is being implemented.
[0053] For example, when a load / store unit (LSU) of the execution pipeline 106 executes a load instruction to perform a load operation from an address specified by an operand of the load instruction, then this typically triggers the cache logic 108 to automatically check whether the address in question corresponds to a tag in the second RAM 201. If so (a cache hit), the cache logic 108 retrieves the corresponding cache line from the corresponding entry in the first RAM 201 rather than from the source memory 104, and passes it to the LSU as if it were retrieved from memory 104 (the software does not have to "know" whether the data it is getting is from memory 104 or cache 112). Note again that the address and tag are not necessarily identical. The tag may be a subset of the bits contained in the address. When looking for a cache hit, only the tag bits need to be compared explicitly, as the relevant non-tag address bits are implicitly compared by using them as indices into the RAM. In other words, a portion of the address is used to select the relevant tag RAM entry (or entries) that may correspond to the cache line being accessed. The tag bits stored in these entries are then compared to the tag bits of the address being accessed, and if they match, it is a cache hit.
[0054] The processor may also cache data due to store instructions. Store instructions may be counter-intuitive, but when the processor executes a store instruction that misses in cache, it can choose to write the store data to external memory (equivalent to the source memory in the case of a load), or read the data from external memory, update the data with the new store data, and place it in the cache.
[0055] As another alternative or additional example of a type of data that may be cached, the processor may also cache instructions that are automatically fetched by the fetch unit of pipeline 106 without requiring a load operation. Instructions are typically cached in an instruction-side cache that is separate from a data-side cache used to cache operand data and / or results, but some processors use a single cache to store both instructions and operand data.
[0056] The DMA engine may also add entries to the cache. For example, some memory protocols have the concept of "stall" data in a target cache, allowing one processor to store data in another processor's cache.
[0057] As another example, processors that implement virtual addressing also need to perform a "pageable walk" to convert virtual addresses to physical addresses. A pageable walk can be triggered by an instruction fetch or a load / store instruction. A pageable walk involves retrieving data from external memory, and this data can also be cached to speed up future pageable walks.
[0058] In general, a memory access operation may refer to any type of operation triggered by an instruction or hardware that requests the retrieval of any form of data (whether operand data, instructions, or otherwise) from source memory 104; and a cache operation may cache any such data in response to any one or more such memory access operations.
[0059] Existing cache technologies include the concepts of compressed cache and non-compressed cache. In non-compressed cache, data is stored only in non-compressed form, such as Figure 2 shown.
[0060] On the other hand, in a compressed cache, data is automatically compressed when entering the cache, and is decompressed when retrieved from the cache again. Cache compression is intended to use fewer bits in the data RAM to store cache line data, so as to reduce the cache area or increase the effective cache capacity. For example, if the continuous half (e.g., upper half or lower half) of the bits in the cache line of the data to be cached are all zero, then when the data is cached, that half of the data can be removed, and then that half of the data can be reinserted when the data is retrieved from the cache. Therefore, the cache line is composed of only the half that is not removed. Alternatively, if the upper or lower three quarters are all zero, it can be stripped, and only the lower or upper quarter needs to be stored in the data RAM 201 as a cache line, etc. Another example would be if the data includes a repeating pattern of smaller subunits of continuous data bits, for example, half of the data is repeated in the other half, or one quarter of the data is repeated in each of the other three quarters of the data. In this case, the subunits of the data can be stored only in the cache, and then the pattern is expanded again once the data is retrieved.
[0061] Compression and decompression are performed automatically by cache logic 108 upon caching and cache retrieval, respectively.
[0062] Figure 3 A version of the cache RAM 112 used in the compressed cache is shown in FIG. Here, each field in the data RAM 201 is larger than Figure 2 The non-compressed case is narrower, just the width of the compressed cache line. However, the fields of the cache RAM are fixed width slots, defined in the silicon implementation of the RAM device. If the cache lines of a given cache are stored in a compressed format, then the data RAM can be made narrower, such as Figure 3 As shown, this saves silicon area, but eliminates the ability to store uncompressed cache lines. Therefore, if the data is not easily compressible according to the scheme used (e.g., removing zeros), it either cannot be cached at all, or a separate cache device must exist to cache the incompressible data elsewhere (which has its own disadvantages, which can include latency, power consumption, and memory congestion).
[0063] Figure 4 An alternative known option for a compressed cache is shown in FIG. Here, the fields of the data RAM 201 remain the same width as the uncompressed cache (eg, Figure 2), so a field can store one uncompressed cache line or multiple compressed cache lines, thereby increasing the effective cache capacity, but requiring a larger tag RAM 202 because the tag RAM needs to be wider to accommodate as many addresses as there are compressed cache lines per entry. However, this means that if a cache entry holds an uncompressed cache line, the corresponding field in the tag RAM 202 will only contain a single address, thereby wasting the RAM area added to store multiple addresses. See Figure 4 For example, the compression scheme allows the size of the data to be reduced by a factor of four: in this case, a given field in the data RAM 201 can hold either one uncompressed cache line or four compressed cache lines. But to account for the latter possibility, each field in the tag RAM 202 needs to be four times wider than a field in the uncompressed cache - see Figure 4 This means that when non-compressed data is stored in a field row of data RAM 201, three of the four tag subfields in the corresponding field of tag RAM 202 are wasted. Another alternative is to store only one cache line per entry, whether compressed or non-compressed, but when storing compressed cache lines, a lot of space will be wasted in data RAM 201 because each field needs to be wide enough to accommodate either a compressed data item or a non-compressed data item.
[0064] Some workloads are well suited to cache compression, others are not, and others are somewhere in between. The above approach benefits some workloads while penalizing others (either by reducing performance or increasing area / power). Ideally, the cache structure would allow for storage of compressed and uncompressed lines while avoiding the cost of storing addresses that are not used when storing uncompressed cache lines.
[0065] For example, some operand data may be susceptible to compression (e.g., because it typically contains a large number of zeros or repeating patterns), while other operand data may not be susceptible to compression. As another example, the same cache may be used for both operand data and instructions, but instructions are typically not as suitable for compression as operand data, so a shared cache would benefit from a structure optimized for storage of both compressed and uncompressed cache lines.
[0066] The present disclosure provides a flexible tag and data cache RAM structure in which a segment of RAM serves as part of the tag RAM for compressed rows and as part of the data RAM for non-compressed rows.
[0067] This is Figure 5Schematically shown in FIG, wherein cache RAM 112 includes a modified form of a first cache RAM 201 and a second cache RAM 202. As previously discussed, the first RAM 201 includes a plurality of fields having a certain architecturally defined width, and the second RAM 202 also includes a plurality of corresponding fields having its own architecturally defined width. The width (in terms of the number of bits) of each individual field is fixed by the silicon implementation of the IC into which the cache is incorporated, and most likely all fields in the first RAM 201 will have the same width as one another, and all fields in the second RAM 202 will have the same width as one another (although the fields in the second RAM 202 do not necessarily have the same width as the fields in the first RAM 201). And as also previously discussed, each field in the first RAM 201 and the corresponding field in the second RAM together form a corresponding entry of cache RAM 112.
[0068] According to the technology disclosed herein, each entry in the first RAM 201 can be used to cache cache line data (all or part of a cache line, as will be discussed in more detail later), and thus the first RAM 201 can still be referred to as a data RAM. Additionally, a portion of each field in the second RAM 202 can be used to hold tag information, but now the cache RAM structure is adapted compared to known cache structures such that a portion of each field in the second RAM 202 can be flexibly used to hold tag information or part of cache line data. Therefore, the second RAM 202 can now be referred to as a flexible tag RAM.
[0069] Cache logic 108 is operable to select between applying the first mode and the second mode in one, some, or all entries in cache RAM 112 .
[0070] like Figure 5 As shown, when the first mode is applied to the entries in the cache RAM 112, the corresponding fields in the first RAM 201 are used to cache the first portion of a single cache line in the cache line in a first non-compressed form; and the corresponding fields in the second RAM 202 are used to save the corresponding tags of the single cache line and the remaining portion of the single non-compressed cache line. However, when the second mode is applied, the fields in the first RAM 202 are used to save multiple cache lines in a second compressed format; and the corresponding fields in the second RAM 202 are used to save the corresponding tags in the multiple cache lines.
[0071] In other words, the second RAM 202 (flexible tag RAM) can be described as having a tag portion 202a for storing tag information in both modes, and a flexible portion 202b for storing a partial non-compressed cache line in a first mode and multiple tags in a second mode. And the first RAM 201 is used to store partial non-compressed cache line data in the first mode, and multiple compressed cache lines in the second mode. In another embodiment, the flexible portion 202b of the tag RAM can contain a mixture of tags and partial cache line data in one or both modes to make full use of the available space depending on the compression algorithm or algorithms deployed. This is similar to Figure 5 In contrast, the figure shows that the flexible portion 202b is used for either tag information or portion data, but not both.
[0072] More generally, the idea can be extended to cache RAM for flexibly storing cache lines in a first format or in a second format that is shorter (in terms of bit width) than the first format. The following will be described in terms of the first format being an uncompressed form and the second format being a compressed form, but anything in the rest of the description that mentions compressed cache lines and uncompressed cache lines can be extended more generally to cache lines in the first format and the second format. An example would be encrypted data versus non-encrypted data—the first format can be an encrypted format and the second format can be a non-encrypted format, or vice versa. For security purposes, the design can store information in an encrypted format so that if it is leaked (accidentally, through malware, or through sophisticated silicon tampering), the damage will be limited. Some cache lines may be considered sensitive and need to be stored in an encrypted format, while other cache lines may be non-sensitive and stored in a non-encrypted format. The encrypted data can be smaller or larger than the non-encrypted data. If smaller, this implies an element of compression, but the focus is on maximizing security rather than maximizing the compression ratio. Alternatively, the encrypted data may be larger than the non-encrypted data, so a cache entry may contain a single encrypted data element (some of which is stored in a flexible portion of RAM) or multiple non-encrypted data elements.
[0073] A second example would be a hybrid cache line granularity, i.e., applying the disclosed techniques to a memory system that uses different cache line granularities for different memory regions. Thus, the cache would support multiple cache line widths, such that a cache entry could contain either a single large cache line (with some data stored in a flexible portion of RAM) or multiple smaller cache lines. For example, some data cache lines could be X bytes wide and instruction cache lines could be Y bytes wide. In this case, the flexible portion of the tag RAM could be used to store some data bytes when an X-byte cache line is cached, and used to store a second tag if two Y-byte cache lines are cached.
[0074] Another idea is to store the portion of the cache line that is predicted to be accessed most often in a flexible portion of the tag RAM, making it more readily available (without having to spend more power and possibly more cycles accessing the data RAM). This idea can be exploited whether or not the cache supports compression.
[0075] In the example shown, the first mode stores three quarters of a given entry's uncompressed cache line in corresponding fields in the first RAM 201, and stores one quarter of an uncompressed cache line in corresponding fields in the second RAM 202; and the second mode may store up to three compressed cache lines in corresponding fields in the first RAM 201. If each cache line can be compressed to fit into one of the quarter cache line width data RAM banks, this would allow each cache entry to store up to three cache lines. If the cache entry is configured (statically or dynamically) to instead store an uncompressed cache line, the flexible portion of the tag RAM 202b would be used to store the remaining quarter of the cache line data.
[0076] However, it will be appreciated that other ratios are possible in other implementations, depending on the size of the tags and the sizes of the compressed and uncompressed cache lines.
[0077] For example, the scheme can be adjusted or extended to allow, for example, two compressed cache lines with a lower compression ratio. In this case, the spare bits in the flexible RAM structure can be used to store the additional information required to decompress the cache line. Alternatively, the spare bits can be used as additional data storage for one or two cache lines.
[0078] Furthermore, it should again be appreciated that the small number of cache entries shown is merely for simplicity of the drawing and that in practice it is expected that the cache RAM 112 will include many more entries.
[0079] As discussed previously, the first RAM 201 and the second RAM 202 may be implemented in separate RAM devices, or as different regions in the same RAM device, with the former being preferred.
[0080] In a first variation of the presently disclosed RAM structure, the dedicated tag portion 202a and the flexible portion 202b of the second RAM 202 may be implemented in the same physical RAM device. That is, the division of the first RAM and the second RAM between the physical RAM devices follows Figure 5 The division between the separate boxes 201, 202 in.
[0081] An additional benefit of storing partial data of a non-compressed cache line in the same tag RAM entry as the tag information is that some data accesses can be serviced by a tag RAM access without waiting for a data RAM access. Tag and data RAM accesses are typically performed in different clock cycles, where a clock cycle is one tick of the clock that shifts an instruction along one pipeline stage of the pipeline 106. Some processors access the tag RAM and data RAM in the same pipeline stage (same clock cycle). Other processors access the tag RAM in one pipeline stage and access the data RAM in the next pipeline stage. Some processors use the first approach for one cache in the same processor and the second approach for another cache.
[0082] For example, in a level 1 cache, the tag lookup and data retrieval may occur in one cycle, while in a level 2 cache, the data retrieval may occur in the next cycle.
[0083] The tradeoff is that it is faster to access both the tag and data RAM in one cycle, but more power is consumed. The reason for the higher power consumption is as follows. When the cache logic 108 looks for data in the cache, it knows which entry or set of entries to look in the tag RAM based on the address of the memory access. If the tag RAM indicates a cache hit, it also knows the entry or set of entries in the data RAM where the data may be located, again based on the address of the memory access. Therefore, the cache logic can preemptively access the data RAM at the same time as the tag RAM, and then use the data if the tag RAM indicates a cache hit, or discard the data if the tag RAM indicates a cache miss. If the cache logic performs this preemptive data RAM access for every memory access operation, but ends up discarding data frequently, more power is consumed in the data RAM, but that power is wasted because the desired data is not present, and the logic now has to access the next level of cache or external memory.
[0084] Embodiments of the present disclosure can combine both approaches because for some cache line accesses, the tag and the relevant portion of the non-compressed data are available together in the same entry of the flexible RAM (but not for other approaches). See, for example, Figure 5 Tag 4 in the flexible tag RAM in and the associated quarter of cache line 4 in the second RAM 202. Depending on the program, a portion (e.g., a quarter) of a line of data may be available for receipt one cycle earlier than the rest.
[0085] Thus, embodiments provide the ability to reduce latency by accessing tags and a portion of a cache line from a flexible tag RAM in one cycle in a first mode, and then receiving the remainder of the cache line in the next cycle (although in a second mode, two cycles are required to obtain any data). The portion of the cache line selected to be stored in the second RAM 202 can be fixed or variable. For example, in a fixed case, it may be that the upper or lower bits of the cache line are always in the second RAM 202. Or in a variable case, a "critical" section of the cache line may be stored in the second RAM 202. The "critical" portion of the cache line may be the portion that a memory access instruction attempts to access when it misses the cache, and is therefore the portion of the cache line that may be expected to be accessed more frequently. The remainder of the cache line is additional data that is pulled into the cache when the critical section is accessed (because the processor may also want to access nearby data).
[0086] This benefit does not require that the flexible portion of RAM be in the same physical RAM device as the tag information, as long as the tag portion 202a and the flexible portion 202b are accessed in the same cycle.
[0087] It is not necessary to implement the tag part 202a and the flexible part 202b in the same RAM device. As a second alternative, the functionality can be divided between three physical RAM devices: a dedicated data RAM device for the first RAM 201, a dedicated tag RAM device for the tag RAM part 202a, and a flexible tag / data RAM device for the flexible part 202b. Figure 6 Alternatively, as a third variation, the tag portion 202a and the flexible portion 202b may be implemented in the same RAM device as the data RAM 201.
[0088] The first, second and third variants of the disclosed RAM structure are logically equivalent and only concern how the structure is implemented. As in the first variant, it is more efficient to have the tag RAM and the flexible portion in the same RAM. However, the second variant provides greater flexibility in the options for laying out the physical modules and wiring on the chip.
[0089] Regardless of the physical partitioning between RAM devices, the disclosed flexible formatting capabilities can be implemented across groups of some or all entries in the cache RAM 112. In some implementations, the group may be only a subset of all available entries in the cache RAM 112, while one or more other of the entries may only support a fixed format. Alternatively, the ability to flexibly apply either the first mode or the second mode can be implemented across the entire cache RAM 112.
[0090] Either way, within a group of entries that can be flexibly formatted, there are different options for the granularity at which the selection between the first mode and the second mode can be applied, depending on the implementation. In embodiments, the selection between the first mode and the second mode may be configurable only for the entire group (i.e., the same mode always applies to every entry in the group, such as the entire cache RAM 112). Alternatively, in other embodiments, the selection may be made separately for each subset of entries in a plurality of subsets of entries (so the same mode applies to all entries in a subset, but different modes may apply to different subsets). Or in still other embodiments, the mode may even be selected on a per-entry basis for each individual entry.
[0091] In some embodiments, the selection may also include selecting between different variations of the first mode, and / or selecting between different variations of the second mode. These may also be described as different sub-modes of the first mode and / or the second mode (different ways of splitting a cache line between the first RAM 201 and the second RAM 202 in the first mode; and / or different ways of storing multiple shorter cache lines in the second RAM 202 in the second mode). For example, you may select between different compression schemes for the second mode; or select between different sizes of portions of the uncompressed cache lines stored in the first RAM 201 and the second RAM 202; or select the number of compressed cache lines to be included in a field of the second RAM 202. Some of these sub-modes may also allow additional information to be stored. For example, under the first variation (sub-mode) of the second mode, compressed cache lines and tags may populate fields of the first RAM 201 and the second RAM 202, such as Figure 5 and Figure 6 However, in a second variation (sub-mode) of the second mode, there may be fewer compressed cache lines, possibly with a lower compression ratio, but still leaving some spare bits in the flexible RAM structure 202. In this case, the spare bits can be used to store additional information needed to decompress the cache lines in the second sub-mode. Alternatively, the spare bits can be used as additional data storage for one or two cache lines.
[0092] Depending on the compression algorithm used, a mixture of tag information, partially compressed data, and information required to decompress the data may be included in a given entry of the second RAM 202 .
[0093] The selection of modes and / or sub-modes may be statically or dynamically configurable.
[0094] Static configurability means by one or more settings in one or more programmable control registers, or one or more settings applied, or one or more input configuration pins of an IC package into which the processor 102 is incorporated. The configured setting may be to turn compression on or off for the entire cache, or to turn it on for some cache entries but off for others, or to turn it on for some regions of memory but not for others. In some embodiments, if compression is turned on, the setting may also select what compression scheme to use. As another alternative or additional possibility, the configuration may select the maximum number of compressed cache lines that can be stored per entry, the maximum number of bits that can be allocated to a compressed cache line, which bits of the flexible portion of the tag RAM contain tag information versus partial data or decompression information for a compressed cache line, and / or which memory address regions to include or exclude from compression (although the architectural width of the data and tag RAMs will remain the same). Such selectable configuration options may be used to set up a cache to be optimized for a given workload. The setting(s) in the control register(s) may be programmable by software running on the pipeline (e.g., by means of a general PUT instruction executed on the pipeline, or a specialized instruction type added to the instruction set of the pipeline 106). Alternatively, the control register(s) may be pre-programmed by an external device.
[0095] For example, static configuration may include the ability to mark a subset of cache ways (segments of the cache) as being used only for non-compressed lines. This would simplify the process of allocating new non-compressed cache lines in the cache (since only one non-compressed cache line would need to be evicted to make room for the new cache line, rather than multiple compressed cache lines).
[0096] Another possibility would be to statically control which cache lines are compressed by having the software mark some memory areas as compressible and some memory areas as incompressible in the memory attributes of these areas, similar to how some memory areas are marked as cacheable and some memory areas are marked as non-cacheable. This static configuration would involve programming the page table information accordingly, rather than writing to control registers within the processor. This means that instead of configuring the cache to allow compression of some entries but not others, all entries can be allowed to store compressed cache lines, but whether compression is attempted depends on the memory attributes associated with the memory area. This would allow the software to mark areas that are expected to be suitable for compression as compressible (e.g., certain data sets), and mark other areas that are expected to be unsuitable for compression as incompressible (e.g., memory areas containing instructions). Therefore, there are various options that allow static configuration.
[0097] Dynamically configurable, on the other hand, means allowing cache logic 108 to automatically determine for each cache entry whether the data is compressible, and if so, in some embodiments, specify what compression scheme to use.
[0098] In the dynamic case, each cache entry will include another field to specify the selection for the individual corresponding entry (e.g., a flag indicating whether compression is used, or two or more bits that can also specify the compression algorithm used, or other information required for decompression). This field can be part of the tag RAM 202a, the flexible RAM 202b, the data RAM 201, or a separate RAM or other storage device, such as a register. Although the extra bits need to be stored somewhere to indicate which compression algorithm is used, there is an additional benefit in that having the flexibility to use more bits for this will expand the number of compression algorithms that can be supported.
[0099] Figure 7 704, a memory 706, and other devices 714, such as a display 716, a speaker 718, and a camera 719. Processing block 710 is implemented on GPU 704. In other examples, processing block 710 can be implemented on CPU 702. In either case, processing device 102 can be implemented by Figure 7 The components of the computer system may communicate with each other via a communication bus 720 . Figure 1 The memory 104 may be composed of Figure 7 The memory 710 may be constituted as, or alternatively may be constituted as, an internal component of a GPU or a CPU, or a combination.
[0100] Figures 1 to 7 The processing device 102 and system 100 are shown as including several functional blocks. This is merely illustrative and is not intended to define a strict division between different logical elements of such entities. Each functional block may be provided in any suitable manner. It should be understood that the intermediate values described herein as being formed by the processing device 102 or system 100 need not be physically generated by the processing device or system at any point in time, and may simply represent logical values that are convenient for describing the processing performed by the processing device or system between its input and output.
[0101] The processing device 102 or system 100 described herein may be included in hardware on an integrated circuit. The processing device or system described herein may be configured to perform any method described herein. In general, any of the functions, methods, techniques or components described above may be implemented in software, firmware, hardware (e.g., fixed logic circuits), or any combination thereof. The terms "module," "functionality," "component," "element," "unit," "block," and "logic" may be used herein to generally represent software, firmware, hardware, or any combination thereof. In the case of software implementation, a module, functionality, component, element, unit, block, or logic represents a program code that, when executed on a processor, performs a specified task. The algorithms and methods described herein may be performed by one or more processors that execute code, which causes the processor to perform the algorithm / method. Examples of computer-readable storage media include random access memory (RAM), read-only memory (ROM), optical disk, flash memory, hard disk storage, and other memory devices that may use magnetic, optical, and other technologies to store instructions or other data and may be accessed by a machine.
[0102] As used herein, the terms computer program code and computer readable instructions refer to any kind of executable code for a processor, including code expressed in machine language, interpreted language, or scripting language. Executable code includes binary code, machine code, byte code, code that defines an integrated circuit (e.g., a hardware description language or netlist), and code expressed in programming language code such as C, Java, or OpenCL. Executable code can be, for example, any kind of software, firmware, script, module, or library that, when properly executed, processed, interpreted, compiled, run in a virtual machine or other software environment, causes a processor of a computer system supporting the executable code to perform the tasks specified by the code.
[0103] A processor, computer or computer system may be any kind of device, machine or special purpose circuit, or a collection or part thereof, which has processing capabilities so that instructions can be executed. A processor may be any kind of general or special purpose processor, such as a CPU, GPU, system on a chip, state machine, media processor, application specific integrated circuit (ASIC), programmable logic array, field programmable gate array (FPGA), etc. A computer or computer system may include one or more processors.
[0104] The present invention is also intended to cover software (e.g., HDL (Hardware Description Language) software) that defines the configuration of hardware as described herein, which is used to design integrated circuits or to configure programmable chips to perform desired functions. That is, a computer-readable storage medium may be provided on which is encoded computer-readable program code in the form of an integrated circuit definition data set, which, when processed (i.e., run) in an integrated circuit manufacturing system, configures the manufacturing system to manufacture a processing system configured to perform any of the methods described herein, or to manufacture a processing device or system including any of the devices described herein. The integrated circuit definition data set may be, for example, an integrated circuit description.
[0105] Thus, a method of manufacturing a processing device as described herein at an integrated circuit manufacturing system may be provided. Furthermore, an integrated circuit definition data set may be provided which, when processed in an integrated circuit manufacturing system, enables the method of manufacturing a processing device or system to be performed.
[0106] The integrated circuit definition data set may be in the form of computer code, for example as a netlist, code for configuring a programmable chip, as a hardware description language that defines hardware suitable for fabrication at any level in an integrated circuit, including as register transfer level (RTL) code, as a high-level circuit representation (e.g., Verilog or VHDL), and as a low-level circuit representation (e.g., OASIS (RTM) and GDSII). The higher-level representation (e.g., RTL) that logically defines hardware suitable for fabrication in an integrated circuit may be processed at a computer system configured to generate a manufacturing definition of the integrated circuit in the context of a software environment that includes definitions of circuit elements and rules for combining those elements to generate a manufacturing definition of the integrated circuit so defined by the representation. As is typically the case with software executed at a computer system to define a machine, one or more intermediate user steps (e.g., providing commands, variables, etc.) may be required to configure the computer system to generate a manufacturing definition of the integrated circuit to execute code that defines the integrated circuit to generate the manufacturing definition of the integrated circuit.
[0107] Now about Figure 8An example of processing an integrated circuit definition data set at an integrated circuit manufacturing system to configure the manufacturing system to manufacture the processing apparatus 102 or system 100 is described.
[0108] Figure 8 An example of an integrated circuit (IC) manufacturing system 802 is shown, which is configured to manufacture an apparatus (e.g., a processing apparatus) or a data processing system as described in any example herein. In particular, the IC manufacturing system 802 includes a layout processing system 804 and an integrated circuit generation system 806. The IC manufacturing system 802 is configured to receive an IC definition data set 801 (e.g., defining a processing apparatus 102 or system 100 as described in any example herein), process the IC definition data set, and generate an IC (e.g., which includes an apparatus 102 or data processing system 100 as described in any example herein) based on the IC definition data set. Processing of the IC definition data set configures the IC manufacturing system 802 to manufacture an integrated circuit, which includes a processing apparatus 102 or system 100 as described in any example herein.
[0109] The layout processing system 804 is configured to receive and process an IC definition data set to determine a circuit layout. Methods for determining a circuit layout based on an IC definition data set are known in the art and may, for example, involve synthesizing RTL code to determine a gate-level representation of a circuit to be generated, such as in terms of logic components (e.g., NAND, NOR, AND, OR, MUX, and FLIP-FLOP components). By determining location information for the logic components, the circuit layout may be determined based on the gate-level representation of the circuit. This may be done automatically or with user involvement in order to optimize the circuit layout. When the layout processing system 804 determines the circuit layout, the layout processing system may output a circuit layout definition 803 to the IC generation system 1006. The circuit layout definition may be, for example, a circuit layout description.
[0110] As is known in the art, IC generation system 806 generates IC 805 according to the circuit layout definition. For example, IC generation system 806 can implement a semiconductor device manufacturing process to generate ICs, which can include a multi-step sequence of photolithography and chemical processing steps during which electronic circuits are gradually formed on a wafer made of semiconductor material. The circuit layout definition can be in the form of a mask that can be used in a photolithography process to generate the IC according to the circuit definition. Alternatively, the circuit layout definition provided to IC generation system 806 can be in the form of a computer readable code that the IC generation system 806 can use to form an appropriate mask for generating the IC.
[0111] The different processes performed by the IC manufacturing system 802 can all be in one location, e.g., implemented by one party. Alternatively, the IC manufacturing system 802 can be a distributed system such that some of these processes can be performed in different locations and can be performed by different parties. For example, some of the following stages can be performed in different locations and / or by different parties: (i) synthesizing RTL code representing an IC definition data set to form a gate-level representation of a circuit to be generated; (ii) generating a circuit layout based on the gate-level representation; (iii) forming a mask based on the circuit layout; and (iv) using the mask to manufacture the integrated circuit.
[0112] In other examples, processing of the integrated circuit definition data set at the integrated circuit manufacturing system may configure the manufacturing system to manufacture the apparatus 102 or the data processing system 100 without processing the IC definition data set to determine the circuit layout. For example, the integrated circuit definition data set may define a configuration of a reconfigurable processor such as an FPGA, and processing of the data set may configure the IC manufacturing system to generate (e.g., by loading the configuration data into the FPGA) a reconfigurable processor having the defined configuration.
[0113] In some embodiments, the integrated circuit manufacturing definition data set, when processed in the integrated circuit manufacturing system, can enable the integrated circuit manufacturing system to generate an apparatus or system as described herein. Figure 8 The configuration of an integrated circuit manufacturing system in the described manner can produce a device or system as described herein.
[0114] In some examples, the integrated circuit definition data set may include software that runs on, or in combination with, hardware defined at the data set. Figure 8 In the example shown, the IC generation system can be further configured by the integrated circuit definition dataset to load firmware onto the integrated circuit according to the program code defined in the integrated circuit definition dataset when manufacturing the integrated circuit, or otherwise provide the integrated circuit with program code for use with the integrated circuit.
[0115] Compared to known implementations, the implementation of the concepts set forth in this application in devices, equipment, modules and / or systems (and in the methods implemented herein) can cause performance improvements. Performance improvements can include one or more of improved computing performance, reduced latency, increased throughput and / or reduced power consumption. During the manufacture of such devices, equipment, modules and systems (e.g., in integrated circuits), a trade-off can be made between performance improvements and physical implementations to improve manufacturing methods. For example, a trade-off can be made between performance improvements and layout area to match the performance of known implementations, but using less silicon. For example, this can be accomplished by reusing functional blocks in a serial manner or sharing functional blocks between elements of devices, equipment, modules and / or systems. In contrast, the concepts set forth in this application that cause improvements in the physical implementations of devices, equipment, modules and systems (such as reduced silicon area) can be weighed against performance improvements. This can be accomplished, for example, by manufacturing multiple instances of a module within a predefined area budget.
[0116] Applicants hereby independently disclose each individual feature described herein and any combination of two or more such features, to the extent that such feature or combination can be implemented based on the specification as a whole in view of the common general knowledge of a person skilled in the art, regardless of whether such feature or combination of features solves any problem disclosed herein. In view of the foregoing description, it will be clear to those skilled in the art that various modifications can be made within the scope of the invention.
[0117] According to a first aspect disclosed herein, there is provided a processing device as set out in the Summary section.
[0118] In an embodiment of the first aspect, the first format may be an uncompressed form and the second format may be a compressed form.
[0119] In an embodiment of the first aspect, the first RAM may be implemented in a separate RAM unit from the second RAM. In an embodiment, the second RAM may be incorporated into a single RAM unit.
[0120] In an alternative embodiment of the first aspect, the second RAM may include two constituent RAM cells: a dedicated RAM cell and a flexible RAM cell, and each field in the second RAM includes a corresponding subfield in the tag RAM cell and a corresponding subfield in the flexible RAM cell. In such an embodiment, in a first mode, the cache circuit uses the corresponding subfield in the tag RAM cell to store the corresponding tag of a single cache line, and uses the corresponding field in the flexible RAM cell to cache the remaining portion of the single cache line; and in a second mode, the cache circuit uses the corresponding subfield in the tag RAM cell to store the tag of one cache line among a plurality of cache lines, and uses the corresponding subfield in the flexible RAM cell to store the tags of the remaining cache lines among the plurality of cache lines.
[0121] In an embodiment of the first aspect, the plurality may be three, and the first portion may be three quarters.
[0122] In an embodiment of the first aspect, if the second mode is selected, the selection may further include selecting between different sub-modes of the second mode, the different sub-modes differing in one or both of the following: having different variations of the second format, or having different values of the plurality.
[0123] In an embodiment of the first aspect, different sub-modes of the second mode may comprise different variations of the second format, wherein the different variations of the second format comprise different compression schemes.
[0124] In an embodiment of the first aspect, different sub-modes of the second mode may use different compression schemes and have different values of the plurality, one sub-mode of the second mode caches fewer cache lines in the corresponding field of the first RAM than another sub-mode of the second mode, and uses spare bits in the corresponding field of the second RAM to store additional information for decompressing multiple cache lines and / or storing partially compressed cache line data.
[0125] In an embodiment of the first aspect, if the first mode is selected, the selection may further include selecting between different sub-modes of the first mode, the different sub-modes differing in one or both of the following: having different variations of the first format, or having different sizes of the first part relative to the remaining part.
[0126] In an embodiment of the first aspect, the cache circuit may be operable to select across some or all of the groups of entries.
[0127] In an embodiment of the first aspect, the operability of the cache circuit to make selections across the group may include being operable only to make the same selection for all entries in the group as a whole, the same selection being applied to each entry in the group.
[0128] Alternatively, in an embodiment of the first aspect, the operability of the cache circuit to select across the group may include being operable to select independently for each of a plurality of subgroups of entries within the group, each subgroup comprising more than one entry within the subgroup to which the same selection applies.
[0129] Alternatively, in embodiments of the first aspect, the operability of the cache circuit to select the group may include being operable to select independently for each individual entry within the group.
[0130] In an embodiment of the first aspect, the cache circuit may be operable to select the selected memory region.
[0131] In embodiments of the first aspect, the cache circuit may be operable to configure the selections by means of one or more programmable control registers or one or more input configuration pins of the processing device as settings statically applied to a plurality of cache operations in the cache operation.
[0132] In an embodiment of the first aspect, the cache circuitry may be configured to dynamically select the individual corresponding entries at each individual cache operation, wherein an additional field associated with each entry in the group records which mode is used for the corresponding entry.
[0133] In an embodiment of the first aspect, respective one or more further fields may be associated with each entry in the group to record which sub-mode is used for the respective entry.
[0134] In an embodiment of the first aspect, a data processing system may be provided, comprising the apparatus as well as an execution unit and a memory, wherein a memory access operation is an operation that retrieves data from the memory and is performed by an execution unit or other component of the processing apparatus.
[0135] According to a second aspect disclosed herein, a device is provided, comprising: a cache RAM, the cache RAM comprising a first RAM and a second RAM; and a cache circuit, the cache circuit being arranged to perform cache operations in response to memory access operations, each cache operation caching a corresponding cache line and a corresponding tag in the cache RAM; wherein: the first RAM comprises a plurality of fields having an architecturally defined width, and the second RAM comprises a plurality of corresponding fields also having an architecturally defined width, each field in the first RAM together with a corresponding field in the second RAM forming a corresponding entry of the cache RAM; the cache circuit is operable to use the corresponding fields in the first RAM to save a first portion of a single cache line, and to use the corresponding fields in the second RAM to save a corresponding tag of the single cache line and a remaining portion of the single cache line; and the cache circuit is arranged so that when a subsequent memory access operation requesting access to data for which a corresponding cache line has been cached achieves a cache hit, the corresponding tag and the remaining portion of the corresponding cache line are retrieved from the second RAM in the first clock cycle in a sequence of clock cycles.
[0136] In an embodiment of the second aspect, the cache circuit may be further arranged to determine whether a remaining portion of the corresponding cache line satisfies a subsequent memory access operation.
[0137] In an embodiment of the second aspect, if a remaining portion of the corresponding cache line satisfies a subsequent memory access operation, the cache circuit may be arranged to output data from the remaining portion.
[0138] In an embodiment of the second aspect, the cache circuit may be arranged not to retrieve the first part of the corresponding cache line from the first RAM in successive ones of the clock cycles.
[0139] In an embodiment of the second aspect, if the remaining portion of the corresponding cache line does not satisfy the subsequent memory access operation, the device may be further arranged to retrieve the first portion of the corresponding cache line from the first RAM in a consecutive one of the clock cycles and output data from the first portion.
[0140] In an embodiment of the second aspect, the first RAM may be implemented in a separate RAM unit from the second RAM.
[0141] Alternatively, in embodiments of the second aspect, the second RAM may be incorporated into a single RAM unit.
[0142] In an embodiment of the second aspect, the cache circuit may be operable to select another operating mode in which the first RAM is used to store the plurality of cache lines in a compressed format and corresponding entries in the second RAM are used to store corresponding tags in the plurality of cache lines.
[0143] In an embodiment of the second aspect, the second RAM may include two constituent RAM cells, namely a dedicated tag RAM cell and a flexible RAM cell, each field in the second RAM includes a corresponding subfield in the tag RAM cell and a corresponding subfield in the flexible RAM cell; and the cache circuit may use the corresponding subfield in the tag RAM cell to save the corresponding tag of a single cache line, and use the corresponding field in the flexible RAM cell to cache the remaining part of the single cache line; or, if another operating mode is selected, the cache circuit may use the corresponding subfield in the tag RAM cell to save the tag of one cache line among multiple cache lines, and use the corresponding subfield in the flexible RAM cell to save the tags of the remaining cache lines among the multiple cache lines.
[0144] In an embodiment of the second aspect, if another mode is selected, the selection may include selecting between different sub-modes of the other mode, the different sub-modes differing in one or both of the following: having different variations of the second format, or having different values of the plurality.
[0145] In an embodiment of the second aspect, different sub-modes of another mode may include different variations of the compression format, wherein the different variations of the compression format include different compression schemes.
[0146] In an embodiment of the second aspect, different sub-modes of another mode may use different compression schemes and have different values of the plurality, one sub-mode of another mode caches fewer cache lines in the corresponding field of the first RAM than another sub-mode of another mode, and uses spare bits in the corresponding field of the second RAM to store additional information for decompressing multiple cache lines and / or storing partially compressed cache line data.
[0147] In an embodiment of the second aspect, the cache circuit may be operable to select the other mode across some or all of the groups of entries.
[0148] In an embodiment of the second aspect, the operability of the cache circuit to select the other mode across the group may include one of:
[0149] is only operable to make the same selection for all items in the group as a whole, with the same selection applying to each item in the group;
[0150] operable to independently make a selection for each of a plurality of subgroups of items within the group, each subgroup comprising more than one item within the subgroup to which the same selection applies; and
[0151] The selection is operable to be performed independently on each individual one of the entries within the group.
[0152] In an embodiment of the second aspect, the cache circuit may be operable to configure selection of the further mode by means of one or more programmable control registers or one or more input configuration pins of the processing device as a setting statically applied to a plurality of cache operations in the cache operation.
[0153] In embodiments of the second aspect, a data processing system may comprise the apparatus of any preceding claim together with an execution unit and a memory, wherein a memory access operation is an operation that retrieves data from the memory and is performed by an execution unit or other component of the processing apparatus.
[0154] The first aspect and the second aspect may be used together or separately. Any feature of any embodiment of the first aspect may be used with the second aspect, and vice versa.
[0155] According to further aspects disclosed herein, a corresponding method of operating a processing device or system, and a corresponding computer program configured to operate a processing device or system may be provided. According to still other aspects, a corresponding method of manufacturing a processing device or system, a corresponding manufacturing facility arranged to manufacture a processing device or system, and a corresponding circuit design data set contained on a computer-readable storage device may be provided.
[0156] For example, according to one aspect, a non-transitory computer-readable storage medium may be provided, on which a computer-readable description of a processing device or system as described in any embodiment of the present invention is stored, and when the computer-readable description is processed in an integrated circuit manufacturing system, the integrated circuit manufacturing system: processes the computer-readable description of the processing device or system using a layout processing system to generate a circuit layout description of an integrated circuit including the processing device or system; and manufactures the processing device or system based on the circuit layout description using the integrated circuit generation system.
[0157] According to another aspect, an integrated circuit manufacturing system may be provided, comprising: a non-transitory computer-readable storage medium having stored thereon a computer-readable description of a processing device or system as described in any embodiment disclosed herein; a layout processing system configured to process the computer-readable description so as to generate a circuit layout description of an integrated circuit including the processing device or system; and an integrated circuit generation system configured to manufacture the processing device or system according to the circuit layout description.
[0158] According to another aspect, a method for manufacturing a processing device or system according to any embodiment disclosed herein using an integrated circuit manufacturing system may be provided, the method comprising: processing a computer-readable description of the processing device or system using a layout processing system to generate a circuit layout description of an integrated circuit including the processing device or system; and manufacturing the processing device or system according to the circuit layout description using an integrated circuit generation system.
[0159] According to another aspect, a layout processing system may be provided, the layout processing system being configured to determine location information of logic components of a circuit derived from an integrated circuit description to generate a circuit layout description of an integrated circuit including a processing device or system as described in any embodiment disclosed herein.
[0160] According to other aspects, there may be provided an apparatus, system, program or method according to any one of the following statements A1 to A25. These aspects may be provided as an alternative to any of the aspects discussed previously, or may be used in combination with any of the features of any of the aspects discussed previously.
[0161] A1. A device, comprising:
[0162] a cache RAM, the cache RAM comprising a first RAM and a second RAM; and
[0163] a cache circuit arranged to perform cache operations in response to memory access operations, each cache operation caching a respective cache line and a corresponding tag in the cache RAM; wherein:
[0164] The first RAM includes a plurality of fields having an architecturally defined width, and the second RAM includes a plurality of corresponding fields also having an architecturally defined width, each field in the first RAM together with a corresponding field in the second RAM forming a corresponding entry of the cache RAM;
[0165] The cache circuit is operable to store a first portion of a single cache line using corresponding fields in the first RAM and to store a corresponding tag of the single cache line and a remainder of the single cache line using corresponding fields in the second RAM; and
[0166] The cache circuitry is arranged such that when a subsequent memory access operation requesting access to data for which a corresponding cache line has been cached achieves a cache hit, the corresponding tag and remainder of the corresponding cache line are retrieved from the second RAM in a first clock cycle in a sequence of clock cycles.
[0167] A2. Apparatus as recited in statement A1 wherein the cache circuitry is further arranged to determine whether a remaining portion of the corresponding cache line satisfies a subsequent memory access operation.
[0168] A3. Apparatus according to statement A2, wherein if a remaining portion of the corresponding cache line satisfies a subsequent memory access operation, the cache circuit is arranged to output data from the remaining portion.
[0169] A4. Apparatus according to statement A3, wherein the cache circuit is arranged not to retrieve the first portion of the corresponding cache line from the first RAM in successive ones of the clock cycles.
[0170] A5. An apparatus according to statement A2, wherein, if the remaining portion of the corresponding cache line does not satisfy a subsequent memory access operation, the apparatus is further arranged to retrieve a first portion of the corresponding cache line from a first RAM in a successive clock cycle in a clock cycle and output data from the first portion.
[0171] A6. The apparatus of any of statements A1 to A5, wherein the first RAM is implemented in a RAM unit separate from the second RAM.
[0172] A7. An apparatus according to any of statements A1 to A5, wherein the second RAM is incorporated into a single RAM cell.
[0173] A8. An apparatus according to any one of statements A1 to A7, wherein the cache circuit is operable to select another operating mode, in which the first RAM is used to store multiple cache lines in a compressed format, and corresponding entries in the second RAM are used to store corresponding tags in the multiple cache lines.
[0174] A9. An apparatus according to statement A8, wherein:
[0175] The second RAM includes two constituent RAM cells: a dedicated tag RAM cell and a flexible RAM cell, each field in the second RAM includes a corresponding subfield in the tag RAM cell and a corresponding subfield in the flexible RAM cell; and
[0176] The cache circuit uses the corresponding subfield in the tag RAM cell to store the corresponding tag of a single cache line, and uses the corresponding field in the flexible RAM cell to cache the remaining portion of the single cache line; or, if another operating mode is selected, the cache circuit uses the corresponding subfield in the tag RAM cell to store the tag of one cache line among multiple cache lines, and uses the corresponding subfield in the flexible RAM cell to store the tags of the remaining cache lines among the multiple cache lines.
[0177] A10. An apparatus according to statement A8 or A9, wherein, if another mode is selected, the selection comprises selecting between different sub-modes of the other mode, the different sub-modes differing in one or both of the following:
[0178] - has a different variation of said second format, or
[0179] - having different values of said plurality.
[0180] A11. An apparatus as described in statement A10, wherein different sub-modes of another mode include different variations of the compression format, wherein the different variations of the compression format include different compression schemes.
[0181] A12. An apparatus as described in statement A11, wherein different sub-modes of another mode use different compression schemes and have different values of the plurality, wherein one sub-mode of another mode caches fewer cache lines in a corresponding field of a first RAM than another sub-mode of another mode, and wherein spare bits in a corresponding field of a second RAM are used to store additional information for decompressing the plurality of cache lines and / or storing partially compressed cache line data.
[0182] A13. An apparatus as described in any of statements A8 to A12, wherein the cache circuit is operable to select the other mode across some or all groups of entries.
[0183] A14. The apparatus of statement A13, wherein the operability of the cache circuit to select the another mode across groups comprises one of:
[0184] is only operable to make the same selection for all items in the group as a whole, with the same selection applying to each item in the group;
[0185] operable to independently make a selection for each of a plurality of subgroups of items within the group, each subgroup comprising more than one item within the subgroup to which the same selection applies; and
[0186] The selection is operable to be performed independently on each individual one of the entries within the group.
[0187] A15. An apparatus as described in any one of statements A8 to A14, wherein the cache circuit is operable to configure selection of another mode by means of one or more programmable control registers or one or more input configuration pins of a processing device as a setting statically applied to multiple cache operations in the cache operation.
[0188] A16. A data processing system comprising an apparatus according to any one of statements A1 to A15, and an execution unit and a memory, wherein a memory access operation is an operation that retrieves data from the memory and is performed by an execution unit or other component of the processing apparatus.
[0189] A17. An apparatus according to any one of statements A1 to A15 or a data processing system according to statement A16, wherein the processing apparatus or the data processing system is embodied in hardware on an integrated circuit.
[0190] A18. A method of manufacturing a device according to any one of statements A1 to A15 or a data processing system according to statement A16 using an integrated circuit manufacturing system.
[0191] A19. An integrated circuit definition data set which, when processed in an integrated circuit manufacturing system, configures the integrated circuit manufacturing system to manufacture an apparatus according to any one of statements A1 to A15 or a data processing system according to statement A16.
[0192] A20. A computer-readable storage medium having stored thereon a computer-readable description of an apparatus according to any one of statements A1 to A15 or a data processing system according to statement A16, wherein the computer-readable description, when processed in an integrated circuit manufacturing system, causes the integrated circuit manufacturing system to manufacture an integrated circuit comprising the processing apparatus or the data processing system.
[0193] A21. An integrated circuit manufacturing system configured to manufacture an apparatus according to any one of statements A1 to A15 or a data processing system according to statement A16.
[0194] A22. A method of operating a processing device, the processing device comprising a cache RAM, the cache RAM comprising a first RAM and a second RAM, the first RAM comprising a plurality of fields having an architecture-defined width, and the second RAM comprising a plurality of corresponding fields also having an architecture-defined width, each field in the first RAM together with a corresponding field in the second RAM forming a corresponding entry of the cache RAM; the method comprising:
[0195] caching a cache line and corresponding tags such that a corresponding field in the first RAM holds a first portion of the cache line and a corresponding field in the second RAM holds a corresponding tag of the cache line and a remaining portion of the cache line; and
[0196] When a subsequent memory access operation requesting access to data for which the corresponding cache line has been cached achieves a cache hit, the corresponding tag and the remainder of the corresponding cache line are retrieved from the second RAM in a first clock cycle in the sequence of clock cycles.
[0197] A23. A processing device configured to perform the method of statement A22.
[0198] A24. A computer readable code configured to cause the method according to statement A22 to be performed when the code is run.
[0199] A25. A computer-readable storage medium having encoded thereon a computer-readable code according to statement A24.
[0200] Other variations, implementations, and / or applications of the disclosed technology may become apparent to those skilled in the art once the present disclosure is given herein.The scope of the present disclosure is not limited by the above-described embodiments, but only by the claims.
Claims
1. A device, comprising: a cache RAM, the cache RAM comprising a first RAM and a second RAM; as well as a cache circuit arranged to perform cache operations in response to memory access operations, each cache operation caching a respective cache line and a corresponding tag in the cache RAM; wherein: The first RAM includes a plurality of fields having an architecturally defined width, and the second RAM includes a plurality of corresponding fields also having an architecturally defined width, each field in the first RAM together with a corresponding field in the second RAM forming a corresponding entry of the cache RAM; The cache circuit is operable to select between applying a first mode and a second mode in at least one of the entries in the cache RAM; When the first mode is applied, using corresponding fields in the first RAM to save a first portion of a single cache line in a first format, and using corresponding fields in the second RAM to save a corresponding tag of the single cache line and a remainder of the single cache line; and When the second mode is applied, the first RAM is used to store a plurality of cache lines in a second format shorter than the first format, and corresponding entries in the second RAM are used to store corresponding tags in the plurality of cache lines.
2. The device according to claim 1, wherein: The first format is an uncompressed form and the second format is a compressed form.
3. The device according to claim 1 or 2, wherein: The second RAM includes two constituent RAM cells: a dedicated tag RAM cell and a flexible RAM cell, each field in the second RAM includes a corresponding subfield in the tag RAM cell and a corresponding subfield in the flexible RAM cell; and In the first mode, the cache circuit uses the corresponding subfield in the tag RAM cell to save the corresponding tag of the single cache line, and uses the corresponding field in the flexible RAM cell to cache the remaining portion of the single cache line; and in the second mode, the cache circuit uses the corresponding subfield in the tag RAM cell to save the tag of one cache line among the multiple cache lines, and uses the corresponding subfield in the flexible RAM cell to save the tags of the remaining cache lines among the multiple cache lines.
4. An apparatus according to any preceding claim, wherein: The plurality is three, and the first portion is three quarters.
5. An apparatus according to any preceding claim, wherein: The selecting further comprises, if the second mode is selected, selecting between different sub-modes of the second mode, the different sub-modes differing in one or both of the following: - has a different variation of said second format, or - having different values of said plurality.
6. The device according to claim 5, wherein: Different sub-modes of the second mode include different variations of the second format, wherein the different variations of the second format include different compression schemes.
7. The device according to claim 6, wherein: Different sub-modes of the second mode use different compression schemes and have different values of the plurality, one sub-mode of the second mode caches fewer cache lines in the corresponding field of the first RAM than another sub-mode of the second mode, and uses spare bits in the corresponding field of the second RAM to store additional information for decompressing the plurality of cache lines and / or storing partially compressed cache line data.
8. An apparatus according to any preceding claim, wherein: The selecting further comprises, if the first mode is selected, selecting between different sub-modes of the first mode, the different sub-modes differing in one or both of the following: - a different variation of said first format, or - having a different size of said first portion relative to said remaining portion.
9. An apparatus according to any preceding claim, wherein: The cache circuitry is operable to select across some or all of the groups of entries.
10. The device according to claim 9, wherein: The cache circuitry is operable to select across the groups including: It is only operable to make the same selection for all items in the group as a whole, with the same selection applying to each item in the group.
11. The device according to claim 9, wherein: The cache circuitry is operable to select across the groups including: The selection is operable to be performed independently for each of a plurality of subgroups of entries within the group, each subgroup comprising more than one entry within the subgroup to which the same selection is applied.
12. The device according to claim 9, wherein: The cache circuit is operable to select the group including: The selection is operable to be performed independently on each individual one of the entries within the group.
13. An apparatus according to any preceding claim, wherein: The cache circuit is operable to select for a selected memory region.
14. An apparatus according to any preceding claim, wherein: The cache circuitry is operable to configure the selection by means of one or more programmable control registers or one or more input configuration pins of the processing device as a setting statically applied to a plurality of the cache operations.
15. The device according to claim 12, wherein: The cache circuitry is configured to dynamically select an individual corresponding entry upon each individual cache operation, wherein an additional field associated with each entry in the group records which mode was used for the corresponding entry.
16. Apparatus according to claim 15 when appended to claim 5, 6, 7 or 8, wherein The respective one or more other fields associated with each entry in the group record which sub-mode is used for the respective entry.
17. An apparatus according to any preceding claim, the apparatus being arranged such that, when a subsequent memory access operation requesting access to data of a corresponding cache line for which data has been cached according to the first mode achieves a cache hit, a remaining portion of the corresponding cache line is retrieved from the second RAM in a first clock cycle in a sequence of clock cycles, and then a first portion of the corresponding cache line is retrieved from the first RAM in a subsequent clock cycle of the clock cycle.
18. A method of manufacturing the device according to any one of claims 1 to 17 using an integrated circuit manufacturing system, the method comprising: processing the computer-readable description of the circuit using a layout processing system to generate a circuit layout description of an integrated circuit including the apparatus; as well as The device is manufactured according to the circuit layout description using an integrated circuit generation system.
19. A computer-readable storage medium having stored thereon a computer-readable description of the apparatus according to any one of claims 1 to 17, wherein the computer-readable description, when processed in an integrated circuit manufacturing system, causes the integrated circuit manufacturing system to manufacture an integrated circuit containing the apparatus.
20. An integrated circuit manufacturing system configured to manufacture the apparatus according to any one of claims 1 to 17, the integrated circuit manufacturing system comprising: a non-transitory computer-readable storage medium having stored thereon a computer-readable description of the apparatus; a layout processing system configured to process the computer-readable description to generate a circuit layout description of an integrated circuit including the apparatus; and An integrated circuit generation system is configured to manufacture the device according to the circuit layout description.
