Caching apparatus, caching method and computer readable medium

The caching apparatus and method improve cache functionality by facilitating data transmission across different bus formats and addressing systems, enhancing efficiency and flexibility in cache operations.

US20260377314A1Pending Publication Date: 2026-11-26NEC CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
US19/571837
Authority / Receiving Office
US · United States
Patent Type
Applications(United States)
Current Assignee / Owner
Priority Date
2025-03-26
Filing Date
2026-03-19
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

Existing data conversion technologies, such as those described in Japanese Unexamined Patent Application Publication No. Sho 63-147247, lack comprehensive examples of cache functionality enhancement, particularly in handling different bus formats and addressing/data systems between processors and main memory.

Method used

A caching apparatus and method that includes a unit connecting a data requester and provider, with a cache, capable of performing various data transmission processes based on read and write requests, including data transfer between caches and main memory, while handling different bus formats and addressing systems.

Benefits of technology

Enhances cache functionality by allowing efficient and flexible data transmission across varying bus formats and addressing systems, enabling customizable and reconfigurable cache operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US20260377314A1-D00000_ABST
    Figure US20260377314A1-D00000_ABST
Patent Text Reader

Abstract

A caching apparatus according to an aspect includes: at least one first processor connecting a second processor and a memory; and at least one cache connected to the at least one first processor; wherein the at least one first processor is configured to execute: receiving a read request or a write request from the second processor or the at least one cache; and performing at least one of the following processes; transmit data from the at least one cache to the second processor; transmit data from the second processor to the at least one cache; transmit data from the memory to the at least one cache; or transmit data from the at least one cache to the memory.
Need to check novelty before this filing date? Find Prior Art

Description

INCORPORATION BY REFERENCE

[0001] This application is based upon and claims the benefit of priority from Japanese patent application No. 2025-052534, filed on Mar. 26, 2025, the disclosure of which is incorporated herein in its entirety by reference.TECHNICAL FIELD

[0002] The present disclosure relates to a caching apparatus, a system, a caching method and a program.BACKGROUND ART

[0003] Techniques for converting data in an information processing device have been improved.

[0004] For example, Japanese Unexamined Patent Application Publication No. Sho 63-147247 (PTL 1) discloses a data format conversion device. The data format conversion device includes a data conversion means for converting data in one data format to data in another data format; and a transferring means transfers the data to the data conversion means at the time that a microprocessor of an information processing device extracts data from a cache memory.

[0005] However, PTL 1 discloses only limited examples of operation.SUMMARY

[0006] One example object of the present disclosure is to provide a caching apparatus, a system, a caching method and a program capable of enhancing cache functionality. However, it should be noted that this object is only one of a plurality of objects that a plurality of example embodiments disclosed herein seek to achieve. Other objects or issues and new features are apparent from the description or accompanying drawings herein.

[0007] According to one aspect of the disclosure, there is provided a caching apparatus that includes:

[0008] at least one unit connecting a data requester and a data provider; and

[0009] at least one cache connected to the at least one unit;

[0010] wherein the at least one unit is configured to execute:

[0011] receiving a read request or a write request from the data requester or the at least one cache; and

[0012] performing at least two of the following processes;

[0013] transmit data from the at least one cache to the data requester if receiving the read request from the data requester;

[0014] transmit data from the data requester to the at least one cache if receiving the write request from the data requester;

[0015] transmit data from the data provider to the at least one cache if receiving the read request from the at least one cache; or

[0016] transmit data from the at least one cache to the data provider if receiving the write request from the at least one cache.

[0017] According to one aspect of the disclosure, there is provided a system that includes:

[0018] a data requester;

[0019] a data provider; and

[0020] a caching apparatus;

[0021] wherein the caching apparatus includes:

[0022] at least one unit connecting a data requester and a data provider; and

[0023] at least one cache connected to the at least one unit;

[0024] wherein the at least one unit is configured to execute:

[0025] receiving a read request or a write request from the data requester or the at least one cache; and

[0026] performing at least two of the following processes;

[0027] transmit data from the at least one cache to the data requester if receiving the read request from the data requester;

[0028] transmit data from the data requester to the at least one cache if receiving the write request from the data requester;

[0029] transmit data from the data provider to the at least one cache if receiving the read request from the at least one cache; or

[0030] transmit data from the at least one cache to the data provider if receiving the write request from the at least one cache.

[0031] According to one aspect of the disclosure, there is provided a caching method performed by a computer, the caching method includes:

[0032] performing at least two of the following processes;

[0033] transmit data from at least one cache to a data requester if receiving a read request from the data requester;

[0034] transmit data from the data requester to the at least one cache if receiving a write request from the data requester;

[0035] transmit data from a data provider to the at least one cache if receiving a read request from the at least one cache; or

[0036] transmit data from the at least one cache to the data provider if receiving a write request from the at least one cache;

[0037] wherein the computer connects the data requester, the data provider and the at least one cache.

[0038] According to one aspect of the disclosure, there is provided a program that causes a computer to execute:

[0039] performing at least two of the following processes;

[0040] transmit data from at least one cache to a data requester if receiving a read request from the data requester;

[0041] transmit data from the data requester to the at least one cache if receiving a write request from the data requester;

[0042] transmit data from a data provider to the at least one cache if receiving a read request from the at least one cache; or

[0043] transmit data from the at least one cache to the data provider if receiving a write request from the at least one cache;

[0044] wherein the computer connects the data requester, the data provider and the at least one cache.

[0045] According to the present disclosure, it is possible to provide a caching apparatus, a caching method and a program capable of enhancing cache functionality.BRIEF DESCRIPTION OF DRAWINGS

[0046] The above and other aspects, features and advantages of the present disclosure will become more apparent from the following description of certain example embodiments taken in conjunction with the accompanying drawings, in which:

[0047] FIG. 1 is a block diagram showing one example of a computer according to background;

[0048] FIG. 2 is a block diagram showing one example a cache system according to the present disclosure;

[0049] FIG. 3 is a block diagram showing one example of a caching apparatus according to the present disclosure;

[0050] FIG. 4 is a flowchart showing one example of the caching apparatus according to the present disclosure;

[0051] FIG. 5 is a block diagram showing one example of a system according to the present disclosure;

[0052] FIG. 6 is a block diagram showing input and output to a pre-processor;

[0053] FIG. 7 shows one example of a 512-bit buffer in a pre-processor;

[0054] FIG. 8 is a flowchart showing one example of processes of “CPU Read Request”;

[0055] FIG. 9 is a flowchart showing one example of processes of “Cache Read Request”;

[0056] FIG. 10 is a flowchart showing one example of processes of “CPU Write Request”;

[0057] FIG. 11 is a flowchart showing one example of processes of “Cache Write Request”;

[0058] FIG. 12 shows one example of a CPU-RD registration table;

[0059] FIG. 13 shows one example of processes of registration and data storing for a modified CPU Read Request;

[0060] FIG. 14 shows one example of processes of data sending for a modified CPU Read Request;

[0061] FIG. 15 shows one example of processes of registering address for CPU Read;

[0062] FIG. 16 shows one example of processes of storing data for the CPU Read;

[0063] FIG. 17 shows one example of processes of selecting data for the CPU Read;

[0064] FIG. 18 shows one example of a MEM-RD registration table;

[0065] FIG. 19 shows one example of processes of registration and data requesting;

[0066] FIG. 20 shows one example of processes of data sending;

[0067] FIG. 21 shows one example of processes of registering address for Cache Read;

[0068] FIG. 22 shows one example of processes of a receiving and storing data for the Cache Read;

[0069] FIG. 23 shows one example of processes of a selecting data for the Cache Read; and

[0070] FIG. 24 illustrates one example of a hardware configuration of a computer system applicable to the caching apparatus.EXAMPLE EMBODIMENT

[0071] Example embodiments according to the present disclosure will be described hereinafter with reference to the drawings. Note that the following description and the drawings are omitted and simplified as appropriate for clarifying the explanation. Further, the same elements are denoted by the same reference numerals and / or letters throughout the drawings, and redundant descriptions thereof are omitted as required. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and / or configurations discussed.

[0072] Also, in this disclosure, unless otherwise specified, “at least one of A or B (A / B)” may mean any one of A or B, or both A and B. Similarly, if “at least one” is used for three or more elements, it can mean any one of these elements, or any plurality of elements (including all elements). Use of the term “and / or” means that each option is usable individually or in combination with any, or all, of the other options. Further, it should be noted that in the description of this disclosure, elements described using the singular forms such as “a”, “an”, “the” and “one” may be multiple elements unless explicitly stated.

[0073] Each of the drawings or figures is merely one example to illustrate one or more example embodiments. Each figure may not be associated with only one particular example embodiment but may be associated with one or more other example embodiments. As those of ordinary skill in the art will understand, various features or steps described with reference to any one of the figures can be combined with features or steps illustrated in one or more other figures, for example, to produce example embodiments that are not explicitly illustrated or described. Not all of the features or steps illustrated in any one of the figures to describe one example embodiment are necessarily essential, and some features or steps may be omitted. The order of the steps described in any of the figures may be changed as appropriate.

[0074] The arrows connecting each element shown in the attached drawings are examples of data flow, and the actual data flow between the elements is not limited to that indicated by the arrows.Background

[0075] Before explaining features of the present disclosure, the background technology will be described below.

[0076] A computer typically uses main memory located off a processor die as a source of temporary storage if the processor itself cannot store the data. Reading or writing to a main memory usually takes a lot of time, thus, intermediate sources of memory called caches (e.g., L1, L2, LL caches) located close to the processor are accessed instead. These caches are hierarchical, so if a given piece of data is not found in the closest cache (e.g., L1), the cache sends a request for that data to the next cache in the hierarchy (e.g., L2). The end of this cache hierarchy is the last-level cache (LL cache) and if the requested data is not found there, the last-level cache sends a request for the data to the main memory.

[0077] Given the above situation, it is conceivable to locate some specialized caches at the boundary between the LL cache and the main memory, while the specialized caches may encrypt / authenticate data as well as change the addressing of the data. FIG. 1 shows one example of a computer according to the background. FIG. 1 illustrates that a processor O1, general caches such as L1, L2 and LL caches, a specialized cache C1 and a main memory M1 are connected in sequence. The specialized cache C1 enables the computer to encrypt and / or authenticate data transmitted from the processor O1 or the main memory M1.

[0078] In FIG. 1, the general caches, the specialized cache, and the main memory are separated by buses (e.g., Advanced eXtensible Interface (AXI)-4, Wishbone or the like) which allow data to be transferred between these integrated circuits. However, the size of the data requested by a CPU or a given cache to a resource may and usually does exceed the bit-width of the bus connected between the two devices. For example, cache lines, which transfer the smallest size of data in a cache, are usually 64-bytes (512-bits), whereas the bus between the cache and the main memory has a bit-width of 8-bytes (64-bits). This results in requiring a set number of transfers per data request on any given bus. Specifically, 8 transfers of 8-bytes for the bus are required for communicating between the cache and the main memory for 1 cache line.<Objective (problem Statement>

[0079] LL caches at an edge of a processor die, or specialized caches outside the processor die may need to handle one type of bus from a requesting side (e.g., CPU side) and another type of bus with a different format from a resource side (e.g., main memory side). In this case, it may be beneficial to provide an efficient and flexible caching preprocessor that can handle a bus format from the requesting side, and another bus format from the resource side. It may be also beneficial to make the caching pre-processor have a function of handling addresses that have been changed and data that has been encrypted by a specialized cache.

[0080] For example, the caching pre-processor can handle the situation in which one bus between a processor and a caching unit is Wishbone and another bus between the caching unit and the main memory is AXI-4, or even a new type of bus. It would also be convenient if the pre-processor could be “programmed” to various configurations with software.

[0081] FIG. 2 shows one example of a cache system including a caching pre-processor with the function explained above. Specifically, the cache system in FIG. 2 includes a processor P2, an accelerator A2, a caching pre-processor C2, a specialized cache SC2, a memory M2 and a storage ST2. The all elements in the cache system are hardware devices. The processor P2 and the accelerator A2 at the data requester side are connected directly to the caching pre-processor C2 with AXI-4 format buses, whereas the memory M2 and the storage ST2 at the data provider side are connected directly to the caching pre-processor C2 with Advanced High-performance Bus (AHB) format buses. The specialized cache SC2 is connected directly to the caching pre-processor C2 and is connected indirectly to the processor P2, the accelerator A2, the memory M2 and the storage ST2 via the caching pre-processor C2.

[0082] A timeline for one example single process is as follows.

[0083] (1) The processor P2 sends a data read request to the caching preprocessor C2 with an address 0x0800.

[0084] (2) The specialized cache SC2 sends a request for a rearranged address to the caching pre-processor C2 as the address specified by the the processor P2 is not found.

[0085] (3) The caching pre-processor C2 sends a data request with the rearranged address (0x0F45) to the memory M2.

[0086] (4) The caching pre-processor C2 receives data from the memory M2 using an address 0xF234124E.

[0087] (5) The caching pre-processor C2 decrypts the received data, stores the decrypted data in the specialized cache SC2 and and sends the data in it.

[0088] (6) The processor P2 receives the data using an address 0x00000003.

[0089] In this example, the processor P2 and the accelerator A2 are assigned unique ID(Identifier)s, i.e., “ID:0 ” and “ID:1”. Further, the addresses used for loading the data are unique.<Effects / Use-Cases>

[0090] One of the effects of this disclosure is allowing more customizability regarding positioning a general or specialized cache off-chip. Assuming a standardized bus that a processor die / chip expects, this disclosure also allows a connection to main memory via a custom bus which could be more efficient.

[0091] A second effect of this disclosure, useful for specialized cache research, is allowing specialized caches to rearrange memory locations and encrypt and / or decrypt data with an additional signal provided by the cache.

[0092] A third effect of this disclosure is allowing reconfigurability on the fly, assuming this disclosure is implemented on a micro-computer or reconfigurable Field Programmable Gate Array (FPGA). However, the effects of this disclosure are not limited to those shown above.<Assumed Business>

[0093] This disclosure could be beneficial to digital hardware (processor and / or memory, etc.-based) companies where research into bus formats and configurations to improve efficiency is prevalent. In addition, business with this disclosure could be beneficial to digital hardware (processor and / or memory, etc.-based) companies where research into specialized caches is prevalent.First Example Embodiment<Configuration>

[0094] As shown in FIG. 3, a system S1 includes a caching apparatus 10, a data requester R1 and a data provider P1. The caching apparatus 10 includes a unit 12 and a cache 14. The unit 12 connects the data requester R1 and the data provider P1. The cache 14 is connected to the unit 12. Specifically, the cache 14 may communicate data with the data requester R1 via the unit 12 and communicate data with the data provider P1 via the unit 12. In other words, the cache 14 may not be directly connected to the data requester R1 and may not be directly connected to the data provider P1.

[0095] The caching apparatus 10 may be a part of one or more computers and / or machines. For example, the caching apparatus 10 may be a semiconductor device, such as an integrated circuit (IC). The unit 12 may be a logic circuit, for example, a hardware pre-processor. The hardware pre-processor may include one or more processers, such as a central processing unit (CPU), a microprocessor unit (MPU), a graphics processing unit (GPU), a field-programmable gate array (FPGA), or a digital signal processor (DSP). In addition, the unit 12 could be controlled by software executed by hardware of the caching apparatus 10. For example, the caching apparatus 10 may have a CPU that uses software to issue the instructions for the unit 12 to perform its processes.

[0096] The data requester R1 is capable of data write or read operations. Specifically, the data requester R1 outputs a read request or a write request to the unit 12. The data requester R1 may output the read request to read data from the cache 14. Further, the data requester R1 may output the write request to write data it holds to the cache 14. Examples of the data requester R1 are various types of processers, such as a CPU, a MPU, a GPU, a FPGA, or a DSP. The data requester R1 may include one or more processers.

[0097] The data provider P1 is capable of storing or outputting data in response to a read request or a write request from the cache 14. The data provider P1 may output data to the cache 14 if the cache 14 outputs the read request. Further, the data provider P1 may store data from the cache 14 if the cache 14 outputs the write request. Examples of the data provider P1 are various types of storage medium, such as a random access memory (RAM), a read only memory (ROM), an hard disk drive (HDD), a solid state drive (SSD), or a memory card. The data provider P1 may include one or more storage media.

[0098] The unit 12 is configured to receive a read request or a write request from the data requester R1 or the cache 14. In response to the request, the unit 12 performs at least two of the following processes;

[0099] (i) transmitting data from the cache 14 to the data requester R1 if receiving the read request from the data requester R1;

[0100] (ii) transmitting data from the data requester R1 to the cache 14 if receiving the write request from the data requester R1;

[0101] (iii) transmitting data from the data provider P1 to the cache 14 if receiving the read request from the cache 14; or

[0102] (iv) transmitting data from the cache 14 to the data provider P1 if receiving the write request from the cache 14.

[0103] Each of (i) through (iv) is explained below.

[0104] (i) The data requester R1 transmits the read request in order to load data from the cache 14. If the data is not stored in the cache 14, the unit 12 may perform processes in order to acquire the data from the data provider P1. After the data is transmitted from the data provider P1 and stored into the cache 14, the data requester R1 may load the data from the cache via the unit 12.

[0105] (ii) The data requester R1 transmits the write request in order to store data from the data requester R1 in the cache 14. After the data is transmitted from the data requester R1 and stored into the cache 14, the unit 12 may perform processes in order to store the data into the data provider P1.

[0106] (iii) The cache 14 transmits the read request in order to load data from the data provider P1. This process can be performed after it is turned out that the data to be loaded by the data requester R1 is not stored in the cache 14.

[0107] (iv) The cache 14 transmits the write request in order to store data from the cache 14 in the data provider P1. This process can be performed after the data is transmitted from the data requester R1 and stored into the cache.

[0108] FIG. 3 shows one example where one each of the unit 12 and the cache 14 is provided. However, multiple units 12 can be provided in the caching apparatus 10. Further, multiple caches 14 can be provided in the caching apparatus 10.<Flow Description>

[0109] Next, referring to the flowchart in FIG. 4, one example of the operation of the present disclosure will be described. The detail of each processing in FIG. 4 is already explained above and its explanation is omitted as appropriate.

[0110] First, the unit 12 receives a read request or a write request from the data requester R1 or the cache 14 (step S12). Next, the unit 12 executes data processing related to the read request or the write request (step S14). Specifically, the unit 12 performs at least two of the following processes;

[0111] (i) transmit data from the cache 14 to the data requester R1 if receiving the read request from the data requester R1;

[0112] (ii) transmit data from the data requester R1 to the cache 14 if receiving the write request from the data requester R1;

[0113] (iii) transmit data from the data provider P1 to the cache 14 if receiving the read request from the at least one cache; or

[0114] (iv) transmit data from the cache 14 to the data provider P1 if receiving the write request from the at least one cache.<Description of Effects>

[0115] As shown above, the unit 12 controls the data transmission between the cache 14 and the data requester R1 or the data provider P1. This configuration can enhance cache functionality. For example, the caching apparatus 10 is capable of performing the processes shown in FIG. 2 and its related description above.Second Example Embodiment

[0116] A second example embodiment of this disclosure will be described below referring to the accompanied drawings. This second example embodiment explains one of the specific examples of the first example embodiment and the cache system shown in (background), however, specific examples of those are not limited to this example embodiment.<Overview>

[0117] Before explaining the details of the configuration and processes in the second example embodiment, overview of the solution to an efficient and flexible pre-processor for custom caches and bus types will be described.

[0118] Assume a pre-processor lies between a requesting system (e.g., CPU), a cache, and a resource system (e.g., main memory). The cache may be either a general cache or a custom cache. The pre-processor can perform the following matters;

[0119] handling a bus format coming from a CPU (In other words, CPU-pre-processor bus) and a bus format coming from a main memory (In other words, pre-processor-memory bus) of the same or different types (This assumes, at minimum, the bus format uses a “request then sequence of data” set of exchanges like with AXI and Wishbone.); and

[0120] handling a design where the addressing / data system of the CPU's request may differ from the addressing / data system of the main memory due to the actions of the specialized cache because of selective rearrangement of addresses or encryption of data.

[0121] This pre-processor would need to handle 4 main functions below:

[0122] (A) CPU Read Request: the CPU requests the pre-processor to load data from the cache

[0123] (B) CPU Write Request: the CPU requests the pre-processor to store data to the cache

[0124] (C) Cache Read Request: the cache requests the pre-processor to load data from the memory

[0125] (D) Cache Write Request: the cache requests the pre-processor to store data to the memory

[0126] (D) means “Eviction” of the data from the cache. The configuration in the system below is capable of the main functions.<Configuration>

[0127] FIG. 5 shows one example of a circuit system. The circuit system S2 includes a CPU 20, a cache system 30 and a memory 40. The CPU 20 is one example of the data requester R1 and the memory 40 is one example of the data provider P1. The cache system 30 includes a preprocessor 32 and a cache 34. The pre-processor 32 is a hardware device for the cache 34 and one example of the unit 12.

[0128] The CPU 20 and the pre-processor 32 are connected by an interconnect bus B1. The pre-processor 32 and the memory 40 are connected by an interconnect bus B2. Further, the pre-processor 32 and the cache 34 are connected by an internal connect bus B3.

[0129] FIG. 6 shows input and output to the pre-processor 32. The preprocessor 32 includes CPU-side Input / Output (I / O), memory-side I / O and cache-side I / O. The CPU-side I / O is connected to the interconnect bus B1, the memory-side I / O is connected to the interconnect bus B2 and the cache-side I / O is connected to the internal connect bus B3.

[0130] The CPU-side I / O receives a CPU Read Address (CPU-RD-Addr.), a CPU Write Address (CPU-WR-Addr.) and CPU Write Data (CPU-WR-Data) from the CPU 20. The CPU-side I / O sends CPU Read Data (CPU-RD-Data) to the CPU 20. Further, as an option, the CPU-side I / O may send a CPU Write Response (CPU-WR-Resp.) to the CPU 20.

[0131] The memory-side I / O sends a memory Read Address (MEM-RD-Addr.), a memory Write Address (MEM-WR-Addr.) and memory Write Data (MEM-WR-Data) to the memory 40. The memory-side I / O receives memory Read Data (MEM-RD-Data) from the memory 40. Further, as an option, the CPU-side I / O may receive a memory Write Response (MEM-WR-Resp.) from the memory 40.

[0132] The cache-side I / O sends an intra Read Address ($-RD-Addr.), an intra Write Address ($-WR-Addr.) and intra Write Data ($-WR-Data) to the cache 34. Further, the cache-side I / O receives intra Read Data ($-RD-Data), an intra Requested Address ($-QT-Addr.), an intra Evict Address ($-EV-Addr.) and intra Evict Data ($-EV-Data).

[0133] It is noted that miscellaneous signals other than the signals above are omitted in FIG. 6. In addition, each set of address / data signals may have different bit-sizes. The set of address / data signals means a set of Read or Write Address / Data signals. For example, one set of address and data signals may be the “CPU Read Address” and the “CPU Read Data” from the CPU-side I / O. The “CPU Read Address” may have the same or a different bit-size than the “memory Read Address”, and the “CPU Read Data” may have the same or a different bit-size than the “memory Read Data” from the MEM-side I / O.<Assumption>

[0134] Then, assumptions about a requesting system and resource will be discussed. In this example, there are several assumptions as shown below.

[0135] (A1) The interconnect bus B1 and the interconnect bus B2 are used for a “request then sequence of data” type of format for data requests. Specifically, there are 3 assumptions below.

[0136] (1a) For read data requests, the assumption entails having the requester (e.g., CPU 20) send a request (usually in the form of an address). The requestee (e.g., cache 34) will then send a series of data associated with the request back to the requester (or send an error).

[0137] (1b) For write data requests, the assumption entails having the requester send a request (usually in the form of an address). The requester will then send a series of data associated with the request to the requestee. Depending on the bus format, the requestee may then send a response back to the requester noting if the write was successful or not.

[0138] (1c) Any other necessary signals for a given bus interconnect protocol (e.g., bus ID, write mode, read order, etc.) are included as optional signals and can be easily accounted for.

[0139] Further, assumptions about a cache will be discussed. In this example, there are several assumptions as shown below.

[0140] (A2) Receiving the read request from read address' input, the Cache will respond with the associated data if the data is found in the cache using the read data's output. Otherwise, the Cache will request the data using the requested address' output.

[0141] There are some notes regarding (A2) as follows.

[0142] (2a) The Cache will wait until the data is received via write data's input (associated with write address). The Cache will check if the data is associated with the correct address originally requested, and if it is, send the data to read data's output.

[0143] (2b) Note that the Cache may make modifications to the requested address (memory rearrangement) and may convert incoming write data (memory encryption) depending on the type of cache utilized.

[0144] (A3) Receiving a write request from write address's input and data from the write data's input, the Cache will store the data in the cache.

[0145] There are some notes regarding (A3) as follows.

[0146] (3a) In the case of (3), the data may be evicted; specifically, the evicted address and associated data will be outputted via the evict address and evict data outputs respectively.

[0147] (3b) Note again that the Cache may make modifications to the requested address (memory rearrangement) and convert incoming write data (memory encryption) at the time of storing new data, and evicting old data.<Potential Settings>

[0148] Potential settings for the circuit system S2 including the preprocessor 32 between the CPU 20, the cache 34 and the memory 40 are as follows;

[0149] (T1) The interconnect bus B1, the interconnect bus B2 and the internal connect bus B3 (interconnections at the CPU-side, memory-side, and cache-side, respectively) have identical formats.

[0150] (T2) The interconnect bus B1 and the interconnect bus B2 have different formats, but same bit-sizes are used for Read / Write (RD / WR) address and / or data. Here, bit-widths of the cache-side interconnection match values from either the CPU-side or the memory-side interconnection.

[0151] (T3) The interconnect bus B1 and the interconnect bus B2 have different formats, and different bit-sizes are used for RD / WR address and / or data. Here, bit-widths of the cache-side interconnection match values from either the CPU-side or the memory-side interconnection.

[0152] In the cases of (T2) and (T3), the pre-processor 32 converts the format of data flow in the interconnect bus B1 or B2 into the format of data used in the cache 34, or vice versa. This conversion by the preprocessor 32 can be called as data format conversion. Settings (T1) to (T3) can be solved with this disclosure.

[0153] One example setting (T2) is explained below.<Interconnect Bus B1>2a1: bit CPU RD / WR address (e.g., a1=5; 32-bit addressing)

[0155] 2b1: bit CPU RD / WR data (e.g., b1=6; 64-bit data bus-width)

[0156] c1: data-transfers / request (e.g., c1=8; c1*2b1=512-bit data request size)<Interconnect Bus B2>2a2: bit Memory (MEM) RD / WR address (e.g., a 2=6; 64-bit addressing)

[0158] 2b2: bit MEM RD / WR data (e.g., b2=7; 128-bit data bus-width)

[0159] c2: data-transfers / request (e.g., c2=8; c2*2b2=1024-bit data request size)<Interconnect Bus B3>2a1: bit RD address (e.g., a1=5; 32-bit addressing); it matches the CPU-Cache Interconnection RD address.

[0161] 2b1: bit RD data (e.g., b1=6; 64-bit data bus-width); it matches the CPU-Cache Interconnection RD data.

[0162] 2a2: bit Eviction (EV) address (e.g., a 2=6; 64-bit addressing); it matches the Cache-Memory Interconnection MEM address.

[0163] 2a2: bit WR address (e.g., a 2=6; 64-bit addressing); it matches the Cache-Memory Interconnection MEM address.

[0164] 2b2: bit WR data (e.g., b2=7; 128-bit data bus-width); it matches the Cache-Memory Interconnect MEM data.

[0165] 2a2: bit EV address (e.g., a2=6; 64-bit addressing); it matches the Cache-Memory Interconnect MEM address.

[0166] 2b2: bit EV data (e.g., b2=7; 128-bit data bus-width); it matches the Cache-Memory Interconnect MEM data.

[0167] Further, the settings of an internal storage of the pre-processor 32 will be discussed. The settings are made to realize the functions (A) to (D) above. Further, the data format conversion can be realized by the settings of the internal storage. In this example, a set of four buffers each with a position pointer / indicator to mark where to start sending / receiving data is defined as shown below.

[0168] One to store read data to be sent to CPU (CPU-RD-Buf.); the size matches the CPU-RD-Data request size.

[0169] One to receive write data from CPU (CPU-WR-Buf.); the size matches CPU-WR-Data request size.

[0170] One to receive read data from MEM (MEM-RD-Buf.); the size matches the MEM RD data request size.

[0171] One to store write data to send to MEM (MEM-WR-Buf.); the size matches the MEM WR data request size.

[0172] FIG. 7 shows one example of a 512-bit buffer in the pre-processor 32. The buffer includes boxes, whereas each box shows a storage area for a byte (8 bits) of information. The first 8 boxes are used for the 1st data transferred on the 64-bit data bus. The position box immediately following the first 8 box functions as an indicator / pointer used to track current data transfer (e.g., currently at the 2nd data transfer). The box configuration is repeated. Then, the final 8 boxes are used for the 8th data transferred on the 64-bit data bus.<Flow Description>

[0173] Next, referring to the flowcharts in FIGS. 8 to 11, examples of the operation of the pre-processor 32 will be described. The descriptions already explained for each process are omitted.

[0174] FIG. 8 shows one example of processes of (A) CPU Read Request. First, the pre-processor 32 receives an address AD from the CPU 20 via the CPU-RD-Addr. (step S22). Next, the pre-processor 32 sends the address AD to the cache 34 via the $-RD-Addr. (step S24). The preprocessor 32 waits for the cache 34 to send data corresponding to the address AD (step S26).

[0175] The pre-processor 32 receives either data D1 as $-RD-Data from the cache 34 (hit), or a new address BD from the cache 34 via the $-QT-Addr. (miss) (step S28). The pre-processor 32 determines whether the cache hit or the cache miss has occurred (step S30).

[0176] If the cache miss has occurred (No in step S30), the preprocessor 32 performs “Cache Read Request” with the address BD as input (step S32). The details of process of “Cache Read Request” will be explained in FIG. 9. Then, the pre-processor 32 waits for the cache 34 to send data corresponding to “Cache Read Request” (step S34). The pre-processor 32 receives the data D1 as the $-RD-Data from the cache 34 (step S36). The $-RD-Data is associated with the address AD.

[0177] If the cache hit has occurred (Yes in step S30) or after step S36, the pre-processor 32 stores the data D1 in the CPU-RD-Buf. in the preprocessor 32. The pre-processor 32 sets the CPU-RD-Buf.'s position pointer to first bit (0) (step S38).

[0178] The pre-processor 32 sends data D2 (CPU-RD-Data) from the CPU-RD-Buf. to the CPU 20 (step S40). The data D2 is a part of the data D1. The CPU-RD-Buf. storing the data D2 is indexed between (position pointer, position pointer+CPU-RD-Data size). After step S40, the pre-processor 32 updates the position pointer related to step S40 to “position pointer+CPU-RD-Data size” (step S42).

[0179] Then, the pre-processor 32 determines whether the position pointer is at the end (step S44). Specifically, the pre-processor 32 determines whether the number of the position pointer equals the CPU RD data request size.

[0180] If the position pointer is not at the end (No in step S44), the preprocessor 32 performs the processes of steps S40 and S44 again. In the processes, the pre-processor 32 sends data indexed next to the data D2 previously sent. If the position pointer is at the end (Yes in step S44), the pre-processor 32 ends the flow in FIG. 8.

[0181] It should be noted that each of sending and receiving processes may require bundling of additional signals as per a given bus interconnection format. Thus, they will be handled during each of sending and receiving steps. Further, by using the buffer in the preprocessor 32, the pre-processor 32 can change the format of the data D1 received from the cache 34 in step S28 or S36 to the format of the data D2 sent to the CPU 20 in step S40. The use of buffers is as explained above.

[0182] FIG. 9 shows one example of processes of (C) Cache Read Request. In other words, FIG. 9 shows the details of step S32. First, the pre-processor 32 receives the address BD from the Cache 34 via the $-QT-Addr. (step S50). Next, the pre-processor 32 sends the address BD to the memory 40 via a MEM-RD-Addr. (step S52). Further, the preprocessor 32 sets a MEM-RD-Buf.'s position pointer to a first bit (0) (step S54). The pre-processor 32 waits for the memory 40 to send data corresponding to the address BD (step S56).

[0183] The pre-processor 32 receives the data D2 from the memory 40 via the MEM-RD-Data (step S58). The pre-processor 32 stores the data D2 to the MEM-RD-Buf. indexed between (position pointer, position pointer+MEM-RD-Data size) (step S60). After step S60, the preprocessor 32 updates the position pointer related to step S60 to “position pointer+MEM-RD-Data size” (step S62).

[0184] Then, the pre-processor 32 determines whether the position pointer is at the end (step S64). Specifically, the pre-processor 32 determines whether the number of the position pointer equals the MEM RD data request size.

[0185] If the position pointer is not at the end (No in step S64), the preprocessor 32 performs the processes of steps S56 and S64 again. In the processes, the pre-processor 32 receives data indexed next to the data D2 previously received.

[0186] If the position pointer is at the end (Yes in step S64), the preprocessor 32 sends the address BD to the cache 34 via the $-WR-Addr. and sends the data D1 as the MEM-RD-Data / $-WR-Data to the cache 34 (step S66). Then, the pre-processor 32 ends the flow in FIG. 9.

[0187] It should be noted that each of sending and receiving processes may require bundling of additional signals as per a given bus interconnection format. Thus, they will be handled during each of sending and receiving steps. Further, by using the buffer in the preprocessor 32, the pre-processor 32 can change the format of the data D2 received from the memory 40 in step S58 to the format of the data D1 sent to the cache 34 in step S66. The use of buffers is as explained above.

[0188] FIG. 10 shows one example of processes of (B) CPU Write Request. First, the pre-processor 32 receives an address AD from the CPU 20 via the CPU-WR-Addr. (step S70). Next, the pre-processor 32 sets a CPU-WR-Buf.'s position pointer to a first bit (0) (step S72). The pre-processor 32 waits for the CPU 20 to send data corresponding to the address AD (step S74).

[0189] The pre-processor 32 receives data D2 as the CPU-WR-Data from the CPU 20 (step S76). The pre-processor 32 stores the data D2 to the CPU-WR-Buf. indexed between (position pointer, position pointer+CPU-WR-Data size) (step S78). The pre-processor 32 updates the position pointer to “position pointer+CPU-WR-Data size” (step S80).

[0190] Then, the pre-processor 32 determines whether the position pointer is at the end (step S82). Specifically, the pre-processor 32 determines whether the number of the position pointer equals the CPU WR data request size.

[0191] If the position pointer is not at the end (No in step S82), the preprocessor 32 performs the processes of steps S74 and S82 again. In the processes, the pre-processor 32 receives data indexed next to the data D2 previously receives.

[0192] If the position pointer is at the end (Yes in step S82), the preprocessor 32 may sends “properly received” response as the CPU-WR-Resp. to the CPU 20 (step S84). The process of step S84 is optional.

[0193] The pre-processor 32 sends the address AD to the cache 34 via the $-WR-Addr. and send the data D1 as the MEM-RD-Data / $-WR-Data to cache 34 (step S86). Then, the pre-processor 32 ends the flow in FIG. 10.

[0194] It should be noted that there may be cases where errors may occur in the “CPU Write Request” processes. In these cases, the preprocessor 32 may send a “not properly received” response as the CPU-WR-Resp. to the CPU 20. Further, each of sending and receiving processes may require bundling of additional signals as per a given bus interconnection format. Thus, they will be handled during each of sending and receiving steps.

[0195] FIG. 11 shows one example of processes of (D) Cache Write Request (Eviction). First, the pre-processor 32 receives the address AD from the cache 34 via the $-EV-Addr, and receives the data D1 as the $-EV-Data from the cache 34 (step S90). Next, the pre-processor 32 sends the address AD to the memory 40 via the MEM-WR-Addr. (step S92).

[0196] The pre-processor 32 stores the data D1 in the MEM-WR-Buf. and sets the CPU-WR-Buf.'s position pointer to a first bit (0) (step S94). The pre-processor 32 sends the data D2 as the MEM-WR-Data from the MEM-WR-Buf. to the memory 40 (step S96). The MEM-WR-Buf. is indexed between (position pointer, position pointer+MEM-WR-Data size). After step S96, the pre-processor 32 updates the position pointer related to step S94 to “position pointer+MEM-WR-Data size” (step S98).

[0197] Then, the pre-processor 32 determines whether the position pointer is at the end (step S100). Specifically, the pre-processor 32 determines whether the number of the position pointer equals the CPU RD data request size.

[0198] If the position pointer is not at the end (No in step S100), the pre-processor 32 performs the processes of steps S96 and S100 again. In the processes, the pre-processor 32 sends data indexed next to the data D2 previously sent.

[0199] If the position pointer is at the end (Yes in step S100), the preprocessor 32 may wait for the memory 40 to send a response (step S102). Eventually, the pre-processor 32 receives a “properly received” response as the MEM-WR-Resp. from the memory 40 (step S104). Then the pre-processor 32 ends the flow in FIG. 11. The processes of steps S102 and S104 are optional.

[0200] It should be noted that there may be cases where the memory 40 sends a “not properly received” response as the MEM-WR-Resp. In these cases, the pre-processor 32 may error out. Further, each of sending and receiving processes may require bundling of additional signals as per a given bus interconnection format. Thus, they will be handled during each of sending and receiving steps.Extension #1

[0201] The extension of this disclosure to handling multiple CPU read requests will be described. In other words, while one CPU Read Request is still ongoing, this variation enables the pre-processor 32 to handle another CPU Read Requests. The circuit system S2 above can handle one CPU read request at a time. If the cache system 30 does not have the read request's data, it needs to request the data from the memory 40. This causes the cache 34 to wait and extends the time it takes for the CPU's request to be fulfilled. In addition, some specialized caches (like those related to authenticating and encrypting memory) can take longer because of their specialized operations.

[0202] However, during one of these CPU read requests, there may be multiple additional CPU read requests that could be requested. A specialized cache could be equipped to handle multiple requests and proper memory ordering, but it can be more efficient to let a preprocessor handle this as well.

[0203] For the circuit system S2 above to handle multiple CPU read requests and maintain proper memory ordering, it can be extended to include a registration table for CPU read requests replacing the CPU-RD-Buf. The registration table is included in the pre-processor 32.

[0204] In addition, it should be noted that, theoretically, the other read buffer (MEM-RD-Buf.) can be replaced by the registration table if a main memory (e.g., the memory 40) takes a long time to process its requests. The example of the processes will be explained later. However, in most cases, since the CPU is the main request issuer, just replacing the CPU-RD buffer yields the most gains and efficiency for additional cost.

[0205] Further, the settings of an internal storage of the pre-processor 32 will be discussed. Here, the configuration peculiar to the Extension #1 will be described in particular, and explanation as appropriate for the same points as in the settings of the buffer above will be omitted.

[0206] In this example, a set of three buffers each with a position pointer / indicator to mark where to start sending / receiving data is defined as shown below.

[0207] One to receive write data from CPU (CPU-WR-Buf.); the size matches CPU WR data request size.

[0208] One to receive read data from MEM (MEM-RD-Buf.); the size matches MEM RD data request size.

[0209] One to store write data to send to MEM (MEM-WR-Buf.) the size matches MEM WR data request size.

[0210] FIG. 12 shows one example of a CPU-RD registration table. The CPU-RD-Buf. above is replaced with the table. The registration table in FIG. 12 is in the form of a circular queue; however, it is not limited to this. Each row of the table includes a set of an index, a “Ready?” flag indicating whether the data related to the flag is ready to be sent (i.e. back to the CPU 20), an address and data associated with the address. The row means an entry of the data and each entry of the data is a partial data. All the entry of the data comprises the entire data. The position indicator / pointer is used to track current data transfer (e.g., currently at a 1st data transfer). In addition, the index of the “Send request pointer” represents the index number of the table that is subject to sending a request, and the index of the “New request pointer” represents the index number of location where the next request should be registered. These pointers can be represented by the “index” number of the table, and actually increment (i.e., new pointer location index=current location index+1) each time a request is sent, or a new request is registered respectively. If any of these 2 pointers reach MAX-1 and need to increment, they loop back to index 0. For example, in FIG. 12, “Send request pointer” is 0, and “New request pointer” is 2. The “Send request pointer” points to the index of the oldest request that will be sent if the “Ready?” flag is “yes”, and the “New request pointer” points to the index of the table where a new CPU RD data request can be registered. The index with the smallest number (e.g., 0) is subject to sending request. A higher value of the index indicates a more recent request. The order of decreasing value of the index is subject to the processing of sending request. Further, if the table is full (in other words, if data is stored up to the maximum storage value N of the table), the pre-processor 32 sets an empty flag “yes”. Otherwise, the pre-processor 32 sets a table empty flag “no”.

[0211] In addition, additional explanation of composition of the table is as follows. Among 3 pointers / indicators, the “Send request pointer” is used to select which row to send, the “New request pointer” is used to select which row can be filled, and the position pointer indicating a current position is used to mark where to start sending / receiving data. An indexed table of values with each row containing data-is-ready-to-send flag (ready-flag), an address and the data associated with that address.<Flow Description>

[0212] Next, referring to the flowcharts in FIGS. 13 to 17, examples of the operation of the pre-processor 32 of Extension #1 will be described. The descriptions already explained for each process are omitted.

[0213] FIG. 13 shows one example of processes of a modified CPU Read Request. Specifically, FIG. 13 shows the processes of registration and data storing. First, the pre-processor 32 receives an address AD from the CPU 20 via the CPU-RD-Addr. (step S110). step S110 is the same as step S22 in FIG. 8. Next, the pre-processor 32 registers an address AD into a CPU-RD registration table (step S112).

[0214] Then, the pre-processor 32 performs the processes of steps S114 to S120. Steps S114 to S120 are the same as steps S24 to S30 in FIG. 8. If the cache miss has occurred (No in step S120), the pre-processor 32 performs the processes of steps S122 to S126. Steps S122 to S126 are the same as steps S32 to S36 in FIG. 8.

[0215] If the cache hit has occurred (Yes in step S120) or after step S126, the pre-processor 32 stores the data D1 into the CPU-RD registration table with the associated address AD (step S128). Then, the pre-processor 32 ends the flow in FIG. 13.

[0216] As shown above, the processes of steps S112 and S128 are related to “CPU Read Request”.

[0217] FIG. 14 shows one example of processes of the modified CPU Read Request. Specifically, FIG. 14 shows the processes of data sending. First, the pre-processor 32 determines which the data D1 to send to the CPU 20 by selecting row with an index I (step S130). Next, the pre-processor 32 sets the CPU-RD registration table's position pointer to a first bit (0) (step S132).

[0218] Then. the pre-processor 32 sends the CPU 20 the data D2 as the CPU-RD-Data from the CPU-RD registration table indexed at row I (step S134). The data D2 is indexed between (position pointer, position pointer+CPU-RD-Data size). The pre-processor 32 performs the processes of steps S136 to S138. Steps S136 to S138 are the same as steps S42 to S44 in FIG. 8.

[0219] If the position pointer is not at the end (No in step S138), the pre-processor 32 performs the processes of steps S134 and S136 again. If the position pointer is at the end (Yes in step S138), the preprocessor 32 ends the flow in FIG. 14.

[0220] Here, since multiple CPU read requests can arrive, the flow-chart is split in FIGS. 13 and 14 unlike FIG. 8. Further, it should be noted that each of sending and receiving processes may require bundling of additional signals as per a given bus interconnection format. Thus, they will be handled during each of sending and receiving steps. Further, by using the buffer in the pre-processor 32, the pre-processor 32 can change the format of the data D1 received from the cache 34 in step S118 or S126 to the format of the data D2 sent to the CPU 20 in step S134.

[0221] FIG. 15 shows one example of processes of registering address for CPU Read. In other words, FIG. 15 shows the detailed processes of “step S112” of FIG. 13. First, the pre-processor 32 receives an address AD (step S140). Next, the pre-processor 32 determines whether the CPU-RD registration table is full (step S142). Specifically, the pre-processor 32 determines whether a send req. index==a new req. index & table empty flag is “no”.

[0222] If the CPU-RD registration table is full (Yes in step S142), the pre-processor 32 waits until the table is not full (step S144), and performs the process of step S142 again.

[0223] If the CPU-RD registration table is not full (No in step S142), the pre-processor 32 further determines whether the address AD matches any one address in the table (step S146).

[0224] If the address AD matches any one address (Yes in step S146), the pre-processor 32 waits until the address AD does not match any one address in the table (step S148), and performs the process of step S146 again.

[0225] If the address AD does not match any one address (No in step S146), the pre-processor 32 stores the address AD in an address-field in the table at a new req. index, and sets the associated ready-flag to “no” (step S150). After that, the pre-processor 32 moves a new req. indicator to a next index (i.e., increment; wrap-around to 0 if X−1), and sets the table empty flag to “no” (step S152). The pre-processor 32 ends the flow in FIG. 15.

[0226] FIG. 16 shows one example of processes of storing data for the CPU Read. In other words, FIG. 16 shows the detailed processes of “step S128” of FIG. 13. First, the pre-processor 32 receives the data D1 with the associated address AD (step S160). Next, the pre-processor 32 stores the data D1 in a data-field in the table associated with the address AD, and sets the associated ready-flag to “yes” (step S162). The pre-processor 32 ends the flow in FIG. 16.

[0227] FIG. 17 shows one example of processes of selecting data for the CPU Read. In other words, FIG. 17 shows the detailed processes of “step S130” of FIG. 14. First, the pre-processor 32 determines whether the ready-flag associated with the send req. index is “yes” (step S170). If the ready-flag is “no” (No in step S170),

[0228] If the ready-flag is “no” (No in step S170), the pre-processor 32 waits until the ready-flag of the row of the “Send request pointer” is “yes” (step S172), and performs the process of step S170 again.

[0229] If the ready-flag is “yes” (Yes in step S170), the pre-processor 32 selects the index I at the send req. index to send data (and may send an associated address) to the CPU 20 (step S174). Then, the preprocessor 32 moves the send req. indicator to the next index (i.e., increment; wrap-around to 0 if X−1) (step S176).

[0230] The pre-processor 32 determines whether the send req. index==the new req. index (step S178). In other words, the pre-processor 32 determines whether the table is empty.

[0231] If the table is empty (Yes in step S178), the pre-processor 32 sets the table empty flag to “yes” (step S180). If the table is not empty (No in step S178) or after step S180, the pre-processor 32 outputs the index I (step S182). The pre-processor 32 ends the flow in FIG. 17. The index I determined in step S182 indicates the index of the data to be selected in step S130. The pre-processor 32 uses the index I to select the data D2 and send it to the CPU 20 in step S134.Extension #2

[0232] As a variation related to the Extension #1, an Extension #2 will be described. First, a variation of the settings of an internal storage of the pre-processor 32 will be discussed. Here, the configuration peculiar to the Supplement will be described in particular, and explanation as appropriate for the same points as in the settings of the buffer above will be omitted.

[0233] In this example, a set of two buffers each with a position pointer / indicator to mark where to start sending / receiving data is defined as shown below.

[0234] One to receive write data from CPU (CPU-WR-Buf.) the size matches CPU WR data request size.

[0235] One to store write data to send to MEM (MEM-WR-Buf.) the size matches MEM WR data request size.

[0236] FIG. 18 shows one example of a MEM-RD registration table. The CPU-RD-Buf. is replaced with the previously mentioned registration table shown in FIG. 12. Further, the MEM-RD-Buf. is replaced with the new registration table shown in FIG. 18. Each row of the table in FIG. 18 includes a set of two flags: “In Use?” and “Ready?”, an address, data associated with the address and a position pointer. “In Use?” flag shows if the corresponding row (entry) is currently being used or not; and “Ready?” flag shows if the corresponding data can be sent to the cache 34 or not. The position pointer is used to mark where to receive and store the data. Other explanations for the table in FIG. 18 are the same as for the one in FIG. 12.<Flow Description>

[0237] Next, referring to the flowcharts in FIGS. 19 to 23, examples of the operation of the pre-processor 32 of the Supplement of Extension #1 will be described. The descriptions already explained for each process are omitted.

[0238] FIG. 19 shows one example of processes of a modified Cache Read Request. In addition to the “Modified CPU Read Request” in FIGS. 13 and 14, “Cache Read Request” can be modified as follows. Specifically, FIG. 19 shows the processes of registration and data requesting.

[0239] First, the pre-processor 32 receives an address BD from the cache 34 via the $-QT-Addr. (step S190). Next, the pre-processor 32 registers the address BD into a MEM-RD registration table (step S192). This step is related to registering address (Cache Read).

[0240] The pre-processor 32 sends the address BD to the memory 40 via the MEM-RD-Addr. (step S194). After that, the pre-processor 32 receives and stores data D1 (as the MEM-RD-Data) associated with the address BD from the memory 40 into the MEM-RD registration table. (step S196). The pre-processor 32 is related to receiving and storing data (Cache Read). The pre-processor 32 ends the flow in FIG. 19.

[0241] FIG. 20 shows one example of processes of the modified Cache Read Request. Specifically, FIG. 20 shows the processes of data sending. First, the pre-processor 32 determines which the data D1 associated with the address BD to send to the cache 34 by selecting the row with index I (step S200). Next, the pre-processor 32 sends the address BD to the cache 34 via the $-WR-Addr. and sends the data D1 from the MEM-RD-Data / $-WR-Data to the cache 34 (step S202).

[0242] Here, since multiple CPU read requests can be issued requests before data arrives, the flow-chart is split in FIGS. 19 and 20. Further, it should be noted that each of sending and receiving processes may require bundling of additional signals as per a given bus interconnection format. Thus, they will be handled during each of sending and receiving steps. Further, by using the buffer in the preprocessor 32, the pre-processor 32 can change the format of the data D1 received from the memory 40 in step S196 to the format of the data D1 sent to the cache 34 in step S202.

[0243] FIG. 21 shows one example of processes of registering address for Cache Read. In other words, FIG. 21 shows the detailed processes of “step S192” of FIG. 19. First, the pre-processor 32 receives an address BD (step S210). Next, the pre-processor 32 determines whether the MEM-RD registration table is full (step S212). Specifically, the preprocessor 32 determines whether all the “in use?” flags are “yes”.

[0244] If the MEM-RD registration table is full (Yes in step S212), the pre-processor 32 waits until the table is not full (step S214), and performs the process of step S212 again.

[0245] If the CPU-RD registration table is not full (No in step S212), the pre-processor 32 further determines the address BD matches any one address in the table (step S216).

[0246] If the address BD matches any one address (Yes in step S216), the pre-processor 32 waits until the address BD does not match any one address in the table (step S218), and performs the process of step S216 again.

[0247] If the address BD does not match any one address (No in step S216), the pre-processor 32 selects an index I where the “in use?” flag is “no” (step S220). Then, the pre-processor 32 stores the address BD in the address-field in the table at the index I, and sets associated the “in use?” flag to “yes”, the associated “ready?” flag to “no”, and the associated position pointer to 0 (step S222). The pre-processor 32 ends the flow in FIG. 21.

[0248] FIG. 22 shows one example of processes of a receiving and storing data for the Cache Read. In other words, FIG. 22 shows the detailed processes of “step S196” of FIG. 19. First, the pre-processor 32 waits for the memory 40 to send data (step S230). Next, the preprocessor 32 receives data D2 associated with the address BD from the memory 40 via the EM-RD-Data (step S232). Then, the pre-processor 32 stores the data D2 to a data field, in the MEM-RD registration table, associated with the address BD indexed between (position pointer, position pointer+MEM-RD-Data size) (step S234). After that, the preprocessor 32 updates the associated position pointer to “position pointer+MEM-RD-Data size” (step S236).

[0249] The pre-processor 32 determines whether the position pointer is at the end (step S238). Specifically, the pre-processor 32 determines whether the number of the position pointer equals the MEM RD data request size.

[0250] If the position pointer is not at the end (No in step S238), the pre-processor 32 performs the processes of steps S230 and S238 again. In the processes, the pre-processor 32 receives and stores data next to the data D2 previously stored. If the position pointer is at the end (Yes in step S238), the pre-processor 32 sets the associated “ready?” flag to “yes” (step S240) and ends the flow in FIG. 22.

[0251] FIG. 23 shows one example of processes of a selecting data for the Cache Read. In other words, FIG. 23 shows the detailed processes of “step S200” of FIG. 20. First, the pre-processor 32 selects the index I in the MEM-RD registration table where the associated “in use” flag and “ready” flag are both “yes”. (step S250). Next, the pre-processor 32 sets the “in use” flag to “no” (step S252). The pre-processor 32 may output the index I. Then, the pre-processor 32 ends the flow in FIG. 23. The index I indicates the index of the data to be sent back to the cache 34. The pre-processor 32 uses the index I to select the data D1 and send it to the cache 34 in step S202.

[0252] It should be noted that each of sending and receiving processes may require bundling of additional signals as per a given bus interconnection format. Thus, they will be handled during each of sending and receiving steps.<Use Cases>

[0253] One of the use-case of this disclosure is allowing more customizability regarding positioning a general or specialized cache off-chip. Assuming a standardized bus that a processor die / chip expects, this disclosure also allows a connection to main memory via a custom bus which could be more efficient. Another effect of this disclosure, useful for specialized cache research, is allowing specialized caches to rearrange memory locations and encrypt / decrypt the data within with an additional signal provided by the cache.Concrete Example

[0254] Assume a computer and memory which expects different bus-types to be used (e.g., computer uses a non-standard bus type, and memory expects, for example, AXI-4 under a specific configuration). In addition, assume a cache which has the configuration of addresses and data that both the computer and memory can send / receive from. This disclosure would allow all three to communicate without any issue. In addition, if the cache / memory happens to take a lot of time, for example to rearrange memory addresses or encrypt / decrypt data, then this disclosure can deal with multiple inputs from the computer in quick sequential fashion.<Program Execution >

[0255] FIG. 24 is a drawing illustrating one example of the hardware configuration of a computer system applicable to the caching apparatus 10. The computer system S3 includes a processor 92, a primary storage 94 and a secondary storage 96. The processor 92 is a part of the unit 12. The processor 92 executes a program (program instructions) stored in the primary storage 94 to execute the program to realize the functions and processes of the unit 12. The primary storage 94 temporarily stores the program executed by the processor 92 so that the processor 92 can process it. Examples of the primary storage are the same as the examples of the data provider P1. Further, there may be the secondary storage 96 for storing the program therein for a long term. If the program is in use, the program is transmitted from the secondary storage 96 to the primary storage 94.

[0256] Further, the program stored in the primary storage 94 and / or the secondary storage 96 includes program instructions (program modules) for executing processing of the processor 92. The program may include instructions (or software codes) that, after it is loaded into a computer, cause the computer to perform one or more of the functions described in the example embodiments.

[0257] The program may be stored in a non-transitory computer readable medium or a tangible storage medium. By way of example, and not limitation, non-transitory computer readable media or tangible storage media can include a RAM, a ROM, a flash memory, a SSD or other memory technologies, compact disk-read only memory (CD-ROM), compact disk-read / write (CD-R / W), digital versatile disk (DVD), Blu-ray disc ((R): Registered trademark) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. The program may be transmitted on a transitory computer readable medium or a communication medium. By way of example, and not limitation, transitory computer readable media or communication media can include electrical, optical, acoustical, or other form of propagated signals.

[0258] Instead of the program to be used by the unit 12, the program to be used by the pre-processor 32 can be realized in a similar way above.

[0259] The whole or part of the example embodiments disclosed above can be described as, but not limited to, the following supplementary notes.Supplementary Note 1

[0260] A caching apparatus comprising:

[0261] at least one unit connecting a data requester and a data provider; and

[0262] at least one cache connected to the at least one unit;

[0263] wherein the at least one unit is configured to execute:

[0264] receiving a read request or a write request from the data requester or the at least one cache; and

[0265] performing at least two of the following processes;

[0266] transmit data from the at least one cache to the data requester if receiving the read request from the data requester;

[0267] transmit data from the data requester to the at least one cache if receiving the write request from the data requester;

[0268] transmit data from the data provider to the at least one cache if receiving the read request from the at least one cache; or

[0269] transmit data from the at least one cache to the data provider if receiving the write request from the at least one cache.Supplementary Note 2

[0270] The caching apparatus according to Supplementary Note 1, wherein

[0271] the at least one unit uses at least one buffer to convert the data in a first data format used by the caching apparatus into a second data format used by the data requester and transmit the data from the at least one cache to the data requester, the first data format and the second data format being different.Supplementary Note 3

[0272] The caching apparatus according to Supplementary Note 1 or 2, wherein

[0273] the at least one unit uses at least one buffer to convert the data in a third data format used by the data requester into a fourth data format used by the caching apparatus and transmit the data from the data requester to the at least one cache, the third data format and the fourth data format being different.Supplementary Note 4

[0274] The caching apparatus according to any one of Supplementary Notes 1 to 3, wherein

[0275] the at least one unit uses at least one buffer to convert the data in a fifth data format used by the data provider into a sixth data format used by the caching apparatus and transmit the data from the data provider to the at least one cache, the fifth data format and the sixth data format being different.Supplementary Note 5

[0276] The caching apparatus according to any one of Supplementary Notes 1 to 4, wherein

[0277] the at least one unit uses at least one buffer to convert the data in a seventh data format used by the caching apparatus into an eighth data format used by the data provider and transmit the data from the at least one cache to the data provider, the seventh data format and the eighth data format being different.Supplementary Note 6

[0278] The caching apparatus according to any one of Supplementary Notes 1 to 5, wherein

[0279] the at least one unit uses a registration table to store a plurality of partial data comprising the data and send the plurality of partial data stored in the registration table to the data requester, if receiving the read request from the data requester.Supplementary Note 7

[0280] The caching apparatus according to any one of Supplementary Notes 1 to 6, wherein

[0281] the at least one unit uses a registration table to store a plurality of partial data comprising the data and send the plurality of partial data stored in the registration table to the at least one cache, if receiving the read request from the at least one cache.Supplementary Note 8

[0282] A system comprising:

[0283] a data requester;

[0284] a data provider; and

[0285] a caching apparatus;

[0286] wherein the caching apparatus includes:

[0287] at least one unit connecting a data requester and a data provider; and

[0288] at least one cache connected to the at least one unit;

[0289] wherein the at least one unit is configured to execute:

[0290] receiving a read request or a write request from the data requester or the at least one cache; and

[0291] performing at least two of the following processes;

[0292] transmit data from the at least one cache to the data requester if receiving the read request from the data requester;

[0293] transmit data from the data requester to the at least one cache if receiving the write request from the data requester;

[0294] transmit data from the data provider to the at least one cache if receiving the read request from the at least one cache; or

[0295] transmit data from the at least one cache to the data provider if receiving the write request from the at least one cache.Supplementary Note 9

[0296] A caching method performed by a computer, the caching method comprising:

[0297] performing at least two of the following processes;

[0298] transmit data from at least one cache to a data requester if receiving a read request from the data requester;

[0299] transmit data from the data requester to the at least one cache if receiving a write request from the data requester;

[0300] transmit data from a data provider to the at least one cache if receiving a read request from the at least one cache; or

[0301] transmit data from the at least one cache to the data provider if receiving a write request from the at least one cache;

[0302] wherein the computer connects the data requester, the data provider and the at least one cache.Supplementary Note 10

[0303] A program that causes a computer to execute:

[0304] performing at least two of the following processes;

[0305] transmit data from at least one cache to a data requester if receiving a read request from the data requester;

[0306] transmit data from the data requester to the at least one cache if receiving a write request from the data requester;

[0307] transmit data from a data provider to the at least one cache if receiving a read request from the at least one cache; or

[0308] transmit data from the at least one cache to the data provider if receiving a write request from the at least one cache;

[0309] wherein the computer connects the data requester, the data provider and the at least one cache.

[0310] Some or all of elements (e.g., structures and functions) specified in Supplementary Notes 2 to 7 dependent on Supplementary Note 1 may also be dependent on Supplementary Note 8 in dependency similar to that of Supplementary Notes 2 to 7 on Supplementary Note 1. Similarly, some or all of elements specified in Supplementary Notes 2 to 7 dependent on Supplementary Note 1 may also be dependent on Supplementary Note 9 or 10 in dependency similar to that of Supplementary Notes 2 to 7 on Supplementary Note 1. Some or all of elements specified in any of Supplementary Notes may be applied to various types of hardware, software, and recording means for recording software, systems, and methods.

[0311] While each example embodiment of the present disclosure has been described, it is to be noted that it is possible to modify or adjust the example embodiments or examples within the whole disclosure of the present disclosure (including the Claims) and based on the basic technical concept thereof. Further, it is possible to variously combine or select (or at least partially remove) a wide variety of the disclosed elements (including the individual elements of the individual claims, the individual elements of the individual example embodiments or examples, and the individual elements of the individual figures) within the scope of the whole disclosure of the present disclosure. That is, it is self-explanatory that the present disclosure includes any types of variations and modifications to be done by a skilled person according to the whole disclosure including the Claims and the technical concept of the present disclosure. Particularly, any numerical ranges disclosed herein should be interpreted that any intermediate values or subranges falling within the disclosed ranges are also concretely disclosed even without specific recital thereof. Each example embodiment can be appropriately combined with at least one of example embodiments.

Claims

1. A caching apparatus comprising:at least one first processor connecting a second processor and a memory; andat least one cache connected to the at least one first processor;wherein the at least one first processor is configured to execute:receiving a read request or a write request from the second processor or the at least one cache; andperforming at least two of the following processes;transmit data from the at least one cache to the second processor if receiving the read request from the second processor;transmit data from the second processor to the at least one cache if receiving the write request from the second processor;transmit data from the memory to the at least one cache if receiving the read request from the at least one cache; ortransmit data from the at least one cache to the memory if receiving the write request from the at least one cache.

2. The caching apparatus according to claim 1, whereinthe at least one first processor executes the instruction, and thereby further uses at least one buffer to convert the data in a first data format used by the caching apparatus into a second data format used by the second processor and transmit the data from the at least one cache to the second processor, the first data format and the second data format being different.

3. The caching apparatus according to claim 1, whereinthe at least one first processor executes the instruction, and thereby further uses at least one buffer to convert the data in a third data format used by the second processor into a fourth data format used by the caching apparatus and transmit the data from the second processor to the at least one cache, the third data format and the fourth data format being different.

4. The caching apparatus according to claim 1, whereinthe at least one first processor executes the instruction, and thereby further uses at least one buffer to convert the data in a fifth data format used by the memory into a sixth data format used by the caching apparatus and transmit the data from the memory to the at least one cache, the fifth data format and the sixth data format being different.

5. The caching apparatus according to claim 1, whereinthe at least one first processor executes the instruction, and thereby further uses at least one buffer to convert the data in a seventh data format used by the caching apparatus into an eighth data format used by the memory and transmit the data from the at least one cache to the memory, the seventh data format and the eighth data format being different.

6. The caching apparatus according to claim 1, whereinthe at least one first processor executes the instruction, and thereby further uses a registration table to store a plurality of partial data comprising the data and send the plurality of partial data stored in the registration table to the second processor, if receiving the read request from the second processor.

7. The caching apparatus according to claim 1, whereinthe at least one first processor executes the instruction, and thereby further uses a registration table to store a plurality of partial data comprising the data and send the plurality of partial data stored in the registration table to the at least one cache, if receiving the read request from the at least one cache.

8. A caching method performed by a computer, the caching method comprising:performing at least two of the following processes;transmit data from at least one cache to a processor if receiving a read request from the processor;transmit data from the processor to the at least one cache if receiving a write request from the processor;transmit data from a memory to the at least one cache if receiving a read request from the at least one cache; ortransmit data from the at least one cache to the memory if receiving a write request from the at least one cache;wherein the computer connects the processor, the memory and the at least one cache.

9. A non-transitory computer readable medium storing a program that causes a computer to execute:performing at least two of the following processes;transmit data from at least one cache to a processor if receiving a read request from the processor;transmit data from the processor to the at least one cache if receiving a write request from the processor;transmit data from a memory to the at least one cache if receiving a read request from the at least one cache; ortransmit data from the at least one cache to the memory if receiving a write request from the at least one cache;wherein the computer connects the processor, the memory and the at least one cache.