Memory device performing signed multiplication using set having four memory cells

By integrating memory and processor into the image sensor and using memory cell arrays to parallelize multiplication and accumulation operations, the problems of low data transmission efficiency and high power consumption between the image sensor and the microprocessor are solved, achieving high-efficiency image processing and computing performance.

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

Patent Information

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

AI Technical Summary

Technical Problem

In existing technologies, data transmission and processing efficiency between image sensors and general-purpose microprocessors is low, especially when performing image segmentation, object recognition, and feature extraction. The interface bottleneck of the traditional von Neumann computer architecture leads to latency and bandwidth limitations, increasing power consumption. Furthermore, existing matrix-vector multiplication methods are complex and energy-intensive.

Method used

The memory and processor are integrated into the same integrated circuit. Multiplication and accumulation operations are performed using memory cell arrays. The complexity and power consumption of matrix-vector multiplication are reduced by parallelizing memory access functions. Subthreshold mode is used to operate memory cells to avoid abrupt changes. The results are digitized using an analog-to-digital converter.

Benefits of technology

It improves the computational performance of image processing, reduces power consumption, and parallelized memory operations improve efficiency and reduce data transfer requirements, making it suitable for edge AI and energy-constrained systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118629474A_ABST
    Figure CN118629474A_ABST
Patent Text Reader

Abstract

This application relates to systems, methods, and apparatus related to a memory device that performs signed multiplication using a set of four memory cells. In one method, memory cells in an array of memory cells are programmed such that each set stores a signed weight. A voltage is applied to the set of memory cells. The voltage represents a signed input to be multiplied by the signed weight. Output currents from the memory cells in each set are summed over first and second lines. A sum of the output currents in each line is digitized to provide first and second results. The first and second results are combined to provide signed results for each set.
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,378, 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, memory devices that perform signed multiplication using sets of four memory cells each. Background Art

[0004] Image sensors and other sensors can generate large amounts of data. In some applications, it is inefficient to transfer 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 transfer image data from an image sensor to a microprocessor for image segmentation, object recognition, feature extraction, etc.

[0005] Some image processing may involve intensive computations 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) may 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] One aspect of the present application relates to a device comprising: a memory cell array having a set of memory cells, wherein each set includes first and second cells programmable to store signed weights, and third and fourth cells programmable to store negative versions of the signed weights; a voltage driver configured to apply a voltage to the first, second, third, and fourth cells in each set; a first line coupled to the first and second cells in each set, wherein the first line is configured to sum output currents from the first and second cells; and a second line coupled to the third and fourth cells in each set, wherein the second line is configured to sum output currents from the third and fourth cells. BRIEF DESCRIPTION OF THE DRAWINGS

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

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

[0009] Figure 2 The calculation of a weight bit column multiplied by an input bit column to provide an accumulated result is shown according to one embodiment.

[0010] Figure 3 A calculation is shown in which a multi-bit weight column is multiplied by an input bit column to provide an accumulated result according to one embodiment.

[0011] Figure 4 A computation of multi-bit weight columns multiplied by multi-bit input columns using inputs at multiple time instances to provide accumulated results is shown according to one embodiment.

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

[0013] Figure 6 A calculation method in an integrated circuit device according to an embodiment is shown.

[0014] Figure 7 An exemplary current-voltage (IV) curve of a resistive memory cell according to one embodiment is shown.

[0015] Figure 8 An exemplary current-voltage (IV) curve for a floating gate or charge well memory cell is shown in accordance with 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 well 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 An exemplary memory cell of a three-dimensional memory array formed over a semiconductor substrate according to one embodiment is shown.

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

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

[0023] Fig.16 A method for Fig.15 Voltage waveform of the memory cell configuration.

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

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

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

[0027] Fig. 20 A method for using the Fig.18 or Fig.19 Voltage waveform of the signed input of the memory cell configuration.

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

[0029] Fig. 22 A three dimensional memory cell array having memory cells arranged in a parallel configuration and having separate selectors is shown according to one embodiment. DETAILED DESCRIPTION

[0030] The following disclosure describes various embodiments in which a memory device performs multiplication using logic states of memory cells. For example, the memory device may store data for use 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.

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

[0032] Traditional von Neumann computer architectures were 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, introducing latency and bandwidth limitations and adding considerable power consumption overhead. As the demand for higher accuracy and higher speed in AI applications continues to grow, developing and implementing larger DNN models requires a large number of weights and activations. The resulting memory bandwidth and power consumption bottlenecks for data movement between chips are significant technical issues.

[0033] 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 that use the memory cell array to perform reasoning computing on image data from an image sensor. In some embodiments, the memory device includes or is used with other types of sensors (e.g., lidar, radar, sound).

[0034] Existing matrix-vector multiplication methods 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 the multiplication to a memory access function that can be parallelized in an array. The accumulation function is implemented by connecting the wires of these memory elements, which can also be parallelized in the array. By combining these two features in an array, matrix-vector multiplication can be performed more efficiently than methods using digital logic gates.

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

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

[0037] The threshold voltage or state of the memory cell used for the multiplication and accumulation operation can be programmed so that the current through the memory cell subjected to a predetermined read voltage is a predetermined amount representing 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 through the memory cell is negligible regardless of the value stored in the memory cell. Due to the configuration, the current through the memory cell corresponds to the result of a 1-bit weight stored in the memory cell multiplied by a 1-bit input corresponding to the presence or absence of a predetermined read voltage driven by a voltage driver controlled by the 1-bit input.

[0038] The output currents of the memory cells represent the results of multiplying the 1-bit weight column stored in the memory cells by the 1-bit input column, respectively, and are connected to a common line for summation. The summed current in the common line is a multiple of a predetermined amount; and the multiple can be digitized and determined using an analog-to-digital converter or other digitizer. The results of this 1-bit to 1-bit multiplication and accumulation can be performed for different weight valid bits and different input valid bits. The results of different valid bits can be shifted to apply the weights of the corresponding valid bits for summation, thereby obtaining the results of multiplication and accumulation of multi-bit weights and multi-bit inputs, as further discussed below.

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

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

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

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

[0043] NAND flash memory cells and chalcogenide memory cells have different current characteristics near their threshold voltages. Chalcogenide memory cells have snap-back characteristics, and the voltage-current (VI) curve of the cell is discontinuous across the threshold voltage. In contrast, NAND flash memory cells exhibit continuous characteristics, but the current of the cell generally increases rapidly near its threshold voltage region.

[0044] 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 mutating any memory cell, which would normally prevent proper multiplication (e.g., due to the undesirably large output current associated with the mutation).

[0045] 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 corresponding weight for performing a multiplication. The integrated circuit device also includes a voltage driver configured to apply an input voltage to the memory cell to perform the multiplication. The input voltage represents an input to be multiplied by the corresponding 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.

[0046] 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 from each memory cell generated by applying an input voltage. The integrated circuit device has a digitizer configured to generate a multiplication result based on the summed output current.

[0047] 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 a predetermined amount of current can pass through the memory cell when a voltage V is applied across the memory cell (e.g., across two terminals of a resistive memory cell). Alternatively, the memory cell can be programmed to a "0 state" such that only a negligible amount of current can pass through the memory cell when the same voltage V is applied.

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

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

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

[0051] 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 passing through the memory cell is a predetermined amount (representing an output of "1") or a negligible amount (representing an output of "0"). In addition, in all possible variations of inputs and weights, 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.

[0052] 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 whether a current sensed through the memory cell (the output current from the memory cell) is a predetermined amount.

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

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

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

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

[0057] The sum of the results represented by the output currents from the sets of memory cells can be summed bit by bit for different bit positions in the multi-bit weight via currents connected in a common line, each set representing a separate multi-bit weight. For example, the current from the memory cell storing the least significant bit is connected to the first common line to form an output of the sum 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 an output of the sum 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 an output of the sum 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 so as to be summed in digital form. Alternatively, the corresponding currents can be scaled before digitization.

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

[0059] 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 within the same predetermined number of clock cycles (e.g., applied at time instances T, T1, T2, etc., such as at Figure 4 Each cycle produces the output described above for the unsigned 1-bit to multi-bit multiplication.

[0060] The result of an unsigned 1-bit to multi-bit multiplication (e.g., as discussed above) obtained at each clock cycle can be shifted left according to the position of the bits 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; and so on, and the shifted results of the clock cycles are summed in digital form.

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

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

[0063] The output current from each memory cell is integrated over time to obtain the 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 in a time unit, corresponding to the width of the voltage pulse of the input "1". The digitized outputs are shifted according to their position in the multi-bit weight for summing. The current integration over time can be implemented by charging a capacitor or by other methods. In one embodiment, the current integration is performed using any of various types of integrators.

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

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

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

[0067] exist Figure 1 In the embodiment, the integrated circuit die 105 having the memory cell array 113 further includes a voltage driver 115 and a current digitizer 117. The memory cell array 113 is connected so that the current generated by the memory cells in response to the voltage applied by the voltage driver 115 is summed for the memory cell columns in the array 113 (e.g., as Figure 2 and Figure 3 and the summed current is digitized to produce the sum of the bit-by-bit 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 results.

[0068] The inference logic circuit 123 may be further 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 a set of instructions to control the inference calculations. Alternatively, the inference calculations are configured for a specific artificial neural network, certain aspects of which can be adjusted via the weights stored in the memory cell array 113. Optionally, the inference logic circuit 123 is implemented via a core of an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or a programmable microprocessor.

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

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

[0071] 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 metal portions on the surfaces 131 and 132.

[0072] The image sensing pixels in array 111 may include light sensitive 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.

[0073] In some embodiments, image processing logic circuit 121 is configured to pre-process images from image sensing pixel array 111 to provide processed images as input to inference calculations controlled by inference logic circuit 123 .

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

[0075] 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 retrieval via interface 125 .

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

[0077] 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 (eg, a processor, a central processing unit) may send commands to the interface 125 to access the storage capacity provided by the memory cell array 113 .

[0078] 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 computing 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 a protocol consistent with non-volatile memory express (NVMe), a non-volatile memory host controller interface specification (NVMHCIS), etc.

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

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

[0081] Can be controlled 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.

[0082] A typical memory cell in the array 113 has a nonlinear 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 pass when a predetermined read voltage higher than the first level is applied to the memory cell. When the predetermined read voltage is not applied (e.g., the applied voltage is zero), the memory cell allows a negligible amount of current to pass compared to the predetermined amount of current.

[0083] 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 pass, regardless of whether the predetermined read voltage is applied. Therefore, when the weight bits are stored in the memory and the input bits are used to control whether the predetermined read voltage is applied as discussed above, the amount of current that is a multiple of the predetermined amount of current passing through the memory cell 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 and then digitized for shifting and summing to perform multiplication and accumulation of multi-bit weights and multi-bit inputs, as further discussed below.

[0084] Figure 2 FIG. 1 shows a calculation in which a weight bit column is multiplied by an input bit column 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 of storing one bit per memory cell.

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

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

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

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

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

[0090] The summed current 231 is compared with a unit current 232 equal to a predetermined amount of current by the digitizer 233 of the analog-to-digital converter 245 to determine a digital result 237 of multiplying the columns of weight bits stored in the memory cells 207, 217, ..., 227 respectively by the columns of corresponding input bits 201, 211, ..., 221 and summing the multiplication results.

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

[0092] exist Figure 2 , 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.

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

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

[0095] Figure 2The circuit shown 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 that operates on a multi-bit weight column and a 1-bit input column, such as Figure 3 as shown in .

[0096] Figure 2 The circuit shown in can also be used to read data stored in memory cells 207, 217, ..., 227. For example, to read the data or weight 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 to 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, the result 237 from digitizer 233 provides the data or weight stored in memory cell 207. Similarly, the data or weight stored in memory cell 217 can be read by applying one as input bit 211 and applying zero as the remaining input bits in the column; and the data or weight stored in memory cell 227 can be read by applying one as input bit 221 and applying zero as the other input bits in the column.

[0097] Generally speaking, Figure 2 The circuit shown can be used to select any one 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, as required by 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.

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

[0099] 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 input bit 211 of the next weight represented by the voltage 215; and 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 ) corresponds to the weight of the input bit 221 represented by the voltage 225 applied to the line 283 (eg, the word line).

[0100] 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 by voltages 205, 215, ..., 225 and then summed to a current 231 in line 241, and as Figure 2 , digitized using digitizer 233 to produce a result 237 corresponding to the most significant bit of the weight.

[0101] Similarly, the second most significant bit (e.g., 258) 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 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.

[0102] Similarly, the least significant bit (e.g., 259) 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 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.

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

[0104] In general, the inputs involved in the multiplication and accumulation operations may exceed 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 Figure 4 The results are summed as shown in .

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

[0106] Generally speaking, Figure 3 The circuit shown 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. Therefore, 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).

[0107] Figure 4 1 shows a calculation of multi-bit weight column multiplied by multi-bit input column to provide an accumulated result using input at multiple time instances according to one embodiment. Figure 4 , the valid bits of the input (eg, 280) are applied to the multiplier-accumulator unit 270 at multiple time instances T, T1, ..., T2.

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

[0109] For example, the multiplier-accumulator unit 270 may Figure 3 The multiplier-accumulator unit 270 has a voltage driver 271 connected to apply voltages 205, 215, ..., 225 representing input bits 201, 211, ..., 221. The multiplier-accumulator unit 270 has a memory cell array 273 storing weight bits, as shown in Figure 3 The multiplier-accumulator unit 270 has a digitizer 275 for converting the current summed on the lines 241, 242, ..., 243 for the memory cell columns 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 a result 251, as shown in Figure 3 middle.

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

[0111] 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 the 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.

[0112] The result 251 generated from the multiplication and summation of the most significant bits 201, 211, ..., 221 of the input (e.g., 280) is applied to the operation of left shift 261 by one bit; and the operation of addition 262 can be applied to the result of the operation of left shift 261 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 operation of left shift (e.g., 261, 263) can be used to apply the weights of the bits (e.g., 201, 202, ...) to be summed using the addition (e.g., 262, ..., 264) operation to produce 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.

[0113] Multiple multiplier-accumulator units 270 may be connected in parallel to operate on the weight matrix multiplication by the multi-bit input column at a series of time instances T, T1, ..., T2.

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

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

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

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

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

[0119] In a similar manner, line 242 collects output current from each of the second column of memory cells, each memory cell storing a bit of a second significance (e.g., 2MSB 258) less than the first significance. Line 242 collects output currents from these cells to accumulate a second charge. Integrator 506 accumulates these output currents.

[0120] Line 243 is coupled to a third column of memory cells, each of which stores a bit of a third significance (eg, LSB 259) less than the second significance. Line 243 collects output current from each of these memory cells to accumulate a third charge. Integrator 508 accumulates these output currents.

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

[0122] In one example, integrators 507, 506, 508 include digitizers that convert the accumulated first, second, and third charges into digital outputs (e.g., results 537, 536, 538). The digital outputs are shifted and added based on the bit significance corresponding to each digital output in a manner similar to that described above. The result of the above shifting and adding is the final accumulated result of the multi-bit weight column multiplied by the multi-bit input column.

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

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

[0125] 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 corresponding multi-bit input. The input voltage pulse is a constant voltage (e.g., 2-4V across each memory cell).

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

[0127] The integration of current over time can be implemented via charging a capacitor (not shown) or by methods other than a capacitor. 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) while applying a corresponding voltage pulse 205, 215, 225 to a memory cell (e.g., 207, 217, 227) having an output connected to the common line.

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

[0129] In one embodiment, 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 further include control logic configured to control the operation of the drivers, digitizers, shifters, and adders to perform operations such as Figure 2-5 The operation shown.

[0130] The reasoning logic circuit 123 can be configured to use the computing power of the memory chip (e.g., the integrated circuit die 105) to perform the reasoning calculation of the application, such as the reasoning calculation of the artificial neural network. The reasoning result can be stored in a part of the memory cell array 113 for external devices to retrieve via the interface 125 of the integrated circuit device 101.

[0131] Alternatively, the voltage driver, digitizer, shifter, adder, and at least a portion of the control logic may be configured in the integrated circuit die 109 of the logic chip.

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

[0133] Integrated circuit die 105 and integrated circuit die 109 may include circuits for addressing memory cells in memory cell array 113, such as row decoders and column decoders that 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.

[0134] In some embodiments, the image processing logic circuit 121 may also send a command to the interface 125 to write the image into the memory cell array 113 for processing.

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

[0136] Figure 6The 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 124 of the inference logic circuit 123 executes.

[0137] Although shown in a particular order or sequence, the order of the processes may be modified unless otherwise indicated. 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.

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

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

[0140] At block 605, the output currents from the memory cells resulting from the applied voltages are summed. In one example, using Figure 3 Line 241 is shown to collect and sum the output currents.

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

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

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

[0144] In one embodiment, when operating in subthreshold mode, the memory cell is not thresholded (eg, is not abrupt).

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

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

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

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

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

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

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

[0152] In one embodiment, each memory cell is a chalcogenide memory cell.

[0153] 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 by 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.

[0154] 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 amount of current.

[0155] In one embodiment, each corresponding memory cell is programmed to have a threshold voltage: the threshold voltage is 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 corresponding 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.

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

[0157] 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 stored therein; a voltage driver configured to apply a corresponding voltage to the memory cell, wherein each corresponding voltage represents a bit of input, and wherein the applied voltage causes the memory cell to not be thresholded; a first line coupled to a first memory cell storing a corresponding bit of a first significance (e.g., MSB), wherein the first line is configured to sum a first output current from each first memory cell; a second line coupled to a second memory cell storing a corresponding bit of a second significance (e.g., LSB), wherein the second significance is less than the first significance, and the second line is configured to sum a second output current from each second memory cell; and a logic circuit configured to provide an accumulation result (e.g., summing the summed first output current and the summed second output current) based on the summed first output current and the summed second output current. Figure 3 The result is Y 251).

[0158] In one embodiment, the device further includes: at least one digitizer 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.

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

[0160] In one embodiment, the accumulated result is derived from multiplying a multi-bit weight column by an input bit column.

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

[0162] 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 is maintained in a subthreshold mode during the multiplication (e.g., the cell is not thresholded); each bit of the multi-bit input is thresholded at a corresponding time instance (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.

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

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

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

[0166] In one embodiment, a device includes: a memory cell array (e.g., 273) including memory cells, wherein each memory cell is programmable to store a corresponding bit of a multi-bit weight (e.g., 250), and each memory cell has a position in the array corresponding to the significance (e.g., MSB, LSB) of the corresponding bit stored therein; a voltage driver configured to apply voltage pulses to the memory cells, wherein the corresponding width (e.g., 20 or 40 nanoseconds) of each pulse represents a multi-bit input; a first line (e.g., 241) coupled to a first memory cell storing a bit of a first significance (e.g., MSB), wherein the first line is configured to collect a first output current from each 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.

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

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

[0169] In one embodiment, the apparatus further includes 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.

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

[0171] In one embodiment, the apparatus further includes 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.

[0172] In one example, each corresponding memory cell (e.g., 207, 217, ..., or 227) in the column of memory cells 207, 217, ..., 227 can be programmed to have a threshold voltage: the threshold voltage is 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 corresponding 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 including its threshold voltage.

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

[0174] 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 an artificial neural network into the memory cell array 113, and read the output of the artificial neural network, raw image data from the image sensing pixel array 111, or processed image data from the image processing logic circuit 121, or any combination thereof.

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

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

[0177] 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 a resistance operating regime of the memory cell.

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

[0179] When performing multiplication, the memory cell remains in a 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.

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

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

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

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

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

[0185] 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).

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

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

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

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

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

[0191] Each bit line 902, 904 of the column is connected to a digit line 914, 916 using a select transistor 918, 920. When performing multiplication, the output currents from the selected memory cells of the hierarchy are accumulated on the digit lines 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 hierarchies can be selected simultaneously for calculation.

[0192] In one embodiment, each of the memory cells is programmed to store a weight bit for performing a multiplication. For a selected hierarchy of memory cells to be used for multiplication, a voltage is applied to the word line of each cell so that each memory cell can contribute a degree 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 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.

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

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

[0196] When performing multiplication, a memory cell in one of the hierarchies 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 as the selected memory cell are biased by applying a bypass voltage to the gate of the unselected cells.

[0197] 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 the memory cells 1006, 1007, 1008, 1009. The common word line is biased by applying a read voltage.

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

[0199] In one example, one of the levels of the memory cell array is selected. Unselected memory cells in other levels 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.

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

[0201] 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 the digit lines 1016, 1018 and provide a digital result, such as discussed above.

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

[0203] 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 shown in is an example of the memory cell array 113 .

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

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

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

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

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

[0209] Fig. 22 A three-dimensional memory cell array having memory cells arranged in a parallel configuration and having individual selectors according to one embodiment is shown. 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 needed. For example, a memory cell such as Fig. 22 Connect in parallel as shown in . Fig. 22 The memory cell array shown in is an example of the memory cell array 113 .

[0210] Similarly, as discussed above, the memory cells are arranged in horizontal hierarchies. One of the hierarchies is selected for performing, for example, multiplication. For example, memory cells 2230, 2231, 2232, 2233 are selected and a voltage is applied to each cell. In one embodiment, a voltage is applied across the memory cells using word lines 2212, 2213, 2214, 2215 by turning on or off individual select transistors 2206, 2207, 2208, 2209 for each cell.

[0211] In one embodiment, word lines 2212 and 2214 are connected as a single line. Word lines 2213 and 2215 are also connected as a single line.

[0212] The memory cells of the array are arranged into columns (e.g., columns or strings of chalcogenide memory cells), each column having a vertical conductive line 2202, 2203, 2204, 2205 connected to the memory cells of the column (e.g., to accumulate output current). Each vertical conductive line is coupled to a digit line 2216, 2218 through a select transistor 2220, 2222.

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

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

[0215] 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 2216, 2218 and provide a digital result, such as discussed above.

[0216] The terminal of each memory cell (eg, 2240) 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.

[0217] In one embodiment, Fig. 22 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.

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

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

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

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

[0222] In one embodiment, a device includes: a memory cell array having memory cells, each memory cell being programmable to store a corresponding weight for performing multiplication; a voltage driver 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; 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 digitizer configured to generate a multiplication result based on the summed output current.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[0248] In one embodiment, a method includes: programming memory cells in a memory cell array, wherein each memory cell is programmed to store a corresponding weight bit for performing multiplication; applying voltages to the memory cells to perform multiplication, each corresponding voltage representing a corresponding input bit to be multiplied with the corresponding weight bit of each memory cell, wherein limiting the voltages maintains 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.

[0249] 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 amount of current.

[0250] In one embodiment, each corresponding memory cell is programmed to have a threshold voltage: the threshold voltage is 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 corresponding 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.

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

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

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

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

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

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

[0257] In one example, a controller that controls 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.

[0258] 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 1The 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 Figure 1 The image sensing pixel array 111 collects data.

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

[0260] In one embodiment, set 1202 includes memory cells 1207, 1217, which 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.

[0261] The 1-bit signed weight is multiplied by the 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.

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

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

[0264] 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 to that for set 1202. Line 1241 may be used to sum the output currents of these other multiplications.

[0265] In one embodiment, two bits of the signed result are determined based on summing the current at two time instances. 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-to-digital converter 1245. This provides the first bit of the result. In one example, the analog-to-digital converter 1245 and the digitizer 1233 are similar to the analog-to-digital converter 245 and the digitizer 233.

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

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

[0268] 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. The voltage driver 1223 is used to apply voltage to the memory cells in the set 1227. Currents 1229, 1247 are output from these memory cells and can be summed. In one embodiment, at various time instances, 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.

[0269] 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 time instances are not required to determine two bits of the result 1237.

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

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

[0272] Fig.13 An exemplary memory cell 1306 of a memory array 1304 formed over a semiconductor substrate 1302 is shown 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.

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

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

[0275] 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 digital line 1312 and turning on the select transistor 1315 to connect the bit line 1310 to the digital line 1312. Examples of the voltage driver 1320 include voltage drivers 1203, 1213, 1223.

[0276] The digitizer 1340 generates a digital output (e.g., in the form of Fig.121237 in the form of bits of the result. An example of digitizer 1340 includes 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.

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

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

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

[0280] 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 a signed weight obtained from training a neural network model.

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

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

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

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

[0285] 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 the interface 125 .

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

[0287] 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 a horizontal cell hierarchy, and wherein the hierarchy is 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 digitizer (e.g., 1233, 1340) for each set, the digitizer configured to generate a result based on the summed output currents from the memory cells in the set.

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

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

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

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

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

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

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

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

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

[0297] In one embodiment, a device includes: a memory cell array (e.g., 113) having a set of memory cells, an interface (e.g., 125) operable for a host system to write data to the memory cell array 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.

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

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

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

[0301] In one embodiment, each memory cell in a memory cell array can be programmed 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.

[0302] In one embodiment, when the signed input is zero, a voltage lower than the 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.

[0303] 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 digitizer; 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.

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

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

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

[0307] In one embodiment, a device includes: a memory cell array having a set 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 set of memory cells for performing the multiplication, wherein the voltage represents 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, wherein the digitizer is configured to generate a result based on the summed output currents from the memory cells in the set.

[0308] In one embodiment, the voltage is applied such that the memory cell remains in a subthreshold mode during multiplication.

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

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

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

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

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

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

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

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

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

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

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

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

[0321] In one embodiment, each memory cell of the 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.

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

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

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

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

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

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

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

[0329] In one embodiment, each memory cell in a memory cell array can be programmed 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.

[0330] In one embodiment, when the signed input is zero, a voltage lower than the 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.

[0331] 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 signed weights for 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 comprises the steps of: providing an input of data collected by the image sensing pixel array 111 of the image sensing pixel array 111; summing the output currents from the memory cells using at least one common line coupled to the memory cells in each set; and generating at least one result of the multiplication based on the summed output currents from the memory cells using at least one digitizer (e.g., current digitizer 117).

[0332] In one embodiment, the voltage is applied such that the memory cell remains in a subthreshold mode during multiplication.

[0333] Various embodiments related to a memory device for performing signed multiplication using sets of two memory cells each will now be described below.The generality of the following description is not limited by the various embodiments described above.

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

[0335] 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, as described above, a signed weight can be represented by a 2-bit number. A signed weight can be represented by a value stored in a pair of memory cells. A one-bit value can be stored in a first cell of the pair, and a second-bit value can be stored in a second cell of the pair. These two bit values ​​represent a 1-bit signed weight.

[0336] In one embodiment, a two-cell implementation is used for signed 1-bit to 1-bit multiplication. Two memory cells of a set are used to store two bits of a signed 1-bit weight in a two-bit representation.

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

[0338] In one example, the input line provides Fig.12 The voltages 1205, 1215 of FIG. 1204 are shown in FIG. 1205. In one example, the input line may be a word line, a bit line, or a select gate line (SL), depending on the type of memory cell and the particular set configuration (e.g., memory cells arranged in series for NAND flash versus memory cells arranged in parallel for RRAM or NOR).

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

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

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

[0342]

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

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

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

[0346] A voltage is applied to memory cell 1502 using word line 1506 and bit line 1508. A voltage is applied to memory cell 1504 using word line 1506 and bit line 1509.

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

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

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

[0350] The first bit result is produced by digitizer 1520 for a first time instance (eg, T0), and the second bit result is produced by digitizer 1520 for a second time instance (eg, T1). The first and second bits represent the signed result of the multiplication.

[0351] In one example, the memory cells 1502, 1504 are configured as one of a plurality of memory cell sets arranged in a three-dimensional memory cell array. In one example, the memory cell array is as follows Fig. 9 The array shown.

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

[0353] Fig.16 A method for Fig.15 1 shows a voltage waveform of a memory cell configuration of FIG. 2 . The waveforms of the bit line BL and word line WL voltages are shown. Time is represented on the horizontal axis. Positive voltage and negative voltage are represented in the vertical direction above and below the horizontal axis.

[0354] An exemplary voltage pattern of waveforms is applied at time instances T0 and T1. The voltage pattern corresponds to the value of the signed input to the multiplication. The difference between the word line and bit line voltages is the voltage applied to each memory cell, as shown.

[0355] The voltages of the patterns 1620 and 1622 correspond to a signed input of negative one (-1). The voltage of the pattern 1620 is applied to the first memory cell 1502. The voltage of the pattern 1622 is applied to the second memory cell 1504.

[0356] For example, wordline waveform 1602 is fixed at a constant voltage at both time instances. Bitline voltage 1604 corresponds to a bit value of 1. Bitline voltage 1606 corresponds to a bit value of 1. Thus, input bits of 1,0 are applied at time T0, and input bits of 0,1 are applied at time T1.

[0357] The letters "P" and "N" at the bottom of the figure represent the positive and negative versions of the signed input. However, the positive / negative polarity shown is arbitrary and may be different in other embodiments.

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

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

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

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

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

[0363] In one example, a digital line (e.g., Fig.10 The positive and negative polarity of DL+ and DL-) is arbitrary and handled by the controller 124. In one example, the digital lines can be considered as first and second digital lines DL. One digital line or the other captures negative or positive weights that are ultimately combined to produce a signed output.

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

[0365] Fig.17The 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.17 The method is at least partially performed by one or more processing devices (e.g., Figure 1 Controller 124) executes.

[0366] Although shown in a particular order or sequence, the order of the processes may be modified unless otherwise indicated. 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.

[0367] At block 1701, a set of memory cells are programmed to store signed weights. In one example, the set includes memory cells 1502, 1504.

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

[0369] At block 1705 , during each of the first and second time instances, the output currents from the first and second cells are summed on a common line for each set. In one example, the output currents are summed on the digit line 1510 .

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

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

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

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

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

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

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

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

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

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

[0380] In one embodiment, an apparatus includes: a memory cell array having a plurality of memory cell sets, wherein each set includes a first cell (e.g., 1207) and a second cell (e.g., 1217), and each set is programmable to store a signed weight for performing a multiplication; a voltage driver configured to apply a voltage to the first and second cells in each set at a first and second time instance, the voltage corresponding to a signed input to be multiplied by the weight stored in each set, wherein at the first time instance (e.g., Fig.16 The voltage applied at time T0 represents the positive version of the signed input, and at a second time instance (e.g., Fig.16 a voltage applied at time T1) representing a negative version of a signed input; a line coupled to the first and second cells in each set, wherein the line is configured to sum the output currents from the first and second cells for each of the first and second time instances; and a digitizer (e.g., 1520) for each set, the digitizer being configured to provide a first result based on summing the output currents for the first time instance, and a second result based on summing the output currents for the second time instance, wherein a combination of the first and second results is a signed result.

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

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

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

[0384] In one embodiment, applying voltage to the first and second cells includes applying voltage to gates of select transistors to cause a voltage change on the bit line.

[0385] In one embodiment, a common word line is used to access the first and second cells in each set.

[0386] In one embodiment, during each of the first and second time instances, the word line is maintained at a constant voltage; and the voltage driver is further configured to apply the voltage by varying a voltage of at least one bit line connected to the first and second cells in each set.

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

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

[0389] In one embodiment, unselected cells in the same respective string as the first and second cells are biased by applying a bypass voltage to the gates of the unselected cells.

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

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

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

[0393] In one embodiment, a device includes: a memory cell array having multiple sets of memory cells, wherein each set includes a first cell and a second cell, and each set is programmable to store signed weights for performing multiplication; a voltage driver configured to apply voltages to the first and second cells in each set at first and second time instances, the voltages corresponding to signed inputs to be multiplied by the weights stored in each set; lines coupled to the first and second cells in each set, wherein the lines are configured to sum output currents from the first and second cells for each of the first and second time instances; and a digitizer for each set, the digitizer being configured to provide a first result based on summing the output currents for the first time instance, and a second result based on summing the output currents for the second time instance, wherein a combination of the first and second results is a signed result.

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

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

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

[0397] In one embodiment, the line is a digit line, and the apparatus further comprises: a bit line coupled to the first and second cells in each set; and a select transistor configured to electrically connect the bit line of each set to the digit line.

[0398] In one embodiment, applying voltage to the first and second cells includes applying voltage to gates of select transistors to cause a voltage change on the bit line.

[0399] In one embodiment, a common word line is used to access the first and second cells in each set.

[0400] In one embodiment, the word line is maintained at a constant voltage (eg, Fig.16 and the voltage driver is further configured to change the voltage of at least one bit line connected to the first and second cells in each set (e.g., Fig.16 The voltage is applied using the bit line waveforms 1604, 1606 in FIG.

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

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

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

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

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

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

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

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

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

[0410] In one embodiment, for each set of first and second cells coupled to the set, the output currents are summed on a corresponding common line (eg, 1510, 1241, 1243).

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

[0412] In one embodiment, the apparatus further comprises an interface operable for a host system to write data to and read data from the memory cell array.

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

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

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

[0416] Various embodiments related to a memory device for performing signed multiplication using sets of four memory cells each will now be described below.The generality of the following description is not limited by the various embodiments described above.

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

[0418] 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, as described above, a signed weight can be represented by a 2-bit number. A signed weight can be represented by a value stored in a set of memory cells having four cells. The first pair of cells stores 2 bits representing the 1-bit signed weight. The second pair of cells stores a negative version of the 2 bits.

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

[0420] In one example, the input line Fig.12 The voltage is provided to the memory cell set 1227. As described above, the set 1227 has four memory cells. In one example, the input line can be a word line, a bit line, or a select gate line (SL), depending on the type of memory cell and the specific set configuration (e.g., for example, memory cells arranged in series for NAND flash and memory cells arranged in parallel for RRAM or NOR).

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

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

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

[0424] For example, a signed input of -1 multiplied by a signed weight of -1 provides a 2-bit result of 1,0.

[0425]

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

[0427] In one example, in a Fig.10 A memory cell set is configured in the NAND flash memory array shown. The set includes a first pair of memory cells 1008, 1009 and a second pair of memory cells 1006, 1007. Two selection lines SL are used to apply two voltages corresponding to the 2 bits of the signed input. The voltage is applied to the gate of the selection transistor (e.g., 1012, 1014). The first digital line 1016 and the second digital line 1018 are used to sum the current to provide the 2 bits of the signed result as described above.

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

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

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

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

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

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

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

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

[0436] Fig.19 1 shows an analog circuit system 1902 for combining output currents from two common lines and using a multiplication architecture with a set of four memory cells to store signed weights according to one embodiment. In addition to the following description, Fig.19 The architecture and Fig.18 The architecture is similar.

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

[0438] Fig. 20 A method for using the Fig.18 or Fig.19 The voltage waveform of the signed input of the memory cell configuration of FIG. The waveform of the bit line BL and word line WL voltage is shown. The horizontal axis represents time. The vertical direction above and below the horizontal axis represents positive voltage and negative voltage. For the above Fig.16 , if the bit line voltage is zero, the waveform coincides with the horizontal axis (and is not shown separately).

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

[0440] The voltage of pattern 2020, 2022 corresponds to a signed input of negative one (-1). The voltage of pattern 2020 (eg, corresponding to the first bit input +) is applied to memory cells 1802, 1804. The voltage of pattern 2022 (eg, corresponding to the second bit input -) is applied to memory cells 1806, 1808.

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

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

[0443] The voltage of patterns 2028, 2030 corresponds to a signed input of positive one (+1). The bit line voltage 2006 corresponds to a bit value of 1. Thus, input bits 1, 0 are applied.

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

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

[0446] In one example, a digital line (e.g., Fig.10 The positive and negative polarity of DL+ and DL-) is arbitrary and handled by the controller 124. In one example, the digital lines can be considered as first and second digital lines DL. One digital line or the other captures negative or positive weights that are ultimately combined to produce a signed output.

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

[0448] Fig.21 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.21 The method is at least partially performed by one or more processing devices (e.g., Figure 1 Controller 124) executes.

[0449] Although shown in a particular order or sequence, the order of the processes may be modified unless otherwise indicated. 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.

[0450] At block 2101, sets of four memory cells in each set are programmed to store signed weights in each set. In one example, memory cells 1802, 1804, 1806, 1808 are programmed to store signed weights.

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

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

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

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

[0455] In one embodiment, a device includes: a memory cell array having sets of memory cells, wherein each set includes first and second cells (e.g., 1802, 1806) programmable to store signed weights, and third and fourth cells (e.g., 1804, 1808) programmable to store negative versions of the signed weights; a voltage driver (e.g., 1223) configured to apply voltages to the first, second, third, and fourth cells in each set, the voltages corresponding to signed inputs to be multiplied by the signed weights in each set; a first line (e.g., 1241) coupled to the first and second cells in each set, wherein the first line is configured to couple the first and second cells from the first and fourth cells to the first and fourth cells; summing the output currents of the two cells; a second line (e.g., 1243) coupled to the third and fourth cells in each set, wherein the second line is configured to sum the output currents from the third and fourth cells; a first digitizer (e.g., 1233) for each set, the first digitizer being configured to provide a first result based on summing the output currents from the first and second cells; and a second digitizer (e.g., 1233) for each set, the second digitizer being configured to provide a second result based on summing the output currents from the third and fourth cells; wherein the combination of the first and second results is a signed result (e.g., 1237) from multiplying a signed input by a signed weight.

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

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

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

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

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

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

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

[0463] In one embodiment, a common word line (eg, 1810) is used to access the first, second, third, and fourth cells in each set.

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

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

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

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

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

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

[0470] In one embodiment, a system includes: a plurality of memory cells (e.g., 1227) organized into sets, wherein each set includes first and second cells programmable to store signed weights, and third and fourth cells programmable to store negative versions of the signed weights; a voltage driver configured to apply voltages to the first, second, third, and fourth cells in each set, the voltages corresponding to signed inputs to be multiplied by the signed weights in each set; a first line coupled to the first and second cells in each set, wherein the first line is configured to couple outputs from the first and second cells to the outputs of the first and second cells. current summing; a second line coupled to the third and fourth cells in each set, wherein the second line is configured to sum the output currents from the third and fourth cells; an analog circuit system (e.g., 1902) configured to combine the summed output currents of the first and second lines of each set; and a digitizer (e.g., 1924) for each set, the digitizer coupled to the analog circuit system and configured to provide a signed result (e.g., 1940) from a signed input multiplied by a signed weight, wherein the signed result is determined based on the analog circuit system combining the summed output currents.

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

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

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

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

[0475] In one embodiment, an apparatus includes: a memory cell array having sets of memory cells, wherein each set includes first and second cells programmable to store a signed weight, and third and fourth cells programmable to store a negative version of the signed weight; a voltage driver (e.g., 1320) configured to apply a voltage to the first, second, third, and fourth cells in each set (e.g., see Fig. 20 ), the voltage corresponding to a signed input to be multiplied by a signed weight in each set; a first line coupled to a first and a second cell in each set, wherein the first line is configured to sum output currents from the first and second cells; a second line coupled to a third and a fourth cell in each set, wherein the second line is configured to sum output currents from the third and fourth cells; a first digitizer for each set, the first digitizer being configured to provide a first result based on summing the output currents from the first and second cells; and a second digitizer for each set, the second digitizer being configured to provide a second result based on summing the output currents from the third and fourth cells; wherein the combination of the first and second results is a signed result from multiplying the signed input by the signed weight.

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

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

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

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

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

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

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

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

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

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

[0486] In one embodiment, a common word line is used to access the first, second, third, and fourth cells in each set.

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

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

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

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

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

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

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

[0494] In one embodiment, the device further includes first and second digitizers for each set of memory cells, wherein: the first digitizer is configured to provide a first result based on summing the output current on a first line; and the second digitizer is configured to provide a second result based on summing the output current on a second line; and the corresponding signed result is a combination of the first and second results.

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

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

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

[0498] In one embodiment, a controller (e.g., controller 124) is configured to select various operating modes. These modes may include a unipolar mode and a bipolar mode. In the unipolar mode, unsigned multiplication (e.g., as discussed above) is performed using the memory cell array (e.g., 113). In the bipolar mode, signed multiplication (e.g., as discussed above) is performed using the memory cell array (e.g., 113).

[0499] In one embodiment, the controller can configure the same memory cell array (eg, Fig.10 The NAND flash memory array shown in FIG. 1 is used in either unipolar or bipolar mode. When operating in unipolar mode, a lower number of cells (or a single cell) can be used to store each weight. The available storage density is increased.

[0500] In one embodiment, the controller selects a mode based on the computation to be performed. For example, the controller selects a unipolar or bipolar mode based on the neural network to be used (e.g., the type of model). In some cases, the host sends data to the controller indicating the mode to be used for the computation.

[0501] In one embodiment, the NAND flash memory cell array is operated by a controller using a flexible synaptic method. The controller is capable of generating independent pulses on each input line (e.g., each select gate line corresponding to the vertical string 1002, 1004 in the array). An independent accumulator is used to accumulate the output current on each output line (e.g., digit lines 1016, 1018).

[0502] In one embodiment, the controller uses various operating modes to determine the sum of products during matrix-vector multiplication for the host device. In one embodiment, a bipolar mode is used. For example, each signed weight can be stored in a corresponding set of four memory cells (e.g., 1802, 1804, 1806, 1808).

[0503] In one example, a three-dimensional NAND flash memory array has multiple levels, and a set of four cells in one of the levels is selected for multiplication. Memory cells in other levels have bypass voltages applied using word lines (e.g., as described above). The controller performs parallel 4-quadrant operations by combining paired input and output lines (e.g., select lines 1812, 1814 as input lines) (e.g., digital lines 1830, 1834 as output lines).

[0504] In one embodiment, a bipolar mode is used. Each signed weight is stored using a set of two cells. The controller can implement a denser serial 4-quadrant operation because each weight is stored using only two cells. As discussed above (e.g., using Fig.15 and 16 The time instances T0 and T1) are described, the input is time sliced ​​during the multiplication.

[0505] In one embodiment, a unipolar mode is used. For example, a unipolar multiplication uses an unsigned single input (e.g., Figure 2 and multiply it by the input bit A stored in a single memory cell (e.g., Figure 2 For example, the input can be either zero or one. In another example, a single input is multiplied by the weights stored in multiple cells (e.g., Figure 3 The weights in the memory cells A, A1, A2).

[0506] In one embodiment, the selection of unipolar or bipolar mode operation of synapses in the array determines the storage density of the array. Unipolar mode allows for greater storage density. In one example, the density for storing weights in the array is specified by the host device.

[0507] In one embodiment, implementing a flexible synaptic configuration (e.g., using a cell array in unipolar or bipolar mode as described above) by a controller includes changing the voltage on a word line in a NAND flash memory array. The word line voltage can change depending on the operating mode (e.g., unipolar vs. bipolar).

[0508] 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).

[0509] Integrated circuit device 101 (e.g., Figure 1 The image sensor (shown in FIG. 1 ) can be installed in a computing system as a memory subsystem with an embedded image sensor 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), a device supporting the Internet of Things (IoT), an embedded computer (e.g., a 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.

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

[0511] 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 intermediate components), whether wired or wireless, including connections such as electrical connections, optical connections, magnetic connections, etc.

[0512] For example, a host system may include a processor chipset (e.g., a processing device) and a software stack executed by the processor chipset. The processor chipset may include one or more cores, one or more caches, a memory controller (e.g., an NVDIMM controller), and a storage protocol controller (e.g., a PCIe controller, a SATA controller). The host system uses the memory subsystem, for example, to write data to the memory subsystem and read data from the memory subsystem.

[0513] The host system may be coupled to the memory subsystem via a physical host interface. Examples of the physical host interface include, but are not limited to, a serial advanced technology attachment (SATA) interface, a peripheral component interconnect express (PCIe) interface, a universal serial bus (USB) interface, a fiber channel, a serial attached SCSI (SAS) interface, a double data rate (DDR) memory bus interface, a small computer system interface (SCSI), a dual in-line memory module (DIMM) interface (e.g., a DIMM socket interface supporting double data rate (DDR)), an open NAND flash interface (ONFI), a double data rate (DDR) interface, a low power double data rate (LPDDR) interface, a compute express link (CXL) interface, or any other interface. The physical host interface may be used to transfer data between the host system and the memory subsystem. When the memory subsystem is coupled to the host system through a PCIe interface, the host system may further utilize an NVM express (NVMe) interface to access components (e.g., memory devices). The physical host interface may provide an interface for transferring control, address, data, and other signals between the memory subsystem and the host system. Typically, a host system can access multiple memory subsystems via the same communication connection, multiple separate communication connections, or a combination of communication connections.

[0514] 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 communication via a bus coupled between the host system and the memory subsystem. In general, the controller may send commands or requests to the memory subsystem for desired access to the memory device. The controller may further include an interface circuit system for communicating with the memory subsystem. The interface circuit system may convert a response received from the memory subsystem into information for the host system.

[0515] 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, as well as other such operations. In some cases, the controller is integrated into the same package as the processing device. In other cases, the packaging of the controller and the processing device is separate. 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 (e.g., a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), etc.), or another suitable processor.

[0516] 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).

[0517] Some examples of non-volatile memory components include negative-and (or NOT AND) (NAND) 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 memories can perform write-in-place operations, where non-volatile memory cells can be programmed without the non-volatile memory cells being previously erased. NAND-type flash memory includes, for example, two-dimensional NAND (2D NAND) and three-dimensional NAND (3D NAND).

[0518] Each memory device may include one or more memory cell arrays. One type of memory cell, for example, 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 memory device may include one or more memory cell arrays, such as SLC, MLC, TLC, QLC, PLC, or any combination thereof. 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. In some types of memory (e.g., NAND), pages may be grouped to form blocks.

[0519] 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 memories, ferroelectric transistor random access memory (FeTRAM), ferroelectric random access memory (FeRAM), magnetic random access memory (MRAM), spin transfer torque (STT)-MRAM, conductive bridging RAM (CBRAM), resistive random access memory (RRAM), oxide-based RRAM (OxRAM), NOR (NOR) flash memory, and electrically erasable programmable read-only memory (EEPROM).

[0520] A memory subsystem controller (or, for simplicity, a controller) can communicate with a memory device to perform operations, such as reading data, writing data, or erasing data and other such operations at the memory device (e.g., in response to commands dispatched by the controller on a command bus). The controller can include hardware, such as one or more integrated circuits (ICs) and / or discrete components, buffer memory, or a combination thereof. The hardware can include digital circuitry with dedicated (i.e., hard-coded) logic for performing the operations described herein. The controller can 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.

[0521] The controller may include a processing device (processor) configured to execute instructions stored in the local memory. In the example shown, 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.

[0522] 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. Although the example memory subsystem includes a controller, in another embodiment of the present disclosure, the memory subsystem does not include a controller, but may rely on external control (e.g., provided by an external host, or provided by a processor or controller separate from the memory subsystem).

[0523] Typically, the controller can receive commands or operations from the host system, and can convert the commands or operations into instructions or appropriate commands that implement the desired access to the memory device. The controller can be responsible for other operations, such as wear leveling operations, garbage collection operations, error detection and error correction code (ECC) operations, encryption operations, cache operations, and address conversion between logical addresses (e.g., logical block addresses (LBA), name spaces) and physical addresses (e.g., physical block addresses) associated with the memory device. The controller can further include a host interface circuit system to communicate with the host system via a physical host interface. The host interface circuit system can convert commands received from the host system into command instructions for accessing the memory device, and convert responses associated with the memory device into information for the host system.

[0524] The memory subsystem may also include additional circuitry or components not shown. 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 the controller and decode the addresses to access the memory devices.

[0525] In some embodiments, a memory device includes a local media controller that operates in conjunction with a memory subsystem controller to perform operations on one or more memory cells of the memory device. An external controller (e.g., a memory subsystem controller) 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.

[0526] 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, the controller, or the processing device may include a logic circuit system that implements the storage manager. For example, the controller or the processing device (processor) of the host system may be configured to execute instructions stored in the memory for performing the operations of the storage manager described herein. In some embodiments, the storage manager is implemented in an integrated circuit chip arranged 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.

[0527] In one embodiment, an example machine of a computer system in which a set of instructions for causing the machine to perform any one or more of the methodologies discussed herein may be executed. In some embodiments, the computer system may correspond to a host system that includes, is coupled to, or utilizes a memory subsystem, or may be used to perform the operations described above. In alternative embodiments, the machine may be connected (e.g., networked) to other machines in a LAN, an intranet, an extranet, or the Internet, or any combination thereof. The machine may operate as a server or a client machine in a client-server network environment, as a peer machine in a peer-to-peer (or distributed) network environment, or as a server or a client machine in a cloud computing infrastructure or environment.

[0528] 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, or any machine capable of executing a set of instructions (sequential or otherwise) that specify actions to be performed by the machine. In addition, while a single machine is illustrated, the term "machine" shall also be construed to include any collection of machines that individually or jointly execute a set (or multiple sets) of instructions to perform any one or more of the methodologies discussed herein.

[0529] 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), etc.), static random access memory (SRAM), etc.), and a data storage system, which communicate with each other via a bus (which may include multiple buses).

[0530] 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 may be configured to execute instructions to perform the operations and steps described herein. The computer system may further include a network interface device to communicate over a network.

[0531] 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. During execution of the instructions by the computer system, the instructions may also reside completely or at least partially in the main memory and the processing device, which also constitute the machine-readable storage medium. The machine-readable medium, data storage system, or main memory may correspond to a memory subsystem.

[0532] In one embodiment, the instructions include instructions that 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 understood to include a single medium or multiple media that store one or more sets of instructions. The term "machine-readable storage medium" should also be understood to include any medium that can store or encode a set of instructions for execution by a machine and cause the machine to perform any one or more of the methods of the present disclosure. Therefore, the term "machine-readable storage medium" should be understood to include, but not limited to, solid-state memory, optical media, and magnetic media.

[0533] 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 most effective means for those skilled in the art of data processing to convey the content of their work to others skilled in the art. Here, and in general, an algorithm is conceived to be a self-consistent sequence of operations that produces a desired result. The operations are those requiring physical manipulation of physical quantities. Typically, but not necessarily, these quantities take the form of electrical or magnetic signals capable of being stored, combined, compared, and otherwise manipulated. It has proven convenient (primarily for reasons of common usage) at times to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, etc.

[0534] 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 be directed 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 a 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.

[0535] The present disclosure also relates to an apparatus for performing the operations described herein. This apparatus may be specially constructed for the desired 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 magneto-optical disks, read-only memories (ROMs), random access memories (RAMs), EPROMs, EEPROMs, magnetic or optical cards, or any type of medium suitable for storing electronic instructions, which are respectively coupled to a computer system bus.

[0536] The algorithms and displays presented herein are not inherently related to any particular computer or other device. Various general purpose systems may be used with the program according to the teachings herein, or it may prove convenient to construct more specialized equipment to perform the 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 described without reference to any particular programming language. It should be appreciated that a variety of programming languages ​​may be used to implement the teachings of the present disclosure described herein.

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

[0538] In this specification, in order to simplify the description, various functions and operations can be described as being performed by computer instructions or caused by computer instructions. However, those skilled in the art will recognize that the meaning of this expression is that these functions are generated by one or more controllers or processors such as microprocessors executing computer instructions. Alternatively or in combination, dedicated circuit systems with or without software instructions can be used, such as using application specific integrated circuits (ASICs) or field programmable gate arrays (FPGAs) to implement functions and operations. Hard-wired circuit systems without software instructions or in combination with software instructions can be used to implement embodiments. Therefore, these technologies are neither limited to any specific combination of hardware circuit systems and software, nor to any specific source of instructions executed by a data processing system.

[0539] Unless specifically stated otherwise, disjunctive language such as the phrase "at least one of X, Y, or Z" should be understood within the context of use to generally present an item, term, etc. that can 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.

[0540] In the foregoing description, embodiments of the present disclosure have been described with reference to specific example embodiments of the present disclosure. It will be apparent that various modifications may be made to the present disclosure without departing from the broad spirit and scope of the embodiments of the present disclosure as set forth in the appended claims. Therefore, the description and drawings should be viewed in an illustrative rather than a restrictive sense.

Claims

1. A device comprising: a memory cell array having sets of memory cells, wherein each set includes first and second cells programmable to store signed weights, and third and fourth cells programmable to store negative versions of the signed weights; a voltage driver configured to apply a voltage to the first, second, third, and fourth cells in each set; a first line coupled to the first and second cells in each set, wherein the first line is configured to sum output currents from the first and second cells; as well as A second line is coupled to the third and fourth cells in each set, wherein the second line is configured to sum output currents from the third and fourth cells.

2. The device according to claim 1, wherein: The signed weight is a signed 1-bit weight; The first and second cells are used to store two bits of the signed 1-bit weight; and The third and fourth cells are used to store two bits of the negative version of the signed 1-bit weight.

3. The device of claim 2, wherein the device further comprises two input lines configured to apply two bits of signed input to each set of memory cells.

4. The apparatus of claim 1, wherein the voltages are applied such that operation of the first, second, third, and fourth cells in each set remains in a subthreshold mode when performing multiplication.

5. The device according to claim 1, wherein: The signed result has first and second bits; The first result is the first bit of the signed result; and The second result is the second bit of the signed result.

6. The device according to claim 1, wherein: The voltage applied to each set represents a 1-bit signed input; and Applying the voltage includes applying a first bit of the signed input to the first and third cells and applying a second bit of the signed input to the second and fourth cells.

7. The device of claim 6, further comprising first and second input lines coupled to the voltage driver and for applying the voltage, wherein: The first input line is coupled to the first and third cells and is used to apply at least one voltage corresponding to the first bit; and The second input line is coupled to the second and fourth cells and is used to apply at least one voltage corresponding to the second bit.

8. The device according to claim 1, further comprising: a bit line coupled to the first, second, third, and fourth cells in each set; as well as a select transistor configured to electrically connect the bit lines of each set to the first and second lines; The voltage is applied to the gate of the selection transistor to cause a voltage change on the bit line.

9. The device of claim 1, wherein the first, second, third, and fourth cells in each set are accessed using a common word line.

10. The apparatus of claim 9, wherein applying the voltage comprises: maintaining the common word line in each set at a constant voltage; as well as The voltage on the bit lines connected to the first, second, third and fourth cells in each set is changed, wherein the voltage on the bit lines is changed based on the value of the signed input of the set.