Memory device for multiplication using memory cells with different bias levels based on bit validity

By integrating memory and inference calculations in the same integrated circuit, and using memory cell arrays to perform matrix-vector multiplication, the problems of memory bandwidth and power consumption in deep learning are solved, and the computing efficiency of edge AI is improved.

CN118629445APending Publication Date: 2024-09-10MICRON TECHNOLOGY INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410272058.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-01-25
Filing Date
2024-03-11
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

In the existing technology, memory bandwidth limitations and power consumption issues between deep learning computing units and memories, especially in energy-limited edge AI applications, lead to low data movement efficiency and affect computing performance.

Method used

Integrate memory and inference calculations in the same integrated circuit, use memory cell arrays to perform matrix-vector multiplication, simplify multiplication operations through parallelized memory access functions, parallelize accumulation functions, reduce the use of digital logic gates, and improve computing efficiency.

Benefits of technology

It improves the calculation efficiency of matrix-vector multiplication, reduces power consumption, enhances the processing capabilities of edge AI applications, and is suitable for inference calculations of image sensors and other sensor data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118629445A_ABST
    Figure CN118629445A_ABST
Patent Text Reader

Abstract

This disclosure relates to systems, methods, and apparatus related to memory devices that perform multiplication using logic states of memory cells. In one method, an array of memory cells has memory cells each programmed to store one bit of a multi-bit weight. A voltage driver applies different voltages to the memory cells during multiplication. The magnitude of the different voltage corresponds to the validity of the bits stored by the respective memory cells. One or more inputs are applied to the memory cells to multiply the inputs by the multi-bit weights. Output currents from the memory cells are summed on a common line. The sum of the output currents is used to provide at least one result from the multiplication.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Related Applications

[0002] This application claims priority to U.S. Provisional Patent Application Serial No. 63 / 489,400, filed on March 9, 2023, the entire disclosure of which is hereby incorporated by reference herein. Technical Field

[0003] At least some embodiments disclosed herein relate generally to memory devices and more particularly, but not limited to, to memory devices that perform multiplication using memory cells having different bias levels based on bit significance. Background Art

[0004] Image and other sensors can generate large amounts of data. It is inefficient to transfer certain types of data from sensors to general-purpose microprocessors (e.g., central processing units (CPUs)) for processing in some applications. For example, it is inefficient to transfer image data from image sensors to microprocessors for image segmentation, object recognition, feature extraction, etc.

[0005] Some image processing may include intensive computations involving multiplying and accumulating columns of elements or matrices. Some specialized circuits have been developed to accelerate multiplication and accumulation operations. For example, a multiplier-accumulator (MAC unit) may be implemented using a set of parallel computational logic circuits to achieve computational performance higher than that of a general-purpose microprocessor. Summary of the invention BRIEF DESCRIPTION OF THE DRAWINGS

[0006] Embodiments are illustrated by way of example and not limitation in the accompanying figures in which reference numerals indicate similar elements.

[0007] Figure 1 An integrated circuit device having an array of image sensing pixels, an array of memory cells, and circuitry for performing inference calculations according to one embodiment is shown.

[0008] Figure 2 A computation is shown in which a column of weight bits is multiplied by a column of input bits to provide an accumulated result according to one embodiment.

[0009] Figure 3 The computation of a column of multi-bit weights multiplied by a column of input bits to provide an accumulated result is shown according to one embodiment.

[0010] Figure 4 A computation is shown of multiplying a column of multi-bit weights by a column of multi-bit inputs using inputs at multiple time instances to provide an accumulated result according to one embodiment.

[0011] Figure 5A calculation is shown using pulse width modulation (PWM) of a column of multi-bit inputs to multiply the inputs by a column of multi-bit weights to provide an accumulated result, according to one embodiment.

[0012] Figure 6 A computing method in an integrated circuit device according to one embodiment is presented.

[0013] Figure 7 Exemplary current-voltage (IV) curves of a resistive memory cell according to one embodiment are shown.

[0014] Figure 8 Exemplary current-voltage (IV) curves are shown for a floating gate or charge trap memory cell according to one embodiment.

[0015] Fig. 9 A three-dimensional memory cell array having resistive random access memory (RRAM) cells is shown according to one embodiment.

[0016] Fig.10 A three dimensional memory cell array having floating gate or charge trap memory cells in a NAND configuration is shown according to one embodiment.

[0017] Fig.11 A three-dimensional memory cell array having floating gate memory cells in a NOR configuration is shown according to one embodiment.

[0018] Fig.12 A group of memory cells storing signed weights for multiplication is shown according to one embodiment.

[0019] Fig.13 An exemplary memory cell of a three-dimensional memory array formed above a semiconductor substrate is shown according to one embodiment.

[0020] Fig.14 A method for performing signed multiplication using weights stored in a group of memory cells is presented according to one embodiment.

[0021] Fig.15 A set of two memory cells for storing signed weights for multiplication is shown according to one embodiment.

[0022] Fig.16 Demonstrating a method for Fig.15 Voltage waveform of the memory cell configuration.

[0023] Fig.17 A method for performing signed multiplication using weights stored in groups of two memory cells each is shown according to one embodiment.

[0024] Fig.18A multiplication architecture is shown with two digitizers and using a set of four memory cells to store signed weights according to one embodiment.

[0025] Fig.19 A multiplication architecture is shown having analog circuitry for combining output currents from two common lines and using a set of four memory cells to store signed weights according to one embodiment.

[0026] Fig. 20 Demonstrating the use of a Fig.18 or Fig.19 Voltage waveform of the signed input of the memory cell configuration.

[0027] Fig.21 A method for performing signed multiplication using weights stored in groups of four memory cells each is shown according to one embodiment.

[0028] Fig. 22 A multiplication architecture is shown for summing the outputs from multiplications using a single line at two different times according to one embodiment.

[0029] Fig.23 A multiplication architecture is shown for summing the outputs from multiplications using two wires at the same time, according to one embodiment.

[0030] Figures 24 to 26 An exemplary reduction of a total count according to one embodiment is shown.

[0031] Fig. 27 A method for performing summation of outputs from signed multiplications performed by a group of memory cells is presented according to one embodiment.

[0032] Fig.28 An architecture for performing signed multi-bit by multi-bit multiplication using groups of memory cells to provide a signed result is shown according to one embodiment.

[0033] Fig.29 An architecture for performing signed multi-bit by multi-bit multiplication using serial multi-bit inputs is shown according to one embodiment.

[0034] Fig.30 A method for performing signed multi-bit by multi-bit multiplication in a memory cell array is presented according to one embodiment.

[0035] Fig.31 A memory device architecture for performing multiplication using memory cells with different thresholds based on bit significance is shown according to one embodiment.

[0036] Fig.32A NAND flash memory device for performing multiplication using memory cells with different thresholds is shown according to one embodiment.

[0037] Fig.33 A method for performing multiplication using a memory cell having an output current that varies based on the significance of a storage bit is presented according to one embodiment.

[0038] Fig.34 A NAND flash memory device for performing multiplication using memory cells with different bias levels based on bit significance is shown according to one embodiment.

[0039] Fig.35 An architecture with resistive random access memory (RRAM) or NOR memory cells arranged in a parallel configuration to perform multiplication is shown according to one embodiment.

[0040] Fig.36 A method for performing multiplication using memory cells with different bias levels based on bit significance is presented according to one embodiment.

[0041] Fig.37 A three-dimensional memory cell array having memory cells arranged in a parallel configuration with individual selectors is shown according to one embodiment. DETAILED DESCRIPTION

[0042] The following disclosure describes various embodiments of a memory device that performs multiplication using logic states of memory cells. The memory device may, for example, store data used by a host device such as a computing device of an autonomous vehicle or another computing device that accesses data stored in the memory device. In one example, the memory device is a solid-state drive installed in an electric vehicle.

[0043] Artificial intelligence (AI) acceleration applications are growing rapidly. Deep learning techniques have played a key role in this rise and have been successful in various applications such as image classification, object detection, speech recognition, natural language processing, recommendation systems, automatic generation, and robotics. Many domain-specific deep learning accelerators (DLAs) (such as GPUs, TPUs, and embedded NPUs) have been introduced to provide efficient implementations required for deep neural networks (DNNs) from the cloud to the edge. However, due to the frequent back and forth movement of data between computing units and memory in deep learning, limited memory bandwidth remains a key challenge, especially for energy-constrained systems and applications (such as edge AI).

[0044] Conventional Von-Neumann computer architectures have been developed with processor chips specialized for serial processing and DRAM optimized for high-density memory. The interface between these two devices is a major bottleneck, which imposes latency and bandwidth limitations and adds considerable power consumption overhead. As the demand for higher accuracy and higher speed in AI applications continues to grow, larger DNN models with massive weights and activations are being developed and implemented. The resulting bottlenecks on memory bandwidth and power consumption for data movement between chips are important technical issues.

[0045] To address these and other technical issues, a memory device integrates memory and processing. In one example, memory and inference computing processing are integrated into the same integrated circuit device. In some embodiments, the memory device is an integrated circuit device having an image sensing pixel array, a memory cell array, and one or more circuits that use the memory cell array to perform inference computing on image data from an image sensor. In some embodiments, the memory device includes other types of sensors (e.g., LIDAR, radar, sound) or is used with the other types of sensors.

[0046] Existing methods for matrix-vector multiplication use digital logic gates. Compared to the various embodiments described below, digital logic implementations are more complex, consume more silicon area, and dissipate more power. These embodiments effectively reduce multiplication to a memory access function that can be parallelized in an array. The accumulation function is implemented by wires connecting these memory elements, which can also be parallelized in an array. By combining these two features in an array, matrix-vector multiplication can be performed more efficiently than methods using digital logic gates.

[0047] In one embodiment, the image sensor is configured with analog capabilities to support inference computations, such as computations of artificial neural networks, by using matrix-vector multiplication. The image sensor may be implemented as an integrated circuit device having an image sensor chip and a memory chip. The memory chip may have a 3D memory array configured to support multiplication and accumulation operations. The integrated circuit device includes one or more logic circuits configured to process images from the image sensor chip and operate memory cells in the memory chip to perform multiplication and accumulation operations.

[0048] The memory chip may have multiple layers of memory cells. Each memory cell may be programmed to store bits of a binary representation of an integer weight. Each input line may be applied with a voltage according to the bits of the integer. A column of memory cells may be used to store bits of a weight matrix; and a set of input lines may be used to control a voltage driver to apply a read voltage to a row of memory cells according to the bits of an input vector.

[0049] The threshold voltage or state of the memory cell used for the multiplication and accumulation operation can be programmed so that the current through the memory cell subjected to a predetermined read voltage is a predetermined amount representing a 1 value stored in the memory cell or is negligible to represent a 0 value stored in the memory cell. When the predetermined read voltage is not applied, the current through the memory cell is negligible regardless of the value stored in the memory cell. Due to the configuration, the current through the memory cell corresponds to the result of a 1-bit weight (stored in the memory cell) multiplied by a 1-bit input (corresponding to the presence or absence of a predetermined read voltage driven by a voltage driver controlled by the 1-bit input).

[0050] The output current of the memory cell (representing the result of a column of 1-bit weights stored in the memory cell, respectively, multiplied by a column of 1-bit inputs) is connected to a common line for summing. The summed current in the common line is a multiple of a predetermined amount; and the multiple can be digitized and determined using an analog-to-digital converter or other digital converter. Such results of 1-bit and 1-bit multiplication and accumulation can be performed on different significant bits of the weights and different significant bits of the inputs. The results of different significant bits can be shifted to apply the weights of the corresponding significant bits for summing to obtain the results of multi-bit weight and multi-bit input multiplication and accumulation, as further discussed below.

[0051] Using the ability to perform multiplication and accumulation operations implemented via the memory cell array, the logic circuits can be configured to perform inference computations, such as computations of artificial neural networks.

[0052] Various embodiments of memory devices that perform multiplication using logic states of memory cells are described below. The memory device typically has memory cells configured in an array, where each memory cell is programmed to, for example, allow a certain amount of current to pass when a voltage in a predetermined voltage region is applied to represent a first logic state (e.g., a first value stored in the memory cell) or to allow a negligible amount of current to represent a second logic state (e.g., a second value stored in the memory cell).

[0053] The memory device performs calculations based on applying voltages digitally, in the form of whether to apply an input voltage to produce a current for summing on a line (e.g., a bit line of a memory array). The total current on the line will be a multiple of the amount of current allowed by the cells programmed with the first value. In one example, an analog-to-digital converter is used to convert the current into a digital result of the sum of bit-by-bit multiplications. Various implementations of performing bit-by-bit multiplications and extending these to multiplications involving multiple bits are described below.

[0054] The memory cells in the array may generally be of various types. Examples include NAND or NOR flash memory cells and phase change memory (PCM) cells. In one example, the PCM cells are chalcogenide memory cells. In one example, floating gate or charge trap memory devices in NAND and NOR memory configurations are used.

[0055] NAND flash memory cells and chalcogenide memory cells have different current characteristics near their threshold voltages. Chalcogenide memory cells have snapback behavior, and the cell's voltage-current (VI) curve is discontinuous across the threshold voltage. In contrast, NAND flash memory cells exhibit continuous behavior, but the cell's current typically increases rapidly near its threshold voltage region.

[0056] In various embodiments using chalcogenide memory cells, multiplication and other processing are performed by operating the chalcogenide memory cells in the subthreshold region. This will avoid any memory cell from exceeding threshold or snapping, which would normally prevent correct multiplication (e.g., due to undesirably large output currents associated with snapping).

[0057] In one embodiment, a memory device (e.g., an integrated circuit device) includes a memory cell array having memory cells. Each memory cell is programmable to store a respective weight for performing a multiplication. The integrated circuit device also includes a voltage driver configured to apply an input voltage to the memory cell for performing the multiplication. The input voltage represents an input multiplied by the respective weight of each memory cell, and the voltage is applied such that the operation of the memory cell remains in a subthreshold mode during the multiplication.

[0058] The integrated circuit device has a bit line (or other common line) coupled to the memory cell. The bit line is configured to sum the output current from each of the memory cells resulting from the applied input voltage. The integrated circuit device has a digital converter configured to generate a result of the multiplication based on the summed output current.

[0059] In one embodiment, the memory device implements unsigned 1-bit and 1-bit multiplication using chalcogenide or other types of memory cells (e.g., NAND cells). Each memory cell can be programmed to a "1 state" such that when a voltage V is applied across the memory cell (e.g., across two terminals of a resistive memory cell), a predetermined amount of current can pass through the memory cell. Alternatively, the memory cell can be programmed to a "0 state" such that when the same voltage V is applied, only a negligible amount of current can pass through the memory cell.

[0060] To avoid operability issues with snapback behavior, when using chalcogenide memory cells, it is desirable to apply voltage V only in the subthreshold region of the memory cell. In one example, the applied voltage is below but close to the threshold / snap-off voltage of each memory cell programmed to the "1 state". In general, memory cells can be operated in subthreshold mode of any type of cell (e.g., other phase change memory cells or NAND cells) as desired. However, not all embodiments require subthreshold mode operation.

[0061] Thus, a memory cell may be programmed to a "1-state" or a "0-state" to represent a storage weight of "1" or "0," respectively.

[0062] An input voltage of V may be used to represent an input of "1"; and an input voltage of 0 may be used to represent an input of "0." Alternatively, a voltage may be used to represent an input of "0" when another voltage is lower than V but causes only a negligible amount of current to pass through the memory cell (regardless of the programming state of the memory cell).

[0063] When a voltage configured to represent the above-mentioned 1 or 0 input is applied to a memory cell programmed to the "1 state" or "0 state" to represent the weight 1 or 0 discussed above, the amount of current passing through the memory cell is a predetermined amount (representing an output of "1") or a negligible amount (representing an output of "0"). In addition, the input, weight, and output relationship satisfies the multiplication of a 1-bit input and a 1-bit weight to produce a 1-bit output in all possible variations of the input and weight.

[0064] Thus, the memory cell is used to perform unsigned 1-bit and multi-bit multiplication by being programmed to store a 1-bit weight (e.g., in the manner discussed above), applying an input voltage to represent a 1-bit input (e.g., in the manner discussed above), and determining a 1-bit output based on whether the current sensed through the memory cell (the output current from the memory cell) is a predetermined amount.

[0065] The summation of the results represented by the output currents from the memory cells can be implemented by connecting the currents to a common line, such as a bit line. The summation of the results can be digitized to provide a digital output. In one example, an analog-to-digital converter is used to measure the sum as a multiple of a predetermined current amount and provide a digital output.

[0066] In one embodiment, the memory device implements unsigned 1-bit and multi-bit multiplication. The multi-bit weight may be implemented via a plurality of memory cells. Each of the memory cells is configured to store one of the bits of the multi-bit weight, as described above.

[0067] The voltage represented by the 1-bit input may be applied individually to multiple memory cells to obtain the result of an unsigned 1-bit by 1-bit multiplication, as described above.

[0068] Each memory cell has a position corresponding to its storage bit in the binary representation of the multi-bit weight. Its digitized output (e.g., the sum of the output currents from the memory cells on a common bit line) can be left-shifted according to its position in the binary representation to obtain a shifted result. For example, the digitized output of the memory cell storing the least significant bit of the multi-bit weight is shifted by 0 bits; the digitized output of the memory cell storing the second least significant bit of the multi-bit weight is shifted by 1 bit; the digitized output of the memory cell storing the third least significant bit of the multi-bit weight is shifted by 2 bits; and so on. The shifted results can be summed to obtain the result of multiplying the 1-bit input by the multi-bit weight stored in multiple memory cells.

[0069] The sum of the results represented by the output currents from groups of memory cells (each group representing a separate multi-bit weight) can be summed bit by bit for different bit positions in the multi-bit weight via currents connected in common lines. For example, the current from the memory cell storing the least significant bit is connected to the first common line to form a summed output of the result derived from the least significant bit; the current from the memory cell storing the second least significant bit is connected to the second common line to form a summed output of the result derived from the second least significant bit; the current from the memory cell storing the third least significant bit is connected to the third common line to form a summed output of the result derived from the third least significant bit; and so on. The summed output can be converted into digital form and then shifted for summing in digital form. Alternatively, the corresponding currents can be scaled before digitization.

[0070] As mentioned above, the memory cell may be operated in a subthreshold mode of any type of cell (eg, a chalcogenide or other phase change memory cell or a NAND cell) as desired. Not all embodiments require subthreshold mode operation.

[0071] In one embodiment, the memory device implements time-sliced ​​unsigned multi-bit and multi-bit multiplication. An input represented by a binary number having a predetermined number of bits (e.g., 4 bits) may be applied one bit at a time over the same predetermined number of clock cycles (e.g., applied at times T, T1, T2, etc., such as at Figure 4 Each cycle produces output as described above for unsigned 1-bit and multi-bit multiplications.

[0072] The result of an unsigned 1-bit by multi-bit multiplication (e.g., as discussed above) obtained within each clock cycle may be left shifted according to the position of the bits applied to the inputs in the clock cycle. For example, the result of the clock cycle to which the least significant bit of the input is applied is not shifted; the result for the second least significant bit is left shifted 1 bit; the result for the third least significant bit is left shifted 2 bits; etc. The shifted results from the clock cycles are summed in digital form.

[0073] As mentioned above, the memory cell may be operated in a subthreshold mode of any type of cell (eg, a chalcogenide or other phase change memory cell or a NAND cell) as desired. Not all embodiments require subthreshold mode operation.

[0074] In one embodiment, the memory device uses pulse width modulation (PWM) to perform unsigned multi-bit and multi-bit multiplication. An input voltage pulse is applied to a plurality of memory cells to generate a current output, as described above. The width of the voltage pulse (e.g., a duration such as 5 nanoseconds, 10 nanoseconds, or 15 nanoseconds) is proportional to the multi-bit input. In one embodiment, the input voltage pulse is a constant voltage.

[0075] The output current from each memory cell is integrated over time to obtain an input multiplied by a 1-bit weight stored in the corresponding memory cell. The result from each memory cell can be digitized as a multiple of a predetermined amount of current integrated over a time unit corresponding to the width of a voltage pulse of an input of "1". The digitized output is shifted for summing according to its position in the multi-bit weight. The current integration over time can be implemented by charging a capacitor or by other methods. In one embodiment, the current integration is performed using any of a variety of types of integrators.

[0076] As mentioned above, the memory cell may be operated in a subthreshold mode of any type of cell (eg, a chalcogenide or other phase change memory cell or a NAND cell) as desired. Not all embodiments require subthreshold mode operation.

[0077] Figure 1 An integrated circuit device 101 is shown having an image sensing pixel array 111, a memory cell array 113, and circuits for performing inference calculations according to one embodiment. Figure 1 In the embodiment, the integrated circuit device 101 has an integrated circuit die 109 including logic circuits 121 and 123 , an integrated circuit die 103 including an image sensing pixel array 111 , and an integrated circuit die 105 including a memory cell array 113 .

[0078] In one example, integrated circuit die 109 with logic circuits 121 and 123 is a logic chip; integrated circuit die 103 with image sensing pixel array 111 is an image sensor chip; and integrated circuit die 105 with memory cell array 113 is a memory chip.

[0079] exist Figure 1In the embodiment, the integrated circuit die 105 having the memory cell array 113 further includes a voltage driver 115 and a current to digital converter 117. The memory cell array 113 is connected so that the current generated by the memory cells in response to the voltage applied by the voltage driver 115 is summed in the array 113 of memory cell columns (e.g., as Figure 2 and Figure 3 and the summed current is digitized to produce the sum of the bitwise multiplication. The inference logic circuit 123 can be configured to instruct the voltage driver 115 to apply a read voltage according to a column input and perform shift and sum to produce a column or matrix weight multiplied by the input column and accumulated results.

[0080] The inference logic circuit 123 may be further configured to perform inference calculations based on weights stored in the memory cell array 113 (e.g., calculations of an artificial neural network) and inputs derived from image data generated by the image sensing pixel array 111. Optionally, the inference logic circuit 123 may include a programmable processor that can execute a set of instructions to control the inference calculations. Alternatively, the inference calculations are configured for a specific artificial neural network, certain aspects of which can be adjusted via weights stored in the memory cell array 113. Optionally, the inference logic circuit 123 is implemented via the core of an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or a programmable microprocessor.

[0081] In one embodiment, the inference logic circuit 123 includes a controller 124. In one example, the controller 124 manages communication with the host system via the interface 125. In one example, the controller 124 uses the memory cell array 113 to perform signed or unsigned multiplication. In one embodiment, the controller 124 selects either signed or unsigned multiplication to be performed based on the type of data used as input to the multiplication. In one example, the controller 124 selects signed multiplication in response to determining that the input for the multiplication is signed.

[0082] exist Figure 1 , the integrated circuit die 105 having the memory cell array 113 has a bottom surface 133; and the integrated circuit die 109 having the inference logic circuit 123 has a portion of the top surface 134. The two surfaces 133 and 134 can be connected via bonding to provide a portion of the interconnect 107 between the metal portions on the surfaces 133 and 134.

[0083] Similarly, the integrated circuit die 103 with the image sensing pixel array 111 has a bottom surface 131; and the integrated circuit die 109 with the inference logic circuit 123 has another portion of its top surface 132. The two surfaces 131 and 132 can be connected via bonding to provide a portion of the interconnect 107 between the metal portions on the surfaces 131 and 132.

[0084] Image sensing pixels in array 111 may include photosensitive elements configured to generate signals in response to the intensity of light received in the element. For example, image sensing pixels implemented using complementary metal oxide semiconductor (CMOS) technology or charge coupled device (CCD) technology may be used.

[0085] In some implementations, image processing logic circuitry 121 is configured to pre-process images from image sensing pixel array 111 to provide the processed images as input to inference computations controlled by inference logic circuitry 123 .

[0086] Optionally, the image processing logic circuit 121 may also use multiplication and accumulation functions provided via the memory cell array 113 .

[0087] In some implementations, interconnect 107 includes wires for writing image data from image sensing pixel array 111 to a portion of memory cell array 113 for further processing by image processing logic circuitry 121 or inference logic circuitry 123 or for retrieval via interface 125 .

[0088] The inference logic circuit 123 may buffer the result of the inference calculation in a portion of the memory cell array 113 .

[0089] The interface 125 of the integrated circuit device 101 may be configured to support the memory access protocol or the storage access protocol or any combination thereof. Thus, an external device (eg, a processor, a central processing unit) may send commands to the interface 125 to access the storage capacity provided by the memory cell array 113 .

[0090] For example, the interface 125 may be configured to support connections and communication protocols on a computer bus, such as a Peripheral Component Interconnect Express (PCIe) bus, a Serial Advanced Technology Attachment (SATA) bus, a Universal Serial Bus (USB) bus, a Compute Express link, etc. In some embodiments, the interface 125 may be configured to include an interface for a solid-state drive (SSD), such as a ball grid array (BGA) SSD. In some embodiments, the interface 125 is configured to include an interface for a memory module, such as a double data rate (DDR) memory module, a dual in-line memory module, etc. The interface 125 may be configured to support communication protocols, such as protocols according to the Non-Volatile Memory Express (NVMe), the Non-Volatile Memory Host Controller Interface Specification (NVMHCIS), etc.

[0091] From the perspective of devices communicating with the interface 125, the integrated circuit device 101 may be presented as a memory subsystem. Through the interface 125, an external device (e.g., a processor, a central processing unit) may access the storage capacity of the memory cell array 113. For example, the external device may store and update the weight matrix and instructions of the inference logic circuit 123, retrieve images generated by the image sensing pixel array 111 and processed by the image processing logic circuit 121, and retrieve the results of the inference calculations controlled by the inference logic circuit 123.

[0092] exist Figure 1 In the embodiment of the present invention, for example, the interface 125 is positioned at the bottom side of the integrated circuit device 101, while the image sensor chip is positioned at the top side of the integrated circuit 101 to receive incident light for generating an image.

[0093] Figure 1 The voltage driver 115 in the array 113 may be controlled to apply a voltage to program the threshold voltage of the memory cells in the array 113. The data stored in the memory cell may be represented by the level of the programmed threshold voltage of the memory cell.

[0094] A typical memory cell in the array 113 has a nonlinear current and voltage curve. When the threshold voltage of the memory cell is programmed to a first level to represent a storage value of 1, the memory cell allows a predetermined amount of current to pass when a predetermined read voltage higher than the first level is applied to the memory cell. When the predetermined read voltage is not applied (e.g., the applied voltage is 0), the memory cell allows a negligible amount of current to pass compared to the predetermined amount of current.

[0095] On the other hand, when the threshold voltage of the memory cell is programmed to a second level higher than the predetermined read voltage to represent a stored value of 0, the memory cell allows a negligible amount of current to pass, regardless of whether the predetermined read voltage is applied. Thus, when the weight bits are stored in the memory as discussed above and the input bits are used to control whether the predetermined read voltage is applied, the amount of current that passes through the memory cell as a multiple of the predetermined amount of current corresponds to the digital result of the stored weight bits multiplied by the input bits. The current representing the result of the 1-bit by 1-bit multiplication can be summed in analog form before being digitized for shifting and summing to perform multiplication and accumulation of multi-bit weights and multi-bit inputs, as discussed further below.

[0096] Figure 2 The calculation of a column of weight bits multiplied by a column of input bits to provide an accumulated result is shown according to one embodiment. Figure 2 , 227 (eg, in the memory cell array 113 of the integrated circuit device 101) may be programmed to have a threshold voltage at a level representing a weight of storing one bit per memory cell.

[0097] , 223 (eg, in the voltage driver 115 of the integrated circuit device 101 ) are configured to apply voltages 205 , 215 , . . . , 225 to the memory cells 207 , 217 , . . . , 227 , respectively, according to the input bits 201 , 211 , . . . , 221 they receive.

[0098] For example, when the input bit 201 has a value of 1, the voltage driver 203 applies a predetermined read voltage as the voltage 205, thereby causing the memory cell 207 to output a predetermined current amount as its output current 209 to represent a storage weight of 1 when the memory cell 207 has a threshold voltage lower than the predetermined read voltage programmed at a lower level, or to output a negligible current amount as its output current 209 to represent a storage weight of 0 when the memory cell 207 has a threshold voltage higher than the predetermined read voltage programmed at a higher level.

[0099] However, when the input bit 201 has a value of 0, the voltage driver 203 applies a lower level voltage (e.g., 0) below the threshold voltage as the voltage 205 (e.g., no predetermined read voltage is applied), thereby causing the memory cell 207 to output a negligible amount of current at its output current 209, regardless of the weight value stored in the memory cell 207. Therefore, the output current 209, which is a multiple of the predetermined amount of current, represents the result of multiplying the weight value bit stored in the memory cell 207 by the input bit 201.

[0100] Similarly, current 219 passing through memory cell 217 as a multiple of a predetermined current amount represents the result of multiplying the weight bits stored in memory cell 217 by input bit 211; and current 229 passing through memory cell 227 as a multiple of a predetermined current amount represents the result of multiplying the weight bits stored in memory cell 227 by input bit 221.

[0101] The output currents 209, 219, ..., 229 of the memory cells 207, 217, ..., 227 are connected to a common line 241 for summing. In one example, the common line 241 is a bit line. When summing the output currents, a constant voltage (eg, ground or -1V) is maintained on the bit line.

[0102] The digital converter 233 of the analog-to-digital converter 245 compares the total current 231 with a unit current 232 equal to a predetermined current amount to determine a digital result 237 of the sum of the columns of weight bits stored in the memory cells 207, 217, ..., 227 respectively multiplied by the columns of input bits 201, 211, ..., 221 and the multiplication results.

[0103] The sum of the negligible current amounts from the memory cells connected to line 241 is less than the unit current 232 (eg, a predetermined current amount). Therefore, the presence of the negligible current amounts from the memory cells does not alter the result 237 and is negligible in the operation of the analog-to-digital converter 245.

[0104] exist Figure 2 , voltages 205, 215, ..., 225 applied to memory cells 207, 217, ..., 227 represent digitized input bits 201, 211, ..., 221; memory cells 207, 217, ..., 227 are programmed to store digitized weight bits; and currents 209, 219, ..., 229 represent digitized results.

[0105] The result 237 is an integer not greater than the count of memory cells 207, 217, ..., 227 connected to line 241. The digitized form of the output current 209, 219, ..., 229 can improve the accuracy and reliability of calculations performed using the memory cells 207, 217, ..., 227.

[0106] Generally speaking, the weights involved in multiplication and accumulation operations may be more than one bit. Multiple columns of memory cells may be used to store the effective bits of the weights (e.g. Figure 3 ) to perform multiplication and accumulation operations.

[0107] Figure 2The circuit illustrated in can be viewed as a multiplier-accumulator unit configured to operate on a column of 1-bit weights and a column of 1-bit inputs. Multiple such circuits can be connected in parallel to implement a multiplier-accumulator unit to operate on a column of multi-bit weights and a column of 1-bit inputs, such as Figure 3 In the description.

[0108] Figure 2 The circuits described in can also be used to read data stored in memory cells 207, 217, ..., 227. For example, to read data or weights stored in memory cell 207, input bits 211, ..., 221 can be set to 0 to cause memory cells 217, ..., 227 to output a negligible amount of current into line 241 (e.g., as a bit line). Input bit 201 is set to 1 to cause voltage driver 203 to apply a predetermined read voltage. Thus, result 237 from digital converter 233 provides the data or weights stored in memory cell 207. Similarly, data or weights stored in memory cell 217 can be read by applying 1 as input bit 211 and applying 0 as the remaining input bits in the column; and data or weights stored in memory cell 227 can be read by applying 1 as input bit 221 and applying 0 as the other input bits in the column.

[0109] Generally speaking, Figure 2 The circuits described in 200 may be used to select any of the memory cells 207, 217, ..., 227 for reading or writing. A voltage driver (e.g., 203) may apply a programming voltage pulse (e.g., one or more pulses or other waveforms appropriate for a memory cell type) to adjust the threshold voltage of a corresponding memory cell (e.g., 207) to erase data, store data or weights, etc.

[0110] Figure 3 The calculation of a column of multi-bit weights multiplied by a column of input bits to provide an accumulated result is shown according to one embodiment. Figure 3 , the weight 250 in binary form has a most significant bit 257, a second most significant bit 258, ..., and a least significant bit 259. The significant bits 257, 258, ..., 259 may be stored in memory cells 207, 206, ..., 208 in a plurality of columns in the array 273, respectively. The significant bits 257, 258, ..., 259 of the weight 250 will be multiplied by the voltage driver 203 (e.g., as in Figure 2 ) An input bit 201 represented by a voltage 205 applied to a line 281 (eg, a word line).

[0111] Similarly, memory cells 217, 216, ..., 218 may be used to store data corresponding to data received by voltage driver 213 (e.g., as in Figure 2) applied to line 282 (e.g., word line) corresponding to the next weight value multiplied by the next input bit 211 represented by the voltage 215 applied to line 282 (e.g., word line); and memory cells 227, 226, ..., 228 can be used to store the corresponding effective bit of ...) Figure 2 ) The voltage 225 applied to the line 283 (eg, the word line) corresponds to the weight by which the input bit 221 is multiplied.

[0112] The most significant bit (e.g., 257) of the weight (e.g., 250) stored in the memory cell of the corresponding row in array 273 is multiplied by the input bits 201, 211, ..., 221 represented by voltages 205, 215, ..., 225 and then summed to a current 231 in line 241 and digitized using digitizer 233 (as in Figure 2 ) to produce result 237 corresponding to the most significant bit of the weight.

[0113] Similarly, the second most significant bit (e.g., 258) of the weight (e.g., 250) stored in the memory cell of the corresponding row in array 273 is multiplied by the input bits 201, 211, ..., 221 represented by voltages 205, 215, ..., 225 and then summed as the current in line 242 and digitized to produce a result 236 corresponding to the second most significant bit.

[0114] Similarly, the least significant bit (e.g., 259) of the weight (e.g., 250) stored in the memory cell of the corresponding row in array 273 is multiplied by the input bits 201, 211, ..., 221 represented by voltages 205, 215, ..., 225 and then summed as the current in line 243 and digitized to produce a result 238 corresponding to the least significant bit.

[0115] The most significant bit may be left shifted by 1 bit to have the same weight as the second significant bit, and the second significant bit may be further left shifted by 1 bit to have the same weight as the next significant bit. Therefore, the operation of left shift 247 by one bit may be applied to the result 237 generated by multiplication and summation of the most significant bit (e.g., 257) of the weight (e.g., 250); and the addition operation 246 may be applied to the result of the operation of left shift 247 and the result 236 generated by multiplication and summation of the second most significant bit (e.g., 258) of the weight (e.g., 250). The operation of left shift (e.g., 247, 249) may be used to apply the weights of the bits (e.g., 257, 258, ...) to sum using the addition (e.g., 246, ..., 248) operation to generate the result 251. Therefore, the result 251 is equal to the weight column in the memory cell array 273 multiplied by the column of input bits 201, 211, ..., 221 and the accumulated multiplication results.

[0116] In general, the inputs involved in the multiplication and accumulation operations may be more than one bit. For example, the input bit columns may be applied one column at a time to the weights stored in the memory cell array 273 to obtain the result of multiplying a column of weights by a column of inputs and accumulating the result, such as Figure 4 In the description.

[0117] Figure 3 The circuit described in can be used to read data stored in the memory cell array 273. For example, to read the data or weight 250 stored in the memory cells 207, 206, ..., 208, the input bits 211, ..., 221 can be set to 0 to cause the memory cells 217, 216, ..., 218, ..., 227, 226, ..., 228 to output a negligible amount of current into the lines 241, 242, ..., 243 (e.g., as bit lines). The input bit 201 is set to 1 to cause the voltage driver 203 to apply a predetermined read voltage as the voltage 205. Therefore, the results 237, 236, ..., 238 from the digital converter (e.g., 233) connected to the lines 241, 242, ..., 243 provide the bits 257, 258, ..., 259 of the data or weight 250 stored in the row of the memory cells 207, 206, ..., 208. Furthermore, a result 251 calculated according to the shift operations 247, 249, ... and the addition operations 246, ..., 248 provides a weight value 250 in a binary form.

[0118] Generally speaking, Figure 3 The circuits described in can be used to select any row of the memory cell array 273 for reading. Optionally, different columns of the memory cell array 273 can be driven by different voltage drivers. Thus, the memory cells in a row (e.g., 207, 206, ..., 208) can be programmed to write the data of the weight 250 (e.g., storage bits 257, 258, ..., 259) in parallel.

[0119] Figure 4 A calculation is shown for multiplying a column of multi-bit weights by a column of multi-bit inputs to provide an accumulated result using inputs at multiple time instants according to one embodiment. Figure 4 , the valid bits of the input (eg, 280) are applied to the multiplier-accumulator unit 270 at multiple times T, T1, . . . , T2.

[0120] For example, the multi-bit input 280 may have a most significant bit 201, a second most significant bit 202, ..., a least significant bit 204. At time T, the most significant bits 201, 211, ..., 221 of the input (e.g., 280) are applied to the multiplier-accumulator unit 270 to obtain a result 251 of multiplying the weight (e.g., 250) stored in the memory cell array 273 by the columns of bits 201, 211, ..., 221 and summing the multiplication results.

[0121] For example, the multiplier-accumulator unit 270 may Figure 3 The multiplier-accumulator unit 270 has a voltage driver 271 connected to apply voltages 205, 215, ..., 225 representing input bits 201, 211, ..., 221. The multiplier-accumulator unit 270 has a memory cell array 273 storing weight bits, as shown in Figure 3 The multiplier-accumulator unit 270 has a digital converter 275 for converting the currents on the lines 241, 242, ..., 243 of the memory cell columns in the array 273 to output the results 237, 236, ..., 238. The multiplier-accumulator unit 270 has a shifter 277 and an adder 279 connected to combine the column results 237, 236, ..., 238 to provide the result 251, as shown in Figure 3 middle.

[0122] Similarly, at time T1, the second most significant bits 202, 212, ..., 222 of the input (e.g., 280) are applied to the multiplier-accumulator unit 270 to obtain a result 253 of the sum of the weight (e.g., 250) stored in the memory cell array 273 multiplied by the vector of bits 202, 212, ..., 222 and the multiplication results.

[0123] Similarly, at time T2, the least significant bits 204, 214, ..., 224 of the input (e.g., 280) are applied to the multiplier-accumulator unit 270 to obtain a result 255 of the sum of the weight (e.g., 250) stored in the memory cell array 273 multiplied by the vector of bits 202, 212, ..., 222 and the multiplication results.

[0124] The operation of left shift 261 by one bit may be applied to the result 251 generated by multiplication and summation of the most significant bits 201, 211, ..., 221 of the input (e.g., 280); and the addition operation 262 may be applied to the result of the operation of left shift 261 and the result 253 generated by multiplication and summation of the second most significant bits 202, 212, ..., 222 of the input (e.g., 280). The left shift (e.g., 261, 263) operation may be used to apply the weights of the bits (e.g., 201, 202, ...) to be summed using the addition (e.g., 262, ..., 264) operation to generate the result 267. Therefore, the result 267 is equal to the weights (e.g., 250) in the memory cell array 273 multiplied by the columns of the input (e.g., 280) respectively and then summed.

[0125] A plurality of multiplier-accumulator units 270 may be connected in parallel to operate on a weight matrix multiplied by a column of multi-bit inputs at a series of times T, T1, ..., T2.

[0126] Figure 5 Calculation using pulse width modulation (PWM) of a column of multi-bit inputs to multiply a column of multi-bit weights 250 by the inputs to provide an accumulated result is shown according to one embodiment.

[0127] Memory cell array 273 includes various memory cells arranged in columns, as illustrated. Each memory cell is programmable to store a corresponding bit of one of the multi-bit weights 250. Each memory cell has a position in the array corresponding to the significance (e.g., MSB, LSB) of the corresponding bit it stores. For example, memory cell 207 is in the column of the array corresponding to the most significant bit 257, and memory cell 208 is in the column corresponding to the least significant bit 259, similar to as discussed above.

[0128] The voltage driver is configured to apply voltage pulses to the memory cell. The width of each pulse represents one of the multiple bit inputs (eg, the pulse has a duration equal to the binary value of each input). Each pulse is applied at a constant voltage for a time corresponding to the pulse width.

[0129] For example, a column of voltage drivers 203, 213, ..., 223 (e.g., as in Figure 2 ) Voltages 205, 215, ..., 225 may be applied to columns of memory cells 207, 217, ..., 227, respectively, according to the columns of multi-bit inputs. The voltages are in the form of voltage pulses each having a width representing a corresponding one of the multi-bit inputs. Voltages are also applied to other columns of memory cells, as illustrated.

[0130] Line 241 is coupled to a first column of memory cells that each store a bit of first significance, such as MSB 257. Line 241 is configured to collect output currents from each of these memory cells for accumulating a first charge. For example, the output currents from the column of memory cells 207, 217, ..., 227 are accumulated in analog form by integrator 507 coupled to line 241.

[0131] Line 242 similarly collects output currents from each of the second column of memory cells that each stores a bit of a second significance less than the first significance (eg, second MSB 258). Line 242 collects output currents from these cells for accumulating a second charge. Integrator 506 accumulates these output currents.

[0132] Line 243 is coupled to a third column of memory cells that each store a bit of a third significance less than the second significance (eg, LSB 259). Line 243 collects output currents from each of these memory cells for accumulating a third charge. Integrator 508 accumulates these output currents.

[0133] The logic circuit (not shown) is configured to output a final accumulated result determined based on the accumulated first, second and third charges. The logic circuit includes, for example, the shifter and adder (not shown) to perform shifting and adding of the intermediate results to provide the final accumulated result.

[0134] In one example, integrators 507, 506, 508 include digital converters that convert the accumulated first, second, and third charges into digital outputs, such as results 537, 536, 538. The digital outputs are shifted and added similarly to the above description based on the bit significance corresponding to each digital output. The result of the aforementioned shifting and adding is the final accumulated result from the multi-bit weight column multiplied by the multi-bit input column.

[0135] In one embodiment, the memory cell operates in a subthreshold mode. In one example, the memory cell is a chalcogenide or NAND or NOR flash memory cell. The applied voltage is controlled so that the memory cell remains in the subthreshold mode during the multiplication. It should be noted that the operation of a NAND or NOR memory cell in the subthreshold mode is characterized differently than a chalcogenide memory cell.

[0136] In one embodiment, each of the lines 241, 242, 243 is coupled to a respective capacitor to accumulate charge from the line.

[0137] In one embodiment, a memory device having NAND memory cells uses pulse width modulation (PWM) to perform unsigned multi-bit and multi-bit multiplication. An input voltage pulse (e.g., voltage 205, 215, 225) is applied to a plurality of memory cells (e.g., 207, 217, 227, 206, 216, 226, etc.) to generate an output current from each memory cell. The width of the voltage pulse (e.g., duration between 5 and 100 nanoseconds) is proportional to the corresponding multi-bit input. The input voltage pulse is a constant voltage (e.g., 2 to 4V across each memory cell).

[0138] The output current from each memory cell is integrated over time (e.g., by integrators 507, 506, 508) to obtain the input multiplied by the 1-bit weight stored in the corresponding memory cell. The result from each memory cell can be digitized as a multiple of a predetermined amount of current integrated over a time unit corresponding to the width of the voltage pulse of the input "1". The digitized output (e.g., results 537, 536, 538) is shifted according to its position in the multi-bit weight 250 (e.g., MSB 257, ..., LSB 259) for summing.

[0139] The current integration over time may be implemented by charging a capacitor (not shown) using the output current or using methods other than capacitors. In one embodiment, the current integration is performed using any of a variety of types of integrators. In one example, each integrator includes a capacitor for collecting charge from a common line (e.g., line 241) while a respective voltage pulse 205, 215, 225 is applied to a memory cell (e.g., 207, 217, 227) having an output connected to the common line.

[0140] Figures 2 to 5 The multiplier-accumulator unit (e.g., 270) described in Figure 1 In the integrated circuit device 101.

[0141] In one implementation, a memory chip (e.g., integrated circuit die 105) includes circuits for voltage drivers, digitizers, shifters, and adders for performing multiplication and accumulation operations. The memory chip may further include circuits configured to control the operation execution of the drivers, digitizers, shifters, and adders. Figures 2 to 5 The control logic of the operations in .

[0142] The inference logic circuit 123 can be configured to use the computing power of the memory chip (such as the integrated circuit die 105) to perform inference calculations of applications, such as inference calculations of artificial neural networks. The inference results can be stored in a portion of the memory cell array 113 for external devices to retrieve via the interface 125 of the integrated circuit device 101.

[0143] Optionally, the voltage driver, digital converter, shifter, adder, and at least a portion of the control logic may be configured in the integrated circuit die 109 of the logic chip.

[0144] Memory cells (e.g., memory cells of array 113) may include volatile memory or nonvolatile memory or both. Examples of nonvolatile memory include flash memory, memory cells formed based on NAND logic gates, NOR logic gates, phase change memory (PCM), magnetic memory (MRAM), resistance random access memory, cross-point storage, and memory devices. Cross-point memory devices may use transistor-free memory elements, each of which has memory cells and selectors stacked together in a row. The memory element columns are connected via two wire layers running in a vertical direction, wherein the wires of one layer run in one direction, in a layer positioned above the memory element column, and the wires of the other layer run in another direction and in a layer positioned below the memory element column. Each memory element may be individually selected at the intersection of one wire on each of the two layers. Cross-point memory devices are fast and nonvolatile and may be used as a unified memory pool for processing and storage. Other examples of nonvolatile memory include read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), and electronically erasable programmable read-only memory (EEPROM) memory, etc. Examples of volatile memory include dynamic random access memory (DRAM) and static random access memory (SRAM).

[0145] Integrated circuit die 105 and integrated circuit die 109 may include circuits for addressing memory cells in memory cell array 113, such as row decoders and column decoders for converting physical addresses into control signals to select a portion of memory cells for reading and writing. Thus, an external device may send commands to interface 125 to write a weight value (e.g., 250) into memory cell array 113 and read a result from memory cell array 113.

[0146] In some implementations, image processing logic 121 may also send commands to interface 125 to write the image to memory cell array 113 for processing.

[0147] Figure 6 A calculation method in an integrated circuit device according to one embodiment is shown. For example, Figure 6 The method can be used Figures 2 to 4 The multiplication and accumulation technique is Figure 1 is executed in the integrated circuit device 101.

[0148] Figure 6 The method may be performed by processing logic, which may include hardware (such as a processing device, a circuit system, a dedicated logic, a programmable logic, a microcode, hardware of a device, an integrated circuit, etc.), software (such as instructions running or executing on a processing device), or a combination thereof. In some embodiments, Figure 6 The method is at least partially performed by one or more processing devices (e.g. Figure 1 The controller 124 of the inference logic circuit 123 executes.

[0149] Although shown in a particular sequence or order, the order of the processes may be modified unless otherwise specified. Therefore, the illustrated embodiments should be understood as examples only, and the illustrated processes may be performed in different orders, and some processes may be performed in parallel. In addition, one or more processes may be omitted in various embodiments. Therefore, not every embodiment requires all processes. Other process flows are possible.

[0150] At block 601, each memory cell is programmed to store a weight bit for performing a multiplication. In one example, the memory cells of the memory cell array 113 are programmed. In one example, the memory cells 207, 206, 208 are programmed to store weight bits of different bit significance. The weight bits correspond to the multi-bit weight 250.

[0151] At block 603 , a voltage is applied to the memory cell. The voltage represents an input bit multiplied by a weight bit stored by the memory cell. In one example, a voltage driver applies the input voltage 205 , 215 , 225 .

[0152] At block 605, the output currents from the memory cells resulting from the applied voltages are summed. In one example, the output currents are collected and summed using line 241, as in Figure 3 middle.

[0153] At block 607, a digital result based on the summed output current is provided. In one example, the summed output current is used to generate Figure 3 The result is X 237.

[0154] In one embodiment, a device includes: a memory cell array (e.g., 113) having memory cells, each of which is programmable to store a corresponding weight for performing multiplication; a voltage driver (e.g., 115) configured to apply a voltage to the memory cells for performing multiplication, the voltage representing an input multiplied by the corresponding weight of each memory cell, wherein the voltage is applied so that the operation of the memory cells remains in a subthreshold mode during the multiplication; lines coupled to the memory cells, wherein the lines are configured to sum the output current from each of the memory cells; and a digitizer (e.g., current digitizer 117) configured to generate a result of the multiplication based on the summed output current.

[0155] In one embodiment, the lines are bit lines.

[0156] In one embodiment, the memory cell does not exceed the threshold (eg, does not snap) when operating in a subthreshold mode.

[0157] In one embodiment, each memory cell is configured to: output a predetermined amount of current in response to an applied voltage when the memory cell has a threshold voltage programmed to represent a 1 value; or output a negligible amount of current in response to an applied voltage when the memory cell has a threshold voltage programmed to represent a 0 value.

[0158] In one embodiment, the negligible current amount is less than 5% of the predetermined current amount.

[0159] In one embodiment, some of the memory cells have a first threshold voltage programmed to represent a value of 1, and the applied voltage is less than the first threshold voltage.

[0160] In one embodiment, the applied voltage is at least 0.5 volts less than the first threshold voltage.

[0161] In one embodiment, the device further includes an interface (eg, 125) operable to enable a host system to write data to and read data from the memory cell array.

[0162] In one embodiment, the memory cells include first and second memory cells; the corresponding weight stored by the first memory cell is the most significant bit (MSB) of the multi-bit weight; and the corresponding weight stored by the second memory cell is the least significant bit (LSB) of the multi-bit weight.

[0163] In one embodiment, the digitizer is configured in an analog-to-digital converter.

[0164] In one embodiment, each of the memory cells is a chalcogenide memory cell.

[0165] In one embodiment, a method includes: programming memory cells in a memory cell array, wherein each memory cell is programmed to store a corresponding weight bit for performing multiplication; applying voltages to the memory cells for performing multiplication, each corresponding voltage representing a corresponding input bit multiplied by a corresponding weight bit of each memory cell, wherein the voltages are limited so that operation of the memory cells remains in a subthreshold mode; summing output currents caused by applying the voltages to the memory cells; and providing a digital result based on the summed output currents.

[0166] In one embodiment, the corresponding input bits are a column of input bits; the corresponding weight bits are a column of weight bits that are multiplied by the column of input bits when performing the multiplication; the output currents from the memory cells are summed in the bit line; and the digital result is provided by digitizing the summed output current into a multiple of a predetermined current amount.

[0167] In one embodiment, each corresponding memory cell is programmed to have: a threshold voltage at a first level to represent a first value of 1; and a threshold voltage at a second level higher than the first level to represent a second value of 0; wherein the corresponding memory cell is configured to output a predetermined amount of current when storing the first value of 1 or to output a negligible amount of current when storing the second value of 0 when a predetermined read voltage between the first level and the second level is applied to the memory cell.

[0168] In one embodiment, when the corresponding input bit is 0, a voltage lower than a first level is applied to the corresponding memory cell; and when the corresponding input bit is 1, a predetermined read voltage is applied to the corresponding memory cell.

[0169] In one embodiment, an apparatus includes: a memory cell array including memory cells, wherein each memory cell is programmable to store a corresponding bit of a multi-bit weight value, and each memory cell has a position in the array corresponding to the significance (e.g., MSB, LSB) of the corresponding bit stored therein; a voltage driver configured to apply a corresponding voltage to the memory cell, wherein each corresponding voltage represents a 1-bit input, and wherein the voltage is applied so that the memory cell does not exceed a threshold value; a first line coupled to a first memory cell storing a corresponding bit of a first significance (e.g., MSB), wherein the first line is configured to sum a first output current from each of the first memory cells; a second line coupled to a second memory cell storing a corresponding bit of a second significance (e.g., LSB), wherein the second significance is less than the first significance, and the second line is configured to sum a second output current from each of the second memory cells; and a logic circuit configured to provide an accumulated result (e.g., Figure 3 The result is Y 251).

[0170] In one embodiment, the apparatus further comprises: at least one digital converter configured to provide a first result (e.g., result X 237) based on summing the first output currents and to provide a second result (e.g., result X2 238) based on summing the second output currents; at least one shifter configured to shift at least the first result (e.g., shift the MSB result left); and at least one adder configured to provide an accumulated result by adding at least the shifted first result to the second result.

[0171] In one embodiment, the first result is left shifted by 1 bit.

[0172] In one embodiment, the accumulated result is a result of multiplying a list of multi-bit weights by a list of input bits.

[0173] In one embodiment, the memory cell is a phase change memory cell.

[0174] In one embodiment, an apparatus includes: a memory cell array including memory cells, wherein each memory cell is programmable to store a corresponding bit of a multi-bit weight value, and each memory cell has a position in the array corresponding to the significance (e.g., MSB, LSB) of the corresponding bit stored therein; and a multiplier-accumulator unit configured to perform multi-bit weight value multiplication by multi-bit input and provide an accumulated result, wherein: the memory cell is maintained in a subthreshold mode during the multiplication (e.g., the cell does not exceed a threshold value); each bit of the multi-bit input is at a corresponding time (e.g., Figure 4 T, T1, T2 in (T, T1, T2) are applied to the multiplier-accumulator unit to obtain a corresponding result (e.g., result Y 251), where the corresponding result is based on summing the output currents from the memory cells; and the accumulated result (e.g., result 267) is based on the corresponding result obtained from the bits applying the multi-bit input.

[0175] In one embodiment, summing the output currents includes summing the currents on lines of a column of memory cells in the memory cell array to provide a column result of the application bit.

[0176] In one embodiment, a multiplier-accumulator unit (eg, 270) includes a shifter and adder configured to combine column results to provide a respective result for each applied bit.

[0177] In one embodiment, each respective result is left shifted according to the position of the applied bit of the multi-bit input to provide a shifted result; and the shifted results are added to provide an accumulated result.

[0178] In one embodiment, a device includes: a memory cell array (e.g., 273) including memory cells, wherein each memory cell is programmable to store a corresponding bit of a multi-bit weight (e.g., 250), and each memory cell has a position in the array corresponding to the significance (e.g., MSB, LSB) of the corresponding bit stored therein; a voltage driver configured to apply voltage pulses to the memory cells, wherein the corresponding width (e.g., 20 or 40 nanoseconds) of each pulse represents a multi-bit input; a first line (e.g., 241) coupled to a first memory cell storing a bit of a first significance (e.g., MSB), wherein the first line is configured to collect a first output current from each of the first memory cells for accumulating a first charge; a second line (e.g., 243) coupled to a second memory cell storing a bit of a second significance (e.g., LSB), wherein the second significance is less than the first significance, and the second line is configured to collect a second output current from each of the second memory cells for accumulating a second charge; and a logic circuit configured to output a result based on the accumulated first charge and the accumulated second charge.

[0179] In one embodiment, the memory cell remains in a subthreshold mode when a voltage pulse is applied.

[0180] In one embodiment, the apparatus further includes: a first capacitor coupled to the first line to accumulate the first charge; and a second capacitor coupled to the second line to accumulate the second charge.

[0181] In one embodiment, the apparatus further comprises at least one digital converter for providing a first result based on accumulating the first charge and providing a second result based on accumulating the second charge, wherein the result from the logic circuit is determined based at least on shifting the first result and adding the shifted first result to the second result.

[0182] In one embodiment, each voltage pulse has the same constant voltage.

[0183] In one embodiment, the apparatus further comprises at least one integrator (eg, integrators 507, 506, 508) for providing a first result based on accumulating the first charge and providing a second result based on accumulating the second charge, wherein the result from the logic circuit is based on the first and second results.

[0184] In one example, each respective memory cell (e.g., 207, 217, ..., or 227) in a column of memory cells 207, 217, ..., 227 can be programmed to have a threshold voltage at a first level to represent a first value of 1, and a threshold voltage at a second level higher than the first level to represent a second value of 0. When a predetermined read voltage between the first level and the second level is applied, the respective memory cell (e.g., 207, 217, ..., or 227) is configured to output a predetermined amount of current 232 when storing the first value of 1 or to output a negligible amount of current when storing the second value of 0. The resistance of the memory cell (e.g., 207, 217, ..., or 227) is non-linear over a voltage range including its threshold voltage.

[0185] When the corresponding input bit (e.g., 201, 211, ... or 221) corresponding to the corresponding memory cell (e.g., 207, 217, ... or 227) is 0, the voltage driver 203 connected to the corresponding memory cell (e.g., 207, 217, ... or 227) applies a voltage lower than the first level to the corresponding memory cell (e.g., 207, 217, ... or 227), resulting in a negligible amount of current (e.g., 209, 219, ... or 229) from the corresponding memory cell (e.g., 207, 217, ... or 227). When the corresponding input bit (e.g., 201, 211, ... or 221) corresponding to the corresponding memory cell (e.g., 207, 217, ... or 227) is 1, a predetermined read voltage between the first level and the second level is applied to the corresponding memory cell (e.g., 207, 217, ... or 227), thereby causing a predetermined current amount 232 from the corresponding memory cell (e.g., 207, 217, ... or 227) when the corresponding memory cell (e.g., 207, 217, ... or 227) stores a first value 1 or causing a negligible current amount when the corresponding memory cell (e.g., 207, 217, ... or 227) stores a second value 0.

[0186] In one example, the interface 125 is operable to enable the host system to write data into the memory cell array 113 and read data from the memory cell array 113. For example, the host system may send commands to the interface 125 to write a weight matrix of an artificial neural network into the memory cell array 113 and read the output of the artificial neural network, raw image data from the image sensing pixel array 111, or processed image data from the image processing logic circuit 121, or any combination thereof.

[0187] The reasoning logic circuit 123 may be programmable and include a programmable processor, an application specific integrated circuit (ASIC) or a field programmable gate array (FPGA) or any combination thereof. Instructions for implementing the calculation of the artificial neural network may also be written into the memory cell array 113 via the interface 125 for execution by the reasoning logic circuit 123.

[0188] Figure 7 An exemplary current-voltage (IV) curve 702 of a resistive memory cell according to one embodiment is shown. The memory cell is, for example, a resistive random access memory (RRAM) cell using a chalcogenide memory element. In one example, the memory cell is configured in Figure 1 In the memory cell array 113.

[0189] A memory cell is a two terminal element having a voltage Vcell applied across its terminals. When the above multiplication is performed, the memory cell operates in a subthreshold range 704 below a threshold point 705 of the memory cell. The subthreshold range 704 corresponds to an operational resistance state for the memory cell.

[0190] At threshold point 705, the memory cell transitions from a low conductance state to a significantly higher conductance, as illustrated in portion 706 of the IV curve. This transition is sometimes referred to as a snapback or a turnaround of the cell.

[0191] When performing multiplication, the memory cell remains in the subthreshold range 704 below its threshold voltage. Otherwise, the significantly higher current associated with portion 706 of the IV curve would interfere with the correct operation of the multiplication.

[0192] IV curves 708, 710 illustrate changes in the IV curve that may be introduced by programming a memory cell. It should be noted that not all RRAM memory cells will exhibit the snapback behavior described above.

[0193] Figure 8 An exemplary current-voltage (IV) curve 802 of a floating gate or charge trap memory cell is shown according to one embodiment. In one example, the memory cell is a NAND or NOR flash memory cell. In one example, the memory cell is configured in a memory cell array 113.

[0194] The memory cell is a three-terminal element. The IV curve 802 corresponds to the characteristics of the cell when a constant drain-source voltage Vds is applied across the current terminals of the memory cell. The gate voltage Vgs is applied to the gate of the memory cell. The memory cell generally operates within an operating range 806 including a subthreshold range 804. Portion 814 of the IV curve corresponds to operation within range 804.

[0195] The memory cell exhibits a threshold voltage 812. The gate voltage may be below and / or above the threshold voltage 812 when performing the multiplication described above.

[0196] IV curves 808, 810 illustrate how the position of the IV curve 802 can be changed by programming to shift the curve left or right. By programming the memory cell, the threshold voltage 812 can be moved to a lower or higher voltage to represent a different logic state.

[0197] In one example, the word line voltage is applied to the gate of the memory cell.In one example, the drain of the memory cell is coupled to a digit line, and the source of the memory cell is coupled to a source line (eg, an SRC line of a NAND flash memory device).

[0198] Fig. 9A three-dimensional memory cell array having resistive random access memory (RRAM) cells according to one embodiment is shown. The memory cell array can also be viewed as having a NOR configuration in which the memory cells are connected in parallel. Fig. 9 The memory cell array described in Figure 1 An example of a memory cell array 113.

[0199] The array includes memory cells arranged in various vertical columns, where each cell in the column is connected to a vertical bit line 902, 904. The array is positioned above a semiconductor substrate (not shown). The memory cells are also arranged in horizontal levels. For example, one of the levels includes memory cells 906, 907, 908, 909. The levels are stacked vertically. As an example, 7 levels or tiers of memory cells are in Fig. 9 In the description.

[0200] Each of the cells is connected to a horizontally extending word line. Each memory cell is biased by applying a voltage to one of the word lines and one of the bit lines connected to the cell.

[0201] When performing a multiplication, a memory cell in one of the levels is selected. For example, memory cells 906, 907, 908, 909 are selected by applying voltages to word lines 910, 911, 912, 913.

[0202] In one embodiment, word line portions 910, 912 are connected as a single word line. Similarly, word line portions 911, 913 are connected as a single word line.

[0203] Each bit line 902, 904 of the column is connected to a digit line 914, 916 using a select transistor 918, 920. When performing multiplication, the output currents from the selected memory cells of the level are accumulated on the digit lines 914, 916. In some embodiments, additional different select transistors (selectors) may be desired at each memory cell location. The selectors are connected in series with the corresponding memory cells. In some embodiments of the resistor array, multiple levels may be selected for calculation at the same time.

[0204] In one embodiment, each of the memory cells is programmed to store a weight bit for performing multiplication. For a selected level of memory cells to be used for multiplication, a voltage is applied to the word line of each cell so that each memory cell can contribute a certain level of output current, which depends on the programming state of the memory cell.

[0205] When performing multiplication, a voltage is applied to the memory cell, such as discussed above. The applied voltage represents the input bit multiplied by the weight bit stored by the memory cell. The voltage is applied to the gates of the select transistors 918, 920 using the select lines (SL-, SL+). The output currents from the memory cells are then summed on the digit lines 914, 916 and provide a digital result, such as discussed above.

[0206] Fig.10 A three dimensional memory cell array having floating gate or charge trap memory cells in a NAND configuration is shown according to one embodiment. Fig.10 The memory cell array illustrated in is an example of the memory cell array 113 .

[0207] The memory cells are arranged vertically in columns, with the memory cells in each column connected in series as strings 1002, 1004. The memory cells are also arranged in horizontal levels or tiers (e.g., 64 tiers). For example, memory cells 1006, 1007, 1008, 1009 are arranged in one of these tiers. Each string 1002, 1004 is connected to a common source (SRC) line (not shown) and a digit line 1016, 1018.

[0208] When performing multiplication, a memory cell in one of the levels is selected (e.g., memory cells 1006, 1007, 1008, 1009 are selected). The cells are selected by applying a read voltage to the gate of each cell. Other non-selected cells in the same string as the selected memory cell are biased by applying a bypass voltage to the gate of the non-selected cell.

[0209] Each of the memory cells is connected to a word line (not shown) for applying the above-mentioned read or bypass voltage. In one example, a common word line (not shown) is connected to the gates of the memory cells 1006, 1007, 1008, 1009. The common word line is biased by applying a read voltage.

[0210] The memory cells of each string 1002, 1004 are electrically coupled to digit lines 1016, 1018 through select transistors 1012, 1014. When configured in a NAND flash memory device, digit lines 1016, 1018 are sometimes referred to as bit lines.

[0211] In one example, one of the levels of the memory cell array is selected. Non-selected memory cells in other levels are disabled. The word line voltage is made high enough so that each non-selected memory cell is turned on, regardless of its programming state (thus, the state of the bypassed cells is ignored, as the cells will conduct current regardless of the logic state). The total resistance in each string is dominated by one selected memory cell providing the output current for accumulation.

[0212] In one embodiment, each of the memory cells is programmed to store a weight bit for performing multiplication. For a selected level of memory cells to be used for multiplication, a voltage is applied to the word line so that each memory cell can contribute a certain level of output current, which depends on the programming state of the memory cell.

[0213] When performing multiplication, a voltage is applied to the memory cell, such as discussed above. The applied voltage represents the input bit multiplied by the weight bit stored by the memory cell. The voltage is applied to the gates of the select transistors 1012, 1014 using a select line (SL). The output currents from the memory cells are then summed on digit lines 1016, 1018 and provide a digital result, such as discussed above.

[0214] In one embodiment, the gate of each memory cell 1006, 1007, 1008, 1009 is connected to a separate segment word line. In one embodiment, the gate of each memory cell is connected to a single conductive layer or sheet that serves as the word line for all selected cells.

[0215] Fig.11 A three-dimensional memory cell array having floating gate memory cells in a NOR configuration is shown according to one embodiment. The memory cells are connected in parallel. Fig.11 The memory cell array illustrated in is an example of the memory cell array 113 .

[0216] Similar to the above discussion, the memory cells are arranged in horizontal levels. One of the levels is selected for performing multiplication. For example, memory cells 1106, 1107, 1108, 1109 are selected by applying a gate voltage to each cell. The voltage is applied using word lines 1112, 1113, 1114, 1115.

[0217] In one embodiment, word lines 1112 and 1114 are connected as a single line. Word lines 1113 and 1115 are also connected as a single line.

[0218] The memory cells of the array are arranged in columns each having a vertical conductive line 1102, 1104. Each vertical conductive line is coupled to a digit line 1116, 1118 through a select transistor 1120, 1122.

[0219] In one embodiment, each of the memory cells is programmed to store a weight bit for performing multiplication. For the selected level of memory cells to be used for multiplication, a voltage is applied to the word line so that each memory cell can contribute a certain level of output current, which depends on the programming state of the memory cell.

[0220] When performing multiplication, a voltage is applied to the memory cell, such as discussed above. The applied voltage represents the input bit multiplied by the weight bit stored by the memory cell. The voltage is applied to the gates of the select transistors 1120, 1122 using a select line (SL). The output currents from the memory cells are then summed on the digit lines 1116, 1118 and provide a digital result, such as discussed above.

[0221] Fig.37 A three-dimensional memory cell array having memory cells arranged in a parallel configuration with individual selectors is shown according to one embodiment. Each memory cell has its own selector connected in series so that each memory cell can be individually selected as desired for a particular multiplication or other operation. For example, memory cells are connected in parallel, such as Fig.37 In the description. Fig.37 The memory cell array illustrated in is an example of the memory cell array 113 .

[0222] Similar to the above discussion, the memory cells are arranged in horizontal hierarchies. For example, one of the hierarchies is selected for performing multiplication. For example, memory cells 3730, 3731, 3732, 3733 are selected and a voltage is applied to each cell. In one embodiment, a voltage is applied across the memory cells using word lines 3712, 3713, 3714, 3715 by turning on or off individual select transistors 3706, 3707, 3708, 3709 of each cell.

[0223] In one embodiment, word lines 3712 and 3714 are connected as a single line. Word lines 3713 and 3715 are also connected as a single line.

[0224] The memory cells of the array are arranged in pillars (eg, columns or strings of chalcogenide memory cells) each having a vertical conductive line 3702, 3703, 3704, 3705 connected to the memory cells of the pillar. Each vertical conductive line is coupled to a digit line 3716, 3718 through a select transistor 3720, 3722.

[0225] In one embodiment, each of the memory cells is programmed to store a weight bit for performing multiplication. For the selected level of memory cells to be used for multiplication, a voltage is applied to the word line so that each memory cell can contribute a certain level of output current, which depends on the programming state of the memory cell.

[0226] In one embodiment, memory cells on multiple levels may be selected. For example, two or more of the memory cells connected to a common vertical conductive line 3702 may be selected for performing multiplication.

[0227] When performing multiplication, voltages are applied to the memory cells, such as discussed above, for example. The applied voltages represent the input bits multiplied by the weight bits stored by the memory cells. In one embodiment, voltages are applied to the gates of individual select transistors and each gate corresponds to the input of the corresponding memory cell. The output currents from the memory cells are then summed on the digit lines 3716, 3718 and provide a digital result, such as discussed above, for example.

[0228] The terminal of each memory cell (eg, 3740) not connected to its corresponding individual selector is connected to a bias source. In one example, the bias source applies a fixed voltage during multiplication.

[0229] In one embodiment, Fig.37 Each memory cell in the array is a resistive random access memory (RRAM) cell (eg, operating in the subthreshold range, as described above). In one example, the memory cell array can be viewed as having a NOR configuration in which the memory cells are connected in parallel.

[0230] In one example, the array includes memory cells arranged in various vertical pillars, where each cell in the pillar is connected to a vertical bit line (eg, 3702, 3704). The array is positioned above a semiconductor substrate (not shown).

[0231] Each of the cells is connected to a horizontally extending word line. Each memory cell is biased by applying a voltage to one of the word lines to turn on one of the individual selectors and bit lines connected to the cell.

[0232] When performing a multiplication, a voltage is applied to the memory cell, such as discussed above. In one embodiment, the applied voltage represents the input bit that is multiplied by the weight bit stored by the memory cell.

[0233] In one embodiment, the multiplication operation is performed by the controller in a NOR configuration for the memory cells (e.g., using Fig.11 ) is performed in a similar manner using Fig.37 Array execution.

[0234] In one embodiment, a device includes: a memory cell array having memory cells, each of which is programmable to store a corresponding weight for performing multiplication; a voltage driver configured to apply a voltage to the memory cells for performing multiplication, the voltage representing an input multiplied by the corresponding weight of each memory cell; at least one line coupled to the memory cells, wherein the line is configured to sum an output current from each of the memory cells; and a digital converter configured to generate a result of the multiplication based on the summed output current.

[0235] In one embodiment, each memory cell is programmable to change the conductance or resistance of the memory cell, and the magnitude of the output current from the memory cell corresponds to the conductance or resistance.

[0236] In one embodiment, the at least one line comprises a bit line.

[0237] In one embodiment, the memory cells are organized in horizontal levels of cells, the levels are stacked vertically above a semiconductor substrate, and a first memory cell in a first level is selected and coupled to a line for performing multiplication.

[0238] In one embodiment, the memory cell is a resistive random access memory (RRAM) cell with a local selector, an RRAM cell without a local selector, a NAND flash memory cell, or a NOR flash memory cell.

[0239] In one embodiment, memory cells can be programmed by changing the charge stored in a floating gate or charge well of each memory cell.

[0240] In one embodiment, the memory cells are programmable by changing the resistance of each memory cell.

[0241] In one embodiment, the memory cells are further organized in columns of memory cells, and respective memory cells in each column are connected by respective vertical bit lines.

[0242] In one embodiment, the corresponding vertical bit line is coupled to the digit line through a select transistor.

[0243] In one embodiment, the corresponding memory cells in each column are connected in series as a string of cells.

[0244] In one embodiment, corresponding memory cells in each column are connected in parallel.

[0245] In one embodiment, each memory cell has a floating gate, and the memory cells are arranged in a NOR configuration.

[0246] In one embodiment, each memory cell has a floating gate or a charge well, and the memory cells are arranged in a NAND configuration.

[0247] In one embodiment, the at least one line includes a horizontally extending digit line; the digit line is positioned above the semiconductor substrate; and the first memory cell is coupled to the digit line through a select transistor.

[0248] In one embodiment, each memory cell is connected to a horizontally extending word line, and the memory cells are selected for performing multiplication by applying a voltage to the word line.

[0249] In one embodiment, the memory cell array is a three-dimensional cross-point array; the memory cells are arranged in vertical pillars; at least one line extends horizontally; and at least one line is connected to at least a portion of the pillars.

[0250] In one embodiment, the memory cell does not snap back.

[0251] In one embodiment, the operation of the memory cell in the subthreshold mode includes operating the memory cell in a resistive state.

[0252] In one embodiment, each memory cell is configured to: output a predetermined amount of current in response to an applied voltage when the memory cell has a threshold voltage programmed to represent a value of 1; or output a negligible amount of current in response to an applied voltage when the memory cell has a threshold voltage programmed to represent a value of 0.

[0253] In one embodiment, the negligible current amount is less than 5% of the predetermined current amount.

[0254] In one embodiment, some of the memory cells have a first threshold voltage programmed to represent a value of 1, and the applied voltage is less than the first threshold voltage.

[0255] In one embodiment, the applied voltage is at least 0.5 volts less than the first threshold voltage.

[0256] In one embodiment, the apparatus further includes an interface operable to enable a host system to write data into and read data from the memory cell array.

[0257] In one embodiment, the memory cells include first and second memory cells; the corresponding weight stored by the first memory cell is the most significant bit (MSB) of the multi-bit weight; and the corresponding weight stored by the second memory cell is the least significant bit (LSB) of the multi-bit weight.

[0258] In one embodiment, the digitizer is configured in an analog-to-digital converter.

[0259] In one embodiment, each of the memory cells is a chalcogenide memory cell; and the voltage is applied to keep the memory cell operating in a subthreshold mode during multiplication.

[0260] In one embodiment, a method includes: programming memory cells in a memory cell array, wherein each memory cell is programmed to store a corresponding weight bit for performing multiplication; applying voltages to the memory cells for performing multiplication, each corresponding voltage representing a corresponding input bit multiplied by a corresponding weight bit of each memory cell, wherein the voltages are limited to keep the memory cells operating in a subthreshold mode; summing output currents caused by applying the voltages to the memory cells; and providing a digital result based on the summed output currents.

[0261] In one embodiment, the corresponding input bits are a column of input bits; the corresponding weight bits are a column of weight bits that are multiplied by the column of input bits when performing the multiplication; the output currents from the memory cells are summed in the bit line; and the digital result is provided by digitizing the summed output current into a multiple of a predetermined current amount.

[0262] In one embodiment, each corresponding memory cell is programmed to have: a threshold voltage at a first level to represent a first value of 1; and a threshold voltage at a second level higher than the first level to represent a second value of 0; wherein the corresponding memory cell is configured to output a predetermined amount of current when storing the first value of 1 or to output a negligible amount of current when storing the second value of 0 when a predetermined read voltage between the first level and the second level is applied to the memory cell.

[0263] In one embodiment, when the corresponding input bit is 0, a voltage lower than a first level is applied to the corresponding memory cell; and when the corresponding input bit is 1, a predetermined read voltage is applied to the corresponding memory cell.

[0264] Various embodiments related to a memory device for performing signed multiplication using logic states of memory cells are now described below. The generality of the description below is not limited to the various embodiments described above.

[0265] Various memory cell implementations can be used to perform signed multiplication. In one embodiment, signed multiplication is performed in a so-called four-quadrant system, where each of the inputs and weights to be multiplied can have a positive or negative sign. For example, some neural network models utilize matrix-vector multiplication where the weights of the model are signed. In one example, resistive random access memory (RRAM) cells are used. In one example, NAND or NOR flash memory cells are used.

[0266] In one embodiment, matrix-vector multiplication is performed using stored weights. The input signal is multiplied by the weights to provide a result. In one example, the weights are determined by training a neural network model. The model uses both positive and negative values ​​of the weights. In one example, the weights are stored in Figure 1In a memory cell of the memory cell array 113 of . In one example, the model is trained using image data, and the trained model provides an inference result based on input from the image sensor.

[0267] In one embodiment, the multiplier accumulator unit uses signed multiplication. The weight can be represented by a multi-bit value (e.g., 8 to 64 bits). The extra bit is used to represent the sign of the weight. For example, the system can use an 8-bit signed weight, where the value of the weight is represented by 7 bits, and the eighth bit is used to represent the sign. The extra bit can be used in a similar manner to the signed input.

[0268] In one embodiment, a signed 1-bit number (e.g., input and / or weight) has one of three possible values: -1, 0, 1. For example, a signed weight may be represented by a 2-bit number, where a 2-bit value of 01 represents a signed 1-bit value of -1; a 2-bit value of 00 represents a signed 1-bit value of 0; and a 2-bit value of 10 represents a signed 1-bit value of +1. The 2-bit value 11 is not used. In other examples, various combinations of 2 bits may represent different signed values, as desired for a given implementation.

[0269] In one example, a controller that controls multiplication manages 2-bit values ​​by keeping track of the meaning (e.g., sign or magnitude) represented by each bit. In one example, the controller is Figure 1 Part of the inference logic circuit 123.

[0270] A 1-bit by 1-bit multiplication of a 2-bit number representing a signed 1-bit input and a signed 1-bit weight can be configured to produce a signed 1-bit by 1-bit multiplication result. In one example, the result has been generated in response to a 1-bit multiplication of a 2-bit number represented by a signed 1-bit input and a signed 1-bit weight. Figure 1 In one example, the signed input used to generate the result is based on the request from the host system through the interface 125. Figure 1 The image sensing pixel array 111 collects data.

[0271] Fig.12 A group of memory cells storing signed weights for multiplication is shown according to one embodiment. In one example, the memory cells are arranged in a memory cell array 113 .

[0272] In one embodiment, group 1202 includes memory cells 1207, 1217 that together store two data bits representing a 1-bit signed weight value. For example, memory cell 1207 stores 1 and memory cell 1217 stores 0, which together represent a 1-bit signed weight value of + 1. In one example, memory cells 1207, 1217 can be programmed to store appropriate bit values, as discussed above.

[0273] A 1-bit signed weight is multiplied by a 1-bit signed input, which is represented by two input bits 1201, 1211. For example, input bit 1201 is 0 and input bit 1211 is 1, which together represent a 1-bit signed input of -1.

[0274] To perform the multiplication, voltage drivers 1203, 1213 apply voltages 1205, 1215 to memory cells 1207, 1217 in a manner corresponding to the values ​​of input bits 1201, 1211. In one example, voltage drivers 1203, 1213 apply voltages similarly as discussed above for voltage drivers 203, 213.

[0275] Currents 1209, 1219 are output from memory cells 1207, 1217 based on applied voltages 1205, 1215. The currents are summed on line 1241 to provide a summed current 1231. In one example, the currents are summed similarly as discussed above for line 241.

[0276] The result from the signed multiplication will be a signed result represented by two bits. Each of the bits is determined based on the current on the add bus 1241. Multiplications for other signed inputs provided to other groups of cells (not shown) can be performed similarly to group 1202. Line 1241 can be used to sum the output currents for these other multiplications.

[0277] In one embodiment, two bits of the signed result are determined based on summing the current at two times. At a first time, the summed current 1231 from the input bits 1201, 1211 multiplied by the stored weights of group 1202 is digitized by digitizer 1233 of analog-to-digital converter 1245. This provides the first bit of the result. In one example, analog-to-digital converter 1245 and digitizer 1233 are similar to analog-to-digital converter 245 and digitizer 233.

[0278] At the second time, the input bits 1201, 1211 are inverted into negative versions. For example, the input bits 1, 0 are inverted into negative versions 0, 1. The voltage corresponding to the negative version is applied to the memory cells 1207, 1217 by the voltage drivers 1203, 1213. At the second time, the currents 1209, 1219 are summed and digitized to provide a second bit of the result.

[0279] The first and second bits determined from the sum of the first and second times described above provide the result 1237. These two bits correspond to the 1-bit signed result 1237 of the multiplication.

[0280] In general, numerous memory cell groups 1227 may be configured in a memory cell array. The above group 1202 has two memory cells. In other embodiments, each group may include four memory cells. Voltage driver 1223 is used to apply voltage to the memory cells in group 1227. Currents 1229, 1247 are output from these memory cells and can be summed. In one embodiment, the current is summed on a single line 1241 at each time, similar to the above discussion. In one example, the same integrated circuit device may include two groups each having two memory cells and other groups each having four memory cells. Other combinations of different types of cell groups are possible.

[0281] In one embodiment, the currents are summed on more than one line, and each line is used to determine a different bit of the signed result 1237. For example, line 1241 is used to determine the first bit, and line 1243 is used to determine the second bit. In one example, each group contains four memory cells, and lines 1241, 1243 are used to sum the currents 1229, 1247 simultaneously. In other words, multiple times are not required to determine two bits of the result 1237.

[0282] In one embodiment, voltages 1205, 1215 are applied in a controllable manner to keep the memory cell in subthreshold mode. In one example, the memory cell is a chalcogenide cell that exhibits snapback behavior. The chalcogenide cell is kept in subthreshold mode to avoid any abrupt changes in the memory cell. Abrupt changes are undesirable because the resulting large cell current interferes with correct multiplication.

[0283] In one embodiment, memory cell 1207 is a NAND or NOR flash memory cell and can be operated above and / or below its threshold voltage during multiplication.

[0284] Fig.13 An exemplary memory cell 1306 of a memory array 1304 is shown formed over a semiconductor substrate 1302 according to one embodiment. In one example, the semiconductor substrate 1302 is Figure 1 In one example, the memory array 1304 is Figure 1 Memory cell array 113. In one example, memory cell 1306 is memory cell 1207, 1217.

[0285] Memory cell 1306 is one of many memory cells formed in a three-dimensional memory array. Various bit lines 1310 extend in a vertical direction over semiconductor substrate 1302. Various word lines 1308 extend in a horizontal direction over semiconductor substrate 1302. Various digit lines 1312 extend in a horizontal direction over semiconductor substrate 1302. Bit line 1310 is coupled to digit line 1312 through select transistor 1315, which is controlled by applying a voltage to the gate of select transistor 1315 using select line 1314.

[0286] In one embodiment, the memory cells in array 1304 are organized in horizontal layers of cells. The layers are stacked vertically above semiconductor substrate 1302. In one example, the memory cells are arranged in horizontal layers, such as Fig. 9 For example, one of the levels includes four memory cells 1306 (eg, 906, 907, 908, 909) used to store groups of signed weights, as discussed above.

[0287] The voltage driver 1320 is used to apply voltage to the memory cells of the memory cell array 1304 to perform multiplication. For example, the voltage driver 1320 biases the word line 1308 and the bit line 1310 to apply voltage across the memory cell 1306. For example, the bit line 1310 is biased by driving the voltage on the digit line 1312 and turning on the select transistor 1315 to connect the bit line 1310 to the digit line 1312. Examples of the voltage driver 1320 include voltage drivers 1203, 1213, 1223.

[0288] The digital converter 1340 generates a digital output (e.g., in the form of a digital output) based on the summed current from the memory array 1304. Fig.12 1237 in the form of bits of the result. An example of a digitizer 1340 includes a digitizer 1233. In one example, currents from various memory cells (all except cell 1306, which are not shown) are summed on a common digit line 1312. In an alternative embodiment, the currents may be summed by a common word line 1308.

[0289] Fig.14 A method for performing signed multiplication using weights stored in a group of memory cells is shown according to one embodiment. For example, Fig.14 The method can be used Fig.12 and / or Fig.13 The multiplication and accumulation explained in Figure 1 is executed in the integrated circuit device 101.

[0290] Fig.14The method may be performed by processing logic, which may include hardware (such as a processing device, a circuit system, a dedicated logic, a programmable logic, a microcode, hardware of a device, an integrated circuit, etc.), software (such as instructions running or executing on a processing device), or a combination thereof. In some embodiments, Fig.14 The method is at least partially performed by one or more processing devices (e.g. Figure 1 The controller of the inference logic circuit 123) executes.

[0291] Although shown in a particular sequence or order, the order of the processes may be modified unless otherwise specified. Therefore, the illustrated embodiments should be understood as examples only, and the illustrated processes may be performed in different orders, and some processes may be performed in parallel. In addition, one or more processes may be omitted in various embodiments. Therefore, not every embodiment requires all processes. Other process flows are possible.

[0292] At block 1401, a command is received from a host system. In one example, the command is Figure 1 The command is received by the interface 125. In one example, the command is a write command to store data in the memory cell array 113. In one example, the stored data is a signed weight obtained from training the neural network model.

[0293] At block 1403, groups of memory cells are programmed such that each group stores a signed weight value. In one example, the memory cells 1207, 1217 are programmed to store a 1-bit signed weight value.

[0294] At block 1405, voltages are applied to groups of memory cells. The voltages represent different signed inputs for each group. In one example, voltage drivers 1203, 1213 apply voltages to memory cells 1207, 1217 in a first group of the number of groups.

[0295] At block 1407, the output currents from the memory cells are summed. In one example, the output currents from the memory cells 1207, 1217 are summed on a bit line or digit line of a three-dimensional memory cell array.

[0296] At block 1409 , at least one multiplication result is generated based on the summed output current. In one example, the digitizer 1233 generates a result 1237 .

[0297] At block 1411 , a command to read the results is received from the host system. In one example, the command is a read command received via interface 125 .

[0298] At block 1413, the results are sent to the host system. In one example, the results 1237 are sent to the host system.

[0299] In one embodiment, a device includes: a semiconductor substrate (e.g., 1302); multiple groups (e.g., 1202, 1227) of memory cells, wherein each group of memory cells is programmable to store signed weights for performing multiplication, wherein the memory cells are organized in horizontal layers of cells, and wherein the layers are stacked vertically above the semiconductor substrate; a voltage driver (1223, 1320) configured to apply a voltage to the group of memory cells for performing multiplication, the voltage representing a signed input multiplied by the stored weights of each group; at least one line (e.g., 1241, 1243, 1312) coupled to the memory cells in each group, wherein the line is configured to sum output currents from the memory cells; and at least one digitizer (e.g., 1233, 1340) for each group, the digitizer configured to generate a result based on the summed output currents from the memory cells in the group.

[0300] In one embodiment, the voltage is applied such that the memory cell remains in a subthreshold mode during multiplication (eg, the memory cell operates in the subthreshold range 704).

[0301] In one embodiment, the memory cells of each group are configured such that the storage weights have values ​​of -1, 0, or +1.

[0302] In one embodiment, the voltage is applied so that the signed input has a value of -1, 0, or +1.

[0303] In one embodiment, the signed weight and the signed input (eg, ordered combinations of input bits 1201 , 1211 ) are each represented by a corresponding 2-bit number with possible values ​​of 01 , 00 , or 10 .

[0304] In one embodiment, each group represents a 1-bit signed weight; the voltage applied to each group represents a 1-bit signed input; and the result of the group represents a signed multiplication of the 1-bit signed weight by the 1-bit signed input.

[0305] In one embodiment, the result is a 2-bit number with value 01, 00, or 10.

[0306] In one embodiment, a first memory cell of the first group has a first threshold voltage programmed to represent a value of 1, and the voltage applied to the first memory cell is less than the first threshold voltage.

[0307] In one embodiment, the digitizer is configured in an analog-to-digital converter (eg, 1245).

[0308] In one embodiment, the memory cell is a resistive random access memory (RRAM) cell, a NAND flash memory cell, or a NOR flash memory cell.

[0309] In one embodiment, a device includes: a memory cell array (e.g., 113) having memory cell groups; an interface (e.g., 125) operable to enable a host system to write data to and read data from the memory cell array; and a controller configured to: program the memory cell groups to store signed weights in each group; apply voltages (e.g., 1205, 1215) to the memory cell groups, the voltages representing signed inputs multiplied by the signed weights; determine at least one digital result (e.g., 1237) based on summing output currents from memory cells in one or more groups; and send the digital result to the host system via the interface.

[0310] In one embodiment, each memory cell is configured to: output a predetermined amount of current in response to an applied voltage when the memory cell has a threshold voltage programmed to represent a 1 value; or output a negligible amount of current in response to an applied voltage when the memory cell has a threshold voltage programmed to represent a 0 value.

[0311] In one embodiment, the negligible current amount is less than 5% of the predetermined current amount.

[0312] In one embodiment, the voltage is limited so that the memory cell remains in subthreshold mode.

[0313] In one embodiment, each memory cell in a memory cell array can be programmed to have: a threshold voltage at a first level to represent a first value of 1; or a threshold voltage at a second level higher than the first level to represent a second value of 0; wherein the memory cell is configured to output a predetermined amount of current when storing a first value of 1 or to output a negligible amount of current when storing a second value of 0 when a predetermined read voltage between the first level and the second level is applied to the memory cell.

[0314] In one embodiment, when the signed input is 0, a voltage lower than the first level is applied to the corresponding memory cell group; and when the signed input is +1 or -1, a predetermined read voltage is applied to at least one first memory cell in the corresponding memory cell group and a voltage lower than the first level is applied to at least one second memory cell of the corresponding group.

[0315] In one embodiment, a method includes: receiving a command to write data from a host system; in response to receiving the command to write data, programming a group of memory cells (e.g., 1227) in a memory cell array, wherein each group of memory cells is programmable to store signed weights for matrix-vector multiplication; applying a voltage to the group of memory cells for performing multiplication, the voltage representing a signed input multiplied by the signed weights; summing output currents from the memory cells using at least one common line coupled to the memory cells in each group; generating at least one result of the multiplication using at least one digital converter based on the summed output currents from the memory cells; receiving a command to read the result from the host system; and in response to receiving the command to read the result, sending the result to the host system.

[0316] In one embodiment, the at least one common line is at least one digit line, and the system further includes: a bit line coupled to the memory cells in each group; and a select transistor configured to electrically connect the bit line of each group to the at least one digit line.

[0317] In one embodiment, the digitizer includes at least one integrator that accumulates the current on at least one common line of each group, and the digitizer provides the result as a binary number.

[0318] In one embodiment, the at least one common line is at least one bit line.

[0319] In one embodiment, a device includes: a memory cell array having groups of memory cells, wherein each group of memory cells is programmable to store signed weights for performing multiplication; a voltage driver configured to apply a voltage to the groups of memory cells for performing multiplication, the voltage representing a signed input multiplied by the stored weights of each group; at least one line coupled to the memory cells in each group, wherein the line is configured to sum output currents from the memory cells; and at least one digitizer for each group, the digitizer configured to generate a result based on the summed output currents from the memory cells in the group.

[0320] In one embodiment, voltages are applied such that the memory cell remains in a subthreshold mode during multiplication.

[0321] In one embodiment, the memory cell does not snap back when operating in subthreshold mode.

[0322] In one embodiment, each group includes two memory cells.

[0323] In one embodiment, each group includes four memory cells; the first pair of memory cells in the group stores a positive version of the signed weight (e.g., 01); and the second pair of memory cells in the group stores a negative version of the signed weight (e.g., 10, which is the bit-by-bit inversion of bits 0 and 1).

[0324] In one embodiment, the memory cells of each group are configured such that the storage weights have values ​​of -1, 0, or +1.

[0325] In one embodiment, the voltage is applied so that the signed input has a value of -1, 0, or +1.

[0326] In one embodiment, the signed weight and the signed input are each represented by a corresponding 2-bit number with possible values ​​of 01, 00, or 10.

[0327] In one embodiment, each group represents a 1-bit signed weight; the voltage applied to each group represents a 1-bit signed input; and the result of the group represents a signed multiplication of the 1-bit signed weight by the 1-bit signed input.

[0328] In one embodiment, the result is a 2-bit number with value 01, 00, or 10.

[0329] In one embodiment, the at least one line is at least one digit line, and the system further includes: a bit line coupled to the memory cells in each group; and a select transistor configured to electrically connect the bit line of each group to the at least one digit line.

[0330] In one embodiment, applying a voltage to the group of memory cells includes applying a voltage to a gate of a select transistor to induce a voltage change on a bit line.

[0331] In one embodiment, the digitizer of each group includes an integrator that accumulates the current on at least one line of the group, and the digitizer provides the result as a binary number.

[0332] In one embodiment, the at least one line is at least one bit line.

[0333] In one embodiment, each memory cell of the memory cell array is configured to: output a predetermined amount of current in response to an applied voltage when the memory cell has a threshold voltage programmed to represent a value of 1; or output a negligible amount of current in response to an applied voltage when the memory cell has a threshold voltage programmed to represent a value of 0.

[0334] In one embodiment, the negligible current amount is less than 5% of the predetermined current amount.

[0335] In one embodiment, a first memory cell of the first group has a first threshold voltage programmed to represent a value of 1, and the voltage applied to the first memory cell is less than the first threshold voltage.

[0336] In one embodiment, the apparatus further includes an interface operable to enable a host system to write data into and read data from the memory cell array.

[0337] In one embodiment, the digitizer is configured in an analog-to-digital converter.

[0338] In one embodiment, the memory cell is a phase change memory cell, a NAND flash memory cell, or a NOR flash memory cell.

[0339] In one embodiment, a device includes: a memory cell array having groups of memory cells; and a controller configured to: program the groups of memory cells to store signed weights in each group; apply a voltage to the groups of memory cells, the voltage representing a signed input multiplied by the signed weights; and determine at least one digital result based on summing output currents from the memory cells in one or more groups.

[0340] In one embodiment, the voltage is limited so that the operation of the memory cell remains in a subthreshold mode.

[0341] In one embodiment, each memory cell in a memory cell array can be programmed to have: a threshold voltage at a first level to represent a first value of 1; or a threshold voltage at a second level higher than the first level to represent a second value of 0; wherein the memory cell is configured to output a predetermined amount of current when storing a first value of 1 or to output a negligible amount of current when storing a second value of 0 when a predetermined read voltage between the first level and the second level is applied to the memory cell.

[0342] In one embodiment, when the signed input is 0, a voltage lower than the first level is applied to the corresponding memory cell group; and when the signed input is +1 or -1, a predetermined read voltage is applied to at least one first memory cell of the corresponding memory cell group and a voltage lower than the first level is applied to at least one second memory cell of the corresponding group.

[0343] In one embodiment, a method includes: programming a group of memory cells in a memory cell array, wherein each group of memory cells is programmable to store signed weights for matrix-vector multiplication; applying a voltage to the group of memory cells for performing the multiplication, the voltage representing a signed input multiplied by the signed weights (e.g., based on a voltage inputted by Figure 1The method comprises the steps of: providing an input of data collected by the image sensing pixel array 111 of the image sensing pixel array 111; summing the output currents from the memory cells using at least one common line coupled to the memory cells in each group; and generating at least one result of the multiplication using at least one digital converter (e.g., current digital converter 117) based on the summed output currents from the memory cells.

[0344] In one embodiment, voltages are applied such that the memory cell remains in a subthreshold mode during multiplication.

[0345] Various embodiments related to a memory device for performing signed multiplication using groups of two memory cells each are now described below. The generality of the description below is not limited to the various embodiments described above.

[0346] In one memory cell implementation, signed multiplication is performed on a memory cell array where each group has two memory cells (groups organized as memory cell pairs). In one example, resistive random access memory (RRAM) cells are used. In one example, NAND or NOR flash memory cells are used.

[0347] In one embodiment, a signed 1-bit number (e.g., input and / or weight) has one of three possible values: -1, 0, 1. For example, a signed weight may be represented by a 2-bit number, as described above. A signed weight may be represented by values ​​stored in a pair of memory cells. A one-bit value may be stored in the first cell of the pair, and a second-bit value in the second cell of the pair. Two-bit values ​​represent a 1-bit signed weight.

[0348] In one embodiment, a two-cell implementation is used for signed 1-bit by 1-bit multiplication. A bank of two memory cells is used to store two bits of a signed 1-bit weight in a two-bit representation.

[0349] The two input lines are used to apply two bits (two-bit representation) of a signed 1-bit input (sometimes also referred to herein as the "positive version") at a first moment (e.g., the first clock cycle T0) and then apply a negative version of the input at a second moment (e.g., the second clock cycle T1).

[0350] In one example, the input line provides Fig.12 The voltages 1205, 1215 of the input lines are shown in Figure 12. In one example, the input lines can be word lines, bit lines, or select gate lines (SL), depending on the type of memory cells and the specific group configuration (e.g., memory cells arranged in series for NAND flash versus memory cells arranged in parallel for RRAM or NOR).

[0351] The first memory cell multiplies the first input line via a 1-bit by 1-bit multiplication (e.g., similar to Figure 2The second memory cell multiplies the second input line via a 1-bit by 1-bit multiplication (e.g., similar to Figure 2 The output currents are summed on line 1241. In one example, line 1241.

[0352] The result (e.g., 0 or 1) at a first time instant on the line (e.g., a first clock cycle) is the same as the first bit of a signed 1-bit by 1-bit multiplication (represented in two bits). The result (e.g., 0 or 1) at a second time instant on the line (e.g., a second clock cycle) is the same as the second bit of a signed 1-bit by 1-bit multiplication (represented in two bits). In one example, these first and second bit results provide Fig.12 The 1-bit signed result is 1237.

[0353] In one embodiment, the 2 bits of the signed weight stored in the first and second memory cells (see "2-bit storage" in the table below) are as stated in the table below. The positive and negative versions of the signed input are as stated in the table below. For example, for a signed input of -1, the value 01 is input on the first clock cycle, and the value 10 is input on the second clock cycle (represented as 01, 10 in the table). The result of the multiplication is given at the intersection of the signed input and the signed weight. For example, a signed input of -1 multiplied by a signed weight of -1 provides a 2-bit result of 1, 0.

[0354]

[0355] In one example, a controller (e.g. Figure 1 124) causes the voltage driver to apply two input voltages corresponding to the signed input +1 (e.g., which represents 2 bits 10) at a first time to obtain a first bit result, and then apply two input voltages for the negative version of the input (e.g., which represents 2 bits 01) at a second time to obtain a second bit result. For example, for a storage weight of +1, the first bit result is 1 and the second bit result is 0 (e.g., see the result in the lower right corner of the table above).

[0356] In other embodiments, equivalent variations of the logic configuration of the table above may be used. For example, the order in which the positive and negative versions of the inputs are applied may be changed. The controller manages the appropriate corresponding logic interpretation and / or combination of the bit result polarity to provide the correct final signed result to produce as an output (e.g., to be sent to a host requesting the result).

[0357] Fig.15A set of two memory cells 1502, 1504 for storing signed weights for multiplication is shown according to one embodiment. The signed weights are represented by two bits. The first bit is stored in memory cell 1502 and the second bit is stored in memory cell 1504. In one example, the values ​​of the bits correspond to the table of signed inputs discussed above. In one example, memory cells 1502, 1504 are Fig.12 An instance of memory cells 1207, 1217.

[0358] Voltage is applied to memory cell 1502 using word line 1506 and bit line 1508. Voltage is applied to memory cell 1504 using word line 1506 and bit line 1509.

[0359] The bit line 1508 is connected to the digit line 1510 through the select transistor 1512. The bit line 1509 is connected to the digit line 1510 through the select transistor 1514. The select transistors 1512, 1514 are controlled by applying gate voltages using the select lines 1516, 1518.

[0360] When performing a multiplication, the signed input is represented by the voltage applied to the select lines 1516, 1518. The output currents from the memory cells 1502, 1504 are summed on the digit line 1510, eg, similar to that discussed above.

[0361] The digitizer 1520 generates a digital bit result 1522 based on the summed output current, for example similar to that discussed above. In one example, the digitizer 1520 is the digitizer 1233 .

[0362] The first bit result is generated by the digitizer 1520 at a first time (eg, T0), and the second bit result is generated by the digitizer 1520 at a second time (eg, T1). The first and second bits represent the signed result of the multiplication.

[0363] In one example, the memory cells 1502, 1504 are configured as one of many memory cell groups arranged in a three-dimensional memory cell array. In one example, the memory cell array is Fig. 9 Array described in .

[0364] In an alternative embodiment, memory cells 1502, 1504 are configured as one of many groups of memory cells arranged in a planar array. The planar array does not use select transistors. The output currents from the two memory cells are summed on the bit line. Two different word lines are used to select each memory cell. Signed input is applied to both word lines.

[0365] Fig.16 Demonstrating a method for Fig.151. Voltage waveforms of a memory cell configuration of FIG. 2. Waveforms of a bit line BL voltage and a word line WL voltage are illustrated. Time is represented on the horizontal axis. Positive and negative voltages are represented in the vertical direction above and below the horizontal axis.

[0366] Exemplary voltage patterns of waveforms are applied at times T0 and T1. The voltage patterns correspond to the values ​​of the signed inputs to the multiplication. The difference between the word line and bit line voltages is the voltage applied to each memory cell, as illustrated.

[0367] The voltages of graphs 1620 and 1622 correspond to a signed input of minus one (-1). The voltage of graph 1620 is applied to the first memory cell 1502. The voltage of graph 1622 is applied to the second memory cell 1504.

[0368] For example, word line waveform 1602 is fixed at a constant voltage at two times. Bit line voltage 1604 corresponds to a bit value of 1. Bit line voltage 1606 corresponds to a bit value of 1. Thus, at time T0, input bits 1, 0 are applied, and at time T1, input bits 0, 1 are applied.

[0369] The letters "P" and "N" at the bottom of the figure represent the positive and negative versions of the signed input. However, the illustrated positive / negative polarity is arbitrary and may be changed in other implementations.

[0370] The voltages of graphs 1624, 1626 correspond to a signed input of 0. In this case, the word line voltage is fixed and the bit line voltage is zero.

[0371] The voltages of graphs 1628, 1630 correspond to a signed input of positive one (+1). Bit line voltage 1610 corresponds to a bit value of 1. Bit line voltage 1608 corresponds to a bit value of 1.

[0372] In one example, the voltage patterns selected for these waveforms are managed by the controller 124. In one example, the voltage patterns are applied by voltage drivers 1203, 1213.

[0373] In one embodiment, Fig.15 The names of Input+ and Input- in refer to the input polarity representation. In a four-quadrant cell, positive and negative inputs can be represented in parallel by applying the magnitude of the input value to the Input+ or Input- lines. The sign of the input is represented by which of these input lines is active and the other is inactive (e.g., no voltage pulse is applied to the memory cell). Other representations are possible.

[0374] In one example, the times T0 and T1 applied for positive or negative representation are arbitrary. The polarity is determined by how the digitizer, analog / digital converter, and / or controller combines the two bit results.

[0375] In one example, the positive and negative polarity of the digital line (eg Fig.10 The DL+ and DL- of 100 are arbitrary and handled by the controller 124. In one example, the digit lines may be considered to be first and second digit lines DL. One digit line or the other captures the negative or positive weights that are ultimately combined to produce a signed output.

[0376] Fig.17 A method for performing signed multiplication using weights stored in groups of two memory cells each is shown according to one embodiment. For example, Fig.17 The method can be used Figures 12 to 16 The multiplication and accumulation explained in Figure 1 is executed in the integrated circuit device 101.

[0377] Fig.17 The method may be performed by processing logic, which may include hardware (such as a processing device, a circuit system, a dedicated logic, a programmable logic, a microcode, hardware of a device, an integrated circuit, etc.), software (such as instructions running or executing on a processing device), or a combination thereof. In some embodiments, Fig.17 The method is at least partially performed by one or more processing devices (e.g. Figure 1 Controller 124) executes.

[0378] Although shown in a particular sequence or order, the order of the processes may be modified unless otherwise specified. Therefore, the illustrated embodiments should be understood as examples only, and the illustrated processes may be performed in different orders, and some processes may be performed in parallel. In addition, one or more processes may be omitted in various embodiments. Therefore, not all processes are required in every embodiment. Other process flows are possible.

[0379] At block 1701, a group of memory cells is programmed to store signed weights. In one example, the group includes memory cells 1502, 1504.

[0380] At block 1703, voltages are applied to the first and second cells in each group at first and second times. In one example, voltages are applied to the select lines 1516, 1518 at times T0 and T1.

[0381] At block 1705 , the output currents from the first and second cells are summed on a common line of each group during each of the first and second times. In one example, the output currents are summed on digit line 1510 .

[0382] At block 1707, a first digital result is generated based on summing the output currents during the first time instant. In one example, the digitizer 1520 generates a first bit at time T0.

[0383] At block 1709, a second digital result is generated based on summing the output current during the second time instant. In one example, the digitizer 1520 generates a second bit at time T1.

[0384] At block 1711, the first and second digital results are combined to provide a signed result. In one example, the first and second bits produced by the digitizer 1520 are combined to provide a signed result.

[0385] In one embodiment, a system includes: a first integrated circuit (IC) die (eg, Figure 1 103), which has a sensor (e.g. Figure 1 an image sensing pixel array 111 of the present invention; a second integrated circuit (IC) die (e.g., 105) comprising an array of memory cells (e.g., 113) having groups of memory cells, wherein each group is configured to store signed weights; an interconnect (e.g., 107) connecting the first and second IC dies; a voltage driver (e.g., 115) configured to apply voltages to first and second cells in each group at first and second times, wherein the voltages are based on data from a sensor and correspond to signed inputs multiplied by stored weights in each group; an interface (e.g., 125) configured to communicate with a host; and a controller configured to: program each group to store signed weights; sum output currents from the first and second cells on a common line of each group during each of the first and second times; generate a first digital result based on summing the output currents during the first time; generate a second digital result based on summing the output currents during the second time; combine the first and second digital results to provide a signed result (e.g., result 1237); and send the signed result to the host via the interface.

[0386] In one embodiment, each of the memory cells in the memory cell array is a NOR flash memory cell.

[0387] In one embodiment, each of the memory cells in the memory cell array is a chalcogenide memory cell.

[0388] In one embodiment, the signed weight and the signed input are each represented by a corresponding 2-bit number with possible values ​​of 01, 00, or 10.

[0389] In one embodiment, the voltage applied to each group (eg, 1205, 1215) represents a 1-bit signed input; and applying the voltage includes at a first moment (eg, Fig.16 The first and second bits of the signed input are applied at time T0 and at a second time (e.g. Fig.16 At time T1) the negative versions of the first and second bits of the signed input are applied.

[0390] In one embodiment, the system further includes first and second input lines (e.g., select lines 1516, 1518) coupled to the voltage driver and used to apply voltages, wherein: the first input line is coupled to the first cell (e.g., 1502) and used to apply a voltage corresponding to the first bit; and the second input line is coupled to the second cell (e.g., 1504) and used to apply a voltage corresponding to the second bit.

[0391] In one embodiment, the first and second input lines are word lines, and the lines coupled to the first and second cells are bit lines.

[0392] In one embodiment, a device includes: a memory cell array having groups of memory cells, wherein each group includes a first cell (e.g., 1207) and a second cell (e.g., 1217), and each group is programmable to store a signed weight for performing multiplication; a voltage driver configured to apply a voltage to the first and second cells in each group at a first and second time, the voltage corresponding to a signed input multiplied by the stored weight in each group, wherein at the first time (e.g., Fig.16 The voltage applied at time T0 represents the positive version of the signed input, and at a second time (e.g. Fig.16 A voltage applied at time T1) represents a negative version of a signed input; a line coupled to the first and second cells in each group, wherein the line is configured to sum the output currents from the first and second cells at each of the first and second moments; and a digital converter (e.g., 1520) of each group, the digital converter being configured to provide a first result based on summing the output currents at the first moment and to provide a second result based on summing the output currents at the second moment, wherein a combination of the first and second results is a signed result.

[0393] In one embodiment, voltages are applied such that operation of the first and second cells in each group remains in a subthreshold mode during multiplication.

[0394] In one embodiment, the signed result has a first and a second bit; the first result is the first bit of the signed result; and the second result is the second bit of the signed result.

[0395] In one embodiment, the line is a digit line (e.g., 1510), and the device further includes: a bit line (e.g., 1508, 1509) coupled to the first and second cells in each group; and a select transistor (e.g., 1512, 1514) configured to electrically connect the bit line of each group to the digit line.

[0396] In one embodiment, applying a voltage to the first and second cells includes applying a voltage to a gate of a select transistor to induce a voltage change on a bit line.

[0397] In one embodiment, the first and second cells in each group are accessed using a common word line.

[0398] In one embodiment, the word line is maintained at a constant voltage during each of the first and second times; and the voltage driver is further configured to apply the voltage by changing the voltage of at least one bit line connected to the first and second cells in each group.

[0399] In one embodiment, a device includes: multiple groups of NAND flash memory cells, each group including a first cell and a second cell; and a controller (e.g., 124) configured to: program the first and second cells of each group to store corresponding signed weights, wherein the programming includes biasing the gates of the first and second cells; apply voltages to the groups of memory cells at first and second times, wherein for each group, the voltages represent corresponding signed inputs multiplied by the signed weights stored in the group; and determine a corresponding signed result for each group based on summing the output currents from the first and second cells at the first and second times.

[0400] In one embodiment, when performing multiplication, the first and second cells are selected by applying respective read voltages to the gates of the first and second cells.

[0401] In one embodiment, non-selected cells in the same respective string having the first and second cells are biased by applying a bypass voltage to the gates of the non-selected cells.

[0402] In one embodiment, each of the NAND flash memory cells is connected to a respective word line that is used to apply a read or bypass voltage when performing multiplication.

[0403] In one embodiment, the controller is further configured to receive first data associated with the artificial neural network from a host system through the interface; and the signed weights stored in the memory cell group are based on the first data.

[0404] In one embodiment, the apparatus further includes a bit line or a word line coupled to the group of memory cells, wherein the voltage is applied to the bit line or the word line.

[0405] In one embodiment, a device includes: a memory cell array having groups of memory cells, each group including a first cell and a second cell, and each group is programmable to store signed weights for performing multiplication; a voltage driver configured to apply a voltage to the first and second cells in each group at first and second times, the voltage corresponding to a signed input multiplied by the stored weights in each group; a line coupled to the first and second cells in each group, wherein the line is configured to sum output currents from the first and second cells at each of the first and second times; and a digitizer for each group, the digitizer configured to provide a first result based on summing the output currents at the first time and to provide a second result based on summing the output currents at the second time, wherein a combination of the first and second results is a signed result.

[0406] In one embodiment, voltages are applied such that operation of the first and second cells in each group remains in a subthreshold mode during multiplication.

[0407] In one embodiment, the voltage applied at a first time represents a positive version of the signed input; and the voltage applied at a second time represents a negative version of the signed input.

[0408] In one embodiment, the signed result has a first and a second bit; the first result is the first bit of the signed result; and the second result is the second bit of the signed result.

[0409] In one embodiment, the line is a digit line, and the device further includes: a bit line coupled to the first and second cells in each group; and a select transistor configured to electrically connect the bit line of each group to the digit line.

[0410] In one embodiment, applying a voltage to the first and second cells includes applying a voltage to a gate of a select transistor to induce a voltage change on a bit line.

[0411] In one embodiment, the first and second cells in each group are accessed using a common word line.

[0412] In one embodiment, the word line is held at a constant voltage (eg, Fig.16 and the voltage driver is further configured to apply a voltage (e.g., Fig.16 1604, 1606 in FIG.

[0413] In one embodiment, the lines are bit lines.

[0414] In one embodiment, the voltage applied to each group represents a 1-bit signed input; and applying the voltage includes applying the first and second bits of the signed input at a first time and applying negative versions of the first and second bits of the signed input at a second time.

[0415] In one embodiment, the device further includes first and second input lines coupled to the voltage driver and used to apply voltages, wherein: the first input line is coupled to the first cell and used to apply a voltage corresponding to the first bit; and the second input line is coupled to the second cell and used to apply a voltage corresponding to the second bit.

[0416] In one embodiment, the first and second input lines are word lines, and the lines coupled to the first and second cells are bit lines.

[0417] In one embodiment, each of the memory cells in the memory cell array is a NAND or NOR flash memory cell.

[0418] In one embodiment, each of the memory cells in the memory cell array is a chalcogenide memory cell.

[0419] In one embodiment, the signed weight and the signed input are each represented by a corresponding 2-bit number with possible values ​​of 01, 00, or 10.

[0420] In one embodiment, a device includes: a memory cell array having groups of memory cells, each group including a first cell and a second cell; and a controller configured to: program the first and second cells of each group to store corresponding signed weights; apply voltages to the groups of memory cells at first and second times, wherein for each group, the voltages represent corresponding signed inputs multiplied by the signed weights stored in the group; and determine corresponding signed results for each group based on summing output currents from the first and second cells at the first and second times.

[0421] In one embodiment, the apparatus further comprises a digitizer coupled to each group, wherein the digitizer is configured to produce a signed result.

[0422] In one embodiment, the output currents are summed on the respective common lines (eg, 1510, 1241, 1243) of each group that are coupled to the first and second cells of the group.

[0423] In one embodiment, the common line is a bit line or a digit line.

[0424] In one embodiment, the apparatus further includes an interface operable to enable a host system to write data into and read data from the memory cell array.

[0425] In one embodiment, the controller is further configured to receive first data associated with the artificial neural network from a host system through the interface; and the signed weights stored in the memory cell group are based on the first data.

[0426] In one embodiment, the apparatus further includes a bit line or a word line coupled to the group of memory cells, wherein the voltage is applied to the bit line or the word line.

[0427] In one embodiment, a method includes programming groups of memory cells to store signed weights; applying voltages to first and second cells in each group at first and second times, the voltages corresponding to signed inputs multiplied by the stored weights in each group; summing output currents from the first and second cells on a common line for each group during each of the first and second times; generating a first digital result based on summing the output currents during the first time; generating a second digital result based on summing the output currents during the second time; and combining the first and second digital results to provide a signed result.

[0428] Various embodiments related to a memory device for performing signed multiplication using groups of four memory cells each are now described below. The generality of the description below is not limited to the various embodiments described above.

[0429] In one memory cell implementation, signed multiplication is performed on a memory cell array where each group has four memory cells (organized as groups of units of four memory cells). In one example, resistive random access memory (RRAM) cells are used. In one example, NAND or NOR flash memory cells are used.

[0430] In one embodiment, a signed 1-bit number (e.g., input and / or weight) has one of three possible values: -1, 0, 1. For example, a signed weight may be represented by a 2-bit number, as described above. A signed weight may be represented by a value stored in a memory cell group of four cells. The first pair of cells stores 2 bits representing the 1-bit signed weight. The second pair of cells stores the negative version of the 2 bits.

[0431] In one embodiment, a four-cell implementation is used for signed 1-bit by 1-bit multiplication. A set of four memory cells is used to store two bits of a signed 1-bit weight in a two-bit representation (sometimes referred to herein as a "positive version") and a negative version of the two-bit representation. Two input lines are used to apply the two bits of the signed 1 input (the two-bit representation).

[0432] In one example, the input line provides voltage to Fig.12Memory cell group 1227. Group 1227 has four memory cells, as described above. In one example, the input line can be a word line, a bit line, or a select gate line (SL), depending on the type of memory cell and the specific group configuration (e.g., memory cells arranged in series for NAND flash versus memory cells arranged in parallel for RRAM or NOR).

[0433] The first pair of memory cells multiplies the signed input. The output currents are summed on a first line. In one example, the first line is 1241. The second pair of memory cells also multiplies the signed input. The output currents are summed on a second line. In one example, the line is 1243.

[0434] The first line of bit results (e.g., 0 or 1) provides the first bit of a signed 1-bit by 1-bit multiplication (two-bit representation). The second line of bit results (e.g., 0 or 1) provides the second bit of a signed 1-bit by 1-bit multiplication (two-bit representation). In one example, these first and second bit results provide Fig.12 The 1-bit signed result is 1237.

[0435] In one embodiment, the 2 bits of a signed weight stored in a group of four memory cells (see "2-bit storage" in the table below) are as stated in the table below. The positive and negative versions of the signed weight are as stated in the table below. For example, for a signed weight of -1, the value 01 is stored in the first pair of cells and the value 10 is stored in the second pair of cells (represented in the table as 01, 10 in the second row of the header). The result of the multiplication is given at the intersection of the signed input and the signed weight. For example, a signed input of -1 multiplied by a signed weight of -1 provides a 2-bit result of 1, 0.

[0436]

[0437] In one example, a controller (e.g. Figure 1 124) causes the voltage driver to apply two input voltages corresponding to the signed input +1 (e.g., which represents 2 bits 10). The voltages are applied to the first and second pairs of memory cells as described above. By summing the output currents, the first line provides the first bit result and the second line provides the second bit result as described above. For example, for a storage weight of +1, the first bit result from the first line 1241 is 1 and the second bit result from the second line 1243 is 0 (e.g., see the results in the lower right corner of the table above).

[0438] In one example, a group of memory cells are arranged in a NAND flash memory array, such as Fig.101008, 1009 and a second pair of memory cells 1006, 1007. Two select lines SL are used to apply two voltages corresponding to 2 bits of signed input. The voltages are applied to the gates of select transistors (e.g., 1012, 1014). First and second digit lines 1016, 1018 are used to sum the currents to provide 2 bits of signed result, as described above.

[0439] In one example, the memory array includes a set of four RRAM cells 906, 907, 908, 909, such as Fig. 9 . A first pair of RRAM cells stores two bits of a signed 1-bit weight in a two-bit representation. A second pair of RRAM cells stores two bits (two-bit representation) of a negative version of the signed 1-bit weight. Two input lines (e.g., select lines SL) are used to apply the two bits (two-bit representation) of the signed 1 input. The current is summed on digit lines 914, 916.

[0440] In one embodiment, the 1-bit by 1-bit multiplication and summation between the input line and the first two memory cells is as for Fig.12 The multiplication and summation between the input line and the next two memory cells is performed as described above, where the output currents are summed on line 1241. The same applies to the multiplication and summation between the input line and the next two memory cells, where the output currents are summed on line 1243.

[0441] The bit result of the multiplication between the input line and the first two memory cells is determined by the digitizer 1233 of line 1241. The bit result of the multiplication between the input line and the second two memory cells is determined by the digitizer 1233 of line 1243. Thus, the bit result provides two bits (two-bit representation) of a signed result 1237 of a signed 1-bit by 1-bit multiplication.

[0442] In other embodiments, equivalent variations of the logic configuration of the table above may be used. For example, the order in which the positive and negative versions of the inputs are applied may be changed. The controller manages the appropriate corresponding logic interpretation and / or combination of the bit result polarity to provide the correct final signed result to produce as an output (e.g., to be sent to a host requesting the result).

[0443] Fig.18 A multiplication architecture with two digitizers 1840, 1842 and using a set of four memory cells to store signed weights is shown according to one embodiment. A first pair of memory cells 1802, 1806 stores positive versions of the signed weights. A second pair of memory cells 1804, 1808 stores negative versions of the signed weights, as discussed above.

[0444] Voltages are applied to the memory cells using word lines 1810 and bit lines 1828, 1829, 1832, 1833. The bit lines are coupled to select lines 1812, 1814 using select transistors 1816, 1820, 1818, 1822, such as described above.

[0445] The two bits of the signed input are represented by the voltages applied to the gates of the select transistors using select lines 1812, 1814. The first bit of the input is applied using select line 1812. The second bit is applied using select line 1814.

[0446] To perform the multiplication, the output currents are summed on digit lines 1830, 1834. Digitizer 1824 generates a first bit 1840 based on the summed output current on digit line 1830. Digitizer 1826 generates a second bit 1842 based on the summed output current on digit line 1834. Bits 1840, 1842 provide a signed result.

[0447] Fig.19 A multiplication architecture is shown having analog circuitry 1902 for combining output currents from two common lines and using a set of four memory cells to store signed weights according to one embodiment. Fig.19 The architecture is similar to Fig.18 Except as described below.

[0448] Analog circuitry 1902 combines the summed output currents from digital lines 1830, 1834. Analog circuitry 1902 provides an output signal used by digitizer 1924 to produce signed result 1940. In one example, signed result 1940 is provided as two bits (eg, 01 or 11).

[0449] Fig. 20 Demonstrating the use of a Fig.18 or Fig.19 1. The voltage waveform of the signed input of the memory cell configuration of FIG. 2. The waveform of the bit line BL voltage and the word line WL voltage are shown. Time is represented on the horizontal axis. The positive and negative voltages are represented in the vertical direction above and below the horizontal axis. Fig.16 , if the bit line voltage is 0, then the waveform coincides with the horizontal axis (and is not shown separately).

[0450] The exemplary voltage pattern of the waveform is applied at time T (eg, in the same clock cycle). The voltage pattern corresponds to the value of the signed input to the multiplication. The difference between the word line and bit line voltages is the voltage applied to each memory cell, as illustrated.

[0451] The voltages of graphs 2020 and 2022 correspond to a signed input of negative one (-1). The voltage of graph 2020 (e.g., corresponding to the first bit input +) is applied to memory cells 1802 and 1804. The voltage of graph 2022 (e.g., corresponding to the second bit input -) is applied to memory cells 1806 and 1808.

[0452] For example, word line waveform 2002 is fixed at a constant voltage. Bit line voltage 2004 corresponds to a bit value of 1. Thus, for example, at time T, input bits 0, 1 are applied. Note that Fig. 20 The exemplary positive / negative polarity of is arbitrary and may vary in other embodiments.

[0453] The voltages of graphs 2024, 2026 correspond to a signed input of 0. In this case, the word line voltage is fixed and the bit line voltage is 0 for both bits.

[0454] The voltages of graphs 2028, 2030 correspond to a signed input of positive one (+1). The bit line voltage 2006 corresponds to a bit value of 1. Therefore, input bits 1, 0 are applied.

[0455] In one example, the voltage patterns selected for these waveforms are managed by controller 124. In one example, the voltage patterns are applied by voltage driver 1223.

[0456] In one example, the positive or negative representation is arbitrary. The polarity is determined by how the digitizer, analog to digital converter, and / or controller combines the two bit results of the signed result.

[0457] In one example, the positive and negative polarity of the digital line (eg Fig.10 The DL+ and DL- of 100 are arbitrary and handled by the controller 124. In one example, the digit lines may be considered to be first and second digit lines DL. One digit line or the other captures the negative or positive weights that are ultimately combined to produce a signed output.

[0458] Fig.21 A method for performing signed multiplication using weights stored in groups of four memory cells each is shown according to one embodiment. For example, Fig.21 The method can be used Fig.12 , 18 The multiplication and accumulation described in 20 are Figure 1 is executed in the integrated circuit device 101.

[0459] Fig.21The method may be performed by processing logic, which may include hardware (such as a processing device, a circuit system, a dedicated logic, a programmable logic, a microcode, hardware of a device, an integrated circuit, etc.), software (such as instructions running or executing on a processing device), or a combination thereof. In some embodiments, Fig.21 The method is at least partially performed by one or more processing devices (e.g. Figure 1 Controller 124) executes.

[0460] Although shown in a particular sequence or order, the order of the processes may be modified unless otherwise specified. Therefore, the illustrated embodiments should be understood as examples only, and the illustrated processes may be performed in different orders, and some processes may be performed in parallel. In addition, one or more processes may be omitted in various embodiments. Therefore, not all processes are required in every embodiment. Other process flows are possible.

[0461] At block 2101, groups of four memory cells in each group are programmed to store signed weight values ​​in each group. In one example, memory cells 1802, 1804, 1806, 1808 are programmed to store signed weight values.

[0462] At block 2103, voltages are applied to the four memory cells in each group. The voltages correspond to the signed inputs. In one example, the voltages are applied to the memory cells using select lines 1812, 1814. The select lines turn on some or all of the select transistors 1816, 1818, 1820, 1822, depending on the bit value of the corresponding input.

[0463] At block 2105 , the output currents from the first and second cells are summed on a first line. In one example, the first line is the digit line 1830 .

[0464] At block 2107, the output currents from the third and fourth cells are summed on a second line. In one example, the second line is the digit line 1834.

[0465] At block 2109, a signed result is provided for each group. The signed result is based on the summed output current of the first and second lines. In one example, the digitizers 1824, 1826 provide the signed results. In one example, the digitizer 1924 provides the signed results.

[0466] In one embodiment, a device includes: a memory cell array having groups of memory cells, wherein each group includes first and second cells (e.g., 1802, 1806) programmable to store a signed weight value and third and fourth cells (e.g., 1804, 1808) programmable to store a negative version of the signed weight value; a voltage driver (e.g., 1223) configured to apply a voltage to the first, second, third, and fourth cells in each group, the voltage corresponding to a signed input multiplied by the signed weight value in each group; a first line (e.g., 1241) coupled to the first and second cells in each group, wherein the first line is configured to sum the first and second cells from the first and the output current of the second cell; a second line (e.g., 1243) coupled to the third and fourth cells in each group, wherein the second line is configured to sum the output currents from the third and fourth cells; a first digital converter (e.g., 1233) of each group, the first digital converter is configured to provide a first result based on summing the output currents from the first and second cells; and a second digital converter (e.g., 1233) of each group, the second digital converter is configured to provide a second result based on summing the output currents from the third and fourth cells; wherein the combination of the first and second results is a signed result (e.g., 1237) from multiplying a signed input by a signed weight.

[0467] In one embodiment, the signed weight is a signed 1-bit weight; the first and second cells are used to store two bits of the signed 1-bit weight; and the third and fourth cells are used to store two bits of a negative version of the signed 1-bit weight.

[0468] In one embodiment, the apparatus further includes two input lines (eg, select lines 1812, 1814) configured to apply two bits of signed input to each group of memory cells.

[0469] In one embodiment, voltages are applied such that the operation of the first, second, third, and fourth cells in each group remains in a subthreshold mode when performing multiplication.

[0470] In one embodiment, the signed result has a first and a second bit; the first result is the first bit of the signed result; and the second result is the second bit of the signed result.

[0471] In one embodiment, the voltage applied to each group represents a 1-bit signed input. Applying the voltage includes applying a first bit of the signed input to the first and third cells and applying a second bit of the signed input to the second and fourth cells.

[0472] In one embodiment, the device further includes first and second input lines coupled to a voltage driver and used to apply voltages, wherein: the first input line (e.g., selection line 1812) is coupled to the first and third cells and used to apply at least one voltage corresponding to the first bit; and the second input line (e.g., selection line 1814) is coupled to the second and fourth cells and used to apply at least one voltage corresponding to the second bit.

[0473] In one embodiment, the device further includes: bit lines (e.g., 1828, 1829, 1832, 1833) coupled to the first, second, third and fourth cells in each group; and selection transistors (e.g., 1816, 1818, 1820, 1822) configured to electrically connect the bit lines of each group to the first and second lines; wherein a voltage is applied to the gate of the selection transistor to cause a voltage change on the bit line.

[0474] In one embodiment, the first, second, third, and fourth cells in each group are accessed using a common word line (eg, 1810).

[0475] In one embodiment, applying voltage includes: maintaining a common word line in each group at a constant voltage; and changing the voltage on the bit lines connected to the first, second, third and fourth cells in each group, wherein the voltage on the bit lines changes based on the value of the signed input of the group.

[0476] In one embodiment, a first digitizer (eg, 1824) is coupled to a first digit line (eg, 1830), and a second digitizer (eg, 1826) is coupled to a second digit line (eg, 1834).

[0477] In one embodiment, a device includes: a semiconductor substrate (e.g., 1302); an array of memory cells (e.g., 1304) arranged in groups of at least four memory cells each, wherein each group of memory cells is programmable to store signed weights for performing multiplication, wherein the memory cells are organized in horizontal hierarchies of cells, and wherein the hierarchies are stacked vertically above the semiconductor substrate; and a controller (e.g., 124) configured to: program first and second cells of each group to store signed weights and program third and fourth cells of each group to store negative versions of the signed weights; apply voltages to the groups of memory cells, wherein for each group the voltages represent corresponding signed inputs multiplied by the signed weights stored in the group; and determine corresponding signed results for each group based on summing the output currents from the first and second cells on a first line and summing the output currents from the third and fourth cells on a second line.

[0478] In one embodiment, the device further includes first and second digital converters (e.g., 1340) for each group of memory cells, wherein: the first digital converter is configured to provide a first result based on summing the output current on a first line; the second digital converter is configured to provide a second result based on summing the output current on a second line; and the corresponding signed result is a combination of the first and second results.

[0479] In one embodiment, the device further includes an interface (eg, 125) operable to enable a host to write data into and read data from the memory cell array.

[0480] In one embodiment, the controller is further configured to receive first data associated with the artificial neural network from a host through an interface; the signed weights stored in the memory cell groups are based on the first data; and the signed weights are used in matrix-vector multiplication to provide a signed result for each group.

[0481] In one embodiment, a system includes: a plurality of memory cells organized into groups (e.g., 1227), wherein each group includes first and second cells programmable to store a signed weight value and third and fourth cells programmable to store a negative version of the signed weight value; a voltage driver configured to apply a voltage to the first, second, third, and fourth cells in each group, the voltage corresponding to a signed input multiplied by the signed weight value in each group; a first line coupled to the first and second cells in each group, wherein the first line is configured to sum the voltages from the first and second cells. output current of the first and second lines of each group; a second line coupled to the third and fourth cells in each group, wherein the second line is configured to sum the output currents from the third and fourth cells; an analog circuit system (e.g., 1902) configured to combine the summed output currents of the first and second lines of each group; and a digital converter (e.g., 1924) of each group, the digital converter coupled to the analog circuit system and configured to provide a signed result (e.g., 1940) from multiplying a signed input by a signed weight, wherein the signed result is determined based on combining the summed output currents by the analog circuit system.

[0482] In one embodiment, the first line is a first digit line and the second line is a second digit line. The system further includes: a bit line coupled to the first, second, third and fourth cells in each group; and a select transistor configured to electrically connect the bit line of each group to the first and second digit lines.

[0483] In one embodiment, each of the plurality of memory cells is a NAND or NOR flash memory cell.

[0484] In one embodiment, each of the plurality of memory cells is a chalcogenide memory cell.

[0485] In one embodiment, the signed weight and the signed input are each represented by a corresponding 2-bit number with possible values ​​of 01, 00, or 10.

[0486] In one embodiment, an apparatus includes: a memory cell array having groups of memory cells, wherein each group includes first and second cells programmable to store a signed weight value and third and fourth cells programmable to store a negative version of the signed weight value; a voltage driver (e.g., 1320) configured to apply a voltage (e.g., see Fig. 20 ) is applied to the first, second, third and fourth cells in each group, the voltage corresponding to the signed input multiplied by the signed weight in each group; a first line, which is coupled to the first and second cells in each group, wherein the first line is configured to sum the output currents from the first and second cells; a second line, which is coupled to the third and fourth cells in each group, wherein the second line is configured to sum the output currents from the third and fourth cells; a first digital converter of each group, the first digital converter is configured to provide a first result based on the sum of the output currents from the first and second cells; and a second digital converter of each group, the second digital converter is configured to provide a second result based on the sum of the output currents from the third and fourth cells; wherein the combination of the first and second results is a signed result from the multiplication of the signed input by the signed weight.

[0487] In one embodiment, the signed weight is a signed 1-bit weight; the first and second cells are used to store two bits of the signed 1-bit weight; and the third and fourth cells are used to store two bits of a negative version of the signed 1-bit weight.

[0488] In one embodiment, the apparatus further includes two input lines (eg, two select lines 1314) configured to apply two bits of signed input to each group of memory cells.

[0489] In one embodiment, the two input lines are word lines or gate lines (eg, select lines 1812, 1814).

[0490] In one embodiment, voltages are applied such that the operation of the first, second, third, and fourth cells in each group remains in a subthreshold mode when performing multiplication.

[0491] In one embodiment, the signed result has a first and a second bit; the first result is the first bit of the signed result; and the second result is the second bit of the signed result.

[0492] In one embodiment, the voltage applied to each group represents a 1-bit signed input. Applying the voltage includes applying a first bit of the signed input to the first and third cells and applying a second bit of the signed input to the second and fourth cells.

[0493] In one embodiment, the device further includes first and second input lines coupled to the voltage driver and used to apply voltages, wherein: the first input line is coupled to the first and third cells and used to apply at least one voltage corresponding to the first bit; and the second input line is coupled to the second and fourth cells and used to apply at least one voltage corresponding to the second bit.

[0494] In one embodiment, the first and second input lines are word lines and the first and second lines are bit lines.

[0495] In one embodiment, the first line is a first digit line and the second line is a second digit line. The device further includes: a bit line coupled to the first, second, third and fourth cells in each group; and a select transistor configured to electrically connect the bit line of each group to the first and second digit lines.

[0496] In one embodiment, a voltage is applied to the gate of the select transistor to induce a voltage change on the bit line.

[0497] In one embodiment, the first, second, third, and fourth cells in each group are accessed using a common word line.

[0498] In one embodiment, applying voltage includes: maintaining a common word line in each group at a constant voltage; and changing the voltage on the bit lines connected to the first, second, third and fourth cells in each group, wherein the voltage on the bit lines changes based on the value of the signed input of the group.

[0499] In one embodiment, a first digitizer is coupled to a first digit line and a second digitizer is coupled to a second digit line.

[0500] In one embodiment, each of the memory cells in the memory cell array is a NAND or NOR flash memory cell.

[0501] In one embodiment, each of the memory cells in the memory cell array is a chalcogenide memory cell.

[0502] In one embodiment, the signed weight and the signed input are each represented by a corresponding 2-bit number with possible values ​​of 01, 00, or 10.

[0503] In one embodiment, a device includes: a memory cell array having groups of memory cells, wherein each group includes first and second cells programmable to store signed weights and third and fourth cells programmable to store negative versions of the signed weights; a voltage driver configured to apply voltages to the first, second, third, and fourth cells in each group, the voltages corresponding to signed inputs multiplied by the signed weights in each group; a first line coupled to the first and second cells in each group, wherein the first line is configured to sum output currents from the first and second cells; a second line coupled to the third and fourth cells in each group, wherein the second line is configured to sum output currents from the third and fourth cells; an analog circuit system configured to combine the summed output currents of the first and second lines; and a digital converter for each group, the digital converter coupled to the analog circuit system and configured to provide a signed result from multiplying the signed input by the signed weights, wherein the signed result is determined based on combining the summed output currents by the analog circuit system.

[0504] In one embodiment, a device includes: an array of memory cells arranged into groups of at least four memory cells per group; and a controller configured to: program the first and second cells of each group to store signed weights and program the third and fourth cells of each group to store negative versions of the signed weights; apply voltages to the groups of memory cells, wherein for each group the voltages represent corresponding signed inputs multiplied by the signed weights stored in the group; and determine a corresponding signed result for each group based on summing the output currents from the first and second cells on a first line and summing the output currents from the third and fourth cells on a second line.

[0505] In one embodiment, the device further includes first and second digital converters for each group of memory cells, wherein: the first digital converter is configured to provide a first result based on summing the output currents on a first line; and the second digital converter is configured to provide a second result based on summing the output currents on a second line; and the corresponding signed result is a combination of the first and second results.

[0506] In one embodiment, the apparatus further includes an interface operable to enable a host to write data into and read data from the memory cell array.

[0507] In one embodiment, the controller is further configured to receive first data associated with the artificial neural network from a host through an interface; the signed weights stored in the memory cell groups are based on the first data; and the signed weights are used in matrix-vector multiplication to provide a signed result for each group.

[0508] In one embodiment, a method includes programming groups of four memory cells (e.g., using firmware of controller 124) to store signed weights in each group; applying voltages to the four memory cells in each group, the voltages corresponding to signed inputs multiplied by the stored weights in the group; summing the output currents from the first and second cells on a first line (e.g., 1830); summing the output currents from the third and fourth cells on a second line (e.g., 1834); generating a first result based on summing the output currents from the first and second cells on the first line; generating a second result based on summing the output currents from the third and fourth cells on the second line; and combining the first and second results to provide a signed result for each group.

[0509] Various embodiments related to a memory device that sums outputs from signed multiplications performed by a group of memory cells are now described below. The generality of the description below is not limited to the various embodiments described above.

[0510] In one embodiment, the memory cell array has groups of cells organized as a fixed number of memory cells (e.g., two or four cells per group, such as described above). Each group performs a signed multiplication (e.g., a signed input to the group multiplied by a signed weight stored by the group) to provide a signed result as an output. These outputs are summed on one or more common lines (e.g., bit lines) to provide a summed signed result.

[0511] In one embodiment, the memory device uses an array of memory cells organized into groups of memory cells. In one example, resistive random access memory (RRAM) cells are used. In one example, NAND or NOR flash memory cells are used.

[0512] Each group can be programmed to store a signed weight. After programming, a voltage driver applies a voltage to the memory cells in each group. The voltage represents a signed input that is multiplied by the signed weight of each group.

[0513] One or more common lines are coupled to each group. The lines receive one or more output currents from the memory cells in each group (eg, as discussed above for groups of two or four cells). Each common line accumulates currents to sum the output currents from the group.

[0514] In one example, the line is a bit line extending vertically above the semiconductor substrate, as described above for Fig.13 Discussion. As an example, a group of 512 memory cells is coupled to a line. The output current from each of the 512 groups is collected on the line, and then one or more total current magnitudes are digitized to provide one or more digital values ​​(such as the first and second bits of the summed signed result from the multiplication outputs).

[0515] In one example, the memory device includes one or more digitizers.The digitizers provide a signed result based on summing the output currents from each of the 512 groups.

[0516] In one embodiment, the memory device implements the summation of the outputs of the signed 1-bit by 1-bit multiplications. Each bit of the result of a column of signed 1-bit by 1-bit multiplications is summed by connecting the output current to the respective first and second lines. In one example, each bit is one of the 2 bits of the result in the following table (e.g., 0, 1 for +1×-1 multiplication), which is described for the above quad implementation.

[0517]

[0518] A first digital count (e.g., an integer) of the current on the first line sums up for the first bit to a multiple of a predetermined current (e.g., as described above) representing 1. A second digital count of the current on the second line sums up for the second bit to a multiple of the predetermined current. For example, the first and second digital counts are outputs from a digital converter.

[0519] The magnitude of the first and second counts may be reduced by the smaller of the two counts to offset the equal number of 1s and -1s in the terms being summed. After this magnitude reduction, the sign of the sum is represented by the position of the 0 (e.g., negative if in the first position, positive if in the second position). The magnitude of the result is represented by a non-zero count (e.g., in the first position or in the second position).

[0520] Fig. 22 A multiplication architecture is shown for summing the outputs from a multiplication at two different times using a single line according to one embodiment. Voltage drivers 2223, 2224, 2225 apply voltages to two or more memory cells in each of memory cell groups 2227, 2228, 2229. The voltage applied to each group corresponds to the corresponding signed input of the group.

[0521] Each group stores signed weights. In one example, each group has two cells. In one example, each group has Fig.15 or Fig.18 The signed input is multiplied by the stored weights of each group to provide an output from the group, which is the result of the multiplication. For example, as described above, the output is represented by one or more output currents from one or more cells of each group. The output currents are accumulated on line 2280.

[0522] The sum of the outputs of the multiplication results from the group is represented by the summed current 2251. For example, as described above, the sum of the currents is a multiple of a predetermined amount of unit current. The summed current 2251 is converted into one or more digital values ​​(e.g., similar to the above description) by one or more digital converters 2263.

[0523] In one embodiment, digitizer 2263 is part of logic circuitry 2290, which uses the digital value from digitizer 2263 to determine signed result 2277. In one example, signed result 2277 is a combination of two values ​​(e.g., Fig.24 The first of the two values ​​is determined based on the current on the accumulation line 2280 at the first time T0. The second of the two values ​​is determined based on the current on the accumulation line 2280 at the second time T1. In one example, a voltage is applied to the memory cell group, similar to Fig.16 In the description.

[0524] The memory cell group 2227 generates a current 2231 at time T0 and generates a current 2247 at time T1. In one example, the currents 2231 and 2247 correspond to the currents accumulated in Fig.15 The output current on the digital line 1510 of 2228 is similarly provided by the group 2228 at times T0 and T1. The group 2229 is similarly provided by the group 2233 and 2249 at times T0 and T1.

[0525] The output currents at time T0 are summed to provide a summed current 2251, which corresponds to a first value of the signed result 2277. The output currents at time T1 are summed to provide a summed current 2251, which corresponds to a second value of the signed result 2277. The digitizer 2263 provides the first and second values ​​in digital form. The two values ​​together represent the magnitude and sign of the signed result.

[0526] In one embodiment, logic circuitry 2290 determines the magnitude difference of the two values ​​from digital converter 2263. The difference is subtracted from the largest of the two values. The magnitude of the largest value after the subtraction (reduced sum) is the magnitude of signed result 2277. The sign of signed result 2277 is determined by one of the two values ​​that is reduced to a value of 0 by the subtraction. For example, if the first value (reduced sum) is 0 after the subtraction, then signed result 2277 is negative. If the second value is 0 after the subtraction, then signed result 2277 is positive.

[0527] Fig.23 A multiplication architecture is shown for summing the outputs from multiplications using two wires at the same time according to one embodiment. In one example, the outputs from the multiplications are summed in the same clock cycle.

[0528] Voltage drivers 2323, 2324, 2325 apply voltages to four or more memory cells in each of groups 2327, 2328, 2329. The output currents from the groups are accumulated on lines 2380, 2381. The sum of the currents accumulated on line 2380 corresponds to the first value (the sum of the first bit) of the signed result 2377. The sum of the currents accumulated on line 2381 corresponds to the second value (the sum of the second bit) of the signed result 2377.

[0529] For example, output currents 2331, 2347 from group 2327 are accumulated as illustrated. Current 2331 corresponds to the first bit of the multiplication result produced by group 2327. Current 2347 corresponds to the second bit of the multiplication result.

[0530] The currents 2332, 2348 from the group 2328 correspond to the first and second bits of the multiplication result produced by the group 2328. The currents 2333, 2349 from the group 2329 correspond to the first and second bits of the multiplication result produced by the group 2329.

[0531] In one example, current 2331 is accumulated in Fig.18 One of the output currents on digital line 1830. Current 2347 is accumulated on Fig.18 One of the output currents on digital line 1834.

[0532] The summed current 2351 from line 2380 is digitized by digitizer 2363 to provide a digital number corresponding to the first value of signed result 2377. The summed current 2351 from line 2381 is digitized by digitizer 2363 to provide a digital number corresponding to the second value of signed result 2377.

[0533] As mentioned above, for example, logic circuitry 2390 uses these first and second digital values ​​provided by digitizer 2363 to determine the magnitude and sign of signed result 2377. The magnitude of signed result 2377 is based on the difference between the magnitudes of the first and second values. The sign of signed result 2377 corresponds to one of the first and second values ​​having the smallest magnitude.

[0534] In one example, voltage drivers 2323, 2324, 2325 apply voltages corresponding to a column of signed inputs that are multiplied by a column of signed weights stored in groups 2327, 2328, 2329. The sum of these multiplications is a signed result 2377.

[0535] In one embodiment, groups 2327, 2328, 2329 are configured using memory cells of memory cell array 113. Data is collected by image sensing pixel array 111. The data is used by controller 124 to determine signed inputs and control voltages applied by voltage drivers 2323, 2324, 2325.

[0536] In one embodiment, the memory cells in the groups 2327, 2328, 2329 are programmed in response to a write command received from the host via the interface 125. In one embodiment, the signed result 2377 is sent to the host. In one embodiment, the signed result 2377 is sent to the host in response to a read command received from the host via the interface 125.

[0537] Figures 24 to 26 An exemplary reduction of the summed count is shown according to one embodiment. The count refers to a digital value corresponding to the summation of the output current, as discussed above. In one example, two digital values ​​are provided by the digital converters 2263, 2363.

[0538] As an example, Fig.24 Each row 2402 illustrated in the table of is a digital representation of the result output from the multiplication performed by each of the plurality of groups. Each result has two bits. The first bit corresponds to line 1 and the second bit corresponds to line 2, each line being used to sum the outputs.

[0539] In one example, the groups are 2327, 2328, 2329. Line 1 is an example of line 2380. Line 2 is an example of line 2381.

[0540] The counts are summed to provide a sum 2406 for each of lines 1, 2. The magnitude 2408 of the signed result is determined by the difference in magnitude of the sums 2406. The sign 2409 of the signed result is determined by the line position of line 1 or 2 having the lowest magnitude.

[0541] Magnitude 2408 may also be viewed as the magnitude remaining after the smaller of sums 2406 is subtracted from the larger of sums 2406 (e.g., 2-1=1). Symbol 2409 may also be viewed as one of the sums 1, 2 having a value of 0 after the smallest of the sums is subtracted from each sum (sometimes referred to as reducing the smallest) (e.g., 1-1=0).

[0542] As illustrated, after the subtraction / reduction described above, the signed result has a magnitude 2408 of 1 and a positive sign 2409.

[0543] As another example, Fig.25Each row 2502 illustrated in the table of is a digital representation of the result output from the multiplication performed by each of the plurality of groups. Each result has two bits. The first bit corresponds to line 1, and the second bit corresponds to line 2, similar to above.

[0544] In one example, the groups are 2327, 2328, 2329. Line 1 is an example of line 2380. Line 2 is an example of line 2381.

[0545] The counts are summed for each of lines 1, 2, similar to the description above. The magnitude 2506 of the signed result is determined by the magnitude difference of the sums. The sign 2504 of the signed result is determined by the position of line 1 or 2 with the lowest magnitude.

[0546] Magnitude 2506 may also be considered as the magnitude remaining after subtracting the smaller sum 1 from the larger sum 2 (e.g., 2-1=1). Symbol 2504 may also be considered as one of the sums 1, 2 having a value of 0 after subtracting the smallest of the sums from each sum (e.g., 1-1=0).

[0547] As illustrated, the signed result has a magnitude 2506 of 1 and a negative sign 2504 .

[0548] As another example, Fig.26 Each row 2602 illustrated in the table of is a digital representation of the result output from the multiplication performed by each of the plurality of groups. Each result has two bits. The first bit corresponds to line 1 and the second bit corresponds to line 2.

[0549] In one example, the groups are 2327, 2328, 2329. Line 1 is an example of line 2380. Line 2 is an example of line 2381.

[0550] The counts are summed for each of lines 1, 2, similar to the description above. The magnitude 2606 of the signed result is determined by the magnitude difference of the sums. The sign 2604 of the signed result is determined by the position of line 1 or 2 with the lowest magnitude.

[0551] Magnitude 2606 may also be considered as the magnitude remaining after subtracting the smaller sum 2 from the larger sum 1 (eg, 5-1=4). Symbol 2604 may also be considered as one of the sums 1, 2 having a value of 0 after subtracting the smallest of the sums from each sum (eg, 1-1=0).

[0552] As illustrated, the signed result has a magnitude 2606 of 4 and a positive sign 2604 .

[0553] In one example, the magnitude and sign of the signed result are determined by logic circuitry 2290, 2390. In one example, the magnitude and sign of the signed result are determined by controller 124.

[0554] Fig. 27 A method for performing a summation of outputs from signed multiplications performed by a group of memory cells is shown according to one embodiment. For example, Fig. 27 The method can be used Fig. 22 and 23 The multiplication and accumulation explained in Figure 1 is executed in the integrated circuit device 101.

[0555] Fig. 27 The method may be performed by processing logic, which may include hardware (such as a processing device, a circuit system, a dedicated logic, a programmable logic, a microcode, hardware of a device, an integrated circuit, etc.), software (such as instructions running or executing on a processing device), or a combination thereof. In some embodiments, Fig. 27 The method is at least partially performed by one or more processing devices (e.g. Figure 1 Controller 124) executes.

[0556] Although shown in a particular sequence or order, the order of the processes may be modified unless otherwise specified. Therefore, the illustrated embodiments should be understood as examples only, and the illustrated processes may be performed in different orders, and some processes may be performed in parallel. In addition, one or more processes may be omitted in various embodiments. Therefore, not all processes are required in every embodiment. Other process flows are possible.

[0557] At block 2701, groups of memory cells are programmed to store signed weights in each group. In one example, groups 2227, 2228, 2229 are programmed. In one example, groups 2327, 2328, 2329 are programmed.

[0558] At block 2703, a voltage is applied to the memory cells in each group. The voltage corresponds to a signed input. The voltage may be applied to only a portion of the memory cells in each group at a given moment or clock cycle. In one example, the voltage is applied by voltage drivers 2223, 2224, 2225. In one example, the voltage is applied by voltage drivers 2323, 2324, 2325.

[0559] At block 2705, the output current from each group is summed on a first line. Alternatively, the output current from each group is summed on a common line at a first moment. In one example, the first line is line 2380. In one example, the common line is line 2280.

[0560] At block 2707, the output current from each group is summed on a second line. Alternatively, the output current from each group is summed on a common line at the second time instant. In one example, the second line is line 2381. In one example, the first and second times are Fig.16 time T0, T1.

[0561] At block 2709, a signed result is provided based on the summed output current. In one example, the signed result is result 2277, 2377.

[0562] In one embodiment, a memory device includes: a memory cell array (e.g., 113) having groups of memory cells (e.g., 2227, 2327), wherein each group is programmable to store signed weights; a voltage driver (e.g., 2223, 2323) configured to apply a voltage to the memory cells in each group, the voltage corresponding to a signed input multiplied by the signed weight of each group; at least one line (e.g., 2280, 2380, 2381) coupled to each group, wherein the line is configured to sum output currents from the groups; and at least one digital converter (e.g., 2263, 2363) configured to provide a signed result (e.g., 2277, 2377) based on summing the output currents from the groups.

[0563] In one embodiment, each group includes first and second cells programmable to store positive versions of the signed weights and third and fourth cells programmable to store negative versions of the signed weights.

[0564] In one embodiment, the at least one line includes: a first line coupled to the first and second cells in each group; and a second line coupled to the third and fourth cells in each group.

[0565] In one embodiment, the first bit result and the second bit result are based on summing the output currents from the group; and the magnitude of the signed result (eg, 2408) is based on the sum of the first and second bit results (eg, Fig.24 The difference between the values ​​of sum 1 and sum 2) is determined.

[0566] In one embodiment, the first and second bit results are based on summing the output currents from the groups; and the sign of the signed result (eg, 2409) corresponds to one of the first or second bit results having the smaller magnitude.

[0567] In one embodiment, voltages are applied to first and second cells in each group at first and second times; and the voltage applied at the first time represents a signed input, and the voltage applied at the second time represents a negative version of the signed input.

[0568] In one embodiment, a voltage is applied to each group at a first and a second time; and at least one line is configured to sum the output currents from the groups at each of the first and second times.

[0569] In one embodiment, the memory cell is a resistive random access memory (RRAM) cell, a NAND flash memory cell, or a NOR flash memory cell.

[0570] In one embodiment, a device includes: an image sensing pixel array (e.g., 111); a plurality of groups, each having two or more memory cells, wherein the memory cells of each group are programmable to store corresponding signed weights; an interface configured to communicate with a host; and a controller (e.g., 124) configured to: receive data from the image sensing pixel array; program the memory cells of each group to store corresponding signed weights; apply voltages to the groups, wherein the voltages are based on the data received from the image sensing pixel array, and wherein for each group, the voltages represent corresponding signed inputs multiplied by corresponding signed weights stored in the group; determine a signed result based on summing the output currents from the groups on at least one line; and send the signed result to the host via the interface (e.g., 125).

[0571] In one embodiment, the at least one line includes a first line and a second line. Summing the output currents includes determining a first sum of the output currents on the first line and determining a second sum of the output currents on the second line.

[0572] In one embodiment, the magnitude of the signed result is based on the difference in magnitude between the first and second sums.

[0573] In one embodiment, the sign of the signed result is determined by comparing the magnitudes of the first and second sums.

[0574] In one embodiment, the lines are digit lines, and the apparatus further includes: a bit line coupled to each set; and a select transistor configured to electrically connect the bit line of each set to the digit line.

[0575] In one embodiment, a voltage is applied to the gate of the select transistor.

[0576] In one embodiment, summing the output currents includes determining a first sum of the output currents on the lines in a first clock cycle and determining a second sum of the output currents on the lines in a second clock cycle.

[0577] In one embodiment, the memory cells of each group are NAND flash memory cells.

[0578] In one embodiment, when performing multiplication, one or more memory cells in each group are selected by applying a corresponding read voltage to the gate of the memory cell.

[0579] In one embodiment, the gates of non-selected memory cells in the same corresponding string with the selected memory cell are biased by applying a bypass voltage to the gates during multiplication.

[0580] In one embodiment, a method includes: receiving a command to write data from a host system; in response to receiving the command to write data, programming groups of memory cells in a memory cell array, wherein each group of memory cells is programmed to store signed weights; applying voltages to the groups, wherein for each group, the voltages represent corresponding signed inputs multiplied by the signed weights stored in the group; determining a signed result based on summing output currents from the groups on at least one line; receiving a command to read data from the host system; and in response to receiving the command to read data, sending the signed result to the host system.

[0581] In one embodiment, summing the output currents includes using at least one integrator (e.g. Figure 5 507) to accumulate the current on the line.

[0582] Various embodiments related to a memory device that uses a group of memory cells in a memory cell array to perform signed multi-bit by multi-bit multiplication are now described below. The generality of the description below is not limited to the various embodiments described above.

[0583] In one embodiment, the memory cell array has groups of cells organized as a fixed number of memory cells (e.g., two or four cells per group, such as described above). Each group performs a signed multiplication (e.g., a multi-bit signed input of the group multiplied by a multi-bit signed weight stored by the group) to provide an output current. These output currents are summed on one or more common lines (e.g., bit lines) to provide one or more signed results. Each signed result corresponds to the bit significance of the weight used to generate the corresponding signed result and the bit significance of the input.

[0584] In a simplified example, in the first time slice in a series of time slices, a column of 2-bit inputs is multiplied by a column of 2-bit weights. A column of 1-bit inputs using the LSB of each input is multiplied by a column of 1-bit signed weights using the MSB of each weight. A first signed result corresponding to the LSB of the input and the MSB of the weight is obtained. The same LSB of the input is then multiplied by the LSB of the weight to obtain a second signed result corresponding to the LSB of the input and the LSB of the weight.

[0585] Next, in the second time slice, the MSB of each 2-bit input is multiplied by the MSB of each weight. A third signed result corresponding to the MSB of the input and the MSB of the weight is obtained. The same MSB of the 2-bit input is then multiplied by the LSB of the weight to obtain a fourth signed result corresponding to the MSB of the input and the LSB of the weight.

[0586] The first, second, third, and fourth signed results are added together in view of the bit significance of each signed result. In one embodiment, this is accomplished by appropriately scaling each signed result exponentially by a power of 2 based on the significance of the corresponding bits of both the input and the weight. Each signed result is a pair of digital values ​​added as two separate sums. In an alternative embodiment, the magnitude of the output current is scaled to account for bit significance, as described below (e.g., see Fig.29 ).

[0587] For example, when added to the first, second, and fourth signed results, the third signed result corresponding to the MSB of the input and the MSB of the weight is adjusted by 2x (for input MSB significance) and 2x (for weight MSB significance) to achieve a 4x adjustment of the third signed result. In one example, the power-of-2 adjustment is accomplished using a left shift and add, similar to the description above.

[0588] The sum of the first, second, third, and fourth signed results provides a signed accumulation result represented by the first and second digital values ​​(e.g., from the first and second digital lines). The sign and magnitude of the signed accumulation result can be determined using the first and second digital values ​​(e.g., similar to the offset / reduction description for the magnitudes above).

[0589] In one embodiment, the memory device uses an array of memory cells organized into groups of memory cells. In one example, resistive random access memory (RRAM) cells are used. In one example, NAND or NOR flash memory cells are used.

[0590] Each group can be programmed to store a multi-bit signed weight. After programming, a voltage driver applies a voltage to the memory cells in each group. The voltage represents the multi-bit signed input multiplied by the multi-bit signed weight.

[0591] One or more common lines are coupled to each group. The lines receive one or more output currents from the memory cells in each group (eg, similar to the discussion above for groups of two or four cells). Each common line accumulates currents to sum the output currents from the group.

[0592] In one example, the line is a bit line extending vertically above the semiconductor substrate, as described above for Fig.13 As an example, 512 memory cells are coupled to a line. Input is provided using 512 pairs of select lines (e.g., SL+, SL-), with each group using one pair (e.g., see Fig.29 ). The output current from each of the 512 groups is collected on a line, and then one or more total current magnitudes are digitized to provide first and second digital values.

[0593] In one example, the memory device includes one or more digitizers.The digitizers provide a signed result based on summing the output currents from each of the 512 sets on the first and second digit lines (eg, as described above).

[0594] A first digital value (e.g., an integer) representing a current on a first digit line is determined as a multiple of a predetermined current (e.g., as described above) representing 1. A second digital value representing a current on a second digit line is determined as a multiple of the predetermined current. For example, the first and second digital values ​​are outputs from a digitizer.

[0595] In one embodiment, the magnitude of the first and second digital values ​​may be reduced by the smaller of the two values ​​to offset the equal number of 1's and -1's in the terms being summed. After this magnitude reduction, the sign of the sum is represented by the position of the 0 (e.g., negative if it is the first reduced value from the first digital line, positive if it is the second reduced value from the second digital line). The magnitude of the result is represented by the non-zero of the first or second reduced value.

[0596] In one embodiment, a signed multi-bit by multi-bit multiplication is performed. The sign of the input may be carried over to each bit of the signed input so that each bit appears as a signed 1-bit in a two-bit representation. Similarly, the sign of the weight may be carried over to each bit of the signed weight so that each bit appears as a signed 1-bit in a two-bit representation. The results of the signed 1-bit by 1-bit multiplication may be summed, taking into account the respective significance of the bits in the input and the respective significance of the bits in the weight.

[0597] In one embodiment, a memory device includes a memory cell array having groups of NAND flash memory cells. Each group is programmable to store multi-bit signed weights. A voltage driver applies a voltage to each group. The voltage corresponds to a multi-bit signed input multiplied by the multi-bit signed weights of each group. Two common lines are coupled to each group. Each common line sums the corresponding output currents from each group. A digital converter on each common line provides a signed result based on summing the output currents from the group. Each signed result corresponds to the bit significance of the input and the bit significance of the weight, such as described above. The signed results are added together in view of the corresponding bit significance to provide first and second digital values ​​representing the signed accumulation results from the multi-bit and multi-bit multiplications.

[0598] In one embodiment, a signed input is applied to a group of memory cells on two wires (e.g., two select lines), each carrying a signal. Whether the input is positive or negative depends on where the magnitude of the signal is provided. In other words, the sign depends on which wire carries the signal. The other wire carries a constant value signal (e.g., a constant voltage corresponding to 0).

[0599] Each signed input applied to a group is considered to have a positive magnitude. One of the two wires is always biased to 0 (more generally, the bias is a constant signal). The other wire carries the magnitude of the input pattern.

[0600] In one embodiment, a multi-bit input is represented as a serial or time-slice input provided on two wires. For example, an input pattern is a number of bits (e.g., 1101011) whose corresponding voltages are applied serially to the wires, one bit per time slice (e.g., see Fig.29 Input 2970, 2971).

[0601] In one example, the input bits are applied serially, one at a time, as described above for Figure 4 describe.

[0602] In one embodiment, the memory cell group has four groups of cells, where each group has three memory cells (see, for example, Fig.29 Each group stores a three-bit value representing a multi-bit weight. One bit is for the MSB, one bit is for the middle significant bit (sometimes indicated as "MID" herein), and one bit is for the LSB. This provides a multi-bit representation of the storage weight.

[0603] Both of the groups store all 0s (e.g. Fig.29 The groups storing all 0s correspond to the sign of the weight. Generally speaking, a consistent pattern of cell groups storing all 0s is used in the memory cell array to indicate the sign of the stored weight. The other two groups store bits indicating the magnitude of the three bits in the weight.

[0604] In one embodiment, the weighting of the output current from each of the memory cells in the common line changes corresponding to the MSB, MID, or LSB significance of the bit stored by the memory cell (e.g., for 3 bits stored in a group of 3 memory cells as described above). The MSB significance (e.g., 100 nA) is weighted twice as much as the MID significance (e.g., 50 nA). The MID significance is weighted twice as much as the LSB significance (e.g., 25 nA).

[0605] When the output current ratio considers the bit significance, when adding the signed results (such as the first, second, third and fourth signed results) to obtain the signed accumulation result, the above left shift is not required. Instead, the signed results can be added directly without left shift.

[0606] Fig.28An architecture is shown according to one embodiment for performing signed multi-bit by multi-bit multiplication using groups of memory cells (e.g., 2827, 2828, 2829) to provide a signed result 2877. Each group of memory cells stores a multi-bit signed weight.

[0607] Voltage drivers 2828, 2824, 2825 apply voltages to the memory cells in each memory cell group 2827, 2828, 2829. The applied voltages represent multi-bit inputs that are multiplied by the weights stored by the group.

[0608] Each memory cell group 2827, 2828, 2829 provides an output current representing the result of multiplying the weight by the input. Two output currents are provided from each memory cell group so that the first and second digital values ​​can be determined by digitizing the first and second sums of the accumulated currents. The output currents are summed on common lines 2880, 2881.

[0609] Line 2880 accumulates output currents 2831, 2832, 2833. Line 2881 accumulates output currents 2847, 2848, 2849.

[0610] The first sum of the currents is accumulated on line 2880. The second sum of the currents is accumulated on line 2881. The summed current 2851 from lines 2880, 2881 is provided to one or more digital converters 2863 and converted into two digital values ​​representing a signed result 2877.

[0611] In one embodiment, logic circuitry 2890 includes digitizer 2863. Logic circuitry 2890 uses the digital value provided by digitizer 2863 to determine the sign and magnitude of signed result 2877. Signed result 2877 is provided to controller 2804 for further processing, such as sending to a host device and / or configuring operation of one or more sensors 2802.

[0612] In one embodiment, sensor 2802 collects sensor data. In one example, sensor 2802 includes a camera, an accelerometer, a GPS location sensor, and / or a temperature sensor. Controller 2804 receives sensor data from sensor 2802.

[0613] The controller 2804 determines, based at least in part on the sensor data, an input signal pattern to apply to the memory cell groups 2827, 2828, 2829. The controller 2804 causes the voltage drivers 2828, 2824, 2825 to apply voltages representative of the input signal pattern to the memory cell groups.

[0614] In one embodiment, each of the memory cell groups 2827, 2828, 2829 includes four NAND flash memory cells, similar to Fig.18 28, except that each memory cell stores more than one bit (eg, using MLC, TLC, or QLC). Two of the memory cells provide output current 2831. The other two of the memory cells provide output current 2847.

[0615] In one embodiment, each of the memory cell groups 2827, 2828, 2829 includes some memory cells storing the most significant bits of the storage weights, some memory cells storing the middle significant bits of the storage weights, and some memory cells storing the least significant bits of the storage weights (e.g., Fig.29 Group 2902).

[0616] In one embodiment, a voltage is applied to a group of memory cells by a voltage driver using a pair of wires. One of the wires is held at a constant voltage and the position of the wire (e.g., first or second position) indicates the sign of the input of the group. The other of the wires changes voltage and indicates the magnitude of the bit of the input of the group.

[0617] As mentioned above, a group of memory cells may be used to generate a plurality of signed results 2877. Each signed result 2877 corresponds to the bit significance of the input bits and weight bits used to generate the signed result 2877.

[0618] The signed results 2877 are added together to provide a signed accumulation result. When adding, each signed result is adjusted by a power of 2 (e.g., similar to Figure 3 Description, in order to obtain result 251), such as described above.

[0619] Fig.29 An architecture for performing signed multi-bit to multi-bit multiplication using serial multi-bit inputs 2970, 2971 is shown according to one embodiment. Memory cell groups 2902, 2904, 2906, 2908 each store a multi-bit signed weight. Voltages corresponding to inputs 2970, 2971 are applied to the memory cell groups using select lines 2910, 2911, 2912, 2913. Memory cell groups 2902, 2904, 2906, 2908 are Fig.28 An instance of memory cell group 2827.

[0620] The inputs 2970, 2971 are applied serially in time slices 2960, 2962 as illustrated. For example, the MSB of the input 2970 is applied in time slice 2960. The LSB of the input 2970 is applied in time slice 2962. The bits of the input 2971 are applied serially in a similar manner. A signed result (e.g., represented by the first and second digital values ​​2950, ​​2951) is obtained at each time slice.

[0621] Input 2970 has a negative sign. To indicate the negative sign, a voltage representing all 0s is applied to select line 2910. A voltage corresponding to the magnitude of the bit of input 2970 (eg, 1 or 0) is applied to select line 2911.

[0622] Input 2970 has a positive sign. To indicate the positive sign, a voltage representing all zeros is applied to select line 2913. A voltage corresponding to the magnitude of the bits of input 2971 is applied to select line 2912. The selection of the first or second select line for applying all zeros is consistently used to define the sign of the input. The sign of the input is associated with all bits of the input (e.g., carried over to all bits) using this method.

[0623] Each memory cell group has four groups 2920, 2922, 2924, 2926 of cells. Each group contains three memory cells accessed by word line 2928. Each word line corresponds to a different bit significance (e.g., MSB, MID, LSB). Although not illustrated for simplicity, all groups in all groups are similarly connected to word line 2928.

[0624] The position of the groups in the memory cell group (e.g., the storage pattern of the groups) is used to indicate the sign of the stored weights. For example, the two groups 2920, 2924 store all 0s in one pattern, as illustrated. This corresponds to a positive sign. In contrast, the two groups 2930, 2932 store all 0s in the opposite pattern of the other weight. This corresponds to a negative sign.

[0625] The other two groups 2922, 2926 in each memory cell group indicate the magnitude of the storage weights.

[0626] The group of cells in each group provides output current to a digit line (e.g., 2918, 2919). The cells in each group provide output current to a bit line 2914, which is coupled to the digit line through a select transistor (e.g., 2916). Select lines 2910, 2911, 2912, 2913 are connected to the gates of the select transistors to control the provision of output current from the memory cells to the digit line.

[0627] The output current accumulated on the digital line is provided to digital converters 2940, 2942, 2944, 2946. Each pair of digital converters provides a first and second digital value (e.g., 2950, ​​2951 or 2952, 2953) representing a signed result. In one example, the signed result is Fig.28 The signed result is 2877.

[0628] In one embodiment, each group 2920, 2922, 2924, 2926 contains resistive random access memory (RRAM) cells or NOR flash memory cells. A voltage is applied to word line 2928 to select all cells in each group so that the output currents from the cells are simultaneously accumulated on the digit line. This can be accomplished due to the parallel cell arrangement of the memory cell array.

[0629] In one embodiment, the weight of the output current from each of the word lines 2928 (LSB, MID, MSB) through the memory cell to the digit line is different. The weight from the MID word line is greater than the weight from the LSB word line. The weight from the MSB word line is greater than the weight from the MID word line.

[0630] In one embodiment, each group 2920, 2922, 2924, 2926 contains a single NAND flash memory cell. The cell stores three bits representing the storage weight. Due to the serial cell arrangement of the memory cell array, multiple bits are stored in a single cell.

[0631] Fig.30 A method for performing signed multi-bit and multi-bit multiplication in a memory cell array according to one embodiment is shown. For example, Fig.30 The method can be used Fig.28 and 29 The multiplication and accumulation explained in Figure 1 is executed in the integrated circuit device 101.

[0632] Fig.30 The method may be performed by processing logic, which may include hardware (such as a processing device, a circuit system, a dedicated logic, a programmable logic, a microcode, hardware of a device, an integrated circuit, etc.), software (such as instructions running or executing on a processing device), or a combination thereof. In some embodiments, Fig.30 The method is at least partially performed by one or more processing devices (e.g. Figure 1 Controller 124, Fig.28 Controller 2804) executes.

[0633] Although shown in a particular sequence or order, the order of the processes may be modified unless otherwise specified. Therefore, the illustrated embodiments should be understood as examples only, and the illustrated processes may be performed in different orders, and some processes may be performed in parallel. In addition, one or more processes may be omitted in various embodiments. Therefore, not every embodiment requires all processes. Other process flows are possible.

[0634] At block 3001, groups of memory cells are programmed to each store a multi-bit signed weight value. In one example, groups of memory cells 2827, 2828, 2829 are programmed.

[0635] At block 3003, a voltage is applied to the memory cells in each group. The voltage corresponds to a signed multi-bit input that is multiplied by the storage weights in the group. In one example, inputs 2970, 2971 are applied to memory cell groups 2902, 2904, 2906, 2908.

[0636] At block 3005, the output currents from the group are summed. In one example, currents 2831, 2832, 2833 are summed on line 2880. Currents 2847, 2848, 2849 are summed on line 2881.

[0637] At block 3007 , a signed result is determined from the summed output current. In one example, the signed result 2877 is determined based on the summed current 2851 .

[0638] At block 3009, a signed accumulation result is determined based on the signed results. In one example, the signed results are added together after adjusting for bit significance of corresponding input bits and / or weight bits used during multiplication to obtain corresponding signed results.

[0639] In one embodiment, a device includes: a memory cell array (e.g., 113) having groups of memory cells (e.g., 2827, 2828, 2829), wherein each group is programmable to store a multi-bit signed weight; a voltage driver (e.g., 2828, 2824, 2825) configured to apply a voltage to each group, wherein the voltage corresponds to a multi-bit signed input multiplied by the multi-bit signed weight of each group; at least one common line (e.g., 2880, 2881) coupled to each group, wherein the common line is configured to sum output currents from the groups; and at least one digital converter (e.g., 2863) configured to provide at least one signed result based on summing the output currents from the groups.

[0640] In one embodiment, the device further includes a device configured to apply voltages to corresponding first and second input lines of each group (e.g., selection lines 2910, 2911, 2912, 2913), wherein: a multi-bit signed input includes multiple bits; for each group, a constant voltage is applied to one of the first or second input lines (e.g., 2910, 2913) to represent the sign of the bit of the corresponding signed input; and for each group, a varying voltage magnitude is applied to the other of the first or second input lines (e.g., 2911, 2912) to represent the corresponding magnitude of the bit of the signed input.

[0641] In one embodiment, a voltage corresponding to each bit of the signed input is applied serially to the corresponding group.

[0642] In one embodiment, the voltage corresponding to each bit of the signed input is applied to the respective groups in a series of time slices (eg, 2960, 2962), where each time slice corresponds to one bit of the signed input.

[0643] In one embodiment, summing the output currents from the groups provides a first current sum and a second current sum.

[0644] In one embodiment, the digitizer is further configured to generate a first digital value based on the first current sum and a second digital value based on the second current sum; and the sign and magnitude of the signed result are determined based on the first and second digital values.

[0645] In one embodiment, the first memory cell in each group (e.g., the first two cells) is configured to store 0 for each bit of the signed weight (e.g., for a 3-bit weight, 000 is stored in each of the first two cells); the second memory cell in the group (e.g., the last two cells) is configured to store a value representing the corresponding magnitude for each bit of the signed weight (e.g., for a 3-bit weight, 110 is stored in each of the last two cells); and the position in the group of the first memory cell corresponds to the sign of the signed weight.

[0646] In one embodiment, at least one common line includes a first digit line and a second digit line (eg, digit lines 2918, 2919); and at least one of the first memory cells is coupled to the first digit line and at least another of the first memory cells is coupled to the second digit line.

[0647] In one embodiment, a device includes: at least one sensor (e.g., 2802); multiple groups, each having two or more memory cells, wherein the memory cells of each group are programmable to store corresponding multi-bit signed weights; an interface configured to communicate with a host; and a controller (e.g., 124, 2804).

[0648] The controller is configured to: program the memory cells of each group to store a corresponding multi-bit signed weight; receive data from a sensor; apply a voltage to the group, wherein the voltage is based on the data received from the sensor and wherein the voltage represents a multi-bit signed input multiplied by the multi-bit signed weight stored in the group; determine a plurality of signed results (e.g., 2877) based on summing the output currents from the group on at least one common line, wherein each of the signed results corresponds to a corresponding bit significance (e.g., MSB, MID, LSB) in the signed weight; determine at least one accumulated result based on the plurality of signed results; and send the accumulated result to a host via an interface.

[0649] In one embodiment, each signed weight includes a first bit of a first significance (e.g., MSB) and a second bit of a second significance (e.g., LSB); the plurality of signed results include a first signed result and a second signed result; the first signed result is determined using the first bit of each signed weight; the second signed result is determined using the second bit of each signed weight; and determining the accumulated result includes adding the first and second signed results.

[0650] In one embodiment, the apparatus further includes a device configured to apply voltages to respective first and second input lines of each group, wherein: each multi-bit signed input comprises a plurality of bits; for each group, a constant voltage is applied to one of the first or second input lines to represent the sign of the bits of the respective signed input; and for each group, a varying voltage magnitude is applied to the other of the first or second input lines to represent the respective magnitudes of the bits of the signed input.

[0651] In one embodiment, a voltage corresponding to each bit of the signed input is applied to the group in a series of time slices, where each time slice corresponds to one bit of the signed input.

[0652] In one embodiment, the at least one accumulated result includes a first accumulated result determined in a first one of the time slices and a second accumulated result determined in a second one of the time slices.

[0653] In one embodiment, the magnitude of each output current from the memory cell programmed in a state representing a 1 corresponds to the corresponding bit significance (eg, MSB, MID, LSB) in the signed weight.

[0654] In one embodiment, the magnitude of the output currents varies by powers of 2 based on the bit significance corresponding to the respective output currents (eg, the output current for the MSB bit is twice that for the MID bit and four times that for the LSB bit).

[0655] In one embodiment, the apparatus further includes a plurality of word lines (eg, 2928) coupled to the memory cells in each group, wherein each of the word lines corresponds to a bit significance in the signed weight.

[0656] In one embodiment, at least one common line is at least one digital line, and the device further includes: a bit line coupled to the memory cells in each group; a selection transistor that couples the bit line to the digital line; and a selection line (e.g., 2910, 2911, 2912, 2913) configured to control the selection transistor, wherein applying a voltage includes applying a voltage to the selection line to bias the gate of the selection transistor.

[0657] In one embodiment, the memory cells are NAND flash memory cells; each group has four memory cells; and each memory cell of the group stores a plurality of bits representing a signed weight stored by the group.

[0658] In one embodiment, a method includes: receiving a command to write data from a host system; in response to receiving the command to write data, programming a group of memory cells in a memory cell array, wherein each group of memory cells is programmed to store a multi-bit signed weight value; applying a voltage to the group, wherein for each group, the voltage represents a corresponding multi-bit signed input multiplied by the multi-bit signed weight value stored in the group; determining a plurality of signed results based on summing the output currents from the group, wherein each of the signed results corresponds to a corresponding bit significance (e.g., MSB, MID, LSB) in the signed weight value; determining at least one signed accumulation result based on the plurality of signed results; receiving a command to read data from the host system; and in response to receiving the command to read data, sending the signed accumulation result to the host system.

[0659] In one embodiment, the output current is summed on the first and second lines. The method further includes: determining a magnitude of the accumulated result based on a difference between first and second magnitudes of the sum of the output currents on the first and second lines, respectively; and determining a sign of the accumulated result based on one of the first or second magnitudes having a smaller magnitude.

[0660] Various embodiments related to a memory device that performs multiplication using memory cells with different thresholds based on bit significance are now described below. The generality of the description below is not limited by the various embodiments described above.

[0661] In one embodiment, a memory device performs an analog summation of 1-bit resultant currents with different bit significances implemented via different thresholds. A memory cell (e.g., an RRAM cell or a NAND flash memory cell) may be programmed to have an exponentially increasing (e.g., increasing by powers of 2) current for different thresholds. For example, a memory cell may be programmed to have a first threshold to allow a predetermined amount of current to pass to represent a bit value of 1 for the least significant bit.

[0662] To represent a bit value of 1 for the second least significant bit, the memory cell may be programmed to a second threshold to allow twice the predetermined amount of current to pass, which is equal to the predetermined amount of current multiplied by the bit significance of the second least significant bit.

[0663] The memory cell may similarly be programmed to have a higher current amount when the bit is in the 1 state that is equal to the predetermined current amount multiplied by the bit significance of the bit.

[0664] In one example, a 3-bit weight having a binary number of 111 can be stored using three memory cells, each of which is programmed to a different threshold to produce an output current when biased during multiplication to have a magnitude of four times (MSB: 4X base unit equal to 40nA), twice (MID: 2X base unit equal to 20nA), and one times (LSB: 1X base unit) a basic current unit (e.g., 10nA).

[0665] When the thresholds of memory cells, each representing a bit in a number, are programmed to have the bit significance built into the current, multiplication results involving the memory cells can be summed by connecting the memory cells to a common line, without having to individually convert the currents of the bits for summing in a digital circuit.

[0666] In one embodiment, each memory cell in a memory array stores a multi-bit weight value. Each memory cell can be programmed to have a threshold in one of a plurality of regions to represent one of a plurality of numbers (e.g., binary 10, 11, 101, or 0110) represented by the plurality of regions, respectively. If the memory cell is to store a non-zero value (e.g., the memory cell is programmed to the 1 state), the current through the memory cell is configured as a base current unit (e.g., a predetermined amount of current for the 1 state of the LSB bit, as mentioned above) multiplied by the number represented by the memory cell. Thus, the output current of the memory cell can be summed with the output currents of other memory cells (e.g., without left-shifting and adding the results, as mentioned above for Figure 3 describe).

[0667] In one embodiment, a solid state drive (SSD) or other storage device uses a memory cell array having memory cells. In one example, resistive random access memory (RRAM) cells are used. In one example, NAND or NOR flash memory cells are used.

[0668] In one embodiment, each memory cell can be programmed to store one bit of a multi-bit weight. After programming, a voltage driver applies a voltage to the memory cell. The voltage represents the input multiplied by the multi-bit weight.

[0669] One or more common lines are coupled to the memory cells. The lines receive one or more output currents from the memory cells. Each common line (eg, a digit line) accumulates currents to sum the output currents.

[0670] In one example, the line is a bit line extending vertically above the semiconductor substrate, as described above for Fig.13 Discussion. As an example, 512 memory cells are coupled to a line. Input is provided using a select line. Output current from each of the 512 memory cells is collected on the line, and then one or more total current magnitudes are digitized to provide a digital value.

[0671] In one example, the memory device includes one or more digitizers. The digitizers provide a digital result based on summing the output current from each of the 512 memory cells (eg, as described above).

[0672] In one embodiment, a digital value (eg, an integer) representing the current on the digit line is determined as a multiple of a predetermined current (eg, as described above) representing 1. For example, the digital value is an output from a digitizer.

[0673] In one embodiment, three memory cells store three-bit values ​​representing a multi-bit weight. One bit is for the MSB, one bit is for the middle significant bit (sometimes indicated as "MID" herein), and one bit is for the LSB. This provides a multi-bit representation of the storage weight.

[0674] In one embodiment, the weighting of the output current from each of the three memory cells in the common line changes corresponding to the MSB, MID, or LSB significance of the bit stored by the memory cell. The MSB significance (e.g., 100 nA current) is weighted twice as much as the MID significance (e.g., 50 nA current). The MID significance is weighted twice as much as the LSB significance (e.g., 25 nA current).

[0675] When the output current ratio of each memory cell takes into account the bit significance, when the results are added to obtain the accumulated result, the above-mentioned left shift is not required. Instead, the results can be added directly without left shift.

[0676] Fig.31 An architecture for performing multiplication using memory cells with different thresholds based on bit significance is shown according to one embodiment. Controller 3104 controls voltage drivers 3122, 3124, 3125 to apply voltages to memory cells 3127, 3130, 3129. As a result of applying these voltages, the memory cells provide output currents 3131, 3132, 3133. Controller 3104 is Figure 1 An instance of controller 124 .

[0677] In one embodiment, the voltage applied by voltage drivers 3122, 3124, 3125 represents an input that is multiplied by one or more weights stored by memory cells 3127, 3130, 3129. In one example, a single multi-bit weight is stored. The most significant bit of the weight is stored in memory cell 3127. The least significant bit of the weight is stored in memory cell 3129. The intermediate significant bits are stored in memory cell 3130.

[0678] In one embodiment, output currents 3131, 3132, 3133 are provided by memory cells 3127, 3130, 3129, such as, for example, described above. The magnitude of each output current corresponds to the validity of a bit stored by the corresponding memory cell.

[0679] In one embodiment, the magnitudes of the output currents 3131, 3132, 3133 differ from each other by a power of 2 based on the bit significance difference. For example, the magnitude of the current 3131 (MSB) is 4 times the magnitude of the current 3133 (LSB). The magnitude of the current 3132 (MID significant bit) is 2 times the magnitude of the current 3133.

[0680] In one embodiment, the output currents are accumulated on a common line 3180. In one example, line 3180 is a bit line, a digit line, or a word line, depending on the specific configuration of the memory cell and memory array used. Line 3180 is Figure 2 Instance of line 241.

[0681] The output currents 3131, 3132, 3133 are summed by summing circuitry 3190 on line 3180 as a summed current 3151. The summed current 3151 is provided as an input to one or more digital converters 3163.

[0682] Each digitizer 3163 can be used to provide a result 3177. In one example, the result 3177 is a digital value (eg, an integer) corresponding to the magnitude of the summed current 3151 (eg, a base unit current relative to an LSB).

[0683] The voltages are applied by voltage drivers 3122, 3124, 3125 when performing a multiplication to obtain one or more results 3177. In one embodiment, one or more weights stored in memory cells 3127, 3130, 3129 are programmed prior to performing this multiplication using sensing circuitry 3142.

[0684] For example, one or more voltage pulses may be applied to program the memory cell. Sensing circuitry 3142 (e.g., a sense amplifier) ​​is used to measure the output current from the programmed memory cell. This measurement can be used to calibrate the programming of the memory cell so that the output current produced when the corresponding memory cell represents a 1 state is a multiple of a predetermined current amount or basic current unit. In one example, the basic current unit is the magnitude of the current 3133 provided by the memory cell 3129 storing the least significant bit of the storage weight.

[0685] Based on the current measured by the sensing circuit system 3142, the controller 3104 determines one or more additional programming pulses to be applied as needed to program the memory cell. The sensing circuit system 3142 can again measure the output current from the memory cell after applying the additional pulses. When the difference between the measured current and the target output current is within the target threshold, the controller 3104 determines to end programming.

[0686] When programming the memory cells, each memory cell can be programmed to have a different threshold voltage. Each respective threshold voltage is selected to cause the magnitude of the output current to correspond to the validity of the bit stored by the memory cell when the cell is biased for a multiplication operation.

[0687] In some embodiments, each voltage driver 3122, 3124, 3125 applies a different voltage to its corresponding memory cell. In other embodiments, a single voltage driver may be used to apply a common voltage to all memory cells 3127, 3130, 3129 (eg, using a common word line or other common line).

[0688] In some embodiments, the voltage driver applies a voltage representing a series of input bits of a multi-bit input. Each input bit has a different significance (e.g., MSB, MID, LSB). In one example, each input bit is applied to a memory cell to obtain a result 3177 in each of a series of time slices, such as described above.

[0689] Fig.32 A NAND flash memory device for performing multiplication using memory cells with different thresholds is shown according to one embodiment.

[0690] In one embodiment, as illustrated, the three-dimensional memory cell array has NAND flash memory cells (such as floating gates or charge wells) arranged in a NAND configuration. The memory cells in each of the strings 3202, 3204, 3206 are connected in series. Each string 3202, 3204, 3206 is connected to a digit line 3208. Fig.32 The memory cell array illustrated in is an example of the memory cell array 113. In one embodiment, the memory cells are arranged vertically in columns, with the memory cells in each column corresponding to one of the strings 3202, 3204, 3206.

[0691] In one embodiment, the memory cells are arranged in horizontal levels (eg, 64 levels). For example, the selected memory cells 3220, 3231, 3224 for multiplication are arranged in one of these levels. Each string is connected to a common source line (not shown).

[0692] In one embodiment, when performing multiplication, a memory cell in one of the levels is selected. The cells are selected by applying a read voltage to the control gate of each cell. Other non-selected cells in the same string with the selected memory cell are biased by applying a bypass voltage to the control gate of the non-selected cell. Examples of non-selected memory cells include memory cells 3232, 3230, 3234, 3222, 3236.

[0693] Each of the non-selected memory cells is connected to a different word line (not shown) for applying the above-mentioned read or bypass voltage. In one example, a common word line (not shown) is connected to the gates of the selected memory cells 3220, 3231, 3224. The common word line is biased by applying a read voltage.

[0694] The memory cells of each string 3202, 3204, 3206 are electrically coupled to a digit line 3208 through select transistors 3210, 3212, 3214. When configured in a NAND flash memory device, digit lines 3208 are sometimes referred to as bit lines.

[0695] In one example, one of the levels of memory cells is selected. Non-selected memory cells in other levels are disabled. The word line voltage is made high enough so that each non-selected memory cell is turned on, regardless of its programming state. The state of the bypassed cells is ignored because the cells will conduct current regardless of the logic state. The total resistance in each string is dominated by one selected memory cell that provides output current for current accumulation (e.g., using accumulation circuitry 3190) to digit line 3208.

[0696] In one embodiment, each of the memory cells is programmed to store a single bit of a multi-bit weight for performing multiplication. For the selected level of memory cells to be used for multiplication, a voltage is applied to the word line so that each memory cell can contribute a certain level of output current, which depends on the programming state of the memory cell and the bit significance.

[0697] For example, memory cell 3224 is programmed to a threshold voltage such that the output current from the memory cell (when the memory cell is programmed to represent state 1) has a magnitude four times that of the basic unit current. Memory cell 3231 is programmed to have a different threshold such that the output current from the memory cell has a magnitude twice that of the basic current unit. Memory cell 3220 is programmed to have a different threshold such that the output current from the memory cell has a magnitude equal to the basic current unit.

[0698] In one example, memory cells 3220, 3231, and 3224 are used to store bits of a multi-bit weight. The least significant bit of the weight is stored in memory cell 3220. The middle significant bits of the weight are stored in memory cell 3231. The most significant bit of the weight is stored in memory cell 3224.

[0699] When performing multiplication, voltages are applied to the memory cells, such as (for example) as described above for Fig.31 Discussion. The applied voltage represents the input bit multiplied by the weight stored by the memory cell. The voltage is applied to the gates of the select transistors 3210, 3212, 3214 using a select line (not shown) coupled to the gate (indicated by SG). The output currents from the memory cells are then summed on the digit line 3208 and provide a digital result. In one example, the digital result is result 3177.

[0700] In one embodiment, the gate of each memory cell 3220, 3231, 3224 is connected to a separate segment word line. In one embodiment, the gate of each memory cell is connected to a single conductive layer or sheet that serves as the word line for all selected cells.

[0701] In some embodiments, the select lines are used as inputs. A voltage driver applies a signal to the gate of a select transistor that represents the input. For example, the signal can be a 1, a 0, or a changing pattern. The signal can also be different for each of the inputs.

[0702] In one embodiment, each of several different word lines coupled to the control gate of a selected memory cell is used as a respective input. The signal applied to each word line may be different for each of the inputs.

[0703] Fig.33A method for performing multiplication using a memory cell having an output current that changes based on the validity of a storage bit is shown according to one embodiment. For example, Fig.33 The method can be used Fig.31 and 32 The multiplication and accumulation explained in Figure 1 is executed in the integrated circuit device 101.

[0704] Fig.33 The method may be performed by processing logic, which may include hardware (such as a processing device, a circuit system, a dedicated logic, a programmable logic, a microcode, hardware of a device, an integrated circuit, etc.), software (such as instructions running or executing on a processing device), or a combination thereof. In some embodiments, Fig.33 The method is at least partially performed by one or more processing devices (e.g. Figure 1 Controller 124, Fig.31 Controller 3104) executes.

[0705] Although shown in a particular sequence or order, the order of the processes may be modified unless otherwise specified. Therefore, the illustrated embodiments should be understood as examples only, and the illustrated processes may be performed in different orders, and some processes may be performed in parallel. In addition, one or more processes may be omitted in various embodiments. Therefore, not all processes are required in every embodiment. Other process flows are possible.

[0706] At block 3301, memory cells are programmed to store multi-bit weight values. In one example, memory cells 3127, 3130, 3129 are programmed to store multi-bit weight values.

[0707] At block 3303, a voltage is applied to the memory cell. The voltage corresponds to an input that is multiplied by a multi-bit weight stored in the memory cell. In one example, the voltage is applied by voltage drivers 3122, 3124, 3125.

[0708] At block 3305, the output currents from the memory cells are summed on one or more common lines. Each output current has a magnitude corresponding to the validity of the bit stored in the corresponding memory cell. In one example, the output currents are currents 3131, 3132, 3133.

[0709] At block 3307, at least one result is determined from the summed output current. In one example, the result is a digital value provided as an output from a digital converter. The summing circuit provides the summed output current as an input to the digital converter. In one example, the digital converter 3163 provides a result 3177.

[0710] The above mentioned Fig.31Memory cells storing a single bit in each cell are illustrated. In other embodiments, the memory cell array may have some or all memory cells (not shown) that each store more than one bit per cell. For example, each NAND flash memory cell of the memory cell array may store two, three, or four bits per cell (e.g., using an MLC, TLC, or QLC configuration).

[0711] In one embodiment, a NAND flash memory device includes a memory cell array having memory cells. Each memory cell is programmable to store a plurality of bits representing a number corresponding to a corresponding weight (eg, 101).

[0712] The sensing circuitry (eg, 3142) measures a respective output current from each memory cell during programming. Each memory cell is programmed such that the respective output current corresponds to a number represented by the plurality of bits stored by the respective memory cell.

[0713] The voltage driver is configured to apply a voltage to the memory cell. The applied voltage represents an input that is multiplied by a weight value stored in the memory cell.

[0714] At least one line, such as a bit line or digit line 3180, is coupled to each of the memory cells. The line is configured to sum the output current from each of the memory cells to provide an accumulated result.

[0715] In one embodiment, the magnitude of the corresponding output current of each of the memory cells programmed to store a non-zero value is a basic current unit (e.g., a predetermined current amount for a 1 state) (e.g., digital 10 nanoamperes (nA)) multiplied by the number represented by the bits stored in the corresponding memory cell (e.g., binary 10 x digital 10nA = 20nA output current) (e.g., binary 11 x digital 10nA = 30nA output current).

[0716] In one embodiment, each memory cell is configured to have one of a plurality of thresholds, each threshold corresponding to one of a plurality of binary numbers (eg, 01, 10, 11 for a dual level NAND flash memory cell) that can be stored in the memory cell.

[0717] In one embodiment, a device includes: a memory cell array having memory cells, wherein each memory cell is programmable to store a bit having one of a plurality of significances (e.g., LSB, MID, MSB), and wherein a first memory cell is configured to store a first multi-bit weight; a voltage driver configured to apply a voltage to the memory cell, wherein the voltage includes a first voltage representing a first input multiplied by the first multi-bit weight; a common line coupled to each of the first memory cells, wherein the common line is configured to sum output currents from the first memory cells, and wherein a respective output current from each first memory cell corresponds to the significance of a respective bit stored by the first memory cell (e.g., the output current for the MSB bit is twice the output current for the next least significant bit); and at least one digital converter configured to provide at least one result based on the summed output currents.

[0718] In one embodiment, the magnitudes of the output currents from the first memory cell are configured to differ from each other by a power of 2 based on the significance of the corresponding bits.

[0719] In one embodiment, each of the first memory cells is a NAND flash memory cell (eg, Fig.32 The device further includes a common word line coupled to the gate of each first memory cell.

[0720] In one embodiment, when performing multiplication using the first memory cell, a fixed bias voltage is applied to the common word line.

[0721] In one embodiment, the apparatus further includes a select transistor (eg, 3210, 3212, 3214) coupling the first memory cell to the common line, wherein the first voltage is applied to a gate of the select transistor.

[0722] In one embodiment, the first voltage is applied as a series of input bits in a plurality of time slices, and each input bit has a different bit significance.

[0723] In one embodiment, the common line (eg, 3180) is a digit line (eg, 3208). The device further includes: a bit line coupled to the first memory cell; a select transistor coupling the bit line to the digit line; and a select line configured to control the select transistor.

[0724] In one embodiment, the memory cells of the array are resistive random access memory cells.

[0725] In one embodiment, an apparatus includes: a semiconductor substrate (eg, Fig.131302); a memory cell array having memory cells programmable to store weights for performing multiplication, wherein the memory cells are organized in horizontal layers of memory cells, and wherein the layers are stacked above a semiconductor substrate; and a controller (e.g., 3104) configured to: program first memory cells to store multi-bit weights, wherein each first memory cell stores a bit having one of a plurality of significances (e.g., MSB, MID, LSB); provide at least one input signal to the first memory cells, wherein the input signal is to be multiplied with the multi-bit weight, the first memory cells provide output currents based on the input signal, and the respective output currents from each first memory cell correspond to the significance of the bits stored by the respective first memory cells; and determine a result (e.g., 3177) based on summing the output currents from the first memory cells.

[0726] In one embodiment, the apparatus further includes a common line and accumulation circuitry, such as 3190. The common line is coupled to receive the output current from the first memory cell. The accumulation circuitry is coupled to the common line and configured to accumulate the output current.

[0727] In one embodiment, the result is a digital value. The apparatus further comprises at least one digital converter (eg, 3163) configured to provide a result based on the summed output current.

[0728] In one embodiment, the apparatus further includes an interface (eg, 125) operable to enable a host to write data to and read data from the first memory cell.

[0729] In one embodiment, the controller is further configured to receive first data associated with the artificial neural network from a host; and the multi-bit weight stored in the first memory cell corresponds to the first data.

[0730] In one embodiment, the first memory cell is positioned in one of the horizontal levels.

[0731] In one embodiment, a line (eg, a word line) is coupled to the control gate of each first memory cell, and an input signal is provided using the line.

[0732] In one embodiment, the apparatus further includes a select transistor coupling each first memory cell to a common line that accumulates the output current. An input signal is provided to a gate of the select transistor.

[0733] In one embodiment, the apparatus further includes sensing circuitry, such as 3142. The programming of the first memory cells includes: applying at least one voltage pulse to each first memory cell; measuring, by the sensing circuitry, a respective first output current from each first memory cell; and applying at least one additional voltage pulse to each first memory cell based on the corresponding measured first output current, such that the first output current from each first memory cell corresponds to the validity of a bit stored by the respective first memory cell.

[0734] Various embodiments related to a memory device that performs multiplication using memory cells with different bias levels based on bit significance are now described below. The generality of the description below is not limited by the various embodiments described above.

[0735] In one embodiment, a memory device performs an analog summation of 1-bit resultant currents with different bit significances implemented via different bias voltage levels. A memory cell (e.g., an RRAM cell or a NAND flash memory cell) can be programmed to have an exponentially increasing (e.g., increasing by powers of 2) current for different bias voltage levels.

[0736] In one embodiment, the memory cell may be programmed to have a threshold and exponentially increasing current for higher bias / applied voltages.A first voltage may be applied to the memory cell to allow a predetermined amount of current (indicated as 1X) to pass to represent a bit value of 1 for the least significant bit.

[0737] To represent a bit value of 1 for the second least significant bit, a second voltage may be applied to the memory cell to allow twice (indicated as 2X) the predetermined amount of current to pass, which is equal to the predetermined amount of current multiplied by the bit significance of the second least significant bit.

[0738] The memory cell may similarly be biased to have a higher current amount when the bit value is one that is equal to a predetermined current amount multiplied by the bit significance of the bit.

[0739] When different voltages are applied to memory cells that each represent a bit in a number so that the corresponding bit significance of each cell is built into the output current as described above, the results of multiplications involving the memory cells can be summed by connecting the memory cells to the line without having to individually convert the current of the bits for summing.

[0740] For example, a 3-bit resolution weight can be implemented using three memory cells. Each memory cell stores 1 bit of the 3-bit weight. Each memory cell is biased at a separate voltage level so that if it is programmed in a state representing 1, the current through the cell is the base unit multiplied by the bit significance of the cell. For example, the current through the cell storing the least significant bit (LSB) is 25nA per base unit, the cell storing the middle bit (MID) is 2x (50nA) per base unit, and the most significant bit (MSB) is 4x (100nA) per base unit.

[0741] In one embodiment, a solid state drive (SSD) or other storage device uses a memory cell array having memory cells. In one example, resistive random access memory (RRAM) cells are used. In one example, NAND or NOR flash memory cells are used.

[0742] In one embodiment, each memory cell can be programmed to store one bit of a multi-bit weight value. After programming, a voltage driver applies different voltages to bias the memory cell for performing multiplication. The input to be multiplied by the multi-bit weight value can be represented by a corresponding input pattern (e.g., as described above) applied to a select gate of a select transistor coupled to the memory cell or by varying different voltages between a fixed voltage state representing an input bit 1 and a zero state representing an input bit 0.

[0743] One or more common lines are coupled to the memory cells. The lines receive one or more output currents from the memory cells (eg, as described above). Each common line (eg, a digital or bit line) is used to add currents to sum the output currents.

[0744] In one example, the common line is a bit line extending vertically above the semiconductor substrate, as described above for Fig.13 Discussion. As an example, 512 memory cells are coupled to a line. Input is provided using a select line. Output current from each of the 512 memory cells is collected on the line, and then one or more total current magnitudes are digitized to provide a digital value.

[0745] In one example, the memory device includes one or more digitizers. The digitizers provide a digital result based on summing the output current from each of the 512 memory cells (eg, as described above).

[0746] In one embodiment, a digital value (eg, an integer) representing the current on the digit line is determined as a multiple of a predetermined current (eg, as described above) representing 1. For example, the digital value is an output from a digitizer.

[0747] In one embodiment, three memory cells store three-bit values ​​representing the storage weight. One bit is for the MSB, one bit is for the middle significant bit (sometimes indicated as "MID" herein), and one bit is for the LSB. This provides a multi-bit representation of the storage weight.

[0748] In one embodiment, the weighting of the output current from each of the three memory cells in the common line changes corresponding to the MSB, MID, or LSB significance of the bit stored by the memory cell. The weighting of the MSB significance (e.g., 100 nA current) is twice that of the MID significance (e.g., 50 nA current). The weighting of the MID significance is twice that of the LSB significance (e.g., 25 nA current). The weighting of the output current is determined by selecting the appropriate magnitude of the different voltages applied during the multiplication.

[0749] When the output current ratio of each memory cell takes into account the bit significance, when the results are added to obtain the accumulated result, the above-mentioned left shift is not required. Instead, the results can be added directly without left shift.

[0750] Fig.34 A NAND flash memory device for performing multiplication using memory cells with different bias levels based on bit significance is shown according to one embodiment. Fig.34 The architecture of the memory cell array 3402 is similar to that described above for Fig.32 However, different bias levels are applied to Fig.34 The memory cell is configured to generate an output current from the memory cell corresponding to the bit significance of the bit stored by the corresponding memory cell.

[0751] Memory cell array 3402 includes strings 3202, 3204, 3206 of NAND flash memory cells. As an example, memory cells 3220, 3231, 3224 store bits of multi-bit weights. In one embodiment, the memory cells are programmed using a unified programming algorithm. For example, the same programming voltage is applied to each of the memory cells when programming. One advantage of this approach is that programming of the memory cells can be performed more consistently and reliably. This can result in a reduction in memory cell read errors (e.g., errors caused by incorrect or inconsistent output currents) during multiplication.

[0752] After programming and when performing multiplication, different voltages V1, V2, V3 are applied to the respective memory cells as illustrated. The magnitudes of the different voltages are selected so that the output currents from the memory cells differ from each other by a power of 2 based on the relative bit significance of the bits stored by the respective memory cells. In one embodiment, the different voltages are selected by the controller 3403. In one example, the voltage V3 applied to the memory cell 3224 (storing the most significant bit) has a magnitude greater than the voltage V1 applied to the memory cell 3220 (storing the least significant bit) so that the output current of the memory cell 3224 is four times the base unit of the output current from the memory cell 3220.

[0753] In one embodiment, the input to be multiplied by the multi-bit weight stored in the memory cells 3220, 3231, 3224 is applied to the memory cells using the select gates of the select transistors 3210, 3212, 3214. In one example, different input voltages I1, I2, I3 are used to bias the select gates. The input voltages each have a first voltage level representing a 1 state and a second voltage level representing a 0 state.

[0754] In one embodiment, the input is a multi-bit input. In one example, the input is applied as a series of bits, each of which is applied in one of a series of time slices (eg, as described above).

[0755] In one embodiment, the inputs are supplied by varying different voltages V1, V2, V3 between a fixed voltage level representing input 1 and a zero voltage level representing input 0. In this embodiment, all select transistors are turned on because the input signal is applied to the gates of the memory cells and not the gates of the select transistors.

[0756] In one embodiment, the output current from each of the selected memory cells is accumulated on digit line 3208, for example similar to that described above for Fig.32 Discussion. The accumulated current is provided as an input to a digitizer 3406. The digitizer 3406 produces an output that is a digital value representing the result of the multiplication.

[0757] In one embodiment, voltage driver 3404 provides voltages V1, V2, V3. In one embodiment, controller 3403 controls voltage driver 3404. In one example, controller 3403 generates voltages V1, V2, V3 based on the voltages V1, V2, V3 obtained from a sensing circuit system (not shown) (e.g., Fig.32 The sensing circuit system 3142 reads the feedback provided by the memory cells to select the magnitude of different voltages to be applied.

[0758] In one embodiment, bias circuitry 3405 is used to apply a voltage to a select gate of a select transistor. The applied voltage represents inputs I1 , I2 , I3 (eg, input signals or patterns). Controller 3403 selects the voltage to apply by controlling bias circuitry 3405 .

[0759] Fig.35 An architecture is shown having resistive random access memory (RRAM) or NOR memory cells arranged in a parallel configuration in a memory cell array 3502 to perform multiplication according to one embodiment. For example, memory cells 3530, 3531, 3532 store respective significant bits of a multi-bit weight (indicated as Weight1). A simple 3-bit weight is illustrated, but more bits may be stored for each weight. When performing multiplication, each of the memory cells 3530, 3531, 3532 may be accessed in parallel. In one example, the memory cell array 3502 includes a plurality of memory cells 3530, 3531, 3532, each of which may be accessed in parallel. Fig. 9 Or memory cells arranged as described in 11.

[0760] Each memory cell provides an output current corresponding to the validity of the bit stored by the memory cell (e.g., such as described above for Fig.34 Memory cells 3530, 3531, 3532 are connected to a common line 3510 to accumulate output current. In one example, line 3510 is a bit line.

[0761] Different voltages V1, V2, V3 are applied to memory cells 3530, 3531, 3532 using word lines 3520, 3521, 3522. The voltages are selected so that the output current varies by powers of 2 based on the bit significance, such as described above.

[0762] In one embodiment, input signal I1 is applied to the gate of select transistor 3540. Select transistor 3540 is coupled to common line 3510. The output of select transistor 3540 provides the sum of output currents. In one embodiment, when input signal is applied to the gate of select transistor 3540, different voltages V1, V2, V3 are maintained at a constant voltage level.

[0763] In an alternative embodiment, the input pattern multiplied by Weight1 may be applied to word lines 3520, 3521, 3522 by varying different voltages V1, V2, V3 between a fixed voltage and zero voltage (similar to the above description) to represent input bits 1 or 0, respectively.

[0764] The memory cell array 3502 is formed over a semiconductor substrate 3504. In one embodiment, the memory cell array 3502 and the semiconductor substrate 3504 are positioned on different chips or wafers before being assembled (eg, combined by bonding).

[0765] Similarly, as described above for Weight1, multi-bit weights Weight2 and Weight3 may be stored in other memory cells of the memory cell array 3502, and the output currents are accumulated on common lines 3511, 3512, as illustrated. These other memory cells may be accessed using word lines 3520, 3521, 3522. Common lines 3511, 3512 are coupled to select transistors 3541, 3542, each of which provides the sum of the output currents as an output. Input patterns I2, I3 may be applied to the gates of the select transistors. Additional weights may be stored in the memory cell array 3502.

[0766] The output currents from the common lines 3510, 3511, 3512 are summed by summing circuitry 3550. In one embodiment, summing circuitry 3550 is formed in semiconductor substrate 3504 (eg, at the top surface).

[0767] In one embodiment, voltage driver 3506 and bias circuitry 3505 are formed in semiconductor substrate 3504. Logic circuitry (not shown) formed in semiconductor substrate 3504 is used to implement controller 3503. Controller 3503 controls voltage driver 3506 and bias circuitry 3505.

[0768] In one embodiment, voltage driver 3506 provides different voltages V1, V2, V3. Bias circuitry 3505 applies inputs I1, I2, I3.

[0769] Fig.36 A method for performing multiplication using memory cells with different bias levels based on bit significance is shown according to one embodiment. For example, Fig.36 The method can be used Fig.34 and 35 The multiplication and accumulation explained in Figure 1 is executed in the integrated circuit device 101.

[0770] Fig.36 The method may be performed by processing logic, which may include hardware (such as a processing device, a circuit system, a dedicated logic, a programmable logic, a microcode, hardware of a device, an integrated circuit, etc.), software (such as instructions running or executing on a processing device), or a combination thereof. In some embodiments, Fig.36 The method is at least partially performed by one or more processing devices (e.g. Figure 1 Executed by controller 124 or controller 3403, 3503).

[0771] Although shown in a particular sequence or order, the order of the processes may be modified unless otherwise specified. Therefore, the illustrated embodiments should be understood as examples only, and the illustrated processes may be performed in different orders, and some processes may be performed in parallel. In addition, one or more processes may be omitted in various embodiments. Therefore, not all processes are required in every embodiment. Other process flows are possible.

[0772] At block 3601, memory cells are programmed to store multi-bit weights. In one example, memory cells 3220, 3231, 3224 are programmed to store multi-bit weights. In one example, memory cells 3530, 3531, 3532 are programmed to store multi-bit weights.

[0773] At block 3603, different bias voltages are applied to the memory cells. The voltages correspond to the validity of the bits stored in the corresponding memory cells. In one example, when performing multiplication, Fig.34 Voltages V1, V2, and V3 are applied to the memory cells.

[0774] At block 3605, an input pattern is applied to the memory cell. In one example, the input pattern is Fig.34 Inputs I1, I2, I3.

[0775] At block 3607, the output currents from the memory cells are summed on at least one common line. In one example, the common line is line 3208. In one example, the common line is line 3510.

[0776] At block 3609, at least one result is determined from the summed output currents. In one example, the digitizer 3406 provides the result. In one example, the summing circuitry 3550 provides the sum of the currents used to determine the result.

[0777] In one embodiment, a device includes: a memory cell array (e.g., 3402) having NAND flash memory cells, wherein each memory cell is programmable to store a bit having one of a plurality of significances, and wherein first memory cells (e.g., 3220, 3231, 3224) are configured to store a first multi-bit weight; a voltage driver (e.g., 3404) configured to apply a different voltage to a control gate of each of the first memory cells during multiplication, wherein the magnitude of each voltage corresponds to the significance of the bit stored by the respective first memory cell; a bias circuit system (e.g., 3405) for providing an input that is multiplied by the first multi-bit weight; a common line (e.g., 3208) coupled to each of the first memory cells, wherein the common line is configured to sum output currents from the first memory cells; and at least one digital converter (e.g., 3406) configured to provide at least one result based on the summed output currents.

[0778] In one embodiment, when the memory cell is programmed to represent a bit value of 1, the respective output current from each first memory cell corresponds to the validity of the respective bit stored by the first memory cell.

[0779] In one embodiment, the different voltages include a first voltage (e.g., V3) applied to one of the first memory cells storing the most significant bit of a first multi-bit weight and a second voltage applied to another of the first memory cells storing the next least significant bit of the first multi-bit weight; and the magnitude of the output current from the memory cell storing the most significant bit is twice the magnitude of the output current from the memory cell storing the next least significant bit.

[0780] In one embodiment, during multiplication, each of the first memory cells is a selected cell in a respective string of memory cells connected in series, and the other cells in each respective string are biased as non-selected cells during multiplication.

[0781] In one embodiment, each of the first memory cells is coupled to a common line through a respective select transistor (eg, 3210, 3212, 3214).

[0782] In one embodiment, providing the input includes using bias circuitry to apply a corresponding voltage to bias the gate of each select transistor.

[0783] In one embodiment, providing the input includes providing a multi-bit input (eg, 1010010) in a series of time slices, each time slice corresponding to a respective bit of the input.

[0784] In one embodiment, each of the first memory cells is programmed to represent a bit value of 1 or 0, and a programming algorithm for programming each of the first memory cells applies a uniform programming voltage to (eg, applies the same series of fixed programming pulses to) each memory cell.

[0785] In one embodiment, the magnitudes of the different voltages are selected such that the output currents from the first memory cell differ from each other by a power of two based on the relative bit significance of the bits stored in the first memory cell.

[0786] In one embodiment, a device includes: a semiconductor substrate (e.g., 3504); a memory cell array (e.g., 3502) having memory cells programmable to store weights for performing multiplication, wherein the memory cells are arranged so that each memory cell (e.g., an RRAM or NOR flash memory cell) can be accessed in the memory cell array in parallel with other memory cells of the array, and wherein the memory cell array is positioned above the semiconductor substrate; and a voltage driver positioned in the semiconductor substrate, the voltage driver being configured to apply a voltage to the memory cell.

[0787] A controller (e.g., 3503) is configured to: program first memory cells to store multi-bit weights, wherein each first memory cell stores a bit having one of a plurality of significances; apply a different voltage to each of the first memory cells using a voltage driver, wherein applying the different voltages causes a corresponding output current from each first memory cell to correspond to the significance of the bit stored by the first memory cell; apply an input pattern (e.g., a series of bits applied as input I1) to the first memory cells, wherein the input pattern is multiplied by the multi-bit weight; and determine a result from applying the input pattern based on summing the output currents from the first memory cells.

[0788] In one embodiment, applying the different voltages includes biasing a control gate of a first memory cell (eg, a NOR flash memory cell).

[0789] In one embodiment, the first memory cells are resistance random access memory cells, and applying different voltages includes applying a different voltage across each first memory cell.

[0790] In one embodiment, applying the input pattern includes applying at least one voltage to a gate of a select transistor that couples the first memory cell to a common line for summing the output current.

[0791] In one embodiment, applying the input pattern includes applying different voltages such that each different voltage is a different bias voltage representing an input bit of 1 or a bias voltage representing an input bit of 0.

[0792] In one embodiment, a bias voltage representing an input bit of 0 results in an output current from the corresponding memory cell that is below a threshold magnitude (eg, negligible current) and corresponds to a 0 output from the memory cell.

[0793] In one embodiment, the first memory cell is a NOR flash memory cell and is programmed by applying a first voltage to a control gate of the first memory cell. The first voltage has a magnitude greater than one of the different voltages applied for a stored most significant bit representing a value of one.

[0794] In one embodiment, the apparatus further includes a word line (eg, 3520, 3521, 3522) coupled to the first memory cell, wherein different voltages are applied to the word line.

[0795] In one embodiment, the apparatus further includes a bit line (eg, 3510) coupled to each of the first memory cells, wherein the output currents are accumulated using the bit lines.

[0796] In one embodiment, the apparatus further comprises at least one digitizer that uses the result as input to produce an output, wherein the output is a product of the input pattern multiplied by the multi-bit weight value.

[0797] In one embodiment, a method includes: receiving a first command from a host; in response to receiving the first command, programming memory cells to each store a bit having one of a plurality of significances; applying a different voltage to each memory cell (e.g., a voltage applied to a control gate of each NAND flash memory cell or a voltage across each RRAM cell, as described above), wherein the magnitude of each voltage corresponds to the significance of the bit stored by the respective memory cell; applying input to the memory cells (e.g., by varying different voltages between a fixed voltage state or a 0 state or by using a select transistor, as described above); accumulating output currents from the memory cells; providing at least one result based on the accumulated output currents; receiving a second command from the host; and in response to receiving the second command, sending the result to the host.

[0798] Integrated circuit device 101 (e.g., as in Figure 1 ) can be configured as a storage device, a memory module, or a mixture of a storage device and a memory module. Examples of storage devices include solid-state drives (SSDs), flash drives, universal serial bus (USB) flash drives, embedded multimedia controller (eMMC) drives, universal flash storage (UFS) drives, secure digital (SD) cards, and hard disk drives (HDDs). Examples of memory modules include dual in-line memory modules (DIMMs), small outline DIMMs (SO-DIMMs), and various types of non-volatile dual in-line memory modules (NVDIMMs).

[0799] Integrated circuit device 101 (e.g., as in Figure 1 The image sensor (in the embodiment of the present invention) can be installed in a computing system as a memory subsystem with embedded image sensor and inference computing capability. Such computing system can be a computing device, such as a desktop computer, a laptop computer, a network server, a mobile device, a part of a vehicle (such as an airplane, a drone, a train, a car or other transportation vehicle), an Internet of Things (IoT) enabled device, an embedded computer (such as an embedded computer included in a vehicle, industrial equipment or a networked commercial device), or such a computing device including a memory and a processing device.

[0800] Generally speaking, a computing system may include a computer coupled to one or more memory subsystems (e.g., Figure 1 In one example, the host system is coupled to a memory subsystem.

[0801] As used herein, "coupled to" or "coupled with..." generally refers to a connection between components, which can be an indirect communication connection or a direct communication connection (e.g., without intervening components), whether wired or wireless, including connections such as electrical, optical, magnetic, etc.

[0802] For example, the host system may include a processor chipset (e.g., a processing device) and a software stack executed by the processor chipset. The processor chipset may include one or more cores, one or more caches, a memory controller (e.g., an NVDIMM controller), and a storage protocol controller (e.g., a PCIe controller, a SATA controller). The host system uses the memory subsystem, for example, to write data to the memory subsystem and read data from the memory subsystem.

[0803] The host system may be coupled to the memory subsystem via a physical host interface. Examples of the physical host interface include, but are not limited to, a serial advanced technology attachment (SATA) interface, a peripheral component interconnect express (PCIe) interface, a universal serial bus (USB) interface, a fiber channel, a serial attached SCSI (SAS) interface, a double data rate (DDR) memory bus interface, a small computer system interface (SCSI), a dual in-line memory module (DIMM) interface (e.g., a DIMM socket interface supporting double data rate (DDR)), an open NAND flash interface (ONFI), a double data rate (DDR) interface, a low power double data rate (LPDDR) interface, a compute express link (CXL) interface, or any other interface. The physical host interface may be used to transfer data between the host system and the memory subsystem. When the memory subsystem is coupled to the host system through a PCIe interface, the host system may further utilize an NVM express (NVMe) interface to access components (e.g., memory devices). The physical host interface may provide an interface for transferring control, address, data, and other signals between the memory subsystem and the host system. In general, a host system may access multiple memory subsystems via the same communication connection, multiple separate communication connections, or a combination of communication connections.

[0804] The processing device of the host system may be, for example, a microprocessor, a central processing unit (CPU), a processing core of a processor, an execution unit, etc. In some examples, the controller may be referred to as a memory controller, a memory management unit, or an initiator. In one example, the controller controls communication via a bus coupled between the host system and the memory subsystem. In general, the controller may send commands or requests to the memory subsystem to obtain desired access to the memory device. The controller may further include an interface circuit system that communicates with the memory subsystem. The interface circuit system may convert responses received from the memory subsystem into information for the host system.

[0805] The controller of the host system may communicate with the controller of the memory subsystem to perform operations such as reading data, writing data, or erasing data at the memory device and other such operations. In some examples, the controller is integrated into the same package of the processing device. In other examples, the controller is separate from the package of the processing device. The controller or processing device may include hardware, such as one or more integrated circuits (ICs), discrete components, buffer memory or cache memory, or a combination thereof. The controller or processing device may be a microcontroller, a dedicated logic circuit system (such as a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), etc.), or another suitable processor.

[0806] A memory device may include any combination of different types of non-volatile memory components and volatile memory components. A volatile memory device may be, but is not limited to, a random access memory (RAM) such as dynamic random access memory (DRAM) and synchronous dynamic random access memory (SDRAM).

[0807] Some examples of non-volatile memory components include NAND (or NOT AND) type flash memory and write-in-place memory, such as three-dimensional cross-point ("3D cross-point") memory. Cross-point non-volatile memory arrays can perform bit storage based on bulk resistance changes in conjunction with a stackable cross-grid data access array. In addition, compared to many flash-based memories, cross-point non-volatile memories can perform write-in-place operations, where non-volatile memory cells can be programmed without first erasing the non-volatile memory cells. NAND-type flash memory includes, for example, two-dimensional NAND (2D NAND) and three-dimensional NAND (3D NAND).

[0808] Each of the memory devices may include one or more memory cell arrays. One type of memory cell, such as a single-level cell (SLC), may store one bit per cell. Other types of memory cells, such as multi-level cells (MLC), three-level cells (TLC), four-level cells (QLC), and five-level cells (PLC), may store multiple bits per cell. In some embodiments, each of the memory devices may include one or more memory cell arrays, such as SLC, MLC, TLC, QLC, PLC, or any combination of such. In some embodiments, a particular memory device may include an SLC portion, an MLC portion, a TLC portion, a QLC portion, or a PLC portion of a memory cell, or any combination thereof. The memory cells of a memory device may be grouped into pages, which may refer to a logical unit of a memory device for storing data. With respect to some types of memory, such as NAND, pages may be grouped to form blocks.

[0809] Although non-volatile memory devices such as 3D cross-point type and NAND type memory (e.g., 2D NAND, 3D NAND) are described, the memory device may be based on any other type of non-volatile memory, such as read-only memory (ROM), phase change memory (PCM), self-select memory, other chalcogenide-based memory, ferroelectric transistor random access memory (FeTRAM), ferroelectric random access memory (FeRAM), magnetic random access memory (MRAM), spin transfer torque (STT)-MRAM, conductive bridging RAM (CBRAM), resistive random access memory (RRAM), oxide-based RRAM (OxRAM), NOR (NOR) flash memory, and electrically erasable programmable read-only memory (EEPROM).

[0810] A memory subsystem controller (or simply controller) may communicate with a memory device to perform operations such as reading data, writing data, or erasing data at the memory device and other such operations (e.g., in response to commands dispatched by the controller on a command bus). The controller may include hardware such as one or more integrated circuits (ICs), discrete components, or buffer memory, or a combination thereof. The hardware may include digital circuitry with dedicated (i.e., hard-coded) logic to perform the operations described herein. The controller may be a microcontroller, dedicated logic circuitry (e.g., a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), etc.), or another suitable processor.

[0811] The controller may include a processing device (processor) configured to execute instructions stored in a local memory. In the illustrated example, the local memory of the controller includes an embedded memory configured to store instructions for executing various processes, operations, logic flows, and routines that control the operation of the memory subsystem, including handling communications between the memory subsystem and the host system.

[0812] In some embodiments, the local memory may include memory registers that store memory pointers, fetch data, etc. The local memory may also include a read-only memory (ROM) for storing microcode. While the example memory subsystem includes a controller, in another embodiment of the present disclosure, the memory subsystem does not include a controller, but may instead rely on external control (e.g., provided by an external host or by a processor or controller separate from the memory subsystem).

[0813] In general, the controller may receive commands or operations from the host system and may convert the commands or operations into instructions or appropriate commands to achieve the desired access to the memory device. The controller may be responsible for other operations such as wear leveling operations, obsolete item collection operations, error detection and error correction code (ECC) operations, encryption operations, cache operations, and address translation between logical addresses (e.g., logical block addresses (LBAs), namespaces) and physical addresses (e.g., physical block addresses) associated with the memory device. The controller may further include a host interface circuit system that communicates with the host system via a physical host interface. The host interface circuit system may convert commands received from the host system into command instructions to access the memory device and also convert responses associated with the memory device into information for the host system.

[0814] The memory subsystem may also include additional circuitry or components not illustrated. In some embodiments, the memory subsystem may include a cache or buffer (such as DRAM) and address circuitry (such as row decoders and column decoders) that can receive addresses from a controller and decode the addresses to access memory devices.

[0815] In some embodiments, a memory device includes a local media controller that operates in conjunction with a memory subsystem controller to perform operations on one or more memory cells of the memory device. An external controller (e.g., a memory subsystem controller) can externally manage the memory device (e.g., perform media management operations on the memory device). In some embodiments, the memory device is a managed memory device, which is a raw memory device combined with a local media controller for media management within the same memory device package. An example of a managed memory device is a managed NAND (MNAND) device.

[0816] The controller or memory device may include a storage manager configured to implement the storage functions discussed above. In some embodiments, the controller in the memory subsystem includes at least a portion of the storage manager. In other embodiments or in combination, the controller or processing device in the host system includes at least a portion of the storage manager. For example, the controller or processing device may include logic circuitry that implements the storage manager. For example, the controller or processing device (processor) of the host system may be configured to execute instructions stored in the memory for performing the operations of the storage manager described herein. In some embodiments, the storage manager is implemented in an integrated circuit chip disposed in the memory subsystem. In other embodiments, the storage manager may be part of the firmware of the memory subsystem, the operating system of the host system, a device driver or application, or any combination thereof.

[0817] In one embodiment, an example machine of a computer system in which a set of instructions for causing the machine to perform any one or more of the methodologies discussed herein may be executed. In some embodiments, the computer system may correspond to a host system that includes, is coupled to, or utilizes a memory subsystem or may be used to perform the operations described above. In alternative embodiments, the machine may be connected (e.g., networked) to other machines in a LAN, an intranet, an extranet, or the Internet, or any combination thereof. The machine may operate as a server or a client machine in a client-server network environment, as a peer machine in a peer-to-peer (or distributed) network environment, or as a server or a client machine in a cloud computing infrastructure or environment.

[0818] The machine may be a personal computer (PC), a tablet PC, a set-top box (STB), a personal digital assistant (PDA), a cellular phone, a network appliance, a server, a network router, a switch or a bridge, a network attached storage facility, or any machine capable of executing (sequentially or otherwise) a set of instructions that specify actions to be taken by the machine. Furthermore, while a single machine is described, the term "machine" shall also be taken to include any collection of machines that individually or jointly execute a set (or multiple sets) of instructions to perform any one or more of the methodologies discussed herein.

[0819] An example computer system includes a processing device, a main memory (e.g., read-only memory (ROM), flash memory, dynamic random access memory (DRAM) (e.g., synchronous DRAM (SDRAM) or Rambus DRAM (RDRAM)), static random access memory (SRAM), etc.), and a data storage system, which communicate with each other via a bus (which may include multiple buses).

[0820] The processing device may be one or more general purpose processing devices, such as a microprocessor, a central processing unit, or the like. More specifically, the processing device may be a complex instruction set computing (CISC) microprocessor, a reduced instruction set computing (RISC) microprocessor, a very long instruction word (VLIW) microprocessor, or a processor implementing other instruction sets or several processors implementing a combination of instruction sets. The processing device may also be one or more special purpose processing devices, such as an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), a digital signal processor (DSP), a network processor, or the like. The processing device is configured to execute instructions for performing the operations and steps discussed herein. The computer system may further include a network interface device to communicate via a network.

[0821] The data storage system may include a machine-readable medium (also referred to as a computer-readable medium) on which is stored one or more sets of instructions or software embodying any one or more of the methods or functions described herein. The instructions may also reside completely or at least partially within a main memory and / or within a processing device during their execution by a computer system, the main memory and the processing device also constituting a machine-readable storage medium. The machine-readable medium, data storage system, or main memory may correspond to a memory subsystem.

[0822] In one embodiment, the instructions include instructions for implementing functionality corresponding to the above-described operations. Although the machine-readable medium is shown as a single medium in the example embodiment, the term "machine-readable storage medium" should be deemed to include a single medium or multiple media storing one or more sets of instructions. The term "machine-readable storage medium" should also be deemed to include any medium capable of storing or encoding a set of instructions executed by a machine and causing the machine to perform any one or more of the methodologies of the present disclosure. The term "machine-readable storage medium" should accordingly be deemed to include (but not limited to) solid-state memory, optical media, and magnetic media.

[0823] Some portions of the foregoing detailed description have been presented in terms of algorithms and symbolic representations of operations on data bits within a computer memory. These algorithmic descriptions and representations are the means used by those skilled in the data processing arts to most effectively convey the substance of their work to others skilled in the art. An algorithm is generally conceived here to be a self-consistent sequence of operations leading to a desired result. Operations are those requiring physical manipulation of physical quantities. Typically, but not necessarily, these quantities take the form of electrical or magnetic signals capable of being stored, combined, compared, and otherwise manipulated. It has proven convenient at times, principally for reasons of common usage, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, or the like.

[0824] It should be remembered, however, that all of these and similar terms should be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. The present disclosure may involve the actions and processes of computer systems or similar electronic computing devices that manipulate and transform data represented as physical (electronic) quantities within the computer system's registers and memories into other data similarly represented as physical quantities within the computer system's memories or registers or other such information storage systems.

[0825] The present disclosure also relates to an apparatus for performing the operations herein. This apparatus may be specially constructed for the intended purpose, or it may comprise a general purpose computer selectively activated or reconfigured by a computer program stored in the computer. This computer program may be stored in a computer-readable storage medium, such as (but not limited to) any type of disk (including floppy disks, optical disks, CD-ROMs, and magneto-optical disks), read-only memory (ROM), random access memory (RAM), EPROM, EEPROM, magnetic or optical cards, or any type of medium suitable for storing electronic instructions, each coupled to a computer system bus.

[0826] The algorithms and displays presented herein are not inherently related to any particular computer or other device. Various general purpose systems may be used with the program according to the teachings herein, or it may prove convenient to construct more specialized equipment to perform the method. The structures of various these systems will appear as set forth in the description below. In addition, the present disclosure is not described with reference to any particular programming language. It should be appreciated that various programming languages ​​may be used to implement the teachings of the present disclosure described herein.

[0827] In one embodiment, the memory device includes a voltage driver (eg, Figure 3 The controller is dictated by firmware or other software. The software may be stored on a machine-readable medium as instructions that may be used to program the controller. A machine-readable medium includes any mechanism for storing information in a form that can be read by a machine (e.g., a computer). In some embodiments, a machine-readable (e.g., computer-readable) medium includes a machine (e.g., computer) readable storage medium, such as a read-only memory ("ROM"), a random access memory ("RAM"), a magnetic disk storage medium, an optical storage medium, a flash memory component, etc.

[0828] In this description, various functions and operations may be described as being performed or caused by computer instructions to simplify the description. However, those skilled in the art will recognize that such statements mean that the functions are generated by one or more controllers or processors (such as microprocessors) executing computer instructions. Alternatively or in combination, the functions and operations may be implemented using dedicated circuit systems with or without software instructions, such as using application specific integrated circuits (ASICs) or field programmable gate arrays (FPGAs). Embodiments may be implemented using hard-wired circuit systems without or in combination with software instructions. Therefore, the technology is neither limited to any specific combination of hardware circuit systems and software, nor to any specific source of instructions executed by a data processing system.

[0829] Unless expressly stated otherwise, disjunctive language such as the phrase "at least one of X, Y, or Z" should be understood as generally used to indicate that an item, term, etc. may be X, Y, or Z, or any combination thereof (e.g., X, Y, and / or Z), depending on the context. Thus, such disjunctive language is generally not intended to, and should not, imply that certain embodiments require the presence of at least one X, at least one Y, or at least one Z, respectively.

[0830] In the above description, embodiments of the present disclosure have been described with reference to specific example embodiments of the present disclosure. It should be understood that various modifications may be made to the present disclosure without departing from the broader spirit and scope of the embodiments of the present disclosure as set forth in the appended claims. The description and drawings should accordingly be regarded as intended to be illustrative rather than restrictive.

Claims

1. A device comprising: A memory cell array having memory cells; a voltage driver configured to apply a different voltage to a control gate of each of the first memory cells during multiplication, wherein the magnitude of each voltage corresponds to the significance of a bit stored by the respective first memory cell; bias circuitry for providing an input for multiplication by the first multi-bit weight; and A common line is coupled to each of the first memory cells, wherein the common line is configured to sum output currents from the first memory cells.

2. The device of claim 1, wherein the respective output current from each first memory cell corresponds to the significance of the respective bit stored by the first memory cell when the memory cell is programmed to represent a bit value of 1.

3. The device according to claim 1, wherein: The different voltages include a first voltage applied to one of the first memory cells storing a most significant bit of the first multi-bit weight value and a second voltage applied to another one of the first memory cells storing a next least significant bit of the first multi-bit weight value; and The magnitude of the output current from the memory cell storing the most significant bit is twice the magnitude of the output current from the memory cell storing the next least significant bit.

4. The device of claim 1 , wherein during multiplication, each of the first memory cells is a selected cell in a respective string of memory cells connected in series, and wherein other cells in each respective string are biased as non-selected cells during the multiplication.

5. The device of claim 1, wherein each of the first memory cells is coupled to the common line through a respective select transistor.

6. The apparatus of claim 5, wherein providing the input comprises using the bias circuitry to apply a respective voltage to bias the gate of each select transistor.

7. The apparatus of claim 1, wherein providing the input comprises providing a multi-bit input in a series of time slices, each time slice corresponding to a respective bit of the input.

8. The device of claim 1, wherein each of the first memory cells is programmed to represent a bit value of 1 or 0, and a programming algorithm used to program each of the first memory cells applies a uniform programming voltage to each memory cell.

9. The device of claim 1, wherein magnitudes of the different voltages are selected such that the output currents from the first memory cells differ from each other by a power of two based on relative bit significance of the bits stored in the first memory cells.

10. A device comprising: a memory cell array having memory cells programmable to store weights for performing multiplication; and A controller configured to: programming the first memory cells to store a multi-bit weight value, wherein each first memory cell stores a bit having one of a plurality of significances; applying a different voltage to each of the first memory cells; and A result from applying an input pattern is determined based on summing the output currents from the first memory cells.