CPC G06N 3/063 (2013.01) [G06N 3/08 (2013.01); G06N 20/00 (2019.01)] | 14 Claims |
1. A calculation unit for calculating data according to input instructions, wherein the calculation unit is divided into an M-stage pipeline, the calculation unit comprising:
a serial decomposer configured to decompose the input instructions into N serial instructions, and generate intermediate data reflecting the dependency among the N serial instructions;
a local memory including a static memory segment to store the intermediate data, and a loop memory segment to store sub-data required to execute the N serial instructions and data of each stage generated by a calculation of the sub-data in the M-stage pipeline, where the sub-data is a part of the data, wherein the loop memory segment is divided into N sub-memory blocks, each sub-memory block stores specific sub-data required to execute specific serial instructions and the data at each stage generated by the specific sub-data in the M-stage pipeline;
a down-layer decoder configured to assign a local address of the specific sub-data; and
a direct memory access (DMA) configured to sequentially perform data exchange between each sub-memory block and an upper layer of memory according to the local address.
|