MEMORY SYSTEM AND METHOD FOR OPERATING A MEMORY SYSTEM - Patent application

The memory system addresses the Von Neumann bottleneck by implementing computing-in-memory operations with programmable memory cells and conversion logic, enhancing computing efficiency in AI and ML applications.

JP7561906B2Active Publication Date: 2024-10-04TAIWAN SEMICONDUCTOR MANUFACTURING CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023038881
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2022-08-21
Filing Date
2023-03-13
Publication Date
2024-10-04
Estimated Expiration
2043-03-13

AI Technical Summary

Technical Problem

The speed of high-performance computing applications such as AI, DL, and ML is limited by memory access speed, known as the Von Neumann bottleneck, necessitating new architectures to enhance memory access efficiency.

Method used

A memory system with a memory array and processing circuit that performs computing-in-memory (CiM) operations, utilizing a memory array with programmable electrical characteristics, a programming circuit, and a control circuit to manage write and read operations, including conversion logic for signed and unsigned numbers.

Benefits of technology

The system efficiently performs matrix multiplication by programming memory cells based on weight values, enabling faster and more efficient computing-in-memory operations, particularly in AI and ML applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007561906000003
    Figure 0007561906000003
  • Figure 0007561906000004
    Figure 0007561906000004
  • Figure 0007561906000005
    Figure 0007561906000005
Patent Text Reader

Abstract

To provide a memory system and an operation method of the memory system.SOLUTION: A memory system for performing a computing-in-memory (CiM) operation comprises: a memory array including a plurality of memory cells; and a processing circuit coupled to the memory array, including a programming circuit connected to the memory array, for performing write operation so as to program electrical characteristics of the memory cells, and a control circuit coupled to the programming circuit, for receiving a plurality of weight data corresponding to a plurality of weight values, and for programming the electrical characteristics of the memory cells according to a sequential order of the weight values by controlling the write operation performed by the programming circuit.SELECTED DRAWING: Figure 4A
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to memory systems and methods of operating memory arrays, and more particularly to memory systems and methods of operating memory arrays that include a memory array and processing circuitry. [Background technology]

[0002] High performance computing (HPC) applications such as artificial intelligence (AI), deep learning (DL), machine learning (ML), and reinforcement learning often involve a large number of matrix multiplications, the speed of which is limited by memory access speed, also known as the Von Neumann bottleneck. In light of this speed limitation, computing-in-memory (CiM) architecture has attracted attention because it has the potential to break through the Von Neumann bottleneck in current computing architectures. Summary of the Invention

[0003] One embodiment of the present disclosure provides a memory system for performing computing-in-memory operations, comprising: a memory array including a plurality of memory cells; a programming circuit coupled to the memory array for performing a write operation to program a plurality of electrical characteristics of the memory cells; and a processing circuit coupled to the memory array, the processing circuit including: a control circuit coupled to the programming circuit for receiving a plurality of weight data corresponding to a plurality of weight values ​​and controlling the write operation performed by the programming circuit to program the electrical characteristics of the memory cells according to a sequential order of the weight values.

[0004] Another embodiment of the present disclosure provides a memory system for performing computing-in-memory operations, comprising: a memory array including a plurality of memory cells coupled to bit lines, storing a plurality of weight data, each of the weight data being a plurality of signed numbers corresponding to a plurality of weight values, and controlled by a plurality of word lines; a control circuit coupled to the programming circuit, receiving a plurality of input data corresponding to a plurality of input values, and controlling a plurality of voltages on the word lines, respectively, based on the input data to enable or disable each of the memory cells; a read circuit coupled to the bit lines, for performing a read operation to read a plurality of electrical characteristics of the enabled memory cells and generate a first summation result based on the unsigned data; and a displacement converter coupled to the read circuit, for encoding the first summation result in a two's complement representation to generate a signed summation result, and a processing circuit coupled to the memory array.

[0005] Another embodiment of the present disclosure provides a method of operating a memory array including a plurality of memory cells coupled to bit lines, storing a plurality of weight data, each of which is a plurality of signed numbers corresponding to a plurality of weight values, and controlled by a plurality of word lines, the method including: controlling a plurality of voltages on the word lines, respectively, based on a plurality of input data to enable or disable each of the memory cells; performing a read operation to read a plurality of electrical characteristics of the enabled memory cells and generate a first sum result, which is unsigned data; and encoding the first sum result using a two's complement representation to generate a signed sum result. [Brief description of the drawings]

[0006] Aspects of the present invention will be best understood from the following detailed description when read in conjunction with the accompanying drawings. It should be noted that, in accordance with standard practice in the industry, various features have not been drawn to scale. In fact, the dimensions of various features may be arbitrarily increased or decreased for clarity of illustration. [Figure 1] FIG. 1 is a schematic block diagram illustrating a memory system according to some embodiments. [Figure 2A] 1 illustrates a table of programming operations in a multi-level cell (MLC) when weight data are unsigned and signed numbers, respectively, according to some embodiments. [Figure 2B] 1 illustrates a table of programming operations in a tri-level cell (TLC) when weight data are unsigned and signed numbers, respectively, according to some embodiments. [Figure 3A] 1 illustrates a table of read operations performed in an MLC when weight data is an unsigned number and a signed number, respectively, according to some embodiments. [Figure 3B] 4 illustrates a data conversion performed by a read circuit when performing a read operation on an MLC in which signed number weight data is stored, according to some embodiments. [Figure 3C] 1 illustrates a table of read operations performed in a TLC when weight data is an unsigned number and a signed number, respectively, according to some embodiments. [Figure 3D] 4 illustrates a data transformation performed by a read circuit when performing a read operation on a TLC having signed number weight data stored therein, according to some embodiments. [Figure 4A] 1 illustrates a memory system according to some embodiments. [Figure 4B] 4 illustrates a table of read operations performed by a read circuit when weight data is a signed number, according to some embodiments. [Figure 5A] 1 is a flow chart illustrating a method of operation according to some embodiments. [Figure 5B]10 is a flow chart illustrating another method of operation according to some embodiments. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0007] The following disclosure provides many different embodiments or examples of different features for implementing the proposed subject matter. Below, specific examples of components and arrangements are described in a manner that simplifies the present invention. Of course, these are merely illustrative and not intended to be limiting. For example, in the following description, a first feature formed above or on a second feature may include an embodiment in which the first feature and the second feature are formed such that they are in direct contact, and may include an embodiment in which another feature is formed between the first feature and the second feature to allow the first feature and the second feature to not be in direct contact. Also, in the various examples of the present invention, numerals and / or letters may be repeatedly referenced. This repetition is for simplicity and clarity, and does not in itself dictate a relationship between the various embodiments and / or configurations being described.

[0008] Also, for ease of description, spatially relative terms such as "below," "below," "lower," "above," "upper," "on," "above," and the like may be used herein to describe the relationship of one element or feature to another element or feature shown in each figure. The spatially relative terms are intended to encompass different orientations during use or operation of the device other than the orientation depicted in each figure. The device may be otherwise oriented (rotated 90 degrees or at other orientations) and the spatially relative descriptors used herein may be interpreted accordingly and similarly. A source / drain region may refer to a source or a drain, either individually or jointly as determined by the context.

[0009] FIG. 1 is a schematic block diagram illustrating a memory system 1 according to some embodiments. The memory system 1 can be used to perform computing-in-memory (CiM) operations. The memory system 1 includes a memory array 10 and a processing circuit (also referred to as a controller) 12 coupled to the memory array 10. The processing circuit 12 is used to control the operation of the memory array 10. The processing circuit 12 is used to perform at least one of a write operation (also referred to as a programming operation) or a read operation on the memory array 10. In some embodiments, the memory system 1 is integrated and provided on a single wafer in the form of a system on a chip (SOC). In some embodiments, the memory system 1 is included as a part of a larger IC device, which includes other functional circuit systems besides the memory system. In some embodiments, the memory system 1 is provided on at least one chip.

[0010] In the exemplary configuration of the memory system 1 in FIG. 1, although not shown, the memory array 10 includes a plurality of memory cells arranged in rows and columns. The memory cells may include at least one storage element. The electrical characteristics (e.g., resistance or threshold voltage or other suitable electrical characteristics) of each storage element are programmable at different levels. Thus, the memory cells can store data by programming the electrical characteristics of the storage element at a corresponding level. In some embodiments, each of the memory cells in the memory array 10 is a multi-level cell (MLC), tri-level cell (TLC), quadra-level cell (QLC), or the like. In some embodiments, the memory system 1 including the plurality of memory cells is configured as one of an MLC, TLC, or QLC memory and used to store data. In one or more embodiments, the MLC, TLC, or QLC memory is further used to perform CiM operations. In at least one embodiment, one or more advantages may be achieved, including, but not limited to, a larger memory window (room to read data from memory), better computing performance, or the like.

[0011] The memory array 10 further includes a number of word lines, a number of source lines, and at least one bit line. Each of the memory cells is coupled to the processing circuit 12 via a corresponding bit line and a corresponding word line. The word lines are used to transmit addresses of memory cells, or storage elements in the memory cells, to be read from and / or written to, or the like. The word lines may be referred to as "address lines." The at least one bit line and / or source line are used to transmit data to be written to and / or read from the memory cells, or storage elements in the memory cells, indicated by the addresses on the corresponding word lines, or the like. The at least one bit line and / or source line may be referred to as a "data line." The number of each of the word lines, bit lines, and / or source lines in the memory array 10 is within the scope of various embodiments.

[0012] Examples of memory elements programmable to have different electrical characteristic values ​​include, but are not limited to, resistive random access memory (ReRAM or RRAM), magnetic random access memory (MRAM), phase change memory (PCM), flash memory including charge storage material or floating gate, or the like. In one or more embodiments, NOR gate and NAND gate flash memory are both adapted to implement the memory element of a memory cell. The RRAM, MRAM, or PCM memory element includes an access transistor electrically coupled in series with a memory layer. The memory layer is programmable to have two or more states corresponding to two or more resistance values ​​of the memory element. The gate of the access transistor of the RRAM, MRAM, or PCM memory element corresponds to the control terminal of the memory element and is electrically coupled to a corresponding word line. The flash memory element includes a transistor having a floating gate or charge storage layer. The floating gate or charge storage layer is programmable to store two or more levels of charge corresponding to two or more resistance values ​​of the memory element. The gates of the transistors in a flash memory element correspond to the control terminals of the storage element and are electrically coupled to corresponding word lines. Other types or configurations of storage elements are within the scope of various embodiments.

[0013] Processing circuitry 12 includes programming circuitry 120, control circuitry 122, and read circuitry 124. In at least one embodiment, processing circuitry 12 further includes one or more clock generators for providing clock signals to various components of memory system 1, one or more input / output (I / O) circuits for exchanging data with external devices, and / or one or more controllers for controlling various operations in memory system 1.

[0014] The programming circuitry 120 is coupled to the memory cells of the memory array 10 via at least one bit line and a source line to perform a write operation on at least one memory cell of the memory array 10. In at least one embodiment, the processing circuitry 12 further includes a word line driver (also referred to as a "word line decoder") coupled to the memory array 10 via a word line. The word line driver is used to decode a row address of a selected memory cell, which is selected for accessing in a read or write operation. In at least one embodiment, the programming circuitry 120 controls a voltage on a corresponding source line to perform a write operation on the selected memory cell, so that electrical characteristics of the selected memory cell can be adjusted to a level corresponding to an applied voltage.

[0015] The read circuitry 124 is coupled to the memory cells of the memory array 10 via at least one bit line to perform a read operation on at least one memory cell of the memory array 10. In at least one embodiment, the read circuitry 124 further includes a sense amplifier coupled to the memory array 10 via the at least one bit line. The sense amplifier is used to read electrical characteristics of the memory cells from the at least one bit line during a read operation.

[0016] The control circuit 122 is coupled to the programming circuit 120 and the read circuit 124 to control write and / or read operations performed on the memory array 10. In at least one embodiment, the control circuit 122 is used to receive a plurality of weight data corresponding to a plurality of weight values ​​and control the programming circuit 120 to perform write operations on the memory cells, whereby the electrical characteristics of the memory cells are programmable to follow the order of the weight values. In at least one embodiment, the electrical characteristics of the individual memory cells are programmed according to a sequential order of the weight values. The electrical characteristics of each memory cell increases and decreases continuously with the increase and decrease of the weight value. Examples of the control circuit 122 include, but are not limited to, a central processing unit (CPU), a memory controller, a microprocessor control unit (MCU), an application specific integrated circuit (ASIC), a circuit implementation of a field programmable gate array (FPGA), or a circuit implementation from a hardware description language (e.g., Verilog, VHDL), and the like. Other types or configurations of control circuitry 122 are within the scope of various embodiments.

[0017] For example, in a write operation, a selected memory cell is supplied with a write voltage via a corresponding word line, and a low voltage is provided to the selected memory cell via a corresponding bit line and / or a corresponding source line of the programming circuit 120, thus providing a sufficiently large voltage difference to the selected memory cell to perform the write operation, and a high voltage is provided to the corresponding bit lines of the unselected memory cells, thus providing an insufficient voltage to the unselected memory cells.

[0018] More particularly, for signed and unsigned numbers, the order of the weight data for the weight values ​​is different. Table 1 below shows examples of weight data and weight values ​​for 2-bit signed and unsigned numbers arranged in bit order. For example, the bit order of the weight data increases with increasing binary value of the weight data following the order 00, 01, 10, 11. As shown in Table 1, the weight data for signed and unsigned numbers are listed in bit order. For unsigned numbers, the weight value increases monotonically with the bit order of the weight data. However, for signed numbers, the weight value does not increase or decrease monotonically with increasing bit order of the weight data. If the sign bit of the signed number does not change, the weight value of the signed number increases with the bit order of the weight data. However, if the sign bit of the signed number changes (e.g., the weight data changes from 01 to 10), the weight value of the signed number decreases but the bit order of the weight data increases. In other words, for unsigned numbers, the bit order of the weight data is the same as the sequential order of the weight values, but for signed numbers, it is different. Such difference between the bit order of the weight data and the sequential order of the weight values ​​requires an additional conversion when the control circuit 122 performs a write operation of the signed numbers, so that the electrical characteristics of the memory cells can be programmed according to the sequential order of the corresponding weight values. In other words, the electrical characteristics of the memory cells are programmed according to the order of the weight values ​​received by the control circuit 102, not the bit order of the weight data. It should be noted that in this example, the weight values ​​are encoded as weight data in two's complement representation, but other suitable encoding mechanisms, such as the complement used for signed numbers, are within the scope of various embodiments. [Table 1]

[0019] In at least one embodiment, the processing circuit 12 further includes a register coupled to the control circuit 122. The register is used to store and record a table of programming parameters corresponding to all weight data of signed and unsigned numbers. The programming parameters may be, for example, but not limited to, a write voltage applied to a corresponding source line and / or a corresponding bit line. Thus, the control circuit 122 can identify whether the received weight data is a signed number or an unsigned number, and obtain the appropriate programming parameters from the stored table based on the identification result and the received weight data, thereby programming the electrical characteristics of the selected memory cells according to the sequential order of the corresponding weight values.

[0020] In addition to including registers, the processing circuitry 12 may also include conversion logic coupled to the control circuitry 122 to perform data conversion. For example, the conversion logic may be used to perform data conversion on the weight data of signed numbers. If it is determined that the weight data is an unsigned number, the conversion logic may be disabled, such that the unsigned weight data may be directly provided to the programming circuitry 120 during a write operation. If it is determined that the weight data is a signed number, the conversion logic may be enabled to convert the weight data to weight values, such that the programming circuitry 120 is enabled to program the electrical characteristics of the memory cells according to a sequential order of the weight values ​​during a write operation.

[0021] FIG. 2A shows a table 200a, 200b of programming operation in MLC when the weight data is unsigned number and signed number according to some embodiments. Table 200a shows the weight data of unsigned number to be programmed, the weight value corresponding to the weight data, and the electrical characteristics for programming MLC including cell resistance and conductivity (1 / R). In table 200a, the weight values ​​are arranged in sequential order in the second column, the corresponding weight data to be programmed is in the first column, and the corresponding electrical characteristics of MLC are in the third and fourth columns. It can be seen that as the weight value of unsigned number increases, the cell resistance of MLC decreases and the conductivity increases. Also, the bit order of the weight data is consistent with the sequential order of the weight values.

[0022] Table 200b shows the weight data of the signed numbers to be programmed, the weight values ​​corresponding to the weight data, and the electrical characteristics for programming the MLC, including cell resistance and conductivity. In table 200b, the weight values ​​are arranged in sequential order in the second column, the corresponding weight data to be programmed is in the first column, and the corresponding electrical characteristics of the MLC are in the third and fourth columns. Similarly, as the weight value increases, the cell resistance of the MLC decreases, but the conductivity of the memory cell increases. Thus, in table 200a and table 200b, the order of the electrical characteristics, including both cell resistance and conductivity, is programmed according to the sequential order of the weight values, and the above-mentioned order of the electrical characteristics for the sequential order of the weight values ​​is the same when programming with signed and unsigned numbers.

[0023] FIG. 2B shows tables 200c, 200d of programming operations in a TLC when the weight data is an unsigned number and a signed number according to some embodiments. Table 200c shows the weight data of the unsigned number to be programmed, the weight values ​​corresponding to the weight data, and the electrical characteristics for programming the TLC, including cell resistance and conductivity. In table 200c, the weight values ​​are arranged in sequential order in the second column, the corresponding weight data to be programmed is in the first column, and the corresponding electrical characteristics of the TLC are in the third and fourth columns. It can be seen that with the increase of the weight value of the unsigned number, the cell resistance of the TLC decreases and the conductivity increases. Also, the bit order of the weight data is consistent with the sequential order of the weight values.

[0024] Table 200d shows the weight data of the signed numbers to be programmed, the weight values ​​corresponding to the weight data, and the electrical characteristics for programming the TLC, including cell resistance and conductivity. In table 200d, the weight values ​​are arranged in sequential order in the second column, the corresponding weight data to be programmed is in the first column, and the corresponding electrical characteristics of the TLC are in the third and fourth columns. Similarly, as the weight value increases, the cell resistance of the TLC decreases, but the conductivity of the memory cell increases. Therefore, in tables 200c and 200d, the order of the electrical characteristics, including both cell resistance and conductivity, is programmed according to the sequential order of the weight values, and the above-mentioned order of the electrical characteristics for the sequential order of the weight values ​​is the same when programming with signed and unsigned numbers.

[0025] Also, for the electrical characteristics of unsigned numbers, whether 2-bit or 3-bit, the cell resistance is inversely proportional to the weight value, while the conductivity is directly proportional to the weight value. More specifically, the programmed conductivity is linearly related to the weight value, which further contributes to the CiM operation performed in the MLC. The CiM operation will be described in more detail below.

[0026] For example, during a read operation, a selected memory cell is used to provide a read voltage via a corresponding word line to fully enable the selected memory cell, and a read current is provided to the selected memory cell via a corresponding source line. Thus, the selected memory cell is enabled to perform a read operation, and a current flowing through the memory cell is determined by an electrical characteristic of a storage element in the memory cell (the electrical characteristic is programmed at a level corresponding to weight data) and provided to a corresponding bit line. A sense amplifier is used to receive the current and compare it with at least one current threshold value to determine the received current level. Thus, data stored in the selected memory cell is obtained from the comparison result generated by the sense amplifier.

[0027] 3A shows tables 300a, 300b of read operations performed on an MLC when the weight data is an unsigned number and a signed number, according to some embodiments. Table 300a shows stored weight data of an unsigned number, weight values ​​corresponding to the weight data, and electrical characteristics of the MLC to be read, including cell resistance and conductivity. In table 300a, the sequential order of the weight values ​​is the same as the bit order of the weight data, so that the order of the electrical characteristics (especially the conductivity) read from the MLC also follows the bit order of the weight data.

[0028] Table 300b shows the stored weight data of signed numbers, the weight values ​​corresponding to the weight data, and the electrical characteristics of the MLC that are read, including cell resistance and conductivity. In table 300b, the sequential order of the weight values ​​is different from the bit order of the weight data, so the order of the electrical characteristics (especially the conductivity) read from the MLC does not match the bit order of the weight data.

[0029] In at least one embodiment, a read operation is performed by sensing the current level through the memory cell with the read circuit 124. One advantage of programming the electrical characteristics to a sequential order of weight values ​​is that when a read operation is performed with an MLC storing weight data of unsigned numbers, the order of the electrical characteristics (including both resistance and conductivity) read from the MLC matches the bit order of the weight data, so the sequential order of the electrical characteristics specified by the read circuit 124 can be easily used as weight data of unsigned numbers. Therefore, when a read operation is performed with an MLC storing weight data of unsigned numbers, simple data conversion or no data conversion is required. In at least one embodiment, when a read operation is performed with an MLC storing weight data of signed numbers, the read circuit 124 needs to perform an additional data conversion to specify the electrical characteristics of the MLC as unsigned numbers according to the comparison results from the sense amplifier.

[0030] FIG. 3B illustrates data conversion performed by the read circuit 124 when performing a read operation on an MLC with weight data of signed numbers stored therein, according to some embodiments. FIG. 3B illustrates two lines L1, L2, which correspond to the relationship between conductivity and weight values ​​of unsigned and signed numbers, respectively. In at least one embodiment, the read circuit 124 reads the conductivity from the MLC and generates a first read data of unsigned data. The first read data corresponds to the data listed in the second column of the table 300b shown in FIG. 3A, and also covers the range of weight values ​​from 0 to 3, as shown by line L1 in FIG. 3B. To convert the first read data from unsigned to signed, line L1 is doubled. n-1 It is necessary to shift the line L1 to the left by a shift amount of n to the line L2, where n is the number of bits associated with each weight data, i.e., 2 in this embodiment. In some cases, n is also referred to as the number of bits of weight data. n-1 The operation of shifting the first read data to the left by 2 n-1For example, referring to the first row in table 300b, the first read data is 11, which corresponds to a data conversion of 10 (binary value 2 2-1 01) corresponding to the weight data programmed in the MLC is calculated by subtracting the value 01 from the comparison result generated by the sense amplifier during the read operation to read the weight data of the signed number from the MLC. 2-1 Weight data of a signed number can be obtained by using a data conversion in which

[0031] FIG. 3C shows tables 300c, 300d of read operations performed on the TLC when the weight data are unsigned and signed numbers, respectively, according to some embodiments. Table 300c shows the stored weight data of unsigned numbers, the weight values ​​corresponding to the weight data, and the electrical characteristics for programming the TLC, including cell resistance and conductivity. Table 300d shows the stored weight data of signed numbers, the weight values ​​corresponding to the weight data, and the electrical characteristics for programming the TLC, including cell resistance and conductivity. Similar to the above-discussed tables 300a, 300b, as shown in table 300c, the sequential order of the weight values ​​is the same as the bit order of the weight data, so that the order of the electrical characteristics (especially the conductivity) read from the TLC also follows the bit order of the weight data. As shown in table 300d, the sequential order of the weight values ​​is different from the bit order of the weight data, so that the order of the electrical characteristics (especially the conductivity) read from the TLC does not match the bit order of the weight data.

[0032] FIG. 3D illustrates data conversion performed by the read circuit 124 when performing a read operation on a TLC with weight data of signed numbers stored therein, according to some embodiments. Two lines L3, L4 are shown in FIG. 3D, which correspond to the relationship between the conductivity and weight values ​​of unsigned and signed numbers, respectively. In at least one embodiment, the read circuit 124 reads the conductivity of the TLC and generates a first read data of unsigned data. The first read data corresponds to the data listed in the second column of the table 300d shown in FIG. 3C, and also covers the range of weight values ​​from 0 to 7, as shown by line L3 in FIG. 3D. To convert the first read data from unsigned to signed, line L3 is doubled. n-1 It is necessary to shift line L3 to the left by a shift amount of n to line L4, where n is the number of bits associated with each weight data, i.e., 3 in this embodiment. n-1 The operation of shifting the first read data to the left by 2 n-1 For example, referring to the fifth row in table 300d, the read data is 011, which corresponds to a data conversion of 100 (binary value 2 3-1 10) to calculate the signed read data 111 corresponding to the weight data programmed in the TLC. Thus, during a read operation to read the signed number weight data from the TLC, the comparison result generated by the sense amplifier is subtracted from the numerical value 2 3-1 Weight data of a signed number can be obtained by using a data conversion in which

[0033] 4A illustrates a memory system 4 according to some embodiments. The memory system 4 can be used to perform computing-in-memory (CiM) operations. The memory system 4 includes a memory array 40 and a processing circuit 42 coupled to the memory array 40. The processing circuit 42 is used to control operations of the memory array 40. The processing circuit 42 is used to perform at least one of write operations and / or read operations to the memory array 40.

[0034] The memory array 40 includes a number of memory cells MC1-MCn coupled to respective word lines WL1-WLn. Each of the memory cells MC1-MCn has one terminal coupled to a source line SL and another terminal coupled to a bit line BL, with a control terminal of each memory cell being controlled by a corresponding one of the word lines. In at least one embodiment, each memory cell includes a storage element and a selector coupled in series between the source line SL and the bit line BL. The control terminal of the selector is coupled to a corresponding one of the word lines to control the memory cell to be enabled or disabled by a voltage provided on the word line. The electrical characteristics (e.g., resistance or critical voltage or other suitable electrical characteristic) of each memory cell are programmed to different levels. Thus, the memory cells can store data by programming the electrical characteristics of the storage elements to corresponding levels. Although only one source line and one bit line are shown in FIG. 4A, various numbers of word lines and / or bit lines and / or source lines in the memory array 40 are within the scope of various embodiments.

[0035] Processing circuitry 42 includes programming circuitry 420, control circuitry 422, read circuitry 424, and displacement transducer 426. In at least one embodiment, processing circuitry 42 further includes one or more clock generators for providing clock signals to various components of memory system 4, one or more input / output (I / O) circuits for exchanging data with external devices, and / or one or more controllers for controlling various operations of memory system 4.

[0036] The programming circuitry 420 is coupled to the memory cells MC1-MCn of the memory array 40 via bit lines BL and source lines SL to perform write operations on the memory cells MC1-MCn of the memory array 40. In at least one embodiment, the processing circuitry 42 further includes a word line driver (also referred to as a "word line decoder") coupled to the memory array 40 via word lines. The word line driver is used to decode a row address of a selected memory cell, which is selected for accessing in a read or write operation. Additionally, details of a write operation have been described above with reference to Figures 2A and 2B and will not be repeated here.

[0037] The read circuit 424 is coupled to memory cells MC1-MCn of the memory array 40 via bit lines BL to perform a read operation on at least one memory cell of the memory array 40. In at least one embodiment, the read circuit 424 further includes a sense amplifier coupled to the memory array 40 via the bit lines. The sense amplifier is used to read the levels of the equivalent electrical characteristics of the enabled memory cells MC1-MCn from the bit lines BL during the read operation. The read circuit 424 also generates a summation result SR1 that is linearly related to the equivalent electrical characteristics received from the bit lines BL.

[0038] The control circuit 422 is coupled to the programming circuit 420 and the read circuit 424 to control write and / or read operations performed on the memory array 40. In at least one embodiment, the control circuit 422 is used to receive a plurality of weight data corresponding to a plurality of weight values ​​and control the programming circuit 420 to perform write operations on the memory cells, whereby the electrical characteristics of the memory cells are programmable to follow the order of the weight values. In at least one embodiment, the electrical characteristics of the memory cells are programmed according to the sequential order of the weight values. Examples of the control circuit 422 include, but are not limited to, a central processing unit (CPU), a memory controller, a microprocessor control unit (MCU), an application specific integrated circuit (ASIC), a circuit implementation of a field programmable gate array (FPGA), or a circuit implementation from a hardware description language (e.g., Verilog, VHDL), or the like. Other types or configurations of the control circuit 422 are within the scope of various embodiments.

[0039] 4B shows a table 400a illustrating weight values ​​of a read operation performed by the read circuit 424 and resistance values ​​of memory cells when the weight data is a signed number, according to some embodiments. In this embodiment, four memory cells MC1 to MC4 are arranged in parallel between a source line SL and a bit line BL in the memory array 40, and all the memory cells MC1 to MC4 are controlled to be enabled by word lines WL1 to WL4. Each of the memory cells MC1 to MC4 is an MLC that can store 2-bit weight data.

[0040] Table 400a shows the weight values ​​stored by memory cells MC1-MC4, the cell resistances of memory cells MC1-MC4, and the equivalent resistances Req and conductivity 1 / Req of the parallel memory cells MC1-MC4. More specifically, table 400a shows a read operation performed on memory cells MC1-MC4 in which negative weight values ​​are stored. In this example, the electrical characteristics of each memory cell are programmed according to the sequential order of the weight values ​​rather than the bit order of the weight data. More specifically, the cell resistance of each memory cell is programmed to be inversely proportional to the weight value, while the conductivity is directly proportional to the weight value. Thus, the conductivity of each memory cell is linearly related to the corresponding weight value.

[0041] As can be seen from the table 400a, the total conductivity 1 / Req of the memory cells MC1-MC4 is also proportional to the sum of the programmed weight values ​​in the memory cells MC1-MC4. In other words, when the weight data is a signed number, a linear relationship between the programmed conductivity of each memory cell and the stored weight value is also stored in the memory cells of the same bit line. This linear relationship allows the read circuit 424 to obtain a sum result SR1 that is linearly related to the sum of the weight values ​​from the total current in the bit line BL. Thus, the sum of the weight values ​​in the same bit line is obtained by the read circuit 424 receiving the total current of the memory cells in the same bit line without requiring any additional circuitry to convert between signed and unsigned numbers before the summation. Thus, the read circuit 424 can obtain the sum of the signed and / or unsigned numbers stored in the memory cells coupled to the same bit line by performing a read operation. In at least one embodiment, the summation result SR1 generated by the read circuit 424 is unsigned data, so that the summation result SR1 has a linear relationship with the weight value, as discussed above with respect to FIGS. 3A-3D.

[0042] In at least one embodiment, a CiM operation is performed by the memory system 4 to calculate a sum of products (SOP) result. In at least one embodiment, the control circuit 422 receives input data In1-Inn to control the voltages at the word lines WL1-WLn, respectively, and each memory cell MC1-MCn can be enabled or disabled accordingly. For example, when receiving input data with an input value of 1, a read voltage may be provided by the address decoder to the corresponding word line to enable the selected memory cell. Otherwise, when receiving input data with an input value of 0, the corresponding memory cell is disabled. Thus, each memory cell is enabled or disabled in response to the corresponding input data, and provides a total current to the bit line BL corresponding to the sum of the conductivity of the enabled memory cells. The total current flowing through the bit line BL is equivalent to the SOP result of multiplying the input data In1-Inn by the weight data stored by the memory cells MC1-MCn, respectively. In other words, the SOP result of multiplying the input data In1~Inn by the weight data stored by the memory cells MC1~MCn respectively is obtained when performing a read operation on the memory cells MC1~MCn, thereby completing the CiM operation.

[0043] However, since the summation result SR1 generated by the read circuit 424 is unsigned data, further data conversion is required if the weight data stored in the memory cell is a signed number. In at least one embodiment, a displacement converter 426 is coupled to the read circuit 424 and used to generate a signed summation result SSR based on the summation result SR1 from the read circuit 424. Specifically, as described above with respect to FIGS. 3A-3D, the summation result SR1 is unsigned data following a sequential order of weight values, which is different from the bit order of the signed weight data. Therefore, the displacement converter 426 is provided in the processing circuit 42. The displacement converter 426 is coupled to the read circuit 424 and used to generate the signed summation result SSR by converting the summation result SR1 into signed data in two's complement representation.

[0044] In at least one embodiment, the displacement converter 426 includes an adder 428 and a subtractor 430. The adder 428 receives the input data In1 to Inn, calculates the sum thereof, and adds 2 to the sum of the input data In1 to Inn. n-1 The subtractor 430 is coupled to the adder 428 and is used for subtracting the summation result SR2 from the summation result SR1 to generate a signed summation result SSR.

[0045] Specifically, the results of multiplication and addition between the input data In1 to Inn and the weight data stored in the memory cells MC1 to MCn are obtained as follows.

number

[0046] Figure 5A shows a flow chart of a method of operation 500 according to some embodiments. The method of operation 500 may be implemented and performed by the memory systems 1 and 4 shown in Figures 1 and 4A. The method of operation 500 includes steps S50 and S51.

[0047] The memory array 40 in FIG. 4A is a NAND memory array, but also applies to other types of memory arrays, such as a NOR memory array. For example, memory cells in a NOR memory array can be coupled in series, and the calculation results are obtained by measuring the voltage or equivalent resistance of the memory cells coupled in series. Also, the resistance and / or conductivity values ​​in FIG. 2A-2B, FIG. 3A-3D, and FIG. 4B are merely for illustration purposes. Those skilled in the art can modify the electrical values ​​of the memory cells so that the memory system can be adapted to various design concepts and system requirements.

[0048] In step S50, a plurality of weight data corresponding to a plurality of weight values ​​is received. In step S51, a write operation is performed on the memory cells to program the electrical characteristics of the memory cells according to a sequential order of the weight values.

[0049] More specifically, the received weight data may be a signed number or an unsigned number. For an unsigned number, the bit order of the weight data is the same as the sequential order of the weight values, but for a signed number, it is different, so that when performing a write operation of a signed number, the control circuit 122 or the control circuit 422 needs to perform further conversion so that the electrical characteristics of the memory cells can be programmed according to the sequential order of the corresponding weight values. In at least one embodiment, the programming operation may be performed by accessing the programmed parameters through a register, which is based not only on the received data but also on the identification result of whether the weight data is signed or not.

[0050] 5B is a flow chart illustrating another method of operation 502 according to some embodiments. The method of operation 502 includes steps S52 to S54. The method of operation 502 may be implemented and executed by the memory systems 1 and 4 shown in FIGS. 1 and 4A. The method of operation 502 includes steps S52 to S54.

[0051] In step S52, each memory cell storing the signed number is enabled or disabled by controlling the voltage on the word line based on a plurality of input data. In step S53, a read operation is performed to read the electrical characteristics of the enabled memory cell and generate a first sum result based on the unsigned data. In step S54, a signed sum result is generated by encoding the first sum result by two's complement representation.

[0052] More specifically, the electrical characteristics of each memory cell are programmed to store weight data of a signed number. The electrical characteristics are programmed according to a sequential order of weight values ​​corresponding to the weight data. More specifically, the electrical characteristics are programmed to be linearly related to the weight values, so that a first summation result of the weight values ​​is obtained by reading the equivalent electrical characteristics of the memory cells in step S53. However, since the electrical characteristics are linearly related to the weight values, the first summation result obtained from the electrical characteristics of the memory cells corresponds to unsigned data. Therefore, a data conversion is required from the unsigned first summation result to a signed summation result in step S54.

[0053] In at least one embodiment, a memory system for performing computing-in-memory (CiM) operations comprises a memory array including a plurality of memory cells, a programming circuit coupled to the memory array for performing write operations to program electrical characteristics of the memory cells, and a processing circuit coupled to the memory array, the processing circuit including: a programming circuit coupled to the memory array for performing write operations to program electrical characteristics of the memory cells according to a sequential order of the weight values; and a control circuit coupled to the programming circuit for receiving a plurality of weight data corresponding to a plurality of weight values ​​and controlling the write operations performed by the programming circuit to program the electrical characteristics of the memory cells according to a sequential order of the weight values.

[0054] In some embodiments, the weight data is a number of signed numbers encoded using two's complement representation.

[0055] In some embodiments, the electrical characteristic of a memory cell is programmed to increase with increasing corresponding weight value.

[0056] In some embodiments, the electrical characteristics of each of the memory cells are programmed to be proportional to a corresponding weight value.

[0057] In some embodiments, the memory cells are coupled to the bit lines and are each controlled by a plurality of word lines, and the memory system further includes read circuitry coupled to the bit lines for performing read operations on the memory cells to read electrical characteristics of the memory cells and generate a first sum result corresponding to a sum of products of a plurality of input values ​​multiplied by weight values.

[0058] In some embodiments, the control circuit is further used to receive a plurality of input data corresponding to the input values, and to control each of the memory cells to be enabled or disabled by controlling a plurality of voltages on the word lines, respectively, based on the input data.

[0059] In some embodiments, the read circuitry is further used to read the total current generated by the enabled memory cells coupled to the bit lines to generate a first sum result.

[0060] In some embodiments, the first summation result is linearly related to the equivalent electrical characteristic of the memory cell.

[0061] In some embodiments, the first summation result is based on unsigned data.

[0062] In some embodiments, the memory system further includes a displacement converter coupled to the read circuit for encoding the first summation result in two's complement representation to generate a signed summation result.

[0063] In some embodiments, the displacement transducer receives and sums the input data and adds 2 to the sum of the input data. n-1 (n is the number of bits of the weight data), and a subtractor for generating a signed summation result by subtracting the second summation result from the first summation result.

[0064] In some embodiments, if the weight data is a multiple of signed numbers, the displacement converter is enabled.

[0065] In at least one embodiment, a memory system for performing computing-in-memory (CiM) operations includes a memory array including a plurality of memory cells coupled to bit lines and storing a plurality of weight data, each of the weight data being a signed number corresponding to a plurality of weight values, and controlled by a plurality of word lines; a processing circuit coupled to the memory array, the processing circuit including a control circuit coupled to the programming circuit for receiving a plurality of input data corresponding to a plurality of input values ​​and controlling a voltage on the word lines respectively based on the plurality of input data to enable or disable each memory cell; a read circuit coupled to the bit lines for performing a read operation to read electrical characteristics of the enabled memory cells and generate a first summation result based on the unsigned data; and a displacement converter coupled to the read circuit for generating a signed summation result by encoding the first summation result with a two's complement number.

[0066] In some embodiments, a read circuit is used to read the total current generated by the enabled memory cells from the bit lines to generate a first sum result.

[0067] In some embodiments, the first summation result corresponds to a sum of products of the input values ​​multiplied by respective weight values.

[0068] In some embodiments, the first summation result is linearly related to the equivalent electrical characteristic of the enabled memory cells.

[0069] In some embodiments, the displacement transducer receives and sums the input data and adds 2 to the sum of the input data. n-1(n is the number of bits of the weight data), and a subtractor for generating a signed summation result by subtracting the second summation result from the first summation result.

[0070] In at least one embodiment, a memory array includes a plurality of memory cells coupled to bit lines, each memory cell storing a plurality of weight data corresponding to a plurality of weight values, and controlled by a plurality of word lines. A method for operating the memory array includes controlling voltages on the word lines to enable or disable each memory cell based on a plurality of input data, performing a read operation to read electrical characteristics of the enabled memory cells and generate a first sum result, the first sum result being unsigned data, and encoding the first sum result using a two's complement representation to generate a signed sum result.

[0071] In some embodiments, the step of generating a signed sum result by encoding the first sum result in two's complement representation includes receiving and adding input data and adding a two to the sum of the input data. n-1 (n is the number of bits of the weight data) to generate a second summation result, and subtracting the second summation result from the first summation result to generate a signed summation result.

[0072] In some embodiments, the first summation result is linearly related to the equivalent electrical characteristic of the enabled memory cells.

[0073] The foregoing has outlined features of several embodiments so that those skilled in the art may better understand aspects of the present invention. Those skilled in the art should readily appreciate that the present invention may be used as a basis for designing or modifying other processes and structures which carry out the same purposes and / or achieve the same advantages as the embodiments incorporated herein. Those skilled in the art should also recognize that such equivalent constructions do not depart from the spirit and scope of the present invention, and that various modifications, substitutions and alterations can be made herein without departing from the spirit and scope of the present invention. [Explanation of symbols]

[0074] 1, 4 Memory System 10, 40 Memory Array 12, 42 Processing circuit 120, 420 Programming circuit 122, 422 Control circuit 124, 424 Readout circuit 200a~200d, 300a~300d, 400a table 426 Displacement Transducer 428 Adder 430 Subtractor 500, 502 How to operate BL bit line L1~L4 line MC1~MCn memory cells S50~S54 process SL Source Line WL1~WLn Word lines In1~Inn Input data SR1, SR2 sum result SSR Signed sum result

Claims

1. 1. A memory system for performing computing in-memory operations, comprising: a memory array including a plurality of memory cells; a programming circuit coupled to the memory array for performing a write operation to program a plurality of electrical characteristics of the memory cells; and a control circuit coupled to the programming circuit for receiving a plurality of weight data corresponding to a plurality of weight values ​​and controlling the write operation performed by the programming circuit to program the electrical characteristics of the memory cells according to a sequential order of the weight values; and a processing circuit coupled to the memory array. a read circuit coupled to the bit lines for performing a read operation on the memory cells to read the electrical characteristics of the memory cells and generate a first sum result corresponding to a sum of products of a plurality of input values ​​multiplied by the weight values; a displacement converter coupled to the read circuit for encoding the first summation result in two's complement representation to generate a signed summation result; A memory system comprising:

2. 2. The memory system of claim 1, wherein said memory cells are coupled to said bit lines and are controlled by a plurality of word lines, respectively.

3. The control circuit further comprises: receiving a plurality of input data corresponding to the input values; and 3. The memory system of claim 2, used to control each of said memory cells to be enabled or disabled by controlling a plurality of voltages on said word lines respectively based on said input data.

4. 4. The memory system of claim 3, wherein the read circuitry is further adapted to read a total current generated by the enabled memory cells coupled to the bit lines to generate the first sum result.

5. The displacement transducer includes: Receive and add the input data, and add 2 to the sum of the input data. n-1 an adder for generating a second sum result by multiplying by n, where n is the number of bits of the weight data; a subtractor for subtracting the second summation result from the first summation result to generate the signed summation result; 4. The memory system of claim 3, comprising:

6. 1. A memory system for performing computing in-memory operations, comprising: a memory array including a plurality of memory cells coupled to the bit lines, storing a plurality of weight data, each of the weight data being a plurality of signed numbers corresponding to a plurality of weight values, and controlled by a plurality of word lines; a control circuit coupled to the programming circuit for receiving a plurality of input data corresponding to a plurality of input values ​​and for controlling a plurality of voltages on the word lines, respectively, based on the input data to enable or disable each of the memory cells; a read circuit coupled to the bit lines for performing a read operation to read a plurality of electrical characteristics of the enabled memory cells and generate a first sum result based on unsigned data; and a displacement converter coupled to the read circuit for generating a signed sum result by encoding the first sum result with a two's complement representation; and A memory system comprising:

7. The displacement transducer includes: Receive and add the input data, and add 2 to the sum of the input data. n-1 an adder for generating a second sum result by multiplying by n, where n is the number of bits of the weight data; a subtractor for subtracting the second summation result from the first summation result to generate the signed summation result; 7. The memory system of claim 6, comprising:

8. 1. A method of operating a memory array including a plurality of memory cells coupled to bit lines, storing a plurality of weight data, the weight data being a plurality of signed numbers corresponding to a plurality of weight values, and controlled by a plurality of word lines, comprising the steps of: controlling a plurality of voltages on the word lines based on a plurality of input data to enable or disable each of the memory cells; performing a read operation to read a plurality of electrical characteristics of the enabled memory cells and generate a first sum result, the first sum result being unsigned data; encoding the first summation result in two's complement representation to generate a signed summation result; A method of operating a memory array comprising:

9. generating the signed sum result by encoding the first sum result in two's complement representation, Receive and add the input data, and add 2 to the sum of the input data. n-1 (n is the number of bits of the weight data) to generate a second summation result; generating the signed sum result by subtracting the second sum result from the first sum result; The method of claim 8, comprising:

Citation Information

Patent Citations

  • Neural network arithmetic circuit using non-volatile semiconductor memory element

    WO2019049741A1