Memory circuit and memory programming method
11495312 · 2022-11-08
Assignee
Inventors
Cpc classification
G11C5/145
PHYSICS
G11C16/102
PHYSICS
G11C16/3481
PHYSICS
G11C16/3459
PHYSICS
International classification
G11C16/34
PHYSICS
Abstract
A memory circuit and a memory programming method adapted to program flash memory are provided. The memory circuit includes a charge pumping circuit, a voltage regulator, a voltage sensor, and a plurality of switch circuits. The charge pumping circuit generates a pumping voltage and a pumping current. The voltage regulator is coupled to the charge pumping circuit and generates a programming voltage and a programming current to program the flash memory according to the pumping voltage and the pumping current. The voltage sensor is coupled to the voltage regulator to monitor a voltage value of the programming voltage. Each of the plurality of switch circuits includes a first terminal coupled to the voltage sensor and a second terminal coupled to the flash memory. A quantity of the plurality of switch circuits that are turned on is determined by the voltage value of the programming voltage.
Claims
1. A memory circuit adapted to program flash memory, the memory circuit comprising: a charge pumping circuit generating a pumping voltage and a pumping current; a voltage regulator coupled to the charge pumping circuit and generating a programming voltage and a programming current according to the pumping voltage and the pumping current to program the flash memory; a voltage sensor coupled to the voltage regulator to monitor a voltage value of the programming voltage; and a plurality of switch circuits each comprising a first terminal coupled to the voltage sensor and a second terminal coupled to the flash memory, wherein a quantity of the plurality of switch circuits that are turned on is determined according to the voltage value of the programming voltage, wherein the voltage sensor comprises a comparator, the comparator compares the voltage value of the programming voltage with a plurality of predetermined voltages to generate a comparison result, and the voltage sensor generates a switch weight of the plurality of switch circuits according to the comparison result.
2. The memory circuit according to claim 1, wherein the pumping voltage and the pumping current generated by the charge pumping circuit are inversely proportional.
3. The memory circuit according to claim 1, wherein the first terminal of each of the plurality of switch circuits is coupled to the voltage regulator, and the second terminals of the plurality of switch circuits are coupled to different bit lines of the flash memory.
4. The memory circuit according to claim 1, wherein the quantity of the plurality of switch circuits that are turned on is directly proportional to the voltage value of the programming voltage.
5. The memory circuit according to claim 1, wherein the plurality of predetermined voltages comprise a predetermined programming voltage and a first predetermined voltage, and the predetermined programming voltage is greater than the first predetermined voltage, when the programming voltage is greater than or equal to the predetermined programming voltage, the voltage sensor generates a first switch weight, when the programming voltage is less than the predetermined programming voltage and greater than the first predetermined voltage, the voltage sensor generates a second switch weight, and when the programming voltage is less than or equal to the first predetermined voltage, the voltage sensor generates a third switch weight.
6. The memory circuit according to claim 5, wherein the quantity of the plurality of switch circuits that are turned on is determined according to the switch weight.
7. The memory circuit according to claim 6, wherein when the voltage sensor generates the first switch weight, the plurality of switch circuits are all turned on.
8. The memory circuit as described in claim 6, wherein when the voltage sensor generates the second switch weight, a first quantity of the plurality of switch circuits are turned on, when the voltage sensor generates the third switch weight, a second quantity of the plurality of switch circuits are turned on, and the first quantity is greater than the second quantity.
9. The memory circuit according to claim 1, further comprising a decoder generating a control signal to a control terminal of each of the plurality of switch circuits according to the switch weight.
10. A memory programming method adapted to program flash memory, comprising: generating a programming voltage and a programming current; setting a plurality of programming paths to be all turned on, and, during a program pulse period, programming the flash memory by the programming voltage and the programming current via the plurality of programming paths; and after the program pulse period ends, monitoring a voltage value of the programming voltage; determining whether the programming voltage is greater than or equal to a predetermined programming voltage; comparing the programming voltage with a plurality of predetermined voltages, and generating a switch weight of the plurality of programming paths according to a comparison result; selectively turning off some of the plurality of programming paths according to the switch weight of the plurality of programming paths; and determining whether a programming verification is passed.
11. A memory programming method adapted to program flash memory, comprising: generating a programming voltage and a programming current; setting a plurality of programming paths to be all turned on; during a program pulse period, programing the flash memory by the programming voltage and the programming current via the plurality of programming paths; monitoring a voltage value of the programming voltage; comparing the programming voltage with a plurality of predetermined voltages, and generating a switch weight of the plurality of programming paths according to a comparison result; and selectively turning off some of the plurality of programming paths according to the switch weight of the plurality of programming paths; and after the program pulse period ends, determining whether a programming verification is passed.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
DESCRIPTION OF THE EMBODIMENTS
(6) Hereinafter, description of the embodiment of the disclosure is made with reference to the drawings.
(7)
(8) As shown in
(9) As shown in
I.sub.PGMALL≈8*(I.sub.PGMCELL+511*I.sub.LEAK) (Formula 1),
where I.sub.PGMCELL is an average of the programming current consumed by each of the memory cells (I.sub.PGMCELL0 to I.sub.PGMCELL7) in the 1.sup.st row of the flash memory 103, and I.sub.LEAK is an average of the leakage current consumed by each of the memory cells in the 2.sup.nd row to the 512.sup.th row of the flash memory 103.
(10) According to Formula 1, the total programming current I.sub.PGMALL consumed by the flash memory 103 varies according to the number of and the programming current consumed by the memory cells to be programmed by the memory circuit 100, and the leakage current of the unprogrammed memory cell. The programming current of the memory cell to be programmed and the leakage current of the unprogrammed memory cell vary due to uncertainty in various combinations of semiconductor process variation, circuit operating temperature variation, and the like. The total programming current I.sub.PGMALL consumed by the flash memory 103 in a typical condition (e.g., a typical temperature or process) may be set to I.sub.PGMALL_TYPICAL, and in an extreme condition (e.g., an extremely power-consuming temperature or process), may be set to I.sub.PGMALL_MAX.
(11)
(12) A design target 1 as shown in
(13) With reference to
(14) In
(15) The table of
(16) When the voltage sensor monitors that the voltage value of the programming voltage V.sub.Drain is between V1 and V2 (=6V) (i.e., V2<the programming voltage V.sub.Drain<V1), the voltage sensor outputs a programming path switch weight [1:0]=[10] to the decoder, and the decoder outputs control signals to the control terminals of the plurality of switch circuits Y0 to Y7 according to the programming path switch weight [1:0]=[10] to turn off some of the switch circuits Y7 to Y6 and turn on some of the switch circuits Y0 to Y5. In other words, at this time the total programming current I.sub.PGMALL>I.sub.MAX=I.sub.PGMALL_TYPICAL, and the flash memory 103 is programmed with a programming voltage less than the predetermined programming voltage V.sub.PGM. In order to avoid a programming error, the memory circuit 100 requires to temporarily turn off some of the programming paths to ensure that the flash memory 103 is programmed with a programming voltage greater than or equal to the predetermined programming voltage V.sub.PGM.
(17) When the voltage sensor monitors that the voltage value of the programming voltage V.sub.Drain is less than or equal to V2 (=6V), the voltage sensor outputs a programming path switch weight [1:0]=[11] to the decoder, the decoder outputs control signals to the control terminals of the plurality of switch circuits Y0 to Y7 according to the programming path switch weight [1:0]=[11] to turn off some of the switch circuits Y7 to Y2 and turn on some of the switch circuits Y0 to Y1. In other words, at this time the total programming current I.sub.PGMALL>I.sub.MAX=I.sub.PGMALL_TYPICAL (and at this time the total programming current I.sub.PGMALL is greater than the total programming current I.sub.PGMALL when the programming path switch weight [1:0]=[10]), and the flash memory 103 is programmed with a programming voltage less than the predetermined programming voltage V.sub.PGM. In order to avoid a programming error, the memory circuit 100 requires to temporarily turn off some of the programming paths to ensure that the flash memory 103 is programmed with a programming voltage greater than or equal to the predetermined programming voltage V.sub.PGM.
(18)
(19)
(20) In summary of the foregoing, for the memory circuit and the memory programming method provided in the disclosure, only the uncertainty in the combinations occurring in a typical case is required to be taken into consideration in designing the pumping voltage and the pumping current of the charge pumping circuit, therefore reducing the circuit area and the costs.
(21) It will be apparent to those skilled in the art that various modifications and variations can be made to the disclosed embodiments without departing from the scope or spirit of the disclosure. In view of the foregoing, it is intended that the disclosure covers modifications and variations provided that they fall within the scope of the following claims and their equivalents.