Cross-Core Copy Instructions for Operand Transfer Between On-Chip Memories

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional acceleration units face inefficiencies in operand transfer due to limited on-chip memory, leading to low performance as operands often need to be moved from on-chip memory to shared memory outside the core, resulting in degraded performance.

Innovation Solution

The acceleration unit incorporates a primary core and secondary core with on-chip memories, utilizing cross-core copy instructions and synchronization primitives to efficiently transfer operands between cores, optimizing data movement within on-chip memories rather than to external shared memory.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Speed

If operands are stored in on-chip memory of a single core, then access speed is improved, but memory capacity is limited and cannot accommodate all operands

Engineering Contradiction:
Improveoperand access speedVSAvoidmemory capacity
Core Design Contradiction:
SpeedVSQuantity of substance

Solution Approach 1:

The system divides the memory storage function across multiple cores. Each core has its own on-chip memory (segmented memory spaces), allowing the acceleration unit to collectively accommodate more operands than a single core could hold, while each core maintains fast access to its local memory.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent transitions from a single-core memory model to a multi-core memory model, adding the dimension of core distribution. Operands are distributed across multiple on-chip memories of different cores, effectively expanding the total accessible memory capacity while maintaining fast on-chip access speeds.

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

2Quantity of substance

If operands are transferred to shared memory outside the core, then memory capacity is increased, but transfer efficiency deteriorates

Engineering Contradiction:
Improveavailable memory capacityVSAvoidoperand transfer efficiency
Core Design Contradiction:
Quantity of substanceVSProductivity

Solution Approach 1:

The patent merges the on-chip memories of multiple cores into a unified memory system accessible through cross-core copy operations. This allows operands to be shared between cores via fast on-chip interconnects rather than slow external memory access, combining the capacity benefits of multiple cores with the speed benefits of on-chip access.

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The patent introduces cross-core copy instructions as an intermediary mechanism that enables efficient operand transfer between cores' on-chip memories. This intermediary mechanism avoids the need for slow external shared memory access while still allowing multiple cores to access the same operands.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Productivity

If multiple cores perform the same model task in parallel, then processing capacity is improved, but memory resources are not utilized efficiently for different tasks

Engineering Contradiction:
Improveparallel processing capacityVSAvoidtask diversity capability
Core Design Contradiction:
ProductivityVSAdaptability or versatility

Solution Approach 1:

The patent makes the on-chip memory system universal by enabling it to serve multiple purposes: each core can execute different model tasks with different operands simultaneously. The cross-core copy mechanism allows any core to access operands from any other core's memory, creating a versatile system that can handle diverse workloads while maintaining parallel processing capability.

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

Data Source

PatentUS11467836B2Executing cross-core copy instructions in an accelerator to temporarily store an operand that cannot be accommodated by on-chip memory of a primary core into a secondary core
Publication Date: 2022.10.11 T-HEAD (SHANGHAI) SEMICON CO LTD
  • US11467836B2 patent drawing
  • US11467836B2 patent drawing
  • US11467836B2 patent drawing

AI summary

An acceleration unit including a primary core and a secondary core is provided. The primary core includes a first on-chip memory, a primary core sequencer adapted to decode a received first cross-core copy instruction, and a primary core memory copy engine adapted to acquire a first operand from a first address in the first on-chip memory and copy the acquired first operand to a second address in a second on-chip memory of the secondary core. Further, the secondary core includes a second on-chip memory, a secondary core sequencer adapted to decode a received second cross-core copy instruction, and a secondary core memory copy engine adapted to acquire the first operand from the second address in the second on-chip memory and copy the acquired first operand back to the first address in the first on-chip memory.