首页> 外国专利> INSTRUCTION GENERATION METHOD AND APPARATUS, INSTRUCTION EXECUTION METHOD, PROCESSOR, ELECTRONIC DEVICE, AND STORAGE MEDIUM

INSTRUCTION GENERATION METHOD AND APPARATUS, INSTRUCTION EXECUTION METHOD, PROCESSOR, ELECTRONIC DEVICE, AND STORAGE MEDIUM

机译:指令生成方法和装置,指令执行方法,处理器,电子设备和存储介质

摘要

An instruction generation method and apparatus, an instruction execution method, a processor, an electronic device, and a storage medium. Said method comprises: determining that an instruction execution unit supports data forwarding (S101); when instructions are generated, setting, in an ith instruction, a first identifier configured to instruct to write destination data of the ith instruction into a forwarding path, and setting, in an (i+j)th instruction, a second identifier configured to instruct to acquire a source operand from the forwarding path (S102); and sending the ith instruction and the (i+j)th instruction to the instruction execution unit, so that when executing the instructions, the instruction execution unit writes the result of the ith instruction into the forwarding path according to the first identifier, and acquires the required source operand from the forwarding path according to the second identifier (S103). By means of setting, in the instructions, a first identifier configured to instruct to write the destination data into the forwarding path and a second identifier configured to indicate that a source operand is derived from the forwarding path, explicit data forwarding of hardware is realized forcibly by means of software, and the number of times of access of a memory is reduced.
机译:指令生成方法和装置,指令执行方法,处理器,电子设备,以及存储介质。所述方法包括:确定转发指令执行单元支撑件数据(S101);被生成的指令时,设置在第i个指令,第一标识符被配置为指示第i指令到的转发路径的写入目的地数据,和设置在第(i + j)个指令,第二标识符被配置成指示以获取来自所述转发路径(S102)的源操作数;和发送的第i个指令和第(i + j)个指令,指令执行单元,以便执行所述指令时,所述指令执行单元将第i个指令的结果到转发路径根据所述第一标识符,以及获取根据所述第二标识符(S103)从所述转发路径所需的源操作数。通过设置的装置,在所述指令被配置的第一标识符,以指示写目标数据的转发路径和配置的第二识别符,以指示一个源操作数被从转发路径衍生的,硬件的显式数据转发被强制地实现借助于软件,和一个存储器的存取次数被减小。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号