发明授权
US06003128A Number of pipeline stages and loop length related counter differential
based end-loop prediction
失效
基于流水线级数和循环长度相关的基于计数器差分的端环预测
- 专利标题: Number of pipeline stages and loop length related counter differential based end-loop prediction
- 专利标题(中): 基于流水线级数和循环长度相关的基于计数器差分的端环预测
-
申请号: US846656申请日: 1997-05-01
-
公开(公告)号: US06003128A公开(公告)日: 1999-12-14
- 发明人: Thang M. Tran
- 申请人: Thang M. Tran
- 申请人地址: CA Sunnyvale
- 专利权人: Advanced Micro Devices, Inc.
- 当前专利权人: Advanced Micro Devices, Inc.
- 当前专利权人地址: CA Sunnyvale
- 主分类号: G06F9/32
- IPC分类号: G06F9/32 ; G06F9/38
摘要:
An apparatus for prediction of loop instructions. Loop instructions decrement the value in a counter register and branch to a target address (specified by an instruction operand) if the decremented value of the counter register is greater than zero. The apparatus comprises a loop detection unit that detects the presence of a loop instruction in the instruction stream. An indication of the loop instruction is conveyed to a reorder buffer which stores speculative register values. If the apparatus is not currently processing the loop instruction, a compare value corresponding to the counter register prior to execution of the loop instruction is conveyed to a loop prediction unit. The loop prediction unit also increments a counter value upon receiving each indication of the loop instruction. This counter value is then compared to the compare value conveyed from the reorder buffer. If the counter value is one less than the compare value, a signal is asserted that indicates that the loop instruction should be predicted not-taken upon a next iteration of the loop. In this manner, loop prediction accuracy may be increased by correctly predicting the loop instruction not-taken. Because loops are commonly found in a variety of applications, increasing the accuracy of loop prediction, even slightly, may have a beneficial effect on performance. The loop operation is particularly important in scientific applications where it may be used to perform various digital signal processing routines and to traverse arrays.
公开/授权文献
信息查询