Buffer memory, arithmetic device and system using same, and operation method thereof

The buffer memory system addresses inefficiencies in storing and processing input feature sets by dividing them across multiple memories, ensuring order and enabling efficient batch operations, thus reducing costs and enhancing computational efficiency.

JP7565699B2Active Publication Date: 2024-10-11SK HYNIX INC +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2020051015
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-04-01
Filing Date
2020-03-23
Publication Date
2024-10-11
Estimated Expiration
2040-03-23

AI Technical Summary

Technical Problem

Existing technologies face challenges in efficiently storing and processing input feature sets in a manner that maintains their order across multiple memories, leading to inefficiencies in buffer memory usage and increased manufacturing costs.

Method used

A buffer memory system that divides and stores input feature sets across multiple memories in a specific order to ensure non-overlapping storage, allowing for simultaneous batch operations and efficient arithmetic processing.

Benefits of technology

This approach enhances buffer memory usage efficiency and reduces manufacturing costs by enabling simultaneous processing of multiple input feature sets while maintaining their order, thereby improving computational efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007565699000001
    Figure 0007565699000001
  • Figure 0007565699000002
    Figure 0007565699000002
  • Figure 0007565699000003
    Figure 0007565699000003
Patent Text Reader

Abstract

To increase the use efficiency of a buffer memory and to reduce the manufacturing cost of an arithmetic device.SOLUTION: A computing unit 102 includes a buffer memory 122 which provides a computing part 140 of a first to nth input feature sets. The buffer memory 122 includes the first to nth memories and stores the first to nth input feature sets FD having a plurality of features in the first to nth memories. The plurality of features included in one input feature set FD can be stored separately in the first to nth memories, and the features in the same order of the first to nth input feature sets can be stored in different memories, respectively.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to integrated circuit technology, and more particularly to a buffer memory, and a computing device and system using the same. [Background technology]

[0002] As the Fourth Industrial Revolution progresses, technologies related to the Internet of Things, mobile, cloud storage, big data analysis, and artificial intelligence are continuously developing. Technologies such as machine learning and deep learning have been developed to realize artificial intelligence. Machine learning and deep learning are similar in that they calculate or classify received input to generate output, but while machine learning analyzes and infers data through algorithms input by humans, deep learning can analyze and infer data through a deep neural network.

[0003] A deep neural network (DNN) circuit is a circuit that performs an operation on a received input to generate an output, and may include a matrix operation circuit that performs multiplication and accumulation (MAC operation) on the received input to generate an output. The matrix operation circuit is a circuit capable of performing a convolution operation and may include a systolic array. The systolic array may perform multiplication and addition on a set of input features such as activation inputs and weight data to generate an output. Summary of the Invention [Problem to be solved by the invention]

[0004] An embodiment of the present invention provides a buffer memory capable of dividing and storing each feature of a plurality of input feature sets into a plurality of memories, and storing features of the same order of the plurality of input feature sets in different memories, a calculation device and system using the same, and a method of operating the same. [Means for solving the problem]

[0005] An arithmetic device according to an embodiment of the present invention may include a buffer memory including first to nth memories, where first to nth input feature sets including a plurality of features are stored separately in the first to nth memories, respectively, and a plurality of features of one input feature set are stored separately in the first to nth memories, where features of the first to nth input feature sets in the same order are stored one by one in the first to nth memories, n being an integer greater than or equal to 2; and an arithmetic unit that receives the first to nth input feature sets stored in the buffer memory and performs arithmetic operations on the received input feature sets.

[0006] An arithmetic device according to an embodiment of the present invention may include a buffer memory including first to fourth memories, storing first to fourth input feature sets having at least first to fourth features in the first to fourth memories, and storing the first to fourth features of one input feature set separately in the first to fourth memories, while storing features of the same order in the first to fourth input feature sets separately so as not to overlap in the first to fourth memories; and a arithmetic unit receiving the first to fourth input feature sets stored in the buffer memory and performing arithmetic operations on the received input feature sets.

[0007] A system according to an embodiment of the present invention includes a host device that transfers first input data via a system bus, and a calculation device that receives the first input data and performs a calculation operation on the first input data, wherein the calculation device includes: a buffer that classifies and stores the first input data into first to n input feature sets, each having at least first to n features, where n is an integer greater than or equal to 2; a buffer memory that includes first to n memories, and stores the first to n features of the first to n input feature sets in the first to n memories, respectively, and the first to n features of one input feature set are divided and stored in the first to n memories; and a calculation unit that receives the first to n input feature sets stored in the buffer memory and performs a calculation operation on the first to n input feature sets.

[0008] A method of operating a system according to an embodiment of the present invention may include the steps of: classifying first input data transferred from a host device into first to n input feature sets each including first to n features, and temporarily storing the first to n input feature sets, where n is an integer greater than or equal to 2; storing the first to n features of the first to n input feature sets in first to n memories, where the first to n features of one input feature set are stored separately in the first to n memories, and features of the first to n input feature sets in the same order are stored evenly in the first to n memories; simultaneously outputting features of the first to n input feature sets in the same order; and performing a calculation operation on the output features. Effect of the Invention

[0009] Embodiments of the present invention can increase the efficiency of buffer memory usage and reduce the manufacturing costs of computing devices. [Brief description of the drawings]

[0010] [Figure 1] FIG. 1 is a diagram showing a configuration of a system according to an embodiment of the present invention. [Figure 2A] 2 is a diagram illustrating a configuration and an arithmetic operation of an arithmetic circuit according to an embodiment of the present invention; [Figure 2B] 2 is a diagram illustrating a configuration and an arithmetic operation of an arithmetic circuit according to an embodiment of the present invention; [Diagram 3] FIG. 2 is a diagram showing the flow of data in a system according to an embodiment of the present invention. [Figure 4] FIG. 2 is a diagram showing the configuration of a buffer memory according to an embodiment of the present invention and a scheme for storing multiple input feature sets in the buffer memory. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

[0012] FIG. 1 is a diagram showing a configuration of a system 1 according to an embodiment of the present invention. As shown in FIG. 1, the system 1 may include a host device 101 and a computing device 102. The host device 101 may provide data to the computing device 102 and receive data output from the computing device 102. The host device 101 may be connected to the computing device through a system bus 103. The host device 101 may transfer input data IND1 and IND2 to the computing device 102 through the system bus 103. The host device 101 may receive output data OD, which the computing device 102 generates by performing a computing operation on the input data IND1 and IND2, through the system bus. The host device 101 may also provide various control signals to the computing device 102 through the system bus 103 so that the computing device 102 can perform a computing operation. The input data may include first input data IND1 and second input data IND2. For example, the first input data IND1 may include information related to a set of input features. The second input data IND2 may include information related to weight data.

[0013] The arithmetic unit 102 may be connected to the host device 101 via the system bus 103. The arithmetic unit 102 may receive input data IND1 and IND2 transferred from the host device 101 via the system bus 103. The arithmetic unit 102 may receive the input data IND1 and IND2 and perform an arithmetic operation on the input data IND1 and IND2. The arithmetic unit 102 may transfer output data OD generated by performing the arithmetic operation to the host device 101 via the system bus 103. The arithmetic unit 102 may be a neural network arithmetic unit. The arithmetic unit 102 may receive first and second input data IND1 and IND2 from the host device 101 and perform an arithmetic operation on the input feature set and weight data. The arithmetic operation may be a convolution operation on the input feature set and the weight data, or a MAC (Multiply and Accumulation) operation.

[0014] The arithmetic device 102 may include a host interface 110, a buffering circuit 120, a memory 130, and an arithmetic unit 140. The host interface 110 may be connected to the system bus 103 to receive the input data IND1 and IND2 transferred from the host device 101, and provide the received input data IND1 and IND2 to an internal circuit of the arithmetic device 102. The host interface 110 may also transfer the output data OD generated from the arithmetic device 102 to the host device 101 via the system bus 103. The host interface 110 may receive the first and second input data IND1 and IND2 via the system bus 103. The host interface 110 may provide the received first input data IND1 to the buffering circuit 120, and provide the received second input data IND2 to the memory 130. The host interface 110 may receive the arithmetic result data CRD output from the arithmetic unit 140 via the buffering circuit 120. The host interface 110 can drive the system bus 103 based on the calculation result data CRD generated from the calculation unit 140 to transfer the output data OD to the host device 101 .

[0015] The buffering circuit 120 may receive first input data IND1 from the host interface 110. The buffering circuit 120 may classify the first input data IND1 into a plurality of input feature sets FD and store the classified data. Each of the plurality of input feature sets FD may include a plurality of features. The feature may be unit data of the input feature set FD including any number of bits. The data bandwidth of the system bus 103 may be different from the size of one feature. The data bandwidth of the system bus 103 may be larger than the size of one feature. The first input data IND1 may be transferred through the system bus in synchronization with a clock signal, the number of bits of the first input data IND1 transferred at one time through the system bus 103 may be larger than the number of bits of one feature, and the first input data IND1 transferred at one time through the system bus 103 may include information on a plurality of features. Thus, the buffering circuit 120 may classify the first input data IND1 into a plurality of input feature sets FD and store each of the classified input feature sets FD. The buffering circuit 120 can provide the plurality of input feature sets FD to the arithmetic unit 140. The buffering circuit 120 can perform a batch operation to simultaneously provide the plurality of input feature sets FD to the arithmetic unit 140 in order to increase the arithmetic efficiency of the arithmetic unit 140. The buffering circuit 120 can receive the calculation result data CRD generated by the arithmetic unit 140 performing a calculation operation, and provide the calculation result data CRD to the host interface 110.

[0016] The buffering circuit 120 may include a buffer 121 and a buffer memory 122. The buffer 121 may receive and store the first input data IND1. The buffer 121 may classify the first input data IND1 into a plurality of input feature sets FD and store the plurality of input feature sets FD individually. The buffer 121 may include a plurality of First-In First-Out (FIFO) circuits. The number of the FIFO circuits may at least correspond to the number of the input feature sets FD included in the first input data IND1. The plurality of FIFO circuits may store a plurality of features of the plurality of input feature sets FD, respectively.

[0017] The buffer memory 122 can store the input feature set FD output from the buffer 121 and output the stored input feature set FD to the arithmetic unit 140. The buffer memory 122 can store the input feature sets FD and perform a batch operation such that each feature of the input feature sets FD is output to the arithmetic unit 140 at the same time. The buffer memory 122 can include a plurality of memories. The number of memories included in the buffer memory 122 can at least correspond to the number of the input feature sets FD. The buffer memory 122 can store each feature of the input feature sets FD in the plurality of memories. Each of the plurality of memories can store one or more features of the input feature sets FD. The feature orders of the input feature sets FD stored in the plurality of memories can be different from each other. Features of the input feature sets FD with the same order can not be stored in the same memory. For example, a memory storing the l-th feature of one input feature set FD can not store the l-th feature of another input feature set FD. The l may be an integer between 1 and the number of features included in one input feature set. The buffer memory 122 can simultaneously output each feature of the multiple input feature sets FD to provide them to the arithmetic unit 140. The buffer memory 122 can simultaneously output the same order of the multiple features during a single read operation. For example, the buffer memory 122 can simultaneously output the lth feature of the multiple input feature sets during a single read operation. A detailed description of the buffer 121 and the buffer memory 122 will be provided later.

[0018] In one embodiment, each of the plurality of memories may be a dual-port static random access memory (SRAM). Each of the plurality of memories may have a storage depth corresponding to the number of bits included in at least one feature. For example, the plurality of memories may include a plurality of storage areas, each of which may store a number of bits corresponding to or greater than the number of bits of one feature. The plurality of storage areas may be accessible based on different addresses.

[0019] The memory 130 may receive second input data IND2 from the host interface 110. The memory 130 may classify and store the second input data IND2 into a plurality of weight data WD. The memory 130 may provide the plurality of weight data WD to the arithmetic unit 140. One weight data WD may include a plurality of weight signals. The weight signal may be unit data of the weight data WD including any number of bits. In one embodiment, the memory 130 may include a dynamic random access memory (DRAM) or a static random access memory (SRAM).

[0020] The arithmetic unit 140 may receive the input feature sets FD output from the buffering circuit 120. The arithmetic unit 140 may receive the weight data WD output from the memory 130. The arithmetic unit 140 may perform an arithmetic operation on the input feature sets FD and the weight data WD. For example, the arithmetic unit 140 may perform a convolution operation on the input feature sets FD and the weight data WD. The arithmetic unit 140 may include a plurality of arithmetic circuits 141, 142, ..., 14n. The plurality of arithmetic circuits 141, 142, ..., 14n may be MAC arithmetic circuits having the same structure. The plurality of arithmetic circuits 141, 142, ..., 14n may perform an arithmetic operation on the input feature sets FD and the weight data WD, and output the arithmetic operation results to the host interface 110. Each of the arithmetic circuits 141, 142, ..., 14n includes a plurality of processing elements, which receive the input feature set FD and the weight data WD in synchronization with a clock signal and perform a MAC operation on the received input feature set FD and the weight data WD. Each of the arithmetic circuits 141, 142, ..., 14n may include a systolic array that performs a MAC operation on the input feature set FD and the weight data WD.

[0021] 2a and 2b are diagrams illustrating the configuration and operation of an arithmetic circuit 200 according to an embodiment of the present invention. As shown in FIG. 2a, the arithmetic circuit 200 may be a systolic array including a plurality of processing elements (PEs). The arithmetic circuit 200 may be applied to each of the plurality of arithmetic circuits 141, 142, ..., 14n shown in FIG. 1. As shown in FIG. 2a, the arithmetic circuit 200 may receive three input feature sets including three features as input signals and three weight data including three weight signals. The arithmetic circuit 200 is illustrated as having nine processing elements so as to perform a MAC operation on three input feature sets including three features and three weight data including three weight signals. However, the number of input feature sets, the number of features included in one input feature set, the number of weight data, and the number of weight signals included in one weight data may be less than or more than three, and accordingly the number of the processing elements included in the arithmetic circuit 200 may be reduced or increased.

[0022] The arithmetic circuit 200 may include first to ninth processing elements PE1 to PE9. Each processing element sequentially receives features and weight signals included in the input feature set and weight data in synchronization with a clock signal CLK that defines a unit cycle, and may perform a MAC operation on the received features and weight signals. Each of the first to ninth processing elements PE1 to PE9 may include a multiply logic, an accumulation logic, and a register. The first to ninth processing elements PE1 to PE9 may perform multiplication by the multiply logic and addition by the accumulation logic in parallel. FIG. 2b shows an input feature set FD and weight data WD expressed in a matrix, and a result (FD×WD) of a convolution operation on the input feature set FD and weight data WD. The operation of the arithmetic circuit 200 will be described with reference to FIGS. 2a and 2b as follows.

[0023] When the first clock signal CLK1 toggles during the first unit cycle, the first processing element PE1 can receive the first feature F11 of the first input feature set and the first weight signal W11 of the first weight data. The first processing element PE1 can multiply the first feature F11 of the first input feature set and the first weight signal W11 of the first weight data to generate F11W11. The first clock signal CLK1 can be a pulse signal that toggles in synchronization with the first cycle of the clock signal CLK. Similarly, the second to ninth clock signals CLK2 to CLK9 can be pulse signals that toggle in synchronization with the second to ninth cycles of the clock signal CLK, respectively.

[0024] When the second clock signal CLK2 toggles during the second unit cycle, the first processing element PE1 can add the previously calculated F11W11 and 0 to store the calculation result. The first processing element PE1 can receive the second feature F12 of the first input feature set and receive the first weight signal W21 of the second weight data. The first processing element PE1 can output the first feature F11 of the first input feature set to the second processing element PE2 and output the first weight signal W11 of the first weight data to the third processing element PE3. The first processing element PE1 can multiply the second feature F12 of the first input feature set and the first weight signal W21 of the second weight data to generate F12W21. The second processing element PE2 can receive a second weight signal W12 of the first weight data in synchronization with the second clock signal CLK2, and can receive a first feature F11 of the first input feature set from the first processing element PE1. The second processing element PE2 can multiply the first feature F11 of the first input feature set and the second weight signal W12 of the first weight data to generate F11W12. The third processing element PE3 can receive a first feature F21 of the second input feature set in synchronization with the second clock signal CLK2, and can receive a first weight signal W11 of the first weight data from the first processing element PE1. The third processing element PE3 can multiply the first feature F21 of the second input feature set and the first weight signal W11 of the first weight data to generate F21W11.

[0025] When the third clock signal CLK3 toggles during the third unit cycle, the first processing element PE1 can add previously calculated F11W11 and F12W21 and store the calculation result (F11W11+F12W21). The first processing element PE1 can receive a third feature F13 of a first input feature set and a first weight signal W31 of third weight data. The first processing element PE1 can output a second feature F12 of the first input feature set to a second processing element PE2 and output a first weight signal W21 of the second weight data to the third processing element PE3. The first processing element PE1 can multiply the third feature F13 of the first input feature set and the first weight signal W31 of the third weight data to generate F13W31. The second processing element PE2 can add F11, W12, and 0, which have been previously calculated, and store the calculation result. The second processing element PE2 can receive a second weight signal W22 of the second weight data, and can receive a second feature F12 of the first input feature set from the first processing element PE1. The second processing element PE2 can output the first feature F11 of the first input feature set to the fourth processing element PE4, and output a second weight signal W12 of the first weight data to the fifth processing element PE5. The second processing element PE2 can multiply the second feature F12 of the first input feature set and the second weight signal W22 of the second weight data to generate F12W22. The third processing element PE3 can add F21, W11, and 0, which have been previously calculated, and store the calculation result. The third processing element PE3 receives a second feature F22 of the second input feature set, and can receive a first weight signal W21 of the second weight data from the first processing element PE1.The third processing element PE3 can output a first feature F21 of the second input feature set to the fifth processing element PE5, and output a first weight signal W11 of the first weight data to the sixth processing element PE6. The third processing element PE3 can multiply a second feature F22 of the second input feature set and a first weight signal W21 of the second weight data to generate F22W21. The fourth processing element PE4 can receive a third weight signal W13 of the first weight data in synchronization with the third clock signal CLK3, and can receive a first feature F11 of the first input feature set from the second processing element PE2. The fourth processing element PE4 can multiply a first feature F11 of the first input feature set and a third weight signal W13 of the first weight data to generate F11W13. The fifth processing element PE5 can receive a second weight signal W12 of the first weight data from the second processing element PE2, and can receive a first feature F21 of the second input feature set from the third processing element PE3. The fifth processing element PE5 can multiply the first feature F21 of the second input feature set and the second weight signal W12 of the first weight data to generate F21W12. The sixth processing element PE6 can receive a first feature F31 of the third input feature set in synchronization with the third clock signal CLK3, and can receive a first weight signal W11 of the first weight data from the third processing element PE3. The sixth processing element PE6 can multiply the first feature F31 of the third input feature set and the first weight signal W11 of the first weight data to generate F31W11.

[0026] When the fourth clock signal CLK4 toggles in the middle of the fourth unit cycle, the first processing element PE1 can add previously calculated F11W11+F12W21 and F13W31 and store the calculation result (F11W11+F12W21+F13W31). The first processing element PE1 can output the third feature F13 of the first input feature set to the second processing element PE2 and output the first weight signal W31 of the third weight data to the third processing element PE3. The second processing element PE2 can add previously calculated F11W12 and F12W22 and store the calculation result (F11W12+F12W22). The second processing element PE2 may receive a second weight signal W32 of the third weight data and may receive a third feature F13 of the first input feature set from the first processing element PE1. The second processing element PE2 may output the second feature F12 of the first input feature set to the fourth processing element PE4 and output a second weight signal W22 of the second weight data to the fifth processing element PE5. The second processing element PE2 may multiply the third feature F13 of the first input feature set and the second weight signal W32 of the third weight data to generate F13W32. The third processing element PE3 may add previously calculated F21W11 and F22W21 and store the calculation result (F21W11+F22W21). The third processing element PE3 can receive a third feature F23 of the second input feature set and can receive a first weight signal W31 of the third weight data from the first processing element PE1. The third processing element PE3 can output a second feature F22 of the second input feature set to the fifth processing element PE5 and can output a first weight signal W21 of the second weight data to the sixth processing element PE6.The third processing element PE3 may multiply a third feature F23 of the second input feature set and a first weight signal W31 of the third weight data to generate F23W31. The fourth processing element PE4 may receive a third weight signal W23 of the second weight data in synchronization with the fourth clock signal CLK4, and may receive a second feature F12 of the first input feature set from the second processing element PE2. The fourth processing element PE4 may add previously calculated F11W13 and 0 to store the calculation result. The fourth processing element PE4 may output a third weight signal W13 of the first weight data to the seventh processing element PE7. The fourth processing element PE4 may multiply a second feature F12 of the first input feature set and a third weight signal W23 of the second weight data to generate F12W23. The fifth processing element PE5 can add F21, W12, and 0, which have been previously calculated, and store the calculation result. The fifth processing element PE5 can receive a second weight signal W22 of the second weight data from the second processing element PE2, and can receive a second feature F22 of the second input feature set from the third processing element PE3. The fifth processing element PE5 can output a first feature F21 of the second input feature set to the seventh processing element PE7, and output a second weight signal W12 of the first weight data to the eighth processing element PE8. The fifth processing element PE5 can multiply the second feature F22 of the second input feature set and the second weight signal W22 of the second weight data to generate F22W22. The sixth processing element PE6 can add F31, W11, and 0, which have been previously calculated, and store the calculation result.The sixth processing element PE6 may receive a second feature F32 of the third input feature set and may receive a first weight signal W21 of the second weight data from the third processing element PE3. The sixth processing element PE6 may output the first feature F31 of the third input feature set to the eighth processing element PE8. The sixth processing element PE6 may multiply the second feature F32 of the third input feature set and the first weight signal W21 of the second weight data to generate F32W21. The seventh processing element PE7 may receive a third weight signal W13 of the first weight data from the fourth processing element PE4 and may receive a first feature F21 of the second input feature set from the fifth processing element PE5. The seventh processing element PE7 may multiply a first feature F21 of the second input feature set and a third weight signal W13 of the first weight data to generate F21W13. The eighth processing element PE8 may receive a second weight signal W12 of the first weight data from the fifth processing element PE5 and a first feature F31 of the third input feature set from the sixth processing element PE6. The eighth processing element PE8 may multiply a first feature F31 of the third input feature set and a second weight signal W12 of the first weight data to generate F31W12.

[0027] When the fifth clock signal CLK5 toggles in the middle of the fifth unit cycle, the second processing element PE2 can add previously calculated F11W12+F12W22 and F13W32 and store the calculation result (F11W12+F12W22+F13W32). The second processing element PE2 can output the third feature F13 of the first input feature set to the fourth processing element PE4 and output the second weight signal W32 of the third weight data to the fifth processing element PE5. The third processing element PE3 can add previously calculated F21W11+F22W21 and F23W31 and store the calculation result (F21W11+F22W21+F23W31). The third processing element PE3 may output a third feature F23 of the second input feature set to the fifth processing element PE5, and output a first weight signal W31 of the third weight data to the sixth processing element PE6. The fourth processing element PE4 may add previously calculated F11W13 and F12W23, and store the calculation result (F11W13+F12W23). The fourth processing element PE4 may receive a third weight signal W33 of the third weight data, and may receive a third feature F13 of the first input feature set from the second processing element PE2. The fourth processing element PE4 may output a third weight signal W23 of the second weight data to the seventh processing element PE7. The fourth processing element PE4 may multiply a third feature F13 of the first input feature set and a third weight signal W33 of the third weight data to generate F13W33. The fifth processing element PE5 may add previously calculated F21W12 and F22W22 and store the calculation result (F21W12+F22W22).The fifth processing element PE5 may receive a second weight signal W32 of the third weight data from the second processing element PE2 and may receive a third feature F23 of the second input feature set from the third processing element PE3. The fifth processing element PE5 may output a second feature F22 of the second input feature set to the seventh processing element PE7 and output a second weight signal W22 of the second weight data to the eighth processing element PE8. The fifth processing element PE5 may multiply the third feature F23 of the second input feature set and the second weight signal W32 of the third weight data to generate F23W32. The sixth processing element PE6 may add previously calculated F31W11 and F32W21 and store the calculation result (F31W11+F32W21). The sixth processing element PE6 may receive a third feature F33 of the third input feature set and may receive a first weight signal W31 of the third weight data from the third processing element PE3. The sixth processing element PE6 may output a second feature F32 of the third input feature set to the eighth processing element PE8. The sixth processing element PE6 may multiply the third feature F33 of the third input feature set and the first weight signal W31 of the third weight data to generate F33W31. The seventh processing element PE7 may add F21W13 and 0 previously calculated to store the calculation result. The seventh processing element PE7 may receive a third weight signal W23 of the second weight data from the fourth processing element PE4 and may receive a second feature F22 of the second input feature set from the fifth processing element PE5. The seventh processing element PE7 can output a third wait signal W13 of the first wait data to the ninth processing element PE9.The seventh processing element PE7 may multiply the second feature F22 of the second input feature set and the third weight signal W23 of the second weight data to generate F22W23. The eighth processing element PE8 may add previously calculated F31W12 and 0 to store the calculation result. The eighth processing element PE8 may receive the second weight signal W22 of the second weight data from the fifth processing element PE5 and the second feature F32 of the third input feature set from the sixth processing element PE6. The eighth processing element PE8 may output the first feature F31 of the third input feature set to the ninth processing element PE9. The eighth processing element PE8 may multiply the second feature F32 of the third input feature set and the second weight signal W22 of the second weight data to generate F32W22. The ninth processing element PE9 may receive a third weight signal W13 of the first weight data from the seventh processing element PE7 and may receive a first feature F31 of the third input feature set from the eighth processing element PE8. The ninth processing element PE9 may multiply the first feature F31 of the third input feature set and the third weight signal W13 of the first weight data to generate F31W13.

[0028] When the sixth clock signal toggles during the sixth unit cycle, the fourth processing element PE4 can add previously calculated F11W13+F12W23 and F13W33 and store the calculation result (F11W13+F12W23+F13W33). The fourth processing element PE4 can output a third wait signal W33 of the third wait data to the seventh processing element PE7. The fifth processing element PE5 can add previously calculated F21W12+F22W22 and F23W32 and store the calculation result (F21W12+F22W22+F23W32). The fifth processing element PE5 can output a third feature F23 of the second input feature set to the seventh processing element PE7, and output a second weight signal W32 of the third weight data to the eighth processing element PE8. The sixth processing element PE6 can add previously calculated F31W11+F32W21 and F33W31, and store the calculation result (F31W11+F32W21+F33W31). The sixth processing element PE6 can output a third feature F33 of the third input feature set to the eighth processing element PE8. The seventh processing element PE7 can add previously calculated F21W13 and F22W23, and store the calculation result (F21W13+F22W23). The seventh processing element PE7 may receive a third weight signal W33 of the third weight data from the fourth processing element PE4 and may receive a third feature F23 of the second input feature set from the fifth processing element PE5. The seventh processing element PE7 may output the third weight signal W23 of the second weight data to the ninth processing element PE9. The seventh processing element PE7 may multiply the third feature F23 of the second input feature set and the third weight signal W33 of the third weight data to generate F23W33.The eighth processing element PE8 can add previously calculated F31W12 and F32W22 and store the calculation result (F31W12+F32W22). The eighth processing element PE8 can receive a second weight signal W32 of the third weight data from the fifth processing element PE5 and a third feature F33 of the third input feature set from the sixth processing element PE6. The eighth processing element PE8 can output the second feature F32 of the third input feature set to the ninth processing element PE9. The eighth processing element PE8 can multiply the third feature F33 of the third input feature set and the second weight signal W32 of the third weight data to generate F33W32. The ninth processing element PE9 can add previously calculated F31W13 and 0 and store the calculation result. The ninth processing element PE9 may receive a third weight signal W23 of the second weight data from the seventh processing element PE7 and may receive a second feature F32 of a third input feature set from the eighth processing element PE8. The ninth processing element PE9 may multiply the second feature F32 of the third input feature set and the third weight signal W23 of the second weight data to generate F32W23.

[0029] When the seventh clock signal toggles during the seventh unit cycle, the seventh processing element PE7 can add previously calculated F21W13+F22W23 and F23W33 and store the calculation result (F21W13+F22W23+F23W33). The third weight signal W33 of the third weight data is output to the ninth processing element PE9, and the eighth processing element PE8 can add previously calculated F31W12+F32W22 and F33W32 and store the calculation result (F31W12+F32W22+F33W32). The eighth processing element PE8 can output the third feature F33 of the third input feature set to the ninth processing element PE9. The ninth processing element PE9 may add previously calculated F31W13 and F32W23 and store the calculation result (F31W13+F32W23). The ninth processing element PE9 may multiply a third feature F33 of the third input feature set and a third weight signal W33 of the third weight data to generate F33W33.

[0030] If the eighth clock signal toggles during the eighth unit cycle, the ninth processing element PE9 can add previously calculated F31W13+F32W23 and F33W33 and store the calculation result (F31W13+F32W23+F33W33). If the ninth clock signal toggles during the ninth unit cycle, the calculation results stored in the first to ninth processing elements PE1 to PE9 can be output, and as shown in FIG. 2b, the results (FD×WD) of the convolution of the first to third input feature sets FD and the first to third weight data WD can be output from the first to ninth processing elements PE1 to PE9.

[0031] FIG. 3 is a diagram showing a data flow in the system 1 according to an embodiment of the present invention. As shown in FIG. 1 and FIG. 3, the host device 101 can transmit first input data IND1 via the system bus 103. The first input data IND1 can include a plurality of input feature sets. The data bandwidth of the system bus 103 can be larger than the size of one feature, and the data bits transmitted at one time via the system bus 103 can include a plurality of features. For example, if the data bandwidth of the system bus 103 is 32 bits and the size of one feature is 8 bits, four features can be transmitted at one time via the system bus 103. If the first input data IND1 is 256 bits, the first input data IND1 can include four input feature sets, each including eight features. As shown in FIG. 3, the data bandwidth of the system bus 103 is 32 bits as an example, but it can be 16 bits or less and 64 bits or more. Also, the size of one feature is 8 bits as an example, but it can be 4 bits or less and 16 bits or more.

[0032] The system bus 103 may include a plurality of buses. For clarity of explanation, it is assumed below that four features are transferred at once through the system bus 103. The system bus 103 may include first to fourth buses. Each of the first to fourth buses may include a plurality of signal transfer lines. One signal transfer line may be for transferring one bit of the first input data IND1. One bus refers to a signal transfer line capable of transferring a plurality of bits corresponding to one feature. It is exemplified that one bus includes eight signal transfer lines and one feature includes eight bits.

[0033] The first to fourth buses can serially transfer bits of the first input data IND1. The first input data IND1 can be transferred 8 times via the first to fourth buses in synchronization with a clock signal, and can include a total of 256 bits. The first bus can sequentially transfer the 1st to 8th bits I11, the 33rd to 40th bits I15, the 65th to 72nd bits I21, the 97th to 104th bits I25, the 129th to 136th bits I31, the 161st to 168th bits I35, the 193rd to 200th bits I41, and the 225th to 232nd bits I45 of the first input data in synchronization with a clock signal. The 1st to 8th bits I11 of the first input data IND1 can correspond to a first feature F11 of the first input feature set FD1. The 33rd to 40th bits I15 of the first input data IND1 can correspond to a fifth feature F15 of the first input feature set FD1. The 65th to 72nd bits I21 of the first input data IND1 can correspond to a first feature F21 of the second input feature set FD2. The 97th to 104th bits I25 of the first input data IND1 can correspond to a fifth feature F25 of the second input feature set FD2. The 129th to 136th bits I31 of the first input data IND1 can correspond to a first feature F31 of the third input feature set FD3. The 161st to 168th bits I35 of the first input data IND1 can correspond to a fifth feature F35 of the third input feature set FD3. The 193rd to 200th bits I41 of the first input data IND1 can correspond to a first feature F41 of the fourth input feature set FD4. The 225th to 232nd bits I45 of the first input data IND1 may correspond to a fifth feature F45 of a fourth input feature set FD4.

[0034] The second bus can sequentially transfer the 9th to 16th bits I12, the 41st to 48th bits I16, the 73rd to 80th bits I22, the 105th to 112th bits I26, the 137th to 144th bits I32, the 169th to 176th bits I36, the 201st to 208th bits I42, and the 233rd to 240th bits I46 of the first input data IND1 in synchronization with the clock signal. The 9th to 16th bits I12 of the first input data IND1 can correspond to the second feature F12 of the first input feature set FD1. The 41st to 48th bits I16 of the first input data IND1 can correspond to the sixth feature F16 of the first input feature set FD1. The 73rd to 80th bits I22 of the first input data IND1 can correspond to a second feature F22 of the second input feature set FD2. The 105th to 112th bits I26 of the first input data IND1 can correspond to a sixth feature F26 of the second input feature set FD2. The 137th to 144th bits I32 of the first input data IND1 can correspond to a second feature F32 of the third input feature set FD3. The 169th to 176th bits I36 of the first input data IND1 can correspond to a sixth feature F36 of the third input feature set FD3. The 201st to 208th bits I42 of the first input data IND1 can correspond to a second feature F42 of the fourth input feature set FD4. The 233rd to 240th bits I46 of the first input data IND1 can correspond to a sixth feature F46 of the fourth input feature set FD4.

[0035] The third bus can sequentially transfer the 17th to 24th bits I13, the 49th to 56th bits I17, the 81st to 88th bits I23, the 113th to 120th bits I27, the 145th to 152nd bits I33, the 177th to 184th bits I37, the 209th to 216th bits I43, and the 241st to 248th bits I47 of the first input data IND1 in synchronization with the clock signal. The 17th to 24th bits I13 of the first input data IND1 can correspond to the third feature F13 of the first input feature set FD1. The 49th to 56th bits I17 of the first input data IND1 can correspond to the seventh feature F17 of the first input feature set FD1. The 81st to 88th bits I23 of the first input data IND1 can correspond to the third feature F23 of the second input feature set FD2. The 113th to 120th bits I27 of the first input data IND1 can correspond to the seventh feature F27 of the second input feature set FD2. The 145th to 152nd bits I33 of the first input data IND1 can correspond to the third feature F33 of the third input feature set FD3. The 177th to 184th bits I37 of the first input data IND1 can correspond to the seventh feature F37 of the third input feature set FD3. The 209th to 216th bits I43 of the first input data IND1 can correspond to the third feature F43 of the fourth input feature set FD4. The 241st to 248th bits I47 of the first input data IND1 can correspond to the seventh feature F47 of the fourth input feature set FD4.

[0036] The fourth bus can sequentially transfer the 25th to 32nd bits I14, the 57th to 64th bits I18, the 89th to 96th bits I24, the 121st to 128th bits I28, the 153rd to 160th bits I34, the 185th to 192nd bits I38, the 217th to 224th bits I44, and the 249th to 256th bits I48 of the first input data IND1 in synchronization with the clock signal. The 25th to 32nd bits I14 of the first input data IND1 can correspond to the fourth feature F14 of the first input feature set FD1. The 57th to 64th bits I18 of the first input data IND1 can correspond to the eighth feature F18 of the first input feature set FD1. The 89th to 96th bits I24 of the first input data IND1 can correspond to a fourth feature F24 of the second input feature set FD2. The 121st to 128th bits I28 of the first input data IND1 can correspond to an eighth feature F28 of the second input feature set FD2. The 153rd to 160th bits I34 of the first input data IND1 can correspond to a fourth feature F34 of the third input feature set FD3. The 185th to 192nd bits I38 of the first input data IND1 can correspond to an eighth feature F38 of the third input feature set FD3. The 217th to 224th bits I44 of the first input data IND1 can correspond to a fourth feature F44 of the fourth input feature set FD4. The 249th to 256th bits I48 of the first input data IND1 can correspond to an eighth feature F48 of the fourth input feature set FD4.

[0037] The arithmetic device 102 includes the buffering circuit 120 for classifying the first input data IND1 into a plurality of input feature sets and providing the plurality of input feature sets FD to the arithmetic unit 140. The buffer 121 of the buffering circuit 120 may include a plurality of FIFO circuits. The first FIFO circuit FIFO1 may store 1st to 64th bits I11 to I18 of the first input data IND1, and information stored in the first FIFO circuit FIFO1 may correspond to a first input feature set FD1. The second FIFO circuit FIFO2 may store 65th to 128th bits I21 to I28 of the first input data IND1, and information stored in the second FIFO circuit FIFO2 may correspond to a second input feature set FD2. The third FIFO circuit FIFO3 may store 129th to 192nd bits I31 to I38 of the first input data IND1, and information stored in the third FIFO circuit FIFO3 may correspond to a third input feature set FD3. The fourth FIFO circuit FIFO4 can store the 193rd to 256th bits I41 to I48 of the first input data IND1, and the information stored in the fourth FIFO circuit FIFO4 can correspond to a fourth input feature set FD4.

[0038] The buffer memory 122 of the buffering circuit 120 can perform the batch operation so as to simultaneously provide the first to fourth input feature sets FD1 to FD4 to the arithmetic unit 140. Since the number of input feature sets is four, the buffer memory 122 can include at least four memories. As shown in FIG. 3, the buffer memory 122 needs to divide and store the features F11 to F18, F21 to F28, F31 to F38, and F41 to F48 of the first to fourth input feature sets FD1 to FD4 into four memories so that the features F11 to F18, F21 to F28, F31 to F38, and F41 to F48 of the first to fourth input feature sets FD1 to FD4 can be output simultaneously. In this case, when one input feature set is stored in one memory, the batch operation can be performed sufficiently. Here, the size of the input feature set may vary depending on the type and characteristics of data or application. However, the memories have a fixed size and / or depth. Therefore, if a memory size that is too small is used, input feature sets of various sizes may not be stored, and if a memory size that is too large is used, a lot of storage space may be wasted in the memory storage space. Therefore, an efficient method for storing the input feature set using a memory of a minimum size may be required.

[0039] FIG. 4 is a diagram illustrating a configuration of a buffer memory 400 according to an embodiment of the present invention and a method of storing a plurality of input feature sets in the buffer memory 400. The buffer memory 400 may be applied to the buffer memory 122 shown in FIG. 1. As shown in FIG. 4, the buffer memory 400 may include first to fourth memories 410, 420, 430, and 440. The features F11 to F18, F21 to F28, F31 to F38, and F41 to F48 of the first to fourth input feature sets FD1 to FD4 may be stored separately in the first to fourth memories 410, 420, 430, and 440. The first to fourth memories 410, 420, 430, and 440 may not store the features of the first to fourth input feature sets FD1 to FD4 in the same order. The features of one input feature set may be stored separately in the first to fourth memories 410, 420, 430, and 440. The features in the first to fourth input feature sets FD1 to FD4 in the same order may be stored separately (or evenly) in the first to fourth memories 410, 420, 430, and 440. The features in the first to fourth input feature sets FD1 to FD4 in the same order may be stored separately in the first to fourth memories 410, 420, 430, and 440 so as not to overlap.

[0040] The order in which the features F11-F18, F21-F28, F31-F38, and F41-F48 of the first to fourth input feature sets FD1-FD4 are stored in the first to fourth memories 410, 420, 430, and 440 may be different from each other. The features F11-F18, F21-F28, F31-F38, and F41-F48 of the first to fourth input feature sets FD1-FD4 may be stored separately in the first to fourth memories 410, 420, 430, and 440 in the order in which they are shifted relative to each other. For example, the first feature of the k-th input feature set may be stored in the k-th memory. k may be an integer between 1 and 4. The first to fourth features F11, F12, F13, and F14 of the first input feature set FD1 may be stored in the first to fourth memories 410, 420, 430, and 440, respectively, and the fifth to eighth features F15, F16, F17, and F18 of the first input feature set FD1 may be stored in the first to fourth memories 410, 420, 430, and 440, respectively. The order of the memories in which the first to eighth features F21 to F28 of the second input feature set FD2 are stored may be shifted. The first to third features F21, F22, and F23 of the second input feature set FD2 may be stored in the second to fourth memories 420, 430, and 440, respectively, and the fourth feature F24 of the second input feature set FD2 may be stored in the first memory 410. The fifth to seventh features F25, F26, and F27 of the second input feature set FD2 may be stored in the second to fourth memories 420, 430, and 440, respectively, and the eighth feature F28 of the second input feature set FD2 may be stored in the first memory 410. The order of the memories in which the first to eighth features F31 to F38 of the third input feature set FD3 are stored may be shifted. The first and second features F31 and F32 of the third input feature set FD3 may be stored in the third and fourth memories 430 and 440, respectively, and the third and fourth features F33 and F34 of the third input feature set FD3 may be stored in the first and second memories 410 and 420, respectively.The fifth and sixth features F35, F36 of the third input feature set FD3 may be stored in the third and fourth memories 430, 440, respectively, and the seventh and eighth features F37, F38 of the third input feature set FD3 may be stored in the first and second memories 410, 420, respectively. The order of the memories in which the first to eighth features F41 to F48 of the fourth input feature set FD4 are stored may be shifted. The first feature F41 of the fourth input feature set FD4 may be stored in the fourth memory 440, and the second to fourth features F42, F43, F44 of the fourth input feature set FD4 may be stored in the first to third memories 410, 420, 430, respectively. The fifth feature F45 of the fourth input feature set FD4 may be stored in the fourth memory 440, and the sixth to eighth features F46, F47, and F48 of the fourth input feature set FD4 may be stored in the first to third memories 410, 420, and 430, respectively.

[0041] Each of the first to fourth memories 410, 420, 430, and 440 may include a plurality of storage areas. Each of the plurality of storage areas may store one feature. The number of the plurality of storage areas may be equal to or greater than the number of features included in one input feature set. As shown in FIG. 4, each of the first to fourth memories 410, 420, 430, and 440 includes eight storage areas, but may include more storage areas so that an input feature set including more features can be stored. The plurality of storage areas may be assigned and / or mapped with different addresses, and may be accessed based on the assigned and / or mapped addresses.

[0042] Specifically, the manner in which the first to fourth input feature sets FD1 to FD4 are stored in the first to fourth memories 410, 420, 430, and 440 will be described as follows. The first to fourth memories 410, 420, 430, and 440 can store the features F11 to F18, F21 to F28, F31 to F38, and F41 to F48 of the first to fourth input feature sets FD1 to FD4 by performing a write operation. The first feature F11 of the first input feature set FD1 can be stored in the first storage area 411 of the first memory 410. The second to fourth features F12, F13, and F14 of the first input feature set FD1 can be stored in the first storage areas 421, 431, and 441 of the second to fourth memories 420, 430, and 440, respectively. The fifth to eighth features F15, F16, F17, F18 of the first input feature set FD1 may be stored in second storage areas 412, 422, 432, 442 of the first to fourth memories 410, 420, 430, 440, respectively. The first feature F21 of the second input feature set FD2 may be stored in a third storage area 423 of the second memory 420. The second and third features F22, F23 of the second input feature set FD2 may be stored in third storage areas 433, 443 of the third and fourth memories 430, 440, respectively. The fourth feature F24 of the second input feature set FD2 may be stored in a third storage area 413 of the first memory 410. The fifth to seventh features F25, F26, F27 of the second input feature set FD2 may be stored in fourth storage areas 424, 434, 444 of the second to fourth memories 420, 430, 440, respectively, and the eighth feature F28 of the second input feature set FD2 may be stored in the fourth storage area 414 of the first memory 410. The first feature F31 of the third input feature set FD3 may be stored in the fifth storage area 435 of the third memory 430.The second feature F32 of the third input feature set FD3 may be stored in a fifth storage area 445 of the fourth memory 440, and the third and fourth features F33, F34 of the third input feature set FD3 may be stored in the fifth storage areas 415, 425 of the first and second memories 410, 420, respectively. The fifth and sixth features F35, F36 of the third input feature set FD3 may be stored in the sixth storage areas 436, 446 of the third and fourth memories 430, 440, respectively, and the seventh and eighth features F37, F38 of the third input feature set FD3 may be stored in the sixth storage areas 416, 426 of the first and second memories 410, 420, respectively. The first feature F41 of the fourth input feature set FD4 may be stored in the seventh storage area 447 of the fourth memory 440. The second to fourth features F42, F43, and F44 of the fourth input feature set FD4 may be stored in seventh storage areas 417, 427, and 437 of the first to third memories 410, 420, and 430, respectively. The fifth feature F45 of the fourth input feature set FD4 may be stored in an eighth storage area 448 of the fourth memory 440, and the sixth to eighth features F46, F47, and F48 of the fourth input feature set FD4 may be stored in eighth storage areas 418, 428, and 438 of the first to third memories 410, 420, and 430, respectively.

[0043] The first to fourth memories 410, 420, 430, 440 can simultaneously store the first to fourth features F11, F12, F13, F14 of the first input feature set FD1 in the first storage areas 411, 421, 431, 441 of the first to fourth memories 410, 420, 430, 440, respectively, based on a first address ADD1. The first to fourth memories 410, 420, 430, 440 can simultaneously store the fifth to eighth features F15, F16, F17, F18 of the first input feature set FD1 in the second storage areas 412, 422, 432, 442 of the first to fourth memories 410, 420, 430, 440, respectively, based on a second address ADD2. The first to fourth memories 410, 420, 430, 440 can simultaneously store the first to fourth features F21, F22, F23, F24 of the second input feature set FD2 in the third storage areas 413, 423, 433, 443 of the first to fourth memories 410, 420, 430, 440, respectively, based on a third address ADD3. The first to fourth memories 410, 420, 430, 440 can simultaneously store the fifth to eighth features F25, F26, F27, F28 of the second input feature set FD2 in the fourth storage areas 414, 424, 434, 444 of the first to fourth memories 410, 420, 430, 440, respectively, based on a fourth address ADD4. The first to fourth memories 410, 420, 430, 440 can simultaneously store the first to fourth features F31, F32, F33, F34 of the third input feature set FD3 in the fifth storage areas 415, 425, 435, 445 of the first to fourth memories 410, 420, 430, 440, respectively, based on a fifth address ADD5. The first to fourth memories 410, 420, 430, 440 can simultaneously store the fifth to eighth features F35, F36, F37, F38 of the third input feature set FD3 in the sixth storage areas 416, 426, 436, 446 of the first to fourth memories 410, 420, 430, 440, respectively, based on a sixth address ADD6.The first to fourth memories 410, 420, 430, 440 can simultaneously store the first to fourth features F41, F42, F43, F44 of the fourth input feature set FD4 in the seventh storage areas 417, 427, 437, 447 of the first to fourth memories 410, 420, 430, 440, respectively, based on a seventh address ADD7. The first to fourth memories 410, 420, 430, 440 can simultaneously store the fifth to eighth features F45, F46, F47, F48 of the fourth input feature set FD4 in the eighth storage areas 418, 428, 438, 448 of the first to fourth memories 410, 420, 430, 440, respectively, based on an eighth address ADD8.

[0044] In one embodiment, when the first to fourth input feature sets FD1 to FD4 include less than eight features, some storage areas of the first to fourth memories 410, 420, 430, 440 may not be used. For example, when the first to fourth input feature sets FD1 to FD4 each include three features, the first to third features F11, F12, F13 of the first input feature set FD1 may be stored in the first storage areas 411, 421, 431 of the first to third memories 410, 420, 430, respectively. The first to third features F21, F22, F23 of the second input feature set FD2 may be stored in the second storage areas 422, 432, 442 of the second to fourth memories 420, 430, 440, respectively. The first and second features F31, F32 of the third input feature set FD3 may be stored in third storage areas 433, 443 of the third and fourth memories 430, 440, respectively, and the third feature F33 of the third input feature set FD3 may be stored in the third storage area 413 of the first memory 410. The first feature F41 of the fourth input feature set FD4 may be stored in a fourth storage area 444 of the fourth memory 440, and the second and third features F42, F43 of the fourth input feature set FD4 may be stored in fourth storage areas 414, 424 of the first and second memories 410, 420, respectively.

[0045] The first to fourth memories 410, 420, 430, 440 can simultaneously output the same ordered features of the first to fourth input feature sets FD1 to FD4 during a single read operation. During a first read operation, the first to fourth memories 410, 420, 430, 440 can simultaneously output the first features F11, F21, F31, F41 of the first to fourth input feature sets FD1 to FD4 based on a first address ADD1, a third address ADD3, a fifth address ADD5, and a seventh address ADD7, respectively. The first features F11, F21, F31, F41 of the first to fourth input feature sets FD1 to FD4 can be provided to four arithmetic circuits of the arithmetic unit 140, respectively. During a second read operation, the first to fourth memories 410, 420, 430, 440 can simultaneously output second features F12, F22, F32, F42 of the first to fourth input feature sets FD1 to FD4 based on a seventh address ADD7, a first address ADD1, a third address ADD3, and a fifth address ADD5, respectively. The second features F12, F22, F32, F42 of the first to fourth input feature sets FD1 to FD4 can be provided to the four calculation circuits, respectively. During a third read operation, the first to fourth memories 410, 420, 430, 440 can simultaneously output the third features F13, F23, F33, F43 of the first to fourth input feature sets FD1 to FD4 according to the fifth address ADD5, the seventh address ADD7, the first address ADD1, and the third address ADD3, respectively. The third features F13, F23, F33, F43 of the first to fourth input feature sets FD1 to FD4 can be provided to four arithmetic circuits of the arithmetic unit 140, respectively. During the fourth read operation, the first to fourth memories 410, 420, 430, 440 can simultaneously output fourth features F14, F24, F34, F44 of the first to fourth input feature sets FD1 to FD4 based on the third address ADD3, the fifth address ADD5, the seventh address ADD7, and the first address ADD1, respectively.The fourth features F14, F24, F34, F44 of the first to fourth input feature sets FD1 to FD4 can be provided to the four calculation circuits, respectively. During a fifth read operation, the first to fourth memories 410, 420, 430, 440 can simultaneously output the fifth features F15, F25, F35, F45 of the first to fourth input feature sets FD1 to FD4 based on the second address ADD2, the fourth address ADD4, the sixth address ADD6, and the eighth address ADD8, respectively. The fifth features F15, F25, F35, F45 of the first to fourth input feature sets FD1 to FD4 can be provided to the four calculation circuits, respectively. During a sixth read operation, the first to fourth memories 410, 420, 430, 440 can simultaneously output sixth features F16, F26, F36, F46 of the first to fourth input feature sets FD1 to FD4 based on an eighth address ADD8, a second address ADD2, a fourth address ADD4, and a sixth address ADD6, respectively. The sixth features F16, F26, F36, F46 of the first to fourth input feature sets FD1 to FD4 can be provided to the four calculation circuits, respectively. During a seventh read operation, the first to fourth memories 410, 420, 430, 440 can simultaneously output seventh features F17, F27, F37, F47 of the first to fourth input feature sets FD1 to FD4 based on the sixth address ADD6, the eighth address ADD8, the second address ADD2, and the fourth address ADD4, respectively. The seventh features F17, F27, F37, F47 of the first to fourth input feature sets FD1 to FD4 can be provided to the four calculation circuits, respectively. During an eighth read operation, the first to fourth memories 410, 420, 430, 440 can simultaneously output eighth features F18, F28, F38, F48 of the first to fourth input feature sets FD1 to FD4 based on the fourth address ADD4, the sixth address ADD6, the eighth address ADD8, and the second address ADD2, respectively. The eighth features F18, F28, F38, F48 of the first to fourth input feature sets FD1 to FD4 can be provided to the four calculation circuits, respectively.The arithmetic unit 140 sequentially receives the first to eighth features F11 to F18, F21 to F28, F31 to F38, and F41 to F48 of the first to fourth input feature sets FD1 to FD4 from the buffer memory 122, and can simultaneously perform arithmetic operations on the first to fourth input feature sets FD1 to FD4. The embodiment of the present invention can increase the operating efficiency of the system and reduce the manufacturing cost of the arithmetic device by enabling batch operations on a plurality of input feature sets using a small-sized memory.

[0046] Those skilled in the art to which the present invention pertains should understand that the present invention can be embodied in other specific forms without departing from the technical spirit and essential features thereof, and that the above-described embodiments are illustrative and not limiting in all respects. The scope of the present invention is defined by the claims below rather than the above detailed description, and all modifications and variations derived from the meaning and scope of the claims and their equivalent concepts should be interpreted as being included in the scope of the present invention.

Claims

1. a buffer memory including first through n-th memories, in which first through n-th input feature sets each including a plurality of features are stored separately in the first through n-th memories, and a plurality of features of one input feature set are stored separately in the first through n-th memories, but features of the first through n-th input feature sets in the same order are stored one by one in the first through n-th memories, where n is an integer of 2 or more; and a computation unit configured to receive the first through n-th input feature sets stored in the buffer memory and to perform a computation operation on the received input feature sets.

2. 2. The arithmetic unit of claim 1, wherein the buffer memory stores a first feature of a kth input feature set in the kth memory, where k is an integer between 1 and n.

3. The arithmetic unit according to claim 2 , wherein the buffer memory stores an (n+1)th feature among a plurality of features of a kth input feature set in the kth memory.

4. 2. The computing device of claim 1, wherein the buffer memory simultaneously stores first through lth features of the first input feature set in the first through lth memories, respectively, where l is an integer between 2 and n.

5. 2. The computing device of claim 1, wherein said buffer memory simultaneously outputs the same ordered features of said first through n-th input feature sets during a single read operation.

6. a buffer memory including first to fourth memories, storing first to fourth input feature sets having at least first to fourth features in the first to fourth memories, and storing the first to fourth features of one input feature set separately in the first to fourth memories, but storing features of the first to fourth input feature sets in the first to fourth memories separately so as not to overlap; and 11. An arithmetic device comprising: a calculation unit configured to receive the first through fourth input feature sets stored in the buffer memory and perform a calculation operation on the received input feature sets.

7. 7. The computing device of claim 6, wherein a first feature of the first input feature set is stored in a first storage area of ​​the first memory, a second feature of the first input feature set is stored in a first storage area of ​​the second memory, a third feature of the first input feature set is stored in a first storage area of ​​the third memory, and a fourth feature of the first input feature set is stored in a first storage area of ​​the fourth memory.

8. 8. The computing device of claim 7, wherein a first feature of the second input feature set is stored in a second storage area of ​​the second memory, a second feature of the second input feature set is stored in a second storage area of ​​the third memory, a third feature of the second input feature set is stored in a second storage area of ​​the fourth memory, and a fourth feature of the second input feature set is stored in a second storage area of ​​the first memory.

9. 9. The computing device of claim 8, wherein a first feature of the third input feature set is stored in a third storage area of ​​the third memory, a second feature of the third input feature set is stored in a third storage area of ​​the fourth memory, a third feature of the third input feature set is stored in a third storage area of ​​the first memory, and a fourth feature of the third input feature set is stored in a third storage area of ​​the second memory.

10. 10. The computing device of claim 9, wherein a first feature of the fourth input feature set is stored in a fourth storage area of ​​the fourth memory, a second feature of the fourth input feature set is stored in a fourth storage area of ​​the first memory, a third feature of the fourth input feature set is stored in a fourth storage area of ​​the second memory, and a fourth feature of the fourth input feature set is stored in a fourth storage area of ​​the third memory.

11. 7. The computing device of claim 6, wherein the buffer memory simultaneously outputs first features of the first through fourth input feature sets during a first read operation.

12. 12. The computing device of claim 11, wherein the buffer memory simultaneously outputs second features of the first through fourth input feature sets during a second read operation.

13. 13. The computing device of claim 12, wherein the buffer memory simultaneously outputs a third feature of the first through fourth input feature sets during a third read operation.

14. 14. The computing device of claim 13, wherein the buffer memory simultaneously outputs a fourth feature of the first through fourth input feature sets during a fourth read operation.

15. a host device for transferring first input data via a system bus; a computation unit configured to receive the first input data and perform a computation operation on the first input data; the computing device classifies the first input data into first to nth input feature sets each having at least first to nth features, and stores the first input data in a buffer, n being an integer equal to or greater than 2; a buffer memory including first through n-th memories, storing first through n-th features of the first through n-th input feature sets in the first through n-th memories, respectively, storing features of the first through n-th input feature sets in the same order separately in the first through n-th memories so as not to overlap, and storing the first through n-th features of one input feature set in the first through n-th memories in a divided manner; and a computation unit configured to receive the first through n-th input feature sets stored in the buffer memory and to perform computation operations on the first through n-th input feature sets.

16. 16. The system of claim 15, wherein the buffer includes n first-in first-out (FIFO) circuits for storing the first through n-th input feature sets, respectively.

17. each of the first through n-th input feature sets further includes an n+1th feature; The system of claim 15, wherein the buffer memory stores the n+1th feature of the first through nth input feature sets in a memory in which the first feature of the first through nth input feature sets is stored, respectively.

18. 16. The system of claim 15, wherein the buffer memory simultaneously outputs the same ordered features of the first through nth input feature sets during a single read operation.

19. the host device further transfers second input data via the system bus; 16. The system of claim 15, wherein the arithmetic device further includes a memory that stores the second input data and outputs the second input data to the arithmetic unit as weight data.

20. classifying the first input data transferred from the host device into first to n-th input feature sets including first to n-th features, respectively, and temporarily storing the first to n-th input feature sets, where n is an integer equal to or greater than 2; storing the first to n-th features of the first to n-th input feature sets in first to n-th memories, the first to n-th features of one input feature set being stored separately in the first to n-th memories, and features of the first to n-th input feature sets in the same order being stored separately one by one in the first to n-th memories; outputting the first through nth input feature sets in the same order simultaneously; and A method of operating the system, comprising the step of performing computational operations on the output features.

21. Each of the first to n-th memories includes a dual-port static random access memory (SRAM), 21. The method of claim 20, wherein n FIFOs are used to temporarily store the first through n-th input feature sets.

22. A buffer memory including at least first and second memories, causing first and second input feature sets including at least two features to be stored separately in the first and second memories, causing a first feature of the first input feature set to be stored in the first memory, a second feature of the first input feature set to be stored in the second memory, a first feature of the second input feature set to be stored in the second memory, and a second feature of the second input feature set to be stored in the first memory; and 11. An arithmetic device comprising: an arithmetic unit configured to receive, during a first read operation, the first features of the first and second input feature sets from the first and second memories, and to receive, during a second read operation, the second features of the first and second input feature sets from the first and second memories, and to perform an arithmetic operation on the first and second input feature sets.

Citation Information

Patent Citations

  • Storage controller unit and storage control method

    JP2006171957A

  • Array processor type data processing apparatus

    WO2008129900A1

  • Information processing device, data storage method, and recording medium

    WO2015194172A1