Sensing circuit and method of multi-level memory cell
The new sensing circuit uses the ratio of the memory cell current and the reference current to determine the storage state of the multi-level memory cell, which solves the problems of large area occupation and high power loss of the sensing circuit in the existing technology, and achieves efficient storage state judgment.
Patent Information
- Application Number
- CN202110602897.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-04-27
- Filing Date
- 2021-05-31
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-05-31
AI Technical Summary
The existing multi-level memory cell sensing circuit occupies a large chip area and has high DC power loss, making it difficult to effectively determine the storage state of the multi-level memory cell.
Design a new type of sensing circuit, including a memory cell clock generator, a reference clock generator, a counter, a latch signal generator and a latch. The storage state is determined through the ratio of the memory cell current and the reference current, and the counter and latch are used. The device realizes the latch and conversion of storage state.
It reduces chip area occupation, reduces DC power loss, and can accurately determine the storage status of multi-level memory cells, improving storage density.
Smart Images

Figure CN113936712B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a sensing circuit and method, and more particularly to a sensing circuit and method applied to a multi-level memory cell. Background Art
[0002] As is known to all, non-volatile memory can still save its data content after power is turned off. Generally speaking, after the non-volatile memory is manufactured and shipped, the user can program the memory cells in the non-volatile memory to record data in the memory cells of the non-volatile memory.
[0003] In order to increase storage density and reduce chip area, non-volatile memory composed of multi-level memory cells has been introduced. Multi-level memory cells can store at least 2 bits of data. For example, a 2-bit multi-level memory cell has four storage states, a 3-bit multi-level memory cell has eight storage states, and a 4-bit multi-level memory cell has sixteen storage states.
[0004] Basically, when a multi-level memory cell is read, the sensing circuit receives the cell current generated by the multi-level memory cell and determines the storage state of the multi-level memory cell according to the size of the cell current. For example, in a 2-bit multi-level memory cell, the cell current of the storage state "00" is about 10μA, the cell current of the storage state "01" is about 7μA, the cell current of the storage state "10" is about 3μA, and the cell current of the storage state "11" is about 0.5μA.
[0005] Please refer to Figure 1A and Figure 1B , which is a schematic diagram of related signals of a sensing circuit and a reading operation used in a conventional multi-level memory cell. For example, the multi-level memory cell 100 is a 3-bit multi-level memory cell, and the multi-level memory cell 100 is connected between a bit line BL and a ground terminal GND.
[0006] The pre-charge circuit is connected between the power supply voltage Vdd and the sensing node s. The pre-charge circuit includes a NOT gate 120 and a transistor M1. The input end of the NOT gate 120 receives the pre-charge signal PreC, the output end of the NOT gate 120 is connected to the gate of the transistor M1, the first drain / source terminal of the transistor M1 receives the power supply voltage Vdd, and the second drain / source terminal of the transistor M1 is connected to the sensing node s.
[0007] The switching circuit is connected between the bit line BL and the sensing node (s). The switching circuit includes a controller 110 and a transistor M2. The controller 110 generates a switching signal SW, the gate of the transistor M2 receives the switching signal SW, the first drain / source terminal of the transistor M2 is connected to the sensing node s, and the second drain / source terminal of the transistor M2 is connected to the bit line BL.
[0008] The sensing circuit 150 includes a plurality of resistors R1 to R7, a plurality of comparators 151 to 157, and an 8-line to 3-line encoder 159. The plurality of resistors R1 to R7 are connected in series between a node a and a ground terminal GND, and the plurality of resistors R1 to R7 form a voltage divider circuit. Among them, the node a receives a reference voltage Vref, so the nodes a to g in the voltage divider circuit can output different divided voltages. Furthermore, the positive input terminals of the plurality of comparators 151 to 157 are connected to the sensing node s for receiving the sensing voltage Vsense, the negative input terminals of the plurality of comparators 151 to 157 are connected to the corresponding nodes a to g in the voltage divider circuit for receiving the divided voltage, the output terminals of the plurality of comparators 151 to 157 are connected to the 8-line to 3-line encoder 159, and the output terminal of the 8-line to 3-line encoder 159 generates a 3-bit binary code (d2 to d0).
[0009] like Figure 1B As shown, during the reading operation, the controller 110 activates the switch signal SW to turn on the transistor M2 before the time point t0. At this time, the bit line BL is connected to the sensing node s, so that the multi-level memory cell 100 is a selected memory cell.
[0010] The period between time point t0 and time point t1 is a pre-charge phase, and the pre-charge signal PreC is activated to turn on the transistor M1 , so that the sense voltage Vsense on the sense node s is pre-charged to the power supply voltage Vdd.
[0011] At time point t1, the discharge period begins, and the sensing voltage Vsense on the sensing node s begins to drop from the power supply voltage Vdd. Basically, the speed at which the sensing voltage Vsense drops is proportional to the size of the memory cell current Icell. When the memory cell current Icell of the multi-level memory cell 100 is larger, the speed at which the sensing voltage Vsense drops is faster. Conversely, when the memory cell current Icell of the multi-level memory cell 100 is smaller, the speed at which the sensing voltage Vsense drops is slower.
[0012] Afterwards, at the time point t2 when the discharge cycle ends, the sensing circuit 150 determines the storage state of the multi-level memory cell 100 according to the sensing voltage Vsense.
[0013] For example, at time point t2, if the sensing voltage Vsense is greater than the reference voltage Vref, all comparators 151-157 in the sensing circuit 150 are activated. Therefore, the 3-bit binary code d2-d0 generated by the 8-line to 3-line encoder 159 is "111", indicating that the multi-level memory cell 100 is in the storage state "111".
[0014] Similarly, if at time point t2, comparator 151 is not activated and comparators 152-157 are activated, the 3-bit binary code d2-d0 generated by the 8-line to 3-line encoder 159 is "110", indicating that the multi-level memory cell 100 is in the storage state "110". Similarly, the 8-line to 3-line encoder 159 in the sensing circuit 150 can determine the storage state of the multi-level memory cell 100 according to the number of actions of the comparators 151-157.
[0015] because Figure 1A The sensing circuit 150 includes a plurality of comparators 151-157, so there will be a large chip area. Furthermore, since the voltage divider circuit in the sensing circuit 150 includes a plurality of resistors R1-R7, the sensing circuit 150 will have a higher DC power consumption. Summary of the invention
[0016] The present invention aims to provide a novel sensing circuit structure, which can be used to determine the storage state of a multi-level memory cell.
[0017] A sensing circuit for a multi-level memory cell is connected to a selected memory cell. The sensing circuit includes: a memory cell clock generator, receiving a memory cell current output by the selected memory cell and converting the memory cell current into a memory cell clock, wherein the selected memory cell is a multi-level memory cell; a reference clock generator, receiving a reference current and converting the reference current into a reference clock; a counter, receiving the memory cell clock and generating a count value; a latch signal generator, receiving the reference clock, wherein when the number of pulses generated by the reference clock reaches a pre-designed value, a latch signal is activated; a latch, receiving the count value and the latch signal, wherein when the latch signal is activated, the latch outputs a latch count value; and a count value to state conversion circuit, receiving the latch count value and outputting a state value for use as a storage state of the selected memory cell.
[0018] The present invention relates to a sensing method for a multi-level memory cell, comprising the following steps: receiving a memory cell current output by a selected memory cell of a non-volatile memory, and converting the memory cell current into a memory cell clock, wherein the selected memory cell is a multi-level memory cell; receiving a reference current, and converting the reference current into a reference clock; continuously counting a first pulse number of the memory cell clock, and continuously counting a second pulse number of the reference clock; when the second pulse number reaches a pre-designed value, latching the first pulse number; and determining a storage state of the selected memory cell according to the latched first pulse number.
[0019] In order to better understand the above and other aspects of the present invention, the following is a detailed description of preferred embodiments with reference to the accompanying drawings as follows: BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1A and Figure 1B A schematic diagram of a sensing circuit and related signals for a read operation of a conventional multi-level memory cell;
[0021] Figure 2A and Figure 2B A schematic diagram of the related signals of the sensing circuit and the reading action applied to the multi-level memory cell of the present invention;
[0022] Figure 2C An embodiment for determining the storage state of a selected memory cell;
[0023] Figure 3 A flow chart of a sensing method applied to a sensing circuit;
[0024] Figure 4A is a detailed circuit diagram of the sensing circuit of the present invention;
[0025] Figure 4B , which is illustrated as an embodiment of an RS flip-flop; and
[0026] Figure 4C It is a schematic diagram of related signals of the sensing circuit of the present invention in the reading action.
[0027]
Explanation of symbols
[0028] 100: Multi-level memory cell
[0029] 110: Controller
[0030] 120: NOT gate
[0031] 150: Sensing circuit
[0032] 151, 152, 153, 154, 155, 156, 157: Comparator
[0033] 159: 8-wire to 3-wire encoder
[0034] 200: Sensing circuit
[0035] 202: Memory Cell
[0036] 210, 410: memory cell clock generator
[0037] 214, 224: Mirror circuit
[0038] 216, 226: Current to clock conversion circuit
[0039] 220, 420: Reference clock generator
[0040] 232: Counter
[0041] 234: Latch signal generator
[0042] 240: Latch
[0043] 250: Count value to state conversion circuit
[0044] 412, 422: RS trigger
[0045] 431, 432, 433, 43n: D-type flip-flop
[0046] 451: NOT Gate
[0047] 452, 487, 489: AND gate
[0048] 481, 483: NAND gate
[0049] 485:OR Gate DETAILED DESCRIPTION
[0050] Please refer to Figure 2A and Figure 2B , which is a schematic diagram of the related signals of the sensing circuit and the reading action of the present invention applied to the multi-level memory cell. For example, the multi-level memory cell 202 is a 2-bit multi-level memory cell.
[0051] The sensing circuit 200 includes a cell clock generator 210 , a reference clock generator 220 , a counter 232 , a latch signal generator 234 , a latch 240 , and a count-to-state conversion circuit 250 .
[0052] The input end of the memory cell clock generator 210 is connected to the memory cell 202, and the output end of the memory cell clock generator 210 generates a memory cell clock (CKc). Furthermore, the memory cell clock generator 210 includes a switch sw1, a mirror circuit 214, and a current to clock converting circuit 216. Among them, the first end of the switch sw1 is the input end of the memory cell clock generator 210, the control end of the switch sw1 receives a read enable signal (ENrd), the second end of the switch sw1 is connected to the current input end of the mirror circuit 214, the current output end of the mirror circuit 214 is connected to the input end of the current to clock converting circuit 216, and the output end of the current to clock converting circuit 216 generates the memory cell clock CKc.
[0053] The input terminal of the reference clock generator 220 receives a reference current Iref, and the output terminal of the reference clock generator 220 generates a reference clock CKref. Furthermore, the reference clock generator 220 includes a switch sw2, a mirror circuit 224, and a current-to-clock conversion circuit 226. Among them, the first end of the switch sw2 is the input terminal of the reference clock generator 220, the control end of the switch sw2 receives the read enable signal ENrd, the second end of the switch sw2 is connected to the current input terminal of the mirror circuit 224, the current output terminal of the mirror circuit 224 is connected to the input terminal of the current-to-clock conversion circuit 226, and the output terminal of the current-to-clock conversion circuit 226 generates the reference clock CKref.
[0054] Basically, when the read enable signal ENrd is activated, the switch sw1 and the switch sw2 are in a closed state. At this time, the memory cell clock generator 210 receives the memory cell current Icell output by the selected memory cell 202 and generates a memory cell clock CKc. At the same time, the memory cell clock generator 220 receives the reference current Iref and generates a memory cell clock CKref. Of course, those skilled in the art can also convert the read enable signal ENrd into an inverted read enable signal (not shown) and allow the switch sw1 and the switch sw2 to operate according to the inverted read enable signal. When the inverted read enable signal ZENrd is activated, the switch sw1 and the switch sw2 are in a closed state. In this way, the purpose of the present invention can also be achieved.
[0055] According to an embodiment of the present invention, the memory cell clock generator 210 has the same structure as the reference clock generator 220. Furthermore, the frequency Fc of the memory cell clock CKc generated by the memory cell clock generator 210 is proportional to the memory cell current Icell, and the frequency Fref of the reference clock CKref generated by the reference clock generator 220 is proportional to the reference current Iref. That is, For example, the larger the memory cell current Icell received by the memory cell clock generator 210 is, the higher the frequency Fc of the memory cell clock CKc is. Similarly, the larger the reference current Iref received by the reference clock generator 220 is, the higher the frequency Fref of the reference clock CKref is.
[0056] The counter 232 receives the memory cell clock CKc, and is used to count the pulse number of the memory cell clock CKc and generate a count value CNT.
[0057] The latch signal generator 234 receives the reference clock CKref and counts the number of pulses of the reference clock CKref. When the number of pulses of the reference clock CKref reaches a predetermined value (predetermined count, CNT P ), the latch signal generator 234 generates the latch signal LAT.
[0058] The data input terminal of the latch 240 receives the count value CNT generated by the counter 232, and the clock terminal of the latch 240 receives the latch signal LAT generated by the latch signal generator 234. When the latch signal LAT is activated, the latch 240 latches the received count value CNT into a latched count value (latched count, CNT L ).
[0059] Next, the count value to state conversion circuit 250 converts the received latch count value CNT L The state value State represents the storage state of the selected memory cell 202 .
[0060] by Figure 2B Assume that the reference current Iref is 10 μA, and the pre-set value CNT P is 10. That is, when the reference clock CKref generates 10 pulses, the latch signal generator 234 operates to latch the signal LAT.
[0061] At time point t1 , the read enable signal ENrd is activated, the memory cell clock generator 210 receives the memory cell current Icell and generates the memory cell clock CKc to the counter 232 . Meanwhile, the reference clock generator 220 receives the reference current Icell and generates the reference clock CKref to the latch signal generator 234 .
[0062] Since the pre-set value CNT is set in the latch signal generator 234 P is 10. At time point t2, the reference clock CKref generates 10 pulses, causing the latch signal LAT to be activated. Since the count value CNT generated by the counter 232 is 6, the latch count value CNT output by the latch 240 is L is 6. Therefore, it can be estimated that the memory cell current Icell is about 6 μA (Icell=0.6×Iref=6 μA).
[0063] Furthermore, the count value to state conversion circuit 250 can be configured to latch the count value CNT L To generate a state value State, which is used to represent the storage state of the selected memory cell 202. For example, Figure 2C In one embodiment of determining the storage state of the selected memory cell, the count value to state conversion circuit 250 can be implemented by a look-up table. Of course, the count value to state conversion circuit 250 can also be implemented by other calculation circuits.
[0064] When the memory cell current Icell is less than 2μA, the latch count value CNT output by the latch 240 is L is 0-1, and the state value State generated by the count value to state conversion circuit 250 is "11". When the memory cell current Icell is between 2μA and 5μA, the latch count value CNT output by the latch 240 is Lis 2-4, the state value State generated by the count value to state conversion circuit 250 is "10". When the memory cell current Icell is between 5μA and 8μA, the latch count value CNT output by the latch 240 is L is 5-7, and the state value State generated by the count value to state conversion circuit 250 is "01". When the memory cell current Icell is greater than 8μA, the latch count value CNT output by the latch 240 is L is greater than 8, the state value State generated by the count value to state conversion circuit 250 is “00”.
[0065] That is, the count value to state conversion circuit 250 can be based on the latch count value CNT L To estimate the size of the memory cell current Icell, and to generate a state value State accordingly, so as to determine the storage state of the selected memory cell 202 .
[0066] Of course, the reference current Iref of 10 μA and the pre-set value CNT set in the latch signal generator 234 are P The reference current Iref and the pre-designed value CNT can be determined according to the actual memory cell type. P .
[0067] In addition, the sensing circuit 200 of the present invention is not limited to using a 2-bit multi-level memory cell. Figure 2C For example, the sensing circuit 200 can also be used to detect a 3-bit multi-level memory cell. L When the count value CNT is 0 or 1, the state value State generated by the count value to state conversion circuit 250 is "111". L When the count value CNT is 2 or 3, the state value State generated by the count value to state conversion circuit 250 is "110". L When the latch count value CNT is 4 or 5, the state value State generated by the count value to state conversion circuit 250 is "101". Similarly, when the latch count value CNT L When 1 is 14 or 15, the state value State generated by the count value to state conversion circuit 250 is “000”.
[0068] Furthermore, the sensing circuit 200 of the present invention can stop the memory cell clock generator 210 and the reference clock generator 220 when the latch signal LAT is activated, so that the memory cell clock CKc and the reference clock CKref of the memory cell clock generator 210 and the reference clock generator 220 stop generating pulses to reduce energy consumption.
[0069] Please refer to Figure 3 , which is a flow chart of a sensing method applied to a sensing circuit. After the reading operation starts, the memory cell current Icell output by the selected memory cell 202 is received, the memory cell current Icell is converted into a memory cell clock CKc, the reference current Iref is received, and the reference current Iref is converted into a reference clock CKref (step S302). That is, the memory cell clock generator 210 receives the memory cell current Icell and generates the memory cell clock CKc, and the reference clock generator 220 receives the reference current Icell and generates the reference clock CKref.
[0070] Next, the first pulse number CNT of the memory cell clock CKc and the second pulse number of the reference clock CKref are continuously counted (step S304). That is, the counter 232 starts counting the pulse number CNT of the memory cell clock CKc, and the latch signal generator 234 starts counting the pulse number of the reference clock CKref.
[0071] When the second pulse number has not reached the pre-set value CNT P When (step 306), the process returns to step S304. That is, the latch signal generator 234 has not yet activated the latch signal LAT.
[0072] Furthermore, when the second pulse number reaches the pre-set value CNT P When (step 306), the first pulse number is latched, and according to the latched first pulse number CNT L To determine the storage state of the selected memory cell (step S308). That is, when the latch signal generator 234 activates the latch signal LAT, the latch 240 outputs the latch count value CNT L , and the count value to state conversion circuit 250 latches the count value CNT L The state value State is converted to represent the storage state of the selected memory cell 202 .
[0073] Please refer to Figure 4A , which is a detailed circuit diagram of the sensing circuit of the present invention. The sensing circuit includes a memory cell clock generator 410, a reference clock generator 420, a counter 232, a latch signal generator 430, a latch 240 and a count value to state conversion circuit 250.
[0074] The input end of the memory cell clock generator 410 is connected to the memory cell (not shown), and the output end of the memory cell clock generator 410 generates a memory cell clock CKc. Furthermore, the memory cell clock generator 410 includes a switch, a mirror circuit, and a current-to-clock conversion circuit. The current-to-clock conversion circuit is a relaxation oscillator.
[0075] The switch in the memory cell clock generator 410 includes a switch transistor msw1. The gate terminal of the switch transistor msw1 receives the inverted read enable signal ZENrd, the first drain / source terminal of the switch transistor msw1 receives the memory cell current Icell, and the second drain / source terminal of the switch transistor msw1 is connected to the current input terminal of the mirror circuit. Of course, in other embodiments, the switch in the memory cell clock generator 410 may also include a switch transistor msw1 and a NOT gate (not shown), the input terminal of the NOT gate receives the read enable signal ENrd, and the output terminal of the NOT gate generates the inverted read enable signal ZENrd to the gate of the switch transistor msw1.
[0076] The mirror circuit in the memory cell clock generator 410 includes transistors m1, m2 and switches swa and swb. The gate terminal of transistor m1 is connected to the first drain / source terminal of transistor m1, the first drain / source terminal of transistor m1 is the current input terminal of the mirror circuit, the second drain / source terminal of transistor m1 is connected to the first terminal of switch swa, the second terminal of switch swa is connected to the ground terminal, and the control terminal of switch swa receives the inverted latch signal ZLAT. The gate terminal of transistor m2 is connected to the gate terminal of transistor m1, the first drain / source terminal of transistor m2 is the current output terminal of the mirror circuit, the second drain / source terminal of transistor m2 is connected to the first terminal of switch swb, the second terminal of switch swb is connected to the ground terminal, and the control terminal of switch swb receives the sense enable signal (ENsa).
[0077] The relaxation oscillator in the memory cell clock generator 410 includes a charge-discharge circuit and an RS flip-flop 412. The charge-discharge circuit includes capacitors C1 and C2 and switches swc, swd, swe, and sef. The capacitors C1 and C2 have the same capacitance value C.
[0078] The first end of the capacitor C1 receives the power supply voltage Vcc, the second end of the capacitor C1 is connected to the node w, the first end of the switch swc receives the power supply voltage Vcc, the second end of the switch swc is connected to the node w, the control end of the switch swc receives the inverted memory cell clock ZCKc, the first end of the switch swe is connected to the node w, the second end of the switch swe is connected to the current output end of the mirror circuit, and the control end of the switch swe receives the memory cell clock CKc. The first end of the capacitor C2 receives the power supply voltage Vcc, the second end of the capacitor C2 is connected to the node x, the first end of the switch swd receives the power supply voltage Vcc, the second end of the switch swd is connected to the node x, the control end of the switch swd receives the memory cell clock CKc, the first end of the switch swf is connected to the node x, the second end of the switch swf is connected to the current output end of the mirror circuit, and the control end of the switch swf receives the inverted memory cell clock ZCKc.
[0079] Furthermore, the inverted set terminal (ZS) of the RS flip-flop 412 is connected to the node x, the inverted reset terminal (ZR) of the RS flip-flop 412 is connected to the node w, the output terminal Q of the RS flip-flop 412 generates the memory cell clock signal CKc, and the inverted output terminal ZQ of the RS flip-flop 412 generates the inverted memory cell clock signal ZCKc.
[0080] When the relaxation oscillator starts to operate, switches swe and swd operate according to the memory cell clock CKc, and switches swc and swf operate according to the inverted memory cell clock ZCKc. For example, from time point ta to time point tb, the memory cell clock CKc is at a high level and the inverted memory cell clock ZCKc is at a low level, switches swe and swd are in a closed state according to the memory cell clock CKc, and switches swc and swf are in an open state according to the inverted memory cell clock ZCKc. At this time, node x is charged to the power supply voltage Vcc, and node w starts to discharge from the charging voltage Vcc. Basically, the discharge slope of node w is approximately, slope = Icell / C, C is the capacitance value of capacitor C1. In other words, the larger the memory cell current Icell is, the higher the frequency Fc of the memory cell clock CKc is.
[0081] At time point tb, the node w is discharged to a threshold voltage (Vth), the RS flip-flop 412 is reset, the memory cell clock CKc becomes a low level, and the inverted memory cell clock ZCKc becomes a high level.
[0082] From time point tb to time point tc, the memory cell clock CKc is at a low level and the inverted memory cell clock ZCKc is at a high level, switches swe and swd are in an open state according to the memory cell clock CKc, and switches swc and swf are in a closed state according to the inverted memory cell clock ZCKc. At this time, node w is charged to the power supply voltage Vcc, and node x starts to discharge from the charging voltage Vcc. Similarly, the discharge slope of node x is approximately, slope = Icell / C, C is the capacitance value of capacitor C2.
[0083] At time point tc, the node x is discharged to a threshold voltage (Vth), the RS flip-flop 412 is set, the memory cell clock CKc becomes high level and the inverted memory cell clock ZCKc becomes low level.
[0084] Furthermore, the operation after time point tc is similar and will not be described in detail.
[0085] In addition, the input end of the reference clock generator 420 receives the reference current Iref, and the output end of the reference clock generator 420 generates a reference clock CKref. Similarly, the memory cell clock generator 420 includes a switching transistor msw2, a mirror circuit, and a current-to-clock conversion circuit. Among them, the current-to-clock conversion circuit is a relaxation oscillator. The mirror circuit includes transistors m3, m4 and switches swg, swh. The relaxation oscillator includes a charge and discharge circuit and an RS trigger 422. The charge and discharge circuit includes capacitors C3, C4 and switches swi, swj, swk, swl. Similarly, capacitors C3 and C4 have the same capacitance value C. Basically, the reference clock generator 420 and the memory cell clock generator 410 have similar connection relationships and operating principles, which will not be repeated here. Similarly, the larger the reference current Iref, the higher the frequency Fref of the reference clock CKref.
[0086] The latch signal generator 430 includes n D flip-flops 431-43n, a NOT gate 451 and an AND gate 452. The clock terminals of all the D flip-flops 431-43n receive the reference clock CKref, the input terminal of the first D flip-flop 431 receives the high level "Hi", the input terminals of the other D flip-flops are connected to the output terminals of the previous D flip-flops, and the output terminal Q of the last D flip-flop 43n generates the latch signal LAT, and the inverting output terminal ZQ of the last D flip-flop 43n generates the inverted latch signal ZLAT. Furthermore, the input terminal of the NOT gate 451 receives a start signal (ATD), the output terminal of the NOT gate 451 is connected to the first input terminal of the AND gate 452, the second input terminal of the AND gate 452 receives the inverted latch signal ZLAT, and the output terminal of the AND gate 452 generates the sensing enable signal ENsa. In addition, the enable terminals of all the D-type flip-flops 431 ˜ 43 n are connected to the output terminal of the NOT gate 451 .
[0087] Since n D-type flip-flops 431 to 43n are connected to the latch signal generator 430, when the latch signal generator 430 starts to operate, after the reference clock signal CKref generates n pulses, the last D-type flip-flop 43n will activate the latch signal LAT. In other words, n is the pre-designed value CNT in the latch signal generator 430. P .
[0088] Of course, in other embodiments, the output terminals of the n D-type flip-flops 431-43n in the latch signal generator 430 may also be connected to the n input terminals of a multiplexer (not shown), and the output terminal of the multiplexer generates the latch signal LAT. In other words, the pre-designed value CNT is adjusted by using the multiplexer. P .
[0089] Please refer to Figure 4B, which is an embodiment of an RS flip-flop. The RS flip-flop 412 includes a switch swm, NAND gates 481 and 483, an OR gate 485, and AND gates 487 and 489. A first input terminal of the NAND gate 481 is connected to an inverting reset terminal ZR of the RS flip-flop 412, a second input terminal of the NAND gate 481 is connected to an output terminal of the NAND gate 483, a first input terminal of the NAND gate 483 is connected to an inverting set terminal ZS of the RS flip-flop 412, a second input terminal of the NAND gate 483 is connected to an output terminal of the NAND gate 481, a first input terminal of the AND gate 487 receives a sensing enable signal ENsa, a second input terminal of the AND gate 487 is connected to an output terminal of the NAND gate 481, an output terminal of the AND gate 487 is connected to an inverting output terminal ZQ of the RS flip-flop, two input terminals of the OR gate 485 are respectively connected to an inverting set terminal ZS and an inverting reset terminal ZR of the RS flip-flop 412, a first input terminal of the AND gate 489 is connected to an output terminal of the NAND gate 483, a second input terminal of the AND gate 489 is connected to an output terminal of the OR gate 485, and an output terminal of the AND gate 489 is connected to an output terminal Q of the RS flip-flop. In addition, the switch swm is connected between the second input terminal of the NAND gate 481 and the ground terminal, and the control terminal of the switch swm receives the inverted sensing enable signal ZENsa.
[0090] basically, Figure 4B The RS trigger 412 is only one embodiment of the present invention and is not intended to limit the present invention. A person skilled in the art may also use other logic gates to form an RS trigger. Figure 4B The NAND gates 481 and 483 in the RS trigger can form an RS trigger. At this time, the output end of the NAND gate 481 is the inverting output end ZQ of the RS trigger, and the output end of the NAND gate 483 is the output end Q of the RS trigger.
[0091] Please refer to Figure 4C , which is a schematic diagram of the related signals of the sensing circuit of the present invention in the reading action. Assuming that the reference current Iref is 10μA, the pre-designed value CNT set in the latch signal generator 430 P is 10.
[0092] At time point t1, the read enable signal ENrd is activated. In the memory cell clock generator 410, the switch transistor msw1 is turned on and the switch swa is in a closed state. Similarly, in the reference clock generator 420, the switch transistor msw2 is turned on and the switch swg is in a closed state.
[0093] From the time point t1 to the time point t2 , the start signal ATD generates a pulse, so that the latch signal generator 430 is disabled.
[0094] At time point t2, the sensing enable signal ENsa is activated. In the memory cell clock generator 410, the switch swb is in the closed state, so that the relaxation oscillator receives the memory cell current Icell and starts to generate the memory cell clock CKc. Similarly, in the memory cell clock generator 420, the switch swh is in the closed state, so that the relaxation oscillator receives the reference current Iref and starts to generate the reference clock CKref. At the same time, the latch signal generator 430 is enabled, so that the latch signal generator 430 starts to count the number of pulses of the reference clock CKref.
[0095] At time point t3, the reference clock CKref generates 10 pulses, causing the latch signal LAT to be activated. Therefore, the latch 240 latches the count value CNT output by the counter 232 to become the latch count value CNT. L , that is, latch count value CNT L is 6. At the same time, since the sensing enable signal ENsa is not in operation, the switch swb in the memory cell clock generator 410 is in an opened state, so that the relaxation oscillator stops receiving the memory cell current Icell and stops the memory cell clock CKc. Similarly, the switch swh of the memory cell clock generator 420 is in an opened state, so that the relaxation oscillator stops receiving the reference current Iref and stops the reference clock CKref.
[0096] At time point t4 , the read enable signal ENrd is inactive, and the read operation ends.
[0097] exist Figure 4A In the example, since the latch count value CNT output by latch 240 is L is 6, the count value to state conversion circuit 250 can be based on the latch count value CNT L To generate a state value State, which is used to represent the storage state of the selected memory cell 202. For example, according to Figure 2C According to the comparison table, the state value State generated by the count value to state conversion circuit 250 is “01”, which is used to represent that the storage state of the selected memory cell 202 is “01”.
[0098] From the above description, it can be seen that the present invention proposes a sensing circuit and method for multi-level memory cells. During the reading operation, a memory cell is selected to generate a memory cell current Icell. At this time, the sensing circuit generates a memory cell clock CKc according to the memory cell current Icell; at the same time, the sensing circuit generates a reference clock CKref according to a reference current Iref. In a specific time interval, the first pulse number CNT generated by the memory cell clock CKc is counted. Land counting a second pulse number CNT generated by the reference clock CKref P Then, according to the first pulse number CNT L and the second pulse number CNT P The storage state of the selected memory cell is determined based on the relationship between them.
[0099] In summary, although the present invention has been disclosed in the above preferred embodiments, it is not intended to limit the present invention. Those skilled in the art to which the present invention belongs may make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be determined by the scope defined in the attached claims.
Claims
1. A sensing circuit connected to a selected memory cell, the sensing circuit comprising: A memory cell clock generator receives a memory cell current output by the selected memory cell and converts the memory cell current into a memory cell clock, wherein the selected memory cell is a multi-stage memory cell; A reference clock generator receives a reference current and converts the reference current into a reference clock; A counter, receiving the memory cell clock and generating a count value; A latch signal generator receives the reference clock, wherein when the number of pulses generated by the reference clock reaches a pre-set value, a latch signal is activated; A latch receives the count value and the latch signal, wherein when the latch signal is activated, the latch outputs the latch count value; A count value to state conversion circuit receives the latched count value and outputs a state value to be used as a storage state of the selected memory cell; Wherein, the memory cell clock generator comprises: The first mirror circuit has a current input terminal and a current output terminal; A first switch, a first end of which receives the memory cell current, and a second end of which is connected to the current input end of the first mirror circuit, wherein the first switch is in an open state or a closed state according to a read enable signal; and A first current-to-clock conversion circuit, the first current-to-clock conversion circuit is connected to the current output end of the first mirror circuit, and the first current-to-clock conversion circuit outputs the memory cell clock; When the read enable signal is activated, the first switch is in the closed state, and the first current-to-clock conversion circuit generates the memory cell clock according to the memory cell current.
2. The sensing circuit as claimed in claim 1, wherein the first switch comprises a first transistor, a gate terminal of the first transistor receives an inverted read enable signal, a first drain / source terminal of the first transistor receives the memory cell current, and a second drain / source terminal of the first transistor is connected to the current input terminal of the first mirror circuit.
3. The sensing circuit as claimed in claim 1, wherein the first mirror circuit comprises: a second transistor, a third transistor, a second switch and a third switch, wherein the gate terminal of the second transistor is connected to the first drain / source terminal of the second transistor, the first drain / source terminal of the second transistor is the current input terminal of the first mirror circuit, the second drain / source terminal of the second transistor is connected to the first terminal of the second switch, the second terminal of the second switch is connected to the ground terminal, the control terminal of the second switch receives an inverted latch signal, the gate terminal of the third transistor is connected to the gate terminal of the second transistor, the first drain / source terminal of the third transistor is the current output terminal of the first mirror circuit, the second drain / source terminal of the third transistor is connected to the first terminal of the third switch, the second terminal of the third switch is connected to the ground terminal, and the control terminal of the third switch receives a sensing enable signal.
4. The sensing circuit of claim 1 , wherein the first current-to-clock conversion circuit is a relaxation oscillator, the relaxation oscillator comprising: A charge and discharge circuit and an RS trigger, wherein the charge and discharge circuit is connected to the current output end of the first mirror circuit to receive the memory cell current, the two input ends of the RS trigger are connected to the charge and discharge circuit, the output end of the RS trigger generates the memory cell clock, and the inverting output end of the RS trigger generates an inverted memory cell clock.
5. The sensing circuit as claimed in claim 4, wherein the charge-discharge circuit comprises: a first capacitor, a second capacitor, a fourth switch, a fifth switch, a sixth switch and a seventh switch, wherein a first end of the first capacitor receives a power supply voltage, a second end of the first capacitor is connected to a first node, a first end of the fourth switch receives the power supply voltage, a second end of the fourth switch is connected to the first node, a control end of the fourth switch receives the inverted memory cell clock, a first end of the fifth switch is connected to the first node, a second end of the fifth switch is connected to the current output end of the first mirror circuit, a control end of the fifth switch receives the memory cell clock, a first end of the second capacitor receives the power supply voltage, a second end of the capacitor is connected to a second node, a first end of the sixth switch receives the power supply voltage, a second end of the sixth switch is connected to the second node, a control end of the sixth switch receives the memory cell clock, a first end of the seventh switch is connected to the second node, a second end of the seventh switch is connected to the current output end of the first mirror circuit, and a control end of the seventh switch receives the inverted memory cell clock. 6 . The sensing circuit as claimed in claim 5 , wherein an inverting reset terminal of an RS flip-flop is connected to the first node, and an inverting set terminal of the RS flip-flop is connected to the second node.
7. The sensing circuit as claimed in claim 6, wherein the RS trigger comprises: an eighth switch, a first NAND gate, a second NAND gate, an OR gate, a first AND gate and a second AND gate, wherein the first input terminal of the first NAND gate is the inverting reset terminal of the RS trigger, the second input terminal of the first NAND gate is connected to the output terminal of the second NAND gate, the first input terminal of the second NAND gate is the inverting set terminal of the RS trigger, the second input terminal of the second NAND gate is connected to the output terminal of the first NAND gate, the first input terminal of the first AND gate receives a sensing enable signal, the second input terminal of the first AND gate is connected to the output terminal of the first NAND gate, the output terminal of the first AND gate is the inverting output terminal of the RS trigger, the two input terminals of the OR gate are respectively connected to the inverting set terminal and the inverting reset terminal, the first input terminal of the second AND gate is connected to the output terminal of the second NAND gate, the second input terminal of the second AND gate is connected to the output terminal of the OR gate, the output terminal of the second AND gate is the output terminal of the RS trigger, the eighth switch is connected between the second input terminal of the first NAND gate and the ground terminal, and the control terminal of the eighth switch receives an inverted sensing enable signal.
8. The sensing circuit as claimed in claim 1, wherein the reference clock generator comprises: The second mirror circuit has a current input terminal and a current output terminal; a second switch, a first end of the second switch receiving the reference current, a second end of the switch connected to the current input end of the second mirror circuit, wherein the second switch is in the open state or the closed state according to the read enable signal; as well as A second current-to-clock conversion circuit, wherein the second current-to-clock conversion circuit is connected to the current output end of the second mirror circuit, and the second current-to-clock conversion circuit outputs the reference clock; When the read enable signal is activated, the second switch is in the closed state, and the second current-to-clock conversion circuit generates the reference clock according to the reference current. 9 . The sensing circuit of claim 8 , wherein a frequency of the memory cell clock is proportional to the memory cell current, and a frequency of the reference clock is proportional to the reference current.
10. A sensing circuit connected to a selected memory cell, the sensing circuit comprising: A memory cell clock generator receives a memory cell current output by the selected memory cell and converts the memory cell current into a memory cell clock, wherein the selected memory cell is a multi-stage memory cell; A reference clock generator receives a reference current and converts the reference current into a reference clock; A counter, receiving the memory cell clock and generating a count value; A latch signal generator receives the reference clock, wherein when the number of pulses generated by the reference clock reaches a pre-set value, a latch signal is activated; A latch receives the count value and the latch signal, wherein when the latch signal is activated, the latch outputs the latch count value; A count value to state conversion circuit receives the latched count value and outputs a state value to be used as a storage state of the selected memory cell; The latch signal generator includes: n D-type flip-flops, a NOT gate and an AND gate, the clock ends of the n D-type flip-flops receive a reference clock, the input end of the first D-type flip-flop among the n D-type flip-flops receives a high level, the input end of each D-type flip-flop is connected to the output end of the previous D-type flip-flop, the output end of the last D-type flip-flop generates a latch signal, the inverting output end of the last D-type flip-flop generates an inverted latch signal, the input end of the NOT gate receives a start signal, the output end of the NOT gate is connected to the first input end of the AND gate, the second input end of the AND gate receives the inverted latch signal, the output end of the AND gate generates a sensing enable signal, and the enable end of the n D-type flip-flops is connected to the output end of the NOT gate. 11 . The sensing circuit as claimed in claim 10 , wherein the function of the count value to state conversion circuit is implemented by a look-up table.
12. A sensing method for a non-volatile memory, comprising the following steps: receiving a memory cell current outputted by a selected memory cell of the nonvolatile memory and converting the memory cell current into a memory cell clock, wherein the selected memory cell is a multi-level memory cell; receiving a reference current and converting the reference current into a reference clock; continuously counting a first pulse number of the memory cell clock, and continuously counting a second pulse number of the reference clock; When the second pulse number reaches a preset value, latching the first pulse number; as well as determining a storage state of the selected memory cell according to the latched first pulse number; The memory cell current is obtained according to the pre-designed value, the latched first pulse number and the reference current, and the memory cell current is equal to the reference current multiplied by the latched first pulse number divided by the pre-designed value.
13. The sensing method as claimed in claim 12, wherein a first relaxation oscillator is used to receive the memory cell current so that the first relaxation oscillator generates the memory cell clock according to the memory cell current; and a second relaxation oscillator is used to receive the reference current so that the second relaxation oscillator generates the reference clock according to the reference current.
