Semiconductor device

The integration of a NOR or NAND type memory cell array in a semiconductor device facilitates matrix calculations, addressing low data transfer efficiency and enhancing AI learning performance by improving computing power and processing efficiency.

JP2024151454AInactive Publication Date: 2024-10-25WINBOND ELECTRONICS CORP
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
JP2023064783
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-12
Publication Date
2024-10-25
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Conventional synapse array devices lack data calculation functions, leading to low data transfer efficiency and prolonged AI learning processes due to the absence of matrix calculation capabilities.

Method used

Incorporating a NOR or NAND type memory cell array with a semiconductor device that calculates the sum of column-direction currents flowing through bit lines during reading operations, enabling matrix calculations and data processing.

Benefits of technology

Enhances computing power and processing efficiency for AI learning by providing a semiconductor device capable of matrix operations, improving data transfer efficiency and reducing processing time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024151454000001_ABST
    Figure 2024151454000001_ABST
Patent Text Reader

Abstract

To provide a semiconductor device which can improve arithmetic capacity such as AI learning and processing efficiency.SOLUTION: A flash memory 100 includes a NAND type or NOR type memory cell array 110, and an arithmetic processing unit 190. The arithmetic processing unit 190 includes a bit line current detection unit 200, a voltage holding unit 210 which holds voltage corresponding to detected current, an addition unit 220 which adds the voltage held in the voltage holding unit 210, and an A / D conversion unit 230 which performs A / D conversion on an addition result of the addition unit 220. The arithmetic processing unit 190 can calculate the sum of currents which flow through a bit line in a line direction and / or a column direction at reading of the memory cell array.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a semiconductor device including a NOR type or NAND type memory cell array, and more particularly to a semiconductor device that can be used as a neuromorphic device. [Background technology]

[0002] Crossbar arrays using variable resistance elements as AI (artificial intelligence) hardware that structurally simulates synapses and neurons are coming into practical use (for example, Patent Document 1). Crossbar arrays include variable resistance elements at the intersections of row and column lines, and the variable resistance elements store different resistance values ​​(conductance) when a voltage or current is applied. By writing a desired resistance value into the variable resistance element, for example, an input signal applied to a row line is weighted by the resistance value of the variable resistance element and output from a column line. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] Patent No. 6818116 Summary of the Invention [Problem to be solved by the invention]

[0004] 1 is a block diagram showing the configuration of a conventional synapse array device with a learning function. The synapse array device 10 includes a flash memory 20 that stores learning data, a crossbar array 30, and a controller 40. The controller 40 reads the learning data from the flash memory 20, writes the read learning data to the crossbar array 30, modulates the resistance of the variable resistance element, and performs data learning. The controller 40 also reads the learned data from the crossbar array 30, and writes the read data to the flash memory 20.

[0005] In the conventional synapse array device 10, the flash memory 20 does not have a data calculation function, so it is not possible to perform matrix calculations required for AI learning, etc. Therefore, there is an issue that the data transfer efficiency is low, and as a result, the AI ​​learning process takes a long time.

[0006] The present invention aims to provide a semiconductor device that can solve such conventional problems and improve the computing power and processing efficiency of AI learning and the like. [Means for solving the problem]

[0007] The calculation method for a semiconductor device according to the present invention includes a NOR type or NAND type memory cell array, and in reading multiple rows of the memory cell array, calculates the sum of column-wise currents flowing through bit lines when reading each row.

[0008] In one embodiment, the calculation method further calculates a row-wise sum of the sums of column-wise currents of a plurality of bit lines. In one embodiment, the calculation method calculates a row-wise sum of currents corresponding to data stored in memory cells of a plurality of rows and a plurality of columns. In one embodiment, the calculation method includes A / D converting the sum of column-wise currents or the sum of row-wise currents to generate multi-bit data. In one embodiment, the calculation method further includes writing the multi-bit data to memory cells of the memory cell array. In one embodiment, the memory cell array includes first and second memory planes, and calculates a sum of row-wise currents flowing through bit lines in reading the first memory plane, and writes the multi-bit data to the second memory plane. In one embodiment, the calculation method calculates a sum of first currents in the column direction flowing through bit lines of a first group and a sum of second currents in the column direction flowing through bit lines of a second group, and calculates a difference between the sum of the first currents and the sum of the second currents. In one embodiment, the sum of the first currents represents a positive coefficient and the second currents represents a negative coefficient.

[0009] The semiconductor device of the present invention includes a NOR or NAND type memory cell array including a plurality of row lines, a plurality of bit lines, and a plurality of memory cells, read means for reading from the memory cell array, write means for writing to the memory cell array, and a calculation means for calculating a sum of column-wise currents flowing through the bit lines when each row is read by the read means.

[0010] In one embodiment, the calculation means further calculates a row-wise sum of the sums of column-wise currents of a plurality of bit lines. In one embodiment, the calculation means calculates a row-wise sum of currents in rows and columns corresponding to data stored in memory cells of a plurality of rows and columns. In one embodiment, the calculation means includes A / D conversion means for A / D converting the sum of column-wise currents or the sum of row-wise currents to generate multi-bit data. In one embodiment, the writing means writes the multi-bit data to memory cells of the memory cell array. In one embodiment, the memory cell array includes first and second memory planes, and the calculation means calculates a row-wise sum of currents flowing through bit lines in reading the first memory plane, and the writing means writes the multi-bit data to the second memory plane. In one embodiment, the calculation means calculates a sum of first currents in a column direction flowing through the bit lines of a first group and a sum of second currents in a column direction flowing through the bit lines of a second group, and calculates a difference between the sum of the first currents and the sum of the second currents. Effect of the Invention

[0011] According to the present invention, in a semiconductor device having a NOR or NAND memory cell array, a calculation function for calculating the sum of currents flowing through bit lines is provided, thereby improving the calculation capacity and processing efficiency of AI learning, etc. This makes it possible to provide a semiconductor device suitable for a neuromorphic device. [Brief description of the drawings]

[0012] [Figure 1] FIG. 1 is a block diagram showing a configuration of a conventional synapse array device. [Diagram 2] 1 is a block diagram showing a configuration of a NAND type flash memory according to an embodiment of the present invention. [Diagram 3] FIG. 2 is a diagram showing a configuration of a block of a memory cell array. [Figure 4] FIG. 2 is a diagram illustrating a configuration example of a page buffer / sense circuit. [Diagram 5] 2 is a block diagram showing a configuration of an arithmetic processing unit of a flash memory according to the present embodiment. FIG. [Figure 6] 6 is a diagram illustrating a functional configuration of a calculation processing unit illustrated in FIG. 5. [Figure 7] FIG. 13 is a diagram showing a flow of a matrix calculation according to the present embodiment. [Figure 8] FIG. 2 is a schematic diagram illustrating a matrix calculation according to the present embodiment. [Figure 9] FIG. 13 is a diagram showing a flow of calculation in the row direction in this embodiment. [Figure 10] 11A and 11B are schematic diagrams illustrating row-direction calculations in the present embodiment. [Figure 11] FIG. 13 is a diagram showing a flow of calculation in the column direction in this embodiment. [Figure 12] 11A and 11B are schematic diagrams illustrating calculations in the column direction according to the present embodiment. [Figure 13] 11A and 11B are diagrams for explaining writing of a matrix calculation result in the present embodiment. [Figure 14] FIG. 11 is a diagram illustrating an example of read and write operations between planes in the present embodiment. [Figure 15] FIG. 1 is a diagram showing an example in which the flash memory of the present embodiment is applied to an autoencoder. [Figure 16] FIG. 13 is a block diagram showing a configuration of a calculation processing unit according to another embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] The semiconductor device according to the present invention relates to a flash memory including a NOR or NAND type memory cell array. In one embodiment, the flash memory includes a function of detecting a current flowing through a bit line, and enables a calculation of a sum of currents according to data of a plurality of memory cells in a column direction on a plurality of bit lines in a read of a plurality of rows. In another embodiment, the flash memory includes a plurality of memory planes, and enables a result of a matrix operation of data read from one memory plane to be written to another memory plane. The flash memory can function as an AI memory or a neuromorphic device with a learning function by performing a matrix operation of data read from the memory cell array. In the following description, a NAND type flash memory with a matrix operation function is exemplified. EXAMPLES

[0014] Next, an embodiment of the present invention will be described with reference to the drawings. Fig. 2 is a diagram showing the configuration of a NAND type flash memory according to this embodiment, and the flash memory 100 includes a NAND type memory array 110 in which a plurality of memory cells are arranged in a matrix, an input / output circuit 120 connected to an external input / output terminal and outputting read data to the outside or taking in data input from the outside, an ECC circuit 130 that generates an error correction code for data to be programmed and detects and corrects errors in the read data based on the error correction code, an address register 140 that receives address data via the input / output circuit 120, and an instruction (command) or control signal received via the input / output circuit 120. The NAND flash memory 100 includes a controller 150 for controlling each part based on a control signal applied to a control terminal, a word line selection circuit 160 for selecting a block or a word line based on a result of decoding row address information Ax from an address register 140, a page buffer / sense circuit 170 for holding data read from a selected page of the memory cell array 110 or for holding data to be programmed to the selected page, a column selection circuit 180 for selecting a column based on a result of decoding column address information Ay from the address register 140, and an arithmetic processing unit 190 for performing arithmetic processing in the row direction and / or column direction of the memory cell array 110. Although not shown here, the flash memory 100 includes an internal voltage generation circuit for generating voltages (program voltage Vpgm, pass voltage Vpass, read voltage Vread, erase voltage Vers, etc.) required for reading, programming (writing), and erasing data. The NAND flash memory 100 may also be equipped with an SPI to ensure compatibility with NOR flash memories.

[0015] In one embodiment, the memory cell array 110 includes, but is not limited to, two memory planes P0 and P1. The memory planes P0 and P1 are formed, for example, in separate P-wells. For example, the memory plane P0 includes 1024 even-numbered blocks (BLK0, 2, . . . , 2044, 2046), and the memory plane P1 includes 1024 odd-numbered blocks (BLK1, 3, . . . , 2045, 2047).

[0016] As shown in Fig. 3, a plurality of NAND strings are formed in one block. One NAND string includes a plurality of memory cells (64 memory cells in this example), a bit line side select transistor, and a source line side select transistor. The NAND strings may be formed in a two-dimensional array on the surface of a substrate, or may be formed in a three-dimensional array on the substrate. The memory cells may be of the SLC type that stores one bit, or may be of the type that stores multiple bits.

[0017] The word line selection drive circuit 160 selects a block of the plane P0 and / or a block of the plane P1 based on the row address Ax, and further selects a word line of the selected block. It should be noted here that when the planes P0 and P1 are operated simultaneously, the word line selection drive circuit 160 selects the blocks of the planes P0 and P1 individually, that is, selects the block of the plane P0 based on the address related to the plane P0, and selects the block of the plane P1 based on the address related to the plane P1. Furthermore, when the planes P0 and P1 are operated simultaneously, the word line selection drive circuit 160 outputs a selection signal SGS / SGD according to the operation of the plane P0 to the bit line side selection transistor / source line side selection transistor, and outputs a selection signal SGS / SGD according to the operation of the plane P1 to the bit line side selection transistor / source line side selection transistor.

[0018] The ECC circuit 130 detects and corrects errors in data to be programmed or data that has been read. The ECC calculation is performed by a known method such as the Hamming code or Reed-Solomon, and converts input data Di of k bits or k bytes to p=k+q, where "q" is an error correction code or parity bit required for detecting and correcting errors in the data.

[0019] Each of the memory planes P0 and P1 is provided with a page buffer / sense circuit 170, a column selection circuit 180, and an arithmetic processing unit 190. Fig. 4 shows one page buffer / sense circuit and a bit line selection circuit connected thereto. The page buffer / sense circuit 170_0 includes a sense circuit 172_0 that senses data read onto a bit line or sets a voltage corresponding to data to be programmed, a latch circuit 174_0 that holds the sensed data or holds data to be programmed, and a bit line selection circuit 176_0.

[0020] The sense circuit 172_0 includes a precharge transistor BLPRE connected between a voltage supply node V1 and a sense node SNS, a transistor BLCLAMP for generating a clamp voltage at a node TOBL, and a transistor BLCN connected between the node TOBL and a node BLS of the bit line selection circuit 176_0. The sense node SNS is connected to the latch circuit 174_0 via a charge transfer transistor (not shown).

[0021] The bit line selection circuit 176_0 includes a transistor BLSe for selecting the even bit line BLe, a transistor BLSo for selecting the odd bit line BLo, a transistor YBLe for connecting the virtual power supply VIRPWR to the even bit line BLe, and a transistor YBLo for connecting the virtual power supply VIRPWR to the odd bit line BLo.

[0022] In one embodiment, the page buffer 170 includes a first latch L1 capable of holding one page of data, and a second latch L2 capable of transferring data between the first latch L1. The latch L2 of the page buffer / sense circuit 170 is connected to the I / O buffer 110, the ECC circuit 130, and the like via an internal bus. In another embodiment, the latches L1 and L2 each include a first cache C0 and a second cache C1 that hold data in units of 1 / 2 pages, and the first cache C0 is configured to be able to transfer data independently of the second cache C1.

[0023] In a read operation for each memory plane, a positive voltage is applied to the bit line, a read voltage (e.g., 0V) is applied to the selected word line, a read pass voltage Vpass is applied to the unselected word lines, the bit line side select transistor and the source line side select transistor are turned on by the selection signals SGD / SGS, and 0V is applied to the common source line. In a program operation, a high program voltage Vpg is applied to the selected word line, an intermediate potential is applied to the unselected word lines, the bit line side select transistor is turned on, the source line side select transistor is turned off, and a voltage according to the program data is applied to the bit line. In an erase operation, 0V is applied to the selected word line in the block, and the erase voltage Vers is applied to the P-well to erase data in blocks.

[0024] The arithmetic processing unit 190 has a function of performing matrix operations on data read from the memory cell array 110. More specifically, in reading multiple rows of the memory cell array 110, the arithmetic processing unit 190 detects currents flowing through bit lines when reading each row (page), calculates the sum of the detected currents, and A / D converts the calculated sum of currents. The A / D converted data is written back into the memory cell array.

[0025] As shown in FIG. 5, the arithmetic processing unit 190 includes a bit line current detection unit 200, a voltage holding unit 210, an adder unit 220, and an A / D conversion unit 230. When the selected page is read, if the selected memory cell stores data "1", the selected memory cell turns on, and the charge precharged to the bit line BL is discharged to the source line SL via the NAND string. On the other hand, if the selected memory cell stores data "0", the selected memory cell turns off, and the charge precharged to the bit line BL is hardly discharged to the source line SL. The bit line current detection unit 200 detects the current flowing from the bit line BL to the source line SL during reading. The bit line current detection unit 200 is not particularly limited in its configuration, but may be, for example, a current sense amplifier in which a shunt resistor is connected in series to the bit line and a voltage drop of the shunt resistor is detected, or a current sense amplifier in which a shunt resistor and an operational amplifier are combined.

[0026] 6 is a diagram showing a connection relationship between the page buffer / sense circuit 170 and the arithmetic processing unit 190. The bit line current detection units 200_0 to 200_q are connected to the page buffer / sense circuits 170_0 to 170_q, respectively, and detect a current flowing through the even bit line BLe or the odd bit line BLo selected by the bit line selection circuit. The detection results of the bit line current detection units 200_0 to 200_q are respectively held by the voltage holding units 210_0 to 210_q. The configuration of the voltage holding unit 210 is not particularly limited, but may include, for example, a charging circuit that charges a capacitor using a diode or a switch and a capacitor, and a reset circuit that discharges the charge stored in the capacitor.

[0027] When multiple pages are read, the voltage holding unit 210 may charge a capacitor for each page and provide the voltage charged on a page-by-page basis to the adder unit 220 (in this case, the capacitor is reset on a page-by-page basis), or may charge a capacitor with the voltage of multiple pages and provide the charged voltage after the multiple pages are read to the adder unit 220 (in this case, the capacitor is reset after the multiple pages are read). For example, when eight pages are read continuously, the voltage holding unit 210 may output the voltage charged in the capacitor to the adder unit 220 each time the reading of one page is completed, or may output the voltage charged in the capacitor by the reading of eight pages to the adder unit 220 when the reading of eight pages is completed.

[0028] The adder 220 includes column adders 220_0 to 220_q that add voltages in the column direction of the bit lines, and a row adder 222 that adds voltages in the row direction of a plurality of bit lines. The adder 222 is not particularly limited in configuration, but is configured, for example, using an operational amplifier that adds a plurality of input voltages. As shown in FIG. 6, the column adders 220_0 to 220_q are connected to the voltage holding units 210_0 to 210_q, and input the voltages held by the voltage holding units 210_0 to 210q and add these input voltages. The row adder 222 inputs the voltages output from the column adders 220_0 to 220_q and adds these input voltages.

[0029] The A / D conversion unit 230 receives the analog voltage output from the addition unit 220 and converts the analog voltage into digital data of a predetermined number of bits. The digital data converted by the A / D conversion unit 230 is written (programmed) again into a selected page in a selected block of the memory cell array.

[0030] The controller 150 is configured, for example, by a microcontroller including ROM / RAM, or a state machine. In this embodiment, the controller 150 controls the arithmetic processing unit 190 during a read operation or a write operation, for example, by a new command. In one aspect, the controller 150 detects a current flowing through a bit line during a read operation of the memory plane P0 or P1, performs a matrix operation on the detected current, converts the analog data subjected to the matrix operation into digital data by the A / D conversion unit 230, and controls writing the converted digital data to another memory plane P1 or P0.

[0031] Next, the matrix calculation of the flash memory 100 of this embodiment will be described. Fig. 7 is a flow showing an example of the matrix calculation, and Fig. 8 is a schematic diagram for explaining the matrix calculation shown in Fig. 7. The matrix calculation here is performed, for example, when continuous reading is performed from the kth page to the nth page (multiple pages) in the selected block of the memory plane P0.

[0032] When the controller 150 receives a command and an address for matrix calculation from the host system, it starts continuous reading of multiple pages according to the command. When the kth page (row) of the memory plane P0 is read (S100), a current precharged in each bit line flows to the source line according to the data stored in the selected memory cell of the selected page. If the selected memory cell is turned on, the charge of the bit line is discharged to the source line, and if the selected memory cell is off, the charge of the bit line hardly changes. The bit line current detection unit 200 detects the currents iBL0, iBL1, . . . , iBLm flowing through the bit lines BL0, BL1, . . . , BLm (S110). Referring to FIG. 8, when the word line WLk is selected, the currents iBL0_k to iBLm_k flowing through each of the bit lines BL0 to BLm are detected, and the detection result is held in the voltage holding unit 210 (S120).

[0033] During successive reads from the kth page to the nth page, currents flowing through the bit lines BL0 to BLm are detected during each read, and voltages corresponding to these currents are held in the voltage holding unit 210. With reference to Fig. 8, when the word line WLk+1 is selected, currents iBL0_k+1 to iBLm_k+1 flowing through each of the bit lines BL0 to BLm are detected, and similar detection is performed thereafter, and when the word line WLn is selected, currents iBL0_n to iBLm_n flowing through each of the bit lines BL0 to BLm are detected.

[0034] Next, the column summation units 220_0 to 220_q calculate the sums of the currents of the bit lines BL0 to BLm, ΣiBL0 to ΣiBLm (S140). When the voltage holding unit 210 holds the sums of the currents of the bit lines from page k to page n, the column summation units 220_0 to 220_q calculate voltages equal to the voltages held by the voltage holding unit 210. On the other hand, when the voltage holding unit 210 holds the currents of the bit lines at the time of reading each page, the column summation units 220_0 to 220_q sequentially add up the voltages held by the voltage holding unit 210 for each page read.

[0035] Next, the row summation unit 222 inputs the voltages added by the column summation units 220_0 to 220_q and adds these input voltages (S140). In this way, the sum of voltages corresponding to the currents flowing through the bit lines when reading from page k to page n is calculated. After that, the sum of voltages is converted into multi-bit digital data by the A / D conversion unit 230 and written into the selected page of the selected block of the memory plane P1. This writing will be described later.

[0036] In one embodiment, in response to a new command, controller 150 enables row-wise calculation by calculation processing unit 190. Fig. 9 is a flow showing an example of row-wise calculation, and Fig. 10 is a schematic diagram for explaining the row-wise calculation shown in Fig. 9.

[0037] When the controller 150 receives a command and address for row-wise operation from the host system, it starts reading the k-th page according to the command. When the k-th page (row) of the memory plane P0 is read (S200), a current corresponding to the data of the selected memory cell flows from the bit lines BL0 to BLm to the source line, as shown in Fig. 10, and the currents iBL0, iBL1, ..., iBLm are detected by the bit line current detection unit 200 (S210).

[0038] The voltage holding unit 210 holds a voltage corresponding to the bit line current detected by the bit line current detection unit 210 (S220), and then the row addition unit 222 calculates the sum of row-direction currents iBL0_k+iBL1_k, ... iBLm_k for m bits (230).

[0039] In another aspect, the controller 150 enables column-wise calculation by the calculation processing unit 190 in response to a new command. Fig. 11 is a flow showing an example of column-wise calculation, and Fig. 12 is a schematic diagram for explaining the column-wise calculation shown in Fig. 11.

[0040] When the controller 150 receives a command and an address for matrix calculation from the host system, it starts continuous reading of multiple pages according to the command. When the k-th page (row) of the memory plane P0 is read (S300), for example, a current iBL2_k flowing through the bit line BL2 is detected by the bit line current detection unit 210 (S310), and a voltage corresponding to the detected current iBL2 is held by the voltage holding unit 220 (S320).

[0041] During successive reads from the kth page to the nth page, the current flowing through the bit line BL2 during each read is detected, and a voltage corresponding to the current is held in the voltage holding unit 210 (S330). Next, the column addition unit 220_2 calculates a voltage corresponding to the sum of the column-wise currents iBL2_k to iBL2_n (S340).

[0042] In the above embodiment, the bit line current detection units 200_0 to 200_q detect the current flowing through each bit line, but this is only an example, and the sum of currents flowing through a plurality of bit lines may be detected. In this case, a plurality of bit lines are regarded as one unit, and the bit line current detection unit 200 detects the sum of currents flowing through a plurality of bit lines of each unit. For example, when one unit is composed of 16 bit lines, the bit line current detection unit 200 detects the sum of currents flowing through the 16 bit lines. For example, the bit line current detection unit 200 detects the sum of currents flowing through shunt resistors connected to the 16 bit lines, and the detected voltage is provided to the voltage holding unit 210. Detecting the sum of currents flowing through a plurality of bit lines read out in the same row is equivalent to the addition process (FIGS. 9 and 10) of the currents flowing through the bit lines in the row direction described in the previous embodiment.

[0043] In another embodiment, a plurality of bit lines in each unit may be commonly connected to a source line, and the bit line current detection section 200 may detect a current flowing through the common source line in each unit by the bit line current detection section 200. In other words, the sum of the currents flowing through the plurality of bit lines in each unit flows through the common source line in each unit, and this sum of the currents is detected by the bit line current detection section 200.

[0044] In yet another embodiment, in the case of a configuration in which a read voltage is applied to a bit line from a voltage supply unit of a sense circuit and the voltage or current of a source line is sensed, as in a NOR type flash memory, the bit line current detection unit 200 may detect a current supplied to a plurality of bit lines (unit units) from the current supply unit. A read voltage is supplied from the voltage supply unit to each of the plurality of bit lines constituting a unit, and a current corresponding to the data stored in the memory cell flows from the bit line to the source line. The current supplied from the voltage supply unit to the plurality of bit lines constituting a unit is equal to the sum of the currents flowing from each bit line to the source line.

[0045] In this way, by detecting the sum of the currents flowing through the multiple bit lines that make up a unit using the bit line current detection unit 200, the voltage holding unit 210 and the addition unit 220, the number of circuits can be reduced, and the space required for the circuits can be saved.

[0046] Next, an example of writing the result of the matrix operation to another block will be described. In one embodiment, the controller 150 writes the result of the matrix operation obtained when reading the memory plane P0 to the memory plane P1, but this is just an example, and it is also possible to write the operation result in the same memory plane.

[0047] FIG. 13(A) shows the result of the matrix operation when page reading is performed on word lines WL0 to WL16 of block A, and FIG. 13(B) shows an example of writing the operation result to a selected page of word line WL0 of block B. The matrix operation is data reflecting data stored in memory cells of 16 rows by m columns. If the memory cells store binary data and the A / D conversion unit 230 converts the result of the matrix operation into m-bit digital data, the data of the memory cells of 16 rows by m columns will be compressed to 1 / 16. In other words, the resolution (number of bits) of the A / D conversion unit 230 is determined by the degree to which the result of the matrix operation is compressed.

[0048] The above example shows an example in which the result of a matrix operation is compressed and written, but it is also possible to compress the row-wise operation result shown in Figures 9 and 10 and write it to another block, or to compress the column-wise operation result shown in Figures 11 and 12 and write it to another block. In this case, too, the compression ratio is determined by the A / D conversion unit 230.

[0049] 14 is a schematic diagram showing an example of writing the results of a matrix operation between memory planes. First, a matrix operation is performed when block BLK0 of memory plane P0 is read, and the compressed data of the operation result is written to block BLK1 of memory plane P1 (indicated by arrow A). Through this process, the results of the matrix operation performed when memory plane P0 is read are accumulated in block BLK1 of memory plane P1.

[0050] When data is accumulated in block BLK1 of memory plane P1, a matrix operation is performed when block BLK1 is read, and the data resulting from the operation is compressed and written to block BLK0 of memory plane P0 (indicated by arrow B). By alternately repeating read and write between memory planes P0 and P1, a matrix operation of data stored in multiple memory cells can be realized in the flash memory. In addition, since the matrix operation and the writing of the results can be performed in the internal processing of the flash memory without reading and outputting the operation processing from the flash memory to the outside, or inputting and writing the operation processing results from the outside, the efficiency of the matrix operation processing can be improved and the processing time can be shortened.

[0051] A flash memory having a matrix calculation function as in this embodiment can be applied to a neuromorphic device, similar to a crossbar array having a resistive memory.

[0052] An example of an autoencoder using a neural network is shown in Fig. 15. The autoencoder includes multiple encoder layers and multiple decoder layers between the input and output, and the weights or codes of the encoder and decoder are adjusted by learning. The flash memory 100 processes each of the encoder and decoder layers between the input and output.

[0053] Each memory cell of flash memory 100 stores weights or codes for AI learning, and sequentially repeats processes such as performing matrix operations on data read from the i-th layer, writing the results to the next i+1-th layer, performing matrix operations on data read from the i+1-th layer, and writing the results to the next i+2-th layer.

[0054] For example, nodes d1, d3, d3, d4, and d5 in the i-th layer correspond to each page when read, and node e1 in the i+1-th layer corresponds to data obtained by A / D converting the sum of currents id1_WL1, id2_WL2, id3_WL3, id4_WL4, and id5_WL5 flowing through the bit lines when nodes d1, d2, d3, d4, and d5 are read. Node e2 corresponds to data obtained by A / D converting the sum of currents id1_WL6, id2_WL7, id3_WL8, id4_WL9, and id5_WL10 flowing through the bit lines when nodes d1, d2, d3, d4, and d5 are read. It should be noted here that the pages of nodes d1 to d5 that are read when data is written to node e1 are different from the pages of nodes d1 to d5 that are read when data is written to node e2. The A / D converted data is transferred to the next hidden layer i+2 in the form of a WL voltage, and the readout is repeated for the number of nodes in the hidden layer.

[0055] In this way, the flash memory 100 holds learning data whose features have been compressed by matrix calculation processing, and an external controller can perform various processes (e.g., image processing, prediction processing, natural language processing, etc.) using the learning data in the flash memory 100.

[0056] As described above, according to this embodiment, by configuring a flash memory with a matrix calculation function, it becomes possible to use the flash memory as a neuromorphic chip with an AI learning function.

[0057] Next, another embodiment of the present invention will be described. In the matrix calculation in AI learning, the weighting coefficient or sign is increased or decreased in the positive or negative direction. That is, when the connection strength of the synapse is strengthened, the weighting coefficient increases in the positive direction, and when the connection strength is decreased, the weighting coefficient decreases in the negative direction.

[0058] In this embodiment, in order to realize the increase or decrease of the weight coefficient, half of the m-bit memory cells store positive data, and the remaining half store negative data. For example, the data of the memory cells connected to the even bit lines is assigned to a positive weight coefficient, and the data of the memory cells connected to the odd bit lines is assigned to a negative coefficient. When the coupling strength between synapses is strong, the data represented by the memory cells of the even bit lines becomes large, and when the coupling strength is low, the data represented by the memory cells of the odd bit lines becomes large.

[0059] 16 is a block diagram showing the configuration of the arithmetic processing unit of this embodiment. The arithmetic processing unit 190A of this embodiment includes a bit line current detection unit 200, a voltage holding unit 210, a positive adder unit 300, a negative adder unit 310, a difference calculation unit 320, and an A / D conversion unit 230. Of these, the bit line current detection unit 200, the voltage holding unit 210, and the A / D conversion unit 230 are configured in the same manner as in the previous embodiment, so a description thereof will be omitted.

[0060] The positive adder 300 adds the sum of currents flowing through bit lines assigned with positive weighting coefficients, for example, even bit lines, and the negative adder 310 adds the sum of currents flowing through bit lines assigned with negative weighting coefficients, for example, odd bit lines. The difference calculation unit 320 compares the addition result of the positive adder 300 with the addition result of the negative adder 310, calculates the difference, and provides this difference to the A / D conversion unit 230. The A / D conversion unit 230 converts the difference into multi-bit data.

[0061] It should be noted here that the difference calculation unit 320 identifies which of the positive adder unit 300 and the negative adder unit 310 is larger. When the addition result of the positive adder unit 300 is larger than the addition result of the negative adder unit 310, the controller 150 controls so that the A / D converted data is written to a memory cell to which a positive weighting coefficient is assigned, and when the addition result of the negative adder unit 310 is larger than the addition result of the positive adder unit 300, the controller 150 controls so that the A / D converted data is written to a memory cell to which a negative weighting coefficient is assigned.

[0062] In this manner, according to this embodiment, the difference between the sum of the currents flowing through the bit lines assigned a positive weighting coefficient and the sum of the currents flowing through the bit lines assigned a negative weighting coefficient is calculated, so that modulation by increasing or decreasing the weighting coefficient in AI learning can be easily performed.

[0063] In the above embodiment, a NAND type flash memory is exemplified, but the present invention may be applied to a NOR type flash memory. A NOR type flash memory does not have a circuit for sensing one page of data as in a NAND type flash memory, but it is possible to detect the currents flowing through a plurality of bit lines by sequentially switching the connection between a sense circuit having an arithmetic processing unit and the bit lines, for example.

[0064] Although a preferred embodiment of the present invention has been described in detail, the present invention is not limited to the specific embodiment, and various modifications and variations are possible within the scope of the gist of the present invention described in the claims. [Explanation of symbols]

[0065] 100: Flash memory 110: Memory cell array 120: Address buffer 130: Input / output circuit 140: ECC circuit 150: Controller 160: Word line selection circuit 170: Page buffer / sense circuit 180: Column selection circuit 190: Arithmetic processing unit

Claims

1. A computing method for a semiconductor device including a NOR type or NAND type memory cell array, comprising: A calculation method for calculating a sum of currents flowing in a column direction through bit lines when reading each row of the memory cell array.

2. The calculation method according to claim 1 , further comprising calculating a row-wise sum of totals of currents in the column directions of the plurality of bit lines.

3. 3. The method according to claim 2, further comprising the step of calculating a sum of currents in rows and columns corresponding to data stored in memory cells of a plurality of rows and a plurality of columns.

4. The method according to claim 1 , further comprising: A / D converting a sum of currents in a column direction or a sum of currents in a row and column direction to generate multi-bit data.

5. 5. The method according to claim 4, further comprising: writing said multiple bits of data into memory cells of said memory cell array.

6. the memory cell array includes first and second memory planes; 6. The method according to claim 5, further comprising the steps of: calculating a sum of currents flowing in a row and column direction through bit lines in reading from a first memory plane; and writing said multiple bits of data to a second memory plane.

7. 2. The method of claim 1, further comprising the steps of: calculating a sum of first currents in a column direction flowing through a first group of bit lines; and calculating a sum of second currents in a column direction flowing through a second group of bit lines; and calculating a difference between the sum of the first currents and the sum of the second currents.

8. 8. The method of claim 7, wherein the sum of the first currents represents a positive coefficient and the sum of the second currents represents a negative coefficient.

9. a NOR or NAND type memory cell array including a plurality of row lines, a plurality of bit lines, and a plurality of memory cells; reading means for reading the memory cell array; a write means for writing data to the memory cell array; a calculation means for calculating a sum of currents flowing through bit lines in a column direction when the read means reads out a plurality of rows; A semiconductor device comprising:

10. 10. The semiconductor device according to claim 9, wherein said calculation means further calculates a row-wise sum of totals of currents in the column direction of a plurality of bit lines.

11. 11. The semiconductor device according to claim 10, wherein said calculation means calculates a sum of currents in rows and columns corresponding to data stored in memory cells of a plurality of rows by a plurality of columns.

12. 10. The semiconductor device according to claim 9, wherein said calculation means includes A / D conversion means for A / D converting a sum of currents in a column direction or a sum of currents in a row and column direction to generate multi-bit data.

13. 13. The semiconductor device according to claim 12, wherein said writing means writes said multiple bits of data into memory cells of said memory cell array.

14. the memory cell array includes first and second memory planes; 14. The semiconductor device according to claim 13, wherein said calculation means calculates a sum of currents flowing in row and column directions in bit lines in reading from a first memory plane, and said writing means writes said multiple bits of data to a second memory plane.

15. 11. The semiconductor device according to claim 10, wherein the calculation means calculates a sum of first currents in a column direction flowing through a first group of bit lines and a sum of second currents in a column direction flowing through a second group of bit lines, and calculates a difference between the sum of the first currents and the sum of the second currents.

Citation Information

Patent Citations

  • Information processor

    JP1992067259A

  • Semiconductor integrated circuit

    JP2020035502A

  • Calculator and calculation method

    JP2022127409A

  • Semiconductor Devices

    JP7248842B1

  • Vector-matrix multiplication using non-volatile memory cells

    US10528643B1