首页> 外国专利> Method for branching to an instruction in a computer program at a memory address pointed to by a key in a data structure

Method for branching to an instruction in a computer program at a memory address pointed to by a key in a data structure

机译:在数据结构中的键所指向的存储地址处分支到计算机程序中的指令的方法

摘要

A method for searching for keys of arbitrary width in a table in a memory of a computer system by repeatedly executing lookup instructions on a lookup processor. The lookup processor executes a lookup instruction to find a key in a table. The execution of the lookup instruction results in a key being found, or a key not being found. If the key is not found, the process is requeued by a scheduler with the program counter register for the process pointing to the instruction immediately following the lookup instruction, i.e., the next instruction. In the event the key is found in the table, the entry in the table associated with the key contains the memory address of the next instruction to be executed. This memory address is loaded into the program counter register associated with the process in which the lookup instruction was executed. The scheduler requeues the process, later dequeues it, and the instruction pointed to by the program counter register is fetched by an instruction fetch unit. A dispatcher sends the process to the appropriate processor for execution of the next instruction. In this way, a branch to any instruction in the process can be performed. The instruction pointed to by the PC register can be another lookup instruction in the process. In this way, multiple lookup instructions can be sequentially executed, each specifying a different portion of a key of arbitrary width, or each specifying a particular key in a sequence of keys being searched for.
机译:一种通过在查找处理器上重复执行查找指令来在计算机系统的存储器中的表中搜索任意宽度的关键字的方法。查找处理器执行查找指令以在表中查找关键字。查找指令的执行导致找到密钥或找不到密钥。如果未找到密钥,则调度程序用程序计数器寄存器使该过程重新排队,该过程的计数器指向指向查找指令之后的指令(即下一条指令)的进程。如果在表中找到该键,则该表中与该键关联的条目将包含下一条要执行的指令的存储器地址。该存储器地址被加载到与执行查找指令的过程相关的程序计数器寄存器中。调度程序将进程重新排队,然后将其出队,然后由程序获取寄存器所指向的程序计数器寄存器所指向的指令。调度程序将进程发送到适当的处理器以执行下一条指令。这样,可以执行该过程中任何指令的分支。 PC寄存器指向的指令可以是该过程中的另一个查找指令。这样,可以依次执行多个查找指令,每个查找指令指定任意宽度的键的不同部分,或者每个都指定要搜索的键序列中的特定键。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号