首页> 外国专利> Repeat-bit based, compact system and method for implementing zero- overhead loops

Repeat-bit based, compact system and method for implementing zero- overhead loops

机译:基于重复比特的紧凑系统和方法,用于实现零开销循环

摘要

A repeat-bit based system and method for executing zero overhead loops, or repeat loops, in an information processing chip that does not require a repeat end register or a dedicated comparator. Executing repeat loops requires a processor to iterate N times a code fragment of loop instructions. All systems providing this capability must know when to refetch the first loop instruction at the end of a repeat. To do this, the present invention adds a repeat bit to the processor's instruction set. This bit is set by the assembler/compiler that generates the executable code fragment comprising the repeat loop. Where the repeat loop includes plural instructions, the assembler sets the repeat bit of the penultimate loop instruction. As each loop instruction is fetched, decoded and executed, the decoder detects the repeat bit and passes it to loop control circuitry. If the code fragment has not been iterated N times and the repeat bit is set, the program counter (PC) is loaded with the address of the first repeat loop instruction, which is refetched. Otherwise, the PC is incremented and the next instruction is fetched. Where the repeat loop has a single instruction, a nop instruction must be added after the instruction to be repeated. Two systems and methods for maintaining the repeat count are disclosed. The first requires a decrementor that decrements the repeat count from N each time the loop is iterated. Another replaces the decrementor with the PC incrementor, which increments the repeat counter from -N or -(N-1).
机译:在不需要重复结束寄存器或专用比较器的信息处理芯片中用于执行零开销循环或重复循环的基于重复位的系统和方法。执行重复循环需要处理器将循环指令的代码片段迭代N次。提供此功能的所有系统必须知道在重复结束时何时重新获取第一条循环指令。为此,本发明在处理器的指令集中增加了一个重复位。该位由汇编器/编译器设置,该汇编器/编译器生成包括重复循环的可执行代码片段。如果重复循环包含多个指令,则汇编器将倒数第二个循环指令的重复位置位。随着每个循环指令的获取,解码和执行,解码器检测到重复位并将其传递给循环控制电路。如果代码片段尚未迭代N次并且设置了重复位,则将第一个重复循环指令的地址装入程序计数器(PC),并对其进行重新提取。否则,PC递增,并提取下一条指令。如果重复循环只有一条指令,则必须在要重复的指令之后添加nop指令。公开了用于维持重复计数的两种系统和方法。第一个需要一个递减器,每次循环迭代时,它都会将重复计数从N递减。另一个用PC递增器代替了递减器,它使重复计数器从-N或-(N-1)递增。

著录项

  • 公开/公告号US5727194A

    专利类型

  • 公开/公告日1998-03-10

    原文格式PDF

  • 申请/专利权人 HITACHI AMERICA LTD.;

    申请/专利号US19950478438

  • 发明设计人 AVADHANI SHRIDHAR;KENICHI NITTA;

    申请日1995-06-07

  • 分类号G06F9/30;

  • 国家 US

  • 入库时间 2022-08-22 02:39:59

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号