hottub.patents
US 12,379,929 B2#3478136 Most CitedActiveUnited States (USPTO)Utility

Branch prediction using loop iteration count

0Forward Citations (#3478136 Global)
0.0/yrCitation Velocity (#3478136 Global)
0.00Citation PageRank (#3478136 Global)
17Prior Art Cited
8Structured Claims
0Drawings / Sheets

Abstract

An integrated circuit comprising instruction processing circuitry for processing a plurality of program instructions and instruction prediction circuitry. The instruction prediction circuitry comprises circuitry for detecting successive occurrences of a same program loop sequence of program instructions. The instruction prediction circuitry also comprises circuitry for predicting a number of iterations of the same program loop sequence of program instructions, in response to detecting, by the circuitry for detecting, that a second occurrence of the same program loop sequence of program instructions comprises a same number of iterations as a first occurrence of the same program loop sequence of program instructions.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 17 · Forward citations: 0.

Claims (8)

  1. Claim 1Independent Claim

    A device comprising: an instruction pipeline; a program counter coupled to the instruction pipeline and configured to store a value; and a branch predictor coupled to the program counter and configured to: determine that the value corresponds to a beginning of a hyperblock loop by performing a first comparison of the value with a first data set; in response to the value corresponding to the beginning of the hyperblock loop, determine that a second data set characterizing the hyperblock loop is stored in a memory by performing a second comparison of the value with the second data set, wherein the second data set is different from the first data set; and predict a number of iterations for the hyperblock loop based on the second data set.

  2. Claim 2Depends on #1

    The device of claim 1, wherein the branch predictor is configured to: determine that the second data set characterizing the hyperblock loop is valid; and predict the number of iterations in response to determining that the second data set characterizing the hyperblock loop is valid.

  3. Claim 3Depends on #2

    The device of claim 2, wherein the branch predictor is configured to determine that the second data set is valid based on a bit stored in the memory.

  4. Claim 4Depends on #1

    The device of claim 1, wherein to determine that the second data set is stored in the memory, the branch predictor is configured to match the value to an entry stored the memory.

  5. Claim 5Depends on #1

    The device of claim 1, wherein the branch predictor is configured to predict the number of iterations based on a count stored in the memory.

  6. Claim 6Depends on #1

    The device of claim 1, wherein the instruction pipeline is configured to process instructions of the hyperblock loop for the number of iterations predicted by the branch predictor.

  7. Claim 7Depends on #1

    The device of claim 1, wherein the branch predictor is configured to: determine that no data set characterizing the hyperblock loop is stored in the memory; and store a new data set characterizing the hyperblock loop to the memory.

  8. Claim 8Depends on #7

    The device of claim 7, wherein the branch predictor is configured to: determine a count of iterations processed by the instruction pipeline; and store the count of iterations as part of the new data set in the memory.

Technical Overview & Description

CROSS-REFERENCE TO RELATED APPLICATION This application is a continuation of U.S. patent application Ser. No. 17/578,516, filed Jan. 19, 2022, scheduled to grant as U.S. Pat. No. 11,875,155 on Jan. 16, 2024, which is a continuation of U.S. patent application Ser. No. 16/888,783, filed May 31, 2020 (now U.S. Pat. No. 11,294,681), which claims the benefit of and priority to U.S. Provisional Application No. 62/855,468, filed May 31, 2019, all of which are hereby fully incorporated herein by reference. BACKGROUND The example embodiments relate to a processing device, such as a microprocessor or a digital signal processor, that can be formed as part of an integrated circuit, including on a system on a chip (SoC). More specifically, embodiments relate to such a processing device with a micro-branch target buffer for a branch predictor. Processing devices execute program instructions of many types, with one type of instruction being a branch instruction. A branch instruction is one that can change execution of program instructions away from the sequential instruction order, if a condition associated with the branch instruction is met. If the condition is met so that the execution is changed from sequential-order execution, the branch is said to be taken; conversely, if the condition is not met so that the execution continues in sequential-order execution, the branch is said to be not taken. Contemporary processing devices often process an instruction sequence through a pipeline, or the device may include plural instruction pipelines and each pipeline can separately process a respective instruction sequence. A pipeline, or each such pipeline, includes a number of stages or phases, and each achieves one or more associated acts for an instruction processed at that stage. Typical pipeline stages/phases, and in a common order, may include instruction fetch, instruction decode, instruction execute, memory access, and instruction writeback, with some of these modified or omitted

Cited By — Indexed Forward Citations (0 of 0 total)

No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.

References Cited — Backward Prior Art (17)

PatentTitleYearCitations

Non-Patent Literature (10)

  • International Search Report for PCT/US2020/035567 dated Sep. 17, 2020.
  • Nitya Ranganathan, et al.,
  • “
  • Combining Hyperblocks and Exit Prediction to Increase Front-End Bandwidth and Performance: Department of Computer Sciences Technical Report TR-02-41
  • ”
  • , Department of Computer Sciences the University of Texas at Austin and Rutgers State University, pp. 1-27 (Year: 2002).
  • Gou Pengfei, Yang Bing, Yu Mingyan, Mao Zhigang,
  • “
  • Novel O-GEHL Based Hyperblock Predictor for EDGE Architectures
  • ”