Memory device performing signed multiplication using logic states of memory cells

By integrating memory and inference calculations in the same integrated circuit and parallelizing the memory access function, the problem of data transmission bandwidth and power consumption between the computing unit and memory in deep learning is solved, and the efficiency of matrix-vector multiplication and AI applications are improved. performance.

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

Patent Information

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

AI Technical Summary

Technical Problem

In the existing technology, the memory bandwidth limitations and power consumption bottlenecks caused by the frequent movement of data back and forth between the computing unit and the memory in deep learning present significant challenges, especially in edge AI applications.

Method used

Integrate memory and inference calculations in the same integrated circuit, and use the logic state of the memory unit to perform matrix-vector multiplication. By parallelizing the memory access function and accumulation function, the use of digital logic gates is reduced and the efficiency of matrix-vector multiplication is improved.

Benefits of technology

It achieves more efficient matrix-vector multiplication operations, reduces power consumption and silicon area consumption, and improves the computing performance and accuracy of AI applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118629468A_ABST
    Figure CN118629468A_ABST
Patent Text Reader

Abstract

Systems, methods, and apparatus related to memory devices that perform signed multiplications using logic states of memory cells are disclosed herein. In one method, a memory device has a memory array that includes a set of memory cells programmed to store symbol weights in each set (e.g., four cells in a set store symbol weights + 1, 0, or-1). A voltage representing a signed input (e.g., + 1, 0, or-1) is applied to the memory cells to perform the multiplication. A result of the multiplication is determined based on a summation of output currents from the memory cells.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Related Applications

[0002] This application claims priority to Provisional U.S. Patent Application No. 63 / 489,371, 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 signed multiplication using logic states of memory cells. Background Art

[0004] Image sensors and other sensors can generate large amounts of data. In some applications, it is inefficient to send certain types of data from the sensor to a general-purpose microprocessor (e.g., a central processing unit (CPU)) for processing. For example, it is inefficient to send image data from an image sensor to a microprocessor for image segmentation, object recognition, feature extraction, etc.

[0005] Some image processing may involve intensive calculations involving multiplication of columns or matrices of elements for accumulation. Some specialized circuits have been developed to accelerate multiplication and accumulation operations. For example, a multiplier-accumulator (MAC unit) can be implemented using a set of parallel computational logic circuits to achieve higher computational performance than a general-purpose microprocessor. Summary of the invention

[0006] In one aspect, the present disclosure provides a device comprising: a semiconductor substrate; a plurality of sets of memory cells, wherein each set of memory cells is programmable to store signed weights for performing multiplication; a voltage driver configured to apply a voltage to the sets of memory cells for performing the multiplication; and at least one line coupled to the memory cells in each set, wherein the line is configured to sum output currents from the memory cells. BRIEF DESCRIPTION OF THE DRAWINGS

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

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

[0009] Figure 2 A calculation 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.

[0010] Figure 3 A computation is shown in which a list of multi-bit weights is multiplied by a list of input bits to provide an accumulated result, according to one embodiment.

[0011] Figure 4 A calculation is shown in which a multi-bit weight column is multiplied by a multi-bit input column using inputs at multiple time instants to provide an accumulated result according to one embodiment.

[0012] Figure 5 A calculation is shown of multiplying a multi-bit weight column by a multi-bit input column using pulse width modulation (PWM) of the input to provide an accumulated result according to one embodiment.

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

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

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

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

[0017] 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.

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

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

[0020] Fig.13 Exemplary memory cells of a three-dimensional memory array formed above a semiconductor substrate according to one embodiment are shown.

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

[0022] Fig.15 A three dimensional array of memory cells arranged in a parallel configuration with individual selectors is shown according to one embodiment. DETAILED DESCRIPTION

[0023] 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 (e.g., 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.

[0024] The application of artificial intelligence (AI) acceleration is developing rapidly. Deep learning technology plays a key role in this emerging field and has 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 (DLA) (e.g., GPUs, TPUs, and embedded NPUs) have been introduced to provide the required efficient implementation of 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.

[0025] 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 that introduces latency and bandwidth limitations and adds significant power consumption overhead. As AI applications continue to demand higher accuracy and higher speed, larger DNN models with large numbers of weights and activations are being developed and implemented. The bottlenecks created by memory bandwidth and power consumption on inter-chip data movement are significant technical issues.

[0026] To address these and other technical issues, a memory device integrates memory and processing. In one example, memory and reasoning computing processing are integrated in 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 to perform reasoning computing on image data from an image sensor using the memory cell array. In some embodiments, the memory device includes other types of sensors (e.g., LIDAR, radar, sound) or is used with other types of sensors.

[0027] Existing methods for matrix-vector multiplication use digital logic gates. Compared to the various embodiments described below, the digital logic implementation is more complex, consumes more silicon area, and dissipates more power. These embodiments effectively reduce multiplication to a memory access function that can be parallelized in an array. The accumulation function is performed 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.

[0028] In one embodiment, the image sensor is configured with analog capabilities to support inference computations (e.g., 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.

[0029] The memory chip may have multiple layers of memory cells. Each memory cell may be programmed to store a bit of a binary representation of an integer weight. A voltage may be applied to each input line according to the bit 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 on a row of memory cells according to the bits of an input vector.

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

[0031] The output current of the memory cell representing the result of the 1-bit weight column stored in the memory cell and multiplied by the 1-bit input column respectively 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 / digital converter or another digital converter. Such results of 1-bit to 1-bit multiplication and accumulation can be performed for different significant bits of the weight and different significant bits of the input. 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 multiplication and accumulation of multi-bit weights and multi-bit inputs, as further discussed below.

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

[0033] Various embodiments of memory devices that perform multiplication using logic states of memory cells are described below. The memory devices typically have memory cells arranged in an array, where each memory cell is programmed to allow a certain amount of current to flow 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 flow to represent a second logic state (e.g., a second value stored in the memory cell), e.g., when a voltage is applied in a predetermined voltage region.

[0034] The memory device performs calculations based on applying voltages in a digital manner 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 for a cell programmed at a first value. In one example, an analog-to-digital converter is used to convert the current into a digital result of a sum of bit-by-bit multiplications. Various implementations that perform bit-by-bit multiplications and extend these multiplications to multiplications involving multiple bits are described below.

[0035] 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.

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

[0037] In various embodiments using chalcogenide memory cells, multiplication and other processing are performed by operating the chalcogenide memory cells in the subthreshold region. This is to avoid thresholding or snapping of any memory cell, which would normally prevent proper multiplication (e.g., due to the large, undesirable output current associated with the snapping).

[0038] 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 to be multiplied by the respective weight of each memory cell, and the voltage is applied so that the operation of the memory cell remains in a subthreshold mode during the multiplication.

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

[0040] In one embodiment, the memory device implements unsigned 1-bit to 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 flow 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 flow through the memory cell.

[0041] 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 voltage / snapback voltage of each memory cell programmed to the "1 state". In general, the memory cells can be operated in a subthreshold mode for any type of cell (e.g., other phase change memory cells or NAND cells) as may be desired. However, not all embodiments require subthreshold mode operation.

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

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

[0044] When a voltage configured to represent an input of 1 or 0 as described above is applied to a memory cell that is programmed to a "1 state" or a "0 state" as discussed above to represent a weight of 1 or 0, the amount of current flowing 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 that a 1-bit input is multiplied by a 1-bit weight to produce a 1-bit output in all possible variations of the input and weight.

[0045] Thus, the memory cell is used to perform unsigned 1-bit to 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 sensing whether a current flowing through the memory cell (an output current from the memory cell) is a predetermined amount.

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

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

[0048] 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 to 1-bit multiplication, as described above.

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

[0050] The summation of the results represented by the output currents from the sets of memory cells (each set 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 results 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 results 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 results 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.

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

[0052] In one embodiment, the memory device implements time-sliced ​​unsigned multi-bit to 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 in the same predetermined number of clock cycles (e.g., Figure 4 Each cycle produces the output as described above for unsigned 1-bit to multi-bit multiplication.

[0053] The result of an unsigned 1-bit to multi-bit multiplication (e.g., as discussed above) obtained for each clock cycle may be shifted left according to the position of the bit of the input applied 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 of the second least significant bit is shifted left by 1 bit; the result of the third least significant bit is shifted left by 2 bits; etc. The shifted results of the clock cycles are summed in digital form.

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

[0055] In one embodiment, the memory device uses pulse width modulation (PWM) to perform unsigned multi-bit to multi-bit multiplication. As described above, an input voltage pulse is applied to multiple memory cells to generate a current output. The width of the voltage pulse (e.g., a time length 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.

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

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

[0058] 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 having logic circuits 121 and 123 , an integrated circuit die 103 having an image sensing pixel array 111 , and an integrated circuit die 105 having a memory cell array 113 .

[0059] 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.

[0060] exist Figure 1 , an integrated circuit die 105 having a memory cell array 113 also includes a voltage driver 115 and a current to digital converter 117. The memory cell array 113 is connected so that the currents generated by the memory cells in response to the voltage applied by the voltage driver 115 are summed for the columns of memory cells in the array 113 (e.g., as in Figure 2 and Figure 3 and digitize the summed current 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 the input column, and perform shifting and summing to produce a weight column or a matrix multiplied by the input column and accumulated.

[0061] The inference logic circuit 123 may also be configured to perform inference calculations (e.g., calculations of an artificial neural network) based on the weights stored in the memory cell array 113 and the inputs derived from the image data generated by the image sensing pixel array 111. Optionally, the inference logic circuit 123 may include a programmable processor that can execute an instruction set 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 the weights stored in the memory cell array 113. Optionally, the inference logic circuit 123 is implemented via an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or the core of a programmable microprocessor.

[0062] 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.

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

[0064] 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.

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

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

[0067] 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 .

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

[0069] The interface 125 of the integrated circuit device 101 may be configured to support a memory access protocol, or a storage device access protocol, or any combination thereof. Thus, an external device (e.g., 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.

[0070] 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.

[0071] From the perspective of a device communicating with the interface 125, the integrated circuit device 101 may appear 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 weight matrices and instructions for 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 results of inference calculations controlled by the inference logic circuit 123.

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

[0073] Controllable Figure 1 The voltage driver 115 in the array 113 applies 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.

[0074] A typical memory cell in array 113 has a non-linear current-to-voltage curve. When the threshold voltage of the memory cell is programmed to a first level to represent a stored value of one, the memory cell allows a predetermined amount of current to flow when a predetermined read voltage above the first level is applied to the memory cell. When the predetermined read voltage is not applied (e.g., the applied voltage is zero), the memory cell allows a negligible amount of current to flow compared to the predetermined amount of current.

[0075] On the other hand, when the threshold voltage of the memory cell is programmed to a second level above the predetermined read voltage to represent a stored value of zero, the memory cell allows a negligible amount of current to flow 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 flowing 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 digitization for shifting and summing to perform multiplication and accumulation of multi-bit weights with multi-bit inputs, as discussed further below.

[0076] Figure 2 A calculation 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. 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 stored with one bit per memory cell.

[0077] , 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.

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

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

[0080] Similarly, current 219 flowing 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 flowing 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.

[0081] The output currents 209, 219, ..., and 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. A constant voltage (eg, ground or -1V) is maintained on the bit line when the output currents are summed.

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

[0083] The sum of the negligible amounts of current from the memory cells connected to line 241 is small when compared to unit current 232 (e.g., a predetermined amount of current). Therefore, the presence of the negligible amounts of current from the memory cells does not change result 237 and is negligible in the operation of analog-to-digital converter 245.

[0084] 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.

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

[0086] In general, the weights involved in multiplication and accumulation operations can be larger than one bit. Multiple columns of memory cells can be used to store different significant bits of the weights, such as Figure 3 to perform multiplication and accumulation operations.

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

[0088] 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 zero so that memory cells 217, ..., 227 output a negligible amount of current into line 241 (e.g., as a bit line). Input bit 201 is set to one so that voltage driver 203 applies a predetermined read voltage. Thus, result 237 from digital converter 233 provides the data or weight stored in memory cell 207. Similarly, data or weights stored in memory cell 217 can be read by applying one as input bit 211 and zero as the remaining input bits in the column; and data or weights stored in memory cell 227 can be read by applying one as input bit 221 and zero as the other input bits in the column.

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

[0090] Figure 3 A calculation is shown in which a column of multi-bit weights is multiplied by a column of input bits to provide an accumulated result according to one embodiment. Figure 3, the binary form of the weight 250 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 input bit 201 represented by the voltage 205, which is driven by a voltage driver 203 (e.g., Figure 2 ) is applied to line 281 (e.g., a word line).

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

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

[0093] Similarly, the second most significant bit (e.g., 258) of the weight (e.g., 250) stored in the corresponding row of memory cells 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.

[0094] Similarly, the least significant bit (e.g., 259) of the weight (e.g., 250) stored in the corresponding row of memory cells 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.

[0095] The most significant bit may be shifted left by one bit to have the same weight as the second significant bit, which may be further shifted left by one bit to have the same weight as the next significant bit. Thus, the result 237 produced from the multiplication and summation of the most significant bit (e.g., 257) of the weight (e.g., 250) may be applied with a one-bit left shift 247 operation; and an addition 246 operation may be applied to the result of the left shift 247 operation and the result 236 produced from the multiplication and summation of the second most significant bit (e.g., 258) of the weight (e.g., 250). The left shift (e.g., 247, 249) operation 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 produce the result 251. Thus, the result 251 is equal to the columns of weights in the array 273 of memory cells multiplied by the columns of input bits 201, 211, ..., 221, and the multiplication results are accumulated.

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

[0097] Figure 3 The circuit illustrated in can be used to read data stored in an array 273 of memory cells. For example, to read the data or weights 250 stored in memory cells 207, 206, ..., 208, input bits 211, ..., 221 can be set to zero so that memory cells 217, 216, ..., 218, ..., 227, 226, ..., 228 output a negligible amount of current into lines 241, 242, ..., 243 (e.g., as bit lines). Setting input bit 201 to one causes voltage driver 203 to apply a predetermined read voltage as voltage 205. Thus, results 237, 236, ..., 238 from a digitizer (e.g., 233) connected to lines 241, 242, ..., 243 provide bits 257, 258, ..., 259 of the data or weights 250 stored in the row of memory cells 207, 206, ..., 208. In addition, the result 251 calculated from the operations of shifting 247, 249, ... and the operations of adding 246, ..., 248 provides a weight 250 in binary form.

[0098] Generally speaking, Figure 3The 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 in parallel (e.g., to store bits 257, 258, ..., 259).

[0099] Figure 4 The calculation of using inputs at multiple times to multiply a multi-bit weight column by a multi-bit input column to provide an accumulated result is shown according to one embodiment. Figure 4 , the valid bits of the input (eg, 280) are applied to the multiplier-accumulator unit 270 at a plurality of times T, T1, . . . , T2.

[0100] 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 the weight (e.g., 250) stored in the memory cell array 273 multiplied by the columns of bits 201, 211, ..., 221 and the multiplication results are summed.

[0101] For example, the multiplier-accumulator unit 270 may be configured as follows: 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 storage device such as Figure 3 The multiplier-accumulator unit 270 has a digital converter 275 to convert the current summed on the lines 241, 242, ..., 243 of the columns of memory cells in the array 273 to output results 237, 236, ..., 238. The multiplier-accumulator unit 270 has a shifter 277 and an adder 279, which are connected to combine the column results 237, 236, ..., 238 to provide Figure 3 Results in 251.

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

[0103] 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 multiplying the weights (e.g., 250) stored in the memory cell array 273 by the vector of bits 202, 212, ..., 222 and summing the multiplication results.

[0104] The result 251 generated from the multiplication and summation of the most significant bits 201, 211, ..., 221 of the input (e.g., 280) can be applied with a one-bit left shift 261 operation; and an addition 262 operation can be applied to the result of the left shift 261 operation and the result 253 generated from the 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 can be used to apply the weights of the bits (e.g., 201, 202, ...) to sum using the addition (e.g., 262, ..., 264) operation to generate a result 267. Therefore, the result 267 is equal to the weights (e.g., 250) in the array 273 of memory cells multiplied by the columns of the input (e.g., 280) respectively, and then summed.

[0105] A plurality of multiplier-accumulator units 270 may be connected in parallel to operate on multiplying a weight matrix by a multi-bit input column at a series of time instants T, T1, ..., T2.

[0106] Figure 5 A calculation is shown of multiplying a column of multi-bit weights 250 by a column of multi-bit inputs to provide an accumulated result using pulse width modulation (PWM) of the inputs in accordance with one embodiment.

[0107] Memory cell array 273 includes various memory cells arranged in columns, as illustrated. Each memory cell is programmable to store a respective bit of one of multi-bit weights 250. Each memory cell has a position in the array corresponding to the significance (e.g., MSB, LSB) of the respective bit it stores. For example, memory cell 207 is in the column in 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 that discussed above.

[0108] 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 with a constant voltage for a time corresponding to the pulse width.

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

[0110] Line 241 is coupled to a first column of memory cells that each stores a bit of first significance (e.g., MSB 257). Line 241 is configured to collect output current from each of these memory cells for accumulating a first charge. For example, the output current from the column of memory cells 207, 217, ..., 227 is accumulated in analog form by integrator 507 coupled to line 241.

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

[0112] 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 current from each of these memory cells for accumulating a third charge. Integrator 508 accumulates these output currents.

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

[0114] In one example, integrators 507, 506, 508 include digital converters that convert the accumulated first, second, and third charges into digital outputs (e.g., results 537, 536, 538). Similar to the above description, the digital outputs are shifted and added 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 multiplication of the multi-bit weight column and the multi-bit input column.

[0115] 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 multiplication. It should be noted that the characteristics of operation in the subthreshold mode for NAND or NOR memory cells are different from those for chalcogenide memory cells.

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

[0117] In one embodiment, a memory device having NAND memory cells uses pulse width modulation (PWM) to perform unsigned multi-bit to 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., a time length between 5 and 100 nanoseconds) is proportional to the multi-bit input. The input voltage pulse is a constant voltage (e.g., 2-4V across each memory cell).

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

[0119] The current integration over time can 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 to collect charge from a common line (e.g., line 241), and the corresponding voltage pulses 205, 215, 225 are applied to memory cells (e.g., 207, 217, 227) having outputs connected to the common line.

[0120] Figure 2-5 The multiplier-accumulator unit (e.g., 270) described in Figure 1 The integrated circuit device 101 is implemented in the embodiment of the present invention.

[0121] In one implementation, a memory chip (e.g., integrated circuit die 105) includes circuits of voltage drivers, digitizers, shifters, and adders to perform multiplication and accumulation operations. The memory chip may also include circuits configured to control the operation of the drivers, digitizers, shifters, and adders to perform Figure 2-5 The control logic of the operations in .

[0122] The inference logic circuit 123 may be configured to use the computing power of the memory chip (e.g., the integrated circuit die 105) to perform inference calculations of an application, such as inference calculations of an artificial neural network. The inference results may be stored in a portion of the memory cell array 113 for retrieval by an external device via the interface 125 of the integrated circuit device 101.

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

[0124] 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" (NAND) logic gates, "NOR" (NOR) logic gates, phase change memory (PCM), magnetic memory (MRAM), resistive random access memory, cross-point storage devices, and memory devices. Cross-point memory devices may use transistor-free memory elements, each of which has memory cells and selectors stacked together in columns. The memory element columns are connected via two layers of wires laid in a vertical direction, wherein the wires of one layer laid in one direction in the layers are located above the memory element columns, and the wires of the other layer are in the other direction and in the layer below the memory element columns. 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).

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

[0126] 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.

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

[0128] Figure 6 The method may be performed by processing logic, which may include hardware (e.g., a processing device, a circuit system, dedicated logic, programmable logic, microcode, hardware of a device, an integrated circuit, etc.), software (e.g., instructions running or executed 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 of the inference logic circuit 123) executes.

[0129] Although shown in a particular order or sequence, 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 a different order, 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 also possible.

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

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

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

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

[0134] 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 to perform multiplication, the voltage representing an input to be multiplied with the corresponding weight of each memory cell, wherein the voltage is applied so that operation of the memory cell remains in a subthreshold mode during multiplication; a line coupled to the memory cells, wherein the line is configured to sum an output current from each memory cell; and a digitizer (e.g., current digitizer 117) configured to generate a multiplication result based on the summed output current.

[0135] In one embodiment, the line is a bit line.

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

[0137] 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 one, or to 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 zero.

[0138] In one embodiment, the negligible amount of current is less than five percent of the predetermined amount of current.

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

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

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

[0142] In one embodiment, the memory cell comprises a first and a second memory cell; 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.

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

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

[0145] 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 a multiplication; applying voltages to the memory cells to perform the multiplication, each corresponding voltage representing a corresponding input bit to be multiplied with the 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.

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

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

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

[0149] In one embodiment, a device includes: a memory cell array including memory cells, wherein each memory cell is programmable to store a corresponding bit of a multi-bit weight, and each memory cell has a position in the array corresponding to the significance (e.g., MSB, LSB) of the corresponding bit it stores; a voltage driver configured to apply corresponding voltages to the memory cells, wherein each corresponding voltage represents a bit of input, and wherein the applied voltage causes the memory cells to not be thresholded; a first line coupled to first memory cells storing corresponding bits (e.g., MSB) of a first significance, wherein the first line is configured to sum first output currents from each of the first memory cells; a second line coupled to second memory cells storing corresponding bits (e.g., LSB) of a second significance, wherein the second significance is less than the first significance, and the second line is configured to sum second output currents from each of the second memory cells; and a logic circuit configured to provide an accumulation result (e.g., summing the summed first output currents and the summed second output currents) based on the summed first output currents and the summed second output currents. Figure 3 The result is Y 251).

[0150] 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 the summed first output current and to provide a second result (e.g., result X2 238) based on the summed second output current; at least one shifter configured to shift at least the first result (e.g., left-shift the MSB result); and at least one adder configured to provide an accumulated result by adding at least the shifted first result to the second result.

[0151] In one embodiment, the first result is left shifted one bit.

[0152] In one embodiment, the accumulated result is derived from the multiplication of a multi-bit weight column and an input bit column.

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

[0154] In one embodiment, a device includes: a memory cell array including memory cells, wherein each memory cell is programmable to store a corresponding bit of a multi-bit weight, and each memory cell has a position in the array corresponding to the significance (e.g., MSB, LSB) of the corresponding bit it stores; and a multiplier-accumulator unit configured to perform multiplication of the multi-bit weight with a multi-bit input and provide an accumulated result, wherein: the memory cell remains in a subthreshold mode during the multiplication (e.g., the cell is not thresholded); each bit of the multi-bit input is at a corresponding time (e.g., as 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), wherein 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 by applying the bits of the multi-bit input.

[0155] 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 for the applied bit.

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

[0157] In one embodiment, each respective result is shifted left 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.

[0158] 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 it stores; a voltage driver configured to apply voltage pulses to the memory cells, wherein the corresponding width of each pulse (e.g., 20 or 40 nanoseconds) 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 first memory cell 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 second memory cell to accumulate a second charge; and a logic circuit configured to output a result based on the accumulated first charge and the accumulated second charge.

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

[0160] In one embodiment, the device 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.

[0161] In one embodiment, the apparatus further comprises at least one digitizer to provide a first result based on the accumulated first charge and to provide a second result based on the accumulated 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.

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

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

[0164] 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 one and at a second level higher than the first level to represent a second value of zero. 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 one or to output a negligible amount of current when storing the second value of zero. The resistance of the memory cell (e.g., 207, 217, ..., or 227) is non-linear in a voltage range that includes its threshold voltage.

[0165] When a corresponding input bit (e.g., 201, 211, ... or 221) corresponding to a corresponding memory cell (e.g., 207, 217, ... or 227) is zero, a 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), thereby generating a negligible amount of current (e.g., 209, 219, ... or 229) from the corresponding memory cell (e.g., 207, 217, ... or 227). When a corresponding input bit (e.g., 201, 211, ... or 221) corresponding to a corresponding memory cell (e.g., 207, 217, ... or 227) is one, a predetermined read voltage between a first level and a second level is applied to the corresponding memory cell (e.g., 207, 217, ... or 227), thereby generating a predetermined amount of current 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 of one, or generating a negligible amount of current when the corresponding memory cell (e.g., 207, 217, ... or 227) stores a second value of one.

[0166] In one example, the interface 125 is operable for the host system to write data to 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 the 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.

[0167] 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.

[0168] 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.

[0169] The memory cell is a two terminal element with a voltage Vcell applied across its terminals. When performing multiplication as described above, the memory cell operates in a subthreshold range 704 below the threshold point 705 of the memory cell. The subthreshold range 704 corresponds to the resistance operating scheme of the memory cell.

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

[0171] While the multiplication is being performed, 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 proper operation of the multiplication.

[0172] 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.

[0173] Figure 8 An exemplary current-voltage (IV) curve 802 is shown for a floating gate or charge trap memory cell 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.

[0174] The memory cell is a three-terminal element. The IV curve 802 corresponds to the cell characteristics 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 in an operating range 806, which includes a subthreshold range 804. Portion 814 of the IV curve corresponds to operation within range 804.

[0175] The memory cell exhibits a threshold voltage 812. When the multiplication is performed as described above, the gate voltage may be below and / or above the threshold voltage 812.

[0176] IV curves 808, 810 illustrate how the position of IV curve 802 can be changed by programming to shift the curve to the 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.

[0177] In one example, a 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).

[0178] Fig. 9 A three-dimensional memory cell array having resistive random access memory (RRAM) cells is shown according to one embodiment. The memory cell array may also be viewed as having a NOR configuration, where 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.

[0179] The array includes memory cells arranged into various vertical columns, where each cell in the column is connected to a vertical bit line 902, 904. The array is located above a semiconductor substrate (not shown). The memory cells are also arranged in horizontal stacks. For example, one of the stacks includes memory cells 906, 907, 908, 909. The stacks are stacked vertically. For example, in Fig. 9 Seven stacks or levels of memory cells are illustrated in FIG.

[0180] Each of the cells is connected to a word line that extends horizontally. Each memory cell is biased by applying voltages to one of the word lines and one of the bit lines to which the cell is connected.

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

[0182] 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.

[0183] 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 current from the selected memory cell of the stack is accumulated on the digit line 914, 916. In some embodiments, additional different select transistors (selectors) may be required at each memory cell location. The selectors are connected in series with the corresponding memory cells. In some embodiments of the resistor array, multiple stacks can be selected for calculation at the same time.

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

[0185] A voltage is applied to the memory cell when performing a multiplication, such as discussed above. The applied voltage represents the input bit to be multiplied with 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.

[0186] 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 .

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

[0188] When performing multiplication, a memory cell in one of the stacks 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 unselected cells in the same string with the selected memory cell are biased by applying a bypass voltage to the gates of the unselected cells.

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

[0190] 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.

[0191] In one example, one of the stacks of the memory cell array is selected. Unselected memory cells in the other stacks are disabled. The word line voltage is made high enough to turn on each unselected memory cell, regardless of its programming state (thus, 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, which provides the output current for accumulation.

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

[0193] A voltage is applied to the memory cell when performing a multiplication, such as discussed above. The applied voltage represents the input bit to be multiplied with 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.

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

[0195] 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 .

[0196] Similarly, as discussed above, the memory cells are arranged in a horizontal stack. One of the stacks is selected for performing the 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.

[0197] 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.

[0198] The memory cells of the array are arranged into pillars, each pillar 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.

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

[0200] A voltage is applied to the memory cell when performing a multiplication, such as discussed above. The applied voltage represents the input bit to be multiplied with 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.

[0201] Fig.15 A three-dimensional memory cell array of 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 for a particular multiplication or other operation as desired. For example, a memory cell such as Fig.15 The parallel connection is described in . Fig.15 The memory cell array illustrated in is an example of the memory cell array 113 .

[0202] Similarly, as discussed above, the memory cells are arranged in a horizontal stack. One of the stacks is selected for performing, for example, a multiplication. For example, memory cells 1530, 1531, 1532, 1533 are selected and a voltage is applied to each cell. In one embodiment, a voltage is applied across the memory cells using word lines 1512, 1513, 1514, 1515 by turning on or off individual select transistors 1506, 1507, 1508, 1509 for each cell.

[0203] In one embodiment, word lines 1512 and 1514 are connected as a single line. Word lines 1513 and 1515 are also connected as a single line.

[0204] The memory cells of the array are arranged into pillars (e.g., columns or strings of chalcogenide memory cells), each pillar having a vertical conductive line 1502, 1503, 1504, 1505 connected to the memory cells of the pillar (e.g., to accumulate output current). Each vertical conductive line is coupled to a digit line 1516, 1518 through a select transistor 1520, 1522.

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

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

[0207] A voltage is applied to the memory cell when performing a multiplication, such as discussed above. The applied voltage represents the input bit to be multiplied with the weight bit stored by the memory cell. In one embodiment, the voltage is applied to the gates of individual select transistors, and each gate corresponds to the input for the corresponding memory cell. The output currents from the memory cells are then summed on the digit lines 1516, 1518 and provide a digital result, such as discussed above.

[0208] The terminal of each memory cell (eg, 1540) that is 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.

[0209] In one embodiment, Fig.15 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, where the memory cells are connected in parallel.

[0210] In one example, the array includes memory cells arranged into various vertical columns, where each cell in a column is connected to a vertical bit line (eg, 1502, 1504). The array is located above a semiconductor substrate (not shown).

[0211] Each of the cells is connected to a word line that extends horizontally. Each memory cell is biased by applying a voltage to one of the word lines to turn on an individual selector and one of the bit lines to which the cell is connected.

[0212] A voltage is applied to a memory cell when performing a multiplication, such as discussed above. In one embodiment, the applied voltage represents an input bit to be multiplied with a weight bit stored by the memory cell.

[0213] In one embodiment, the multiplication operation is performed by the controller using Fig.15 , in the same manner as for a NOR configuration of memory cells (e.g., using Fig.11 ) is performed in a similar manner.

[0214] 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 a multiplication; a voltage driver configured to apply a voltage to the memory cells to perform the multiplication, the voltage representing an input to be multiplied with 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 memory cell; and a digital converter configured to generate a multiplication result based on the summed output current.

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

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

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

[0218] 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.

[0219] In one embodiment, the memory cells are programmable by changing the charge stored in the floating gate or charge well of each memory cell.

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

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

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

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

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

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

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

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

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

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

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

[0231] In one embodiment, operation of the memory cell in a subthreshold mode includes operating the memory cell in a resistance scheme.

[0232] 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 one, or to 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 zero.

[0233] In one embodiment, the negligible amount of current is less than five percent of the predetermined amount of current.

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

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

[0236] In one embodiment, the device also includes an interface operable for a host system to write data into and read data from the memory cell array.

[0237] In one embodiment, the memory cell comprises a first and a second memory cell; 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.

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

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

[0240] 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 a multiplication; applying voltages to the memory cells to perform the multiplication, each corresponding voltage representing a corresponding input bit to be multiplied with the corresponding weight bit of each memory cell, wherein the voltages are limited to maintain operation of the memory cells 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.

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

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

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

[0244] Various embodiments related to a memory device that performs signed multiplication using logic states of memory cells are now described below. The generality of the following description is not limited by the various embodiments described above.

[0245] 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.

[0246] In one embodiment, a matrix vector multiplication is performed using the 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 1 In a memory cell of the memory cell array 113. 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.

[0247] In one embodiment, the multiplier-accumulator unit uses signed multiplication. The weights may be represented by multi-bit values ​​(e.g., 8 to 64 bits). The extra bits are used to represent the sign of the weight value. For example, the system may use 8-bit signed weights, where the value of the weight is represented by seven bits, and the eighth bit is used to represent the sign. The extra bits may be used for signed inputs in a similar manner.

[0248] 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. A 2-bit value of 11 is not used. In other examples, various combinations of 2 bits may represent different signed values, as may be desired for a given implementation.

[0249] In one example, a controller that controls the multiplication manages two 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.

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

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

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

[0253] The 1-bit signed weight is multiplied by a 1-bit signed input represented as two input bits 1201, 1211. For example, input bit 1201 is 0 and input bit 1211 is 1, together representing a 1-bit signed input of -1.

[0254] To perform 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 in a similar manner as discussed above for voltage drivers 203, 213.

[0255] Based on the applied voltages 1205, 1215, currents 1209, 1219 are output from the memory cells 1207, 1217. 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.

[0256] The result of the signed multiplication will be a signed result represented by two bits. Each of the bits is determined based on the summed current on line 1241. Multiplications of other signed inputs provided to other sets of cells (not shown) may be performed similarly as for set 1202. Line 1241 may be used to sum the output currents of these other multiplications.

[0257] 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 resulting from multiplying the input bits 1201, 1211 by the stored weights of the set 1202 is digitized by the digitizer 1233 of the analog / digital converter 1245. This provides the first bit of the result. In one example, the analog / digital converter 1245 and the digitizer 1233 are similar to the analog / digital converter 245 and the digitizer 233.

[0258] At a second time, the input bit 1201, 1211 is inverted to a negative version. For example, the input bit 1,0 is inverted to a negative version 0,1. A voltage corresponding to the negative version is applied to the memory cell 1207, 1217 by the voltage driver 1203, 1213. The currents 1209, 1219 are summed and digitized at this second time to provide a second bit of the result.

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

[0260] In general, a large number of memory cell sets 1227 can be configured in a memory cell array. The above set 1202 has two memory cells. In other embodiments, each set may include four memory cells. Voltage driver 1223 is used to apply voltage to the memory cells in set 1227. Currents 1229, 1247 are output from these memory cells and can be summed. In one embodiment, at various times, the currents are summed on a single line 1241, similar to as discussed above. In one example, the same integrated circuit device may include two sets each having two memory cells and other sets each having four memory cells. Other combinations of different types of cell sets are possible.

[0261] 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 set 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.

[0262] In one embodiment, voltages 1205, 1215 are applied in a controlled manner to hold the memory cell in subthreshold mode. In one example, the memory cell is a chalcogenide cell that exhibits snapback behavior. The chalcogenide cell is held in subthreshold mode to avoid any snapback of the memory cell. Snapbacks are undesirable due to the resulting large cell current that interferes with proper multiplication.

[0263] 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.

[0264] 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.

[0265] 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.

[0266] In one embodiment, the memory cells in array 1304 are organized into horizontal cell stacks. The stacks are stacked vertically above semiconductor substrate 1302. In one example, the memory cells are arranged in a horizontal stack, such as Fig. 9 For example, one of the stacks includes four memory cells 1306 (e.g., 906, 907, 908, 909) used to store a set of signed weights, as discussed above.

[0267] The voltage driver 1320 is used to apply a voltage to the memory cells of the memory cell array 1304 for performing multiplication. For example, the voltage driver 1320 biases the word line 1308 and the bit line 1310 to apply a voltage across the memory cell 1306. For example, the bit line 1310 is biased by driving a 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.

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

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

[0270] Fig.14 The method may be performed by processing logic, which may include hardware (e.g., a processing device, a circuit system, dedicated logic, programmable logic, microcode, hardware of a device, an integrated circuit, etc.), software (e.g., instructions running or executed 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.

[0271] Although shown in a particular order or sequence, 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 a different order, 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 also possible.

[0272] At block 1401, a command is received from a host system. In one example, by Figure 1 The interface 125 receives the command. 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 the signed weights obtained from training the neural network model.

[0273] At block 1403, sets of memory cells are programmed such that each set stores a signed weight. In one example, memory cells 1207, 1217 are programmed to store a 1-bit signed weight.

[0274] At block 1405, voltages are applied to sets of memory cells. The voltages represent different signed inputs for each set. In one example, voltage drivers 1203, 1213 apply voltages to memory cells 1207, 1217 in a first set of several sets.

[0275] 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.

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

[0277] 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 .

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

[0279] In one embodiment, a device includes: a semiconductor substrate (e.g., 1302); multiple sets of memory cells (e.g., 1202, 1227), wherein each set of memory cells is programmable to store signed weights for performing multiplication, wherein the memory cells are organized into horizontal cell stacks, and wherein the stacks are stacked vertically above the semiconductor substrate; a voltage driver (e.g., 1223, 1320) configured to apply a voltage to the set of memory cells for performing multiplication, the voltage representing a signed input to be multiplied with the stored weight for each set; at least one line (e.g., 1241, 1243, 1312) coupled to the memory cells in each set, wherein the line is configured to sum output currents from the memory cells; and at least one digital converter (e.g., 1233, 1340) for each set, the digital converter configured to produce a result based on the summed output currents from the memory cells in the set.

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

[0281] In one embodiment, the memory cells of each set are configured so that the stored weights have values ​​of negative one, zero, or positive one.

[0282] In one embodiment, the voltage is applied so that the signed input has a value of negative one, zero, or positive one.

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

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

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

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

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

[0288] 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.

[0289] In one embodiment, a device includes: a memory cell array (e.g., 113) having sets of memory cells, an interface (e.g., 125) operable for a host system to write data into and read data from the memory cell array; and a controller configured to: program the sets of memory cells to store signed weights in each set; apply voltages (e.g., 1205, 1215) to the sets of memory cells, the voltages representing signed inputs to be 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 sets; and send the digital result to the host system via the interface.

[0290] In one embodiment, each memory cell is configured to output either 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 one, or 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 zero.

[0291] In one embodiment, the negligible amount of current is less than five percent of the predetermined amount of current.

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

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

[0294] In one embodiment, when the signed input is zero, a voltage lower than a first level is applied to the corresponding set of memory cells; and when the signed input is positive or negative one, a predetermined read voltage is applied to at least one first memory cell of the corresponding set of memory cells, and a voltage lower than the first level is applied to at least one second memory cell of the corresponding set.

[0295] In one embodiment, a method includes: receiving a command to write data from a host system; in response to receiving the command to write the data, programming a set of memory cells (e.g., 1227) in a memory cell array, wherein each set of memory cells is programmable to store signed weights for matrix-vector multiplication; applying a voltage to the set of memory cells to perform the multiplication, the voltage representing a signed input to be 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 set; generating at least one result of the multiplication based on the summed output currents from the memory cells using at least one digital converter; 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.

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

[0297] In one embodiment, the digital converter comprises at least one integrator which accumulates the current on the at least one common line for each set and provides the result as a binary number.

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

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

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

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

[0302] In one embodiment, each set includes two memory cells.

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

[0304] In one embodiment, the memory cells of each set are configured so that the stored weights have values ​​of negative one, zero, or positive one.

[0305] In one embodiment, the voltage is applied so that the signed input has a value of negative one, zero, or positive one.

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

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

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

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

[0310] In one embodiment, applying a voltage to the set of memory cells includes applying a voltage to the gate of a select transistor to cause a voltage change on a bit line.

[0311] In one embodiment, the digitizer for each set comprises an integrator that accumulates the current on the at least one line for the set, and the digitizer provides the result as a binary number.

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

[0313] In one embodiment, each memory cell of a memory cell array is configured to output either 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 one, or 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 zero.

[0314] In one embodiment, the negligible amount of current is less than five percent of the predetermined amount of current.

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

[0316] In one embodiment, the device also includes an interface operable for a host system to write data into and read data from the memory cell array.

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

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

[0319] In one embodiment, a device includes a memory cell array having sets of memory cells, and a controller configured to: program the sets of memory cells to store signed weights in each set; apply voltages to the sets of memory cells, the voltages representing signed inputs to be 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 sets.

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

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

[0322] In one embodiment, when the signed input is zero, a voltage lower than a first level is applied to the corresponding set of memory cells; and when the signed input is positive or negative one, a predetermined read voltage is applied to at least one first memory cell of the corresponding set of memory cells, and a voltage lower than the first level is applied to at least one second memory cell of the corresponding set.

[0323] In one embodiment, a method includes: programming a set of memory cells in a memory cell array, wherein each set of memory cells is programmable to store a signed weight for a matrix-vector multiplication; applying a voltage to the set of memory cells for performing the multiplication, the voltage representing a signed input to be multiplied by the signed weight (e.g., based on a matrix vector multiplication function); Figure 1 The method further comprises: 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 set; and generating at least one result of the multiplication based on the summed output currents from the memory cells using at least one digital converter (e.g., current digital converter 117).

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

[0325] Integrated circuit device 101 (e.g., 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).

[0326] Integrated circuit device 101 (e.g., Figure 1The image sensor (in the embodiment of the present invention) can be installed in a computing system as a memory subsystem with embedded image sensors and inference computing capabilities. Such a 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 (e.g., an airplane, a drone, a train, a car, or other transportation), an Internet of Things (IoT) enabled device, an embedded computer (e.g., an embedded computer included in a vehicle, an industrial device, or a networked commercial device), or such a computing device including a memory and a processing device.

[0327] In general, a computing system may include a memory system coupled to one or more memory subsystems (e.g., Figure 1 In one example, the host system is coupled to a memory subsystem.

[0328] 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 connections, optical connections, magnetic connections, etc.

[0329] 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, such as writing data to the memory subsystem and reading data from the memory subsystem.

[0330] 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 Fibre 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 send 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 additionally utilize an NVM Express (NVMe) interface to access components (e.g., memory devices). The physical host interface may provide an interface for transmitting 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.

[0331] 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 cases, the controller may be referred to as a memory controller, a memory management unit, or an initiator. In one example, the controller controls communications on a bus coupled between the host system and the memory subsystem. In general, the controller may send commands or requests for desired access to the memory device to the memory subsystem. The controller may also include an interface circuit system for communicating with the memory subsystem. The interface circuit system may convert responses received from the memory subsystem into information for the host system.

[0332] The controller of the host system can 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 cases, the controller is integrated into the same package of the processing device. In other cases, the controller is separated 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 (e.g., a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), etc.), or another suitable processor.

[0333] The memory device may include any combination of different types of non-volatile memory components and volatile memory components. The volatile memory device may be, but is not limited to, a random access memory (RAM) such as a dynamic random access memory (DRAM) and a synchronous dynamic random access memory (SDRAM).

[0334] 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. A cross-point array of non-volatile memory can perform bit storage based on changes in body resistance in conjunction with a stackable cross-grid data access array. In addition, compared to many flash-based memories, cross-point non-volatile memory can perform write-in-place operations, where non-volatile memory cells can be programmed without pre-erasing the non-volatile memory cells. NAND-type flash memory includes, for example, two-dimensional NAND (2D NAND) and three-dimensional NAND (3D NAND).

[0335] 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 these. 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. For some types of memory (e.g., NAND), pages may be grouped to form blocks.

[0336] 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-selected 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 bridge RAM (CBRAM), resistive random access memory (RRAM), oxide-based RRAM (OxRAM), "NOR" (NOR) flash memory, and electrically erasable programmable read-only memory (EEPROM).

[0337] 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.

[0338] 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.

[0339] In some embodiments, the local memory may include memory registers that store memory pointers, fetched 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 and may instead rely on external control (e.g., provided by an external host or by a processor or controller separate from the memory subsystem).

[0340] 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, garbage collection operations, error detection and correction code (ECC) operations, encryption operations, cache operations, and address conversion between logical addresses (e.g., logical block addresses (LBA), namespaces) and physical addresses (e.g., physical block addresses) associated with the memory device. The controller may also include a host interface circuit system to communicate 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 convert responses associated with the memory device into information for the host system.

[0341] The memory subsystem may also include additional circuitry or components not illustrated. In some embodiments, the memory subsystem may include a cache or buffer (e.g., DRAM) and address circuitry (e.g., row decoders and column decoders) that may receive addresses from a controller and decode the addresses to access a memory device.

[0342] In some embodiments, the 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) may 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.

[0343] 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 to perform 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 an application, or any combination thereof.

[0344] In one embodiment, an example machine of a computer system may be executed in which a set of instructions is used to cause the machine to perform any one or more of the methodologies discussed herein. 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 in the capacity of 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.

[0345] 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. Further, while a single machine is described, the term "machine" shall also be taken to include any collection of machines that individually or collectively execute a set (or multiple sets) of instructions to perform any one or more of the methodologies discussed herein.

[0346] An exemplary computer system includes a processing device, a main memory (e.g., read-only memory (ROM), flash memory, dynamic random access memory (DRAM) such as synchronous DRAM (SDRAM) or Rambus DRAM (RDRAM), static random access memory (SRAM), etc.), and a data storage system that communicates with each other via a bus (which may include multiple buses).

[0347] The processing device may be one or more general-purpose processing devices, such as a microprocessor, a central processing unit, etc. 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 that implements other instruction sets, or a processor that implements 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, etc. The processing device is configured to execute instructions for performing the operations and steps discussed herein. The computer system may also include a network interface device to communicate over a network.

[0348] 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 in a main memory and a processing device during 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.

[0349] In one embodiment, the instructions include instructions to implement functions corresponding to the operations described above. Although the machine-readable medium is shown as a single medium in the example embodiments, the term "machine-readable storage medium" should be considered to include a single medium or multiple media storing one or more sets of instructions. The term "machine-readable storage medium" should also be considered to include any medium capable of storing or encoding a set of instructions for execution by a machine and causing the machine to perform any one or more methods of the present disclosure. Therefore, the term "machine-readable storage medium" should be considered to include, but not limited to, solid-state memory, optical media, and magnetic media.

[0350] Some portions of the previous 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 by which those skilled in the art of data processing most effectively convey the substance of their work to others skilled in the art. An algorithm is considered here and generally to be a self-consistent sequence of operations that produce a desired result. The operations are those that require physical manipulation of physical quantities. These quantities are typically, but not necessarily, in the form of electrical or magnetic signals that can be stored, combined, compared, and otherwise manipulated. It has proven to be convenient at times, primarily for general reasons, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, etc.

[0351] It should be borne in mind, 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 refer to the actions and processes of a computer system or similar electronic computing device that manipulates and transforms 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.

[0352] The present disclosure also relates to an apparatus for performing the operations described 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. Such a 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 magnetic 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 medium coupled to a computer system bus.

[0353] 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 programs according to the teachings herein, or it may prove convenient to build more specialized equipment to perform the methods. The structures of a variety of these systems will be presented 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 the teachings of the present disclosure described herein may be implemented using a variety of programming languages.

[0354] In one embodiment, the memory device includes a controller that controls a voltage driver (e.g., Figure 3 205, 215, 225) and / or other components of the memory device. The controller is instructed by firmware or other software. The software may be stored as instructions on a machine-readable medium, which may be used to program the controller. A machine-readable medium includes any mechanism for storing information in a machine (e.g., computer) readable form. 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.

[0355] In this description, various functions and operations may be described as being performed or caused by computer instructions for simplicity of description. However, those skilled in the art will recognize that the intent of such expressions is that the functions are generated by the execution of computer instructions by one or more controllers or processors (e.g., microprocessors). Alternatively or in combination, the functions and operations may be implemented using dedicated circuitry with or without software instructions, such as using an application specific integrated circuit (ASIC) or a field programmable gate array (FPGA). Embodiments may be implemented using hardwired circuitry without or in combination with software instructions. Therefore, the technology is neither limited to any specific combination of hardware circuitry and software nor to any specific source of instructions executed by a data processing system.

[0356] Unless specifically stated otherwise, disjunctive language, such as the phrase "at least one of X, Y, or Z," is otherwise understood in conjunction with the context in which it is used to generally indicate that an item, term, etc. may be X, Y, or Z, or any combination thereof (e.g., X, Y, and / or Z). Thus, such disjunctive language is generally not intended to, and should not, imply that certain embodiments require that at least one of X, at least one of Y, or at least one of Z each be present.

[0357] In the foregoing description, embodiments of the present disclosure have been described with reference to specific example embodiments thereof. It should be apparent 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. Accordingly, the description and drawings should be viewed in an illustrative rather than a restrictive sense.

Claims

1. A device comprising: semiconductor substrates; a plurality of sets of memory cells, wherein each set of memory cells is programmable to store a signed weight for performing a multiplication; a voltage driver configured to apply a voltage to the set of memory cells for performing the multiplication; as well as At least one line is coupled to the memory cells in each set, wherein the line is configured to sum the output currents from the memory cells to produce a result.

2. The device of claim 1, wherein the voltage is applied so that the memory cell remains in a subthreshold mode during the multiplication. 3 . The device of claim 1 , wherein the memory cells of each set are configured such that stored weights have values ​​of negative one, zero, or positive one. The apparatus of claim 1 , wherein the voltage is applied so that the signed input has a value of negative one, zero, or positive one. 5 . The apparatus of claim 1 , wherein the signed weight and signed input are each represented by a respective 2-bit number having possible values ​​of 01, 00, or 10.

6. The apparatus according to claim 1, wherein: Each set represents a 1-bit signed weight; The voltage applied to each set represents a 1-bit signed input; and The result of the set represents a signed multiplication of the 1-bit signed weight and the 1-bit signed input.

7. The apparatus of claim 6, wherein the result is a 2-bit number having a value of 01, 00, or 10.

8. The device of claim 1, wherein a first memory cell of a first set has a first threshold voltage programmed to represent a value of one, and the voltage applied to the first memory cell is less than the first threshold voltage.

9. The device of claim 1, wherein the memory cell is a resistive random access memory (RRAM) cell, a NAND flash memory cell, or a NOR flash memory cell.

10. The device of claim 9 , wherein the RRAM cells are arranged in a memory cell array in a vertical stack extending above a semiconductor substrate, and the memory cell array further comprises a respective selector in series with each RRAM cell, wherein the selector is configured for selecting an RRAM cell on any one or more of the stacks, and wherein the RRAM cell is selected based on a multiplication operation to be performed.