首页> 外国专利> Zero-overhead loop operation in microprocessor having instruction buffer

Zero-overhead loop operation in microprocessor having instruction buffer

机译:具有指令缓冲器的微处理器中的零开销循环操作

摘要

A loop instruction, at least one target instruction, and an associated trigger address are cached during loop entry. During each loop iteration, the processor predicts whether the loop will be taken or not-taken in a subsequent iteration. When pre-fetch of the cached loop instruction is subsequently detected (i.e., by comparing the trigger address with the current program counter value), the loop taken/not-taken prediction is used to fetch either loop body instructions (when predicted taken) or fall-through instructions (when predicted not-taken). The cached loop instruction is then executed and the loop taken/not-taken prediction is verified using a dedicated loop execution circuit while a penultimate loop body instruction is executed in the processor execution stage (pipeline). When a previous loop taken prediction is verified, the cached target instruction is executed, and then the fetched loop body instructions are executed. When a loop not-taken prediction is verified, the fetched fall-through instructions are executed.
机译:循环输入期间会缓存一条循环指令,至少一个目标指令和一个关联的触发地址。在每个循环迭代期间,处理器预测循环将在后续迭代中采用还是不采用。当随后检测到对缓存的循环指令的预取时(即,通过将触发地址与当前程序计数器值进行比较),使用循环采用/未采用预测来获取循环体指令(当预测采用时)或掉线指示(如果预计未使用)。然后执行缓存的循环指令,并在处理器执行阶段(流水线)执行倒数第二个循环主体指令的同时,使用专用的循环执行电路验证循环采用/未采用的预测。验证先前的循环采用预测后,将执行缓存的目标指令,然后执行获取的循环主体指令。验证未采用的循环预测后,将执行提取的掉线指令。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号