A flash memory chip and calibration method and device thereof

By introducing a reference array into the flash memory chip and using its initial weight value to calibrate the real-time weight value of the working array, the problem of reduced data accuracy caused by flash memory cell leakage is solved and higher storage accuracy is achieved.

CN111243654BActive Publication Date: 2024-10-22BEIJING ZHICUN (WITIN) TECH CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201811438979.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-11-28
Publication Date
2024-10-22
Estimated Expiration
2038-11-28

AI Technical Summary

Technical Problem

After the flash memory chip is used for an extended period of time, the flash memory unit will leak electricity, resulting in a reduction in the accuracy of stored data.

Method used

Design a flash memory chip, including a working array and a reference array. The number of flash memory cells in the reference array is greater than or equal to the adjustable weight level N. By reading and calibrating the real-time weight value in the working array, the initial weight value of the reference array is used for calibration. , to compensate for the impact of leakage on the weight of flash memory cells.

Benefits of technology

The accuracy of stored data is improved, and the impact of leakage on the weight of flash memory cells is effectively compensated through offline update calibration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111243654B_ABST
    Figure CN111243654B_ABST
Patent Text Reader

Abstract

The present invention provides a flash memory chip and a calibration method and device thereof, which can utilize the adjustable weight level of a flash memory unit to calibrate a working array in the flash memory chip. Specifically, at least one reference array for calibrating the working array can be set, and the number of flash memory units in the reference array is greater than or equal to the adjustable weight level N of the flash memory unit; the initial weight values ​​of the N flash memory units in the reference array correspond one-to-one to the N-level adjustable weights of the flash memory unit, and the redundant flash memory units are used as redundant units for standby; during calibration, the real-time weight values ​​of the flash memory units in the working array are calibrated according to the real-time weight values ​​and initial weight values ​​of the flash memory units in the reference array, thereby realizing offline update calibration of the flash memory unit weights in the working array, compensating for the influence of leakage on the flash memory unit weights, and improving the accuracy of stored data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of semiconductor integrated circuits, and in particular to a flash memory chip and a calibration method and device thereof. Background Art

[0002] Flash memory chip is a long-life non-volatile memory chip. Since it can still save data when the power is off, flash memory is usually used to save setting information, such as saving data in the computer's BIOS (basic program), PDA (personal digital assistant), digital camera, etc., and is widely used.

[0003] However, as the flash memory chip is used for a longer time, its flash memory unit (i.e., flash memory transistor) will have leakage. Since the weight of the flash memory unit (i.e., the data stored in the flash memory transistor) is related to the number of electrons stored in the flash memory unit, leakage will cause the number of electrons in the flash memory unit to decrease, that is, the weight of the flash memory unit (i.e., the data stored in the flash memory transistor) will shift, thereby reducing the accuracy of the stored data. Summary of the invention

[0004] In view of this, the present invention provides a flash memory chip and a calibration method, device, equipment and medium thereof, which can solve the problem of reduced accuracy of stored data due to leakage.

[0005] In order to solve the above technical problems, the present invention adopts the following technical solutions:

[0006] In a first aspect, a flash memory chip is provided, comprising: a working array and at least one reference array for calibrating the working array;

[0007] The working array and the reference array are both composed of a plurality of flash memory cells with N adjustable weight levels, and the flash memory cells have N levels of adjustable weights;

[0008] The number of flash memory cells in the reference array is greater than or equal to the adjustable weight level N;

[0009] The initial weight values ​​of the N flash memory cells of the reference array correspond one-to-one to the N levels of adjustable weights.

[0010] Furthermore, the flash memory chip further includes: a reading circuit,

[0011] The reading circuit is connected to the working array and the reference array, and is used for reading the weight values ​​of the flash memory cells in the working array and the reference array.

[0012] Furthermore, the flash memory chip also includes: a programming circuit,

[0013] The programming circuit is connected to the working array and the reference array, and is used for controlling the weight values ​​of the flash memory cells in the working array and the reference array.

[0014] Furthermore, the flash memory chip further includes: a row and column decoder,

[0015] The row-column decoder is connected to the working array and the reference array and is used for selecting the flash memory cells in the working array and the reference array.

[0016] Furthermore, the flash memory chip also includes: a controller,

[0017] The controller is connected to the read circuit, the programming circuit and the row-column decoder and is used for controlling the operation of the read circuit, the programming circuit and the row-column decoder.

[0018] In a second aspect, a flash memory chip calibration method is provided, which is used for the above-mentioned flash memory chip, and the flash memory chip calibration method comprises:

[0019] Setting initial weight values ​​of flash memory cells in a reference array according to adjustable weights of the flash memory cells;

[0020] The real-time weight values ​​of the flash memory cells in the working array are calibrated according to the real-time weight values ​​and the initial weight values ​​of the flash memory cells in the reference array.

[0021] Further, the initial weight value of the flash memory cell in the reference array is set according to the adjustable weight of the flash memory cell, including:

[0022] The initial weight value of each of the N flash memory cells of the reference array is set to be equal to the first-level adjustable weight, so that the initial weight values ​​of the N flash memory cells are equal to the N-level adjustable weights in a one-to-one correspondence.

[0023] Further, the real-time weight values ​​of the flash memory cells in the working array are calibrated according to the real-time weight values ​​and the initial weight values ​​of the flash memory cells in the reference array, including:

[0024] Obtaining a calibration target weight value of the flash memory cell in the reference array according to the real-time weight value thereof;

[0025] Read the real-time weight values ​​of the flash memory cells in the working array in sequence;

[0026] The real-time weight values ​​of the flash memory cells in the working array are calibrated in sequence according to the initial weight values ​​of the N flash memory cells in the reference array and the calibration target weight values.

[0027] Further, the real-time weight values ​​of the flash memory cells in the working array are calibrated in sequence according to the initial weight values ​​of the N flash memory cells in the reference array and the calibration target weight values, including:

[0028] Searching in the reference array for a flash memory cell having a calibration target weight value that is equal to or close to a real-time weight value of a flash memory cell in the working array;

[0029] The real-time weight value of the flash memory cell in the working array is set to the initial weight value of the flash memory cell in the found reference array.

[0030] Further, the step of obtaining a calibration target weight value of the flash memory cell in the reference array according to the real-time weight value of the flash memory cell includes:

[0031] Reading the real-time weight values ​​of the flash memory cells in the reference array;

[0032] When the number of the reference array is 1, the real-time weight value of the read flash memory cell is used as the calibration target weight value of the flash memory cell;

[0033] When the number of the reference arrays is greater than 1, the average real-time weight value of the flash memory cells with the same initial weight value in all reference arrays is calculated as the calibration target weight value of the flash memory cell.

[0034] In a third aspect, a flash memory chip calibration device is provided, which is used for the above-mentioned flash memory chip, and the flash memory chip calibration device includes:

[0035] An initialization module, setting initial weight values ​​of flash memory cells in a reference array according to adjustable weights of the flash memory cells;

[0036] The first calibration module calibrates the real-time weight values ​​of the flash memory cells in the working array according to the real-time weight values ​​and initial weight values ​​of the flash memory cells in the reference array.

[0037] Furthermore, the initialization module includes:

[0038] The initial weight setting unit sets the initial weight value of each of the N flash memory cells of the reference array to be equal to the first-level adjustable weight, so that the initial weight values ​​of the N flash memory cells are equal to the N-level adjustable weights in a one-to-one correspondence.

[0039] Further, the first calibration module includes:

[0040] An acquisition unit, which acquires a calibration target weight value of the flash memory cell in the reference array according to the real-time weight value of the flash memory cell;

[0041] A reading unit, sequentially reading the real-time weight values ​​of the flash memory cells in the working array;

[0042] The calibration unit sequentially calibrates the real-time weight values ​​of the flash memory cells in the working array according to the initial weight values ​​of the N flash memory cells in the reference array and the calibration target weight values.

[0043] In a fourth aspect, a flash memory chip calibration method is provided, comprising:

[0044] Read the real-time weight value of the flash memory cell in the working array;

[0045] The real-time weight values ​​of the flash memory cells in the working array are calibrated according to the adjustable weight level table.

[0046] Further, the real-time weight values ​​of the flash memory cells in the working array are calibrated according to the adjustable weight level table, including:

[0047] Searching the adjustable weight level table for an adjustable weight value that is equal to or close to the real-time weight value of the flash memory unit;

[0048] The real-time weight value of the flash memory unit is set to the adjustable weight value.

[0049] In a fifth aspect, a flash memory chip calibration device is provided, comprising:

[0050] A reading module, reading the real-time weight value of the flash memory unit in the working array;

[0051] The second calibration module calibrates the real-time weight values ​​of the flash memory cells in the working array according to the adjustable weight level table.

[0052] In a sixth aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned flash memory chip calibration method when executing the program.

[0053] In a seventh aspect, a computer-readable storage medium is provided, on which a computer program is stored, characterized in that when the computer program is executed by a processor, the steps of the above-mentioned flash memory chip calibration method are implemented.

[0054] The flash memory chip and its calibration method, device, equipment and medium provided by the present invention can use the adjustable weight level of the flash memory unit to calibrate the working array in the flash memory chip. Specifically, at least one reference array is set to calibrate the working array, and the number of flash memory units in the reference array is greater than or equal to the adjustable weight level N of the flash memory unit; the initial weight values ​​of the N flash memory units in the reference array correspond to the N levels of adjustable weights of the flash memory unit, and the redundant flash memory units are used as redundant units for standby; during calibration, the real-time weight values ​​of the flash memory units in the working array are calibrated according to the real-time weight values ​​and initial weight values ​​of the flash memory units in the reference array, so as to realize offline update calibration of the weights of the flash memory units in the working array, compensate for the influence of leakage on the weights of the flash memory units, and improve the accuracy of stored data.

[0055] In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0057] Figure 1 The structure frame of the flash memory chip of the embodiment of the present invention is Figure 1 ;

[0058] Figure 2 Schematic diagram of a flash memory chip according to an embodiment of the present invention Figure 1 ;

[0059] Figure 3 Schematic diagram of a flash memory chip according to an embodiment of the present invention Figure 2 ;

[0060] Figure 4 Schematic diagram of a flash memory chip according to an embodiment of the present invention Figure 3 ;

[0061] Figure 5 Schematic diagram of a flash memory chip according to an embodiment of the present invention Figure 4 ;

[0062] Figure 6 Schematic diagram of a flash memory chip according to an embodiment of the present invention Figure 5 ;

[0063] Figure 7 Schematic diagram of a flash memory chip according to an embodiment of the present invention Figure 6 ;

[0064] Figure 8 Schematic diagram of a flash memory chip according to an embodiment of the present invention Figure 7 ;

[0065] Fig. 9 The structure frame of the flash memory chip of the embodiment of the present invention is Figure 2 ;

[0066] Fig.10 is a flow chart of a flash memory chip calibration method according to an embodiment of the present invention;

[0067] Fig.11 Shows Fig.10 The specific steps of step S200;

[0068] Fig.12 A structural diagram of a flash memory chip calibration device according to an embodiment of the present invention is shown;

[0069] Fig.13 A flow chart showing another flash memory chip calibration method of the present invention is shown;

[0070] Fig.14 A structural diagram of a flash memory chip calibration device according to another embodiment of the present invention is shown;

[0071] Fig.15 A schematic diagram of the structure of a computer device suitable for implementing the embodiments of the present application is shown. DETAILED DESCRIPTION

[0072] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0073] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0074] As the flash memory chip is used for a longer time, its flash memory unit (i.e., flash memory transistor) has leakage, which reduces the accuracy of stored data. To solve this problem, the applicant conducted a large number of research experiments and found that for the same flash memory chip, all flash memory units have the same leakage trend. Using this discovery, the embodiment of the present invention provides a flash memory chip and its calibration method, device, equipment and medium, which can realize offline update calibration of flash memory unit weights in a working array, compensate for the influence of leakage on flash memory unit weights, and thus improve the accuracy of stored data.

[0075] Figure 1 The structure frame of the flash memory chip of the embodiment of the present invention is Figure 1 .like Figure 1 As shown, the flash memory chip 1 includes: a working array 100 and at least one reference array 200 for calibrating the working array 100 , and the working array 100 is connected to the reference array 200 .

[0076] Specifically, the working array 100 and the reference array 200 are both composed of a plurality of flash memory cells, wherein the flash memory cell is the smallest unit constituting the flash memory chip, and the adjustable weight level of the flash memory cell is N, that is, the flash memory cell has N levels of adjustable weight.

[0077] In an optional embodiment, the flash memory unit can be a flash memory transistor, such as a SONOS-type floating-gate transistor, a split-gate floating-gate transistor, or a charge-trapping floating-gate transistor, and embodiments of the present invention include but are not limited to the above.

[0078] The number of flash memory cells in the reference array is greater than or equal to the adjustable weight level N of the flash memory cells, and the initial weight values ​​of the N flash memory cells in the reference array correspond one-to-one to the N-level adjustable weights, and the remaining flash memory cells are used as redundant cells.

[0079] It is worth noting that all flash memory cells in the flash memory chip are of the same model. When storing data, the weight of the flash memory cell is adjusted to achieve the storage of different data. However, the weight of the flash memory cell cannot be adjusted to any value at will. Instead, the flash memory cell has multiple levels of adjustable weights. By adjusting the weight of the flash memory cell to the corresponding adjustable weight, data storage is achieved.

[0080] For example, in a flash memory chip, the adjustable weight of the flash memory unit can have N values, denoted as A1~A N , where N is the adjustable weight level, A1 is the first level adjustable weight, A N It is the Nth level adjustable weight.

[0081] Because all flash memory cells in the same flash memory chip have the same leakage trend, after a certain period of time, the working array and the reference array have the same leakage trend, that is, the weight offset is the same. At this time, the reference array is used to calibrate the weight of the working array.

[0082] Specifically, when the number of reference arrays is 1, the real-time weight value of the read flash memory cell is used as the calibration target weight value of the flash memory cell; when the number of the reference arrays is greater than 1, the average real-time weight value of the flash memory cells with the same initial weight value in all reference arrays is calculated as the calibration target weight value of the flash memory cell; then, the real-time weight values ​​of the flash memory cells in the working array are read in turn; thereafter, a flash memory cell whose calibration target weight value is equal to or close to the real-time weight value of a flash memory cell in the working array is searched in the reference array; finally, the real-time weight value of the flash memory cell in the working array is set to the initial weight value of the flash memory cell in the reference array that is found.

[0083] For example: The initial weight value of the Kth flash memory cell in the reference array is set to A K , after a certain period of time, its weight value should still be AK , but due to leakage, its weight value becomes A V , then the leakage of the Kth flash memory cell is (A K -A V ), at this time, the weight value in the working array is A V Flash memory cells also exist (A K -A V ) leakage, then the weight value in the working array is A V The weight value of the flash memory cell is set to A K , in order to compensate for the leakage.

[0084] It is worth noting that if the real-time weight value of a flash memory unit in the working array is A i , and there is no calibration target weight value equal to A in the reference array i The flash memory cell is then searched for the calibration target weight value and A in the reference array. i Similar flash memory cells, such as A V-1 i v At this time, the calibration target weight value in the reference array is A V-1 With the calibration target weight value A v The real-time weight value in the flash memory cell calibration work array is A i Flash memory unit, specifically: if A i Closer to A v , then the real-time weight value in the working array is A i The real-time weight value of the flash memory cell is adjusted to the calibration target weight value A in the reference array. v The initial weight value of the flash memory cell, if A i Closer to A V-1 , then the real-time weight value in the working array is A i The real-time weight value of the flash memory cell is adjusted to the calibration target weight value A in the reference array. v-1 The initial weight value of the flash memory cell, if A i Exactly in A V-1 With A v In the middle, the calibration target weight value in the reference array is A V-1 Or the calibration target weight value is A v One of the flash memory cells in the calibration working array has a real-time weight value of A i flash memory cell.

[0085] Of course, in the same flash memory chip, when the real-time weight value A of the flash memory cell in the working array i ​​When the calibration target weight values ​​of two flash memory cells in the reference array are between each other, if the flash memory cell in the calibration working array with the larger calibration target weight value is used, all the flash memory cells in the flash memory chip adopt the rule, and vice versa.

[0086] In summary, the embodiments of the present invention set at least one reference array for calibrating the working array, and use the reference array to calibrate the weight of the working array, thereby realizing offline update calibration of the flash memory cell weights in the working array, compensating for the influence of leakage on the flash memory cell weights, and improving the accuracy of stored data.

[0087] In an optional embodiment, a portion of the working array of the flash memory chip 1 may be divided and used as a reference array to form a working array 100 and a reference array 200 .

[0088] for example, Figure 2 It is shown that a reference array 200 is divided on the right side of the working array of a flash memory chip to form an M×N working array 100 and a reference array 200, wherein, limited by the number of flash memory cells in the reference array 200, the flash memory cells in the reference array 200 may be arranged in a complete array, or may be arranged in an array form in which no flash memory cells are set in some positions, and the positions without flash memory cells can be selected arbitrarily. Of course, a reference array 200 can also be divided on the left side of the working array of the flash memory chip to form an M×L working array 100 and a reference array 200, and the principle is the same as dividing the reference array on the right side of the working array of the flash memory chip, and they can be referred to each other and will not be repeated here.

[0089] for example, Figure 3 It is shown that a reference array 200 is divided above the working array of a flash memory chip to form an M×L working array 100 and a reference array 200, wherein, limited by the number of flash memory cells in the reference array 200, the flash memory cells in the reference array 200 may be arranged in a complete array, or may be arranged in an array form in which no flash memory cells are set in some positions, and the positions without flash memory cells can be selected arbitrarily. Of course, a reference array 200 can also be divided below the working array of the flash memory chip to form an M×L working array 100 and a reference array 200, and the principle is the same as dividing the reference array above the working array of the flash memory chip, and reference can be made to each other, and no further description is given here.

[0090] for example, Figure 4It is shown that a reference array 200 is divided on the right and below the working array of a flash memory chip to form an M×L working array 100 and a reference array 200, wherein, limited by the number of flash memory cells in the reference array 200, the flash memory cells in the reference array 200 may be arranged in a complete array, or may be arranged in an array form in which no flash memory cells are set in some positions, and the positions where no flash memory cells are set can be selected arbitrarily. Of course, a reference array 200 can also be divided on the right and above or on the left and above or on the left and below the working array of the flash memory chip to form an M×L working array 100 and a reference array 200, and the principle is the same as dividing the reference array on the right and below the working array of the flash memory chip, and they can be referred to each other and will not be repeated here.

[0091] for example, Figure 5 It is shown that a reference array 200 is divided around the working array of a flash memory chip to form an M×L working array 100 and a reference array 200, wherein, limited by the number of flash memory cells in the reference array 200, the flash memory cells in the reference array 200 may be completely arranged in one or more circles around the working array, or may only be arranged in part of one or more circles around the working array, and the positions where no flash memory cells are set can be selected arbitrarily.

[0092] From the above examples, it can be seen that a part of the working array of the flash memory chip can be divided and used as a reference array. The specific division method can be selected according to actual needs. Flash memory cells whose number is greater than or equal to the weight level of the flash memory cell can be selected above, below, left and right of the working array as the reference array. The embodiment of the present invention does not limit the division method.

[0093] It will be understood by those skilled in the art that a reference array may be independently set in a flash memory chip, which is independent of the working array in the flash memory chip. Because both the reference array and the working array are stimulated when the flash memory chip is working, the weight of the independent reference array can be used to calibrate the weight of the working array.

[0094] Of course, those skilled in the art can also understand that the reference array and the working array on the same flash memory chip can experience the same stimulation or different stimulation.

[0095] In a preferred embodiment, a plurality of reference arrays as described above are provided in the flash memory chip, the number of flash memory cells in each reference array is greater than or equal to the adjustable weight level of the flash memory cell, and the initial weight values ​​of the N flash memory cells in each reference array correspond one-to-one to the N-level adjustable weights of the flash memory cell. Before the reference array is used to calibrate the working array, the average of the real-time weight values ​​of the flash memory cells corresponding to the same level of adjustable weight in the plurality of reference arrays is calculated as the calibration target weight value of the flash memory cell, and then the calibration target weight value of the flash memory cell is used to calibrate the working array.

[0096] Taking into account that due to process deviations or spatial distributions and external environments of different flash memory cells, the leakage trends of flash memory cells on the same flash memory chip are the same, but the leakage amounts may not be exactly the same, that is, the weight offsets are similar but not exactly the same. When the weights of the reference array are used to calibrate the weights of the working array, only part of the leakage effect can be compensated, and the leakage effect cannot be completely eliminated. At this time, using the weight average of the flash memory cells corresponding to the same level of weight in multiple reference arrays to calibrate the working array can effectively take into account the weight offsets of different flash memory cells, thereby eliminating the leakage effect to the greatest extent.

[0097] Specifically, the multiple reference arrays may include: setting reference arrays above, below, left and right of the working array ( Figure 6 The reference array 200a and the reference array 200b are respectively arranged on the left and right sides of the working array 100, the reference array is arranged on the right and below the working array, the reference array is arranged on the right and above the working array, the reference array is arranged on the left and above the working array, the reference array is arranged on the left and below the working array, the reference array is arranged around the working array, or a combination of the foregoing ( Figure 7 2 shows that reference arrays 200a and 200b are arranged above, to the right and below the working array 100. Figure 8 exist Figure 7 On the basis of the working array 100, a reference array 200c is added on the left side of the working array 100. The embodiment of the present invention does not limit the setting position of multiple reference arrays. It is only required that the number of flash memory cells in each reference array is greater than or equal to the weight level of the flash memory cell, and the weight values ​​of some flash memory cells correspond to the weight values ​​corresponding to the multi-level weights. The redundant flash memory cells can be used as redundant cells. The specific setting method of each reference array is described above and will not be repeated here.

[0098] Fig. 9 The structure frame of the flash memory chip of the embodiment of the present invention is Figure 2 .like Fig. 9 As shown, the flash memory chip contains Figures 1 to 8Any of the above mentioned flash memory chips further includes: a reading circuit 300 , a programming circuit 400 , a row and column decoder 500 and a controller 600 .

[0099] The reading circuit 300 is connected to the working array 100 and the reference array 200 , and is used to read the weight values ​​of the flash memory cells in the working array 100 and the reference array 200 .

[0100] Specifically, the reading circuit 300 is connected to each flash memory cell in the working array 100 and the reference array 200 , and reads the weight value of the flash memory cell under the control of the controller 600 .

[0101] The programming circuit 400 is connected to the working array 100 and the reference array 200 , and is used to control the weight values ​​of the flash memory cells in the working array 100 and the reference array 200 .

[0102] Specifically, the programming circuit 400 is connected to each flash memory cell in the working array 100 and the reference array 200 to generate a programming voltage or an erasing voltage, which is applied to the flash memory cell to adjust the weight value of the flash memory cell.

[0103] The row-column decoder 500 is connected to the working array 100 and the reference array 200 , and is used to select the flash memory cells in the working array 100 and the reference array 200 .

[0104] Specifically, the row-column decoder 500 is connected to each flash memory cell in the working array 100 and the reference array 200 , and selects the required flash memory cell under the control of the controller 600 .

[0105] The controller 600 is connected to the read circuit 300 , the programming circuit 400 , and the row-column decoder 500 , and is used to control the operation of the read circuit 300 , the programming circuit 400 , and the row-column decoder 500 .

[0106] The embodiment of the present invention also provides a flash memory chip calibration method, such as Fig.10 As shown, for the above-mentioned flash memory chip, comprising:

[0107] Step S100: setting initial weight values ​​of flash memory cells in a reference array according to the adjustable weights of the flash memory cells.

[0108] The reference array of the flash memory chip is used to calibrate the working array in the flash memory chip, there is at least one reference array, and both the working array and the reference array are composed of a plurality of flash memory cells with an adjustable weight level of N, that is, the flash memory cells have N levels of adjustable weights; the number of flash memory cells in the reference array is greater than or equal to the adjustable weight level N. In addition, the flash memory chip also includes: a reading circuit for reading the weight values ​​of the flash memory cells in the working array and the reference array, a programming circuit for controlling the weight values ​​of the flash memory cells in the working array and the reference array, a row and column decoder for selecting the flash memory cells in the working array and the reference array, and a controller for the reading circuit, the programming circuit, and the row and column decoder.

[0109] Specifically, the initial weight value is set by the cooperation of the row and column decoder and the programming circuit. The row and column decoder selects the flash memory cell to be programmed, and the programming circuit programs the flash memory cell selected by the row and column decoder. The initial weight value of each flash memory cell in the N flash memory cells of the reference array is set to be equal to the first-level adjustable weight, so that the initial weight values ​​of the N flash memory cells are equal to the N-level adjustable weights in a one-to-one correspondence, and the remaining flash memory cells are used as redundant cells for standby.

[0110] Specifically, for an M×L working array, the adjustable weight value of each flash memory cell can have N values, denoted as A1-A N , where N is the weight level, A1 is the adjustable weight value corresponding to the first level weight, and A N is the adjustable weight value corresponding to the Nth level weight.

[0111] N flash memory cells are selected from the reference array of the flash memory chip for calibrating the working array, and the remaining flash memory cells are used as redundant cells. The controller controls the row and column decoders and the programming circuit to cooperate and set the weight values ​​of the N flash memory cells to A1-A N .

[0112] Step S200: calibrating the real-time weight values ​​of the flash memory cells in the working array according to the real-time weight values ​​and initial weight values ​​of the flash memory cells in the reference array.

[0113] Among them, after a certain period of time, the flash memory cells have leakage, and the working array and the reference array have the same leakage trend, that is, the weight offset is the same. At this time, the reference array is used to calibrate the weight of the working array to compensate for the leakage. The controller controls the reading circuit, the row and column decoder, and the programming circuit to coordinate and calibrate the real-time weight value of the flash memory cells in the working array according to the real-time weight value and the initial weight value of the flash memory cells in the reference array.

[0114] Specifically, step S200 includes the following steps (such as Fig.11 shown):

[0115] Step S201: obtaining a calibration target weight value of a flash memory cell in a reference array according to its real-time weight value.

[0116] Specifically: the real-time weight value of the flash memory cell in the reference array is read by a reading circuit; when the number of reference arrays is 1, the real-time weight value of the read flash memory cell is used as the calibration target weight value of the flash memory cell; when the number of the reference arrays is greater than 1, the average real-time weight value of the flash memory cells with the same initial weight value in all reference arrays is calculated as the calibration target weight value of the flash memory cell.

[0117] Step S202: read the real-time weight values ​​of the flash memory cells in the working array in sequence.

[0118] Step S203: calibrating the real-time weight values ​​of the flash memory cells in the working array in sequence according to the initial weight values ​​of the N flash memory cells in the reference array and the calibration target weight values.

[0119] Specifically, a flash memory cell whose calibration target weight value is equal to or close to the real-time weight value of a flash memory cell in the working array is searched in the reference array; then, the real-time weight value of the flash memory cell in the working array is set to the initial weight value of the flash memory cell in the reference array.

[0120] For example: The initial weight value of the Kth flash memory cell in the reference array is set to A K , after a certain period of time, its weight value should still be A K , but due to leakage, its weight value becomes A V , then the leakage of the Kth flash memory cell is (A K -A V ), at this time, the weight value in the working array is A V Flash memory cells also exist (A K -A V ) leakage, then the weight value in the working array is A V The weight value of the flash memory cell is set to A K , in order to compensate for the leakage.

[0121] It is worth noting that if the real-time weight value of a flash memory unit in the working array is A i , and there is no calibration target weight value equal to A in the reference array i The flash memory cell is then searched for the calibration target weight value and A in the reference array. i Similar flash memory cells, such as A V-1 i v At this time, the calibration target weight value in the reference array is A V-1 With the calibration target weight value A​​v The real-time weight value in the flash memory cell calibration work array is A i Flash memory unit, specifically: if A i Closer to A v , then the real-time weight value in the working array is A i The real-time weight value of the flash memory cell is adjusted to the calibration target weight value A in the reference array. v The initial weight value of the flash memory cell, if A i Closer to A V-1 , then the real-time weight value in the working array is A i The real-time weight value of the flash memory cell is adjusted to the calibration target weight value A in the reference array. v-1 The initial weight value of the flash memory cell, if A i Exactly in A V-1 With A v In the middle, the calibration target weight value in the reference array is A V-1 Or the calibration target weight value is A v One of the flash memory cells in the calibration working array has a real-time weight value of A i flash memory cell.

[0122] Of course, in the same flash memory chip, when the real-time weight value A of the flash memory cell in the working array i When the calibration target weight values ​​of two flash memory cells in the reference array are between each other, if the flash memory cell in the calibration working array with the larger calibration target weight value is used, all the flash memory cells in the flash memory chip adopt the rule, and vice versa.

[0123] In summary, the flash memory chip calibration method provided by the embodiment of the present invention sets at least one reference array for calibrating the working array, and the number of flash memory cells in the reference array is greater than or equal to the adjustable weight level N of the flash memory cell; the initial weight values ​​of the N flash memory cells in the reference array correspond one-to-one to the N-level adjustable weights of the flash memory cell, and the redundant flash memory cells are used as redundant cells for backup; during calibration, the real-time weight values ​​of the flash memory cells in the working array are calibrated according to the real-time weight values ​​and initial weight values ​​of the flash memory cells in the reference array, so as to realize offline update calibration of the weights of the flash memory cells in the working array, compensate for the influence of leakage on the weights of the flash memory cells, and improve the accuracy of stored data.

[0124] Based on the same inventive concept, the embodiments of the present application also provide a flash memory chip calibration device, which can be used to implement the method described in the above embodiments, such as the following embodiments. Since the principle of solving the problem by the flash memory chip calibration device is similar to the above method, the implementation of the flash memory chip calibration device can refer to the implementation of the above method, and the repeated parts will not be repeated. As used below, the term "unit" or "module" can be a combination of software and / or hardware that implements the predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0125] Fig.12 FIG. 2 shows a structural diagram of a flash memory chip calibration device according to an embodiment of the present invention. Fig.12 As shown, the flash memory chip calibration device 1000 is used for the above-mentioned flash memory chip, and includes: an initialization module 1100 and a first calibration module 1200 .

[0126] The initialization module 1100 sets the initial weight values ​​of the flash memory cells in the reference array according to the adjustable weights of the flash memory cells.

[0127] In an optional embodiment, the initialization module 1100 may include: an initial weight setting unit, which sets the initial weight value of each of the N flash memory cells in the reference array to be equal to the first-level adjustable weight, so that the initial weight values ​​of the N flash memory cells are equal to the N-level adjustable weights in a one-to-one correspondence.

[0128] The first calibration module 1200 calibrates the real-time weight values ​​of the flash memory cells in the working array according to the real-time weight values ​​and initial weight values ​​of the flash memory cells in the reference array.

[0129] In an optional embodiment, the first calibration module may include: an acquisition unit, a reading unit, and a calibration unit. The acquisition unit is used to acquire the calibration target weight value of the flash memory cell in the reference array according to the real-time weight value of the flash memory cell in the reference array, specifically: first, read the real-time weight value of the flash memory cell in the reference array; when the number of the reference array is 1, use the read real-time weight value of the flash memory cell as the calibration target weight value of the flash memory cell; when the number of the reference array is greater than 1, calculate the average of the real-time weight values ​​of the flash memory cells with the same initial weight value in all reference arrays as the calibration target weight value of the flash memory cell.

[0130] The reading unit is used to sequentially read the real-time weight values ​​of the flash memory cells in the working array.

[0131] The calibration unit is used to calibrate the real-time weight values ​​of the flash memory cells in the working array in sequence according to the initial weight values ​​of the N flash memory cells in the reference array and the calibration target weight value. Specifically: first, a flash memory cell whose calibration target weight value is equal to or close to the real-time weight value of a flash memory cell in the working array is searched in the reference array; then, the real-time weight value of the flash memory cell in the working array is set to the initial weight value of the flash memory cell in the reference array that has been found.

[0132] The embodiment of the present invention also provides a flash memory chip calibration method, such as Fig.13 As shown, for the above-mentioned flash memory chip, the flash memory chip calibration method includes:

[0133] Step S1000: reading the real-time weight values ​​of the flash memory cells in the working array.

[0134] The working array of the flash memory chip is composed of a plurality of flash memory cells with N adjustable weight levels, that is, the flash memory cells have N levels of adjustable weights. In addition, the flash memory chip further includes: a reading circuit for reading the weight values ​​of the flash memory cells in the working array, a programming circuit for controlling the weight values ​​of the flash memory cells in the working array, a row and column decoder for selecting the flash memory cells in the working array, and a controller for controlling the reading circuit, the programming circuit, and the row and column decoder.

[0135] Specifically, the controller controls the read circuit and the row and column decoders to cooperate to read the real-time weight value of each flash memory cell in the working array.

[0136] Step S2000: calibrating the real-time weight values ​​of the flash memory cells in the working array according to the adjustable weight level table.

[0137] Specifically, for a certain flash memory cell, an adjustable weight value that is equal to or close to the real-time weight value of the flash memory cell is searched in the adjustable weight level table. Then, the controller controls the programming circuit to cooperate with the row and column decoder to set the real-time weight value of the flash memory cell to the searched adjustable weight value.

[0138] It is worth noting that when the real-time weight value of the flash memory cell is between two adjacent adjustable weight values, the flash memory cell is calibrated using the adjustable weight value that is closer to the real-time weight value of the flash memory cell; when the real-time weight value of the flash memory cell is exactly between two adjacent adjustable weight values, the flash memory cell can be calibrated using the adjustable weight value that is greater than the real-time weight value of the two adjustable weight values, or the flash memory cell can be calibrated using the adjustable weight value that is less than the real-time weight value of the two adjustable weight values.

[0139] Of course, in the same flash memory chip, when the real-time weight value of the flash memory unit is exactly between two adjacent adjustable weight values, if the flash memory unit is calibrated using an adjustable weight value that is greater than the real-time weight value among the two adjustable weight values, then this method is used for all flash memory units of the flash memory chip, and vice versa.

[0140] To sum up, the flash memory chip calibration method provided in the embodiment of the present invention directly uses the adjustable weight level of the flash memory cell to calibrate the working array in the flash memory chip, realizes offline update calibration of the flash memory cell weights in the working array, compensates for the influence of leakage on the flash memory cell weights, and can improve the accuracy of stored data.

[0141] Based on the same inventive concept, the embodiments of the present application also provide a flash memory chip calibration device, which can be used to implement the method described in the above embodiments, such as the following embodiments. Since the principle of solving the problem by the flash memory chip calibration device is similar to the above method, the implementation of the flash memory chip calibration device can refer to the implementation of the above method, and the repeated parts will not be repeated. As used below, the term "unit" or "module" can be a combination of software and / or hardware that implements the predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0142] Fig.14 FIG. 4 shows a structural diagram of a flash memory chip calibration device according to another embodiment of the present invention. Fig.14 As shown, the flash memory chip calibration device 2000 includes: a reading module 2100 and a second calibration module 2200 .

[0143] The reading module 2100 reads the real-time weight values ​​of the flash memory cells in the working array.

[0144] The second calibration module 2200 calibrates the real-time weight values ​​of the flash memory cells in the working array according to the adjustable weight level table.

[0145] Specifically, the second calibration module 2200 includes: a search unit and an adjustment unit. The search unit is used to search for an adjustable weight value that is equal to or close to the real-time weight value of the flash memory unit in the adjustable weight level table; the adjustment unit is used to set the real-time weight value of the flash memory unit to the adjustable weight value.

[0146] The devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer device, and specifically, the computer device may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0147] In a typical example, the computer device specifically includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the method for calibrating the flash memory chip as described above is implemented.

[0148] Reference below Fig.15 , which shows a schematic diagram of the structure of a computer device suitable for implementing an embodiment of the present application.

[0149] like Fig.15 As shown, the computer device includes a central processing unit (CPU) 601, which can perform various appropriate operations and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 to a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0150] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 606 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed as needed as the storage section 608.

[0151] In particular, according to an embodiment of the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present invention also provides a computer readable medium, a computer program is tangibly contained on the computer readable medium, and the computer program includes a program code for executing the method shown in the flowchart, and the computer program implements the steps of the flash memory chip calibration method described above when executed by the processor. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611.

[0152] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0153] The controller in the present application can take the form of a computer-readable medium, logic gate, switch, application-specific integrated circuit (ASIC), programmable logic controller and embedded microcontroller, such as a microprocessor or processor and a computer-readable program code (such as software or firmware) that can be executed by the (micro) processor. Examples of controllers include but are not limited to the following microcontrollers: ARC625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320. It is also known to those skilled in the art that in addition to realizing the controller in a pure computer-readable program code manner, the controller can be completely realized in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers and embedded microcontrollers to achieve the same function. Therefore, this controller can be considered as a hardware component, and the devices included therein for realizing various functions can also be regarded as structures within the hardware component.

[0154] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0155] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0156] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0157] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0158] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0159] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0160] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0161] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0162] Although the present application provides method operation steps as described in the embodiments or flowcharts, more or fewer operation steps may be included based on conventional or non-creative labor. The order of steps listed in the embodiments is only one way of executing the order of many steps and does not represent the only execution order. When the actual device or client product is executed, it can be executed in the order of the method shown in the embodiments or the drawings or in parallel (for example, in a parallel processor or multi-threaded processing environment).

[0163] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A flash memory chip, characterized in that: It comprises: a working array and at least one reference array for calibrating the working array; The working array and the reference array are both composed of a plurality of flash memory cells with N adjustable weight levels, and the flash memory cells have N levels of adjustable weights; The number of flash memory cells in the reference array is greater than or equal to the adjustable weight level N; The initial weight values ​​of the N flash memory cells of the reference array correspond one-to-one to the N levels of adjustable weights; During calibration, the initial weight values ​​of the flash memory cells in the reference array are set according to the adjustable weights of the flash memory cells; the real-time weight values ​​of the flash memory cells in the working array are calibrated based on the real-time weight values ​​and initial weight values ​​of the flash memory cells in the reference array.

2. The flash memory chip according to claim 1, characterized in that: Also includes: Reading circuit, The reading circuit is connected to the working array and the reference array, and is used to read the weight values ​​of the flash memory cells in the working array and the reference array.

3. The flash memory chip according to claim 2, characterized in that: Also includes: Programming circuit, The programming circuit is connected to the working array and the reference array, and is used to control the weight values ​​of the flash memory cells in the working array and the reference array.

4. The flash memory chip according to claim 3, characterized in that: Also includes: Row-column decoder, The row-column decoder is connected to the working array and the reference array and is used to select the flash memory cells in the working array and the reference array.

5. The flash memory chip according to claim 4, characterized in that: Also includes: Controller, The controller is connected to the reading circuit, the programming circuit and the row-column decoder, and is used for controlling the operation of the reading circuit, the programming circuit and the row-column decoder.

6. A flash memory chip calibration method, characterized in that: For the flash memory chip according to any one of claims 1 to 5, the flash memory chip calibration method comprises: Setting initial weight values ​​of flash memory cells in a reference array according to adjustable weights of the flash memory cells; The real-time weight values ​​of the flash memory cells in the working array are calibrated according to the real-time weight values ​​and the initial weight values ​​of the flash memory cells in the reference array.

7. The flash memory chip calibration method according to claim 6, characterized in that: The step of setting the initial weight value of the flash memory cell in the reference array according to the adjustable weight of the flash memory cell comprises: The initial weight value of each of the N flash memory cells of the reference array is set to be equal to the first-level adjustable weight, so that the initial weight values ​​of the N flash memory cells are equal to the N-level adjustable weights in a one-to-one correspondence.

8. The flash memory chip calibration method according to claim 7, characterized in that: The method of calibrating the real-time weight values ​​of the flash memory cells in the working array according to the real-time weight values ​​and the initial weight values ​​of the flash memory cells in the reference array comprises: Obtaining a calibration target weight value of a flash memory cell in the reference array according to the real-time weight value thereof; Read the real-time weight values ​​of the flash memory cells in the working array in sequence; The real-time weight values ​​of the flash memory cells in the working array are calibrated in sequence according to the initial weight values ​​of the N flash memory cells in the reference array and the calibration target weight values.

9. The flash memory chip calibration method according to claim 8, characterized in that: The step of sequentially calibrating the real-time weight values ​​of the flash memory cells in the working array according to the initial weight values ​​of the N flash memory cells in the reference array and the calibration target weight values ​​comprises: Searching in the reference array for a flash memory cell having a calibration target weight value that is equal to or close to a real-time weight value of a flash memory cell in the working array; The real-time weight value of the flash memory cell in the working array is set to the initial weight value of the flash memory cell in the found reference array.

10. The flash memory chip calibration method according to claim 8, characterized in that: The step of obtaining a calibration target weight value of a flash memory cell in the reference array according to the real-time weight value of the flash memory cell includes: Reading the real-time weight values ​​of the flash memory cells in the reference array; When the number of the reference array is 1, the real-time weight value of the read flash memory cell is used as the calibration target weight value of the flash memory cell; When the number of the reference arrays is greater than 1, the average real-time weight value of the flash memory cells with the same initial weight value in all reference arrays is calculated as the calibration target weight value of the flash memory cell.

11. A flash memory chip calibration device, characterized in that: For the flash memory chip according to any one of claims 1 to 5, the flash memory chip calibration device comprises: An initialization module, setting initial weight values ​​of flash memory cells in a reference array according to adjustable weights of the flash memory cells; The first calibration module calibrates the real-time weight values ​​of the flash memory cells in the working array according to the real-time weight values ​​and the initial weight values ​​of the flash memory cells in the reference array.

12. The flash memory chip calibration device according to claim 11, characterized in that: The initialization module includes: The initial weight setting unit sets the initial weight value of each of the N flash memory cells of the reference array to be equal to the first-level adjustable weight, so that the initial weight values ​​of the N flash memory cells are equal to the N-level adjustable weights in a one-to-one correspondence.

13. The flash memory chip calibration device according to claim 11, characterized in that: The first calibration module comprises: An acquisition unit, which acquires a calibration target weight value of the flash memory cell in the reference array according to the real-time weight value of the flash memory cell; A reading unit, sequentially reading the real-time weight values ​​of the flash memory cells in the working array; The calibration unit sequentially calibrates the real-time weight values ​​of the flash memory cells in the working array according to the initial weight values ​​of the N flash memory cells in the reference array and the calibration target weight values.