Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Instruction processing method, compiler and instruction processor

A technology of instruction processing and compiler, which is applied in the field of information processing, can solve the problems of reduced processing efficiency, low processing efficiency, and inability to execute instructions in parallel.

Active Publication Date: 2014-07-23
深圳国芯人工智能有限公司
View PDF3 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Since the processor processes each instruction in the program through multiple execution units that can be executed in parallel, and the assignment instruction involves the copying and relocation of data, the assignment instruction needs to be executed by a special execution unit. The number of the special execution unit in the processor is limited, therefore, the number of assignment instructions for parallel processing is limited, resulting in certain limitations in the way of processing instructions, and the processing efficiency is not high
At the same time, because the assignment instruction involves the copying and relocation of data, the assignment instruction will have a dependency relationship with other instructions, and the instructions with dependencies cannot be executed in parallel, thus limiting the number of parallel processing instructions and reducing processing efficiency.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Instruction processing method, compiler and instruction processor
  • Instruction processing method, compiler and instruction processor
  • Instruction processing method, compiler and instruction processor

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0100] This embodiment provides a method for processing instructions, see figure 1 , the method provided in this embodiment includes:

[0101] 101: Obtain an instruction template group, where the instruction template group includes an instruction template for each instruction;

[0102] 102: Obtain each instruction template in the instruction template group. The instruction template is used to describe the command word, source data interface and target data interface of the instruction. The source data interface is the interface for inputting instruction processing data, and the target data interface is for outputting instruction processing results. interface;

[0103] 103: Determine the command word, source data interface, and target data interface of each instruction according to the instruction template of each instruction;

[0104]Optionally, determine the command word, source data interface, and target data interface of each instruction according to the instruction templ...

Embodiment 2

[0138] The embodiment of the present invention provides a method for generating an instruction template group. Combining the content of the first embodiment above, for the convenience of description, in this embodiment, the instruction 1 is MOV r4, r5, and the instruction 2 is MOVC r6, r7, r8, 1 , instruction 3 is ADD r1, r2, r3 as an example, and the instruction processing method provided by this embodiment will be described. see image 3 , the method flow provided by this embodiment includes:

[0139] 301: Obtain the command word, source data interface and target data interface of each instruction;

[0140] Wherein, the source data interface is an interface for inputting instruction processing data, and the target data interface is an interface for outputting instruction processing results. Since the device for storing instruction processing data can be a register, memory, or other storage device, the interface connected to the source data can be a register, memory, or oth...

Embodiment 3

[0188] The embodiment of the present invention provides a method for command processing. Combining the contents of the above-mentioned first embodiment and second embodiment, for the convenience of description, in this embodiment, the instruction 1 is MOV r4, r5, and the instruction 2 is MOVC r6, r7, r8. , 1, instruction 3 is ADD r1, r2, r3 as an example, and the instruction processing method provided by this embodiment will be described. see Figure 5 , the method flow provided by this embodiment includes:

[0189] 501: Obtain an instruction template group, and obtain each instruction template in the instruction template group, and determine the command word, source data interface, and target data interface of each instruction according to the instruction template of each instruction;

[0190] Wherein, the acquired instruction template group is an instruction template group generated by the method for generating an instruction template group provided in the second embodiment...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an instruction processing method, a compiler and an instruction processor and belongs to the technical field of information processing. The method comprises the steps that according to instruction templates of instructions, command words, source data interfaces and target data interfaces of the instructions are determined; and data corresponding to the source data interfaces of the instructions are processed according to the command words of the instructions, and processing results are output from the target data interfaces of the instructions. By obtaining the command words, the source data interfaces and the target data interfaces of the instructions, the data corresponding to the source data interfaces of the instructions are processed according to the command words of the instructions, the processing results are output from the target data interfaces of the instructions, so that instruction processing does not rely on an executing unit, instruction processing operation speed is increased, meanwhile, the number limitation of instruction parallel processing is removed, and processing efficiency and instruction processing executing capacity are improved.

Description

technical field [0001] The invention relates to the technical field of information processing, in particular to a method for processing instructions, a compiler and an instruction processor. Background technique [0002] An instruction is a command that instructs the processor to perform a certain operation, and an expected function can be realized by processing each instruction, for example, the processing of the message is completed by processing each instruction included in the message. Instructions are divided into assignment instructions and other instructions for implementing data copy and relocation, and assignment instructions can be further divided into conditional assignment instructions and unconditional assignment instructions. In practical applications, assignment instructions are the most widely used instructions. Therefore, how to process instructions, especially how to deal with assignment instructions, is the key to reducing instruction processing time, impr...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/38
Inventor 王临春李楠
Owner 深圳国芯人工智能有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products