{"pub_number":"US12379929B2","doc_number":"12379929","country":"US","kind_code":"B2","patent_type":"utility","status":"active","title":"Branch prediction using loop iteration count","abstract_text":"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.","claims":[{"number":1,"text":"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.","independent":true},{"number":2,"text":"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.","independent":false,"depends_on":[1]},{"number":3,"text":"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.","independent":false,"depends_on":[2]},{"number":4,"text":"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.","independent":false,"depends_on":[1]},{"number":5,"text":"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.","independent":false,"depends_on":[1]},{"number":6,"text":"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.","independent":false,"depends_on":[1]},{"number":7,"text":"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.","independent":false,"depends_on":[1]},{"number":8,"text":"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.","independent":false,"depends_on":[7]}],"description":"CROSS-REFERENCE TO RELATED APPLICATION\nThis 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.\nBACKGROUND\nThe 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.\nProcessing 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.\nContemporary 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 ","inventors":[{"name":"Kai Chirca","slug":"kai-chirca","city":"Dallas","country":"US"},{"name":"Paul Daniel Gauvreau","slug":"paul-daniel-gauvreau","city":"Plano","country":"US"},{"name":"David Edward Smith, Jr.","slug":"david-edward-smith-jr","city":"Allen","country":"US"}],"assignees":[{"name":"TEXAS INSTRUMENTS INCORPORATED","slug":"texas-instruments-incorporated","country":"US"}],"examiners":[],"cpc_codes":["G06F 9/325","G06F 9/3806","G06F 9/3846"],"ipc_codes":["G06F 9/32","G06F 9/38"],"filing_date":"2024-01-13","pub_date":"2025-08-05","grant_date":"2025-08-05","expiration_date":"2044-01-13","family_members":[],"citations_made":[{"pub_number":"US5909573A","category":"applicant"},{"pub_number":"US5951679A","category":"applicant"},{"pub_number":"US9996358B2","category":"applicant"},{"pub_number":"US10275249B1","category":"applicant"},{"pub_number":"US20070113059A1","category":"applicant"},{"pub_number":"US20070220239A1","category":"examiner"},{"pub_number":"US20150121050A1","category":"applicant"},{"pub_number":"US20160092230A1","category":"examiner"},{"pub_number":"US20160132331A1","category":"applicant"},{"pub_number":"US20160139933A1","category":"applicant"},{"pub_number":"US20180349144A1","category":"applicant"},{"pub_number":"US20200050458A1","category":"examiner"},{"pub_number":"US20200065111A1","category":"examiner"},{"pub_number":"US20200089498A1","category":"applicant"},{"pub_number":"US20200364052A1","category":"applicant"},{"pub_number":"CN101401065A","category":"applicant"},{"pub_number":"CN107077335A","category":"applicant"}],"non_patent_literature":["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","”"],"drawings_count":0,"source_id":"uspto_patent_grants","upstream_forward_citations":0,"metrics":{"forward_citations":0,"indexed_forward_citations":0,"backward_citations":17,"npl_citations":10,"citations_per_year":0.0,"pagerank":0.0,"citation_rank":3478136,"pagerank_rank":3478136,"velocity_rank":3478136,"family_citations":0}}