Metadata Predictor
The metadata predictor system addresses latency and redundancy issues in pipeline microprocessors by asynchronously populating a prediction cache with instruction metadata, improving branch prediction accuracy and reducing cycles per instruction through a line index accelerator.
Patent Information
- Application Number
- JP2024507895
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-08-19
- Filing Date
- 2022-08-15
- Publication Date
- 2024-08-29
- Estimated Expiration
- 2042-08-15
AI Technical Summary
Existing pipeline microprocessors face inefficiencies in branch prediction due to latency issues and redundant execution of instructions, leading to increased cycles per instruction (CPI) and potential fetch inaccuracies.
Implementing a metadata predictor system with an index pipeline and prediction pipeline that asynchronously populate a prediction cache with instruction metadata, utilizing a line index accelerator to minimize latency and improve branch prediction accuracy by reusing metadata within the prediction pipeline.
The metadata predictor system enhances processor performance by reducing fetch inaccuracies and downstream branch penalties, allowing for low-latency branch prediction and efficient instruction execution.
Smart Images

Figure 2024531139000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates generally to computer systems, and more particularly to computer-implemented methods, computer systems, and computer program products constructed and arranged for use with metadata predictors. [Background technology]
[0002] A pipeline microprocessor has paths, channels, or pipelines divided into multiple stages that perform specific tasks. Each of the specific tasks is a part of the overall operation dictated by the programmed instructions. Each of the programmed instructions or macroinstructions of a software application program is executed sequentially by the microprocessor. When a programmed instruction enters the first stage of the pipeline, a specific task is performed. The instruction is then passed to a subsequent stage for the performance of a subsequent task. After the completion of the last task, the instruction completes execution and exits the pipeline. The execution of programmed instructions by a pipeline microprocessor is similar to the production of items on an assembly line. One of the obvious aspects of any assembly line is that at any given time, there are multiple items on the line in successive assembly stages. The same is true for a pipeline microprocessor. During any cycle of the pipeline clock signal, there are multiple instructions at various stages, each of the instructions at successive levels of completion. Thus, the microprocessor allows for the overlapping execution of multiple instructions by the same circuitry. The circuit is typically divided into stages, with each stage processing a particular part of one instruction at a time and passing the partial results to the next stage. Summary of the Invention
[0003] An embodiment of the present invention is directed to a computer-implemented method for a metadata predictor. A non-limiting example of the computer-implemented method includes operating an index pipeline to generate an index in an index buffer, where the index is used to read a memory device, and populating a prediction cache with metadata for instructions read from the memory device. The computer-implemented method includes operating the prediction pipeline to generate predictions using instruction metadata from the prediction cache, where populating the prediction cache with instruction metadata is performed asynchronously with operation of the prediction pipeline.
[0004] A non-limiting example of a computer-implemented method includes interrogating an index accelerator with a reset address and determining in response to the interrogation that an index line is present in the index accelerator. The computer-implemented method includes determining a sequential line to the index line in the index accelerator and placing the sequential line in an index buffer.
[0005] A non-limiting example of a computer-implemented method includes generating a primary prediction and an auxiliary prediction using the metadata, determining that the primary and auxiliary predictions differ, and selecting the auxiliary prediction in response to the primary and auxiliary predictions differing. The computer-implemented method includes extending a length of the prediction pipeline for a predetermined time and sending the auxiliary prediction to an instruction execution pipeline.
[0006] Other embodiments of the invention embody features of the above-described methods in computer systems and computer program products.
[0007] Additional technical features and advantages are realized through the techniques of the present invention. Embodiments and aspects of the present invention are described in detail herein and are considered a part of the claimed subject matter. For a better understanding, reference is made to the detailed description and drawings.
[0008] The particulars of the exclusive rights set forth herein are particularly pointed out and distinctly claimed in the claims at the conclusion of this specification. The foregoing and other features and advantages of embodiments of the present invention will become apparent from the following detailed description taken in conjunction with the accompanying drawings. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a block diagram of an example computer system for use in conjunction with one or more embodiments of the present invention. [Diagram 2] FIG. 2 is a block diagram of a metadata predictor in a processor in accordance with one or more embodiments of the present invention. [Diagram 3] FIG. 2 is a block diagram of a metadata predictor having a metadata prediction cache in accordance with one or more embodiments of the present invention. [Figure 4] FIG. 1 is a block diagram of a metadata predictor with a metadata prediction cache in a parent-based design in accordance with one or more embodiments of the present invention. [Diagram 5] FIG. 2 is a block diagram of a metadata predictor process in accordance with one or more embodiments of the present invention. [Figure 6] FIG. 2 is a block diagram of an example metadata predictor cache in accordance with one or more embodiments of the present invention. [Figure 7] FIG. 2 is a block diagram of an example pipeline in accordance with one or more embodiments of the present invention. [Figure 8] FIG. 2 is a block diagram of an example metadata predictor cache in accordance with one or more embodiments of the present invention. [Figure 9] FIG. 2 is a block diagram of an example pipeline in accordance with one or more embodiments of the present invention. [Figure 10] 1 is a flowchart of a computer-implemented method for using a metadata predictor in accordance with one or more embodiments of the present invention. [Figure 11] 1 is a flowchart of an accelerator flow for writing to a line index accelerator in accordance with one or more embodiments of the present invention. [Figure 12] 1 is a flowchart of an accelerator flow for reading a line index accelerator in accordance with one or more embodiments of the present invention. [Figure 13] FIG. 2 is a block diagram of an example latency accelerator entry of a line index accelerator in accordance with one or more embodiments of the present invention. [Figure 14] 1 is a flowchart of an accelerator flow for performing payload matching in accordance with one or more embodiments of the present invention. [Figure 15] 1 is a block diagram of an example accelerator in accordance with one or more embodiments of the present invention. [Figure 16] 1 is a block diagram of an example accelerator in accordance with one or more embodiments of the present invention. [Figure 17] FIG. 2 is a block diagram of an example pipeline including a line index accelerator without line offset in accordance with one or more embodiments of the present invention. [Figure 18] FIG. 2 is a block diagram of an example pipeline including a line index accelerator with line offset in accordance with one or more embodiments of the present invention. [Figure 19] FIG. 2 is a block diagram of an example pipeline including a line index accelerator with line offset in accordance with one or more embodiments of the present invention. [Figure 20] FIG. 2 is a block diagram of an example pipeline including a line index accelerator with line offset and intra-line branching in accordance with one or more embodiments of the present invention. [Figure 21]1 is a flowchart of a computer-implemented method for determining an index for a line index buffer of a metadata predictor using a line index accelerator in accordance with one or more embodiments of the present invention. [Figure 22] FIG. 2 is a block diagram of prediction logic including a primary predictor and a secondary predictor in accordance with one or more embodiments of the present invention. [Figure 23] 1 is a flowchart of a variable length metadata prediction pipeline flow for determining when to use an auxiliary predictor and / or extend the prediction pipeline in accordance with one or more embodiments of the present invention. [Figure 24] FIG. 2 is a block diagram of an example pipeline depicting downstream congestion in accordance with one or more embodiments of the present invention. [Diagram 25] FIG. 2 is a block diagram of an example pipeline depicting an auxiliary predictor making a different prediction than the main predictor, in accordance with one or more embodiments of the present invention. [Figure 26] FIG. 2 is a block diagram of an example pipeline depicting an auxiliary predictor making the same prediction as the main predictor, in accordance with one or more embodiments of the present invention. [Figure 27] 1 is a flowchart of a computer-implemented method for using a variable length metadata prediction pipeline in accordance with one or more embodiments of the present invention. [Figure 28] FIG. 1 is a block diagram of a system for designing / laying out a metadata predictor in accordance with one or more embodiments of the present invention. [Figure 29] 29 is a process flow for a method of fabricating the integrated circuit of FIG. 28 in accordance with one or more embodiments of the present invention. [Diagram 30] FIG. 1 is a diagram of a cloud computing environment in accordance with one or more embodiments of the present invention. [Diagram 31] FIG. 2 is a diagram of abstraction model layers in accordance with one or more embodiments of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] One or more embodiments of the present invention provide a computer-implemented method, computer system, and computer program product arranged and configured to install a metadata predictor cache in a metadata predictor. One or more embodiments improve processor performance by implementing caching and reuse of prediction metadata to ensure low-latency branch prediction, thereby minimizing fetch inaccuracies and downstream branch penalties. Furthermore, one or more embodiments are configured and arranged to install a prediction cache in a metadata predictor line index accelerator. The accelerator is configured to populate a line index buffer (LIB) to allow a metadata buffer (e.g., a branch target buffer (BTB) or other buffer) to be accessed ahead of the prediction pipeline, thereby minimizing prediction latency. Furthermore, one or more embodiments are configured and arranged to install a variable-length metadata prediction pipeline in the metadata predictor.
[0011] A metadata predictor is a system that uses metadata to predict information about instructions and / or data in a microprocessor. A load instruction's dependency on a store instruction is an example of the type of information that can be predicted by a metadata predictor. A line prefetch predictor is another example. Branch prediction is yet another type of metadata prediction and is an essential component of the performance of pipelined high-frequency microprocessors. Branch prediction is used to predict the direction (e.g., taken vs. not taken) and target address of a branch instruction. This is beneficial because it allows processing to continue along the predicted path of the branch without having to wait for the outcome of the branch to be determined. Only penalties are incurred if the branch is predicted incorrectly.
[0012] A branch target buffer (BTB) is a structure that stores metadata including branch and target address information. The BTB can be searched in parallel and independently of instruction fetches to find upcoming branches, in which case the BTB is used for preemptive branch prediction, called asynchronous branch prediction. Additionally, the BTB can be accessed simultaneously with and / or after instruction fetches and used to determine instruction boundaries to make predictions for each encountered branch instruction, called synchronous branch prediction. In either case, the performance benefit of the BTB is a function of the accuracy of the predictions provided by the BTB and the latency required to access the BTB.
[0013] A metadata prediction cache can capture the metadata predictor output and reuse it while remaining in the same code section to make predictions repeatedly. Metadata predictors can be organized to have variable line sizes with parent-based design. A multi-level hierarchy of metadata predictors is possible. This is similar to a multi-level instruction or data cache hierarchy. The first level of a two-level hierarchy should be smaller and faster to access than the second level which should be larger and slower. The design of a metadata predictor hierarchy is more flexible than the design of an instruction or data cache hierarchy because the metadata is not required to be present and accurate for the proper functioning of the processor, unlike other caches.
[0014] Various terms may be utilized herein.
[0015] LIB is the line index buffer. LOB is the line output buffer. BTB is the branch target buffer. IL is an intraline branch, a branch whose target is within the same line of the instruction text (itext). DGT refers to a dynamically guessed taken branch. An exit branch refers to a branch that flows from line X to some other line. The entry point is the instruction address (IA) where the metadata predictor starts searching after finding the exit branch, and is therefore effectively the target instruction address of the exit branch. The taken branch offset is the number of lines between the entry point and the exit branch. SKOOT stands for skip over offset, and indicates the number of lines that do not contain the branch and therefore do not need to be searched.
[0016] Turning now to FIG. 1, a computer system 100 is generally illustrated in accordance with one or more embodiments of the present invention. Computer system 100 can be an electronic computer framework that comprises and / or employs any number of computing devices and networks, utilizing various communication technologies, as described herein, and combinations thereof. Computer system 100 can be easily scalable, extensible, and modular, and can be modified for different services or reconfigured some features independent of others. Computer system 100 can be, for example, a server, desktop computer, laptop computer, tablet computer, or smartphone. In some examples, computer system 100 can be a cloud computing node. Computer system 100 may be described in the general context of computer system executable instructions, such as program modules, executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc. that perform particular tasks or implement particular abstract data types. The computer system 100 may also be practiced in a distributed cloud computing environment where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computer system storage media including memory storage devices.
[0017] As shown in FIG. 1, computer system 100 includes one or more central processing units (CPUs) 101a, 101b, 101c, etc. (collectively or generally referred to as processors 101). Processor 101 can be a single-core processor, a multi-core processor, a computing cluster, or any number of other configurations. Processor 101, also referred to as a processing circuit, is coupled to system memory 103 and various other components via a system bus 102. System memory 103 can include read only memory (ROM) 104 and random access memory (RAM) 105. ROM 104 may include a basic input / output system (BIOS), or a successor thereto, such as a unified extensible firmware interface (UEFI), coupled to system bus 102 and controlling certain basic functions of computer system 100. RAM is a read-write memory coupled to system bus 102 for use by processor 101. The system memory 103 provides a temporary memory space for the execution of the instructions during operation. The system memory 103 may include random access memory (RAM), read-only memory, flash memory, or any other suitable memory system.
[0018] Computer system 100 includes an input / output (I / O) adapter 106 and a communications adapter 107 coupled to system bus 102. I / O adapter 106 may be a small computer system interface (SCSI) adapter that communicates with a hard disk 108 and / or any other similar components. I / O adapter 106 and hard disk 108 are collectively referred to herein as mass storage 110.
[0019] Software 111 for execution on computer system 100 may be stored on mass storage 110. Mass storage 110 is an example of a tangible storage medium readable by processor 101, where software 111 is stored as instructions for execution by processor 101 to operate computer system 100, as described hereinafter with reference to various figures. Examples of computer program products, and the execution of such instructions, are discussed in more detail herein. Communications adapter 107 interconnects system bus 102 with network 112, which may be an external network, enabling computer system 100 to communicate with other such systems. In one embodiment, a portion of system memory 103 and mass storage 110 collectively store an operating system, which may be any suitable operating system for coordinating the functions of the various components illustrated in FIG. 1.
[0020] Additional input / output devices are shown connected to the system bus 102 via a display adapter 115 and an interface adapter 116. In one embodiment, adapters 106, 107, 115, and 116 may be connected to one or more I / O buses connected to the system bus 102 via intermediate bus bridges (not shown). A display 119 (e.g., a screen or display monitor) is connected to the system bus 102 by a display adapter 115, which may include a graphics controller and a video controller to improve performance of graphics-intensive applications. A keyboard 121, a mouse 122, speakers 123, etc. may be interconnected to the system bus 102 via an interface adapter 116, which may include, for example, a super I / O chip that combines multiple device adapters into a single integrated circuit. Suitable I / O buses for connecting peripheral devices such as hard disk controllers, network adapters, and graphics adapters typically include common protocols such as Peripheral Component Interconnect (PCI) and Peripheral Component Interconnect Express (PCIe). Thus, as configured in Figure 1, computer system 100 includes processing capability in the form of processor 101, storage capabilities including system memory 103 and mass storage 110, input means such as keyboard 121 and mouse 122, and output capabilities including speakers 123 and display 119.
[0021] In some embodiments, the communications adapter 107 may transmit data using any suitable interface or protocol, such as an Internet Small Computer System Interface, among others. The network 112 may be a cellular network, a wireless network, a wide area network (WAN), a local area network (LAN), or the Internet, among others. An external computing device may connect to the computer system 100 through the network 112. In some examples, the external computing device may be an external web server or a cloud computing node.
[0022] It should be understood that the block diagram of Figure 1 is not intended to indicate that computer system 100 should include all of the components depicted in Figure 1. Rather, computer system 100 may include any suitable fewer or additional components not illustrated in Figure 1 (e.g., additional memory components, embedded controllers, modules, additional network interfaces, etc.). Additionally, the embodiments described herein with respect to computer system 100 may be implemented with any suitable logic, and logic as referred to herein may include any suitable hardware (e.g., a processor, embedded controller, or application specific integrated circuit, among others), software (e.g., an application, among others), firmware, or any suitable combination of hardware, software, and firmware, in various embodiments.
[0023] FIG. 2 is a block diagram of a metadata predictor 200 of a processor 101 according to one or more embodiments of the present invention. The processor 101 may represent any of the processors 101 discussed in the computer system 100 of FIG. 1. The metadata predictor 200 is outside of the instruction execution pipeline 250 and executes asynchronously therewith. The instruction execution pipeline 250 may be an out-of-order pipeline and includes modules / blocks for operating as part of a processor core, as will be appreciated by those skilled in the art. The metadata predictor 200 is configured to communicate with (e.g., send and receive data from) the instruction execution pipeline 250. The instruction execution pipeline 250 may be any instruction pipeline. In an example of an instruction execution pipeline 250 of some units that comprise a processor core, the branch prediction logic is responsible for instruction fetch and branch prediction in an instruction fetch and branch prediction unit (IFB). The IFB is the core's navigator and arbitrates all pipeline restart points for both threads. Additionally, the IFB is responsible for guiding the Instruction Cache and Merge (ICM) unit to fetch instruction text from the Level 1 instruction cache and ensure that only instruction text for what it believes to be the correct speculative code path is delivered to the Instruction Decode and Dispatch Unit (IDU). The pipeline then dispatches to the Instruction Sequence Unit (ISU) which maintains the out-of-order execution pipeline. An instruction issue queue is used to execute instructions in the Fixed Point Unit (FXU), Vector and Floating Point Unit (VFU), Load-Store Unit (LSU), etc. Address translation is performed by the Translator Unit (XU) and checkpointing is managed by the Recovery Unit (RU). Once an instruction is decoded as a branch, the dynamic prediction information for this branch discards any instruction text-based static speculation that the IDU should have been successfully applied.
[0024] The metadata predictor 200 includes various hardware components including a line index accelerator 202, a line index buffer (LIB) 204, a branch target buffer (BTB1) 206, a line output buffer (LOB) 208, accelerator logic 222, LIB logic 224, LOB logic 228, and prediction logic 230, where the hardware components include caches, combinatorial logic, memory, etc. Although not shown for brevity, in one or more embodiments, the metadata predictor 200 may include a BTB2 that is larger than BTB1 and may provide metadata to BTB1. Additionally, the various hardware components of the metadata predictor 200 may include firmware (such as computer executable instructions) executing on a microcontroller along with hardware modules such as dedicated hardware (e.g., application specific hardware such as embedded controllers, hardwired circuits, etc., application specific integrated circuits (ASICs)), or some or a combination of these, or both. In an example, the modules described herein may be a combination of hardware and programming. The programming can be processor-executable instructions stored in a tangible memory, and the hardware can include processing circuitry for executing these instructions. Alternatively or additionally, the modules can include dedicated hardware, such as one or more integrated circuits, application specific integrated circuits (ASICs), application specific special processors (ASSPs), field programmable gate arrays (FPGAs), or any combination of the foregoing examples of dedicated hardware, for implementing the techniques described herein. Additionally, the modules of the metadata predictor 200 can include various digital logic circuits for functioning as discussed herein.
[0025] FIG. 3 is a block diagram of a metadata predictor 200 with a predictive cache, according to one or more embodiments of the present invention. FIG. 4 is a block diagram of a metadata predictor 200 with a predictive cache parent-based design, according to one or more embodiments of the present invention. BTB1 206 can be divided into quadrants for use, for example, four quadrants. More specifically, BTB1 206 is a memory structure, but BTB1 206 is operated as multiple sections of the parent-based design of FIG. 4. In FIG. 4, BTB1 206 is represented with two quadrants depicting BTB1 206 utilized as BTB1 206_0 and BTB1 206_1 for parents 0 and 1, respectively. Similarly, each quadrant has its own LOB 208 depicted as LOB 208_0 and LOB 208_1 of the parent-based design of FIG. 4. Multiplexers 402_0 and 402_1 may be utilized to provide the appropriate line of metadata to prediction logic 230 based on a predetermined manner of selection.
[0026] BTB1 206 is read line by line and the output is written to a prediction cache, such as LOB 208 (including LOBs 208_0 and 208_1), to be reused while remaining within the line. An index pipeline (e.g., index pipeline 552 depicted in FIG. 5) is configured to read BTB1 206 and send the output to LOB 208. A prediction pipeline (e.g., prediction pipeline 554 depicted in FIG. 5) is configured to use BTB data from BTB1 206 (including BTB1 206_0 and BTB1 206_1) and LOB data from LOB 208 (including LOBs 208_0 and 208_1) to predict via prediction logic 230 of processor 101. In metadata predictor 200, index pipeline 552 and prediction pipeline 554 are decoupled and operate independently of each other, in addition to operating asynchronously with instruction execution pipeline 250.
[0027] Branch prediction latency can be a source of performance problems for any processor, and downstream pipelines must accurately fetch instruction text as quickly as possible to keep cycles per instruction (CPI) low. Accurate branch prediction enables such fetching. However, if a prediction is not available, the processor may go ahead and fetch incorrect instruction text at the risk of a false branch penalty, or wait for a new branch prediction to become available, thus increasing the CPI. According to one or more embodiments, buffering in the LIB 204 and LOB 208, and reusing prediction metadata in the LOB 208, enables low-latency branch prediction, which puts instruction fetch ahead of instruction execution, resulting in power-saving benefits. Decoupling the index pipeline 552 from the prediction pipeline 54 allows the index pipeline 552 to be ahead of the prediction pipeline 554, which can hide other prediction latency-inducing events (e.g., read / write collisions, etc.). Additionally, the index pipeline 552 will be read before the prediction pipeline 554 to enable the prediction pipeline 554 to generate predictions as quickly as possible.
[0028] To further illustrate details of the index pipeline 552 and the prediction pipeline 554, FIG. 5 depicts a metadata prediction cache process 500 for the metadata predictor 200, according to one or more embodiments. The metadata prediction cache process 500 is a computer-implemented process executed by the processor 101 of FIGS. 1, 2, 3, and 4, along with other figures discussed herein. The description of the metadata prediction cache process 500 shown in FIG. 5 will be made with reference to FIGS. 1, 2, 3, and 4, where appropriate.
[0029] In block 502 of the index pipeline 552, the metadata predictor 200 is configured to populate the LIB 204. The LIB 204 may be populated with a reset instruction address from the instruction execution pipeline 250 and / or the prediction logic 230. Additionally, the LIB 204 may be populated with an accelerator instruction address. The accelerator instruction address may be sent to the LIB 204 from a line index accelerator 202, which is discussed further herein. The LIB 204 may be a first in first out (FIFO) buffer or another type of buffer. The reset instruction is used to populate the index and / or index line in the LIB 204, where the index line is stored and eventually utilized for searching and / or querying the BTB1 206. The index and / or index lines in the LIB 204 point to a subset of the instruction address bits used by the LIB 204 to access the BTB1 206. In one or more embodiments, each entry in the BTB1 206 may represent a 128 byte (B) line, and the index / index lines in the LIB 204 may use a subset of the instruction address bits (e.g., a subset of the 128B lines) based on the size of the BTB1, such as instruction address bits (48:56), which point to instruction address bits 48-56 of the instruction address utilized to read the BTB1 206. In one or more embodiments, the index / index lines in the LIB 204 may be any predetermined subset of the instruction address bits, with 128B being illustrated as an example. Thus, the index lines of the LIB 204 are utilized to query the BTB1 206.Additionally, an instruction execution pipeline event in the instruction execution pipeline 250 , such as a false branch, may restart the index pipeline 552 , the prediction pipeline 554 , and the line index accelerator 202 .
[0030] In block 504, the metadata predictor 200 (e.g., using the LIB logic 224) is configured to read the LIB 204, which reads an index having an instruction address from the LIB 204. The LIB 204 may read an index of instruction addresses at a time.
[0031] In block 506, the metadata predictor 200 (e.g., using the LIB logic 224) is configured to check whether the received instruction address is valid. The metadata predictor 200 (e.g., using the LIB logic 224) is configured to check whether an actual instruction address has been read from the LIB 204 or whether the output is empty. Each instruction address may be read one at a time (e.g., serially) as an entry in a line (e.g., a cache line) or as a group / block of entries, or both. If ("NO") the instruction address is empty, flow returns to block 504 and the metadata predictor 200 (e.g., using the LIB logic 224) is configured to read the LIB 204 where the index should be populated. If "YES" the instruction address is valid (i.e., present), flow proceeds to block 508. Also, if the "YES" instruction address is valid (i.e., present), the metadata predictor 200 (e.g., using the LIB logic 224) is configured to check whether this is the last entry in the LIB 204 in block 510. Block 510 checks whether this entry is the last index in the LIB. If this entry is not the last entry in the LIB ("NO"), the metadata predictor 200 (e.g., using the LIB logic 224) is configured to read the next entry in the LIB by returning to block 504. If this entry is the last entry in the LIB 204 ("YES"), the metadata predictor 200 (e.g., using the LIB logic 224) is configured to generate line X+1 by advancing to the next consecutive line after the current line (e.g., line X) to populate the tail of the LIB 204 in block 512, and the flow returns to block 504. The metadata predictor 200 writes line X+1 to the end of LIB, and once it has finished processing line X on the "valid" path, the metadata predictor 200 will process line X+1.For example, line X+1 points to the next contiguous 128B line of instruction text after line X. In one or more embodiments, block 510 can recognize that the accelerator no longer knows where to go and therefore continues to move the prediction even though the LIB has run out of indexes to access BTB1. In such a case, index pipeline 552 is configured to generate the next sequential line and use it to search BTB1.
[0032] At block 508, the metadata predictor 200 is configured to index BTB1 206 by sending a list of indexes from the LIB 204 to access and query BTB1 206. Each index of the index is utilized to read BTB1 206. An index is a subset of address bits used to access an entry in BTB1 (i.e., multiple addresses sharing the same index). A tag is used to verify that what is retrieved from BTB1 matches the address being looked for. Although not shown, various queues may be utilized in the index pipeline 552 and prediction pipeline 554 to hold data, if applicable. As a branch target buffer, BTB1 206 contains and tracks branches that are predicted to be taken (and / or decided to be taken) and predicted not taken, along with their targets. BTB1 206 is a large array and / or cache that contains metadata about branch details. BTB1 206 holds the instruction address bits as a tag for the search.
[0033] At block 514, the metadata predictor 200 is configured to check for a hit in BTB1 206. The tags in BTB1 (for example) are compared to the current search tags in the index. If they match, the line of metadata read from BTB1 will be used as an input to the prediction pipeline 554. If the tags in BTB1 do not match the current search tags, the line is not used for prediction. In one or more embodiments, whether there is a hit does not affect the flow, and the metadata predictor 200 can write the metadata to the LOB regardless of the hit. Thus, the flow from block 514 may be modified based on the implementation, and one implementation may choose to remove this metadata since it cannot be used for prediction.
[0034] In block 520 of the prediction pipeline 554, the metadata predictor 200 (e.g., using the LOB logic 228) is configured to populate the LOB 208 with data from BTB1 206. Note that the LIB 204 and the LOB 208 are smaller in size and capacity than BTB1 206. The LOB 208 is populated with data from cache hits on BTB1 206. Just like BTB1 206, the LOB 208 stores branch and target address information, including location, direction, and target. It should be understood that while BTB1 and the LOB can be used for branch prediction, they can be used for any purpose, along with any metadata.
[0035] At block 522, the metadata predictor 200 (e.g., using the LOB logic 228) is configured to read a line (e.g., a cache line) in the LOB 208. For example, an index / index line from the LIB 204 is used to read a line of metadata from BTB1 206. In one or more embodiments, the output of the LOB 208 is a line of branch prediction metadata associated with the 128B line of instruction text searched for by the index from LIB 204.
[0036] At block 524, the metadata predictor 200 (e.g., using the LOB logic 228) is configured to check whether anything was read for a line of the LOB 208 (e.g., was it a line of metadata for the instruction address that was read). If no data was read for the cache line ("NO") (i.e., empty), flow returns to block 522. If "YES" data (e.g., a line of metadata for the instruction address) was read, the metadata predictor 200 (e.g., using the LOB logic 228) is configured to generate a prediction and send the prediction (e.g., target address) downstream at block 526. For example, the predicted target address is sent to an instruction cache and merger (ICM) unit and an instruction decode and dispatch unit (IDU) of the instruction execution pipeline 250 for processing. Additionally, at block 528, the metadata predictor 200 (e.g., using the LOB logic 228) is configured to check whether the predicted target address in the line of metadata is intra-line. When the predicted target address is intra-line, this means that the predicted target address is within the same / current line of metadata for the instruction text read from the LOB 208. If "YES" the predicted target address is within the current line read from the LOB 208, then in block 530 the metadata predictor 200 (e.g., using the LOB logic 228) is configured to update the entry instruction address and output the updated entry instruction address (next target address of the same line) that will be used to generate another prediction without another line having to be read from the LOB 208, and flow returns to block 530. The update of the entry instruction address indicates which branch is next considered for prediction. Continuing with the example using a 128B line, assume that the first search of the line was at byte 20 of the 128B line.This means that if there are branches in bytes 0 to 19, the metadata predictor 200 is not interested in these branches since processing has already branched beyond this instruction text. An intra-line branch may bring the metadata predictor 200 back to byte 20 immediately (e.g., for a small loop), but in some cases may take processing to a different byte. If the target of the intra-line branch was to take processing to byte 10 instead of byte 20, the metadata predictor 200 would have to consider any branch in bytes 10 to 19 even though the metadata predictor 200 had not made the last prediction. Thus, in effect, the search start position is moved based on the intra-line target. Blocks 526, 528, and 530 allow the execution of a loop 550 in a prediction pipeline 554 that generates a new prediction using the current line with the updated instruction address (i.e., updated target address), thereby making the metadata predictor 200 faster by not having to read another / subsequent line (or entry).
[0037] If the predicted target address is not intra-line ("NO"), the metadata predictor 200 (e.g., using the LOB logic 228) is configured to increment the read pointer in block 532 and flow returns to block 522. This causes the LOB 208 to read the next line. In one or more embodiments, the LOB can be implemented as a LIB, as a FIFO, while other implementations are possible. Thus, if the metadata predictor 200 determines that there is no intra-line branch, this means that the metadata predictor 200 is implemented at this LOB entry and can increment to the next entry in the FIFO.
[0038] FIG. 6 is a block diagram of an example metadata predictor cache, according to one or more embodiments. FIG. 6 illustrates three lines of code, line X, line Y, and line Z, each of which includes a dynamically guessed taken (DGT) branch. Information about these branches is collected in BTB1 206. In other words, lines X, Y, and Z (lines of metadata for X, Y, and Z) are stored in LOB 208 (i.e., a prediction cache). Using an index from LIB 204, metadata predictor 200 (e.g., using LOB logic 228) searches for an instruction address on line X of code in LOB 208 at event 602 and predicts (e.g., using prediction logic 230) a dynamically taken branch on line X of code that branches to line Y of code in LOB 208 at event 604. After branching to the target instruction address on line Y of code, metadata predictor 200 (e.g., using LOB logic 228) searches for the instruction address on line Y of code at event 606 and predicts (e.g., using prediction logic 230) the dynamically taken branch on line Y of code that branches to line Z of code in LOB 208 at event 608. After branching to the target instruction address on line Z of code, metadata predictor 200 (e.g., using LOB logic 228) searches for the instruction address on line Z of code in LOB 208 at event 610 and the process continues.
[0039] Figure 7 is a block diagram of an example general pipeline including an index pipeline 552 and a prediction pipeline 554, according to one or more embodiments. Referring back to the flow of Figure 5, all orange (e.g., depicted with dots) refers to processes to the left of the dotted line, and all green refers to processes to the right of the dotted line. Each B0 (orange) indicates that an entry is read from the LIB and is used to index BTB1. Each B2 (e.g., depicted with a diagonal line sloping upwards, green) indicates that an entry is read from the LOB and is for generating a prediction.
[0040] FIG. 8 is a block diagram of an example metadata predictor cache, according to one or more embodiments. FIG. 8 illustrates three lines of code, line X, line Y, and line Z, that contain dynamically speculated taken (DGT) branches. Information about these branches is collected in BTB1 202. FIG. 8 is an example of an intra-line case. Using an index from LIB 204, metadata predictor 200 (e.g., using LOB logic 228) is configured to first search an instruction address in line X of code at event 802, which results in a dynamically speculated taken branch (DGT) at event 804, which leads metadata predictor 200 to another instruction address in line X of code (i.e., intra-line). In the prediction pipeline 554, the metadata predictor 200 (e.g., using the LOB logic 228) recognizes an intra-line branch at event 804, and the metadata predictor 200 (e.g., using the LOB logic 228) can decide to reuse the metadata for line X from the LOB 208 (e.g., predictor cache) with a new start instruction (X') at event 806, rather than going back to BTB1 206 to re-fetch the metadata for line X. At event 806, the metadata predictor 200 (e.g., using the LOB logic 228) searches for a target instruction address (X') on the same line X of code that has metadata. This process of reusing the metadata for line X of code previously read from the LOB 208 without re-fetching the metadata from the LOB 208 can continue as a loop 550 (depicted in FIG. 5) for numerous instruction addresses that branch to the dynamically inferred taken branch, all on the same line X of code. This results in faster branch prediction. At some point, loop 550 meets a condition for termination because the dynamically inferred taken branch (X') at event 808 branches to a target instruction address that is not on line X of code, such as, for example, on line Y of code.After branching to the target instruction address on line Y of code, metadata predictor 200 (e.g., using LOB logic 228) searches for the target instruction address (Y) on line Y of code at event 810 and predicts (e.g., using prediction logic 230) the dynamically taken branch on line Y of code that branches to line Z of code in the LOB 208 at event 812. After branching to the target instruction address on line Z of code, metadata predictor 200 (e.g., using LOB logic 228) searches for the instruction address (Z) on line Z of code in the LOB 208 at event 814 and the process continues.
[0041] FIG. 9 is a block diagram of an example of a general pipeline including an index pipeline 552 and a prediction pipeline 554, according to one or more embodiments. Branching at event 604. In particular, FIG. 9 illustrates an intra-line example where the metadata predictor 200 predicted two branches from a single read of the LOB 208. As in FIG. 7, there are two separate index and prediction pipelines. However, FIG. 9 illustrates an intra-line branch. The behavior of the index pipeline 552 remains the same, but the prediction pipeline 554 can generate additional predictions without accessing an additional BTB1 via the index pipeline.
[0042] FIG. 10 is a flowchart of a computer-implemented method 1000 for indexing BTB1 208, populating LOB 208, and generating predictions using metadata predictor 200 in accordance with one or more embodiments of the present invention. Computer-implemented process 1000 may be implemented using computer system 100 of FIG. 1. Processor 101 of FIG. 1 may include and / or perform the functionality of processor 101 discussed herein, along with any other processors discussed herein. The functionality of processor 101 may be used and / or performed in hardware components of hardware and software layer 60 depicted in FIG. 31.
[0043] At block 1002 of the computer-implemented method 1000, the metadata predictor 200 is configured to operate the index pipeline 552 (e.g., using the LIB logic 224) to generate an index in an index buffer (e.g., the LIB 204) where the index is used to read a memory device (e.g., BTB1). At block 1004, the metadata predictor 200 is configured to populate a prediction cache (e.g., the LOB 208) with instruction metadata from the memory device (e.g., BTB1). At block 1006, the metadata predictor 200 is configured to operate the prediction pipeline 554 to generate a prediction using instruction metadata from the prediction cache (e.g., the LOB 208), where populating the prediction cache with instruction metadata is performed asynchronously with the operation of the prediction pipeline.
[0044] Populating the prediction cache with instruction metadata performed asynchronously with the operation of the prediction pipeline includes continually indexing a memory device (e.g., BTB1 206) to retrieve metadata for the prediction cache, independent of the process of the prediction pipeline. For example, the metadata predictor 200 (e.g., using the LIB logic 224) is configured to execute blocks 504, 506, 508, 510, 512 of the index pipeline 552 of FIG. 5, thereby populating the LOB 208 with metadata from BTB1 206 (or storing metadata in the LOB 208) without triggering any execution of, and independent of, blocks 522, 524, 526, 528, 530, 532 of the prediction pipeline 554 of FIG. 5.
[0045] The index buffer (e.g., LIB 204) is configured to read a memory device (e.g., BTB1 206) with metadata for the prediction cache before generating a prediction, rather than relying on generating a prediction (e.g., by prediction logic 230) using metadata from the prediction cache (e.g., LOB 208). For example, the metadata predictor 200 (e.g., using LIB logic 224) is configured to execute blocks 504, 506, 508, 510, 512 of the index pipeline 552 of FIG. 5, which does not rely on generating a prediction result via prediction logic 230 in block 526 of the prediction pipeline 554 of FIG. 5, and reads metadata from BTB1 206 to the LOB 208 before generating a prediction result. The prediction pipeline 554 is configured to output a line of instruction metadata from the prediction cache (e.g., LOB 208). For example, the metadata predictor 200 (eg, using the LOB logic 228 ) is configured to read a line of metadata from the LOB 208 for further processing in the prediction pipeline 554 .
[0046] The prediction pipeline 554 is configured to continually reuse lines of instruction metadata from the prediction cache without having to access a memory device (e.g., BTB1) again. For example, the metadata predictor 200 of the processor 101 is configured to execute a loop 550 that includes blocks 526, 528, 530 of the prediction pipeline 554 without having to access (read) the LOB 208 again when a dynamically inferred taken branch is intra-line (i.e., on the same line of metadata previously read from the LOB 208).
[0047] The prediction pipeline 554 is configured to continually reuse a line of instruction metadata output from the prediction cache to generate a new prediction in response to a previous prediction being predicted for the (same) line of metadata. For example, the metadata predictor 200 of the processor 101 is configured to execute a loop 550 including blocks 526, 528, 530 of the prediction pipeline 554 to continually reuse a line of instruction metadata output from the LOB 208 to generate a new prediction using the prediction logic 230 in block 526 in response to a previous prediction for a dynamically inferred taken branch being intra-line (i.e., on the same line of metadata previously read from the LOB 208).
[0048] The predictions are provided to an out-of-order instruction execution pipeline 250, which operates in parallel with an index pipeline 552 and a prediction pipeline 554.
[0049] As discussed herein, the LIB 204 may be indexed. Additionally, the line index accelerator 202 of the metadata predictor 200 may be utilized to further populate the LIB 204, allowing BTB1 to be accessed ahead of the prediction pipeline 554, thereby minimizing prediction latency. In one or more embodiments, an example implementation may access BTB1 using bits 48:56 of the instruction address since the number of entries in BTB1 should be 512. The example may stop at bit 56 since the example implementation operates on 128B lines (i.e., 57:63=7 bits corresponding to 128B).
[0050] According to one or more embodiments, the line index accelerator 202 contains a record of the next exit branch target (i.e., exit target instruction address) for a given entry point (i.e., entry instruction address). The record in the line index accelerator 202 contains an indication of both the line exit branch and the line to be accessed successively. For example, an array within the line index accelerator 202 may contain information about line exit branches and sequential line usage. The line index accelerator 202 may include a sequential line offset engine that generates sequential line indexes when sequential line indexes need to be accessed. The line index accelerator 202 uses this information to populate the LIB 204 (used to index BTB1 206) so that BTB1 206 can be read before the prediction pipeline 554. Once BTB1 206 is read, the target address of the remaining exit branch (i.e., the remainder of the target instruction address at the exit point for the branch) may be determined via an initial target comparison mechanism, which may be referred to as a payload matching mechanism.
[0051] To illustrate details of the line index accelerator 202 of the metadata predictor 200, Figure 11 is a flow chart of an accelerator flow 1100 for writing to the line index accelerator 202, according to one or more embodiments. The line index accelerator 202 may include and / or utilize accelerator logic 222 for implementing the accelerator flow 1100 and accelerator flow 1200, described below in Figure 12.
[0052] In block 1102 of the accelerator flow 1100, the line index accelerator 202 is configured to receive a successful prediction. The successful prediction may be received as an output from the prediction pipeline 554, or from the instruction execution pipeline 250, or both. The successful prediction may be for an instruction address that has a branch that may or may not be taken. In block 1104, the line index accelerator 202 is configured to check whether the branch was taken or not taken. If the branch was not taken ("No"), the line index accelerator 202 is configured to increment an offset in block 1106 and the flow returns to block 1102. Nothing is written to the line index accelerator 202. Incrementing the offset refers to processing the next line of metadata that is ready to be stored in the line index accelerator since the line index accelerator did not find a taken branch. If the “Yes” branch was taken, the line index accelerator 202 is configured to check whether the taken branch was intra-line in block 1108. As referred to herein, intra-line refers to the target address being on the same line of metadata as the instruction address being searched for (i.e., the entry instruction address and the target address are on the same line of metadata). If the “Yes” taken branch target address is intra-line, the line index accelerator 202 is configured to return to block 1102 and nothing is written to the line index accelerator 202. On the other hand, if the (“No”) taken branch target address is not intra-line, the line index accelerator 202 is configured to check whether the taken branch target address is correct in block 1110.If the target address is correct ("Yes"), flow proceeds to block 1102 and nothing is written to the line index accelerator 202. In other words, the next line required for the target address is already in the index pipeline 552 and the prediction pipeline 554. If the target address of the taken branch is not correct ("No"), the line index accelerator 202 is configured to restart the line index accelerator 202 at block 1112 and update the line index accelerator 202 at block 1114. Furthermore, the restart event restarts all pipelines including the accelerator, index, and prediction pipelines. Updating the line index accelerator 202 may include adding the correct target address of the taken branch so that the correct target address is available for the taken branch. Also, updating the line index accelerator 202 may include updating the branch offset and any tag information used to determine a hit.
[0053] FIG. 12 is a flow chart of an accelerator flow 1200 for reading the line index accelerator 202 into the LIB 204, according to one or more embodiments. The line index accelerator 202 can include and / or utilize accelerator logic 222 for implementing the accelerator flow 1200. In block 1202 of the accelerator flow 1200, the line index accelerator 202 is configured to receive a reset event, the reset event having an instruction address as a reset address. An example of a reset event can be a false branch. In block 1204, the line index accelerator 202 is configured to index (e.g., query) the line index accelerator 202 using the reset address. In block 1206, the line index accelerator 202 is configured to check whether the reset address is a hit in the line index accelerator 202. If there is no hit from the instruction address (i.e., the reset address) ("No"), the line index accelerator 202 is configured to shut down the line index accelerator 202 and wait from the next reset address in block 1208. If there is a hit from the instruction address (i.e., the reset address) ("Yes"), the line index accelerator 202 is configured to check whether the line read from the line index accelerator 202 requires a sequential line in block 1210. ("No") If the line read from the line index accelerator 202 does not require a sequential line, the line index accelerator 202 is configured to multiplex the read line (i.e., the target line) in block 1214 so that the line is written to the LIB 204 in block 1216.Further, flow returns to block 1204 so that the line that was read (i.e., the target line) is used to query / index the line index accelerator 202 for the next exit branch.
[0054] If the line read from the line index accelerator 202 requires a sequential line, then the line index accelerator 202 is configured to perform a line offset to output the sequential line in block 1212. In block 1214, the line index accelerator 202 is configured to multiplex the sequential line to the LIB 204 and write the sequential line to the LIB 204 in block 1216. For example, if the line read from the line index accelerator 202 is line X, then the line index accelerator 202 is configured to perform a line offset to obtain line X+1, where line X+1 corresponds to a subset of the instruction address bits required to search for line X+1 in BTB1 206, and therefore the line index accelerator 202 stores line X+1 immediately after line X in the LIB 204. Implementing a line offset refers to adding a predetermined number of bits to a previous line (e.g., line X) to create a sequential line (e.g., line X+1) that is used as an index to query a corresponding line of metadata for the sequential line in BTB1 206. Because each line of metadata in BTB1 206 is of a known format (e.g., the line of metadata is 128B), the offset is a fixed amount to move to the next line (i.e., sequential line). The sequential line (e.g., sequential line X+1) is fed back to block 1210, where the line index accelerator 202 is configured to check if another sequential line is needed, and if so, a line offset is added in block 1212 to generate the next sequential line, e.g., sequential line X+2. This loop may continue three times, in one or more embodiments, resulting in sequential lines X+1, X+2, X+3, each of which is written to LIB 204.In one or more embodiments, sequential lines X+1, X+2, X+3 may be written consecutively to the LIB 204. In one or more embodiments, sequential lines X+1, X+2, X+3 may all be written simultaneously, e.g., in parallel with the LIB 204.
[0055] 13 is a block diagram of an example latency accelerator entry for the line index accelerator 202, according to one or more embodiments. The example accelerator entry has a first portion 1350 that is used to determine what is written (stored) to the LIB 204 and how to continue the search of the line index accelerator 202. When the line index accelerator 202 no longer needs to generate a sequential line, the target of the exit branch that will be the entry point of the next search is fed back to the line index accelerator 202 to read the new line. The first portion 1350 of the example accelerator entry includes an exit branch target field 1302, e.g., as instruction address bits 48:62, an offset field 1304 as bits 0:1, and a SKOOT field 1306 as bits 0:1.
[0056] A second portion 1352 of the example accelerator entry is used for hit detection within the line index accelerator 202. The second portion 1352 includes an entry point field 1308, for example, as instruction address bits 48:53, a global path vector (GPV) field 1310, for example, as instruction address 0:1, and a transaction register (TID) field 1312.
[0057] FIG. 14 is a flow chart of an accelerator flow 1400 for performing payload matching, according to one or more embodiments. The line index accelerator 202 can include and / or utilize accelerator logic 222 for performing the accelerator flow 1400. The payload matching combines BTB1 data with accelerator data to find instruction address bits required for hit detection. In blocks 1402, 1404 of the accelerator flow 1400, the line index accelerator 202 is configured to populate the LIB 204 with contents that are instruction address bits for lines of metadata and "OR" the output. In one or more embodiments, the line index accelerator 202 can mux the output from BTB1. The LIB 204 operates independently. If LIB 204 contains valid entries that have not yet been used to index BTB1, LIB 204 will send them to BTB1 for indexing, and when BTB1 is read, its contents will be used in conjunction with the next LIB entry for payload matching. For example, payload matching uses IA(48:62) of two LIB entries (in this example, X(48:62) and Y(48:62) to find Y(32:47), which is needed for the next search). The line index accelerator 202 does not need Y(32:47) to query BTB1 during the next search, but the line index accelerator 202 needs Y(32:47) for hit detection, for example, in block 514 discussed herein. The tag is bits Y(32:47) of the current search line. BTB1 contains bits 32:47 of the 128B line that was read (e.g., this is sometimes referred to as BTB1(32:47)).To determine if there is a hit, Y(32:47) and BTB1(32:47) must match, if they do not match, then what was read is for a different line. Payload matching looks at all of the target addresses of the current search X to find the Y(32:47) for the next search. BTB1 206 can operate on a parent base design, where BTB1 206 is divided into or operates on four quadrants BTB1 206_0, BTB1 206_1, BTB1 206_2, BTB1 206_3 (collectively referred to as BTB1 206). After being indexed (e.g., searched), each BTB1 206_0, BTB1 206_1, BTB1 206_2, BTB1 206_3 will have its output. In one or more embodiments, each of BTB1 206_0, BTB1 206_1, BTB1 206_2, and BTB1 206_3 can output target instruction address bits (32:62) for up to six branches.
[0058] FIG. 15 is a block diagram of an example accelerator, according to one or more embodiments. FIG. 15 illustrates three lines of code, line X, line Y, and line Z (with branches) in the line index accelerator 202. Information (i.e., metadata) about these branches has been collected in the BTB1 202. In the index pipeline 552, the line index accelerator 202 is configured to be indexed (e.g., queried) with the entry instruction address (X) for line X, and the line index accelerator 202 finds a pointer to the entry instruction address (Y) for line Y. Thus, the line index accelerator 202 is configured to write the entry instruction address (Y) for line Y to the LIB 204. Also, the entry instruction address (X) for line X has an exit branch on line X.
[0059] The line index accelerator 202 is configured to be indexed with the entry instruction address (Y) for line Y, and the line index accelerator 202 finds a pointer to the entry instruction address (Z) for line Z. Thus, the line index accelerator 202 is configured to write the entry instruction address (Z) for line Z to the LIB 204. The entry instruction address (Y) for line Y has an exit branch on line Y. Further, the line index accelerator 202 is configured to be indexed with the entry instruction address (Z) for line Z, and the process continues.
[0060] FIG. 16 is a block diagram of an example accelerator according to one or more embodiments. FIG. 16 illustrates four lines of code in the line index accelerator 202, depicting the use of sequential lines. Information (e.g., metadata) about these branches is collected in BTB1 202. In the index pipeline 552, the line index accelerator 202 is configured to index with an entry instruction address (X) for line X, and the line index accelerator 202 finds a pointer to an entry instruction address (Y) for line Y. To find a pointer to the entry instruction address (Y) on line Y, the line index accelerator 202 is configured to determine that the entry instruction address (X) for line X indicates that a sequential line is required (e.g., as discussed in block 1210 of FIG. 12). The line index accelerator 202 is configured to generate sequential line X+1 and write the sequential line X+1 to the LIB 204 (e.g., as discussed in blocks 1212, 1214, and 1216 of FIG. 12). The loop of blocks 1210, 1212, 1214, and 1216 may continue three times, resulting in sequential lines X+1, X+2, and X+3. However, only sequential line X+1 is depicted in FIG. 16. Note that sequential line X+1 is after line X (i.e., the next consecutive line) and before line Y. The same is true for lines X+1 and X+2. In another case, the line index accelerator 202 would write each of sequential lines X+1, X+2, and X+3 to the LIB 204. Returning to the example of FIG. 16, the line index accelerator 202 then writes the entry instruction address (Y) to the LIB 204.
[0061] The line index accelerator 202 is configured to index with the entry instruction address (Y) for line Y (e.g., depicted as flow from block 1210 back to block 1204 in FIG. 12), and the line index accelerator 202 finds a pointer to the entry instruction address (Z) for line Z. Thus, the line index accelerator 202 is configured to write the entry instruction address (Z) to the LIB 204. Further, the line index accelerator 202 is configured to index with the entry instruction address (Z) for line Z, and the process continues.
[0062] FIG. 17 is a block diagram of an example pipeline including a line index accelerator without a line offset, according to one or more embodiments. In this example, the line index accelerator 202 is populated. FIG. 17 is similar to the pipeline diagrams described above in FIG. 7 and FIG. 9, but here the line index accelerator 202 is added in a mixed fashion (e.g., the yellow block depicted as a diagonal line sloping upwards to the left). Upon reset, both the index pipeline and the accelerator pipeline begin using the reset address. In cycle 1, the index pipeline writes line X+1 (e.g., depicted as block 512 in FIG. 5) to LIB because the accelerator has not yet completed one pass of the pipeline. In cycle 4, the line index accelerator 202 sees that it does not need line X+1, but line Y instead, so the index pipeline for line X+1 is canceled, the LIB entry for line X+1 is replaced with line Y, and B0 for line Y is started. This creates a bubble in the delivery of the prediction (there is no B4 in cycle 6) because the X+1 search was canceled with new information from the line index accelerator 202.
[0063] FIG. 18 is a block diagram of an example pipeline including a line index accelerator with line offset, according to one or more embodiments. In this example, the line index accelerator 202 is populated. FIG. 18 is similar to FIG. 17, but now FIG. 18 adds sequential lines in a mixed fashion. In one example case, even though the line index accelerator 202 knows that we want line X+1, it blindly cancels the already started X+1 index pipeline (the one that started in cycle 2) and triggers another one two cycles later, resulting in the same predicted delivery bubble that was in FIG. 17.
[0064] FIG. 19 is a block diagram of an example pipeline including a line index accelerator with line offsets, according to one or more embodiments. In this example, the line index accelerator 202 is populated. FIG. 19 represents efficiencies that are fixed and / or added to the example of FIG. 18. Thus, the line index accelerator 202 implementing the accelerator pipeline is configured to recognize that the reset search does not need to generate the X+1 line for LIB, since the X+1 line should have happened automatically. Thus, the line index accelerator 202 writes line Y to the end of LIB, rather than generating X+1 for LIB to write. In another case, it is assumed that the earlier accelerator search knew that two sequential lines were needed, and the line index accelerator 202 would have written X+2 and Y to LIB. By resolving this potential issue, the index pipeline search for X+1 is not canceled and no prediction bubble occurs.
[0065] FIG. 20 is a block diagram of an example pipeline including a line index accelerator with line offset and intra-line branching, according to one or more embodiments. In this example, the line index accelerator 202 is populated. Similar to FIG. 18, FIG. 20 adds an intra-line branching in the mix, where line X is now accessed twice. Because line X has an intra-line branching, the prediction bubble created by the potential problem of FIG. 18 is hidden. Regardless of the resolution of the potential problem of X+1 that exists, the prediction bubble may still be present from FIG. 17. However, the presence of the intra-line branching should hide this bubble.
[0066] FIG. 21 is a flowchart of a computer-implemented method 2100 for determining an index for the LIB 204 of the metadata predictor 200 using the line index accelerator 202 before the index is needed to read BTB1 206 into the LOB 208, in accordance with one or more embodiments of the present invention. The computer-implemented method 2100 may be implemented using the computer system 100 of FIG. 1. The processor 101 of FIG. 1, together with any other processors discussed herein, may include and / or perform the functionality of the metadata predictor 200 discussed herein. As mentioned herein, the functionality of the processor 101 may be used and / or performed in the hardware components of the hardware and software layer 60 depicted in FIG. 31.
[0067] At block 2102 of the computer-implemented method 2100, the metadata predictor 200 is configured to query an index accelerator (e.g., the line index accelerator 202) using the reset address. At block 2104, in response to the query, the metadata predictor 200 is configured to determine that an index line (e.g., line X) is present in the index accelerator (e.g., the line index accelerator 202). At block 2106, in response to checking whether the index line has a sequential line in the index accelerator, the metadata predictor 200 is configured to determine a sequential line to the index line in the index accelerator (e.g., the line index accelerator 202). 12, the line index accelerator 202 may be configured to check whether the line index accelerator 202 includes a sequential line, such as sequential line X+1, to an index line (e.g., line X). At block 2108, the metadata predictor 200 may be configured to populate (write) the index buffer with the sequential line.
[0068] The index accelerator is configured to determine one or more other sequential lines (e.g., sequential lines X+2, X+3) based on the index line (e.g., line X). The index accelerator (e.g., line index accelerator 202) is configured to place the sequential line and one or more other sequential lines into an index buffer before the sequential line and one or more other sequential lines required by a prediction pipeline (e.g., prediction pipeline 554 and / or instruction execution pipeline 250). The index line includes an exit target instruction address of a branch for a given entry instruction address. In one or more embodiments, the index line may include a hash formed to take into account the exit branch instruction address and the target instruction address of the exit branch.
[0069] There are many technical benefits and solutions from using a processor with a line index accelerator according to one or more embodiments. The line index accelerator maintains an index pipeline before the prediction pipeline, meaning that the LIB has and uses an index to read BTB1 into the LOB before the output from the LOB is needed to generate a prediction. For example, the line index accelerator, when prepared according to one or more embodiments, reduces prediction latency from four cycles to two cycles. The line index accelerator also reduces the impact of delays in the index pipeline on prediction latency, since the index pipeline can read ahead as a result of the index being provided to the LIB by the index accelerator. As a further technical benefit and solution, the line index accelerator ignores taken intra-line branches and all not taken branches. When trying to determine which BTB1 index needs to be searched, none of the not taken branches are relevant. This therefore allows the prediction pipeline to leverage a metadata prediction cache (e.g., LOB) without impacting the index pipeline, thereby substantially increasing the capacity of the latency accelerator. One or more embodiments using a line index accelerator enable set associativity, and thus multiple beneficial exit branches can be stored at the same index. As an additional technical benefit and solution, one or more embodiments limit the number of address bits required to traverse the branch prediction through the code (e.g., to be stored in the line index accelerator) by leveraging the implementation of a BTB1 read to find the remaining instruction address bits during payload matching. This enables the use of a small line index accelerator and LIB array.
[0070] According to one or more embodiments, the metadata predictor 200 of the processor 101 may include a variable length metadata prediction pipeline, as discussed further herein. For example, the variable length metadata prediction pipeline may be included in the prediction pipeline 554, and the variability is based on strategically delaying the time for outputting the prediction in the prediction pipeline 554. In one or more embodiments, the prediction logic 230 of the prediction pipeline 554 may include a main predictor 2202 and an auxiliary predictor 2204 (e.g., auxiliary predictors 1, 2, 3) as depicted in FIG. 22, along with other digital logic circuits (not shown) as understood by those skilled in the art. One or more embodiments are configured to incorporate slower and more accurate auxiliary predictors and external delays into the prediction pipeline 554 by dynamically increasing the length (latency) of the prediction pipeline 554 as needed. The main predictor 2202 may not have the accuracy of the auxiliary predictor 2204, but can be a typical metadata predictor that makes faster predictions. In one or more embodiments, the primary predictor 2202 may include a dependency predictor, a load / store dependency predictor, a branch history table predictor, a taken or not taken branch predictor, other metadata predictors, or combinations of the same. The auxiliary predictor 2204 may include a perceptron branch predictor with virtualized weights, an auxiliary branch predictor with informativeness tracking, other metadata predictors, or combinations of the same.
[0071] Most branches are predictable directly from the BTB information, resulting in the lowest possible latency branch prediction. Some branches are more complex and require help from higher accuracy auxiliary predictors. Often these auxiliary predictors take more time to generate predictions and / or are not physically close to the prediction pipeline (due to silicon area limitations). Delaying all predictions to accommodate these less frequently used auxiliary predictors would be wasteful. Therefore, one or more embodiments implement a dynamic, variable length prediction pipeline that allows these slower (auxiliary) predictions by the auxiliary predictor 2204 to be incorporated into the prediction pipeline 554 as needed, without delaying the faster and simpler (primary) predictions performed by the primary predictor 2202.
[0072] To illustrate further details of the variable length metadata prediction pipeline of the metadata predictor 200, Figure 23 is a flowchart of a variable length metadata prediction pipeline flow 2300 for determining when to use the auxiliary predictor 2204 (even when the primary predictor 2202 is used) and / or when to extend the prediction pipeline, according to one or more embodiments. In the metadata predictor 200, the prediction logic 230, including the primary predictor 2202, the auxiliary predictor 2204, and logic, is available to implement the variable length metadata prediction pipeline flow 2300 discussed herein.
[0073] In block 2302 of the variable length metadata prediction pipeline flow 2300, the metadata predictor 200 is configured to read a line of metadata from the LOB 208. For example, the LIB 204 is configured to query the BTB1 206 with the index / index line, and the output of the BTB1 206 populates the LOB 208. The LOB 208 processes the metadata on its own as it becomes available. In block 2304, the metadata predictor 200 is configured to check if the outputted line of metadata is valid. For example, it checks if something was actually read from the LOB 208. If ("No") the line of metadata was not actually read, the flow returns to 2302. If the "Yes" metadata line is valid, the metadata predictor 200 is configured to simultaneously generate a prediction using the primary predictor 2202 of the predictor logic 230 in block 2306 and generate an auxiliary prediction using the auxiliary predictor 2204 (e.g., auxiliary predictor 1, 2, 3) of the predictor logic 230 in block 2308. In block 2310, the metadata predictor 200 is configured to multiplex the primary prediction from the primary predictor 2202 with the auxiliary prediction from the auxiliary predictor 2204 (e.g., auxiliary predictor 1, 2, 3). The auxiliary prediction is selectable when the auxiliary prediction and the primary prediction are different.
[0074] In block 2312, the metadata predictor 200 is configured to check whether the main prediction from the main predictor 2202 is different from the auxiliary prediction from the auxiliary predictor 2204. If the predictions are the same ("No"), the flow proceeds to block 2316. If the "Yes" main and auxiliary predictions are different (e.g., made in instruction vs. not made in instruction), the metadata predictor 200 is configured to provide a selection of a bit (e.g., 0 or 1) to a multiplexer in block 2320 to indicate that the auxiliary prediction should be passed to the "AND" logic. Otherwise, e.g., in the absence of a selector signal from block 2312, the multiplexer passes the main prediction. Furthermore, if the "Yes" main and auxiliary predictions are different, the metadata predictor 200 is configured to check in block 2314 whether the auxiliary prediction is complete and / or ready. Checking whether the auxiliary prediction is complete / ready includes verifying that all information from the auxiliary prediction is available. The auxiliary prediction contained enough information to determine that the auxiliary prediction is different from the main prediction, but the auxiliary prediction may still be waiting for the appropriate instructions and / or target information to be sent to the prediction pipeline 554 for processing. In an example implementation, the metadata predictor 200 may be configured to assume that the main prediction is correct and that the auxiliary predictor 2204 is no longer needed since it has already had the multiplexer 2310 select it. When the metadata predictor 200 knows that the auxiliary prediction is different, it is configured to wait until some subsequent cycle to generate the correct multiplexing selection and then broadcast the prediction (using the new target / instruction information from the auxiliary predictor 2204). If "Yes" the auxiliary prediction is ready, the "AND" logic may be informed. If ("No") the auxiliary prediction is not completed / ready, the metadata predictor 200 is configured to check in block 2316 whether the length or latency of the prediction pipeline 554 should be extended.In some cases, the length or latency of the prediction pipeline 554 may be extended until the auxiliary prediction is ready, but back to block 2312 and / or block 2302. Additionally, if the metadata predictor 200 receives a signal and / or indication that the instruction execution pipeline 250 is not ready to receive a new prediction from block 2318, the metadata predictor 200 is configured to extend the time (i.e., latency) of the prediction pipeline 554 by delaying downstream broadcast of the new prediction (i.e., the auxiliary prediction, and / or the primary prediction) to the instruction execution pipeline 250. In one or more embodiments, the metadata predictor 200 may reroute the flow back to block 2312 to extend the pipeline, thereby extending the time (i.e., latency) before the new prediction is broadcast downstream to the instruction execution pipeline 250. In one or more embodiments, the metadata predictor 200 can reroute the flow back to block 2302 (rerouting is shown here) to extend the pipeline, thereby extending the time (i.e., latency) before the new prediction is broadcast downstream to the instruction execution pipeline 250. In one or more embodiments, the metadata predictor 200 can instruct the “AND” logic to hold the new prediction for a predetermined number of clock cycles (e.g., using one or more latches and / or other digital logic components) to extend the pipeline, thereby extending the time (i.e., latency) before the new prediction is broadcast downstream to the instruction execution pipeline 250. In one or more embodiments, the metadata predictor 200 can instruct a counter (not shown) to count for a predetermined number of clock cycles to extend the pipeline, thereby extending the time (i.e., latency) before the new prediction is broadcast downstream to the instruction execution pipeline 250.The metadata predictor 200 is configured to continue checking for further extensions at block 2316 .
[0075] ("No") When the metadata predictor 200 stops receiving a signal or indication, or both (e.g., a bit), that the instruction execution pipeline 250 is not ready to receive a new prediction from block 2318 and / or when an auxiliary prediction is ready, the metadata predictor 200 is configured to cause the "AND" logic to pass the new prediction (e.g., the auxiliary prediction) downstream through the logic to the instruction execution pipeline 250, at blocks 2320, 2322.
[0076] FIG. 24 is a block diagram of an example pipeline depicting downstream congestion, according to one or more embodiments. This example illustrates that downstream logic, which may be part of and / or coupled to the instruction execution pipeline 250, is not ready for a prediction (e.g., primary and / or auxiliary prediction) from the prediction logic 230. Note that the prediction logic 230 of the metadata predictor 200 is therefore configured to extend the prediction pipeline 554, as depicted in block 2316, and the line of metadata that started the (new) prediction is still present in the LOB 208. When the instruction execution pipeline 250 indicates that it is ready, the metadata predictor 200 can move the LOB pointer to repeat the output of the same line of metadata that started the (new) prediction, so that the new prediction is immediately passed to the instruction execution pipeline 250 (i.e., passed without delay and / or extension), thereby providing a variable-length (e.g., time) metadata prediction pipeline.
[0077] FIG. 25 is a block diagram of an example pipeline depicting the auxiliary predictor 2204 having a different prediction than the main predictor 2202, according to one or more embodiments. In the first attempt at prediction LY, when there is a different auxiliary prediction, the metadata predictor 200 chooses the main prediction, assuming that it should be the one to use. However, in cycle 6, when the metadata predictor 200 is about to broadcast the prediction, the metadata predictor 200 learns that the auxiliary predictor has different information. As a result, the metadata predictor 200 cancels the broadcast of the main prediction and selects a new auxiliary prediction (e.g., reduces the multiplicity). In one implementation example, this actually goes all the way back to B2 (which is why "b2" appears in parentheses under b4), and the metadata predictor 200 regenerates the prediction because it now knows the auxiliary prediction. Two cycles later, in B6, the new prediction can be reported and the flow can move to the next LOB entry.
[0078] 26 is a block diagram of an example pipeline depicting the auxiliary predictor 2204 having the same prediction as the primary predictor 2202, according to one or more embodiments. This example illustrates that the prediction pipeline 554 can operate without extensions and / or delays, thereby providing versatility in the prediction pipeline 554 to handle complex branches when extensions and / or delays occur, and / or simple branches when extensions and / or delays occur. Thus, the prediction pipeline 554 does not slack / delay by, for example, two clock cycles when the auxiliary and primary predictions are the same.
[0079] 27 is a flowchart of a computer-implemented method 2700 for using a variable length metadata prediction pipeline, according to one or more embodiments of the present invention. The computer-implemented method 2700 may be implemented using the computer system 100 of FIG. 1. The processor 101 of FIG. 1, together with any other processors discussed herein, may include and / or perform the functionality of the metadata predictor 200 discussed herein. The functionality of the processor 101 may be used and / or performed in the hardware components of the hardware and software layer 60 depicted in FIG. 31.
[0080] At block 2702 of the computer-implemented method 2700, the metadata predictor 200 is configured to generate a primary prediction (e.g., via the primary predictor 2202) and an auxiliary prediction (e.g., via the auxiliary predictor 2204) using a line of metadata (from the LOB 208). At block 2704, the metadata predictor 200 is configured to determine that the primary and auxiliary predictions differ. At block 2706, the metadata predictor 200 is configured to select or determine the use of the auxiliary prediction in response to the primary and auxiliary predictions differing. At block 2708, the metadata predictor 200 is configured to extend the length of the prediction pipeline 554 for a predetermined time (e.g., a predetermined number of clock cycles). At block 2710, the metadata predictor 200 is configured to provide the auxiliary prediction to the instruction execution pipeline 250 in response to extending for the predetermined time. The auxiliary prediction requires more processing time (e.g., more clock cycles) than the primary prediction.
[0081] There are many technical benefits and technical solutions provided by using a processor with a variable length metadata prediction pipeline according to one or more embodiments. As discussed herein, slower and more accurate predictions can be incorporated into the prediction pipeline without sacrificing the low latency of the basic prediction. The later predictions are applied before affecting downstream instruction fetches. Technical benefits and solutions allow the auxiliary predictor to be physically separate from the prediction pipeline on the integrated circuit chip to save area. For example, the variable length metadata prediction pipeline can take into account cases when downstream logic cannot accommodate more prediction information. The variable length metadata prediction pipeline can be used in conjunction with metadata predictor caches (e.g., LOBs) and intraline branch reuse. Additionally, the variable length metadata prediction pipeline can be incorporated into a parent-based system.
[0082] FIG. 28 is a block diagram of a system 2800 for a metadata predictor 200 according to an embodiment of the present invention. The system 2800 includes a processing circuit 2810 that is used to generate a design 2830 (including the metadata predictor 200) that is ultimately fabricated into an integrated circuit 2820. The steps involved in fabricating the integrated circuit 2820 are well known and are briefly described herein. Once a physical layout 2840 is finalized based in part on the metadata predictor 200 according to an embodiment of the present invention to facilitate optimization of the routing plan, the finalized physical layout 2840 is sent to a foundry. Masks are generated for each layer of the integrated circuit based on the finalized physical layout. The wafer is then processed in a mask-ordered sequence. Processing includes photolithography and etching. This is further discussed with reference to FIG. 29.
[0083] FIG. 29 is a process flow of a method for fabricating an integrated circuit according to an exemplary embodiment of the present invention. Once the physical design data based in part on the metadata predictor 200 is obtained, the integrated circuit 120 can be fabricated according to a known process generally described with reference to FIG. 29. Generally, a wafer having multiple copies of the final design is fabricated and cut (i.e., diced) such that each die is one copy of the integrated circuit 2820. In block 2910, the process includes fabricating a mask for lithography based on the finalized physical layout. In block 2920, fabricating the wafer includes performing photolithography and etching using the mask. Once the wafer is diced, in block 2930, inspection and classification of each die is performed to remove any defective die.
[0084] Although this disclosure includes a detailed description of cloud computing, it should be understood that implementations of the teachings recited herein are not limited to cloud computing environments. Rather, embodiments of the invention are capable of being practiced in conjunction with any other type of computing environment now known or later developed.
[0085] Cloud computing is a model of service delivery for enabling convenient, on-demand network access to a shared pool of configurable computing resources (e.g., networks, network bandwidth, servers, processing, memory, storage, applications, virtual machines, and services) that can be quickly provisioned and released with minimal administrative effort or interaction with a service provider. This cloud model may include at least five characteristics, at least three service models, and at least four deployment models.
[0086] The characteristics are as follows: On-Demand Self-Service: Cloud customers can unilaterally provision computing capacity, such as server time and network storage, as needed, automatically, without the need for human interaction with the service provider. Broad Network Access: Capabilities are available over the network and accessed through standard mechanisms that facilitate use by heterogeneous thin- or thick-client platforms (e.g., mobile phones, laptops, and PDAs). Resource Pooling: The provider's computing resources are pooled to serve multiple consumers using a multi-tenant model, where various physical and virtual resources are dynamically allocated and reallocated on demand. Location independence is meant in that consumers generally have no control or knowledge of the exact location of the resources provided, but may specify a location at a higher level of abstraction (e.g., country, state, or data center). Rapid Elasticity: Capacity is rapidly and elastically provisioned, sometimes automatically, to quickly scale out, and rapidly releasable to quickly scale in. To the consumer, the capacity available for provisioning often appears unlimited, and can be purchased in any amount at any time. Measured Services: Cloud systems automatically control and optimize resource usage by leveraging metering capabilities at some level of abstraction appropriate to the type of service (e.g., storage, processing, bandwidth, and available user accounts). Resource utilization can be monitored, controlled, and reported, providing transparency to both providers and consumers of the services being used.
[0087] The service model is as follows: Software as a Service (SaaS): The consumer is provided with the ability to use a provider's applications running on a cloud infrastructure. The applications are accessible from a variety of client devices through thin-client interfaces such as web browsers (e.g., web-based email). The consumer has no management or control over the underlying cloud infrastructure, including networks, servers, operating systems, storage, or possibly individual application capabilities, with the possible exception of limited user-specific application configuration settings. Platform as a Service (PaaS): The capability provided to a consumer is to deploy consumer-created or acquired applications, created using programming languages and tools supported by the provider, onto a cloud infrastructure. The consumer does not manage or control the underlying cloud infrastructure, including networks, servers, operating systems, or storage, but does have control over the deployed applications and, in some cases, the application hosting environment configuration. Infrastructure as a Service (IaaS): The capability provided to a customer is to provide processing, storage, networking, and other basic computing resources on which the customer can deploy and run any software, which may include operating systems and applications. The customer does not manage or control the underlying cloud infrastructure, but does have control over the operating systems, storage, deployed applications, and in some cases, limited control over selected networking components (e.g., host firewalls).
[0088] The deployment model is as follows: Private Cloud: The cloud infrastructure is operated solely for the organization. It may be managed by this organization or a third party and can exist on-premise or off-premise. Community Cloud: Cloud infrastructure is shared by several organizations to support a unique community that has shared concerns (e.g., mission, security requirements, policies, and compliance considerations). Cloud infrastructure can be managed by the organization or a third party and can exist on-premise or off-premise. Public Cloud: The cloud infrastructure is made available to the general public or large industry organizations and is owned by the organizations that sell cloud services. Hybrid Cloud: The cloud infrastructure is a composite of two or more clouds (private, community, or public) that remain unique entities but are tied together by standard or proprietary technologies that enable data and application portability (e.g., cloud bursting for load balancing between clouds).
[0089] Cloud computing environments are service-oriented with a focus on statelessness, low coupling, modularity, and semantic interoperability. At the heart of cloud computing is an infrastructure that includes a network of interconnected nodes.
[0090] Referring now to FIG. 30, an exemplary cloud computing environment 50 is depicted. As shown, the cloud computing environment 50 includes one or more cloud computing nodes 10 with which local computing devices used by cloud users, such as, for example, a personal digital assistant (PDA) or cellular phone 54A, a desktop computer 54B, a laptop computer 54C, or an automobile computer system 54N, or combinations thereof, may communicate. The nodes 10 may communicate with each other. The nodes 10 may be physically or virtually grouped in one or more networks, such as a private, community, public, or hybrid cloud, or combinations thereof, as described herein above (not shown). This allows the cloud computing environment 50 to provide infrastructure, platform, and / or software as a service without the cloud user having to maintain resources on a local computing device. The types of computing devices 54A-N shown in FIG. 30 are intended to be illustrative only, and it will be understood that the computing node 10 and cloud computing environment 50 are capable of communicating with any type of computerized device via any type of network and / or network addressable connections (e.g., using a web browser).
[0091] Referring now to Figure 31, a set of functional abstraction layers provided by cloud computing environment 50 (Figure 30) is shown. It should be understood in advance that the components, layers, and functions shown in Figure 31 are intended to be exemplary only, and embodiments of the present invention are not limited thereto. As depicted, the following layers and corresponding functions are provided:
[0092] Hardware and software layer 60 includes hardware and software components. Examples of hardware components include mainframes 61, RISC (reduced instruction set computing) architecture based servers 62, servers 63, blade servers 64, storage devices 65, and networks and networking components 66. In some embodiments, software components include network application server software 67, and database software 68.
[0093] The virtualization layer 70 provides an abstraction layer within which examples of virtual entities may be provided: virtual servers 71, virtual storage 72, virtual networks including virtual private networks 73, virtual applications and operating systems 74, and virtual clients 75.
[0094] In one example, the management layer 80 may provide the functions described below. Resource provisioning 81 provides dynamic procurement of computing and other resources utilized to perform tasks within the cloud computing environment. Metering and pricing 82 provides cost tracking as resources are utilized within the cloud computing environment and billing or invoicing for the usage of these resources. In one example, these resources may include application software licenses. Security provides identity verification of cloud consumers and tasks, and protection of data and other resources. User portal 83 provides consumers and system administrators with access to the cloud computing environment. Service level management 84 provides allocation and management of cloud computing resources such that required service levels are met. Service level agreement (SLA) planning and execution 85 provides pre-provisioning and procurement of cloud computing resources in anticipation of future requirements according to SLAs.
[0095] The workload tier 90 provides examples of functions for which a cloud computing environment may be utilized. Examples of workloads and functions that may be provided from this tier include mapping and navigation 91, software development and lifecycle management 92, virtual classroom instructional delivery 93, data analytics processing 94, transaction processing 95, and workloads and functions 96.
[0096] Various embodiments of the present invention are described herein with reference to the associated drawings. Alternative embodiments of the present invention may be devised without departing from the scope of the present invention. In the following description and drawings, various connections and relationships (e.g., above, below, next to, etc.) between elements are described. These connections and / or relationships may be direct or indirect unless otherwise specified, and the present invention is not intended to be limited in this respect. Thus, connections of entities may refer to direct or indirect connections, and relationships between entities may be direct or indirect relationships. Moreover, various tasks and process steps described herein may be incorporated into a more comprehensive procedure or process having additional steps or functions not described in detail herein.
[0097] One or more of the methods described herein may be implemented using any technology or combination of technologies, such as discrete logic circuits having logic gates for performing logical functions based on data signals, application specific integrated circuits (ASICs) having appropriate combinatorial logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), or the like, each of which is well known in the art.
[0098] For the sake of brevity, conventional technology relevant to the implementation and use of aspects of the present invention may or may not be described in detail herein. In particular, various aspects of computing systems and specific computer programs for implementing various technical features described herein are well known. Thus, for the sake of brevity, many conventional implementation details are only briefly mentioned herein or are omitted entirely without providing details of well-known systems and / or processes.
[0099] In some embodiments, various functions or acts may be performed at a given location, or in conjunction with the operation of one or more devices or systems, or both. In some embodiments, some of a given function or act may be performed at a first device or location, and remaining functions or acts may be performed at one or more additional devices or locations.
[0100] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It will be further understood that the terms "comprises" and / or "comprising", as used herein, specify the presence of stated features, integers, steps, operations, elements or components, or combinations thereof, but do not preclude the presence or addition of one or more other features, integers, steps, operations, element components, or groups thereof, or combinations thereof.
[0101] Corresponding structures, materials, acts, and equivalents of all means or steps and functional elements in the following claims are intended to include any structure, material, or act for performing a function in combination with other claim elements as specifically claimed. This disclosure has been presented for purposes of illustration and description, but is not intended to be exhaustive or limited to the disclosed form. Many modifications and variations that do not depart from the scope and spirit of the disclosure will be apparent to those skilled in the art. The embodiments have been chosen and described in order to best explain the principles and practical application of the disclosure, and to enable others skilled in the art to understand the disclosure of the various embodiments with various modifications as appropriate for the particular use envisaged.
[0102] The diagrams depicted herein are illustrative. There may be many variations to the diagrams or steps (or operations) described that do not depart from the spirit of the disclosure. For example, actions may be performed in a different order, or actions may be added, deleted, or modified. Also, the term "coupled" refers to having a signal path between two elements, and does not imply a direct connection between elements with no intervening elements / connections between them. All of these variations are considered to be part of the disclosure.
[0103] The following definitions and abbreviations will be used for interpreting the claims and the specification. As used herein, the terms "comprises," "comprising," "includes," "including," "has," "having," "contains," or "containing," or any other variation thereof, are intended to include a non-exclusive inclusion. For example, a structure, mixture, process, method, article, or device that includes a list of elements is not necessarily limited to only those elements, but can include other elements not expressly listed or inherent in such structure, mixture, process, method, article, or device.
[0104] Additionally, the term "exemplary" is used herein to mean "serving as an example, instance, or illustration." Any embodiment or design described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments or designs. The terms "at least one" and "one or more" are understood to include any integer number greater than or equal to one, i.e., 1, 2, 3, 4, etc. The term "multiple" is understood to include any integer number greater than or equal to two, i.e., 2, 3, 4, 5, etc. The term "connected" can include both indirect and direct "connected."
[0105] The terms "about," "substantially," "approximately," and variations thereof are intended to include the degree of error associated with the measurement of a particular quantity based on the equipment available at the time of filing this application. For example, "about" can include a range of ±8% or 5%, or 2% of a given value.
[0106] The present invention may be a system, method, or computer program product, or combination thereof, at any possible level of technical detail of integration. The computer program product may include a computer-readable storage medium (or media) having computer-readable program instructions for causing a processor to carry out aspects of the present invention.
[0107] A computer readable storage medium can be a tangible device capable of holding and storing instructions for use by an instruction execution device. A computer readable storage medium can be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of computer readable storage media includes portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD), memory sticks, floppy disks, mechanically encoded devices such as punch cards or ridge-in-groove structures having instructions recorded thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein should not be interpreted as signals that are transitory in nature, such as electric waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., light pulses passing through a fiber optic cable), or electrical signals transmitted through wires.
[0108] The computer readable program instructions described herein can be downloaded from a computer readable storage medium to each computing / processing device or to an external computer or storage device over a network, such as the Internet, a local area network, a wide area network, or a wireless network, or a combination thereof. The network may comprise copper transmission cables, optical transmission fiber, wireless transmission, routers, firewalls, switches, gateway computers, or edge servers, or a combination thereof. A network adapter card or network interface of each computing / processing device receives the computer readable program instructions from the network and forwards the computer readable program instructions for storage on a computer readable storage medium within the respective computing / processing device.
[0109] The computer readable program instructions for carrying out the operations of the present invention may be assembler instructions, instruction set architecture (ISA) instructions, machine language instructions, machine dependent instructions, microcode, firmware instructions, state setting data, configuration data for integrated circuits, or source or object code written in any combination of one or more programming languages, including object oriented programming languages such as Smalltalk®, C++, or the like, and procedural programming languages such as the “C” programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, or partially on the user's computer, as a stand-alone software package, or partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (e.g., through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry, including programmable logic circuits, field programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), may execute computer readable program instructions by utilizing state information of the computer readable program instructions to individualize the electronic circuitry to implement aspects of the invention.
[0110] Aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer readable program instructions.
[0111] These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, the instructions of which execute via the processor of the computer or other programmable data processing apparatus to produce means for performing the functions / acts specified in one or more blocks of the flowcharts and / or block diagrams. These computer readable program instructions may also be stored on a computer readable storage medium such that the computer readable storage medium having stored thereon instructions comprises an article of manufacture including instructions for performing aspects of the functions / acts specified in one or more blocks of the flowcharts and / or block diagrams, capable of directing a computer, programmable data processing apparatus, or other device, or combination thereof, to function in a particular manner.
[0112] The computer readable program instructions may also be loaded into a computer, other programmable data processing apparatus, or other device to perform a series of operational steps on the computer, other programmable apparatus, or other device to produce a computer-executed process, the instructions executing on the computer, other programmable apparatus, or other device to perform the functions / acts specified in one or more blocks of the flowcharts and / or block diagrams.
[0113] The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowcharts or block diagrams may represent a module, segment, or portion of instructions, including one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions noted in the blocks may be performed out of the order noted in the figures. For example, two blocks shown in succession may in fact be executed substantially simultaneously, or the blocks may sometimes be executed in reverse order depending on the functionality involved. It should also be noted that each block of the block diagrams and / or flowchart illustrations, and combinations of blocks in the block diagrams and / or flowchart illustrations, may be implemented by a dedicated hardware-based system that performs the specified functions or acts or executes a combination of dedicated hardware and computer instructions.
[0114] The description of various embodiments of the present invention has been presented for illustrative purposes, but is not intended to be exhaustive or limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein has been selected to best explain the principles of the embodiments, practical applications, or technical improvements to the technology found in the market, or to enable others skilled in the art to understand the embodiments described herein.
Claims
1. 1. A computer-implemented method comprising: operating an index pipeline to generate an index in an index buffer, the index being used to read a memory device; populating a predictive cache with instruction metadata, said instruction metadata being read from said memory device; operating a prediction pipeline to generate predictions using the metadata of the instructions from the prediction cache, wherein the populating of the prediction cache with the metadata of the instructions is performed asynchronously with the operation of the prediction pipeline; 4. A computer-implemented method comprising:
2. 2. The computer-implemented method of claim 1, wherein the populating of the prediction cache with the metadata for the instructions is performed asynchronously with the operation of the prediction pipeline, comprising continually indexing the memory device to read the metadata for the prediction cache independent of processes of the prediction pipeline.
3. 2. The computer-implemented method of claim 1, wherein the index buffer is configured to read the memory device having the metadata for the predictive cache before generating the prediction, rather than relying on the metadata from the predictive cache to generate the prediction.
4. 2. The computer-implemented method of claim 1, wherein the prediction pipeline is configured to output the lines of metadata for the instructions from the predictive cache.
5. 2. The computer-implemented method of claim 1, wherein the prediction pipeline is configured to continually reuse lines of the metadata for the instructions from the prediction cache without having to re-access the memory device.
6. 2. The computer-implemented method of claim 1, wherein the prediction pipeline is configured to continually reuse the line of metadata for the instruction output from the prediction cache to generate a new prediction in response to a previous prediction being predicted against the line of metadata.
7. 2. The computer implemented method of claim 1, wherein the prediction is fed into an out-of-order instruction execution pipeline, the out-of-order instruction execution pipeline operating in parallel with the index pipeline and the prediction pipeline.
8. 1. A system comprising: a memory having computer readable instructions; One or more processors for executing the computer readable instructions, the computer readable instructions comprising: operating an index pipeline to generate an index in an index buffer, the index being used to read a memory device; populating a predictive cache with metadata for instructions from the memory device; and operating a prediction pipeline to generate predictions using the metadata of the instructions from the prediction cache, wherein the populating of the prediction cache with the metadata of the instructions is performed asynchronously with the operation of the prediction pipeline. controlling the one or more processors to perform a process including: A system comprising:
9. 9. The system of claim 8, wherein the populating of the prediction cache with the metadata of the instructions is performed asynchronously with the operation of the prediction pipeline, comprising continually indexing the memory device to read the metadata for the prediction cache independent of processes of the prediction pipeline.
10. 9. The system of claim 8, wherein the index buffer is configured to read the memory device having the metadata for the predictive cache before generating the prediction, rather than relying on the metadata from the predictive cache to generate the prediction.
11. The system of claim 8 , wherein the prediction pipeline is configured to output the lines of the metadata for the instructions from the predictive cache.
12. 9. The system of claim 8, wherein the prediction pipeline is configured to continually reuse lines of the metadata for the instructions from the prediction cache without having to re-access the memory device.
13. 9. The system of claim 8, wherein the prediction pipeline is configured to continually reuse the line of the metadata for the instruction output from the prediction cache to generate a new prediction in response to a previous prediction being predicted against the line of the metadata.
14. 9. The system of claim 8, wherein the prediction is fed into an out-of-order instruction execution pipeline, the out-of-order instruction execution pipeline operating in parallel with the index pipeline and the prediction pipeline.
15. 1. A computer program product comprising a computer readable storage medium having program instructions embodied therein, the program instructions comprising: operating an index pipeline to generate an index in an index buffer, the index being used to read a memory device; populating a predictive cache with metadata for instructions from the memory device; operating a prediction pipeline to generate predictions using the metadata of the instructions from the prediction cache, wherein the populating of the prediction cache with the metadata of the instructions is performed asynchronously with the operation of the prediction pipeline; 2. A computer program product executable by one or more processors to cause the one or more processors to perform a process including:
16. 16. The computer program product of claim 15, wherein the populating of the prediction cache with the metadata for the instructions is performed asynchronously with the operation of the prediction pipeline, comprising continually indexing the memory device to read the metadata for the prediction cache independent of processes of the prediction pipeline.
17. 16. The computer program product of claim 15, wherein the index buffer is configured to read the memory device having the metadata for the predictive cache before generating the prediction, rather than relying on the metadata from the predictive cache to generate the prediction.
18. 16. The computer program product of claim 15, wherein the prediction pipeline is configured to output the lines of metadata for the instructions from the predictive cache.
19. 16. The computer program product of claim 15, wherein the prediction pipeline is configured to continually reuse lines of the metadata for the instructions from the prediction cache without having to re-access the memory device.
20. 16. The computer program product of claim 15, wherein the prediction pipeline is configured to continually reuse the line of the metadata for the instruction output from the prediction cache to generate a new prediction in response to a previous prediction being predicted against the line of the metadata.
21. 1. A computer-implemented method comprising: Querying the index accelerator with the reset address; determining, in response to the query, that an index line is present within the index accelerator; determining a sequential line to the index line in the index accelerator; placing said sequential lines in an index buffer; 4. A computer-implemented method comprising:
22. the index accelerator is configured to determine one or more other sequential lines based on the index line; the index accelerator is configured to place the sequential line and the one or more other sequential lines into the index buffer before the sequential line and the one or more other sequential lines required by a prediction pipeline.
22. The computer-implemented method of claim 21.
23. 22. The computer-implemented method of claim 21, wherein the index line contains an exit target instruction address of a branch for a given entry instruction address.
24. 1. A computer-implemented method comprising: generating a primary prediction and a secondary prediction using the metadata; determining that the primary prediction and the auxiliary prediction differ; selecting the auxiliary prediction in response to the primary prediction and the auxiliary prediction being different; Extending a length of the prediction pipeline over a period of time; sending said auxiliary prediction to an instruction execution pipeline; 4. A computer-implemented method comprising:
25. 25. The computer-implemented method of claim 24, wherein the auxiliary prediction requires more processing time than the primary prediction.
Citation Information
Patent Citations
Pointer associated branch line jumps for accelerated line jumps
US20180165095A1
