An OPU instruction set definition method for CNN acceleration
An instruction set and instruction technology, applied in program control design, biological neural network model, instruments, etc., can solve the problems of difficult starting point, large uncertainty of instruction execution time, limited change of starting conditions, etc., to achieve shortened length, accurate Predicting the order of instructions, addressing the effect of universality
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0050] A method for defining an OPU instruction set for CNN acceleration, including defining conditional instructions, defining unconditional instructions and setting instruction granularity;
[0051] When using the defined instruction set for CNN acceleration, it is necessary to define the instruction type of the instruction, the corresponding operation of each instruction, the definition of general parameters and the granularity of instructions. The definition of general parameters includes instruction length and instruction sequence. When the OPU instruction is running, it includes step 1: read the instruction block (the instruction set is a collection list of all instructions; the instruction block is a group of continuous instructions, and the instructions used to execute a network include multiple instruction blocks); step 2: get The unconditional instructions in the instruction block are directly executed, and the parameters contained in the unconditional instructions ar...
Embodiment 2
[0064] Based on Embodiment 1, six kinds of instructions in the conditional instructions of the present application: include read storage instructions, write storage instructions, data capture instructions, data post-processing instructions and calculation instructions; conditional instructions meet the trigger conditions of hardware writing After execution, the conditional instruction register includes a parameter register and a trigger condition register; the conditional instruction performs parameter configuration according to the unconditional instruction.
[0065] The read-storage instruction includes the read-storage operation according to mode A1 and the read-storage operation according to mode A2; the parameters that can be configured for the read-storage operation instruction include the starting address, the number of operands, the post-read processing mode, and the on-chip storage location.
[0066] Mode A1: read n numbers backward from the specified address, n is a p...
Embodiment 3
[0076] Based on Embodiment 1, when used for CNN acceleration, there are multiple consecutive repeated instructions in the instruction sequence, so when defining the instruction set, define the definition method of the instruction sequence, specifically: if the instruction sequence is a continuous number of repeated instructions, Then only a single instruction is set, and the instruction is executed repeatedly until the contents of the trigger condition register and parameter register are updated; when there are multiple consecutive repeated instructions, only the first one is defined, and the trigger condition register and parameter register keep the contents until they are updated, which is beneficial to Acceleration of different target networks is achieved through quick configuration of instructions.
[0077] Multiple parameters need to be defined in the unconditional command, and the corresponding command length is long. In order to reduce the command length, a unified metho...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com