Data moving method, direct memory access apparatus and computer system
Abstract
A data moving method, a direct memory access apparatus, and a computer system are disclosed. The data moving method is used for a neural-network processor, the neural-network processor includes at least one processing unit array, and the method includes: receiving a first instruction, wherein the first instruction indicates address information of target data to be moved, and the address information of the target data is obtained based on a mapping relationship between the target data and at least one processing unit in the processing unit array; generating a data moving request according to the address information of the target data; and moving the target data for the neural-network processor, according to the data moving request.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 40 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A data moving method for a neural-network processor, the neural-network processor comprising at least one processing unit array, and the method comprising: receiving a first instruction, wherein the first instruction indicates address information of target data to be moved, and the address information of the target data is obtained based on a mapping relationship between the target data and at least one processing unit in the processing unit array; generating a data moving request according to the address information of the target data; and moving the target data for the neural-network processor, according to the data moving request, wherein the mapping relationship comprises a mapping relationship between a row of input feature map feature values and a row of filter weights and the at least one processing unit in the processing unit array, wherein the first instruction further comprises a channel identification, the channel identification indicates a target channel among a plurality o
- Claim 2Depends on #1
The method according to claim 1, before generating the data moving request according to the address information of the target data, further comprising: decoding the first instruction to obtain the address information of the target data.
- Claim 3Depends on #1
The method according to claim 1, wherein a target direct memory access apparatus receives the first instruction and responds to the data moving request, and the method further comprises: receiving an initial instruction, decoding the initial instruction to obtain the first instruction and a DMA identification of the target direct memory access apparatus for executing the first instruction; and supplying the first instruction to the target direct memory access apparatus, according to the DMA identification.
- Claim 4Depends on #3
The method according to claim 3, wherein the initial instruction indicates an instruction type, and the method further comprises: decoding the initial instruction to obtain the instruction type during a process of obtaining the first instruction; and writing the first instruction into the target storage region, in response to the instruction type being a preset instruction type.
- Claim 5Depends on #4
The method according to claim 4, further comprising: controlling a credit number to decrease or increase, in response to writing or reading of the first instruction, wherein the credit number indicates a space size of the target storage region for storing instructions.
- Claim 6Depends on #1
The method according to claim 1, before reading the first instruction out of the target storage region, further comprising: determining whether the target storage region is empty; and reading the first instruction out of the target storage region, in response to the target storage region being non-empty.
- Claim 7Depends on #1
The method according to claim 1, before writing the first instruction into the target storage region, further comprising: determining whether the target storage region is full; and writing the first instruction into the target storage region, in response to the target storage region being non-full.
- Claim 8Independent Claim
A direct memory access apparatus for a neural-network processor, the neural-network processor comprising at least one processing unit array, and the direct memory access apparatus comprising: a receiving circuit, configured to receive a first instruction, wherein the first instruction indicates address information of target data to be moved, and the address information of the target data is obtained based on a mapping relationship between the target data and at least one processing unit in the processing unit array; and an interface control circuit, configured to generate a data moving request according to the address information of the target data, and move the target data for the neural-network processor, according to the data moving request, wherein the mapping relationship comprises a mapping relationship between a row of input feature map feature values and a row of filter weights and the at least one processing unit in the processing unit array, wherein the first instruction furt
Technical Overview & Description
CROSS REFERENCE The application claims priority to Chinese patent application No. 202111659158.6, filed on Dec. 30, 2021, the entire disclosure of which is incorporated herein by reference as part of the present application. TECHNICAL FIELD The present disclosure relates to a field of chips, and more specifically relates to a data moving method, a direct memory access apparatus and a computer system. BACKGROUND In a computer system, data exchange between an I/O device and a memory, and between a memory and a memory is usually required. The Direct Memory Access (DMA) technology is a high-speed data transmission mode, which allows direct data transmission between an external device and a memory, and between a memory and a memory. The DMA process is mainly implemented by hardware, and in this case, data exchange between an external device and a memory is not controlled by a Central Processing Unit (CPU), but is directly completed with a system bus controlled by a DMA hardware controller. SUMMARY According to a first aspect of the present disclosure, a data moving method is proposed for a neural-network processor, the neural-network processor includes at least one processing unit array, and the method includes: receiving a first instruction, in which the first instruction indicates address information of target data to be moved, and the address information of the target data is obtained based on a mapping relationship between the target data and at least one processing unit in the processing unit array; generating a data moving request according to the address information of the target data; and moving the target data for the neural-network processor, according to the data moving request. According to a second aspect of the present disclosure, a direct memory access apparatus is proposed for a neural-network processor, the neural-network processor includes at least one processing unit array, and the apparatus includes a receiving circuit and an interface control circuit
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (40)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (8)
- Wang Hongli,
- “
- Design and Implementation of Convolutional Neural Network Hardware Accelerator
- ”
- , China Excellent Master Dissertation Full Text Database Information Science and Technology Series, May 2020, Xiangtan University (69 pages).
- Non-final Office Action for U.S. Appl. No. 18/089,776 dated May 17, 2024, 19 pages.
- Non-final Office Action for U.S. Appl. No. 18/089,748 dated Jun. 6, 2024, 12 pages.
- Office Action cited in U.S. Appl. No. 18/089,096 dated Aug. 27, 2024, 17 pages.