MEMORY DEVICE INCORPORATED WITH NEURAL NETWORK PROCESSING CIRCUITRY - Patent application

By integrating a neural network processing circuit within the memory device, the device can perform neural network operations independently, improving efficiency and flexibility through parallel processing and shared data buffers.

JP7568434B2Active Publication Date: 2024-10-16SK HYNIX INC
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
JP2020119606
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-11-18
Filing Date
2020-07-13
Publication Date
2024-10-16
Estimated Expiration
2040-07-13

AI Technical Summary

Technical Problem

Existing memory devices lack the capability to perform neural network operations efficiently, requiring external intervention and separate processing units, which limits their functionality and efficiency.

Method used

Incorporating a neural network processing circuit within the memory device, allowing parallel execution of neural network operations using a memory device with multiple memory banks, an arithmetic processing unit, and a data operation unit, enabling the device to perform neural network calculations independently.

Benefits of technology

Enables the memory device to perform neural network calculations autonomously, enhancing efficiency and flexibility by sharing data input/output buffers with memory banks and allowing activation of neural network processing as needed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007568434000001
    Figure 0007568434000001
  • Figure 0007568434000002
    Figure 0007568434000002
  • Figure 0007568434000003
    Figure 0007568434000003
Patent Text Reader

Abstract

To provide a memory device including an NN processing circuit capable of performing neural network (NN) operation therein.SOLUTION: A memory device includes: N cell array areas; an arithmetic processing unit 20 for, in an arithmetic mode, performing second operation that repeats first operation M times in a loop form in which N NN processing information are read from N cell array areas in parallel during a calculation interval relative to input data to generate operation completion data; a data operation unit 30 for, in the arithmetic mode, storing input data and M×N NN processing information input via a data transmission buffer in an input interval in N cell array areas to, in the calculation mode, output operation completion data in an output interval through a data transmission buffer; and an operation control unit 40 for controlling each entry / exit of an input interval, an arithmetic section, and an output interval in response to a command and an address input via an input buffer, the arithmetic processing unit, and the data operation unit.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to memory systems, and in particular to memory devices that include neural network processing circuitry therein. [Background technology]

[0002] A neural network is a network that models and imitates the neurons in the human brain. To emphasize that it is not an actual neuron, it is also called an artificial neural network (ANN).

[0003] Neural network processing is a basic technology used in deep learning technologies such as Convolutional Neural Network (CNN) and Recurrent Neural Network (RNN) among machine learning techniques, and can be used to process Multiple Layer Perception (MLP).

[0004] As shown in Fig. 1, a neural network for processing a multi-layer perceptron includes multiple layers (1, 2, 3, 4, 5), and each layer (1, 2, 3, 4, or 5) can include multiple neurons. That is, each of the multiple neurons is mathematically modeled, and multiple neurons can be grouped to match a desired algorithm to form one layer (1, 2, 3, 4, or 5), and multiple layers (1, 2, 3, 4, 5) can be grouped to match a desired algorithm to form a neural network.

[0005] Generally, the first layer (1) is called the "Input Layer", the last layer (5) is called the "Output Layer", and at least one or more layers (2, 3, 4) between the input layer (1) and the output layer (5) can be called the "Hidden Layer".

[0006] At this time, the neurons included in different adjacent layers are connected in various ways through synapses, and each synapse may be assigned a weight. Also, the values ​​of the neurons included in the input layer (1) may be determined by input data. Also, the values ​​of the neurons included in the hidden layers (2, 3, 4) and the output layer (5) may be calculated by the neurons and synapses included in the previous layers. Summary of the Invention [Problem to be solved by the invention]

[0007] SUMMARY OF THE PRESENT EMBODIMENTS An embodiment of the present invention provides a memory device including neural network processing circuitry within which neural network operations can be performed. [Means for solving the problem]

[0008] A memory device according to an embodiment of the present invention includes N cell array areas; an operation processing unit configured to load N pieces of neural network processing information in parallel from the N cell array areas during an operation period of an operation mode, and perform a second operation in which a first operation is repeated M times in a loop form on input data to generate operation completion data; a data operation unit configured to store the input data and M×N pieces of neural network processing information inputted through a data transfer buffer in an input period of the operation mode in the N cell array areas, and output the operation completion data through the data transfer buffer in an output period of the operation mode; and an operation control unit configured to enter / exit each of the input period, the operation period, and the output period and to control the operation processing unit and the data operation unit in response to a command and an address inputted through the input buffer, wherein N and M may each be a natural number greater than or equal to 2.

[0009] In addition, the data operation unit stores data input through the data transfer buffer in N cell array regions during a write operation in the normal mode, and reads data from the N cell array regions and outputs it through the data transfer buffer during a read operation. The operation control unit can enter / exit the normal mode and control the data operation unit in response to commands and addresses input through the input buffer.

[0010] In addition, the M×N pieces of neural network processing information include M×N pieces of weighting information and M×N pieces of calculation information, and the operation control unit can control the data operation unit so that the M pieces of weighting information and the M pieces of calculation information are stored in each of the N cell array areas in the input section.

[0011] In addition, the operation control unit can control the data operation unit to enter the input section in response to an operation input command input through the input buffer, and then to store the input data, M pieces of weighting information, and M pieces of operation information in each of N cell array regions in response to an address input through the input buffer.

[0012] In addition, the operation control unit may exit the input period in response to an operation start command input through the input buffer, and enter the operation period, control the first and second operations in response to an address input through the input buffer, and control the data operation unit to store the operation completion data in N cell array regions in response to an operation completion signal transmitted from the operation processing unit.

[0013] In addition, the operation control unit may control the data operation unit to exit the operation period and enter the output period in response to an operation completion command inputted through the input buffer, read the operation completion data from N cell array regions in response to an address inputted through the input buffer, and output the read operation completion data through the data transmission buffer.

[0014] In addition, after entering the calculation period, the operation control unit may read out N pieces of weighting information and N pieces of calculation information in parallel from the N cell array areas, among the M×N pieces of weighting information and the M×N pieces of calculation information stored in the N cell array areas, corresponding to the first operation, and then repeat a third operation of controlling the data operation unit to load the read information into the calculation processing unit M times corresponding to the second operation.

[0015] In addition, the operation control unit may perform a first third operation by entering the calculation period, and each of the second through Mth third operations may be performed in response to an intermediate completion signal being transmitted from the calculation processing unit.

[0016] In addition, the input data may include N pieces of first input data, and the operation completion data may include N pieces of first operation completion data, and the operation control unit may control the data operation unit to store one piece of first input data in each of the N cell array regions after entering the input period.

[0017] In addition, the operation control unit can control the data operation unit to enter the operation period so that N first input data read in parallel from N cell array areas are read into the operation processing unit, and can control the data operation unit to store one first operation completion data in each of the N cell array areas when the operation completion signal and the N first operation completion data are output from the operation processing unit.

[0018] In addition, the operation control unit can control the data operation unit to enter the output section to read N first operation completion data in parallel from N cell array regions and output the read N first operation completion data through the data transmission buffer.

[0019] In addition, the calculation processing unit may perform N neural network operations included in a first first operation in parallel on the N first input data read by entering the calculation section to generate N pieces of data, and each of the second to Mth first operations may read the N data generated as a result of execution of a previous operation in a subsequent operation to perform N neural network operations in parallel, and output the N data generated as a result of execution of the Mth first operation to the data operation unit as N pieces of first calculation completion data, which are the execution results of the second operation.

[0020] In addition, the calculation processing unit can count the number of times the first operation is completed, and generate and output the intermediate completion signal to the operation control unit every time the count value increases by one until the count value becomes M-1, and when the count value becomes M, generate and output the calculation completion signal to the operation control unit.

[0021] In addition, the input data may comprise K×N second input data, and the operation completion data may comprise K×N second operation completion data, and the operation control unit may control the data operation unit so that, after entering the input period, K pieces of second input data are stored in each of the N cell array regions, and the operation processing unit may perform the second operation once on N pieces of the K×N second input data to generate N pieces of the K×N second operation completion data, and during the operation period, perform a fourth operation in which the second operation is performed K consecutive times on the K×N pieces of second input data to generate the K×N pieces of second operation completion data, where K is a natural number greater than or equal to 2.

[0022] In addition, after entering the calculation period, the operation control unit may repeat K times, corresponding to the fourth operation, a fifth operation of controlling the data operation unit so that N pieces of second input data read out in parallel from N cell array regions are read into the calculation processing unit in response to the second operation, and may repeat K times, corresponding to the fourth operation, a sixth operation of controlling the data operation unit so that one piece of second calculation completion data is stored in each of the N cell array regions when the calculation completion signal and N pieces of second calculation completion data are output from the calculation processing unit in response to the second operation.

[0023] In addition, the operation control unit may repeat a seventh operation of reading N pieces of second operation completion data in parallel from N cell array regions K times by entering the output section, and repeat an eighth operation of controlling the data operation unit K times to output the N pieces of second operation completion data read by the seventh operation through the data transmission buffer.

[0024] In addition, after entering the calculation section, the calculation processing unit performs N neural network operations included in a first first operation in parallel on N pieces of read second input data out of the K×N pieces of second input data to generate N pieces of data, and each of the second to Mth first operations reads the N pieces of data generated as a result of execution of a previous operation in a subsequent operation to perform N neural network operations in parallel, and outputs the N pieces of data generated as a result of execution of the Mth first operation to the data operation unit as N pieces of second calculation completion data which are the execution results of the second operation.

[0025] In addition, the calculation processing unit counts the number of times the first operation has been completed, and generates and outputs the intermediate completion signal to the operation control unit every time the count value increases by one until the count value becomes M-1, and when the count value becomes M, generates and outputs the calculation completion signal to the operation control unit, and then initializes the count value.

[0026] In addition, the arithmetic processing unit may include N arithmetic processing units corresponding to the N cell array regions, each of the N arithmetic processing units including: a data reading unit for reading one of data input via the data operation unit and loop data fed back internally, and weighting information and arithmetic information input via the data operation unit; an arithmetic execution unit for performing a neural network operation on the data read from the data reading unit and data transmitted from each of the remaining N-1 arithmetic processing units excluding itself using the weighting information and arithmetic information, and generating result data as an execution result; a selection transmission unit for feeding back the result data to the data reading unit as the loop data when a value of the result data is equal to or greater than a reference value, and generating the loop data fixed to a specific value and feeding it back to the data reading unit when a value of the result data is equal to or less than a reference value; and a count unit for counting the number of times the loop data is transmitted to the data reading unit by the selection transmission unit, and generating the intermediate completion signal or the arithmetic completion signal according to the count value and outputting the intermediate completion signal or the arithmetic completion signal to the operation control unit.

[0027] In addition, the data operation unit may include N data transfer units corresponding to the N cell array regions, and each of the N data transfer units may include a read / write operation unit for writing data to or reading data from the cell array region in response to a first control signal input from the operation control unit, and a path selection unit for selecting a path of data to be transferred between the read / write operation unit, the data transfer buffer, and the arithmetic processing unit in response to a second control signal input from the operation control unit. Effect of the Invention

[0028] The present technology includes neural network processing circuitry within the memory device, so that after entering the operation mode, the memory device itself can perform neural network operations.

[0029] In addition, a memory bank (including a plurality of memory cells) and a neural network processing circuit included in the memory device can share a data input / output buffer, and the usage of the memory device can be selected by controlling whether or not the neural network processing circuit is activated. [Brief description of the drawings]

[0030] [Figure 1] FIG. 13 is a diagram for explaining neural network processing. [Diagram 2] 1 is a block diagram of a memory device according to an embodiment of the inventive concept; [Diagram 3] FIG. 4 is a diagram for explaining neural network processing information used in the neural network processing according to the embodiment of the present invention. [Figure 4] FIG. 3 is a detailed block diagram of the memory device shown in FIG. 2; [Figure 5A] 4 is a diagram illustrating an example of an operation mode of a memory device according to an embodiment of the present invention; FIG. [Figure 5B]4 is a diagram illustrating an example of an operation mode of a memory device according to an embodiment of the present invention; FIG. [Figure 5C] 4 is a diagram illustrating an example of an operation mode of a memory device according to an embodiment of the present invention; FIG. [Figure 5D] 4 is a diagram illustrating an example of an operation mode of a memory device according to an embodiment of the present invention; FIG. [Figure 5E] 4 is a diagram illustrating an example of an operation mode of a memory device according to an embodiment of the present invention; FIG. [Figure 5F] 4 is a diagram illustrating an example of an operation mode of a memory device according to an embodiment of the present invention; FIG. [Figure 6A] 11 is a diagram illustrating another example of an operation mode of the memory device according to an embodiment of the present invention; FIG. [Figure 6B] 11 is a diagram illustrating another example of an operation mode of the memory device according to an embodiment of the present invention; FIG. [Figure 6C] 11 is a diagram illustrating another example of an operation mode of the memory device according to an embodiment of the present invention; FIG. [Figure 7] 2 is a diagram illustrating a normal mode operation of a memory device according to an embodiment of the inventive concept; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0031] Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings. However, the present invention is not limited to the embodiments disclosed below, and may be configured in various different forms, but the present embodiments are provided so that the disclosure of the present invention will be complete and will fully convey the scope of the present invention to those skilled in the art.

[0032] FIG. 2 is a block diagram of a memory device according to an embodiment of the present invention.

[0033] FIG. 3 is a diagram shown for explaining neural network processing information used in the neural network processing according to the embodiment of the present invention.

[0034] First, as shown in FIG. 2, a memory device 10 according to an embodiment of the present invention may include N memory banks 101, 102, ..., 10N, an arithmetic processing unit 20<1:N>, a data operation unit 30<1:N>, an operation control unit 40<1:N>, a command input buffer 11, an address input buffer 12, and a data transmission buffer 13.

[0035] Specifically, the memory device 10 may be realized by a volatile memory device such as a Dynamic Random Access Memory (DRAM) or a Static RAM (SRAM), and a non-volatile memory device such as a Read Only Memory (ROM), a Mask ROM (MROM), a Programmable ROM (PROM), an Erasable ROM (EPROM), an Electrically Erasable ROM (EEPROM), a Ferromagnetic ROM (FRAM), a Phase change RAM (PRAM), a Magnetic RAM (MRAM), a Resistive RAM (RRAM), a flash memory, and the like.

[0036] During a calculation period in the calculation mode, the calculation processing unit 20<1:N> can load N pieces of neural network processing information in parallel from N memory banks 101, 102, ..., 10N, and perform a "second operation" on input data by repeating a "first operation" of N neural network calculations in parallel M times in a loop to generate calculation completion data. That is, the calculation processing unit 20<1:N> can perform a "second operation" on input data to generate calculation completion data, and the "second operation" means that the "first operation" is repeated M times in a loop. The calculation processing unit 20<1:N> can be inactivated in the normal mode and not perform any operation.

[0037] As shown in both FIG. 1 and FIG. 2, each of the N neural network operations included in the "first operation" performed by the arithmetic processing unit 20<1:N> may correspond to one neuron. Also, the "first operation" performed by the arithmetic processing unit 20<1:N> may be an operation corresponding to one layer (1, 2, 3, 4, or 5). Therefore, performing the "first operation" in the arithmetic processing unit 20<1:N> may be a neural network operation for one layer (1, 2, 3, 4, or 5) including N neurons. Similarly, performing the "second operation" in the arithmetic processing unit 20<1:N> may be a neural network operation including M layers, by repeating the "first operation" included in the "second operation" M times in a loop form. That is, in the case of an example of a neural network operation including five layers (1, 2, 3, 4, and 5) as shown in FIG. 1, M may be 5. Here, N and M may each be a natural number greater than 2.

[0038] The data operation unit 30<1:N> can store input data and M×N pieces of neural network processing information inputted through the data transmission buffer 13 in the input section of the calculation mode in the N memory banks 101, 102, ..., 10N. The data operation unit 30<1:N> can also output calculation completion data generated by the calculation processing unit 20<1:N> through the data transmission buffer 13 in the output section of the calculation mode.

[0039] At this time, the input section of the calculation mode may be performed before the calculation mode. That is, the operation of the calculation processing unit 20<1:N> described above may be performed after the input data and M×N pieces of neural network processing information are stored in the N memory banks 101, 102, ..., 10N through the data operation unit 30<1:N>. For reference, in the above description, it has been assumed that N pieces of neural network processing information are read every time the "first operation" is performed, and the "second operation" in which the "first operation" is repeated M times in a loop form is performed on the input data, and calculation completion data is generated when the "second operation" is performed on the input data. Therefore, M×N pieces of neural network processing information may be required to perform the "second operation" on the input data in the calculation processing unit 20<1:N> and generate calculation completion data.

[0040] The data operation unit 30<1:N> can store data inputted through the data transmission buffer 13 in the N memory banks 101, 102, ..., 10N during a write operation in the normal mode. The data operation unit 30<1:N> can read data from the N memory banks 101, 102, ..., 10N and output it through the data transmission buffer 13 during a read operation in the normal mode.

[0041] The operation control unit 40<1:N> may include a memory register set (MRS). Therefore, the operation control unit 40<1:N> may control the input section, operation section, and output section of the operation mode and the entry / exit of the normal mode in response to a command inputted through the command input buffer 11 and an address inputted through the address input buffer 12, and may control the operation processing unit 20<1:N> and the data operation unit 30<1:N>. At this time, the operation mode and the normal mode are completely separate operation modes and cannot overlap with each other.

[0042] 2 and 3, M×N pieces of neural network processing information can include M×N pieces of weighting information W#<1:N / L1:LM> and M×N pieces of calculation information S#<1:N / L1:LM>. That is, one piece of neural network processing information can include one piece of weighting information and one piece of calculation information.

[0043] As shown in both Figures 1 to 3, the inclusion of weighting information in the neural network processing information can correspond to weighting a synapse used to connect a plurality of neurons included in different adjacent layers, and the inclusion of calculation information in the neural network processing information can correspond to each of a plurality of neurons being mathematically modeled.

[0044] Specifically, the operation control unit 40<1:N> can control the data operation unit 30<1:N> so that M pieces of weighting information and M pieces of operation information are stored in each of the N memory banks 101, 102, ..., 10N during the input period in the calculation mode.

[0045] For example, the operation control unit 40<1:N> stores the first M weighting information W in the first memory bank 101 among the N memory banks 101, 102, . . . , 10N in the input section during the calculation mode. <l1:lm>#1 and the first M pieces of operation information S <l1:lm>#1 is stored in the second memory bank 102, and the second M pieces of weighting information W <l1:lm>#2 and the second M pieces of operation information S <l1:lm>, 10N. In this case, the data operation unit 30<1:N> can be controlled so that the M pieces of weighting information and the M pieces of operation information are stored in each of the N memory banks 101, 102, . . . , 10N so that the M weighting information and the M operation information are stored in each of the N memory banks 101, 102, . . . , 10N.

[0046] The operation control unit 40<1:N> can control the data operation unit 30<1:N> to read M pieces of weighting information and M pieces of operation information from each of the N memory banks 101, 102, ..., 10N during the calculation period in the calculation mode and transmit them to the calculation processing unit 20<1:N>.

[0047] For example, the operation control unit 40<1:N> selects the first M weighting information W stored in the first memory bank 101 among the N memory banks 101, 102, . . . , 10N in the calculation period in the calculation mode. <l1:lm>#1 and the first M pieces of operation information S <l1:lm>#1 is read out, and the second M weighting information W stored in the second memory bank 102 is read out. <l1:lm>#2 and the second M pieces of operation information S <l1:lm>The data operation unit 30<1:N> can be controlled to read out the M pieces of weighting information and M pieces of calculation information stored in each of the N memory banks 101, 102, ..., 10N and transmit them to the calculation processing unit 20<1:N>, so as to read out #2.

[0048] Then, in response to a calculation completion signal being transmitted from the calculation processing unit 20<1:N> after the calculation processing unit 20<1:N> has completed execution of a neural network calculation during a calculation interval in the calculation mode, the operation control unit 40<1:N> can control the data operation unit 30<1:N> to store the calculation completion data transmitted from the calculation processing unit 20<1:N> in N memory banks 101, 102, ..., 10N.

[0049] The operation control unit 40<1:N> can control the data operation unit 30<1:N> to read out operation completion data from the N memory banks 101, 102, . . . , 10N in the output section during the operation mode and output it via the data transmission buffer 13.

[0050] FIG. 4 is a detailed block diagram of the memory device shown in FIG.

[0051] 4, it can be seen that the configurations of the operation control unit 40<1:N>, the data operation unit 30<1:N>, and the calculation processing unit 20<1:N> are illustrated in detail among the components of the memory device 10 illustrated in FIG 2. At this time, the diagram illustrated in FIG 3 assumes that the memory device 10 is a DRAM, and the detailed configuration may be changed if the memory device 10 is another type of memory device.

[0052] Specifically, each of the N memory banks 101, 102, ..., 10N may include a plurality of memory cells (not shown) connected in an array form to a plurality of wordlines (not shown) and a plurality of bitlines (not shown), and each of the memory cells may store at least one bit of data. That is, each of the N memory banks 101, 102, ..., 10N may be considered as a "cell array region" including a plurality of memory cells in an array form. Therefore, the expression "N memory banks" is based on the assumption that the memory device 10 is a DRAM, and may be replaced with the expression "N cell array regions" in the case of other types of memory devices.

[0053] The arithmetic processing unit 20<1:N> may include N arithmetic processing units 201, 202, ..., 20N corresponding to the N memory banks 101, 102, ..., 10N, respectively. The operation control unit 40<1:N> may include N operation control units 401, 402, ..., 40N corresponding to the N memory banks 101, 102, ..., 10N, respectively, and a memory register set (MRS, see FIG. 2). The data operation unit 30<1:N> may include N data operation units 301, 302, ..., 30N corresponding to the N memory banks 101, 102, ..., 10N, respectively. In this case, the memory register set (MRS, see FIG. 2) included in the operation control unit 40<1:N> is a component that may be included separately from the N operation control units 401, 402, ..., 40N, and is therefore not shown in FIG. 3.

[0054] Here, each of the N operation control units 401, 402, ..., 40N may be realized as a circuit that operates in a similar manner. Also, each of the N data operation units 301, 302, ..., 30N may be realized as a circuit that operates in a similar manner. Also, each of the N arithmetic processing units 201, 202, ..., 20N may be realized as a circuit that operates in a similar manner.

[0055] Therefore, the first operation control unit 401 out of the N operation control units 401, 402, ..., 40N, the first data operation unit 301 out of the N data operation units 301, 302, ..., 30N, and the first operation processing unit 201 out of the N operation processing units 201, 202, ..., 20N are selected as representatives, and their detailed configurations will be described as follows.

[0056] First, the first operation control unit 401 may include an address control unit and an address / data flow control unit. Specifically, the first operation control unit 401 may generate various control signals for controlling the first data operation unit 301 in response to commands and addresses input via the command input buffer 11 and the address input buffer 12, and a signal (CF or MF) related to operation input from the first operation processing unit 201.

[0057] For example, an address control included in the first operation control unit 401 can generate a row address and a column address in response to an address input via the address input buffer 12. Also, an address / data flow control included in the first operation control unit 401 can generate a read operation signal, a write operation signal, and a path selection signal in response to a command and an address input via the command input buffer 11 and the address input buffer 12.

[0058] The first data operation unit 301 may include a row decoder, a column decoder, a sense amplifier, a write driver, and a data path selector. The row decoder, the column decoder, the sense amplifier, and the write driver included in the first data operation unit 301 may be components for writing data to the first memory bank 101 or reading data from the first memory bank 101, i.e., a read / write operation unit. For example, the read / write operation unit included in the first data operation unit 301 may select at least one cell among a plurality of memory cells included in the first memory bank 101 in response to a first control signal, for example, a row address, a column address, a read operation signal, and a write operation signal, input from the first operation control unit 401, and then read data from the selected cell or write data to the selected cell.

[0059] Also, the data path selector included in the first data operation unit 301 may be a component, i.e., a path selector, for selecting a path of data transferred between the read / write operation unit, the data transfer buffer 13, and the first arithmetic processing unit 201. For example, the path selector included in the first data operation unit 301 may select a path of data transferred between the read / write operation unit, the first arithmetic processing unit 201, and the data transfer buffer 13 in response to a second control signal, e.g., a path selection signal, input from the first operation control unit 401.

[0060] The first arithmetic processing unit 201 may include a data reading section 211, an arithmetic execution section 221, a selection transmission section 231, and a counting section 241.

[0061] The data reading unit 211 provided in the first arithmetic processing unit 201 can read either the input data IDT#1 input through the first data operation unit 301 or the loop data LDT#1 fed back internally, as well as the weighting information W#1 and the arithmetic information S#1 input through the first data operation unit 301.

[0062] The calculation execution unit 221 provided in the first calculation processing unit 201 can perform a neural network calculation on the data IDT#1 or LDT#1 read by the data reading unit 211 and the data TDT#<2:N> transmitted from the second through Nth calculation processing units 20<2:N> using the weighting information W#1 and the calculation information S#1, and generate the result data RDT#1 as the execution result. For example, the calculation execution unit 221 can generate the result data RDT#1 by adding a value obtained by multiplying the data IDT#1 or LDT#1 read by the data reading unit 211 by the value of the weighting information W#1 and the value of the data TDT#<2:N> transmitted from the second through Nth calculation processing units 20<2:N> in a form corresponding to the calculation information S#1.

[0063] When the operation of performing neural network operation using data TDT#<2:N> transferred from the second through Nth arithmetic processing units 20<2:N> in the operation execution unit 221 included in the first arithmetic processing unit 201 described above is generalized as the operation of each of the N arithmetic processing units 201, 202, ..., 20N, each of the N arithmetic processing units 201, 202, ..., 20N can be an operation of performing neural network operation using data transferred from the remaining N-1 arithmetic processing units excluding itself. For example, the operation execution unit (not shown) included in the second arithmetic processing unit 202 can perform neural network operation using data TDT#<1, 3:N> transferred from the first and third through Nth arithmetic processing units 20<1, 3:N>. Similarly, an operation execution unit (not shown) provided in the Nth operation processing unit 20N can perform neural network operations using data TDT#<1:N-1> transmitted from the 1st to N-1th operation processing units 20<1:N-1>.

[0064] As shown in both Figures 1 and 4, each of the N arithmetic processing units 201, 202, ..., 20N performs neural network operations using data transmitted from the remaining N-1 arithmetic processing units excluding itself, which may correspond to an operation in which multiple neurons are variously connected via synapses.

[0065] Then, when the value of the result data RDT#1 generated by the operation execution unit 221 is equal to or greater than the reference value, the selection transmission unit 231 provided in the first arithmetic processing unit 201 can feed back the result data RDT#1 as loop data LDT#1 to the data reading unit 211. Also, when the value of the result data RDT#1 generated by the operation execution unit 221 is equal to or less than the reference value, the selection transmission unit 231 can ignore the result data RDT#1, generate loop data LDT#1 fixed to a specific value, and feed back the loop data LDT#1 to the data reading unit 211. Here, each of the N "reference values" used as operation standards of the selection transmission units 231 provided in each of the N arithmetic processing units 201, 202, ..., 20N can be preset by a memory register set (MRS) provided in the operation control unit 40<1:N> according to the purpose of the neural network operation, and can be changed by a user every time a neural network operation is performed.

[0066] The count unit 241 included in the first arithmetic processing unit 201 counts the number of times that the loop data LDT#1 is transmitted to the data reading unit 211 by the selection transmitting unit 231, generates an intermediate completion signal MF#1 or an operation completion signal CF#1 according to the counted number, and outputs it as a signal CF#1 or MF#1 related to the operation processing to the first operation control unit 401. For example, the count unit 241 included in the first arithmetic processing unit 201 may generate and output the intermediate completion signal MF#1 to the first operation control unit 401 until a counted value of the number of times that the loop data LDT#1 is transmitted to the data reading unit 211 by the selection transmitting unit 231 becomes a scheduled value, and may generate and output the operation completion signal CF#1 to the first operation control unit 401 at the time when the counted value becomes the scheduled value.

[0067] For reference, in the above description, it has been described as an example that each arithmetic processing unit is set to correspond one-to-one to a memory bank, and the number of memory banks is the same as the number of arithmetic processing units, but this can also be implemented differently depending on the designer's choice.

[0068] For example, some of the memory banks may be configured to correspond to an arithmetic processing unit, while the remaining memory banks may be configured not to correspond to an arithmetic processing unit, so that the number of arithmetic processing units may be smaller than the number of memory banks. In this case, the remaining memory banks not corresponding to the arithmetic processing units may be configured to operate only in the normal mode. In this case, a data operation unit corresponding to a memory bank configured to operate only in the normal mode may not need a component (Data Path Select) for selecting a data transmission path. Similarly, an operation control unit corresponding to a memory bank configured to operate only in the normal mode may not need to perform a control operation for selecting a data transmission path.

[0069] As another example, at least two or more arithmetic processing units may correspond to one memory bank. This may be the case where the size of data that can be read out at one time from one memory bank, i.e., the size of weighting information and arithmetic information, is larger than the size of data that can be processed by one arithmetic processing unit. In this case, the at least two or more arithmetic processing units corresponding to one memory bank can divide the data that can be read out at one time from one memory bank into at least two or more parts and process them in parallel. In other words, the at least two or more arithmetic processing units corresponding to one memory bank are physically separated, but can operate like the above-mentioned one arithmetic processing unit.

[0070] 5A to 5F are diagrams shown for explaining an example of the calculation mode operation of the memory device according to the embodiment of the present invention.

[0071] 2 to 5F, it can be assumed that N pieces of input data IDT#1, IDT#2, ..., IDT#N are input to the memory device 10 and stored one by one in each of the N memory banks 101, 102, ..., 10N. It can also be assumed that the arithmetic processing unit 20<1:N> repeatedly executes M "first operations" in a loop form on the N pieces of input data IDT#1, IDT#2, ..., IDT#N stored one by one in each of the N memory banks 101, 102, ..., 10N, that is, performs one "second operation" to generate N pieces of operation completion data CDT#1, CDT#2, ..., CDT#N.

[0072] As shown in Figures 2 to 5A, the memory register set (MRS) provided in the operation control unit 40<1:N> can enter the input section of the operation mode in response to an operation input command (not shown) input via the command input buffer 11.

[0073] In addition, the operation control unit 40<1:N> responds to an address input via the address input buffer 12 during an input period of the calculation mode by transmitting N pieces of input data IDT#1, IDT#2, ..., IDT#N to the N memory banks 101, 102, ..., 10N via the data transmission buffer 13 and N x M pieces of weighting information W <l1:lm> #1、W <l1:lm> #2、...、W <l1:lm>#N, and N×M pieces of calculation information S <l1:lm> #1、S <l1:lm> #2、...、S <l1:lm>The data operation unit 30<1:N> can be controlled so that #N is stored.

[0074] Specifically, the first operation control unit 401 receives the first input data IDT#1 and the first M weighting information W <l1:lm>#1, and the first M pieces of operation information S <l1:lm>The first data operation unit 301 can be controlled so that the second input data IDT#2 and the second M weighting information W1 are stored in the first memory bank 101. Similarly, the second operation control unit 402 can control the first data operation unit 301 so that the second input data IDT#2 and the second M weighting information W1 are stored in the first memory bank 101. <l1:lm>#2, and the second M pieces of operation information S <l1:lm>In this manner, the third through Nth operation control units 403, ..., 40N can control the second data operation unit 302 so that the third through Nth input data IDT#3, ..., IDT#N input through the data transmission buffer 13 in the input period of the operation mode and the third through Nth M weighting information W <l1:lm> #3、...、W <l1:lm>#N and the third to Nth M pieces of operation information S <l1:lm> #3、...、S <l1:lm>, 10N. #N can be stored in the third through Nth memory banks 103, . . . , 10N, respectively.

[0075] As shown in Figures 2 to 5B, the memory register set (MRS) provided in the operation control unit 40<1:N> can exit from the input section of the operation mode and enter the operation section in response to an operation start command (not shown) input via the command input buffer 11.

[0076] In addition, the operation control unit 40<1:N> responds to an address input via the address input buffer 12 during a calculation period in the calculation mode to calculate N pieces of input data IDT#1, IDT#2, ..., IDT#N stored in N memory banks 101, 102, ..., 10N and N x M pieces of weighting information W <l1:lm> #1、W <l1:lm> #2、...、W <l1:lm>#N, and N×M pieces of calculation information S <l1:lm> #1、S <l1:lm> #2、...、S <l1:lm>#N and transmit it to the arithmetic processing unit 20<1:N>.

[0077] Specifically, after entering the calculation period of the calculation mode, the operation control unit 40<1:N> reads N×M pieces of weighting information W stored in the N memory banks 101, 102, . . . , 10N. <l1:lm> #1、W <l1:lm> #2、...、W <l1:lm>#N and N×M pieces of calculation information S <l1:lm> #1、S <l1:lm> #2、...、S <l1:lm>#N, N pieces of weighting information (W <lx> #1、W <lx> #2、...、W <lx>#N / x is any one of 1 to M) and N pieces of calculation information S <lx> #1、S <lx> #2、...、S <lx>After reading #N in parallel, the read information W <lx> #1、W <lx> #2、...、W <lx>#N / S <lx> #1、S <lx> #2、...、S <lx>The "third operation" of controlling the data operation unit 30<1:N> so that #N is read into the arithmetic processing unit 20<1:N> can be repeated M times to correspond to the "second operation" of the arithmetic processing unit 20<1:N>.

[0078] In addition, the operation control unit 40<1:N> can control the data operation unit 30<1:N> to read out in parallel the N pieces of input data IDT#1, IDT#2, ..., IDT#N stored in the N memory banks 101, 102, ..., 10N from each of the N memory banks 101, 102, ..., 10N by entering the calculation period of the calculation mode, and then control the data operation unit 30<1:N> so that the N pieces of input data IDT#1, IDT#2, ..., IDT#N that have been read out are loaded into the calculation processing unit 20<1:N>.

[0079] Furthermore, the operation control unit 40<1:N> can perform the first "third operation" of the "third operations" repeated M times corresponding to the "second operation" of the arithmetic processing unit 20<1:N> in response to entering the calculation period of the calculation mode. Furthermore, the operation control unit 40<1:N> can perform each of the second to Mth "third operations" of the "third operations" repeated M times corresponding to the "second operation" of the arithmetic processing unit 20<1:N> in response to the intermediate completion signal MF#<1:N> being transmitted from the arithmetic processing unit 20<1:N>.

[0080] In addition, when an operation completion signal CF#<1:N> and N pieces of operation completion data CDT#1, CDT#2, ..., CDT#N are output as a result of the operation processing unit 20<1:N> completing execution of the ``second operation'', the operation control unit 40<1:N> can control the data operation unit 30<1:N> so that the N pieces of operation completion data CDT#1, CDT#2, ..., CDT#N are stored one by one in each of the N memory banks 101, 102, ..., 10N.

[0081] More specifically, the first operation control unit 401 receives the first input data IDT#1 and the first weighting information W stored in the first memory bank 101 due to the entry of the calculation period of the calculation mode. <l1>#1, and the first calculation information S <l1>The first data operation unit 301 can be controlled to read out the second input data IDT#2 and the second first weighting information W stored in the second memory bank 102 due to the entry of the operation period of the operation mode and transmit the read out data IDT#1 to the first operation processing unit 201. Similarly, the second operation control unit 402 can read out the second input data IDT#2 and the second first weighting information W stored in the second memory bank 102 due to the entry of the operation period of the operation mode and transmit the read out data IDT#1 to the first operation processing unit 201. <l1>#2, and the second first calculation information S <l1>, 10N respectively. In this manner, the third through Nth operation control units 403, ..., 40N can control the second data operation unit 302 to read out the third through Nth input data IDT#3, ..., IDT#N stored in the third through Nth memory banks 103, ..., 10N respectively, and the third through Nth first weighting information W <l1> #3、...、W <l1>#N and the third to Nth first operation information S <l1> #3、...、S <l1>, 20N to read out each of the input data IDT#1, IDT#2, ..., IDT#N from the third through Nth data operation units 303, ..., 30N and transmit them to the third through Nth arithmetic processing units 203, ..., 20N. As described above, the operation control unit 40<1:N> can perform the first "third operation" of the "third operations" repeated M times corresponding to the "second operation" of the arithmetic processing unit 20<1:N> on the N pieces of input data IDT#1, IDT#2, ..., IDT#N in response to entering the calculation period of the calculation mode.

[0082] Next, the first operation control unit 401 receives the intermediate completion signal MF#1 from the first arithmetic processing unit 201 and updates the first second weighting information W stored in the first memory bank 101. <l2>#1 and the first second calculation information S <l2>In the same manner, the second operation control unit 402 can control the first data operation unit 301 to read the second weighting information W #1 stored in the second memory bank 102 by receiving the intermediate completion signal MF #2 from the second operation processing unit 202 and transmit it to the first operation processing unit 201. <l2>#2 and the second second operation information S <l2>, 20N respectively. In this manner, the third through Nth operation control units 403, ..., 40N can control the second data operation unit 302 to read out the third through Nth second weighting information W<3:N> stored in the third through Nth memory banks 103, ..., 10N respectively, in response to the intermediate completion signals MF#<3:N> transmitted from the third through Nth operation processing units 203, ..., 20N. <l2> #3、...、W <l2>#N and the third to Nth second operation information S <l2> #3、...、S <l2>, 20N. As described above, the operation control unit 40<1:N> can perform the second "third operation" of the "third operations" repeated M times corresponding to the "second operation" of the arithmetic processing unit 20<1:N> in response to the intermediate completion signal MF#<1:N> being transmitted from the arithmetic processing unit 20<1:N>. At this time, the third through Mth "third operations" can be performed in the same manner as the second "third operation".

[0083] Next, when an operation completion signal CF#1 and first operation completion data CDT#1 are output from the first operation processing unit 201, the first operation control unit 401 can control the first data operation unit 301 to store the first operation completion data CDT#1 in the first memory bank 101. Similarly, when an operation completion signal CF#2 and second operation completion data CDT#2 are output from the second operation processing unit 202, the second operation control unit 402 can control the second data operation unit 302 to store the second operation completion data CDT#2 in the second memory bank 102. In this manner, when the operation completion signal CF#<3:N> and the third through Nth operation completion data CDT#3, ..., CDT#N are output from the third through Nth arithmetic processing units 203, ..., 20N, each of the third through Nth operation control units 403, ..., 40N can control each of the third through Nth data operation units 303, ..., 30N to store each of the third through Nth operation completion data CDT#3, ..., CDT#N in each of the third through Nth memory banks 103, ..., 10N. As explained above, when an operation completion signal CF#<1:N> and N pieces of operation completion data CDT#1, CDT#2, ..., CDT#N are output as a result of the operation processing unit 20<1:N> completing execution of the "second operation", the operation control unit 40<1:N> can control the data operation unit 30<1:N> so that the N pieces of operation completion data CDT#1, CDT#2, ..., CDT#N are stored one by one in each of the N memory banks 101, 102, ..., 10N.

[0084] As shown in FIGS. 2 to 5E, the operation of the calculation processing unit 20<1:N> in the calculation period of the calculation mode described in FIG. 5B can be seen in more detail.

[0085] As shown in FIG. 5C, the operation of the first arithmetic processing unit 201 provided in the arithmetic processing unit 20<1:N> is shown in detail, and although not shown in the drawing, it can be seen that the second through Nth arithmetic processing units 202, ..., 20N also operate in the same manner as the first arithmetic processing unit 201.

[0086] Specifically, the data reader 211 in the first calculation processing unit 201 reads the first input data IDT#1 and the first weighting information W from the first data operation unit 301 in response to the entry of the calculation period of the calculation mode. <l1>#1, and the first calculation information S <l1>You can load #1.

[0087] Next, the calculation execution unit 221 in the first calculation processing unit 201 calculates the first weighting information W <l1>#1 and the first calculation information S <l1>#1 is used to perform neural network operations on the first input data IDT#1, and the first result data RDT <l1>For example, the first calculation execution unit 221 can generate the first input data IDT#1 and the first weighting information W <l1>#1 and the value of the data TDT#<2:N> transmitted from the second to Nth arithmetic processing units 20<2:N> are used as the first arithmetic information S <l1>#1 corresponding to the first result data RDT <l1>In this case, since the arithmetic processing unit 20<1:N> performs N neural network operations included in the first "first operation" in parallel on the N pieces of input data IDT#1, IDT#2, ..., IDT#N, the data TDT#<2:N> transferred from the second through Nth arithmetic processing units 20<2:N> to be used for the neural network operations in the first arithmetic processing unit 201 may be the second through Nth input data IDT#N.

[0088] Next, the selection and transmission unit 231 in the first arithmetic processing unit 201 transmits the first result data RDT <l1>When the value of #1 is equal to or greater than the reference value, the first result data RDT <l1>#1 to the first loop data LDT <l1>#1 to the first data reader 211. Also, the first selection and transmission unit 231 can feed back the first result data RDT #1 generated by the first operation execution unit 221. <l1>When the value of #1 is less than the reference value, the first result data RDT <l1>The first loop data LDT is fixed to a specific value, ignoring the value of #1. <l1>#1 can be generated and fed back to the first data reader 211.

[0089] The counting section 241 in the first arithmetic processing unit 201 transmits the loop data LDT to the first data reading section 211 via the first selection transmission section 231. <l1>The first counter 241 counts the number of times that the intermediate completion signal MF#1 is transmitted, and when the count number is smaller than M, it generates an intermediate completion signal MF#1 and outputs it to the first motion control unit 401, and when the count number becomes M, it can output a calculation completion signal CF#1 to the first motion control unit 401. At this time, since the calculation processing unit 20<1:N> performs N neural network calculations included in the first "first operation" in parallel, the count value can be "1", which is smaller than M. As a result, the first counter 241 can generate an intermediate completion signal MF#1 and output it to the first motion control unit 401.

[0090] As described above, the operation of the first arithmetic processing unit 201 can be applied as the operation of the second to Nth arithmetic processing units 202, ..., 20N. Therefore, the arithmetic processing unit 20<1:N> generates N pieces of first weighting information W for the N pieces of first input data IDT#1, IDT#2, ..., IDT#N that are read as the calculation mode enters the calculation period. <l1>#<1:N> and N pieces of first operation information S <l1>#<1:N> is used to perform N neural network operations in parallel, resulting in N data LDTs <l1>That is, the calculation processing unit 20<1:N> performs N neural network calculations included in the first "first operation" in parallel on the N pieces of first input data IDT#1, IDT#2, ..., IDT#N that are read when the calculation mode enters the calculation period, and then generates N pieces of data LDT#1, IDT#2, ..., IDT#N as a result. <l1>#<1:N> can be generated.

[0091] As shown in FIG. 5D, the operation of the first arithmetic processing unit 201 provided in the arithmetic processing unit 20<1:N> is shown in detail, and although not shown in the drawing, it can be seen that the second through Nth arithmetic processing units 202, ..., 20N also operate in the same manner as the first arithmetic processing unit 201.

[0092] Specifically, the data reading unit 211 in the first arithmetic processing unit 201 reads the first second weighting information W <l2>#1 and the first second calculation information S <l2>You can load #1.

[0093] Next, the calculation execution section 221 in the first calculation processing unit 201 calculates the first second weighting information W <l2>#1 and the first second calculation information S <l2>#1 is used to create the first loop data LDT <l1>#1 is subjected to neural network calculation, and the result of the execution is the second result data RDT <l2>For example, the first operation execution unit 221 can generate the first loop data LDT <l1>#1 and the first second weighting information W <l2>#1 and the value of the data TDT#<2:N> transmitted from the second to Nth arithmetic processing units 20<2:N> are used as the first second arithmetic information S <l2>#1 corresponding to the first second result data RDT <l2>At this time, the calculation processing unit 20<1:N> performs N neural network calculations included in the first "first operation" in parallel, and then generates N data LDTs ​​generated as a result of the N neural network calculations. <l1>Since the N neural network operations included in the second "first operation" are performed in parallel for the first arithmetic processing unit 201, the data TDT#<2:N> transferred from the second through Nth arithmetic processing units 20<2:N> to be used for the neural network operations in the first arithmetic processing unit 201 is the second through Nth first loop data LDT#<1:N>. <l1>#<2:N> is possible.

[0094] Next, the selection and transmission unit 231 in the first arithmetic processing unit 201 transmits the first second result data RDT <l2>When the value of #1 is equal to or greater than the reference value, the first second result data RDT <l2>#1 to the first second loop data LDT <l2>#1 to the first data reader 211. Also, the first selection and transmission unit 231 can feed back the first second result data RDT <l2>When the value of #1 is less than the reference value, the first second result data RDT <l2>The first second loop data LDT is fixed to a specific value, ignoring the value of #1. <l2>#1 can be generated and fed back to the first data reader 211.

[0095] The counting section 241 in the first arithmetic processing unit 201 transmits the loop data LDT to the first data reading section 211 via the first selection transmission section 231. <l2>The first counter 241 counts the number of times that the intermediate completion signal MF#1 is transmitted, and when the count number is smaller than M, it generates an intermediate completion signal MF#1 and outputs it to the first motion control unit 401, and when the count number becomes M, it can output a calculation completion signal CF#1 to the first motion control unit 401. At this time, since the calculation processing unit 20<1:N> performs N neural network calculations included in the second "first operation" in parallel, the count value can be "2", which is smaller than M. As a result, the first counter 241 can generate an intermediate completion signal MF#1 and output it to the first motion control unit 401.

[0096] As explained above, the operation of the first arithmetic processing unit 201 can be applied as the operation of the second to Nth arithmetic processing units 202, ..., 20N. Therefore, the arithmetic processing unit 20<1:N> processes N pieces of data LDT generated as a result of the execution of the previous "first operation". <l1>#1, N pieces of second weighting information W <l2>#<1:N> and N pieces of second operation information S <l2>#<1:N> is used to perform N neural network operations in parallel, resulting in N data LDTs <l2>That is, the calculation processing unit 20<1:N> can generate N pieces of data LDT #<1:N> generated as a result of the execution of the first "first operation". <l1>After performing N neural network operations in parallel in the second "first operation" for #1, the result is N data LDTs <l1>#<1:N> can be generated.

[0097] In the manner described in FIG. 5D, the calculation processing unit 20<1:N> performs N neural network calculations included in the third to Mth "first operations" in parallel, and then outputs N data LDTs ​​as the result. <l1>In summary, when the calculation processing unit 20<1:N> performs each of the first to Mth "first operations", the N pieces of data generated as a result of the execution of the previous "first operation" can be read in the subsequent "first operation" and used to perform N neural network operations in parallel.

[0098] As shown in FIG. 5E, the operation of the first arithmetic processing unit 201 provided in the arithmetic processing unit 20<1:N> is shown in detail, and although not shown in the drawing, it can be seen that the second through Nth arithmetic processing units 202, ..., 20N also operate in the same manner as the first arithmetic processing unit 201.

[0099] Specifically, the data reader 211 in the first arithmetic processing unit 201 reads the first M-th weighting information W <lm>#1 and the first Mth calculation information S <lm>#1 can be loaded.

[0100] Next, the calculation execution unit 221 in the first calculation processing unit 201 calculates the first M-th weighting information W <lm>#1 and the first second calculation information S <lm>#1 is used to create the first (M-1)th loop data LDT <lm-1>#1 is subjected to neural network calculation, and the first Mth result data RDT <lm>For example, the first operation execution unit 221 can generate the first (M-1)th loop data LDT <lm-1>#1 and the first Mth weighting information W <lm>#1 and the value of the data TDT#<2:N> transmitted from the second to Nth arithmetic processing units 20<2:N> are multiplied into the first M-th arithmetic information S <lm>#1, the first Mth result data RDT <lm>At this time, the calculation processing unit 20<1:N> performs N neural network calculations included in the (M-1)th "first operation" in parallel, and then generates N data LDTs ​​generated as a result of the N neural network calculations. <lm-1>Since N neural network operations included in the M-th "first operation" are performed in parallel for the first arithmetic processing unit 201, the data TDT#<2:N> transferred from the second through N-th arithmetic processing units 20<2:N> to be used for the neural network operations in the first arithmetic processing unit 201 is the second through N-th (M-1)-th loop data LDT#<2:N>. <lm-1>#<2:N> is possible.

[0101] Next, the selection and transmission unit 231 in the first arithmetic processing unit 201 transmits the first Mth result data RDT <lm>When the value of #1 is equal to or greater than the reference value, the first Mth result data RDT <lm>#1 is the first Mth loop data LDT <lm>#1 to the first data reader 211. Also, the first selection transmitter 231 can feed back the first Mth result data RDT <lm>When the value of #1 is less than or equal to the reference value, the first Mth result data RDT <lm>The first Mth loop data LDT is fixed to a specific value, ignoring the value of #1. <lm>#1 can be generated and fed back to the first data reader 211.

[0102] The counting section 241 in the first arithmetic processing unit 201 transmits the loop data LDT to the first data reading section 211 via the first selection transmission section 231. <lm>The first counter 241 counts the number of times that the first operation control unit 401 is transmitted, and when the count number is smaller than M, it generates an intermediate completion signal MF#1 and outputs it to the first operation control unit 401, and when the count number becomes M, it can output a calculation completion signal CF#1 to the first operation control unit 401. At this time, since the calculation processing unit 20<1:N> performs N neural network calculations included in the Mth "first operation" in parallel, the count value can become "M". As a result, the first counter 241 can generate a calculation completion signal CF#1 and output it to the first operation control unit 401.

[0103] In this way, the first counting section 241 generates the calculation completion signal CF#1 and outputs it to the first operation control unit 401. Therefore, the first operation control unit 401 receives the data LDT fed back to the first data reading section 211. <lm>Therefore, the first operation control unit 401 can determine that the data LDT#1 fed back to the first data reading unit 211 is the first operation completion data CDT#1. <lm>#1 may be transferred as the first operation completion data CDT#1.

[0104] As described above, the operation of the first arithmetic processing unit 201 can be applied as the operation of the second to Nth arithmetic processing units 202, ..., 20N. Therefore, the arithmetic processing unit 20<1:N> processes N pieces of data LDT generated as a result of executing the (M-1)th "first operation". <lm-1>#1, N weighted information W <lm>#<1:N> and N pieces of Mth operation information S <lm>#<1:N> is used to perform N neural network operations in parallel, resulting in N data LDTs <lm>In addition, the arithmetic processing unit 20<1:N> can generate the N pieces of data LDT#<1:N> generated by the arithmetic processing unit 20<1:N> by generating an arithmetic completion signal CF#1 and outputting it to the operation control unit 40<1:N>. <lm>The operation control unit 40<1:N> can have N pieces of operation completion data CDT#1, CDT#2, ..., CDT#N. That is, the operation processing unit 20<1:N> can store N pieces of data LDT#<1:N> generated as a result of executing the (M-1)th "first operation". <lm-1>#1, N neural network operations included in the Mth "first operation" are performed in parallel, and the resulting N data LDTs ​​are <l1>#<1:N> can be output as N pieces of operation completion data CDT#1, CDT#2, ..., CDT#N.

[0105] In summary, the calculation processing unit 20<1:N> repeatedly executes M "first operations" in a loop on N pieces of input data IDT#1, IDT#2, ..., IDT#N, i.e., after performing one "second operation", it can output N pieces of calculation completion data CDT#1, CDT#2, ..., CDT#N as a result.

[0106] Therefore, in response to an address input via the address input buffer 12 and the transmission of an operation completion signal CF#<1:N> from the operation processing unit 20<1:N>, the operation control unit 40<1:N> can control the data operation unit 30<1:N> to store the N pieces of operation completion data CDT#1, CDT#2, ..., CDT#N transmitted from the operation processing unit 20<1:N> in N memory banks 101, 102, ..., 10N.

[0107] As shown in Figures 2 to 5F, the memory register set (MRS) provided in the operation control unit 40<1:N> can exit from the calculation period of the calculation mode and enter the output period in response to an operation completion command (not shown) input via the command input buffer 11.

[0108] Specifically, the operation control unit 40<1:N> can control the data operation unit 30<1:N> to read N pieces of operation completion data CDT#1, CDT#2, ..., CDT#N stored in N memory banks 101, 102, ..., 10N in response to an address input through the address input buffer 12 during the output period of the operation mode, and output the data through the data transmission buffer 13.

[0109] 6A to 6C are diagrams illustrating another example of the calculation mode operation of the memory device according to the embodiment of the present invention.

[0110] 2 to 4 and 6A to 6C, it can be assumed that K×N pieces of input data IDT<1:K>#1, IDT<1:K>#2, ..., IDT<1:K>#N are input to the memory device 10 and K pieces are stored in each of the N memory banks 101, 102, ..., 10N. In addition, the N pieces of input data IDT<1:K>#1, IDT<1:K>#2, ..., IDT<1:K>#N stored in each of the N memory banks 101, 102, ..., 10N are multiplied by N pieces K times (IDT <1> #1, IDT <1> #2, ..., IDT <1> #N, ..., IDT <2> #1, IDT <2> #2, ..., IDT <2> #N, ..., IDT <1> #1, IDT <k>#2、...、IDT <k>#N) are repeatedly read out in parallel, however, it can be assumed that each time N pieces of input data are read out, the calculation processing unit 20<1:N> repeatedly executes the "first operation" M times in a loop form, i.e., one "second operation" is performed to generate N pieces of calculation completion data, and the calculation processing unit 20<1:N> performs a "fourth operation" by performing the "second operation" K times in succession to generate K×N pieces of calculation completion data CDT<1:K>#1, CDT<1:K>#2, ..., CDT<1:K>#N.

[0111] As shown in Figures 2 to 4 and 6A, the memory register set (MRS) provided in the operation control unit 40<1:N> can enter the input section of the operation mode in response to an operation input command (not shown) input via the command input buffer 11.

[0112] In addition, the operation control unit 40<1:N> responds to an address input via the address input buffer 12 during an input period of the calculation mode, and transmits K×N pieces of input data IDT<1:K>#1, IDT<1:K>#2, ..., IDT<1:K>#N and N×M pieces of weighting information W <l1:lm> #1、W <l1:lm> #2、...、W <l1:lm>#N, and N×M pieces of calculation information S <l1:lm> #1、S <l1:lm> #2、...、S <l1:lm>The data operation unit 30<1:N> can be controlled so that #N is stored.

[0113] Specifically, the first operation control unit 401 receives the first K pieces of input data IDT<1:K>#1 and the first M pieces of weighting information W <l1:lm>#1, and the first M pieces of operation information S <l1:lm>The first data operation unit 301 can control the first data operation unit 301 so that the second K pieces of input data IDT<1:K>#2 and the second M pieces of weighting information W <l1:lm>#2, and the second M pieces of operation information S <l1:lm>, 40N respectively control the second data operation unit 302 so that the third through Nth operation control units 403, ..., 40N store the third through Nth K pieces of input data IDT<1:K>#3, ..., IDT<1:K>#N input through the data transmission buffer 13 in the input section of the operation mode and the third through Nth M pieces of weighting information W <l1:lm> #3、...、W <l1:lm>#N, and the third to Nth M pieces of operation information S <l1:lm> #3、...、S <l1:lm>, 10N. #N can be stored in the third through Nth memory banks 103, . . . , 10N, respectively.

[0114] As shown in Figures 2 to 4 and 6B, the memory register set (MRS) provided in the operation control unit 40<1:N> can exit from the input section of the operation mode and enter the operation section in response to an operation start command (not shown) input via the command input buffer 11.

[0115] In addition, the operation control unit 40<1:N> responds to an address input via the address input buffer 12 during a calculation period in the calculation mode to calculate K×N pieces of input data IDT<1:K>#1, IDT<1:K>#2, ..., IDT<1:K>#N stored in the N memory banks 101, 102, ..., 10N and N×M pieces of weighting information W <l1:lm> #1、W <l1:lm> #2、...、W <l1:lm>#N, and N×M pieces of calculation information S <l1:lm> #1、S <l1:lm> #2、...、S <l1:lm>#N and transmit it to the arithmetic processing unit 20<1:N>.

[0116] Specifically, after entering the calculation period of the calculation mode, the operation control unit 40<1:N> reads N×M pieces of weighting information W stored in the N memory banks 101, 102, . . . , 10N. <l1:lm> #1、W <l1:lm> #2、...、W <l1:lm>#N and N×M pieces of calculation information S <l1:lm> #1、S <l1:lm> #2、...、S <l1:lm>#N, N pieces of weighting information (W <lx> #1、W <lx> #2、...、W <lx>#N / x is any one of 1 to M) and N pieces of calculation information S <lx> #1、S <lx> #2、...、S <lx>After reading #N in parallel, the read information W <lx> #1、W <lx> #2、...、W <lx>#N / S <lx> #1、S <lx> #2、...、S <lx>The "third operation" of controlling the data operation unit 30<1:N> so that #N is read into the arithmetic processing unit 20<1:N> can be repeated M times to correspond to the "second operation" of the arithmetic processing unit 20<1:N>.

[0117] In addition, after entering the calculation period of the calculation mode, the operation control unit 40<1:N> determines N pieces of input data IDT<1:K>#1, IDT<1:K>#2, ..., IDT<1:K>#N that are read in parallel from each of the N memory banks 101, 102, ..., 10N so as to correspond to the "second operation" of the calculation processing unit 20<1:N> from among the K x N pieces of input data IDT<1:K>#1, IDT<1:K>#2, ..., IDT<1:K>#N stored in the N memory banks 101, 102, ..., 10N. <x>#1、IDT <x>#2、...、IDT <x>A "fifth operation" of controlling the data operation unit 30<1:N> so that #N is read into the arithmetic processing unit 20<1:N> can be repeated K times to correspond to the "fourth operation" of the arithmetic processing unit 20<1:N>.

[0118] In addition, the operation control unit 40<1:N> performs the first "third operation" of the "third operations" repeated M times to correspond to the "second operation" of the arithmetic processing unit 20<1:N> on N pieces of input data IDT in each of the N memory banks 101, 102, . . . , 10N. <x>#1、IDT <x>#2、...、IDT <x>In addition, the operation control unit 40<1:N> can perform each of the second to Mth "third operations" among the "third operations" repeated M times corresponding to the "second operation" of the arithmetic processing unit 20<1:N> in response to the intermediate completion signal MF#<1:N> being transmitted from the arithmetic processing unit 20<1:N>.

[0119] In addition, the operation control unit 40<1:N> outputs a calculation completion signal CF#<1:N> and N pieces of calculation completion data CDT <x>#1、CDT <x>#2、...、CDT <x>When #N is output, N pieces of operation completion data CDT <x>#1、CDT <x>#2、...、CDT <x>The "sixth operation" of controlling the data operation unit 30<1:N> so that the data completion data CDT<1:K>#1, CDT<1:K>#2, ..., CDT<1:K>#N, which are the result of the arithmetic processing unit 20<1:N> completing the execution of the "second operation" K times repeatedly, i.e., the result of completing one execution of the "fourth operation", can be repeated K times so as to be stored in each of the N memory banks 101, 102, ..., 10N. In this way, the operation control unit 40<1:N> can control the data operation unit 30<1:N> so that K×N pieces of arithmetic completion data CDT<1:K>#1, CDT<1:K>#2, ..., CDT<1:K>#N, which are the result of the arithmetic processing unit 20<1:N> completing the execution of the "second operation" K times repeatedly, i.e., the result of completing one execution of the "fourth operation", are stored in each of the N memory banks 101, 102, ..., 10N.

[0120] More specifically, the first operation control unit 401, after entering the operation period of the operation mode, receives the first input data IDT stored in the first memory bank 101. <1> #1 and the first weighting information W <l1>#1, and the first calculation information S <l1>The first data operation unit 301 can be controlled to read the second first input data IDT #1 stored in the second memory bank 102 due to the entry of the operation period of the operation mode and transmit it to the first operation processing unit 201. Similarly, the second operation control unit 402 can control the first data operation unit 301 to read the second first input data IDT #1 stored in the second memory bank 102 due to the entry of the operation period of the operation mode and transmit it to the first operation processing unit 201. <1> #2 and the second first weighting information W <l1>#2, and the second first calculation information S <l1>, 10N. In this manner, the third through Nth operation control units 403, ..., 40N respectively control the third through Nth first input data IDT #2 stored in the third through Nth memory banks 103, ..., 10N according to the entry of the operation period of the operation mode. <1> #3, ..., IDT <1> #N and the third to Nth first weighting information W <l1> #3、...、W <l1>#N, and the third to Nth first operation information S <l1> #3、...、S <l1>, 20N. As described above, the operation control unit 40<1:N> controls each of the third through Nth data operation units 303, ..., 30N to read out each of the N first input data (IDTs) #N and transmit them to the third through Nth arithmetic processing units 203, ..., 20N. As described above, the operation control unit 40<1:N> controls the first "third operation" of the "third operation" repeated M times corresponding to the "second operation" of the arithmetic processing unit 20<1:N> to enter the operation period of the operation mode. <1> #1, IDT <1> #2, ..., IDT <1> #N).

[0121] Next, the first operation control unit 401 receives the intermediate completion signal MF#1 from the first arithmetic processing unit 201 and updates the first second weighting information W stored in the first memory bank 101. <l2>#1 and the first second calculation information S <l2>In the same manner, the second operation control unit 402 can control the first data operation unit 301 to read the second weighting information W stored in the second memory bank 102 by receiving the intermediate completion signal MF#2 from the second operation processing unit 202. <l2>#2 and the second second operation information S <l2>, 20N. In this manner, the third through Nth operation control units 403, ..., 40N can control the second data operation unit 302 to read out the third through Nth second weighting information W<3:N> stored in the third through Nth memory banks 103, ..., 10N, respectively, in response to the intermediate completion signals MF#<3:N> transmitted from the third through Nth operation processing units 203, ..., 20N. <l2> #3、...、W <l2>#N and the third to Nth second operation information S <l2> #3、...、S <l2>, 20N. As described above, the operation control unit 40<1:N> can perform the second "third operation" of the "third operations" repeated M times corresponding to the "second operation" of the arithmetic processing unit 20<1:N> in response to the intermediate completion signal MF#<1:N> being transmitted from the arithmetic processing unit 20<1:N>. At this time, the third through Mth "third operations" can be performed in the same manner as the second "third operation".

[0122] Next, the first operation control unit 401 receives the operation completion signal CF#1 and the first operation completion data CDT <1> When #1 is output, the first operation completion data CDT <1> The second operation control unit 402 can control the first data operation unit 301 to store the operation completion signal CF#2 and the second first operation completion data CDT <1> When #2 is output, the second first operation completion data CDT <1> , 20N respectively receive the operation completion signal CF#<3:N> and the third through Nth first operation completion data CDT#<3:N> from the third through Nth arithmetic processing units 203, ..., 20N. <1> #3, ..., CDT <1> When #N is output, the 3rd to Nth first operation completion data CDT <1> #3, ..., CDT <1> , 10N. As described above, the operation control unit 40<1:N> can control each of the third through Nth data operation units 303, ..., 30N to store each of the first through Nth data operation units 303, ..., 30N in the third through Nth memory banks 103, ..., 10N. As a result of completing the execution of the "second operation" in the arithmetic processing unit 20<1:N>, the operation control unit 40<1:N> can generate an operation completion signal CF#<1:N> and N pieces of first operation completion data CDT <1> #1, CDT <1> #2, ..., CDT <1> When #N is output, N pieces of first operation completion data CDT <1> #1, CDT <1> #2, ..., CDT <1> The data operation unit 30<1:N> can be controlled so that one #N is stored in each of the N memory banks 101, 102, . . . , 10N.

[0123] The above-mentioned "second operation" of the arithmetic processing unit 20<1:N> is to control the operation control unit 40<1:N> to calculate the N input data IDT<1:K>#1, IDT<1:K>#2, ..., IDT<1:K>#N stored in the N memory banks 101, 102, ..., 10N from among the K x N input data IDT<1:K>#1, IDT<1:K>#2, ..., IDT<1:K>#N stored in the N memory banks 101, 102, ..., 10N. <x>#1、IDT <x>#2、...、IDT <x>The "fifth operation" of reading out the first and second data in parallel is repeated K times. That is, the arithmetic processing unit 20<1:N> can execute the "second operation" K times to execute one "fourth operation". At this time, the arithmetic processing unit 20<1:N> can read out N×M pieces of weighting information W <l1:lm> #1、W <l1:lm> #2、...、W <l1:lm>#N and N×M pieces of calculation information S <l1:lm> #1、S <l1:lm> #2、...、S <l1:lm>For example, the calculation processing unit 20<1:N> can use N×M pieces of weighting information W <l1:lm> #1、W <l1:lm> #2、...、W <l1:lm>#N and N×M pieces of calculation information S <l1:lm> #1、S <l1:lm> #2、...、S <l1:lm>After performing neural network calculations using #N, the second "second action" also uses N × M weighting information W <l1:lm> #1、W <l1:lm> #2、...、W <l1:lm>#N and N×M pieces of calculation information S <l1:lm> #1、S <l1:lm> #2、...、S <l1:lm>In this manner, the calculation processing unit 20<1:N> can use all N×M pieces of weighting information W <l1:lm> #1、W <l1:lm> #2、...、W <l1:lm>#N and N×M pieces of calculation information S <l1:lm> #1、S <l1:lm> #2、...、S <l1:lm>#N can be used in layers to perform neural network operations.

[0124] As shown in Figures 2 to 4 and 6C, the memory register set (MRS) provided in the operation control unit 40<1:N> can exit from the operation period of the operation mode in response to an operation completion command (not shown) input via the command input buffer 11 and then enter the output period.

[0125] Specifically, the operation control unit 40<1:N> repeats K times a “seventh operation” in which K×N pieces of operation completion data CDT<1:K>#1, CDT<1:K>#2, ..., CDT<1:K>#N stored in the N memory banks 101, 102, ..., 10N are read in parallel in units of N pieces in response to an address input via the address input buffer 12 during an output period of the operation mode (CDT <1> #1, CDT <1> #2, ..., CDT <1> #N, ..., CDT <2> #1, CDT <2> #2, ..., CDT <2> #N, ..., CDT <1> #1, CDT <k>#2、...、CDT <k>#N), N pieces of operation completion data CDT read out by the "seventh operation" <x>#1、CDT <x>#2、...、CDT <x>The eighth operation of controlling the data operation unit 30<1:N> to output the data #N through the data transmission buffer 13 is repeated K times (CDT <1> #1, CDT <1> #2, ..., CDT <1> #N, ..., CDT <2> #1, CDT <2> #2, ..., CDT <2> #N, ..., CDT <1> #1, CDT <k>#2、...、CDT <k>#N) can be done.

[0126] FIG. 7 is a diagram illustrating a normal mode operation of a memory device according to an embodiment of the present invention.

[0127] As shown in FIG. 7, the memory register set (MRS) provided in the operation control unit 40<1:N> can exit from the operation mode and enter the normal mode in response to a normal start command (not shown) input through the command input buffer 11.

[0128] Specifically, when a write command is input through the command input buffer 11 in normal mode, a write address is input through the address input buffer 12, and write data NDT#<1:N> is input through the data transmission buffer 13, the operation control unit 40<1:N> can control the data operation unit 30<1:N> to perform a write operation to store the write data NDT#<1:N> in a memory cell corresponding to the write address among N memory banks 101, 102, ..., 10N.

[0129] In addition, when a read command is input through the command input buffer 11 and a read address is input through the address input buffer 12 in normal mode, the operation control unit 40<1:N> can control the data operation unit 30<1:N> to read out data NDT#<1:N> stored in a memory cell corresponding to the read address among N memory banks 101, 102, ..., 10N, and output it through the data transmission buffer 13.

[0130] On the other hand, the operation control unit 40<1:N> can control the data operation unit 30<1:N> so that no data is input / output to / from the arithmetic processing unit 20<1:N> in the normal mode, so that the arithmetic processing unit 20<1:N> is inactivated in the normal mode and does not perform any operation.

[0131] As described above, by applying an embodiment of the present invention, by including a neural network processing circuit within the memory device, after entering the operation mode, the memory device itself can perform neural network operations without the intervention of the host or memory controller.

[0132] In addition, since the memory bank (including a plurality of memory cells) and the neural network processing circuit included in the memory device share a data input / output buffer, the usage of the memory device can be selected by controlling whether or not the neural network processing circuit is activated.

[0133] The present invention described above is not limited to the above-described embodiments and the attached drawings, and it will be apparent to those having ordinary skill in the art to which the present invention pertains that various substitutions, modifications, and alterations are possible within the scope of the technical idea of ​​the present invention.< / k> < / k> < / x> < / x> < / x> < / k> < / k> < / l1:lm> < / l1:lm> < / l1:lm> < / l1:lm> < / l1:lm> < / l1:lm> < / l1:lm> < / l1:lm> < / l1:lm> < / l1:lm> < / l1:lm> < / l1:lm> < / l1:lm> < / l1:lm> < / l1:lm> < / l1:lm> < / x> < / x> < / x> < / l2> < / l2> < / l1> < / l1> < / x> < / x> < / x> < / x> < / x> < / x> < / x> < / x> < / x> < / x> < / x> < / x> < / lx> < / lx> < / lx> < / lx> < / lx> < / lx> < / lx> < / lx> < / lx> < / lx> < / lx> < / lx> < / l1:lm> < / l1:lm> < / l1:lm> < / l1:lm> < / l1:lm> < / l1:lm> < / l1:lm> < / l1:lm> < / l1:lm> < / l1:lm> < / l1:lm> < / l1:lm> < / l1:lm> < / l1:lm> < / k> < / k> < / lm> < / lm> < / lm> < / lm> < / lm> < / lm> < / lm> < / lm> < / lm> < / lm> < / lm> < / lm> < / lm> < / lm> < / lm> < / lm> < / lm> < / lm> < / lm> < / lm> < / lm> < / l2> < / l2> < / l1> < / l1> < / lx> < / lx> < / lx> < / lx> < / lx> < / lx> < / lx> < / lx> < / lx> < / lx> < / lx> < / lx> < / l1:lm> < / l1:lm> < / l1:lm> < / l1:lm> < / l1:lm> < / l1:lm> < / l1:lm> < / l1:lm> < / l1:lm> < / l1:lm> < / l1:lm> < / l1:lm> < / l1:lm> < / l1:lm>

Claims

1. N cell array regions; a calculation processing unit that performs a second operation, which is a first operation of loading N pieces of neural network processing information from N cell array regions in parallel during a calculation period in a calculation mode and performing N pieces of neural network calculations in parallel, on input data, the second operation being repeated M times in a loop form, to generate calculation completion data; a data operation unit that stores the input data and M×N pieces of neural network processing information inputted through a data transmission buffer in an input period of the operation mode in N cell array regions, and outputs the operation completion data through the data transmission buffer in an output period of the operation mode; an operation control unit for controlling entry / exit of the input section, the operation section, and the output section and for controlling the operation processing unit and the data operation unit in response to a command and an address inputted through an input buffer; Equipped with N and M are memory devices each being a natural number greater than or equal to 2.

2. the data operation unit stores data inputted through the data transfer buffer in N cell array regions during a write operation in a normal mode in which an operation period does not overlap with the operation mode, and reads data from the N cell array regions and outputs the data through the data transfer buffer during a read operation; 2. The memory device of claim 1, wherein the operation control unit controls the entry / exit of the normal mode and the data operation unit in response to a command and an address input via the input buffer.

3. the M×N neural network processing information includes M×N weighting information and M×N operation information for mathematically modeling each of the N neural network operations; 2. The memory device of claim 1, wherein the operation control unit controls the data operation unit so that M pieces of weighting information and M pieces of operation information are stored in each of N cell array regions during the input period.

4. The operation control unit is 4. The memory device of claim 3, wherein the data operation unit controls the data operation unit so that the input data, M pieces of weighting information, and M pieces of operation information are stored in each of N cell array regions in response to an address input through the input buffer after entering the input period in response to an operation input command input through the input buffer.

5. The operation control unit is 5. The memory device of claim 4, wherein the data operation unit exits the input period in response to an operation start command input through the input buffer, enters the operation period, controls the first and second operations in response to an address input through the input buffer, and controls the data operation unit to store the operation completion data in N cell array regions in response to an operation completion signal transmitted from the operation processing unit.

6. The operation control unit is 6. The memory device of claim 5, wherein the data operation unit is controlled to exit the operation period in response to an operation completion command input through the input buffer, enter the output period, read the operation completion data from N cell array regions in response to an address input through the input buffer, and output the read operation completion data through the data transmission buffer.

7. The operation control unit is 7. The memory device of claim 6, further comprising: after entering the calculation period, reading out N weighting information and N calculation information from N cell array regions in parallel to correspond to the first operation among M×N weighting information and M×N calculation information stored in N cell array regions; and repeating a third operation of controlling the data operation unit to load the read information into the calculation processing unit M times to correspond to the second operation.

8. The operation control unit is 8. The memory device of claim 7, wherein a first third operation is performed in response to entry of the calculation period, and each of the second through M-th third operations is performed in response to an intermediate completion signal being transmitted from the calculation processing unit.

9. the input data comprises N pieces of first input data, the operation completion data comprises N pieces of first operation completion data, The operation control unit is 9. The memory device of claim 8, wherein the data operation unit is controlled so that, after entering the input period, one first input data is stored in each of N cell array regions.

10. The operation control unit is 10. The memory device of claim 9, further comprising: a data operation unit that controls N first input data read in parallel from N cell array regions by entering the operation period, and reads the N first input data into the operation processing unit; and a data operation unit that controls one first operation completion data to be stored in each of the N cell array regions when the operation completion signal and the N first operation completion data are output from the operation processing unit.

11. The operation control unit is 11. The memory device of claim 10, further comprising: a data operation unit configured to read N first operation completion data in parallel from N cell array regions by entering the output period; and control the data operation unit to output the N first operation completion data read out through the data transmission buffer.

12. The arithmetic processing unit is performing N neural network operations included in a first operation on the N first input data read by entering the operation section in parallel to generate N data; 11. The memory device of claim 10, wherein each of the second to Mth first operations reads N pieces of data generated as a result of execution of a previous operation in a subsequent operation to perform N neural network operations in parallel, and outputs the N pieces of data generated as a result of execution of the Mth first operation to the data operation unit as N pieces of first operation completion data that are the result of execution of the second operation.

13. The arithmetic processing unit is Counting the number of times the first operation is completed; until the count value reaches M-1, generate the intermediate completion signal and output it to the operation control unit every time the count value is incremented by one, 13. The memory device according to claim 12, wherein when the count value reaches M, the operation completion signal is generated and output to the operation control section.

14. the input data comprises K×N pieces of second input data, the operation completion data comprises K×N pieces of second operation completion data, the operation control unit controls the data operation unit so that, after entering the input period, K pieces of second input data are stored in each of the N cell array regions; 9. The memory device of claim 8, wherein the calculation processing unit performs the second operation once on N pieces of second input data out of K×N pieces of second input data to generate N pieces of second calculation completion data out of K×N pieces of second input data, and performs a fourth operation of performing the second operation K times consecutively on the K×N pieces of second input data during the calculation interval to generate K×N pieces of second calculation completion data, where K is a natural number greater than or equal to 2.

15. The operation control unit is after entering the operation period, repeating a fifth operation of controlling the data operation unit K times in response to the fourth operation so that N pieces of second input data, which are read in parallel from the N cell array regions in response to the second operation, are read into the operation processing unit; 15. The memory device of claim 14, wherein a sixth operation of controlling the data operation unit so that one second operation completion data is stored in each of N cell array regions when the operation completion signal and N of the K×N second operation completion data are output from the operation processing unit in response to the second operation is repeated K times in response to the fourth operation.

16. The operation control unit is 16. The memory device of claim 15, further comprising: a seventh operation of reading N pieces of second operation completion data in parallel from N cell array regions by entering the output section, repeated K times; and an eighth operation of controlling the data operation unit to output the N pieces of second operation completion data read by the seventh operation through the data transmission buffer, repeated K times.

17. The arithmetic processing unit is After entering the calculation section, N pieces of data are generated by performing N pieces of neural network calculations included in a first operation on N pieces of input data read out of K×N pieces of second input data in parallel; 15. The memory device of claim 14, wherein each of the second to Mth first operations reads N pieces of data generated as a result of execution of a previous operation in a subsequent operation to perform N neural network operations in parallel, and outputs the N pieces of data generated as a result of execution of the Mth first operation to the data operation unit as N pieces of second operation completion data that are the result of execution of the second operation.

18. The arithmetic processing unit is Counting the number of times the first operation is completed; until the count value reaches M-1, generate the intermediate completion signal and output it to the operation control unit every time the count value is incremented by one, 18. The memory device of claim 17, wherein when the count value reaches M, the operation completion signal is generated and output to the operation control unit, and then the count value is initialized.

19. the arithmetic processing section includes N arithmetic processing units corresponding to N cell array regions, Each of the N arithmetic processing units a data reading unit for reading one of the data input through the data operation unit and the loop data fed back therein, and weighting information and calculation information input through the data operation unit; an arithmetic execution unit that performs neural network operations on the data read from the data read unit and the data transmitted from each of the remaining N-1 arithmetic processing units excluding itself by using weighting information and arithmetic information, and generates result data as an execution result; a selective transmission unit that, when the value of the result data is equal to or greater than a reference value, feeds back the result data as the loop data to the data reading unit, and, when the value is equal to or less than a reference value, generates the loop data fixed to a specific value and feeds it back to the data reading unit; a counting section that counts the number of times the loop data is transmitted to the data reading section by the selective transmission section, and generates the intermediate completion signal or the operation completion signal according to the count value, and outputs the intermediate completion signal or the operation completion signal to the operation control section; The memory device of claim 8 .

20. the data operation unit includes N data transfer units corresponding to N cell array regions, Each of the N data transfer units a read / write operation unit for writing data to or reading data from a cell array region in response to a first control signal input from the operation control unit; a path selection unit for selecting a path of data transferred between the read / write operation unit, the data transfer buffer, and the arithmetic processing unit in response to a second control signal input from the operation control unit; The memory device of claim 1 .

Citation Information

Patent Citations

  • Semiconductor memory device

    JP2012195478A

  • Computing system including communication mechanism and operation method thereof

    JP2017111807A

  • Intelligent high bandwidth memory system and logic dies therefor

    JP2019036298A

  • Memory device

    JP2019121370A

  • Neural electronic circuit

    JP2019139300A