NON-VOLATILE MEMORY AND REFERENCE CURRENT GENERATOR THEREOF
20240161814 ยท 2024-05-16
Inventors
Cpc classification
H01L29/7887
ELECTRICITY
G11C11/4074
PHYSICS
G11C11/4096
PHYSICS
G11C11/4091
PHYSICS
G11C11/4093
PHYSICS
H01L29/42328
ELECTRICITY
G11C16/14
PHYSICS
International classification
G11C11/4091
PHYSICS
G11C11/4074
PHYSICS
Abstract
A non-volatile memory receives a supply voltage. The non-volatile memory includes a reference current generator and a sensing circuit. The reference current generator provides a reference current to the sensing circuit. The reference current generator includes a control voltage generation circuit, a current path selecting circuit and a mirroring circuit. The control voltage generation circuit receives a control signal and generates a control voltage according to the control signal. The current path selecting circuit generates the reference current. A current input terminal of the mirroring circuit receives the reference current. If the control signal is set as a first value, the reference current is changed at a first slope in a range of the supply voltage. If the control signal is set as a second value, the reference current is changed at a second slope in the range of the supply voltage.
Claims
1. A non-volatile memory, comprising: a memory module comprising plural data lines; a sensing circuit coupled to the plural data lines of the memory module, wherein a first sense amplifier of the sensing circuit is coupled to a first data line of the plural data lines; and a reference current generator receiving a supply voltage, wherein the reference current generator provides a reference current to the sensing circuit, and the reference current generator comprises: a control voltage generation circuit receiving a control signal and generating a control voltage according to the control signal; a first current path selecting circuit receiving a selection signal and the control voltage, wherein the first current path selecting circuit generates the reference current according to the control voltage and the selection signal; and a mirroring circuit, wherein a current input terminal of the mirroring circuit receives the reference current, and a current mirroring terminal of the mirroring circuit is connected with the first sense amplifier, wherein in a first read cycle, the first sense amplifier determines a storage state of a selected memory cell according to a cell current in the first data line and the reference current, wherein if the control signal is set as a first value, the reference current is changed at a first slope in a range of the supply voltage, wherein if the control signal is set as a second value, the reference current is changed at a second slope in the range of the supply voltage.
2. The non-volatile memory as claimed in claim 1, wherein the first current path selecting circuit comprises a first current path, and the first current path comprises a first voltage-controlled current source and a first switch, which are serially connected between the current input terminal of the mirroring circuit and a ground terminal, wherein the first switch is selectively in a close state or an open state according to a first selection bit of the selection signal, and the first voltage-controlled current source generates a first voltage-controlled current according to the control voltage, wherein when the first switch is in the close state, the reference current is equal to the first voltage-controlled current.
3. The non-volatile memory as claimed in claim 1, wherein the first current path selecting circuit comprises: a first current path comprising a first voltage-controlled current source and a first switch, which are serially connected between the current input terminal of the mirroring circuit and a ground terminal; and a second current path comprising a second voltage-controlled current source and a second switch, which are serially connected between the current input terminal of the mirroring circuit and the ground terminal, wherein the first switch is selectively in a close state or an open state according to a first selection bit of the selection signal, the second switch is selectively in the close state or the open state according to a second selection bit of the selection signal, the first voltage-controlled current source generates a first voltage-controlled current according to the control voltage, and the second voltage-controlled current source generates a second voltage-controlled current according to the control voltage, wherein at least one of the first switch and the second switch is in the close state.
4. The non-volatile memory as claimed in claim 1, wherein the first current path selecting circuit comprises a first current path, and the first current path comprises: a first transistor, wherein a first drain/source terminal of the first transistor is connected with the current input terminal of the mirroring circuit, and a gate terminal of the first transistor receives the control voltage; and a second transistor, wherein a first drain/source terminal of the second transistor is connected with a second drain/source terminal of the first transistor, a gate terminal of the second transistor receives a first selection bit of the selection signal, and a second drain/source terminal of the second transistor is connected with a ground terminal, wherein when the second transistor is in an on state according to the first selection bit of the selection signal, the first transistor generates a first voltage-controlled current according to the control voltage.
5. The non-volatile memory as claimed in claim 1, wherein the first current path selecting circuit comprises a first current path and a second current path, wherein the first current path comprises: a first transistor, wherein a first drain/source terminal of the first transistor is connected with the current input terminal of the mirroring circuit, and a gate terminal of the first transistor receives the control voltage; and a second transistor, wherein a first drain/source terminal of the second transistor is connected with a second drain/source terminal of the first transistor, a gate terminal of the second transistor receives a first selection bit of the selection signal, and a second drain/source terminal of the second transistor is connected with a ground terminal, wherein the second current path comprises: a third transistor, wherein a first drain/source terminal of the third transistor is connected with the current input terminal of the mirroring circuit, and a gate terminal of the third transistor receives the control voltage; a fourth transistor, wherein a first drain/source terminal of the fourth transistor is connected with the current input terminal of the mirroring circuit, a gate terminal of the fourth transistor receives the control voltage, and a second drain/source terminal of the fourth transistor is connected with a second drain/source terminal of the third transistor; and a fifth transistor, wherein a first drain/source terminal of the fifth transistor is connected with the second drain/source terminal of the fourth transistor, a gate terminal of the fifth transistor receives a second selection bit of the selection signal, and a second drain/source terminal of the fifth transistor is connected with the ground terminal, wherein the second transistor is selectively in an on state or an off state according to the first selection bit of the selection signal, the fifth transistor is selectively in the on state or the off state according to the second selection bit of the selection signal, the first transistor generates a first voltage-controlled current according to the control voltage, and the third transistor and the fourth transistor generate a second voltage-controlled current according to the control voltage, wherein at least one of the second transistor and the fifth transistor is in the on state.
6. The non-volatile memory as claimed in claim 1, wherein the control voltage generation circuit comprises: a first bias circuit connected between the supply voltage and a ground terminal, wherein the first bias circuit generates a first bias voltage; a second current path selecting circuit connected between the supply voltage and a first node, wherein the second current path selecting circuit receives the control signal and the first bias voltage, and generates a first current according to the supply voltage and the control signal; a second bias circuit connected between the first node and the ground terminal, wherein the second bias circuit generates a second bias voltage and provides the second bias voltage to the first node; a first resistor connected between the first node and a second node, wherein a voltage at the second node is the control voltage; and a first transistor, wherein a first drain/source terminal of the first transistor is connected with the second node, a gate terminal of the first transistor is connected with the second node, and a second drain/source terminal of the first transistor is connected with the ground terminal.
7. The non-volatile memory as claimed in claim 6, wherein the first resistor is implemented by a second transistor, wherein a first drain/source terminal of the second transistor is connected with the first node, a gate terminal of the second transistor is connected with the ground terminal, and a second drain/source terminal of the second transistor is connected with the second node.
8. The non-volatile memory as claimed in claim 7, wherein the control voltage generation circuit further comprises a third current path selecting circuit, which is connected between the supply voltage and the second node, wherein the third current path selecting circuit receives the control signal, and the third current path selecting circuit generates a second current according to the supply voltage and the control signal.
9. The non-volatile memory as claimed in claim 8, wherein the third current path selecting circuit comprises: a first current path comprising a second resistor and a first switch, which are serially connected between the supply voltage and the second node; and a second current path comprising a third resistor and a second switch, which are serially connected between the supply voltage and the second node, wherein the first switch is selectively in a close state or an open state according to a first control bit of the control signal, and the second switch is selectively in the close state or the open state according to a second control bit of the control signal.
10. The non-volatile memory as claimed in claim 8, wherein the third current path selecting circuit comprises: a second transistor, wherein a first drain/source terminal of the second transistor receives the supply voltage, a gate terminal of the second transistor receives a first control bit of the control signal, and a second drain/source terminal of the second transistor is connected with the node; a third transistor, wherein a first drain/source terminal of the third transistor receives the supply voltage, and a gate terminal of the third transistor receives a second control bit of the control signal; and a fourth transistor, wherein a first drain/source terminal of the fourth transistor is connected with a second drain/source terminal of the third transistor, a gate terminal of the fourth transistor receives the second node, and a second drain/source terminal of the fourth transistor is connected with the second node, wherein the second transistor is in an on state or an off state according to the first control bit of the control signal, and the third transistor is in the on state or the off state according to the second control bit of the control signal.
11. The non-volatile memory as claimed in claim 6, wherein the second current path selecting circuit comprises: a first current path comprising a first voltage-controlled current source and a first switch, which are serially connected between the supply voltage and the first node; and a second current path comprising a second voltage-controlled current source and a second switch, which are serially connected between the supply voltage and the first node, wherein the first switch is selectively in a close state or an open state according to a first control bit of the control signal, the second switch is selectively in the close state or the open state according to a second control bit of the control signal, the first voltage-controlled current source generates a first voltage-controlled current according to the first bias voltage, and the second voltage-controlled current source generates a second voltage-controlled current according to the first bias voltage, wherein at least one of the first switch and the second switch is in the close state.
12. The non-volatile memory as claimed in claim 6, wherein the second current path selecting circuit comprises a first current path and a second current path, wherein the first current path comprises: a second transistor, wherein a first drain/source terminal of the second transistor receives the supply voltage, and a gate terminal of the second transistor receives a first control bit of the control signal; and a third transistor, wherein a first drain/source terminal of the third transistor is connected with a second drain/source terminal of the second transistor, a gate terminal of the third transistor receives the first bias voltage, and a second drain/source terminal of the third transistor is connected with the first node, wherein the second current path comprises: a fourth transistor, wherein a first drain/source terminal of the fourth transistor receives the supply voltage, and a gate terminal of the fourth transistor receives a second control bit of the control signal; a fifth transistor, wherein a first drain/source terminal of the fifth transistor is connected with a second drain/source terminal of the fourth transistor, a gate terminal of the fifth transistor receives the first bias voltage, and a second drain/source terminal of the fifth transistor is connected with the first node, wherein the second transistor is selectively in an on state or an off state according to the first control bit of the control signal, the fourth transistor is selectively in the on state or the off state according to the second control bit of the control signal, the third transistor generates a first voltage-controlled current according to the first bias voltage, and the fifth transistor generates a second voltage-controlled current according to the first bias voltage, wherein at least one of the second transistor and the fourth transistor is in the on state.
13. The non-volatile memory as claimed in claim 6, wherein the first bias circuit comprises: a second transistor, wherein a first drain/source terminal of the second transistor receives the supply voltage, and a gate terminal of the second transistor is connected with a second drain/source terminal of the second transistor; a third transistor, wherein a first drain/source terminal of the third transistor is connected with the second drain/source terminal of the second transistor, a gate terminal of the third transistor is connected with a third node, and a second drain/source terminal of the third transistor is connected with the third node; and a first current source connected between the third node and the ground terminal, wherein a voltage at the third node is the first bias voltage.
14. The non-volatile memory as claimed in claim 6, wherein the second bias circuit comprises: a second transistor, wherein a first drain/source terminal of the second transistor is connected with the first node, and a gate terminal of the second transistor is connected with the first node; and a third transistor, wherein a first drain/source terminal of the third transistor is connected with a second drain/source terminal of the second transistor, a gate terminal of the third transistor is connected with the second drain/source terminal of the second transistor, and a second drain/source terminal of the third transistor is connected with the ground terminal, wherein a voltage at the first node is the second bias voltage.
15. The non-volatile memory as claimed in claim 1, wherein the first value of the control signal is determined according to characteristics of an on current and an off current of the selected memory cell.
16. The non-volatile memory as claimed in claim 1, wherein the first sense amplifier comprises: a first transistor, wherein a first drain/source terminal of the first transistor receives the supply voltage, a gate terminal of the first transistor receives a pre-charge signal, a second drain/source terminal of the first transistor is connected with a first node, the current mirroring terminal of the mirroring circuit is connected with first node, and the first data line is coupled to the first node; a second transistor, wherein a first drain/source terminal of the second transistor is connected with the first node, a gate terminal of the second transistor is connected with a second node, a second drain/source terminal of the second transistor is connected with a ground terminal, and a voltage at the second node a data signal; a third transistor, wherein a first drain/source terminal of the third transistor receives the supply voltage, a gate terminal of the third transistor is connected with the first node, and a second drain/source terminal of the third transistor is connected with the second node; and a fourth transistor, wherein a first drain/source terminal of the fourth transistor is connected with the second node, a gate terminal of the fourth transistor is connected with the first node, and a second drain/source terminal of the fourth transistor is connected with the ground terminal.
17. The non-volatile memory as claimed in claim 1, wherein the first sense amplifier comprises: a first transistor, wherein a first drain/source terminal of the first transistor receives the supply voltage, a gate terminal of the first transistor receives a pre-charge signal, a second drain/source terminal of the first transistor is connected with a first node, the current mirroring terminal of the mirroring circuit is connected with first node, and the first data line is coupled to the first node; a second transistor, wherein a first drain/source terminal of the second transistor receives the supply voltage, a gate terminal of the second transistor receives a bias voltage, and a second drain/source terminal of the second transistor is connected with a second node; a third transistor, wherein a first drain/source terminal of the third transistor receives the supply voltage, a gate terminal of the third transistor is connected with the second node, a second drain/source terminal of the third transistor is connected with a third node, and a voltage at the third node is a data signal; a fourth transistor, wherein a first drain/source terminal of the fourth transistor is connected with the second node, and a gate terminal of the fourth transistor is connected with the first node; a fifth transistor, wherein a first drain/source terminal of the fifth transistor is connected with a second drain/source terminal of the fourth transistor, a gate terminal of the fifth transistor is connected with the third node, and a second drain/source terminal of the fifth transistor is connected with a ground terminal; a sixth transistor, wherein a first drain/source terminal of the sixth transistor is connected with the second node, a gate terminal of the sixth transistor receives an inverted pre-charge signal, and a second drain/source terminal of the sixth transistor is connected with the ground terminal; and a seventh transistor, wherein a first drain/source terminal of the seventh transistor is connected with the third node, a gate terminal of the seventh transistor is connected with the second node, and a second drain/source terminal of the seventh transistor is connected with the ground terminal.
18. The non-volatile memory as claimed in claim 1, further comprising a first clamping device, wherein the first sense amplifier is coupled to the first data line through the first clamping device.
19. The non-volatile memory as claimed in claim 18, further comprising a second clamping device, wherein the current input terminal of the mirroring circuit is coupled to the first current path selecting circuit through the second clamping device.
20. The non-volatile memory as claimed in claim 18, wherein the first clamping device comprises a first transistor, wherein a first drain/source terminal of the first transistor is connected with the first sense amplifier, a second drain/source terminal of the first transistor is connected with the first data line, and a gate terminal of the first transistor is connected with a clamping voltage generation circuit to receive a clamping voltage.
21. The non-volatile memory as claimed in claim 20, wherein the clamping voltage generation circuit comprises: a first bias circuit connected between the supply voltage and a ground terminal, wherein the first bias circuit generates a first bias voltage; a second current path selecting circuit connected between the supply voltage and a first node, wherein the second current path selecting circuit receives an option signal and the first bias voltage, and generates a first current; a second bias circuit connected between the supply voltage and the ground terminal, wherein the second bias circuit generates a second bias voltage and provides the second bias voltage to the first node; a first resistor connected between the first node and a second node, wherein a voltage at the second node is the clamping voltage; a second transistor, wherein a first drain/source terminal of the second transistor is connected with the second node, and a gate terminal of the second transistor is connected with the second node; and a third transistor, wherein a first drain/source terminal of the third transistor is connected with a second drain/source terminal of the second transistor, a gate terminal of the third transistor is connected with the second drain/source terminal of the second transistor, and a second drain/source terminal of the third transistor is connected with the ground terminal.
22. The non-volatile memory as claimed in claim 21, wherein the first resistor is implemented by a fourth transistor, wherein a first drain/source terminal of the fourth transistor is connected with the first node, a gate terminal of the fourth transistor is connected with the ground terminal, and a second drain/source terminal of the fourth transistor is connected with the second node.
23. The non-volatile memory as claimed in claim 21, wherein the second current path selecting circuit comprises: a first current path comprising a first voltage-controlled current source and a first switch, which are serially connected between the supply voltage and the first node; and a second current path comprising a second voltage-controlled current source and a second switch, which are serially connected between the supply voltage and the first node, wherein the first switch is selectively in a close state or an open state according to a first option bit of the option signal, the second switch is selectively in the close state or the open state according to a second option bit of the option signal, the first voltage-controlled current source generates a first voltage-controlled current according to the first bias voltage, and the second voltage-controlled current source generates a second voltage-controlled current according to the first bias voltage, wherein at least one of the first switch and the second switch is in the close state.
24. The non-volatile memory as claimed in claim 21, wherein the second current path selecting circuit comprises a first current path and a second current path, wherein the first current path comprises: a fourth transistor, wherein a first drain/source terminal of the fourth transistor receives the supply voltage, and a gate terminal of the fourth transistor receives a first option bit of the option signal; and a fifth transistor, wherein a first drain/source terminal of the fifth transistor is connected with a second drain/source terminal of the fourth transistor, a gate terminal of the fifth transistor receives the first bias voltage, and a second drain/source terminal of the fifth transistor is connected with the first node, wherein the second current path comprises: a sixth transistor, wherein a first drain/source terminal of the sixth transistor receives the supply voltage, and a gate terminal of the sixth transistor receives a second option bit of the option signal; a seventh transistor, wherein a first drain/source terminal of the seventh transistor is connected with a second drain/source terminal of the sixth transistor, a gate terminal of the seventh transistor receives the first bias voltage, and a second drain/source terminal of the seventh transistor is connected with the first node, wherein the fourth transistor is selectively in an on state or an off state according to the first option bit of the option signal, the sixth transistor is selectively in the on state or the off state according to the second option bit of the option signal, the fifth transistor generates a first voltage-controlled current according to the first bias voltage, and the seventh transistor generates a second voltage-controlled current according to the first bias voltage, wherein at least one of the fourth transistor and the sixth transistor is in the on state.
25. The non-volatile memory as claimed in claim 21, wherein the first bias circuit comprises: a fourth transistor, wherein a first drain/source terminal of the fourth transistor receives the supply voltage, and a gate terminal of the fourth transistor is connected with a second drain/source terminal of the fourth transistor; a fifth transistor, wherein a first drain/source terminal of the fifth transistor is connected with the second drain/source terminal of the fourth transistor, and a gate terminal of the fifth transistor is connected with a second drain/source terminal of the fifth transistor; a sixth transistor, wherein a first drain/source terminal of the sixth transistor is connected with the second drain/source terminal of the fifth transistor, a gate terminal of the sixth transistor is connected with a third node, and a second drain/source terminal of the sixth transistor is connected with the third node; and a first current source connected between the third node and the ground terminal, wherein a voltage at the third node is the first bias voltage.
26. The non-volatile memory as claimed in claim 21, wherein the second bias circuit comprises: a fourth transistor, wherein a first drain/source terminal of the fourth transistor is connected with the first node, and a gate terminal of the fourth transistor is connected with the first node; a fifth transistor, wherein a first drain/source terminal of the fifth transistor is connected with a second drain/source terminal of the fourth transistor, and a gate terminal of the fifth transistor is connected with the second drain/source terminal of the fourth transistor; and a sixth transistor, wherein a first drain/source terminal of the sixth transistor is connected with a second drain/source terminal of the fifth transistor, a gate terminal of the sixth transistor is connected with the second drain/source terminal of the fifth transistor, and a second drain/source terminal of the sixth transistor is connected with the ground terminal, wherein a voltage at the first node is the second bias voltage.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The above objects and advantages of the present invention will become more readily apparent to those ordinarily skilled in the art after reviewing the following detailed description and accompanying drawings, in which:
[0018]
[0019]
[0020]
[0021]
[0022]
[0023]
[0024]
[0025]
[0026]
[0027]
[0028]
[0029]
[0030]
DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS
[0031] Generally, the process parameters and the process conditions of different foundries are not identical. Even if the memory cells with the same structure are produced, the characteristics of the memory cells are also different. Similarly, different batches of memory cells manufactured by the same foundry may have different characteristics. Consequently, when the memory cell array comprising memory cells is operated according to various supply voltages V.sub.S, the cell currents generated by the memory cells have significant differences. The reasons will be described as follows by referring to the memory cell with NMOS transistors.
[0032]
[0033] The first drain/source terminal of the select transistor M.sub.SEL is connected with a bit line BL. The gate terminal of the select transistor M.sub.SEL is connected with a word line WL. The first drain/source terminal of the floating gate transistor M.sub.F is connected with the second drain/source terminal of the select transistor M.sub.SEL. The second drain/source terminal of the floating gate transistor M.sub.F is connected with a source line SL. The first terminal of the capacitor C is connected with a floating gate FG of the floating gate transistor M.sub.F. The second terminal of the capacitor C is connected with an erase line EL. For example, the capacitor C is composed of an NMOS transistor. The gate terminal of the NMOS transistor is the first terminal of the capacitor C. The first drain/source terminal and the second drain/source terminal of the NMOS transistor are connected with each other and served as the second terminal of the capacitor C.
[0034] For example, two memory cells with the same structure but different characteristics will be illustrated. Please refer to
[0035] However, the rising slops of the cell currents I.sub.CELL generated by the two memory cells in the second storage state (i.e., the off state) are different when the supply voltage V.sub.S changes. In
[0036] Obviously, in case that the reference current I.sub.REF is not varied with the change of the supply voltage V.sub.S, the sensing circuit may misjudge the storage state of the memory cell. As shown in
[0037] From the above illustration, it can be seen that different memory cells will have different variations of on/off current under different supply voltage V.sub.S. For allowing the sensing circuit to correctly judge the storage state of the memory cell, the reference current generator needs to provide an appropriate reference current according to the characteristics of the memory cell. For example, the reference current generator may provide an appropriate reference current according to the characteristics of the on current I.sub.ON and the off current I.sub.OFF of the memory cell.
[0038]
[0039] For allowing the sensing circuit of the non-volatile memory to correctly judge the storage state of the memory cell, the reference current generator of the present invention is specially designed, so that the reference current generator is capable of providing the reference currents with different slopes. In accordance with a feature of the present invention, the reference current generator provides a reference current with a specified slope to the sensing circuit according to the characteristics of the memory cell in the non-volatile memory.
[0040]
[0041] The sensing circuit 390 comprises X sense amplifiers 381?38x. The X sense amplifiers 381?38x are respectively connected with the corresponding data lines DL.sub.1?DL.sub.X. The X sense amplifiers 381?38x receive the reference current I.sub.REF. According to the cell currents I.sub.CELL in the data lines DL.sub.1?DL.sub.X, the X sense amplifiers 381?38x generate the corresponding data signals D.sub.O1?D.sub.OX. The structures and the operating principles of the X sense amplifiers 381?38x are identical.
[0042] In this embodiment, the reference current generator 320 comprises a mirroring circuit 330, a current path selecting circuit 340 and a control voltage generation circuit 350.
[0043] The control voltage generation circuit 350 receives a control signal S.sub.CTL and generates a control voltage V.sub.CTL. According to the control signal S.sub.CTL, various change relationships between the supply voltage V.sub.S and the control voltage V.sub.CTL can be determined.
[0044] The current path selecting circuit 340 receives the control voltage V.sub.CTL and a selection signal S.sub.SEL, and the current path selecting circuit 340 generates the reference current I.sub.REF. Generally, the control voltage V.sub.CTL and the reference current I.sub.REF are in a positive correlation. That is, as the control voltage V.sub.CTL increases, the reference current I.sub.REF increases. Similarly, as the control voltage V.sub.CTL decreases, the reference current I.sub.REF decreases. In other words, the cooperation of the control voltage generation circuit 350 and the current path selecting circuit 340 can determine various slope variation relationships between the supply voltage V.sub.S and the reference current I.sub.REF.
[0045] The mirroring circuit 330 receives the reference current I.sub.REF. In addition, the reference current I.sub.REF is transmitted from the mirroring circuit 330 to the sense amplifiers 381?38x of the sensing circuit 390. According to the reference current I.sub.REF, the sense amplifiers 381?38x judges the storage states of the corresponding selected memory cells.
[0046]
[0047] The mirroring circuit 330 comprises (X+1) transistors M.sub.A and M.sub.B1?M.sub.BX. The first drain/source terminal of the transistor M.sub.A receives the supply voltage V.sub.S. The gate terminal of the transistor M.sub.A is connected with the second drain/source terminal of the transistor M.sub.A. The second drain/source terminal of the transistor M.sub.A is the current input terminal of the mirroring circuit 330. The first drain/source terminal of the transistor M.sub.B1 receives the supply voltage V.sub.S. The gate terminal of the transistor M.sub.B1 is connected with the gate terminal of the transistor M.sub.A. The second drain/source terminal of the transistor M.sub.B1 is the current mirroring terminal of the mirroring circuit 330. In addition, the second drain/source terminal of the transistor M.sub.B1 is connected with the sense amplifier 381. Moreover, the transistors M.sub.B1?M.sub.BX have the same connection relationship, and not redundantly described herein. The first drain/source terminal of the transistor M.sub.BX receives the supply voltage V.sub.S. The gate terminal of the transistor M.sub.BX is connected with the gate terminal of the transistor M.sub.A. The second drain/source terminal of the transistor M.sub.BX is the current mirroring terminal of the mirroring circuit 330. The second drain/source terminal of the transistor M.sub.BX is connected with the corresponding sense amplifier 38x.
[0048] In an embodiment, the sizes of the transistors M.sub.A and M.sub.B1-M.sub.BX are identical. Consequently, when the current input terminal of the mirroring circuit 330 receives the reference current I.sub.REF, the X current mirroring terminals of the mirroring circuit 330 can respectively output the reference currents I.sub.REF to the sense amplifiers 381?38x of the sensing circuit 390.
[0049] The current path selecting circuit 340 comprises two current paths 341 and 342. According to the control voltage V.sub.CTL the current paths 341 and 342 generate corresponding voltage-controlled currents I.sub.C1 and I.sub.C2, respectively. The selection signal S.sub.SEL is a two-bit signal. The two-bit signal contains two selection bits S.sub.SEL_1 and S.sub.SEL_2 corresponding to the current paths 341 and 342, respectively. In addition, at least one current path is activated according to the selection signal S.sub.SEL. The total current of the activated current paths is the reference current I.sub.REF.
[0050] In the current path selecting circuit 340, the current path 341 comprises a voltage-controlled current source 345 and a switch SW.sub.1, and the current path 342 comprises a voltage-controlled current source 346 and a switch SW.sub.2. The voltage-controlled current source 345 and the switch SW.sub.1 of the current path 341 are serially connected between a node a and a ground terminal GND. According to the control voltage V.sub.CTL, the voltage-controlled current source 345 generates the voltage-controlled current I.sub.C1. The switch SW.sub.1 is controlled according to the selection bit S.sub.SEL_1. The voltage-controlled current source 346 and the switch SW.sub.2 of the current path 342 are serially connected between the node a and the ground terminal GND. According to the control voltage V.sub.CTL, the voltage-controlled current source 346 generates the voltage-controlled current I.sub.C2. The switch SW.sub.2 is controlled according to the selection bit S.sub.SEL_2.
[0051] In an embodiment, the voltage-controlled current I.sub.C1 generated by the current path 341 and the voltage-controlled current I.sub.C2 generated by the current path 342 are in a fixed proportional relationship. For example, in case that the control voltage V.sub.CTL is 1.0V, the voltage-controlled current I.sub.C1 and the voltage-controlled current I.sub.C2 are 2.0 ?A and 4.0 ?A, respectively. Whereas, in case that the control voltage V.sub.CTL is 1.2V, the voltage-controlled current I.sub.C1 and the voltage-controlled current I.sub.C2 are 2.4 ?A and 4.8 ?A, respectively. It is noted that the ratio between the voltage-controlled current I.sub.C1 and the voltage-controlled current I.sub.C2 is not restricted.
[0052] Moreover, according to the selection signal S.sub.SEL, at least one of the two switches SW.sub.1 and SW.sub.2 is controlled to be in a close state. For example, if the selection bit S.sub.SEL_1 is in the logic level state 1, the switch SW.sub.1 is in the close state, and the current path 341 is activated. Whereas, if the selection bit S.sub.SEL_1 is in the logic level state 0, the switch SW.sub.1 is in the open state, and the current path 341 is inactivated. In other words, the switches SW.sub.1 and SW.sub.2 are controlled to be in the close state or the open state according to the binary value of the selection signal S.sub.SEL.
[0053] For example, if the two selection bits <S.sub.SEL_1, S.sub.SEL 2> of the selection signal S.sub.SEL are <1, 1>, the current path 341 and the current path 342 are activated. Consequently, the reference current I.sub.REF is equal to I.sub.C1+I.sub.C2. Moreover, if the two selection bits <S.sub.SEL_1, S.sub.SEL_2> of the selection signal S.sub.SEL are <0, 1>, the current path 341 is inactivated, but the current path 342 is activated. Consequently, the reference current I.sub.REF is equal to I.sub.C2.
[0054] In
[0055]
[0056] The first terminal of the resistor R.sub.G is connected with a node b. The second terminal of the resistor R.sub.G is connected with a node c. The first drain/source terminal of the transistor M.sub.G1 is connected with the node c. The gate terminal of the transistor M.sub.G1 is connected with the node c. The second drain/source terminal of the transistor M.sub.G1 is connected with the ground terminal GND. Moreover, the voltage at the node c is served as the control voltage V.sub.CTL.
[0057] The bias circuit 351 comprises two diode-connected transistors M.sub.D1 and M.sub.D2 and a current source 352. The diode-connected transistors M.sub.D1 and M.sub.D2 are serially connected between the supply voltage V.sub.S and a node d. That is, the first drain/source terminal of the transistor M.sub.D1 receives the supply voltage V.sub.S, the gate terminal of the transistor M.sub.D1 is connected with the second drain/source terminal of the transistor M.sub.D1, the first drain/source terminal of the transistor M.sub.D2 is connected with the second drain/source terminal of the transistor M.sub.D1, the gate terminal of the transistor M.sub.D2 is connected with the node d, and the second drain/source terminal of the transistor M.sub.D2 is connected with the node d. Moreover, the first terminal of the current source 352 is connected with the node d, and the second terminal of the current source 352 is connected with the ground terminal GND.
[0058] In an embodiment, the sizes of the transistors M.sub.D1 and M.sub.D2 are identical, and the current source 352 provides a bias current Isl. Consequently, the bias voltage V.sub.B1 at the node d is approximately equal to V.sub.S?2V.sub.SG, wherein V.sub.SG=(?{square root over (I.sub.B1/K.sub.p)}?V.sub.THP), V.sub.SG is the voltage difference between the source terminal and the gate terminal of the transistor M.sub.D1, K.sub.p is a device parameter of the transistor M.sub.D1, and V.sub.THP is the threshold voltage of the transistor M.sub.D1, and assume that the transistors M.sub.D1 and M.sub.D2 have the same threshold voltage V.sub.THP in ideal. In addition, the threshold voltage V.sub.THP is negative.
[0059] The bias voltage 353 comprises two diode-connected transistors M.sub.E1 and M.sub.E2. The diode-connected transistors M.sub.E1 and M.sub.E2 are serially connected between the node b and the ground terminal GND. That is, the first drain/source terminal of the transistor M.sub.E1 is connected with the node b, the gate terminal of the transistor M.sub.E1 is connected with the node b, the first drain/source terminal of the transistor M.sub.E2 is connected with the second drain/source terminal of the transistor M.sub.E1, the gate terminal of the transistor M.sub.E2 is connected with the first drain/source of the transistor M.sub.E2, and the second drain/source terminal of the transistor M.sub.E2 is connected with the ground terminal GND. Moreover, the bias voltage V.sub.B2 at the node b is determined according to the bias current I.sub.B2.
[0060] For example, the sizes of the transistor M.sub.E1 and the transistor M.sub.E2 are identical. Consequently, the bias voltage V.sub.B2 at the node b is approximately equal to 2V.sub.GS, wherein V.sub.GS=(?{square root over (I.sub.B2/K.sub.n)}+V.sub.THN), V.sub.SG is the voltage difference between the gate terminal and the drain terminal of the transistor M.sub.E2, K.sub.n is a device parameter of the transistor M.sub.E2, and V.sub.THN is the threshold voltage of the transistor M.sub.E2, and assume that the transistors MEI and M.sub.E2 have the same threshold voltage V.sub.THN in ideal. In addition, the threshold voltage V.sub.THN is positive.
[0061] The current path selecting circuit 355 comprises two current paths 361 and 362. According to the bias voltage V.sub.B1, the current paths 361 and 362 generate the corresponding voltage-controlled currents I.sub.D1 and I.sub.D2 respectively. In addition, the control signal S.sub.CTL is a four-bit signal. The four-bit signal contains four control bits S.sub.CTL_A, S.sub.CTL_B, S.sub.CTL_C and S.sub.CTL_D. The current path 361 is controlled according to the control bit S.sub.CTL_A. The current path 362 is controlled according to the control bit S.sub.CTL_B. In addition, at least one current path of the current path selecting circuit 355 is activated according to the control signal S.sub.CTL.
[0062] In the current path selecting circuit 355, the current path 361 comprises a voltage-controlled current source 368 and a switch SW.sub.A, and the current path 362 comprises a voltage-controlled current source 369 and a switch SW.sub.B. The voltage-controlled current source 368 and the switch SW A of the current path 361 are serially connected between the supply voltage V.sub.S and the node b. According to the bias voltage V.sub.B1, the voltage-controlled current source 368 generates the voltage-controlled current I.sub.D1. The switch SW.sub.A is controlled according to the control bit S.sub.CTL_A. The voltage-controlled current source 369 and the switch SW.sub.B of the current path 362 are serially connected between the supply voltage V.sub.S and the node b. According to the bias voltage V.sub.B1, the voltage-controlled current source 369 generates the voltage-controlled current I.sub.D2. The switch SW.sub.B is controlled according to the control bit S.sub.CTL_B.
[0063] In an embodiment, the magnitudes of the voltage-controlled currents I.sub.D1 and I.sub.D2 generated by the voltage-controlled current sources 368, 369 are different. For example, the magnitude of the voltage-controlled current I.sub.D1 is higher than the magnitude of the voltage-controlled current I.sub.D2. Moreover, according to the control signal S.sub.CTL, at least one of the two switches SW A and SW B is controlled to be in a close state. For example, if the control bit S.sub.CTL_A is in the logic level state 0, the switch SW.sub.A is in the close state, and the current path 361 is activated. Whereas, if the control bit S.sub.CTL_A is in the logic level state 1, the switch SW A is in the open state, and the current path 361 is inactivated. For example, if the two control bits <S.sub.CTL_A, S.sub.CTL_B> of the control signal S.sub.CTL is <1, 0>, the current path 362 is activated, but the current path 361 is inactivated.
[0064] The current path selecting circuit 357 comprises two current paths 363 and 364. The current paths 363 and 364 generate the corresponding currents I.sub.E1 and I.sub.E2 respectively. The current path 363 is controlled according to the control bit S.sub.CTL_C of the control signal S.sub.CTL. The current path 364 is controlled according to the control bit S.sub.CTL_D of the control signal S.sub.CTL.
[0065] In the current path selecting circuit 357, the current path 363 comprises a resistor R.sub.C and a switch SW.sub.C, and the current path 364 comprises a resistor R D and a switch SW.sub.D. The resistor R.sub.C and the switch SW.sub.C of the current path 363 are serially connected between the supply voltage V.sub.S and the node c. The switch SW.sub.C is controlled according to the control bit S.sub.CTL_C of the control signal S.sub.CTL. The resistor RD and the switch SW D of the current path 364 are serially connected between the supply voltage V.sub.S and the node c. The switch SW.sub.D is controlled according to the control bit S.sub.CTL_D of the control signal S.sub.CTL.
[0066] In an embodiment, the resistance of the resistor R.sub.C of the current path 363 and the resistance of the resistor R D of the current path 364 are different. Consequently, the magnitudes of the currents I.sub.E1 and I.sub.E2 are different. For example, the magnitude of the resistance of the resistor RD is lower than the magnitude of the resistance of the resistor RD. That is, the current I.sub.E1 is lower than the current I.sub.E2. Moreover, if the control bit S.sub.CTL c is in the logic level state 0, the switch SW.sub.C is in the close state, and the current path 363 is activated. Whereas, if the control bit S.sub.CTL_C is in the logic level state 1, the switch SW.sub.C is in the open state, and the current path 363 is inactivated. For example, if the two control bits <S.sub.CTL_C, S.sub.CTL_D> of the control signal S.sub.CTL is <1, 0>, the current path 364 is activated, and the current path 363 is inactivated. In other words, the switches SW.sub.A?SW.sub.D of the current path selecting circuits 355 and 357 are controlled to be in the close state or the open state according to the binary value of the control signal S.sub.CTL.
[0067] In
[0068] When the output current from the current path selecting circuit 355 flows to the node b, a portion of the output current is served as the bias current I.sub.B2 flowing to the bias circuit 353, and another portion of the output current flows to the ground terminal GND through the resistor R.sub.G and the transistor M.sub.G1. In addition, the output current from the current path selecting circuit 357 flows to the node c and then flows to the ground terminal GND through the transistor M.sub.G1.
[0069] The bias circuit 353 generates the bias voltage V.sub.B2 according to the bias current I.sub.B2. The bias voltage V.sub.B2 is in proportion to the voltage difference V.sub.GS of the transistor M.sub.E2, and the voltage difference V.sub.GS is in proportion to the square root of the bias current I.sub.B2. When different supply voltage V.sub.S are provided to the non-volatile memory 300, the bias current I.sub.B2 will change. Furthermore, the change of the bias current I.sub.B2 will cause slight change of the bias voltage V.sub.B2 generated by the bias circuit 353. That is, when different supply voltage V.sub.S are provided to the non-volatile memory 300, the change of the output current from the current path selecting circuit 355 may result in a tiny change of the control voltage V.sub.CTL. In addition, the output current from the current path selecting circuit 357 flows to the node c. When different supply voltage V.sub.S are provided to the non-volatile memory 300, the change of the output current from the current path selecting circuit 357 will directly result in a large change of the control voltage V.sub.CTL.
[0070] In this embodiment, the control signal S.sub.CTL is utilized to determine the current flowing to the node b and the current flowing to the node c, which result in different amplitude changes of the control voltage V.sub.CTL. Therefore, after the control voltage V.sub.CTL is inputted into the current path selecting circuit 340, the reference current I.sub.REF with different slopes will be generated.
[0071]
[0072] In the current path selecting circuit 340, the transistors M.sub.SW1 and M.sub.SW2 are served as the switches, and transistors M.sub.C1?M.sub.C3 are served as the voltage-controlled current sources. In addition, the selection signal S.sub.SEL comprises two selection bits S.sub.SEL_1 and S.sub.SEL_2.
[0073] The current path 341 of the current path selecting circuit 340 comprises two transistors M.sub.C1 and M.sub.SW1. The first drain/source terminal of the transistor M.sub.C1 is connected with the node a. The gate terminal of the transistor M.sub.C1 receives the control signal V.sub.CTL. The first drain/source terminal of the transistor M.sub.SW1 is connected with the second drain/source terminal of the transistor M.sub.C1. The gate terminal of the transistor M.sub.SW1 receives the selection bit S.sub.SEL_1. The second drain/source of the transistor M.sub.SW1 is connected with the ground terminal GND.
[0074] The current path 342 of the current path selecting circuit 340 comprises two transistors M.sub.C2 and M.sub.C3 and a transistor M.sub.SW2. The first drain/source terminal of the transistor M.sub.C2 is connected with the node a. The gate terminal of the transistor M.sub.C2 receives the control signal V.sub.CTL. The first drain/source terminal of the transistor M.sub.C3 is connected with the node a. The gate terminal of the transistor M.sub.C3 receives the control signal V.sub.CTL. The first drain/source terminal of the transistor M.sub.SW2 is connected with the second drain/source terminal of the transistor Mu and the second drain/source terminal of the transistor M.sub.C3. The gate terminal of the transistor M.sub.SW2 receives the selection bit S.sub.SEL_2. The second drain/source terminal of the transistor M.sub.SW2 is connected with the ground terminal GND.
[0075] In an embodiment, the size of each of the transistors M.sub.C1, Mcg and M.sub.C3 is equal to the size of the floating gate transistor of the memory cell. Consequently, the voltage-controlled current I.sub.C1 in the current path 341 and the voltage-controlled current I.sub.C2 in the current path 342 are in a specified proportional relationship, e.g., 1:2. In some other embodiments, the voltage-controlled current source in the current path 342 comprises a single transistor M.sub.C2. In this case, the sizes of the transistors M.sub.C1 and M.sub.C2 are specially designed such that the voltage-controlled current I.sub.C1 in the current path 341 and the voltage-controlled current I.sub.C2 in the current path 342 are in a specified proportional relationship. For example, the size of the transistor M.sub.C2 is x times the size of the transistor M.sub.C1. Consequently, the voltage-controlled currents I.sub.C1 and I.sub.C2 are in the 1:x relationship, and x can be any positive value.
[0076] The control voltage generation circuit 350 comprises a transistor M.sub.G1, a transistor M.sub.G2, the two bias circuits 351 and 353 and the two current path selecting circuits 355 and 357. The connection relationships of the transistor M.sub.G1, the bias circuit 351 and the bias circuit 353 are identical to those of
[0077] The first drain/source terminal of the transistor M.sub.G2 is connected with the node b. The gate terminal of the transistor M.sub.G2 is connected with the ground terminal GND. The second drain/source terminal of the transistor M.sub.G2 is connected with the node c. The transistor M.sub.G2 may be equivalently regarded as a resistor.
[0078] In the current path selecting circuit 355, the transistors M.sub.SWA and M.sub.SWB are served as the switches, and the transistors M.sub.H1 and M.sub.H2 are served as the voltage-controlled current sources. The current path 361 comprises the transistor M.sub.H1 and the transistor M.sub.SWA. The first drain/source terminal of the transistor M.sub.SWA receives the supply voltage V.sub.S. The gate terminal of the transistor M.sub.SWA receives the control bit S.sub.CTL_A. The first drain/source terminal of the transistor M.sub.H1 is connected with the second drain/source terminal of the transistor M.sub.SWA. The gate terminal of the transistor M.sub.H1 receives the bias voltage V.sub.B1. The second drain/source terminal of the transistor M.sub.H1 is connected with the node b.
[0079] The current path 362 of the current path selecting circuit 355 comprises a transistor M.sub.H2 and a transistor M.sub.SWB. The first drain/source terminal of the transistor M.sub.SWB receives the supply voltage V.sub.S. The gate terminal of the transistor M.sub.SWB receives the control bit S.sub.CTL_B. The first drain/source terminal of the transistor M.sub.H2 is connected with the second drain/source terminal of the transistor M.sub.SWB. The gate terminal of the transistor M.sub.H2 receives the bias voltage V.sub.B1. The second drain/source terminal of the transistor M.sub.H2 is connected with the node b.
[0080] In an embodiment, the size of the transistors M.sub.H1 and M.sub.H2 are different. Consequently, the voltage-controlled current I.sub.D1 in the current path 361 and the voltage-controlled current I.sub.D2 in the current path 362 are in a specified proportional relationship. For example, the size of the transistor M.sub.H1 is larger than the size of the transistor M.sub.H2. Consequently, the voltage-controlled current I.sub.D1 is higher than the voltage-controlled current I.sub.D2.
[0081] In the current path selecting circuit 357, the transistors M.sub.SWC and M.sub.SWD are served as the switches, and the transistors M.sub.SWC and M.sub.SWD and the transistor M.sub.H3 are served as the resistors. The current path 363 comprises the transistor M.sub.SWC. The first drain/source terminal of the transistor M.sub.SWC receives the supply voltage V.sub.S. The gate terminal of the transistor M.sub.SWC receives the control bit S.sub.CTL_C. The second drain/source terminal of the transistor M.sub.SWC is connected with the node c. When the transistor M.sub.SWC is turned on, the current path 363 is activated. Meanwhile, the internal resistance of the transistor M.sub.SWC may be regarded as the resistor.
[0082] The current path 364 of the current path selecting circuit 357 comprises a transistor M.sub.H3 and a transistor M.sub.SWD. The drain/source terminal of the transistor M.sub.SWD receives the supply voltage V.sub.S. The gate terminal of the transistor M.sub.SWD receives the control bit S.sub.CTL_D. The first drain/source terminal of the transistor M.sub.H3 is connected with the second drain/source terminal of the transistor M.sub.SWD. The gate terminal of the transistor M.sub.H3 is connected with the node c. The second drain/source terminal of the transistor M.sub.H3 is connected with the node c. It is designed that the current I.sub.E2 is higher than the current I.sub.E1. In accordance with a circuitry design, I.sub.D1>I.sub.D2, I.sub.E2>I.sub.E1, and (I.sub.D1+I.sub.E1) is approximately equal to (I.sub.D2+I.sub.E2).
[0083] As mentioned above, when the supply voltage V.sub.S rises, the output current from the current path selecting circuit 355 may result in a tiny change of the control voltage V.sub.CTL. In addition, the output current from the current path selecting circuit 357 may directly influence the control voltage V.sub.CTL. The current flowing to the node b and the current flowing to the node c are selected according to the control signal S.sub.CTL. That is, when different supply voltage V.sub.S are provided to the non-volatile memory 300, the extent of the change of the control voltage V.sub.CTL may be different. In addition, the reference current I.sub.REF with different slopes will be generated according to the control signal S.sub.CTL.
[0084]
[0085] If the control bits of the control signal S.sub.SEL <S.sub.CTL_A, S.sub.CTL_B, S.sub.CTL_C, S.sub.CTL_D> are <0, 1, 0, 1>, the current path 361 of the current path selecting circuit 355 is activated, and the current path 363 of the current path selecting circuit 357 is activated. As shown in
[0086] Whereas, if the control bits of the control signal S.sub.SEL <S.sub.CTL_A, S.sub.CTL_B, S.sub.CTL_C, S.sub.CTL_D> is <1, 0, 1, 0>, the current path 362 of the current path selecting circuit 355 is activated, and the current path 364 of the current path selecting circuit 357 is activated. As shown in
[0087] As mentioned above in
[0088]
[0089] If the control bits of the control signal S.sub.SEL <S.sub.CTL_A, S.sub.CTL_B, S.sub.CTL_C, S.sub.CTL_D> are <0, 1, 0, 1>, the current path 361 of the current path selecting circuit 355 is activated, and the current path 363 of the current path selecting circuit 357 is activated. As shown in
[0090] Whereas, if the control bits of the control signal S.sub.SEL<S.sub.CTL_A, S.sub.CTL_B, S.sub.CTL_C, S.sub.CTL_D> is <1, 0, 1, 0>, the current path 362 of the current path selecting circuit 355 is activated, and the current path 364 of the current path selecting circuit 357 is activated. As shown in
[0091] As mentioned above in
[0092] Moreover, if the two selection bits <S.sub.SEL_1, S.sub.SEL 2> of the selection signal S SEL are <0, 1>, the current path 342 of the current path selecting circuit 340 is activated. Consequently, the reference current I.sub.REF outputted from the current path selecting circuit is further doubled.
[0093] For example, in
[0094] As mentioned above, when the supply voltage V.sub.S rises, the output current from the current path selecting circuit 355 may result in a tiny change of the control voltage V.sub.CTL. In addition, the output current from the current path selecting circuit 357 may directly influence the control voltage V.sub.CTL. The current flowing to the node b and the current flowing to the node c are selected according to the control signal S.sub.CTL. That is, when different supply voltage V.sub.S are provided to the non-volatile memory 300, the extent of the change of the control voltage V.sub.CTL may be different. In addition, the reference current I.sub.REF with different slopes will be generated according to the control signal S.sub.CTL.
[0095] In the above embodiments, the control voltage generation circuit 350 comprises the two current path selecting circuits 355 and 357. It is noted that numerous modifications and alterations may be made while retaining the teachings of the invention. For example, in another embodiment, the control voltage generation circuit 350 is equipped with the current path selecting circuit 355 but not equipped with the current path selecting circuit 357. In addition, the current path selecting circuit 355 of the control voltage generation circuit 350 is activated according to the control signal S.sub.CTL. Consequently, when different supply voltage V.sub.S are provided to the non-volatile memory 300, the change slope of the control voltage V.sub.CTL is lower and the change slope of the reference current I.sub.REF is lower.
[0096] In the first embodiment, the sense amplifiers in the sensing circuit 390 of the non-volatile memory may have diverse types.
[0097] As shown in
[0098] The first drain/source terminal of the transistor M.sub.K1 receives the supply voltage V.sub.S. The gate terminal of the transistor M.sub.K1 receives a pre-charge signal S.sub.PRE. The second drain/source terminal of the transistor M.sub.K1 is connected with the node w1. The first drain/source terminal of the transistor M.sub.K2 receives the supply voltage V.sub.S. The gate terminal of the transistor M.sub.K2 is connected with the node w1. The second drain/source terminal of the transistor M.sub.K2 is connected with the node w2. The first drain/source terminal of the transistor M.sub.K3 is connected with the node w1. The gate terminal of the transistor M.sub.K3 is connected with the node w2. The second drain/source terminal of the transistor M.sub.K3 is connected with the ground terminal GND. The first drain/source terminal of the transistor M.sub.K4 is connected with the node w2. The gate terminal of the transistor M.sub.K4 is connected with the node w1. The second drain/source terminal of the transistor M.sub.K4 is connected with the ground terminal GND. Moreover, the voltage at the node w2 is the data signal D.sub.O1.
[0099] Before a read cycle, the transistor M.sub.K1 is turned on according to the pre-charge signal S.sub.PRE. Consequently, the voltage at the node w1 is maintained at the supply voltage V.sub.S. When the read cycle is started, the transistor M.sub.K1 is turned off according to the pre-charge signal S.sub.PRE. When the read cycle is ended, the transistor M.sub.K1 is turned on again according to the pre-charge signal S.sub.PRE. Consequently, the voltage at the node w1 is maintained at the supply voltage V.sub.S. The rest may be deduced by analogy.
[0100] When the read cycle is started, if the reference current I.sub.REF is higher than the memory cell current I.sub.CELL, the voltage at the node w1 is maintained at the supply voltage V.sub.S. Consequently, the transistor M.sub.K4 is turned on, and the transistor M.sub.K2 is turned off. The voltage at the node w2 is the ground voltage (0V). Consequently, the transistor M.sub.K3 is turned off. Moreover, when the read cycle is ended, the data signal D.sub.O1 is the ground voltage, representing that the data signal D.sub.O1 is in the low logic level state. In other words, the selected memory cell is in the off state.
[0101] When the read cycle is started, if the reference current I.sub.REF is lower than the memory cell current I.sub.CELL, the voltage at the node w1 drops from the supply voltage V.sub.S to the ground voltage (0V). Consequently, the transistor M.sub.K4 is turned off, and the transistor M.sub.K2 is turned on. The voltage at the node w2 is the supply voltage V.sub.S. Consequently, the transistor M.sub.K3 is turned on. Moreover, when the read cycle is ended, the data signal D.sub.O1 is the supply voltage V.sub.S, representing that the data signal D.sub.O1 is in the high logic level state. In other words, the selected memory cell is in the on state.
[0102] As mentioned above, the sense amplifier 381 shown in
[0103] As shown in
[0104] The first drain/source terminal of the transistor M.sub.L1 receives the supply voltage V.sub.S. The gate terminal of the transistor M.sub.L1 receives the pre-charge signal S.sub.PRE. The second drain/source terminal of the transistor M.sub.L1 is connected with the node w3. The first drain/source terminal of the transistor M.sub.L2 receives the supply voltage V.sub.S. The gate terminal of the transistor M.sub.L2 receives a bias voltage VBIAS. The second drain/source terminal of the transistor M.sub.L2 is connected with a node w4. The first drain/source terminal of the transistor M.sub.L3 receives the supply voltage V.sub.S. The gate terminal of the transistor M.sub.L3 is connected with the node w4. The second drain/source terminal of the transistor M.sub.L3 is connected with a node w5. The first drain/source terminal of the transistor M.sub.L4 is connected with the node w4. The gate terminal of the transistor M.sub.L4 is connected with the node w3. The first drain/source terminal of the transistor M.sub.L5 is connected with the second drain/source terminal of the transistor M.sub.L4. The gate terminal of the transistor M.sub.L5 is connected with the node w5. The second drain/source terminal of the transistor M.sub.L5 is connected with the ground terminal GND. The first drain/source terminal of the transistor M.sub.L6 is connected with the node w4. The gate terminal of the transistor M.sub.L6 receives an inverted pre-charge signal
[0105] Before the read cycle, the transistor M.sub.L1 is turned on according to the pre-charge signal S.sub.PRE, and the transistor M.sub.L6 is turned on according to the inverted pre-charge signal
[0106] When the read cycle is started, if the reference current I.sub.REF is higher than the memory cell current I.sub.CELL, the voltage at the node w3 is maintained at the supply voltage V.sub.S. The transistor M.sub.L4 and the transistor M.sub.L5 are turned on. The voltage at the node w4 is maintained at the ground voltage (0V). Consequently, the transistor M.sub.L3 is turned on, and the transistor M.sub.L7 is turned off. The voltage at the node w5 is the supply voltage V.sub.S, and the transistor M.sub.L5 is continuously turned on. When the read cycle is ended, the data signal D.sub.OX is the supply voltage V.sub.S, representing that the data signal D.sub.OX is in the high logic level state. Consequently, the selected memory cell is in the off state.
[0107] When the read cycle is started, if the reference current I.sub.REF is lower than the memory cell current I.sub.CELL, the voltage at the node w3 drops from the supply voltage V.sub.S to the ground voltage (0V). The transistor M.sub.L4 is turned off, and the voltage at the node w4 is charged to the supply voltage V.sub.S. The transistor Mo is turned off, and the transistor M.sub.L7 is turned on. The voltage at the node w5 is the ground voltage (0V). Consequently, the transistor ML 5 is turned off. When the read cycle is ended, the data signal D.sub.OX is the ground voltage, representing that the data signal D.sub.OX is in the low logic level state. Consequently, the selected memory cell is in the on state.
[0108] As mentioned above, the sense amplifier 38x shown in
[0109]
[0110] The clamping circuit comprises a clamping voltage generation circuit 750 and (X+1) clamping devices 711?71x and 721. The clamping voltage generation circuit 750 generates the clamping voltage V.sub.CLAMP to the clamping devices 711?71x and 721.
[0111] In this embodiment, the clamping voltage V.sub.CLAMP generated by the clamping voltage generation circuit 750 is changed according to the change of the supply voltage V.sub.S. The clamping voltage generation circuit 750 receives an option signal S.sub.OPT. In addition, the clamping voltage generation circuit 750 generates the clamping voltage Vamp according to the option signal S.sub.OPT. When different supply voltage V.sub.S are provided to the non-volatile memory 700, the value of the clamping voltage V.sub.CLAMP is determined according to the option signal S.sub.OPT.
[0112] The clamping device 721 is constructed in the reference current generator 720. The X clamping devices 711?71x are constructed in the sensing circuit 790. As shown in
[0113]
[0114] The clamping voltage generation circuit 750 comprises three transistors M.sub.R1, M.sub.R2, M.sub.R3, two bias circuits 741, 743 and a current path selecting circuit 745.
[0115] The first drain/source terminal of the transistor M.sub.R3 is connected with a node y. The gate terminal of the transistor M.sub.R3 is connected with the ground terminal GND. The second drain/source terminal of the transistor M.sub.R3 is connected with a node z. Similarly, the transistor M.sub.R3 may be equivalently regarded as a resistor.
[0116] The diode-connected transistors M.sub.R2 and M.sub.R3 are serially connected between the node z and the ground terminal GND. That is, the first drain/source terminal of the transistor M.sub.R2 is connected with the node z, the gate terminal of the transistor M.sub.R2 is connected with the node z, the first drain/source terminal of the transistor M.sub.R1 is connected with the second drain/source terminal of the transistor M.sub.R2, the gate terminal of the transistor M.sub.R1 is connected with the second drain/source terminal of the transistor M.sub.R2, and the second drain/source terminal of the transistor M.sub.R1 is connected with the ground terminal GND. Moreover, the voltage at the node z is the clamping voltage V.sub.CLAMP.
[0117] The bias circuit 741 comprises three diode-connected transistors M.sub.O1, M.sub.O2, M.sub.O3 and a current source 742. The diode-connected transistors M.sub.O1, M.sub.O2, M.sub.O3 are serially connected between the supply voltage V.sub.S and a node x. That is, the first drain/source of the transistor M.sub.O1 receives the supply voltage V.sub.S, the gate terminal of the transistor M.sub.O1 is connected with the second drain/source terminal of the transistor M.sub.O1, the first drain/source terminal of the transistor M.sub.O2 is connected with the second drain/source terminal of the transistor M.sub.O1, the gate terminal of the transistor M.sub.O2 is connected with the second drain/source of the transistor M.sub.O2, the first drain/source terminal of the transistor M.sub.O3 is connected with the second drain/source terminal of the transistor M.sub.O2, the gate terminal of the transistor M.sub.O3 is connected with the node x, and the second drain/source terminal of the transistor M.sub.O3 is connected with the node x. The first terminal of the current source 742 is connected with the node x. The second terminal of the current source 742 is connected with the ground terminal GND. For example, the sizes of the transistors M.sub.O1, M.sub.O2 and M.sub.O3 are identical. The current source 742 provides a bias current I.sub.B3. Consequently, the bias voltage V.sub.B3 at the node x is approximatively V.sub.S?3V.sub.SG, i.e., V.sub.SG=(?{square root over (I.sub.B3/K.sub.p)}?V.sub.THP), wherein V.sub.SG is the voltage difference between the source terminal and the gate terminal of the transistor M.sub.O1, K.sub.p is the device parameter of the transistor M.sub.O1, and V.sub.THP is the threshold voltage of the transistor M.sub.O1, and assume that the transistors M.sub.O1 M.sub.O2 and M.sub.O3 have the same threshold voltage V.sub.THP in ideal. In addition, the threshold voltage V.sub.THP is negative.
[0118] The bias circuit 743 comprises three diode-connected transistors M.sub.Q1, M.sub.Q2 and M.sub.Q3. The diode-connected transistors M.sub.Q1, M.sub.Q2, M.sub.Q3 are serially connected between the node y and the ground terminal GND. That is, the first drain/source of the transistor M.sub.Q1 is connected with the node y, the gate terminal of the transistor M.sub.Q1 is connected with the node y, the first drain/source terminal of the transistor M.sub.Q2 is connected with the second drain/source terminal of the transistor M.sub.Q1, the gate terminal of the transistor M.sub.Q2 is connected with the first drain/source of the transistor M.sub.Q2, the first drain/source terminal of the transistor M.sub.Q3 is connected with the second drain/source terminal of the transistor M.sub.Q2, the gate terminal of the transistor M.sub.O3 is connected with the first drain/source of the transistor M.sub.Q3, and the second drain/source terminal of the transistor M.sub.Q3 is connected with the ground terminal GND. Moreover, the bias voltage V.sub.B4 at the node y is determined according to the bias current I.sub.B4. For example, the sizes of the transistors M.sub.Q1, M.sub.Q2 and M.sub.Q3 are identical. Consequently, the bias voltage V.sub.B4 at the node y is approximatively 3V.sub.GS, i.e., V.sub.GS=(?{square root over (I.sub.B4/K.sub.n)}+V.sub.THN) wherein V.sub.GS is the voltage difference between the gate terminal and the source terminal of the transistor M.sub.Q3, K.sub.n is the device parameter of the transistor M.sub.Q3, and V THN is the threshold voltage of the transistor M.sub.Q3, and assume that the transistors M.sub.Q1 M.sub.Q2 and M.sub.Q3 have the same threshold voltage V THN in ideal. In addition, the threshold voltage V THN is positive.
[0119] The current path selecting circuit 745 comprises two current paths 761 and 762. According to the bias voltage V.sub.B3, the current paths 761 and 762 generate corresponding voltage-controlled currents I.sub.T1 and I.sub.T2, respectively. The option signal Sop T is a two-bit signal. The two-bit signal contains option bits S.sub.OPT_A and S.sub.OPT_B. The current path 761 is controlled according to the option bits S.sub.OPT_A. The current path 762 is controlled according to the option bits S.sub.OPT_B. In addition, at least one current path of the current path selecting circuit 745 is activated according to the option signal S.sub.OPT.
[0120] In the current path selecting circuit 745, the transistors M.sub.SWE and M.sub.SWF are served as the switches, and the transistors M.sub.T1 and M.sub.2 are served as the voltage-controlled current sources. The first drain/source of the transistor M.sub.SWE receives the supply voltage V.sub.S. The gate terminal of the transistor M.sub.SWE receives the option bit S.sub.OPT_A. The first drain/source terminal of the transistor M.sub.T1 is connected with the second drain/source terminal of the transistor M.sub.SWE. The gate terminal of the transistor M.sub.T1 receives the bias voltage V.sub.B3. The second drain/source terminal of the transistor M.sub.T1 is connected with the node y.
[0121] The current path 762 of the current path selecting circuit 745 comprises the transistor M.sub.T2 and the transistor M.sub.SWF. The first drain/source terminal of the transistor M.sub.SWF receives the bias voltage V.sub.S. The gate terminal of the transistor M.sub.SWF receives the option bit S.sub.OPT_B. The first drain/source terminal of the transistor M.sub.T2 is connected with the second drain/source terminal of the transistor M.sub.SWF. The gate terminal of the transistor M.sub.T2 receives the bias voltage V.sub.B3. The second drain/source terminal of the transistor M.sub.T2 is connected with the node y.
[0122] In an embodiment, the size of the transistors M.sub.T1 and M.sub.T2 are different. Consequently, the voltage-controlled current I.sub.T1 in the current path 761 and the voltage-controlled current I.sub.T2 in the current path 762 are in a specified proportional relationship. For example, the size of the transistor M.sub.T1 is larger than the size of the transistor M.sub.T2. Consequently, the voltage-controlled current I.sub.T1 is higher than the voltage-controlled current I.sub.T2.
[0123] Moreover, according to the option signal S.sub.OPT, at least one of the two switches M.sub.SWE and M.sub.SWF is controlled to be in a close state. For example, if the option bit S.sub.OPT_A is in the logic level state 0, the transistor M.sub.SWE is turned on (i.e., in the close state), and the current path 761 is activated. Whereas, if the option bit S.sub.OPT_A is in the logic level state 1, the transistor M.sub.SWE is turned off (i.e., in the open state), and the current path 761 is inactivated. For example, if the two option bits of the option bit S.sub.OPT<S.sub.OPT_A, S.sub.OPT_B> is <1, 0>, the current path 762 is activated, but the current path 761 is inactivated. In other words, the switches SWE and SWF are controlled to be in the close state or the open state according to the binary value of the option signal S.sub.OPT.
[0124] In
[0125] As the supply voltage V.sub.S increases, the output current from the current path selecting circuit 745 results in the increase of the clamping voltage V.sub.CLAMP. According to the option signal S.sub.OPT, the current flowing into the node y is selectively adjusted. Consequently, when different supply voltage V.sub.S are provided to the non-volatile memory 700, the slope of the change of the clamping voltage V.sub.CLAMP is correspondingly adjusted according to the option signal S.sub.OPT.
[0126] As mentioned above, the values of the control signal S.sub.CTL and the selection signal S.sub.SEL may be determined by the engineers according to the characteristics of the memory cells after the non-volatile memory 300 leaves the foundry. When a first value of control signal S.sub.CTL and a second value of selection signal S.sub.SEL are determined, the reference current I.sub.REF is changed at a first specified slope in a range of the supply voltage V.sub.S. Similarly, a third value of the option signal S.sub.OPT is determined by the engineers. Consequently, the clamping voltage V.sub.CLAMP is changed at a second specified slope in a range of the supply voltage V.sub.S. After the non-volatile memory 300 leaves the foundry, the sensing circuit 390 can correctly output the data signals D.sub.O1?D.sub.OX according to the reference current I.sub.REF. For example, the values of the control signal S.sub.CTL and the selection signal S.sub.SEL may be determined according to the characteristics of the on current I.sub.ON and the off current I.sub.OFF of the memory cell.
[0127] In the embodiment of
[0128] While the invention has been described in terms of what is presently considered to be the most practical and preferred embodiments, it is to be understood that the invention needs not be limited to the disclosed embodiment. On the contrary, it is intended to cover various modifications and similar arrangements included within the spirit and scope of the appended claims which are to be accorded with the broadest interpretation so as to encompass all such modifications and similar structures.