Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
INSTRUCTION GENERATION METHOD AND APPARATUS, INSTRUCTION EXECUTION METHOD, PROCESSOR, ELECTRONIC DEVICE, AND STORAGE MEDIUM
Document Type and Number:
WIPO Patent Application WO/2021/120712
Kind Code:
A8
Abstract:
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.

Inventors:
JIANG YUXIANG (CN)
WANG XIAOYANG (CN)
Application Number:
PCT/CN2020/114002
Publication Date:
August 05, 2021
Filing Date:
September 08, 2020
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
CHENGDU HAIGUANG MICROELECTRONICS TECH CO LTD (CN)
International Classes:
G06F9/30
Attorney, Agent or Firm:
CHOFN INTELLECTUAL PROPERTY (CN)
Download PDF: