To fully leverage the powerful computing capability of the AI processors, the prerequisite is that the input data can be fed to the compute units in a timely and accurate manner. Therefore, the memory system needs to be elaborately designed to ensure the data supply required by the compute units.
An AI Core includes multiple levels of local memory (internal storage), and loads data from the global memory (external storage) to the local memory for computation. The local memory of an AI Core includes the L1 Buffer, L0 Buffer, Unified Buffer, and so on. An AI Core also contains MTEs to facilitate data movement and copy, which can convert the data format or type during data movement.
Table 1 describes the list of storage units in the local memory of an AI Core.
Table 1 Description of storage units
| Storage Unit | Description |
|---|---|
| L1 Buffer | As a general part of the local memory, the L1 Buffer offers a large data buffer in the AI Core. It can temporarily store data that needs to be repeatedly used in the AI Core, thereby reducing the frequency that data is read from or written to the bus. |
| L0A Buffer / L0B Buffer | Store the inputs of Cube instructions. |
| L0C Buffer | Stores the outputs of Cube instructions, which are part of the inputs for accumulation. |
| Unified Buffer | Unified buffer, which stores the inputs and outputs of vector and scalar computations. |
| BT Buffer | BiasTable buffer, which stores biases. |
| FP Buffer | Fixpipe buffer, which stores quantization parameters, ReLU parameters, and so on. |
Table 2 Description of movement units
| Movement Unit | Description |
|---|---|
| MTE1 | Moves data in the following paths: - L1->L0A/L0B - L1->UB (for the coupled architecture only) - L1->BT Buffer |
| MTE2 | Moves data in the following paths: - GM->{L1, L0A/B}. In this path, data is moved based on the fractal size. If the data movement meets the cache line (512 bytes) alignment requirements, the performance is better. - GM->UB. Data movement based on the cache line size will achieve better performance. |
| MTE3 | Moves data in the following path: UB->GM. |
| FixPipe | Moves data in the following paths: (Only the decoupled architecture supports FixPipe. The data format or type can be converted during data movement.) - L0C->{GM/L1} - L1->FP Buffer |
The size of a storage unit varies with the AI processor type.
Kirin 9050: The L0A and L0C are integrated with the L1, and there is no separate L0A or L0C unit.