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

Device and method for executing vector cyclic shift operation

A technology of shifting operations and executing vectors, applied in the computer field, can solve the problems of low efficiency and no advantages, and achieve the effect of efficient shifting operations and convenient use of instructions

Active Publication Date: 2017-11-03
CAMBRICON TECH CO LTD
View PDF4 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the prior art, the most commonly used method to implement vector shifting is to use a general-purpose processor to move elements in a column of vectors one by one. In the case of a large vector size, the efficiency of this implementation method is extremely low
[0004] In addition, in the prior art, it can also be performed on a graphics processor or other image processing-oriented devices. This type of method involves communication between different stream processing units. When performing large-scale vector displacement, frequent Data handling, so it does not have a very obvious advantage
[0005] These existing methods do not have obvious advantages in realizing large-scale vector shifts, and at the same time require more instructions to cooperate with the execution. A better method can be found to solve this problem

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
  • Device and method for executing vector cyclic shift operation
  • Device and method for executing vector cyclic shift operation
  • Device and method for executing vector cyclic shift operation

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0066] According to an embodiment of the present invention, the device for performing a vector circular shift operation further includes: an instruction buffer unit configured to store matrix operation instructions to be executed. Instructions are also cached in the instruction cache unit during execution, and when an instruction is executed, the instruction will be submitted.

[0067] According to an embodiment of the present invention, the control unit in the device further includes: an instruction queue module, configured to sequentially store the decoded matrix operation instructions, and after obtaining the scalar data required by the matrix operation instructions, Send the vector rotation instruction and scalar data to the dependency processing module.

[0068] According to an embodiment of the present invention, the control unit in the device further includes: a dependency processing unit, configured to determine whether there is a dependency between the operation instr...

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 a device and a method for executing vector cyclic shift operation. The device comprises a storage unit, a register unit, a control unit and a cyclic shift unit, wherein the storage unit is used for storing vector data relevant to a vector cyclic shift operation instruction; the register unit is used for storing scalar data relevant to the vector cyclic shift operation instruction; the control unit is used for decoding the vector cyclic shift operation instruction and controlling the operation process of the vector cyclic shift operation instruction; and the cyclic shift unit is used for performing cyclic shift operation on input vector data according to the decoded vector cyclic shift operation instruction, wherein the cyclic shift unit is a custom hardware circuit. According to the device and the method for executing vector cyclic shift operation, the complete process of the simple vector cyclic shift operation instruction is realized through the custom hardware circuit, that is, vector cyclic shift operation can be realized through the simple cyclic shift instruction.

Description

technical field [0001] The present invention relates to the field of computers, in particular to a device and method for performing vector circular shift operations. Background technique [0002] Vector cyclic shift, that is, each element in a column of vectors is moved in a certain direction according to a certain step size. For elements whose movement range exceeds one end of the vector, the entire vector can be regarded as a ring, so that it can be moved to the other end of the vector. The circular displacement of the vector is as figure 1 As shown, for a vector with a length of 1, if the cyclic shift is m to the right, the 1-m elements on the left will be moved to the right by m steps, and the m elements on the right will be moved to the left. [0003] In the prior art, the most commonly used method for implementing vector shifting is to use a general-purpose processor to move elements in a column of vectors one by one. When the size of the vector is large, the efficien...

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 Applications(China)
IPC IPC(8): G06F9/30G06F9/355
CPCG06F9/30036G06F17/16G06F9/30032G06F9/3455G06F9/3838G06F9/30G06F12/0875G06F2212/452G06N3/02
Inventor 刘道福张潇刘少礼陈天石陈云霁
Owner CAMBRICON TECH CO LTD
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