Cortex-M Coprocessor RNN Acceleration via MCR and CDP Instructions

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing solutions for executing recurrent neural networks on processors face challenges of low efficiency, high cost, and inflexibility.

Innovation Solution

A method and system that utilize a Cortex-M processor to accelerate recurrent neural networks by configuring internal registers through MCR instructions and enabling basic operators like matrix multiplication, vector arithmetic, and activation functions via CDP instructions.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Power

If cloud-based processing is used for recurrent neural networks, then computational capability is improved, but data transmission bandwidth and timeliness deteriorate

Engineering Contradiction:
Improvecomputational capabilityVSAvoiddata transmission bandwidth
Core Design Contradiction:
PowerVSQuantity of substance

Solution Approach 1:

The patent introduces an ARM coprocessor as an intermediary computing unit between the host processor and cloud system. The coprocessor handles RNN computations locally using dedicated instruction sets (MCR/CDP instructions), reducing the need for data transmission to cloud while maintaining computational capability for time-sensitive operations.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Productivity

If high-performance MCU is used to handle RNN operations, then processing speed is improved, but cost deteriorates

Engineering Contradiction:
Improveprocessing speedVSAvoidcost
Core Design Contradiction:
ProductivityVSEase of manufacture

Solution Approach 1:

The patent segments the processing system into a host processor for control and data management, and a dedicated ARM coprocessor for RNN computations. This segmentation allows the coprocessor to be optimized specifically for neural network operations with lower cost compared to using a high-performance MCU for all tasks.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The ARM coprocessor is designed with a universal instruction set that can handle multiple RNN operations (matrix multiplication, vector operations, activation functions) through configurable internal registers, providing multi-functional capability at lower cost than specialized hardware accelerators.

Inventive Principle:
Principle #6Universality (Multi-functionality)

3Productivity

If dedicated hardware accelerators are designed for specific algorithms, then processing efficiency is improved, but flexibility deteriorates

Engineering Contradiction:
Improveprocessing efficiencyVSAvoidflexibility
Core Design Contradiction:
ProductivityVSAdaptability or versatility

Solution Approach 1:

The patent implements dynamic configurability in the ARM coprocessor through programmable internal registers that can be configured via MCR instructions. This allows the same hardware accelerator to adapt to different RNN algorithms and operations by changing register settings rather than requiring fixed hardware design, maintaining both efficiency and flexibility.

Inventive Principle:
Principle #15Dynamics

4Device complexity

If traditional processor executes RNN algorithms, then hardware complexity is reduced, but execution efficiency deteriorates

Engineering Contradiction:
Improvehardware complexityVSAvoidexecution efficiency
Core Design Contradiction:
Device complexityVSProductivity

Solution Approach 1:

The patent replaces general-purpose processor instruction execution with a specialized coprocessor instruction set (MCR for register configuration, CDP for data processing). This substitution optimizes the execution path for RNN operations, improving efficiency while keeping the overall hardware architecture relatively simple through software-instruction-based optimization.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

Data Source

PatentUS20250053419A1Method and system for accelerating recurrent neural network based on cortex-m processor, and medium
Publication Date: 2025.02.13 HANGZHOU VANGO TECH
  • US20250053419A1 patent drawing
  • US20250053419A1 patent drawing
  • US20250053419A1 patent drawing

AI summary

The application relates to a method and a system for accelerating a recurrent neural network based on a Cortex-M processor, and a medium. The method comprises: setting MCR instructions and a CDP instruction according to common basic operators of the recurrent neural network, the common basic operators comprising a matrix multiplication operator, a vector arithmetic operator, a sigmoid activation operator, a tanh activation operator and a quantization operator; configuring an internal register of a recurrent neural network coprocessor through the MCR instructions; and enabling the common basic operators of the recurrent neural network through the CDP instruction on the basis of the configured internal register.