Processor

By allowing cores to directly signal request validity to the second cache without arbitration, the latency issue in cache miss scenarios is mitigated, enhancing processing efficiency in multi-core processors.

JP2024126096AInactive Publication Date: 2024-09-20FUJITSU LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2023034263
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-07
Publication Date
2024-09-20
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In existing processor systems, cache hits lead to unnecessary occupation of the lower-order bus due to arbitration before determining a cache miss, resulting in increased latency when issuing requests to the lower cache.

Method used

The processor includes multiple cores with first and second caches, an arbitration unit, and a mechanism for cores to output confirmation signals indicating request validity directly to the second cache without passing through the arbitration unit, allowing early processing of valid requests.

Benefits of technology

This approach reduces the latency in transferring requests to the lower cache by enabling early processing of valid requests, thereby improving processing performance in multi-core processors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024126096000001
    Figure 2024126096000001
Patent Text Reader

Abstract

To provide a processor capable of reducing latency until a request reaches a low hierarchy cache when issuing a request to the lower hierarchy cache after the cash failure establishment of an upper hierarchy cache.SOLUTION: A processor has multiple cores each of which includes a first cache, a second cache to process a request output from the cores when the first cache commits a cache failure, and an arbitration part which reconciles the request output from each of the multiple cores and outputs them sequentially to the second cache. Each of the multiple cores outputs established information indicating whether or not the output request is valid to the second cache not via the arbitration part after it outputs the request to the arbitration part. The second cache starts the process of the received request when the established information corresponding to the received request indicates valid.SELECTED DRAWING: Figure 4
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a processor. [Background technology]

[0002] A processor such as a CPU (Central Processing Unit) has a cache memory that holds a part of data stored in a main memory. When the cache memory holds target data for a memory access request issued from a core of the processor (cache hit), the cache memory outputs the data held in the cache memory to the core without issuing an access request to the main memory. This improves data access efficiency and improves the processing performance of the processor (see, for example, Patent Document 1).

[0003] A hierarchical bus system is known that has a higher-level bus connected to multiple CPUs, a lower-level bus connected to a main memory, and a bus bridge that is disposed between the higher-level bus and the lower-level bus and has a cache. In this type of hierarchical bus system, when the bus bridge receives a transaction from the higher-level bus, it starts arbitration for the lower-level bus before completing snooping of the cache (for example, see Patent Document 2). [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2011-076159 A [Patent Document 2] Japanese Patent Application Publication No. 9-128325 Summary of the Invention [Problem to be solved by the invention]

[0005] However, if a cache hit is confirmed by a cache snoop, the arbitration of the lower bus becomes useless, and the lower bus is unnecessarily occupied by the arbitration. In order to prevent the unnecessary occupation of the lower bus, it is necessary to wait for the issuance of a transaction to the lower bus until a cache miss is confirmed by a snoop. When a request is issued to a lower cache after a cache miss is confirmed, no method has been proposed to reduce the latency until the request reaches the lower cache.

[0006] In one aspect, the present invention aims to reduce the latency until a request reaches a lower-level cache when the request is issued to the lower-level cache after a cache miss in the higher-level cache is confirmed. [Means for solving the problem]

[0007] According to one aspect, a processor has a plurality of cores, each including a first cache, a second cache that processes requests output from the cores when a cache miss occurs in the first cache, and an arbitration unit that arbitrates the requests output from the plurality of cores and outputs them sequentially to the second cache, wherein each of the plurality of cores outputs the request to the arbitration unit, and then outputs confirmation information indicating whether the output request is valid to the second cache without going through the arbitration unit, and the second cache starts processing the received request if the confirmation information corresponding to the received request indicates valid. Effect of the Invention

[0008] When a request is issued to a lower cache after a cache miss in a higher cache is confirmed, the latency until the request reaches the lower cache can be reduced. [Brief description of the drawings]

[0009] [Figure 1]2 is a block diagram showing an example of a core and an L2 cache in another processor related to the processor described in the embodiment. FIG. [Diagram 2] FIG. 13 is a block diagram illustrating an example of a core, an arbiter, and an L2 cache in yet another processor. [Diagram 3] 3 is a timing diagram showing an example of a transfer of a request from a core to an L2 cache in the circuit configuration of FIG. 2. [Figure 4] FIG. 2 is a block diagram illustrating an example of a processor in one embodiment. [Diagram 5] FIG. 5 is a block diagram illustrating an example of an L1 cache of FIG. [Figure 6] 5 is a block diagram illustrating an example of an arbitration unit and an L2 cache of FIG. 4. [Figure 7] 7 is an explanatory diagram showing an example of signals transmitted and received for resource management among the cores, the arbitration unit, the control unit, and the ports in FIG. 6; [Figure 8] 7 is an explanatory diagram showing an overview of signals transmitted and received between the core C00 and the port MIP00 in FIG. 6. [Figure 9] 7 is a timing diagram showing an example of transfer of a pre-request and a valid signal from a core to an L2 cache in the circuit configuration of FIG. 6. [Figure 10] 7 is an explanatory diagram showing an example of the configuration and operation of a FIFO register provided in a receiver of a valid signal of each port in FIG. 6; [Figure 11] FIG. 11 is an explanatory diagram showing a continuation of the operation of FIG. 10. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, embodiments will be described with reference to the drawings. In the following, the same reference numerals as the names of the signals are used for the signal lines through which the signals are transmitted.

[0011] First, an example of another processor related to the processor described in the embodiment will be described with reference to Figures 1 to 3. Note that the processors shown in Figures 1 to 3 are not publicly known.

[0012] Fig. 1 shows an example of another processor related to the processor described in the embodiment. The processor 102 shown in Fig. 1 has multiple cores C00-C11 and an L2 cache 602 directly connected to each of the cores C00-C11. The L2 cache 602 has ports MIP00-MIP11 corresponding to the cores C00-C11, respectively, and an arbitration unit 610. Hereinafter, when the cores C00-C11 are described without distinction, they are referred to as cores C.

[0013] When each core C determines that a cache miss has occurred and determines that the request is valid based on an abort determination of whether or not to cancel the request, it simultaneously outputs a valid signal VAL, an address signal ADRS, etc. to the port MIP of the L2 cache 600. That is, each core C outputs the valid signal VAL, the address signal ADRS, etc. after determining a cache miss and then performing an abort determination.

[0014] When each core C and the L2 cache 602 are directly connected, the scale of the wiring between each core C and the L2 cache 602 (i.e., the wiring width) becomes larger than in Figures 2 and 6. Note that the processor 102 may have the control unit 504 of Figure 2 between the multiple cores C and the L2 cache 602. In this case, the L2 cache 602 may have the selection unit 620 of Figure 2.

[0015] FIG. 2 shows an example of yet another processor. The same elements as those in FIG. 1 are given the same reference numerals, and detailed description thereof will be omitted. The processor 104 shown in FIG. 2 has a plurality of cores C00-C11, an arbitration unit 400, a control unit 504, and an L2 cache 604. The arbitration unit 400 has four hierarchical arbitration circuits MIX0, two arbitration circuits MIX1, and one arbitration circuit MIX2 that sequentially reduce the number of requests (VAL, ADRS, etc.) received from each of the plurality of cores C. The processor 104 has a configuration similar to that of the processor 100 described in FIG. 6, except that the processor 104 has a control unit 504 and an L2 cache 604 instead of the control unit 500 and the L2 cache 600 in FIG. 6 described later.

[0016] Each core C judges a cache miss like each core C in FIG. 1, and when it judges that the request is valid by the abort judgment, it outputs a valid signal VAL and an address signal ADRS to the port MIP via the arbitration unit 400 and the control unit 504. The control unit 504 has the same function as the control unit 500 in FIG. 6 except that it does not have a function of receiving the valid signal FIN_VAL (CANCEL) described in FIG. 4. The L2 cache 604 has the same function as the L2 cache 600 in FIG. 6 except that the port MIP does not have the FIFO register FREG described in FIG. 10 and FIG. 11.

[0017] Fig. 3 shows an example of a request transfer from core C to the L2 cache 604 in the circuit configuration of Fig. 2. The request transferred from core C to the L2 cache 604 includes a valid signal VAL and an address signal ADRS, etc. As described above, when core C determines a cache miss and determines that the request is valid by an abort determination, it outputs the valid signal VAL and the address signal ADRS, etc. to the arbitration circuit MIX0. That is, after determining a cache miss, core C waits for an abort determination before outputting the valid signal VAL and the address signal ADRS, etc.

[0018] For example, it takes two cycles to transfer a request from core C to arbitration circuit MIX0, between the two arbitration circuits MIX, and from arbitration circuit MIX2 to the L2 cache 600. Also, it takes one cycle to arbitrate requests in each of the arbitration circuits MIX0-MIX2. Therefore, for example, it takes three cycles from when core C outputs a request until the arbitration circuit MIX0 outputs a request.

[0019] Core C issues a request in cycle CYC0 and determines whether it is a cache hit or miss in cycle CYC1. Core C determines whether to abort the request in cycle CYC2, and if there is no abort factor, outputs a valid signal VAL and an address signal ADRS to the arbitration unit 400 in cycle CYC3 (FIG. 3(a)).

[0020] After that, the valid signal VAL and the address signal ADRS are output from the arbitration circuits MIX0-MIX2 every three cycles, and are input to the L2 cache 600 in cycle CYC14 (FIGS. 3(b)-(e)). Then, the L2 cache 604 starts processing the request from cycle CYC15 (FIG. 3(f)).

[0021] As shown in Fig. 3, when a valid signal VAL and an address signal ADRS are output to the arbitration unit 400 after a request is determined to be aborted, the timing at which the L2 cache 604 starts processing the request is delayed by two cycles compared to Fig. 9, which will be described later. That is, the processor 104 can reduce the wiring scale, such as the wiring width and wiring area, by sharing the bus from the core C to the L2 cache 604 using the hierarchical arbitration unit 400, but the request transfer latency increases because the requests are sequentially arbitrated by three arbitration circuits MIX. Here, the request transfer latency includes not only the delay according to the wiring length but also the arbitration cycle of the requests by the three arbitration circuits MIX.

[0022] Fig. 4 shows an example of a processor in one embodiment. The processor 100 shown in Fig. 4 has a plurality of cores 200, an arbitration unit 400, a control unit 500, and an L2 cache 600. Although not limited thereto, an example in which the processor 100 has 12 cores 200 will be described below. The L2 cache 600 is an example of a second cache.

[0023] Each core 200 has an instruction buffer 210, an instruction decoder 220, an arithmetic unit 230, a load store unit 240, and an L1 cache (control unit) 300. In the following, the operation of the control unit of the L1 cache 300 will be described as the operation of the L1 cache 300. Note that the L1 cache 300 and the control unit of the L1 cache 300 may be included in different blocks. The L1 cache (control unit) 300 is an example of a first cache.

[0024] The arithmetic unit 230 has a plurality of arithmetic units 232 and a register file 234. The register file 234 has a plurality of registers (not shown). The instruction buffer 210 holds instructions output from the L1 cache 300 under the control of the load store unit 240, and outputs the held instructions to the instruction decoder 220. The instruction decoder 220 decodes the instructions output from the instruction buffer 210, and outputs the instructions to the arithmetic units 232 corresponding to the decoded instructions.

[0025] A scheduler such as a reservation station may be disposed between the instruction decoder 220 and the arithmetic unit 232. The arithmetic unit 232 executes an operation using data held in a register in the register file 234, and stores the operation result in the register in the register file 234.

[0026] The load store unit 240 has a program counter, an instruction fetch address generator, and an operand address generator, which are not shown. The load store unit 240 controls the transfer of instructions used in an operation from the L1 cache 300 to an instruction buffer. The load store unit 240 controls the transfer of data used in an operation from the L1 cache 300 to the register file 234, and controls the transfer of operation results to the L1 cache 300.

[0027] The L1 cache 300 functions as an instruction cache and a data cache. When the L1 cache 300 holds data (including an instruction) corresponding to an address included in a request, which is a memory access request received from the load store unit 240 (cache hit), the L1 cache 300 outputs the held data to the register file 234. For example, the processor 100 employs a so-called MESI protocol, but other protocols may also be employed. In the MESI protocol, the state of data is classified into any one of a modified state M, an exclusive state E, a shared state S, and an invalid state I for each cache line, which is a unit of data transfer.

[0028] When the L1 cache 300 does not hold data corresponding to the address received from the load store unit 240 (cache miss), it outputs a request to the L2 cache 600. At this time, after the cache miss is determined but before the issuance of the request is determined, the L1 cache 300 outputs a pre-request signal PRE_REQ including a pre-valid signal PRE_VAL and an address signal ADRS to the arbitration unit 400.

[0029] Thereafter, the L1 cache 300 outputs a true valid signal FIN_VAL indicating whether or not the issuance of the request has been confirmed to the control unit 500. The true valid signal FIN_VAL includes a cancel bit CANCEL indicating whether or not the issuance of the request has been confirmed. The pre-request signal PRE_REQ is an example of a request, and the valid signal FIN_VAL is an example of confirmation information. An example of the L1 cache 300 that outputs the pre-request signal PRE_REQ and the valid signal FIN_VAL is shown in FIG. 5.

[0030] For example, the pre-request signal PRE_REQ includes a 64-bit address signal ADRS, an identifier of the core 200, an identifier of the port MIP shown in Fig. 6, and the like, and has a size of about 9 or 10 bytes. In contrast, the valid signal FIN_VAL includes a valid bit, a cancel bit CANCEL, and various control information, and has a size of about 1 byte.

[0031] That is, the width of the wiring for transferring the valid signal FIN_VAL from each core 200 to the L2 cache 600 is smaller than the width of the wiring for transferring the pre-request signal PRE_REQ from each core 200 to the L2 cache 600. Therefore, even when the valid signal FIN_VAL is transferred to the control unit 500 separately from the pre-request signal PRE_REQ that passes through the arbitration unit 400, the signal line for the valid signal FIN_VAL can be routed to the control unit 500 with a minimum increase in the wiring area. In the following, the valid signal FIN_VAL may be used not only to mean a signal including a valid bit and a cancel bit CANCEL, but also to mean a valid bit.

[0032] The arbitration unit 400 arbitrates pre-request signals PRE_REQ from the multiple cores 200, and outputs the pre-request signal PRE_REQ selected by arbitration to the L2 cache 600 via the control unit 500. An example of the arbitration unit 400 receiving the pre-request signal PRE_REQ is shown in FIG. 6. The access to the L2 cache 600 is controlled by the control unit 500, and the L2 cache 600 operates as, for example, a Last Level Cache (LLC). Note that when the processor 100 has an L3 cache below the L2 cache 600 and the L3 cache operates as an LLC, the operation described below may be performed between the L2 cache 600 and the L3 cache.

[0033] The control unit 500 outputs the pre-request signal PRE_REQ received from the arbitration unit 400 to a port MIP (Move In Port: FIG. 6) provided in the L2 cache 600 corresponding to each of the cores 200 that have issued the requests. The control unit 500 outputs the valid signal FIN_VAL received from each of the cores 200 to the port MIP corresponding to the core 200 that has issued the requests. The control unit 500 then controls the transfer of the data signal DT between the L1 cache 300 and the L2 cache 600. The control unit 500 is also connected to a memory controller, an inter-chip interconnect, a communication control unit, and the like (not shown) via an on-chip network mounted on the processor 100, for example. The memory controller controls access to a main memory connected to the processor 100.

[0034] Fig. 5 shows an example of the L1 cache 300 of Fig. 4. The L1 cache 300 has a plurality of ports 310, a pipeline input unit 320, a pipeline control unit 330, a tag array 340, and a data array 360.

[0035] The multiple ports 310 are provided, for example, for each type of request from the load store unit 240. Each port 310 has multiple entries in a first-in first-out (FIFO) format. Each port 310 outputs the requests received from the load store unit 240 to the pipeline input unit 320 in the order in which they were received.

[0036] The pipeline input unit 320 sequentially inputs requests received from the port 310 to the pipeline control unit 330. The pipeline control unit 330 has a pipeline 332 including a plurality of stages that operate for each cycle CYC. For the sake of simplicity, only three cycles CYCn, CYCn+1, and CYCn+2 are shown in FIG.

[0037] The pipeline 332 has a cache hit / miss determination unit 334 that operates in a cycle CYCn, and an abort determination unit 336 that operates in a cycle CYCn+1. The cache hit / miss determination unit 334 searches a tag array 340 in a cycle CYCn to determine whether a request submitted from the pipeline submission unit 320 is a cache hit or a cache miss.

[0038] When the cache hit / miss determination unit 334 determines a cache hit, the pipeline control unit 330 outputs the data read from the data array 360 as response data to the load store unit 240. For example, the cache hit / miss determination unit 334 determines a cache hit when a cache line to which the same address as the access address is assigned exists in the tag array 340.

[0039] On the other hand, when the cache hit / miss determination unit 334 determines a cache miss, the pipeline control unit 330 outputs a pre-request signal PRE_REQ (valid PRE_VAL and address signal ADRS, etc.) to the arbitration unit 400 in cycle CYCn. However, when there is no free resource in the arbitration unit 400 that receives the pre-request signal PRE_REQ, the pipeline control unit 330 suppresses the output of the pre-request signal PRE_REQ to the arbitration unit 400. For example, a cache miss is determined when there is no cache line to which the same address as the access address is assigned. Resource management of the arbitration unit 400 and the L2 cache 600 will be described with reference to FIG. 8.

[0040] When the cache hit / miss determination unit 334 determines a cache miss and outputs a pre-request signal PRE_REQ, the abort determination unit 336 performs an abort determination as to whether or not to cancel the request in cycle CYCn+1. The result of the abort determination is indicated by a cancel bit CANCEL included in the valid signal FIN_VAL.

[0041] For example, the abort determination unit 336 outputs a valid signal FIN_VAL (valid bit=1, CANCEL=1) when there is no free space in the resources of the L2 cache 600 that accepts the request, or when there is an interruption factor due to an address interlock. For example, an interruption factor due to an address interlock occurs when processing a request from another core 200 is being executed. On the other hand, when there is free space in the resources of the L2 cache 600 that accepts the request and there is no interruption factor due to an address interlock, the abort determination unit 336 outputs a valid signal FIN_VAL (valid bit=1, CANCEL=0).

[0042] 4 cancels the processing of the corresponding pre-request signal PRE_REQ when it receives a valid signal FIN_VAL (valid bit=1, CANCEL=1) via the control unit 500. Then, the L2 cache 600 discards the held pre-request signal PRE_REQ. When the L2 cache 600 receives a valid signal FIN_VAL (valid bit=1, CANCEL=0) via the control unit 500, it executes the processing of the corresponding pre-request signal PRE_REQ.

[0043] The pipeline control unit 330 outputs a pre-request signal PRE_REQ to the arbitration unit 400 before the abort determination unit 336 determines whether to abort the request. This makes it possible to speculatively output the pre-request signal PRE_REQ two cycles before the cycle CYCn+2 in which the valid signal FIN_VAL is output.

[0044] Therefore, even when the arbitration unit 400 is provided between the multiple cores 200 and the control unit 500, it is possible to cancel a part of the increase in the transfer latency of the pre-request signal PRE_REQ due to the arbitration operation of the arbitration unit 400. Furthermore, by providing the arbitration unit 400, it is possible to reduce the number of signal lines for transferring the pre-request signal PRE_REQ from the multiple cores 200 to the control unit 500, and to suppress an increase in the wiring area.

[0045] The valid signal FIN_VAL is output two cycles later than the prior request signal PRE_REQ. However, as shown in Fig. 4, the valid signal FIN_VAL is transferred to the control unit 500 without passing through the arbitration unit 400, and is therefore not affected by the arbitration time by the arbitration unit 400. Therefore, the transfer latency of the valid signal FIN_VAL can be made smaller than the transfer latency of the prior request signal PRE_REQ.

[0046] This allows the valid signal FIN_VAL, which is output after the pre-request signal PRE_REQ, to arrive at the control unit 500 before the pre-request signal PRE_REQ. As a result, it is possible to reduce the latency until a processable request reaches the L2 cache 600. The reduction in latency will be described with reference to FIG. 9.

[0047] Fig. 6 shows an example of the arbitration unit 400 and the L2 cache 600 of Fig. 4. In Fig. 6, each of the reference characters C00-C11 indicates a core 200. Hereinafter, when the cores C00-C11 are described without distinction, they will be referred to as a core C.

[0048] The arbitration unit 400 has four hierarchical arbitration circuits MIX0, two arbitration circuits MIX1, and one arbitration circuit MIX2 that sequentially reduce the number of pre-request signals PRE_REQ received from each of the multiple cores C. In the following, when the arbitration circuits MIX0, MIX1, and MIX2 are not distinguished from each other, they are referred to as arbitration circuits MIX. The reference symbol [8] shown in each arbitration circuit MIX0 indicates the number of entries included in a queue that can hold pre-request signals PRE_REQ for each core C.

[0049] Each arbitration circuit MIX0 holds up to eight pre-request signals PRE_REQ received from three cores C (e.g., C00, C01, C02) for each core C, and sequentially arbitrates the held pre-request signals PRE_REQ. Each arbitration circuit MIX0 outputs the pre-request signal PRE_REQ selected by arbitration to the corresponding arbitration circuit MIX1.

[0050] The symbol [8] shown in each arbitration circuit MIX1 indicates the number of entries included in the queue that can hold the pre-request signal PRE_REQ for each arbitration circuit MIX0. Each arbitration circuit MIX1 holds up to eight pre-request signals PRE_REQ received from the two arbitration circuits MIX0, and arbitrates the held pre-request signals PRE_REQ in sequence. Each arbitration circuit MIX1 outputs the pre-request signal PRE_REQ selected by arbitration to the arbitration circuit MIX2.

[0051] The symbol [8] shown in the arbitration circuit MIX2 indicates the number of entries included in the queue that can hold the advance request signal PRE_REQ for each arbitration circuit MIX1. The arbitration circuit MIX2 holds up to eight advance request signals PRE_REQ received from the two arbitration circuits MIX1 for each arbitration circuit MIX1, and arbitrates the held advance request signals PRE_REQ in sequence. The arbitration circuit MIX2 outputs the advance request signal PRE_REQ selected by arbitration to the control unit 500.

[0052] Each of the arbitration circuits MIX0-MIX2 can leave a maximum of eight pre-request signals PRE_REQ in eight entries, including the pre-request signal PRE_REQ canceled at the port MIP.

[0053] Each core C transfers the valid signal FIN_VAL including the cancel bit CANCEL to the control unit 500 without going through the arbitration unit 400. For example, it takes four cycles for the valid signal FIN_VAL to be transferred from each core C to the L2 cache 600 via the control unit 500.

[0054] The control unit 500 outputs the pre-request signal PRE_REQ received from the arbitration unit 400 to one of the 12 ports MIP corresponding to the core C based on the identifier of the port MIP included in the pre-request signal PRE_REQ. The control unit 500 outputs the valid signal FIN_VAL(CANCEL) received from each core C to the port MIP corresponding to the core C based on the identifier of the port MIP included in the valid signal FIN_VAL(CANCEL).

[0055] When no request exists in any of the ports MIP, the control unit 500 bypasses the request to the selection unit 620 of the L2 cache 600 via the bypass route BYPS. In this case, the control unit 500 outputs a selection signal SEL to the selection unit 620 to select the bypass route BYPS.

[0056] The L2 cache 600 has ports MIP00-MIP11 corresponding to the cores C00-C11, respectively, an arbitration unit 610, and a selection unit 620. In the following, when the ports MIP00-MIP11 are described without distinction, they are referred to as ports MIP. The symbol [4] shown in each port MIP indicates the number of entries included in a queue capable of holding requests for each port MIP. Each port MIP holds up to four requests received from the corresponding core C via the control unit 500, and sequentially outputs the held requests to the arbitration unit 610. Each port MIP can leave up to four pre-request signals PRE_REQ in four entries, including the pre-request signal PRE_REQ to be canceled.

[0057] The arbitration unit 610 arbitrates requests received from each port MIP using an LRU (Least Recently Used) method, and outputs a request selected by arbitration to the selection unit 620. When the selection unit 620 does not receive a selection signal SEL from the control unit 500 to select the bypass route BYPS, the selection unit 620 selects a request output from the arbitration unit 610. When the selection unit 620 receives a selection signal SEL from the control unit 500 to select the bypass route BYPS, the selection unit 620 selects a request supplied from the bypass route BYPS.

[0058] Fig. 7 shows an example of signals transmitted and received for resource management among the core C, the arbitration unit 400, the control unit 500, and the port MIP in Fig. 6. Each core C has a counter USED_CNT indicating the number of used entries of the eight entries provided in the arbitration circuit MIX0 corresponding to each core C, and a counter RSC_CNT indicating the number of used entries of the four entries provided in the port MIP corresponding to each core C. Each core C manages the resources of the arbitration circuit MIX0 connected to itself by the counter USED_CNT, and manages the resources of the corresponding port MIP by the counter RSC_CNT.

[0059] The counter USED_CNT provided in the core C is an example of a first resource counter indicating the usage of the queue M0 of the arbitration unit 400. The counter value counted by the counter USED_CNT provided in the core C is an example of a first counter value. The counter RSC_CNT is an example of a second resource counter indicating the usage of the queue MQ of the port MIP of the L2 cache 600, and the counter value counted by the counter RSC_CNT is an example of a second counter value.

[0060] Each core C increments the counter value of the counter USED_CNT every time it outputs a pre-request signal PRE_REQ to the arbitration circuit MIX0. However, each core C suppresses the output of the pre-request signal PRE_REQ when the counter USED_CNT indicates the maximum value "8". Each core C decrements the counter value of the counter USED_CNT every time it receives a release signal FREE for itself from the arbitration circuit MIX0. The release signal FREE output from the arbitration circuit MIX0 to each core C is an example of a second release notification.

[0061] Furthermore, each core C outputs a valid or invalid valid signal FIN_VAL (CANCEL=0 or CANCEL=1) to the port MIX corresponding to each core C. However, when the counter RSC_CNT indicates the maximum value "4", each core C suppresses the output of the valid signal FIN_VAL to the port MIP.

[0062] Each core C increments the counter value of the counter RSC_CNT every time it outputs a valid signal FIN_VAL (CANCEL=0) to the port MIX corresponding to each core C. Each core C decrements the counter value of the counter RSC_CNT every time it receives a release signal MIP_FREE from the port MIP corresponding to each core C. The release signal MIP_FREE may be transferred from each port MIP to each core C via the control unit 500. The release signal MIP_FREE is an example of a first release notification.

[0063] Note that the counter value may be incremented not only in the positive direction but also in the negative direction. When the counter value is incremented in the positive direction, the counter value is decremented in the negative direction. When the counter value is incremented in the negative direction, the counter value is decremented in the positive direction. Each core C may have a register or the like for holding a counter value instead of the counters USED_CNT and RSC_CNT.

[0064] As described later, when the port MIP receives a valid valid signal FIN_VAL (CANCEL=0), it outputs a release signal MIP_FREE to the core C after completing processing of the request corresponding to the valid signal FIN_VAL (CANCEL=0). Therefore, the core C manages the resources of the port MIP of the L2 cache 600 only for a valid valid signal FIN_VAL (CANCEL=0). Since the counter RSC_CNT is not incremented when an invalid valid signal FIN_VAL (CANCEL=1) is output, it is possible to suppress the consumption of resources of the counter RSC_CNT that manages the port MIP and obtain sufficient throughput performance.

[0065] For example, core C can manage the resources of port MIP using not only valid signal FIN_VAL (CANCEL=0) but also valid signal FIN_VAL (CANCEL=1). However, if valid signal FIN_VAL (CANCEL=1) occurs frequently, the upper limit of the counter value of counter RSC_CNT managed by port MIP becomes large, increasing resource consumption, and there is a possibility that sufficient throughput performance cannot be obtained. In order to obtain sufficient throughput performance, measures such as increasing the number of entries of port MIP are necessary. For this reason, it is preferable that core C manages the resources of port MIP of L2 cache 600 only for valid signal FIN_VAL (CANCEL=0).

[0066] Each of the arbitration circuits MIX0-MIX2 receives a pre-request signal PRE_REQ speculatively issued from each of the cores C and transfers the signal to the L2 cache 600, and therefore cannot determine whether the request is valid or invalid. For this reason, each of the arbitration circuits MIX0-MIX2 temporarily holds all pre-request signals PRE_REQ, including pre-request signals PRE_REQ that are subsequently canceled.

[0067] Each arbitration circuit MIX0 has a queue Q0 having eight entries provided in correspondence with each core C, and a counter USED_CNT indicating the number of used entries of the eight entries provided in the arbitration circuit MIX1 in correspondence with each arbitration circuit MIX0. Each arbitration circuit MIX0 increments the counter value of the counter USED_CNT every time it outputs a pre-request signal PRE_REQ to the arbitration circuit MIX1. However, each arbitration circuit MIX0 suppresses the output of the pre-request signal PRE_REQ when the counter USED_CNT indicates the maximum value "8". Each arbitration circuit MIX0 decrements the counter value of the counter USED_CNT every time it receives a release signal FREE for itself from the arbitration circuit MIX1.

[0068] Each arbitration circuit MIX1 has a queue Q1 having eight entries provided in correspondence with each arbitration circuit MIX0, and a counter USED_CNT indicating the number of entries in use provided in the arbitration circuit MIX2 in correspondence with each arbitration circuit MIX1. Each arbitration circuit MIX1 increments the counter value of the counter USED_CNT every time it outputs a pre-request signal PRE_REQ to the arbitration circuit MIX2. However, each arbitration circuit MIX1 suppresses the output of the pre-request signal PRE_REQ when the counter USED_CNT indicates the maximum value "8". Each arbitration circuit MIX1 decrements the counter value of the counter USED_CNT every time it receives a release signal FREE for its own arbitration circuit MIX1 from the arbitration circuit MIX2.

[0069] The arbitration circuit MIX2 has a queue Q2 having eight entries provided corresponding to each arbitration circuit MIX1, and a counter USED_CNT for each port MIP indicating the number of entries in use out of the four entries provided in each port MIP. The arbitration circuit MIX2 increments the counter value of the counter USED_CNT corresponding to the port MIP every time it outputs a pre-request signal PRE_REQ to the port MIP. However, when the counter USED_CNT indicates the maximum value "4", the arbitration circuit MIX2 suppresses the output of the pre-request signal PRE_REQ. The arbitration circuit MIX2 decrements the counter value of the counter USED_CNT corresponding to the port MIP every time it receives a release signal FREE from each port MIP.

[0070] The queue Q0 provided in the arbitration circuit MIX0, the queue Q1 provided in the arbitration circuit MIX1, and the queue Q2 provided in each of the arbitration circuits MIX2 are an example of a second queue. The counter USED_CNT provided in each of the arbitration circuits MIX0-MIX2 is an example of a third resource counter, and the counter value counted by the counter USED_CNT is an example of a third counter value.

[0071] The port MIP has a queue MQ having four entries that hold a request signal PRE_REQ from the corresponding core C. The queue MQ is an example of a first queue. When the port MIP receives a pre-request signal PRE_REQ and a valid signal FIN_VAL (CANCEL=1) corresponding to the pre-request signal PRE_REQ, the port MIP cancels the request and releases it from the port MIP. Then, the port MIP outputs a release signal FREE to the arbitration circuit MIX2. At this time, the port MIP does not output a release signal MIP_FREE to the corresponding core C. The valid signal FIN_VAL (CANCEL=1) indicates that the pre-request signal PRE_REQ is invalid. The release signal FREE output from the port MIP to the arbitration circuit MIX2 is an example of a third release notification.

[0072] When each port MIP receives a pre-request signal PRE_REQ and a valid signal FIN_VAL (CANCEL=0) corresponding to the pre-request signal PRE_REQ, it holds the request in the port MIP. After completing processing of the request, each port MIP outputs a release signal FREE to the arbitration circuit MIX2 and outputs a release signal MIP_FREE to the corresponding core C. The valid signal FIN_VAL (CANCEL=0) indicates that the pre-request signal PRE_REQ is valid. Upon receiving the release signal MIP_FREE, the core C decrements the counter value of the counter RSC_CNT.

[0073] Fig. 8 shows an overview of signals transmitted and received between the core C00 and port MIP00 in Fig. 6. The flow of each signal is the same as in Fig. 7. That is, the pre-request signal PRE_REQ is transferred to the port MIP00 via the arbitration circuits MIX0, MIX1, and MIX2 of the arbitration unit 400, and the valid signal FIN_VAL is transferred to the port MIP00 without passing through the arbitration unit 400.

[0074] Fig. 9 shows an example of transfer of a pre-request signal PRE_REQ and a valid signal FIN_VAL from the core C to the L2 cache 600 in the circuit configuration of Fig. 6. For example, each transfer of the pre-request signal PRE_REQ from the core C to the arbitration circuit MIX0, between the two arbitration circuits MIX, and from the arbitration circuit MIX2 to the L2 cache 600 takes two cycles.

[0075] Also, the arbitration of the pre-request signal PRE_REQ in each of the arbitration circuits MIX0-MIX2 takes one cycle. Therefore, for example, it takes three cycles from when the core C outputs the pre-request signal PRE_REQ until the adjustment circuit MIX0 outputs the pre-request signal PRE_REQ. For example, since the control unit 500 is a combinational circuit and does not have an arbitration function, the transfer time of the pre-request signal PRE_REQ, etc. from the arbitration circuit MIX2 to the L2 cache 600 can be, for example, two cycles. Note that the transfer time of the pre-request signal PRE_REQ, etc. from the arbitration circuit MIX2 to the L2 cache 600 depends on the circuit scale of the control unit 500, and can be, for example, in one cycle when the circuit scale is small.

[0076] 5 receives a request from the pipeline input unit 320 in cycle CYC0, and determines whether it is a cache hit or miss in cycle CYC1. If the pipeline control unit 330 determines a cache miss, it outputs a pre-request signal PRE_VAL, an address signal ADRS, and the like to the arbitration unit 400 in cycle CYC1 (FIG. 9(a)).

[0077] Thereafter, the pre-request signal PRE_VAL and the address signal ADRS are output from the arbitration circuits MIX0-MIX2 every three cycles, and are input to the L2 cache 600 in cycle CYC12 (FIGS. 9(b)-(e)).

[0078] On the other hand, the pipeline control unit 330 determines whether to abort the request in cycle CYC2, and if there is no abort factor, outputs a valid signal FIN_VAL (CANCEL=0) to the L2 cache 600 in cycle CYC3 (FIG. 9(f)). The valid signal FIN_VAL (CANCEL=0) is input to the L2 cache 600 four cycles after the output from core C, and is stored in the port MIP (FIG. 9(g)).

[0079] The L2 cache 600 stores the pre-request signal PRE_VAL and the address signal ADRS, etc., received five cycles after receiving the valid signal FIN_VAL (CANCEL=0) in the port MIP. Since the valid signal FIN_VAL is valid, the L2 cache 600 starts processing the request from cycle CYC13 (FIG. 9(h)).

[0080] In this embodiment, the L1 cache 300 outputs the pre-request signal PRE_VAL and the address signal ADRS, etc., two cycles before the true valid signal FIN_VAL. Therefore, the processing of the request in the L2 cache 600 can be started two cycles earlier than when the address signal ADRS, etc. is output together with the true valid signal FIN_VAL after the abort determination by the abort determination unit 336 in FIG. 5 .

[0081] 10 and 11 are explanatory diagrams showing an example of the configuration and operation of the FIFO register FREG provided in the receiver of the valid signal FIN_VAL of each port MIP in FIG. 6. FIG. 10 shows an example of the operation of the FIFO register FREG when the valid signal FIN_VAL arrives at the port MIP. FIG. 11 shows an example of the operation of the FIFO register FREG when the pre-request signal PRE_REQ arrives at the port MIP. Hereinafter, the FIFO register FREG is also simply referred to as the register FREG. The FIFO register FREG is an example of a third queue.

[0082] The port MIP of the L2 cache 600 receives the valid signal FIN_VAL and the pre-request signal PRE_REQ for one request at different timings. For this reason, the port MIP needs to associate the valid signal FIN_VAL with the pre-request signal PRE_REQ. The difference in timing between the valid signal FIN_VAL and the pre-request signal PRE_REQ arriving at the L2 cache 600 varies depending on the waiting time due to arbitration by the arbitration unit 400. For this reason, there may be cases where the valid signal FIN_VAL arrives first and cases where the pre-request signal PRE_REQ arrives first.

[0083] As an example of the correspondence, there is a method of assigning a common serial ID to both the valid signal FIN_VAL and the advance request signal PRE_REQ, and corresponding the valid signal FIN_VAL and the advance request signal PRE_REQ by the serial ID. In this case, the serial ID is set to a number of bits that can identify all the advance request signals PRE_REQ simultaneously held in the arbitration unit 400. Note that, if it is guaranteed that the valid signal FIN_VAL and the advance request signal PRE_REQ arrive in the same order and with the same timing difference, management by the serial ID is not necessary.

[0084] In this embodiment, the core C manages the resources of the port MIP of the L2 cache 600 only for a valid valid signal FIN_VAL (CANCEL=0). In this case, a pre-request signal PRE_REQ output from one core C may be held in 28 entries on the path to the L2 cache 600. Here, the 28 entries are the total of the 8 entries of each of the arbitration circuits MIX0-MIX2 and the 4 entries of the port MIP. In this case, the resources of the port MIP can be managed by preparing 28 entries in the FIFO register for correspondence, but the circuit size of the FIFO register increases.

[0085] Therefore, in this embodiment, a counter that counts the number of consecutive invalid valid signals FIN_VAL (CANCEL=1) is provided in each entry of the association FIFO register. The L2 cache 600 manages a plurality of invalid valid signals FIN_VAL (CANCEL=1) collectively. This makes it possible to associate the valid signal FIN_VAL with the pre-request signal PRE_REQ while suppressing an increase in the circuit size of the FIFO register, even if the arrival timing of the valid signal FIN_VAL and the pre-request signal PRE_REQ is variable.

[0086] The FIFO register FREG has five entries. The first four entries from the output side have four flags FIN0-FIN3 and four counters CAN_CNT0-CAN_CNT3. The fifth entry on the input side has only flag FIN4. In the following, when the flags FIN0-FIN4 are not distinguished from each other, they are referred to as flag FIN. When the counters CAN_CNT0-CAN_CNT3 are not distinguished from each other, they are referred to as counter CAN_CNT. The flags FIN0-FIN3 are an example of a reception flag that is set when a valid signal FIN_VAL (CANCEL=0) indicating validity is received.

[0087] Each flag FIN indicates whether or not a valid valid signal FIN_VAL (CANCEL=0) has been received. When a valid valid signal FIN_VAL (CANCEL=0) has been received, the value val of one of the flags FIN of multiple entries is set to "1." Since the port MIP has four entries, one core C can output up to four valid signals FIN_VAL to the L2 cache 600. Therefore, five entries are set in the register FREG.

[0088] The counters CAN_CNT0-CAN_CNT3 of each entry indicate the number of consecutive invalid valid signals FIN_VAL (CANCEL=1) between two valid signals FIN_VAL (CANCEL=0). Each counter CAN_CNT may have a bit width (e.g., 5 bits) capable of expressing a request to be canceled when 28 requests, which is the maximum number that can be held by the arbitration unit 400 and the port MIP, are issued from each core C. The value held by the counters CAN_CNT0-CAN_CNT3 of each entry indicates the number of consecutively received valid signals FIN_VAL (CANCEL=1) indicating invalidity.

[0089] When the valid signal FIN_VAL (CANCEL=1) corresponding to the request to be canceled is consecutive, the register FREG counts them all together using one counter CAN_CNT. This makes it possible to suppress an increase in the circuit scale of the register FREG, and furthermore, by suppressing the increase in the circuit scale, an increase in the cycle delay can be suppressed.

[0090] In the initial state of Fig. 10, all flags FIN0-FIN4 and all counters CAN_CNT0-CAN_CNT3 of the register FREG are initialized to "0". In the initial state, when the port MIP receives an invalid valid signal FIN_VAL (CANCEL=1), it validates the entry with the smallest flag number FIN0 among the entries with the flag FIN value val=0 in state 0. Then, the port MIP increments the counter value of the counter CAN_CNT0 of the valid entry and sets it to "1" (Fig. 10(a)).

[0091] Next, when the port MIP receives an invalid valid signal FIN_VAL (CANCEL=1), in state 1, it increments the counter value of the counter CAN_CNT0 of the valid entry to "2" (FIG. 10(b)).

[0092] Next, when the port MIP receives a valid valid signal FIN_VAL (CANCEL=0), in state 2, it sets the second flag FIN1 to the value val=1 and enables the counter CAN_CNT1 (Figure 10(c)). The value val=1 indicates that the request output from core C is valid. The request counter CAN_CNT0 is disabled and the counting operation is stopped. In this way, when the port MIP receives a valid valid signal FIN_VAL (CANCEL=0), it switches the entry that holds the number of times an invalid valid signal FIN_VAL (CANCEL=1) has been received.

[0093] As a result, by referring to the counter CAN_CNT0 = 2 of the first entry, it can be seen that the request has been canceled twice in succession. Note that, when there are multiple flags FIN with a value of val = 1, the port MIP counts the counter CAN_CNT of the entry closest to the input side (the lower side in FIG. 10) among the flags FIN with a value of val = 1.

[0094] Next, when the port MIP receives an invalid valid signal FIN_VAL (CANCEL=1), in state 3, it increments the counter value of the count target counter CAN_CNT1 and sets it to "1" (FIG. 10(d)).

[0095] Next, when the port MIP receives a valid signal FIN_VAL (CANCEL=0), in state 4, it sets flag FIN2, which is one input side of flag FIN1 whose value val=1 is the count target, to the value val=1. Then, the port MIP sets counter CAN_CNT2 as the count target (FIG. 10(e)). As a result, the port MIP can determine that the request has been canceled once by referring to counter CAN_CNT1=1 of the second entry.

[0096] Although not shown in the figure, thereafter, when the port MIP receives an invalid valid signal FIN_VAL (CANCEL=1), it increments the counter value of the counter CAN_CNT2. On the other hand, when the port MIP receives a valid valid signal FIN_VAL (CANCEL=0), it sets the value val of the flag FIN3 to "1" and makes the counter CAN_CNT3 the count target.

[0097] In state 4, the counter CAN_CNT0 of the top entry of the register FREG holds "2." Therefore, the port MIP knows that the top two of the unprocessed requests are requests to be canceled.

[0098] In state 4, when the port MIP receives a pre-request signal PRE_REQ, the port MIP determines that the pre-request signal PRE_REQ is invalid because the value val of the flag FIN0 of the first entry is "0" and the counter CAN_CNT0 is "1" or greater. In this case, in state 5 of FIG. 11, the port MIP decrements the counter value of the counter CAN_CNT0 to "1" (FIG. 11(a)). The port MIP discards the corresponding request and outputs a release signal FREE to the arbitration circuit MIX2. At this time, the port MIP does not output a release signal MIP_FREE to the core C that issued the request.

[0099] Next, when the port MIP receives the pre-request signal PRE_REQ, it determines that the pre-request signal PRE_REQ is invalid because, as in state 4, the value val of the flag FIN0 of the top entry is "0" and the counter CAN_CNT0 is "1" or greater. Therefore, in state 6, the port MIP decrements the counter value of the counter CAN_CNT0 of the top entry and sets it to "0" (FIG. 11(b)). The port MIP discards the corresponding request and outputs a release signal FREE to the arbitration circuit MIX2. At this time, the port MIP does not output a release signal MIP_FREE to the core C that issued the request.

[0100] When the flag FIN0 and counter CAN_CNT0 of the first entry both become "0", the port MIP determines that the processing of consecutive or single invalid requests has ended. Then, the port MIP performs a shift operation to move the information held by each entry to the entry immediately above (FIG. 11(c)). At this time, the port MIP discards the information of the first entry, sets the value val of the flag FIN4 of the last entry to "0", and the state of the register FREG becomes state 7 (FIG. 11(d)).

[0101] In state 7, when the port MIP receives the pre-request signal PRE_REQ, the port MIP determines that the pre-request signal PRE_REQ is valid because the value val of the flag FIN0 of the first entry is "1". Therefore, in state 8, the port MIP resets the flag FIN0 of the first entry to "0" (FIG. 11(e)). The port MIP issues the corresponding request to the pipeline of the L2 cache 600 and starts processing the request. After completing processing of the request, the port MIP outputs a release signal FREE to the arbitration circuit MIX2 and outputs a release signal MIP_FREE to the corresponding core C.

[0102] Since the state of the top entry in state 8 is the same as state 5, when the port MIP receives the pre-request signal PRE_REQ, it determines that the pre-request signal PRE_REQ is invalid. Therefore, in state 9, the port MIP decrements the counter value of the counter CAN_CNT0 and sets it to "0" (FIG. 11(f)). The port MIP discards the corresponding request and outputs a release signal FREE to the arbitration circuit MIX2. At this time, the port MIP does not output a release signal MIP_FREE to the core C that issued the request.

[0103] Because both the flag FIN0 and counter CAN_CNT0 of the first entry have become "0", the port MIP determines that the processing of consecutive or single invalid requests has ended, as in state 6. The port MIP then performs a shift operation to move the information held by each entry to the entry immediately above (FIG. 11(g)). The port MIP discards the information of the first entry, sets the value val of the flag FIN4 of the last entry to "0", and the state of the register FREG becomes state 10 (FIG. 11(h)).

[0104] 10 and 11, by using the FIFO register FREG, the valid signal FIN_VAL and the pre-request signal PRE_REQ can be correctly associated with each other, and the request can be correctly processed. In this case, when invalid valid signals FIN_VAL (CANCEL=1) are consecutive, they can be counted collectively using one counter CAN_CNT, so that an increase in the circuit scale and an increase in cycle delay can be suppressed.

[0105] As described above, in this embodiment, when a cache miss occurs in the L1 cache 300, the core C outputs a pre-request signal PRE_REQ, which is a provisional request, to the arbitration unit 400 before the validity or invalidity of the request is determined. Then, when the validity or invalidity of the request is determined, the core C outputs a valid signal FIN_VAL, which indicates the validity or invalidity of the request, to the L2 cache 600.

[0106] The valid signal FIN_VAL is transferred to the L2 cache 600 without passing through the arbitration unit 400, and therefore can be transferred to the L2 cache 600 at higher speed than the pre-request signal PRE_REQ. Therefore, when a request is issued to the L2 cache 600 after a cache miss in the L1 cache 300 is confirmed, the latency until the request reaches the L2 cache 600 can be reduced.

[0107] As a result, when the validity of the request is confirmed, the processing of the request can be started earlier by the amount that the output of the pre-request signal PRE_REQ was earlier, thereby improving the processing performance of the processor 100. As a result, the processing performance of the processor 100 equipped with multiple hierarchical caches or the system in which the processor 100 is equipped can be improved.

[0108] Each core C increments the counter RSC_CNT only when a valid valid signal FIN_VAL (CANCEL=0) is output, and does not increment the counter RSC_CNT when an invalid FIN_VAL (CANCEL=1) is output. This makes it possible to reduce the circuit scale of counters and the like used for resource management of the queues of the port MIP. In the multi-core type processor 100, the effect of reducing the circuit scale is significant.

[0109] Each core C has a counter USED_CNT that is incremented each time a valid or invalid pre-request signal PRE_REQ is output and is decremented when a release signal FREE from the L2 cache 600 is transmitted. The release signal FREE from the L2 cache 600 is output regardless of whether a request is valid or invalid. Therefore, each core C can manage the resources of the queue Q0 of the arbitration circuit MIX0 even when two valid signals FIN_VAL, VAL are generated for one request. This makes it possible to prevent the queue Q0 from overflowing.

[0110] Each core C increments the counter RSC_CNT when a valid valid signal FIN_VAL is output, and decrements the counter RSC_CNT based on a release signal MIP_FREE from the port MIP, thereby managing the resources of the port MIP. Since each core C does not increment the counter RSC_CNT when an invalid valid signal FIN_VAL (CANCEL=1) is output, the resource consumption of the counter RSC_CNT that manages the port MIP can be suppressed, and sufficient throughput performance can be obtained.

[0111] The arbitration unit 400, which arbitrates the pre-request signals PRE_REQ received from the multiple cores C, has hierarchical arbitration circuits MIX0-MIX2. Therefore, compared to a case where the arbitration unit 400 is not hierarchical, it is possible to reduce the wiring area of ​​the signal line that transfers the pre-request signals PRE_REQ to the L2 cache 600. In addition, the valid signal FIN_VAL output by each core C has a size of about 1 byte. This makes it possible to prevent an increase in the wiring area between each core C and the L2 cache 600 even when the valid signal FIN_VAL and the pre-request signal PRE_REQ are transferred to the L2 cache 600 via different routes.

[0112] By using the register FREG, the valid signal FIN_VAL and the pre-request signal PRE_REQ can be correctly associated with each other, and the request can be correctly processed. In this case, when invalid valid signals FIN_VAL (CANCEL=1) are consecutive, they are counted together by one counter CAN_CNT, so that the increase in the circuit scale of the register FREG can be suppressed, and further, the increase in cycle delay can be suppressed by suppressing the increase in the circuit scale.

[0113] The features and advantages of the embodiments will be apparent from the above detailed description. It is intended that the claims cover the features and advantages of the embodiments as described above without departing from the spirit and scope of the claims. In addition, any improvements and modifications can be easily made by a person having ordinary skill in the art. Therefore, it is not intended to limit the scope of the inventive embodiments to the above, and appropriate improvements and equivalents within the scope of the embodiments disclosed can be used. [Explanation of symbols]

[0114] 100, 102, 104 processors 200 cores 210 Instruction Buffer 220 Instruction Decoder 230 Calculation Unit 232 Arithmetic unit 234 Register File 240 Load Store Unit 300 L1 Cache 310 Port 320 Pipeline Inlet 330 Pipeline Control Section 332 Pipeline 334 Cache Hit / Miss Judgment Unit 336 Abort Judgment Unit 340 Tag Array 360 Data Array 400 Mediation Department 500, 504 Control section 600, 602, 604 L2 Cache 610 Mediation Department 620 Selection Section ADRS Address signal BYPS Bypass route C Core CAN_CNT Counter DT Data Signal FIN flag FIN_VAL Valid signal FREE release signal MIP Ports MIP_FREE release signal MIX0, MIX1, MIX2 arbitration circuit PRE_REQ Pre-request signal PRE_VAL Pre-valid signal RSC_CNT Counter SEL Selection signal USED_CNT Counter

Claims

1. a plurality of cores each including a first cache; a second cache that processes a request output from the core when a cache miss occurs in the first cache; an arbitration unit that arbitrates the requests output from the plurality of cores and sequentially outputs the requests to the second cache; each of the plurality of cores outputs, after outputting the request to the arbitration unit, determination information indicating whether or not the output request is valid to the second cache without passing through the arbitration unit; The second cache starts processing the received request when the determination information corresponding to the received request indicates validity. Processor.

2. the second cache includes a first queue for holding the requests corresponding to each of the plurality of cores; The first cache of each of the plurality of cores has a first resource counter that increments a first counter value indicating a usage amount of the first queue when the determination information indicating that the request is valid is output to the second cache, and that decrements the first counter value when a first release notification is received from the second cache based on completion of processing of the request. The processor of claim 1 .

3. the arbitration unit has a second queue for holding the request, and when the request held in the second queue is output to the second cache, outputs a second release notification to the core that is an issuer of the request; Each of the plurality of cores has a second resource counter that increments a second counter value indicating a usage amount of the second queue when the request is output to the arbitration unit, and that decrements the second counter value when the second release notification is received from the arbitration unit. The processor of claim 2 .

4. The second cache is when the determination information received from the arbitration unit in response to the request indicates invalidity, outputting a third release notification to the arbitration unit based on reception of the determination information, and discarding the invalid request held in the first queue; when the determination information received from the arbitration unit in response to the request indicates validity, outputting the third release notification to the arbitration unit based on completion of processing of the request, outputting the first release notification to the core that issued the request, and discarding the request that has been held in the first queue and for which processing has been completed; The arbitration unit has a third resource counter that increments a third counter value indicating a usage amount of the first queue when the request held in the second queue is output to the second cache, and that decrements the third counter value when the arbitration unit receives the third release notification. The processor of claim 3.

5. the arbitration unit includes a plurality of arbitration circuits each having the second queue arranged in a hierarchical manner to sequentially reduce the number of requests received from each of the plurality of cores; the second queues of the arbitration circuits provided corresponding to the plurality of cores, respectively, and receiving the requests from the plurality of cores, are managed by the second resource counters of the cores; The arbitration circuit, which outputs the request to the second cache, has the third resource counter, increments the third counter value when the request is output to the second cache, and decrements the third counter value when the third release notification is received. The processor of claim 4.

6. The second cache is a third queue having a plurality of entries each holding a number of receptions of the confirmation information indicating invalidity; the number of receptions of one of the plurality of entries is incremented when the confirmation information indicating invalid is received, and the number of receptions of the confirmation information indicating valid is switched to another entry, thereby storing the number of consecutively received confirmation information indicating invalid in the third queue; When the request is received, it is determined whether the received request is valid or invalid based on the number of receptions held in each of the plurality of entries. A processor according to any preceding claim.

7. each of the plurality of entries of the third queue has a reception flag that is set when the determination information indicating validity is received; The second cache is When the determination information indicating validity is received, the reception flag of the entry on the input side is set for the entry that is the object of the reception count, and the entry including the set reception flag is set as the entry that holds the reception count; When the request is received, it is determined whether the received request is valid or invalid based on the number of receptions and the reception flag held in each of the plurality of entries. The processor of claim 6.

8. A width of a wiring for transferring the determination information from each of the plurality of cores to the second cache is smaller than a width of a wiring for transferring the request from each of the plurality of cores to the arbitration unit. The processor of claim 1 .

Citation Information

Patent Citations

  • Hierarchical bus control system and bus bridge

    JP1997128325A

  • Cache memory control system and method of controlling cache memory

    JP2011076159A