首页> 外国专利> 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)TH指令中设置为配置为指导的第二标识符从转发路径获取源操作数(S102);向指令执行单元发送第i号指令和(I + J)指令,以便在执行指令时,指令执行单元根据第一个标识符将第i个指令的结果写入转发路径,并获取根据第二标识符的转发路径所需的源操作数(S103)。通过设置在指令中,配置为指示将目的地数据写入转发路径的第一标识符和被配置为指示源操作数来自转发路径的第二标识符,强制实现了硬件的显式数据转发通过软件,减少了存储器的访问次数。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号