Memory device for performing in-memory operations and method of operating same
By using multiple memory cells in the memory device, combining the operating point and state adjustment of transistors and resistors, the problem of changing weight values in memory operations is solved, and the computing efficiency and flexibility are improved.
Patent Information
- Application Number
- CN202310548482.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-05-05
- Filing Date
- 2023-05-16
- Publication Date
- 2024-11-05
AI Technical Summary
Without using an additional photomask, it is difficult for existing memory devices to elastically change the weight value to adapt to different computing needs, which affects the efficiency of computing in memory.
Design a memory device, using multiple memory cells, each memory cell includes transistors and resistors, and by adjusting the operating points and states of transistors and resistors, flexible setting of weight values is achieved, thereby performing product operation of input values and weight values .
It is realized that without adding an additional photomask, the memory unit can flexibly change the weight value, improve the efficiency and flexibility of the calculation in the memory, and meet different mathematical operation needs.
Smart Images

Figure CN118899017A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to a semiconductor device and an operating method thereof, and more particularly to a memory device for executing in-memory operations and an operating method thereof. Background Art
[0002] Artificial intelligence technology and big data processing technology have been widely used in all aspects of daily life. Artificial intelligence technology and big data processing technology rely on a large number of mathematical calculations, such as neural network calculations.
[0003] With the development of semiconductor technology, in order to improve the instruction cycle, the above mathematical operations can be performed inside the memory device, which is called in-memory computation (IMC). In-memory computation includes data searching, data comparison and sum of product computation.
[0004] In the product-sum operation, a weight value is stored inside a storage unit of the memory device, and the storage unit receives an input value from the outside. The storage unit performs the product-sum operation according to the weight value and the input value, and the storage unit has a processing mechanism to change the weight value.
[0005] Those skilled in the art have devoted themselves to optimizing the process and materials of the memory cell, hoping to manufacture the memory cell without using an additional photomask, while the memory cell can still flexibly change the weight value. Summary of the invention
[0006] According to one aspect of the present disclosure, a memory device is provided for performing in-memory operations. The memory device includes a plurality of memory cells, each of which stores a weight value, and each of which includes a transistor and a resistor. The transistor has a gate, a drain, and a source, and the gate receives an input voltage, and the input voltage represents an input value. When the transistor operates at a first operating point, the input voltage is equal to the first input voltage. When the transistor operates at a second operating point, the input voltage is equal to the second input voltage. The second input voltage is higher than the first input voltage. The resistor is connected to the drain and source of the transistor, and when the resistor operates in a first state, the weight value is equal to the first weight value. When the resistor operates in a second state, the weight value is equal to the second weight value. Each memory cell performs a product operation of the input value and the weight value.
[0007] According to another aspect of the present disclosure, a method for operating a memory device is provided for performing in-memory operations. The memory device includes a plurality of memory cells, each memory cell including a transistor and a resistor. The transistor has a gate, a drain and a source. The resistor is connected to the drain and source of the transistor. The operating method includes the following steps. An input voltage is received via the gate of the transistor, and the input voltage represents an input value. The input voltage is set to a first input voltage so that the transistor operates at a first operating point. The input voltage is set to a second input voltage so that the transistor operates at a second operating point, and the second input voltage is higher than the first input voltage. A weight value is stored through each memory cell. The resistor is operated in a first state to set the weight value to a first weight value. The resistor is operated in a second state to set the weight value to a second weight value. A product operation of the input value and the weight value is performed through each memory cell.
[0008] Other aspects and advantages of the present disclosure will become apparent from a review of the following drawings, detailed description, and claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 is a schematic diagram of a storage unit according to an embodiment of the present disclosure.
[0010] Figure 2 yes Figure 1 The current-voltage curve of the drain current and gate voltage of the transistor.
[0011] Figure 3 yes Figure 1 Schematic diagram of the storage unit performing operations.
[0012] Figure 4 It is a schematic diagram of a storage string executing an operation according to an embodiment of the present disclosure.
[0013] Figure 5 FIG. 4 is a schematic diagram of a memory device performing operations according to an embodiment of the present disclosure.
[0014] Figure 6 yes Figure 5 A measurement diagram of the results of an operation performed by a memory device.
[0015] Description of Reference Numerals
[0016] 10-1, 10-2, 10-M: Storage string
[0017] 100-11, 100-12, 100-13, 100-1N: Storage unit
[0018] 100-21, 100-22, 100-23, 100-2N: Storage unit
[0019] 100-M1, 100-MN: Storage unit
[0020] 200: Comparator
[0021] 201, 202: Input terminal
[0022] 1000: Memory device
[0023] WL1, WL2, WL3, WLN: first signal line BL1: second signal line
[0024] SL1: Third signal line
[0025] SS1: Sensing line
[0026] Vread: read voltage
[0027] Vout1: output voltage
[0028] Vref: reference voltage
[0029] Vg: Gate voltage
[0030] I1, I2, IM: output current
[0031] IS_1: Total output current
[0032] Id: drain current
[0033] tr11, tr12, tr13, tr1N, trMN: transistors
[0034] s11, s12, s1N: source
[0035] g11, g12, g13, g1N: gate
[0036] d11, d12, d1N: drain
[0037] R11, R12, R13, R1N, RMN: resistors
[0038] e1, e3, e5: first end
[0039] e2, e4: second end
[0040] CL_1: Load capacitance
[0041] eC1: First End
[0042] X11: Input value
[0043] Y11, Y12, Y13, Y1N: product result
[0044] YS_1, YS_2, YS_M: product and result
[0045] YST: Total product and result
[0046] Charging time: T1, TS1
[0047] W11: weight value
[0048] V1, V2, V3, VN: input voltage
[0049] VL: First input voltage
[0050] VH: Second input voltage
[0051] RH_af: first resistance value
[0052] RL_af: Second resistance value
[0053] A, B, C: operating points
[0054] m1, m1-1: first measuring point
[0055] m2: Second measuring point DETAILED DESCRIPTION
[0056] The technical terms used in this specification refer to the customary terms in the technical field. If some terms are explained or defined in this specification, the interpretation of these terms shall be based on the explanation or definition in this specification. Each embodiment of the present disclosure has one or more technical features. Under the premise of possible implementation, those skilled in the art in this technical field may selectively implement some or all of the technical features in any embodiment, or selectively combine some or all of the technical features in these embodiments.
[0057] Figure 1 FIG. 1 is a schematic diagram of a storage unit 100 - 11 according to an embodiment of the present disclosure. Figure 1 As shown, the memory cell 100-11 includes a transistor tr11 and a resistor R11, and the transistor tr11 is connected in parallel to the resistor R11. The transistor tr11 has a gate g11, a source s11, and a drain d11. The drain d11 is connected to the first end e1 of the resistor R11, and the source s11 is connected to the second end e2 of the resistor R11. The gate g11 receives the input voltage V1, and the gate voltage Vg of the gate g11 is equal to the input voltage V1.
[0058] The drain d11 of the transistor tr11 has a drain current Id, and the memory cell 100 - 11 has an output current I1 . The output current I1 is equal to the sum of the drain current Id and the current of the resistor R11 .
[0059] In one example, a plurality of storage units may form a memory string. For example, the storage unit 100-11 and other storage units ( Figure 1The other memory cells are not shown in the figure) are connected in series to form a memory string. The source s11 of the transistor tr11 of the memory cell 100-11 can be coupled to the drain of the transistor of the adjacent memory cell. The drain current of the transistor of each memory cell in the memory string and the current of the resistor are summed to form the output current I1 of the memory string. The result of the sum-of-product operation of the memory string can be calculated based on the output current I1 (which will be described in conjunction with the embodiments below). Figure 4 Detailed description).
[0060] The resistor R11 is formed of a material having a resistance property. In one example, the resistor R11 is, for example, an anti-fuse. In other examples, the resistor R11 is, for example, a one-time programmable memory (OTP memory), a multiple-time programmable memory (MTP memory), a resistive random access memory (ReRAM), or other types of non-volatile memory. Taking the anti-fuse as an example, the resistor R11 realizes the characteristics of the anti-fuse through the mechanism of gate oxide breakdown. The resistor R11 operates in an initial state S_I (initial state) and a programmed state S_P (programmed state). The initial state S_I can be called a "first state" and the programmed state S_P can be called a "second state".
[0061] In the initial state S_I, the resistor R11 is in a state equivalent to being "blown", and the resistor R11 is close to a turned-OFF state. Therefore, the resistor R11 has a higher first resistance value RH_af. On the other hand, after the programming operation is applied to the resistor R11, the gate oxide layer of the resistor R11 collapses in response to the applied programming voltage, and the state of the resistor R11 is converted to the programmed state S_P, and the resistor R11 is close to a turned-ON state. Therefore, the resistor R11 has a lower second resistance value RL_af. The second resistance value RL_af is lower than the first resistance value RH_af, which conforms to the relationship shown in formula (1):
[0062] RH af >RL af .........................................................(1)
[0063] As shown in Table 1, when the state of the resistor R11 is the initial state S_I, the resistor R11 is in a high-resistance state (high-R state) and has a higher first resistance value RH_af. In contrast, when the state of the resistor R11 is the programmed state S_P, the resistor R11 is in a low-resistance state (low-R state) and has a lower second resistance value RL_af.
[0064] Table 1
[0065]
[0066] In another example, the resistor R11 can also be implemented by a fuse. The characteristics of the fuse are opposite to the anti-fuse described above. When the resistor R11 is a fuse, the resistor R11 in the initial state S_I has a lower second resistance value RL_af. After the programming operation is performed on the resistor R11, the resistor R11 is converted to the programmed state S_P, and the resistor R11 has a higher first resistance value RH_af.
[0067] On the other hand, transistor tr11 is, for example, an N-type metal oxide semiconductor field effect transistor (N-type MOSFET), referred to as an "N-type transistor". The gate g11 of transistor tr11 receives an input voltage V1. When the input voltage V1 is a higher voltage, the channel of transistor tr11 is generally in an on state, and transistor tr11 has a lower equivalent resistance value. Conversely, when the input voltage V1 is a lower voltage, the channel of transistor tr11 is generally in an off state, and transistor tr11 has a higher equivalent resistance value. The relationship between the input voltage V1 and the equivalent resistance value of transistor tr11 is described in detail below and with reference to Figure 2 .
[0068] Figure 2 yes Figure 1 The current-voltage curve of the drain current Id and the gate voltage Vg of the transistor tr11. The gate voltage Vg of the transistor tr11 is equal to the input voltage V1. On the current-voltage curve of the drain current Id and the gate voltage Vg, different operating points of the transistor tr11 can be defined. At operating point A, the input voltage V1 received by the transistor tr11 is 0V (that is, the gate voltage Vg of the transistor tr11 is 0V). Since the gate voltage Vg of the transistor tr11 is very low, the channel of the transistor tr11 is close to a completely disconnected state, and the equivalent resistance value of the transistor tr11 is very high. Therefore, the current amount of the drain current Id of the transistor tr11 is very low, and the current amount of the drain current Id is approximately 10 -12 A.
[0069] When the memory cell 100-11 is connected in series with other memory cells to form a memory string, the source and resistor of the transistor of the last memory cell in the memory string can be connected to the load capacitor CL_1 ( Figure 1 The sum of the drain current Id of the transistor of each memory cell of the memory string and the current of the resistor becomes the output current I1 of the memory string, and the output current I1 charges the load capacitor CL_1.
[0070] The amount of drain current Id at operating point A is very small (approximately 5×10 -13 A), so the current of the output current I1 of the storage string is very small, and the charging time T1 of the load capacitor CL_1 will be very long and exceed the reasonable range that can be measured. Therefore, the transistor tr11 of this embodiment does not operate at the operating point A; instead, the input voltage V1 is increased (that is, the gate voltage Vg is increased) to make the transistor tr11 slightly turned on, so that the transistor tr11 operates at the operating point C. The operating point C can be called the "first operating point". Since the transistor tr11 is in a slightly turned-on state, the transistor tr11 has a higher first equivalent resistance value RH_tr.
[0071] When the transistor tr11 is an N-type transistor, the gate voltage Vg of the operating point C is higher than the threshold voltage Vt of the transistor tr11 multiplied by the first ratio N1. In the present embodiment, the first ratio N1 may be "1 / 2" or "1 / 3", and the gate voltage Vg of the operating point C is 0.9V, as shown in formula (2) or formula (3):
[0072] V1=Vg=0.9V>Vt×1 / 2…………………………(2)
[0073] V1=Vg=0.9V>Vt×1 / 3…………………………(3)
[0074] At the operation point C, the amount of drain current Id increases to about 5×10 -5 A, therefore, the current amount of the output current I1 of the storage string increases, and the charging time T1 of the load capacitor CL_1 is within a measurable and reasonable range.
[0075] At the operation point C, the input voltage V1 of the transistor tr11 is equal to the first input voltage VL, which is 0.9 V. The first input voltage VL is higher than the threshold voltage Vt multiplied by the first ratio N1.
[0076] On the other hand, the gate voltage Vg of transistor tr11 is further increased to 1.8V, causing transistor tr11 to operate at operating point B. Operating point B can be called the "second operating point". At operating point B, the conduction degree of transistor tr11 is greater, and the equivalent resistance value of transistor tr11 is reduced to the second equivalent resistance value RL_tr. The second equivalent resistance value RL_tr is lower than the first equivalent resistance value RH_tr at operating point C, which conforms to the relationship shown in formula (4-1):
[0077] RH_tr>RL_tr··························(4-1)
[0078] At the operating point B, the amount of the drain current Id of the transistor tr11 increases to 5×10 -4 A. Therefore, the charging time T1 of the output current I1 of the storage string for the load capacitor CL_1 is also within a measurable and reasonable range. The input voltage V1 (equal to the gate voltage Vg) of the transistor tr11 is increased to a second input voltage VH. The second input voltage VH is, for example, 1.8V, and the second input voltage VH is higher than the first input voltage VL.
[0079] In one example, the relationship between the second equivalent resistance RL_tr of the transistor tr11 at the operating point B and the first equivalent resistance RH_tr at the operating point C can be defined according to the second ratio N2. For example, the first equivalent resistance RH_tr is less than or equal to the product of the second equivalent resistance RL_tr and the second ratio N2, wherein the second ratio N2 is, for example, "1000", as shown in formula (4-2):
[0080] RH_tr≤RL_tr×N2…………………………………………·(4-2)
[0081] Combining equations (4-1) and (4-2), we can obtain the relationship shown in equation (4-3):
[0082] RL_tr<RH_tr≤RL_tr×N2…………………………………………·(4-3)
[0083] In summary, Figure 2 At different operating points B and C on the relationship curve of drain current Id-gate voltage Vg, transistor tr11 has different equivalent resistance values. At operating point C, the gate voltage Vg of transistor tr11 is 0.9V, and the current of the drain current Id of transistor tr11 is about 5×10 -5At operation point A, the transistor tr11 is in a high resistance state and has a high first equivalent resistance value RH_tr. On the other hand, at operation point B, the gate voltage Vg of the transistor tr11 is 1.8V, and the current amount of the drain current Id of the transistor tr11 is approximately 5×10 -4 A, the transistor tr11 is in a low resistance state and has a lower second equivalent resistance RL_tr.
[0084] As shown in Table 2, at the operation point C, the input voltage V1 is equal to the lower first input voltage VL (the first input voltage VL is equal to the gate voltage Vg of 0.9V), and the transistor tr11 is in a high resistance state and has a first equivalent resistance value RH_tr. In contrast, at the operation point B, the input voltage V1 is equal to the higher second input voltage VH (i.e., the second input voltage VH is equal to the gate voltage Vg of 1.8V), and the transistor tr11 is in a low resistance state and has a second equivalent resistance value RL_tr.
[0085] Table 2
[0086]
[0087]
[0088] By comparing the first resistance value RH_af and the second resistance value RL_af of the resistor R11 with the first equivalent resistance value RH_tr and the second equivalent resistance value RL_tr of the transistor tr11, the relationship shown in formula (5) can be obtained:
[0089] RH_af>RH_tr>RL_tr>RL_af·····················(5)
[0090] In another example, the second resistance value RL_af of the resistor R11 is lower than the second equivalent resistance value RL_tr of the transistor tr11, and the relationship shown in formula (6) is obtained:
[0091] RH_af>RH_tr>RL_af>RL_tr·····················(5)
[0092] Figure 3 yes Figure 1 Schematic diagram of a memory unit 100-11 performing an operation. The memory unit 100-11 can perform a product operation (product operation or multiplication operation). Figure 3 (See also Figure 2), the input voltage V1 of the transistor tr11 can represent the input value X11 of the memory cell 100-11. At the operation point C, the input voltage V1 of the transistor tr11 is equal to the first input voltage VL, indicating that the input value X11 of the memory cell 100-11 is a one-bit "1". At the operation point B, the input voltage V1 of the transistor tr11 is equal to the second input voltage VH, indicating that the input value X11 of the memory cell 100-11 is a one-bit "0".
[0093] On the other hand, the memory cell 100-11 stores a weight value W11, which is used to perform an in-memory computation (IMC) performed in the memory cell 100-11. In the present embodiment, the in-memory computation is a multiplication operation of the input value X11 and the weight value W11. The value of the weight value W11 can be changed by changing the resistance value of the resistor R11, and the weight value W11 can be equal to the "first weight value" or the "second weight value". In the present embodiment, the first weight value is a one-bit "1" and the second weight value is a one-bit "0". The resistor R11 has a first resistance value RH_af in the initial state S_I, at which time the weight value W11 is equal to the first weight value (i.e., "1"). On the other hand, the resistor R11 has a second resistance value RL_af in the programmed state S_P, at which time the weight value W11 is equal to the second weight value (i.e., "0").
[0094] The resistor R11 can have different resistance values by changing the state of the resistor R11 (i.e., the initial state S_I or the programmed state S_P) to change the value of the weight value (i.e., the first weight value or the second weight value). Therefore, it is not necessary to set an additional photomask in the process of the memory cell 100-11 to change the value of the weight value W11. The memory cell 100-11 can adopt the process of the logic circuit to facilitate the memory cell 100-11 to realize the operation in the memory.
[0095] Table 3 shows four conditions of the product operation of the input value X11 and the weight value W11 of the memory cell 100-11. In the first condition (cond-1), the input voltage V1 of the transistor tr11 is equal to the second input voltage VH, and the resistor R11 is in the programmed state S_P, indicating that the input value X11 is "0" and the weight value W11 is "0". The transistor tr11 has a second equivalent resistance value RL_tr, and the resistor R11 has a second resistance value RL_af. The total equivalent resistance value of the memory cell 100-11 is equal to the parallel operation of the second equivalent resistance value RL_tr and the second resistance value RL_af. According to formula (5), the second equivalent resistance value RL_tr is higher than the second resistance value RL_af, so the total equivalent resistance value of the memory cell 100-11 is approximately equal to the second resistance value RL_af.
[0096] In the second condition (cond-2), the input voltage V1 of the transistor tr11 is equal to the first input voltage VL, and the resistor R11 is in the programmed state S_P, indicating that the input value X11 is "1" and the weight value W11 is "0". The transistor tr11 has a first equivalent resistance value RH_tr, and the resistor R11 has a second resistance value RL_af. The total equivalent resistance value of the memory cell 100-11 is equal to the parallel operation of the first equivalent resistance value RH_tr and the second resistance value RL_af. According to formula (5), the first equivalent resistance value RH_tr is higher than the second resistance value RL_af, so the total equivalent resistance value of the memory cell 100-11 is approximately equal to the second resistance value RL_af.
[0097] In the third condition (cond-3), the input voltage V1 of the transistor tr11 is equal to the second input voltage VH, and the resistor R11 is in the initial state S_I, indicating that the input value X11 is "0" and the weight value W11 is "1". The transistor tr11 has a second equivalent resistance value RL_tr, and the resistor R11 has a first resistance value RH_af. The total equivalent resistance value of the memory cell 100-11 is equal to the parallel operation of the second equivalent resistance value RL_tr and the first resistance value RH_af. According to formula (5), the second equivalent resistance value RL_tr is lower than the first resistance value RH_af, so the total equivalent resistance value of the memory cell 100-11 is substantially equal to the second equivalent resistance value RL_tr.
[0098] In the fourth condition (cond-4), the input voltage V1 of the transistor tr11 is equal to the first input voltage VL, and the resistor R11 is in the initial state S_I, indicating that the input value X11 is "1" and the weight value W11 is "1". The transistor tr11 has a first equivalent resistance value RH_tr, and the resistor R11 has a first resistance value RH_af. The total equivalent resistance value of the memory cell 100-11 is equal to the parallel operation of the first equivalent resistance value RH_tr and the first resistance value RH_af. According to formula (5), the first equivalent resistance value RH_tr is lower than the first resistance value RH_af, so the total equivalent resistance value of the memory cell 100-11 is substantially equal to the first equivalent resistance value RH_tr.
[0099] Table 3
[0100]
[0101] The product result Y11 shown in Table 3 is the result of multiplying the input value X11 of the memory cell 100-11 by the weight value W11. In one example, the total equivalent resistance value of the memory cell 100-11 may reflect the product result Y11.
[0102] The output current I1 of the memory cell 100-11 is equal to the sum of the drain current Id of the transistor tr11 and the current of the resistor R11. In another example, the output current I1 can also reflect the product result Y11 of the memory cell 100-11. When the memory cell 100-11 is connected in series with other memory cells to form a memory string, and the memory string is connected to the load capacitor CL_1 ( Figure 3 The output current of the memory cell 100-11 and the output current of other memory cells are summed to form the output current I1. The output current I1 charges the load capacitor CL_1, and the charging time T1 of the load capacitor CL_1 is related to the output current I1. Therefore, the charging time T1 can also reflect the product sum result of the memory string. The product sum result of the memory string is the sum of the product results Y11 of each memory cell (which will be discussed in conjunction with the embodiments below). Figure 4 Detailed description).
[0103] When the data widths of the input value X11 and the weight value W11 are both one bit, the product operation of the input value X11 and the weight value W11 is equivalent to a logical “AND” operation.
[0104] In the first condition (cond-1) in Table 3, the input voltage V1 is equal to the second input voltage VH, and the total equivalent resistance value of the memory cell 100-11 is approximately equal to the second resistance value RL_af. Therefore, the output current I1 is related to the input voltage V1 divided by the second resistance value RL_af. Since the input voltage V1 is equal to the higher second input voltage VH, the second resistance value RL_af is a lower resistance value, and therefore, the output current I1 has a higher current value, resulting in a shorter charging time T1. In the first condition (cond-1), the input value X11 is "0" and the weight value W11 is "0", so the product result Y11 is "0", and the product result Y11 is reflected in the shorter charging time T1.
[0105] In the second condition (cond-2), the input voltage V1 is equal to the lower first input voltage VL, and the total equivalent resistance value of the memory cell 100-11 is substantially equal to the lower second resistance value RL_af. Therefore, the current value of the output current I1 of the second condition (cond-2) is slightly lower than that of the first condition (cond-1), resulting in a slight increase in the charging time T1. In the second condition (cond-2), the input value X11 is "1" and the weight value W11 is "0", so the product result Y11 is "0".
[0106] In the third condition (cond-3), the input voltage V1 is equal to the higher second input voltage VH, and the total equivalent resistance value of the memory cell 100-11 is substantially equal to the lower second equivalent resistance value RL_tr. Therefore, the current value of the output current I1 of the third condition (cond-3) is slightly increased compared to the second condition (cond-2), resulting in a reduction in the charging time T1. In the third condition (cond-3), the input value X11 is "0" and the weight value W11 is "1", so the product result Y11 is "0".
[0107] In the fourth condition (cond-4), the input voltage V1 is equal to the lower first input voltage VL, and the total equivalent resistance value of the memory cell 100-11 is substantially equal to the higher first equivalent resistance value RH_tr. Therefore, the current value of the output current I1 in the fourth condition (cond-4) is significantly reduced compared to the third condition (cond3), resulting in a significant increase in the charging time T1. In the fourth condition (cond-4), the input value X11 is "1" and the weight value W11 is "1", so the product result Y11 is "1", and the product result Y11 is reflected in the significantly increased charging time T1.
[0108] Figure 4 1 is a schematic diagram of a memory string 10-1 performing an operation according to an embodiment of the present disclosure. As described above, the memory cell 100-11 is connected in series with other memory cells to form a memory string. The source s11 of the transistor tr11 of the memory cell 100-11 can be coupled to the drain of the transistor of the adjacent memory cell. The sum of the drain current of the transistor of each memory cell in the memory string and the current of the resistor becomes the output current I1 of the memory string. The result of the product and sum operation of the memory string can be calculated based on the output current I1. More specifically, Figure 4 As shown, the memory string 10-1 includes N memory cells 100-11 to 100-1N. Each of the memory cells 100-11 to 100-1N is identical to Figure 1 For example, the memory cell 100-12 includes a transistor tr12 and a resistor R12 connected in parallel, the memory cell 100-13 includes a transistor tr13 and a resistor R13 connected in parallel, and so on. The memory string 10-1 is used to perform a product-sum operation, which sums up the product results Y11 to Y1N of the memory cells 100-11 to 100-1N to obtain a product-sum result YS_1.
[0109] The memory cells 100-11 to 100-1N are connected in series. For example, the source s11 of the transistor tr11 of the memory cell 100-11 is connected to the drain d12 of the transistor tr12 of the next adjacent memory cell 100-12, and the second end e2 of the resistor R11 is connected to the first end e3 of the resistor R12. Similarly, the source s12 of the transistor tr12 of the memory cell 100-12 is connected to the drain d13 of the transistor tr13 of the next adjacent memory cell 100-13, and the second end e4 of the resistor R12 is connected to the first end e5 of the resistor R13. And so on.
[0110] The gate g11 of transistor tr11 is connected to the first signal line WL1 to receive the input voltage V1, the gate g12 of the next adjacent transistor tr12 is connected to the first signal line WL2 to receive the input voltage V2, and so on, the gate g1N of the Nth transistor tr1N (i.e., the last transistor of the memory string 10-1) is connected to the first signal line WLN to receive the input voltage VN. These first signal lines WL1-WLN are, for example, word lines.
[0111] For the first memory cell 100 - 11 , the drain d11 of the transistor tr11 and the first end e1 of the resistor R11 are connected to the second signal line BL1 , and the transistor tr11 and the resistor R11 receive a read voltage Vread via the second signal line BL1 . The second signal line BL1 is, for example, a bit line.
[0112] For the Nth memory cell 100-1N (i.e., the last memory cell of the memory string 10-1), the source s1N of the transistor tr1N and the second end e2N of the resistor R1N are connected to the third signal line SL1. The memory cell 100-1N transmits the output current I1 via the third signal line SL1. The third signal line SL1 is, for example, a source line. The output current I1 and the output voltage Vout1 of the memory string 10-1 are transmitted to the sensing line SS1.
[0113] The first end eC1 of the load capacitor CL_1 is connected to the third signal line SL1 to receive the output current I1. That is, the source s1N of the transistor tr1N of the last memory cell 100-1N of the memory string 10-1 and the second end e2N of the resistor R1N are connected to the first end eC1 of the load capacitor CL_1, and the load capacitor CL_1 receives the output current I1 of the memory string 10-1. The output current I1 charges the load capacitor CL_1. The charging time T1 of the load capacitor CL_1 reflects the product sum result YS_1 of the memory string 10-1.
[0114] The memory string 10-1 cooperates with the comparator 200. An input terminal 201 of the comparator 200 is connected to the first terminal eC1 of the load capacitor CL_1 via the sensing line SS1. The input terminal 201 of the comparator 200 receives the voltage of the first terminal eC1 of the load capacitor CL_1 (which is equal to the output voltage Vout1). Another input terminal 202 of the comparator 200 receives the reference voltage Vref. The comparator 200 compares the output voltage Vout1 with the reference voltage Vref.
[0115] At the initial time point t0, the storage string 10-1 starts to operate, and the output current I1 starts to charge the load capacitor CL_1. During the charging process, the voltage of the first terminal eC1 of the load capacitor CL_1 (which is equal to the output voltage Vout1) continues to increase. Then, at the end time point t1, the voltage of the first terminal eC1 of the load capacitor CL_1 reaches the reference voltage Vref (that is, the output voltage Vout1 is equal to the reference voltage Vref), indicating that the charging degree of the load capacitor CL_1 has met the predetermined condition. The time difference between the end time point t1 and the initial time point t0 can be defined as the charging time T1 of the load capacitor CL_1. The charging time T1 reflects the product sum result YS_1 of the storage string 10-1.
[0116] Figure 5 FIG. 1 is a schematic diagram of a memory device 1000 performing operations according to an embodiment of the present disclosure. Figure 5 As shown, the memory device 1000 includes M memory strings 10-1 to 10-M. These memory strings 10-1 to 10-M form a memory array, where M is, for example, "24". Each of the memory strings 10-1 to 10-M is identical to Figure 4 For example, the storage string 10-1 includes N storage units 100-21 to 100-2N. N is, for example, "32". The storage strings 10-1 to 10-M are arranged in parallel. The total number of all storage units 100-11 to 100-MN included in the memory device 1000 is M times N, for example, "32" times "24", which is equal to "768".
[0117] The memory cell 100 - 11 of the memory string 10 - 1 , the memory cell 100 - 21 of the memory string 10 - 2 , . . . , and the memory cell 100 - M1 of the memory string 10 -M are commonly connected to the second signal line BL1 to receive the read voltage Vread.
[0118] The memory cell 100-1N of the memory string 10-1, the memory cell 100-2N of the memory string 10-2, ..., and the memory cell 100-MN of the memory string 10-M are connected to the induction line SS1 and connected to the first end eC1 of the load capacitor CL_1 via the induction line SS1. The memory string 10-1 generates an output current I1, the memory string 10-2 generates an output current I2, and so on, the memory string 10-M generates an output current IM. The output currents I1-IM are transmitted to the induction line SS1 and summed up to form a total output current IS_1. The total output current IS_1 charges the load capacitor CL_1.
[0119] The memory device 1000 is used to perform a product-sum operation, and sums the product-sum results YS_1-YS_M of the memory strings 10-1-10-M to obtain a total product-sum result YST. The charging time TS1 of the total output current IS_1 for the load capacitor CL_1 reflects the total product-sum result YST.
[0120] In the present embodiment, the component parameters and operation parameters of the memory device 1000 are listed as follows. The effective length of the channel under the oxide layer of the transistors tr11~trMN of each of the memory cells 100-11~100-MN is, for example, 0.18μm, and the effective width is, for example, 0.3μm. The first resistance value RH_af of the resistors R11~RMN of each of the memory cells 100-11~100-MN is, for example, 100"MQ", and the second resistance value RL_af is, for example, 1"KQ". The read voltage Vread received by the memory device 1000 via the second signal line BL1 is, for example, 0.5V. The capacitance value of the load capacitor CL_1 is, for example, 1pf. The reference voltage Vref of the comparator 200 is, for example, 0.3V, and the end time point t1 is recorded when the voltage of the first end eC1 of the load capacitor CL_1 reaches 0.3V, and the charging time T1 of the load capacitor CL_1 is calculated accordingly.
[0121] Figure 6 yes Figure 5 A measurement diagram of the operation results of the memory device 1000. Figure 6 The values on the horizontal axis of the measurement graph represent the total product-sum result YST of the product-sum operation performed by the memory device 1000 , and the values on the vertical axis represent the charging time T1 of the load capacitance CL_1 .
[0122] The measurement diagram includes a plurality of measurement points, which are roughly divided into two types, including: a plurality of first measurement points m1 of the first type and a plurality of second measurement points m2 of the second type. Each first measurement point m1 is displayed as a "bold black dot", and each second measurement point m2 is displayed as a "short cross line". When the weight values W11~WMN of the memory cells 100-11~100-MN of the memory device 1000 are all "1", the calculation result of the memory device 1000 is displayed as the first measurement point m1. For example, one of the first measurement points m1-1 indicates that the total product and result YST of the memory device 1000 is equal to "700", and the charging time T1 of the load capacitor CL_1 is equal to 0.8μs.
[0123] On the other hand, when half of the weight values W11 ˜WMN of the memory cells 100 - 11 ˜ 100 -MN of the memory device 1000 are “1”, the calculation result of the memory device 1000 is displayed as the second measurement point m2 .
[0124] The first measurement point m1 and the second measurement point m2 substantially present a linear distribution, indicating that the charging time T1 of the load capacitance CL_1 is related to the total product sum result YST of the memory device 1000 .
[0125] Although the present disclosure has been disclosed in detail with preferred embodiments and examples as above, it is to be understood that these examples are intended to be illustrative rather than restrictive. It is contemplated that a person skilled in the art may conceive of various modifications and combinations, which fall within the spirit of the present disclosure and the scope of the appended claims.
Claims
1. A memory device for performing an in-memory operation, the memory device comprising: A plurality of storage units, each of which stores a weight value, each of which comprises: a transistor having a gate, a drain and a source, the gate receiving an input voltage, the input voltage representing an input value, when the transistor operates at a first operating point, the input voltage is equal to a first input voltage, when the transistor operates at a second operating point, the input voltage is equal to a second input voltage, the second input voltage is higher than the first input voltage; and a resistor connected to the drain and the source of the transistor, wherein when the resistor is operated in a first state, the weight value is equal to a first weight value, and when the resistor is operated in a second state, the weight value is equal to a second weight value, Each of the storage units performs a product operation of the input value and the weight value.
2. The memory device according to claim 1, wherein: The memory cells form a plurality of memory strings, each of which performs a product-sum operation, which is the sum of the product operations of the memory cells.
3. The memory device according to claim 2, wherein: Each of the memory strings is connected to a load capacitor, and each of the memory strings generates an output current. A charging time for the output current to charge the load capacitor reflects a product-sum result of the product-sum operation.
4. The memory device according to claim 1, wherein: The first weight value is a one-bit "1", and the second weight value is a one-bit "0". When the input voltage is equal to the first input voltage, the input value is a one-bit "1", and when the input voltage is equal to the second input voltage, the input value is a one-bit "0".
5. The memory device according to claim 4, wherein: The first input voltage is higher than a product of a threshold voltage of the transistor and a first ratio.
6. The memory device according to claim 1, wherein: The resistor is an anti-fuse, the first state is a starting state, and the second state is a programmed state. When the resistor operates in the starting state, the resistor has a first resistance value, and when the resistor operates in the programmed state, the resistor has a second resistance value, and the first resistance value is higher than the second resistance value.
7. The memory device according to claim 6, wherein: When the transistor operates at the first operating point, the transistor has a first equivalent resistance value, and when the transistor operates at the second operating point, the transistor has a second equivalent resistance value, and the first equivalent resistance value is higher than the second equivalent resistance value.
8. The memory device according to claim 7, wherein: The first equivalent resistance value is lower than or equal to a product of the second equivalent resistance value and a second ratio.
9. The memory device of claim 7, wherein: The first resistance value is higher than the first equivalent resistance value; The first equivalent resistance value is higher than the second equivalent resistance value; and The second equivalent resistance value is higher than the second resistance value.
10. The memory device of claim 7, wherein: The first resistance value is higher than the first equivalent resistance value; The first equivalent resistance value is higher than the second equivalent resistance value; and The second resistance value is higher than the second equivalent resistance value.
11. A method for operating a memory device for executing an in-memory operation, the memory device comprising a plurality of memory cells, each of the memory cells comprising a transistor and a resistor, the transistor having a gate, a drain and a source, the resistor being connected to the drain and the source of the transistor, the method comprising: receiving an input voltage through the gate of the transistor, the input voltage representing an input value; Setting the input voltage to a first input voltage to operate the transistor at a first operating point; Setting the input voltage to a second input voltage to operate the transistor at a second operating point, the second input voltage being higher than the first input voltage; Storing a weight value through each storage unit; Operating the resistor in a first state to set the weight value to a first weight value; operating the resistor in a second state to set the weight value to a second weight value; as well as A product operation of the input value and the weight value is performed through each of the storage units.
12. The operating method according to claim 11, wherein: The storage units form a plurality of storage strings, and the operation method further includes: A product-sum operation is performed through each of the storage strings, and the product-sum operation is the sum of the product operations of each of the storage cells.
13. The operating method according to claim 12, wherein: Each of the memory strings is connected to a load capacitor, and each of the memory strings generates an output current. A charging time for the output current to charge the load capacitor reflects a product-sum result of the product-sum operation.
14. The operating method according to claim 11, wherein: The first weight value is a one-bit "1", and the second weight value is a one-bit "0". When the input voltage is equal to the first input voltage, the input value is a one-bit "1", and when the input voltage is equal to the second input voltage, the input value is a one-bit "0".
15. The operating method according to claim 14, wherein: The first input voltage is higher than a product of a threshold voltage of the transistor and a first ratio.
16. The operating method according to claim 11, wherein: The resistor is an anti-fuse, the first state is a starting state, and the second state is a programmed state. When the resistor operates in the starting state, the resistor has a first resistance value, and when the resistor operates in the programmed state, the resistor has a second resistance value, and the first resistance value is higher than the second resistance value.
17. The operating method according to claim 16, wherein: When the transistor operates at the first operating point, the transistor has a first equivalent resistance value, and when the transistor operates at the second operating point, the transistor has a second equivalent resistance value, and the first equivalent resistance value is higher than the second equivalent resistance value.
18. The operating method according to claim 17, wherein: The first equivalent resistance value is lower than or equal to a product of the second equivalent resistance value and a second ratio.
19. The operating method according to claim 17, wherein: The first resistance value is higher than the first equivalent resistance value; The first equivalent resistance value is higher than the second equivalent resistance value; and The second equivalent resistance value is higher than the second resistance value.
20. The operating method according to claim 17, wherein: The first resistance value is higher than the first equivalent resistance value; The first equivalent resistance value is higher than the second equivalent resistance value; and The second resistance value is higher than the second equivalent resistance value.
