{"pub_number":"US12189552B2","doc_number":"12189552","country":"US","kind_code":"B2","patent_type":"utility","status":"active","title":"Data moving method, direct memory access apparatus and computer system","abstract_text":"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.","claims":[{"number":1,"text":"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","independent":true},{"number":2,"text":"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.","independent":false,"depends_on":[1]},{"number":3,"text":"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.","independent":false,"depends_on":[1]},{"number":4,"text":"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.","independent":false,"depends_on":[3]},{"number":5,"text":"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.","independent":false,"depends_on":[4]},{"number":6,"text":"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.","independent":false,"depends_on":[1]},{"number":7,"text":"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.","independent":false,"depends_on":[1]},{"number":8,"text":"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","independent":true}],"description":"CROSS REFERENCE\nThe 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.\nTECHNICAL FIELD\nThe 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.\nBACKGROUND\nIn 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.\nSUMMARY\nAccording 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.\nAccording 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","inventors":[{"name":"Shilin Luo","slug":"shilin-luo","city":"Beijing","country":"CN"}],"assignees":[{"name":"BEIJING ESWIN COMPUTING TECHNOLOGY CO., LTD.","slug":"beijing-eswin-computing-technology-co-ltd","country":"CN"}],"examiners":[],"cpc_codes":["G06F 13/28","G06F 9/30032"],"ipc_codes":["G06F 13/28","G06F 9/30"],"filing_date":"2022-12-23","pub_date":"2025-01-07","grant_date":"2025-01-07","expiration_date":"2042-12-23","family_members":[],"citations_made":[{"pub_number":"US5754436A","category":"examiner"},{"pub_number":"US9684615B1","category":"applicant"},{"pub_number":"US10637142B1","category":"examiner"},{"pub_number":"US11409685B1","category":"examiner"},{"pub_number":"US11500802B1","category":"applicant"},{"pub_number":"US11669473B2","category":"examiner"},{"pub_number":"US11714765B2","category":"examiner"},{"pub_number":"US11847507B1","category":"applicant"},{"pub_number":"US11868872B1","category":"applicant"},{"pub_number":"US11902372B1","category":"examiner"},{"pub_number":"US20020018598A1","category":"applicant"},{"pub_number":"US20040093438A1","category":"applicant"},{"pub_number":"US20060218313A1","category":"applicant"},{"pub_number":"US20080126600A1","category":"applicant"},{"pub_number":"US20090287857A1","category":"applicant"},{"pub_number":"US20110013696A1","category":"applicant"},{"pub_number":"US20140040512A1","category":"applicant"},{"pub_number":"US20140112645A1","category":"applicant"},{"pub_number":"US20140259149A1","category":"applicant"},{"pub_number":"US20170004101A1","category":"applicant"},{"pub_number":"US20180025038A1","category":"applicant"},{"pub_number":"US20180204111A1","category":"examiner"},{"pub_number":"US20190313251A1","category":"applicant"},{"pub_number":"US20190347542A1","category":"applicant"},{"pub_number":"US20200104167A1","category":"applicant"},{"pub_number":"US20200184278A1","category":"examiner"},{"pub_number":"US20200364088A1","category":"applicant"},{"pub_number":"US20210117246A1","category":"examiner"},{"pub_number":"US20210357742A1","category":"examiner"},{"pub_number":"US20220083486A1","category":"applicant"},{"pub_number":"US20220121884A1","category":"examiner"},{"pub_number":"US20230125397A1","category":"examiner"},{"pub_number":"US20240143525A1","category":"examiner"},{"pub_number":"US20240256475A1","category":"examiner"},{"pub_number":"US20240281376A1","category":"examiner"},{"pub_number":"US20240281393A1","category":"examiner"},{"pub_number":"CN104461970A","category":"applicant"},{"pub_number":"CN111047036A","category":"applicant"},{"pub_number":"CN112445431A","category":"applicant"},{"pub_number":"CN112765059A","category":"applicant"}],"non_patent_literature":["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."],"drawings_count":0,"source_id":"uspto_patent_grants","upstream_forward_citations":0,"metrics":{"forward_citations":0,"indexed_forward_citations":0,"backward_citations":40,"npl_citations":8,"citations_per_year":0.0,"pagerank":0.0,"citation_rank":3642650,"pagerank_rank":3642650,"velocity_rank":3642650,"family_citations":0}}