Unlock instant, AI-driven research and patent intelligence for your innovation.

Instruction translation device and method, instruction processing device and processor

A technology of instruction translation and instruction processing, which is applied in the field of computers, can solve the problems of high power consumption and low efficiency of processors, and achieve the effect of improving application performance, improving efficiency, and improving efficiency

Active Publication Date: 2014-09-03
JIANGNAN INST OF COMPUTING TECH
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The problem solved by the present invention is that the efficiency of the prior art processor in processing logical operations is low, and the power consumption of the processor is large

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 translation device and method, instruction processing device and processor
  • Instruction translation device and method, instruction processing device and processor
  • Instruction translation device and method, instruction processing device and processor

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0062] Assuming that there are two operands participating in the logical operation expression, and the logical operation expressions are the following expressions, the instruction translation device according to the specific embodiment of the present invention will be described accordingly.

[0063] (1) The logical operation expression is c=a&(a^b)

[0064] In this embodiment, for the logical operation expression c=a&(a^b) (that is, the logical operation instruction), the front end of the compiler will first identify the logical operator involved in the logical operation, and the splitting unit 101 will convert the logical operation instruction c=a&(a^b) is split into two single logic operation instructions: xor tmp, a, b, and c, a, tmp. The above-mentioned splitting process, that is, the logic operation instruction c=a&(a^b) is translated to generate the intermediate code xor tmp corresponding to the logic operation instruction, a, b, and c, a, tmp, (need It should be noted ...

Embodiment 2

[0232] In order to better understand the instruction translation device of the present invention, still refer to figure 1 The structural diagram of the instruction translation device, with three operands participating in the logical expression, and the logical expressions are as follows, the instruction translation device of this embodiment will be described in detail.

[0233] (1) The logical expression is d=(a&b)|c

[0234] In this embodiment, the splitting unit 101 and the conversion unit 103 split and convert the logical operation expression d=(a&b)|c (that is, the logical operation instruction) similar to that in the first embodiment, so in this embodiment Go into details again, promptly for logic operation expression d=(a&b)|c splitting unit 101 it is split into two single logic operation instruction: and tmp, a, b; Or d,,, tmp, c; Conversion unit 103 converts the above-mentioned single logic operation instruction into two intermediate instructions Flog2 (8, tmp, a, b) ...

Embodiment 3

[0313] The specific embodiment of the present invention also provides an instruction processing device, refer to Figure 5 , Figure 5 It is a schematic structural diagram of an instruction processing device in a specific embodiment of the present invention, and the instruction processing device includes: an instruction translation device 102 for generating a target instruction, which is the above-mentioned instruction translation device; an analysis unit 104 for analyzing the target instruction , to obtain the logical value, source operand and target operand of the target instruction; the multi-way selection unit 106 includes a multi-way data input end, a plurality of selection input ends and output ends, and the multi-way data input end is respectively input to the In the logical value of the target instruction, the value corresponding to the value of the source operand of the target instruction, the multiple selection input terminals respectively input the source operand of...

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 translation device, an instruction translation method, an instruction processing device and a processor. The instruction translation device comprises a dividing unit, a conversion unit and a combination unit, wherein the dividing unit divides a logical operation instruction into a plurality of single logical operation instructions; the conversion unit converts each single logical operation instruction into an intermediate instruction in a preset format; the preset format comprises a logical value, a source operand and a target operand; the combination unit combines a preset instruction and a constant value point instruction of the preset instruction to generate a combined instruction in the preset format; the preset instruction is the intermediate instruction of which the source operand has the constant value point instruction; the constant value point instruction of the preset instruction is the intermediate instruction which assigns the source operand of the preset instruction; and the logical value of the combined instruction is generated by array indexing of the logical values of the preset instruction and the constant value point instruction of the preset instruction. By adoption of the instruction translation device, the instruction translation method, the instruction processing device and the processor, the logical operation processing efficiency of the processor is improved, and the power consumption of the processor is reduced.

Description

technical field [0001] The invention relates to the field of computers, in particular to an instruction translation device and method, an instruction processing device and a processor. Background technique [0002] The compilation process is the process of translating source code (usually a high-level language) into an object code (usually a low-level language or machine language) that can be directly executed by a computer or a virtual machine. And the function of the translated object code is the same as that of the source code, and finally the computer executes the object code through the processor to obtain the function to be realized by the source code. [0003] Generally speaking, a compiler is a program that translates a high-level language into machine language. The workflow is: source code (source code) → preprocessor (preprocessor) → compiler (compiler) → assembler (assembler) → object code (object code) → linker (Linker) → executable program (executables) . The...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/45
CPCY02B60/181Y02D10/00
Inventor 李中升沈莉王飞漆锋滨吴佩华肖谦
Owner JIANGNAN INST OF COMPUTING TECH