Method for controlling flash memory controller, method for controlling flash memory module, and memory device
By using a compressed mode indicator and two read voltages to generate compressed soft information in the flash memory controller, the problem of high bit error rate in multi-level cell flash memory is solved, the data transmission efficiency is improved and the error rate is reduced. Impact on memory interface performance.
Patent Information
- Application Number
- CN202410350927.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-03-30
- Filing Date
- 2024-03-26
- Publication Date
- 2024-10-01
AI Technical Summary
In multi-level cell flash memory, the high bit error rate causes the low-density parity check code decoding method to require additional data transmission, affecting memory performance.
By sending a second read command of the compression mode indicator in the flash memory controller, two read voltages are used to generate compressed soft information, reduce the amount of data transmission, and perform soft decoding to improve decoding efficiency.
The data size transmitted by the flash memory module is reduced, and the impact of the bandwidth occupied by soft information transmission on the performance of the memory interface is avoided.
Smart Images

Figure CN118732938A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to access control of a flash memory, and more particularly to a method for access management of a flash memory module, a related flash memory controller and a related electronic device. Background Art
[0002] The development of memory technology has enabled various portable and non-portable memory devices (such as memory cards that comply with SD / MMC, CF, MS and XD specifications, solid state drives (SSD) or embedded memory devices that comply with UFS or EMMC specifications) to be widely used. Improving memory access control in these memory devices remains an issue to be solved in the art.
[0003] NAND flash memory can include single level cell (SLC) flash memory and multiple level cell (MLC) flash memory. In the single level cell flash memory, each transistor used as a memory cell can have any one of two charge values corresponding to the logic value 0 and the logic value 1 respectively. In contrast, the storage capacity of each transistor used as a memory cell in the multi-level cell flash memory can be fully utilized. Compared with the driving voltage of the transistor in the single level cell flash memory, the transistor in the multi-level cell flash memory can be driven by a higher voltage, and different voltage levels can be used to record at least two bits of information (such as 00, 01, 11 or 10). Theoretically, the recording density of the multi-level cell flash memory can reach at least twice that of the single level cell flash memory, so it is the first choice of NAND flash memory manufacturers.
[0004] The low cost and large capacity of multi-level cell flash memory mean that it is more applicable to memory devices than single-level cell flash memory. However, multi-level cell flash memory has instability issues. In order to ensure that access control to the flash memory in the memory device meets relevant specifications, the controller of the flash memory may have certain management mechanisms to properly manage data access.
[0005] The existing memory device with the above management mechanism still has some disadvantages. For example, when triple level cell (TLC) flash memory and quad level cell (QLC) flash memory are applied to the memory device, some problems may occur, such as an increase in bit error rate. In order to successfully decode data with a higher bit error rate, a low-density parity-check code (LDPC) decoding method may be required. However, the low-density parity-check code decoding method requires a sign bit and at least one soft bit to decode the data, which greatly increases the data transmission volume of the flash memory interface and thus affects the performance of the flash memory. Summary of the invention
[0006] Therefore, one of the objectives of the present invention is to provide a control method for a memory device, which can effectively obtain sufficient information to perform a decoding operation with a lower data transmission amount, so as to solve the above-mentioned problem.
[0007] According to an embodiment of the present invention, a control method of a flash memory controller is provided, wherein the flash memory controller is used to access a flash memory module, the flash memory module includes at least one flash memory chip, each of the at least one flash memory chip includes a plurality of blocks, and each of the plurality of blocks includes a plurality of pages. The control method includes: transmitting a first read command to the flash memory module, wherein the first read command requires data of a page of the flash memory module; receiving first read information from the flash memory module in response to the first read command; decoding the first read information; transmitting a second read command to the flash memory module in response to a failure in decoding the first read information, wherein the second read command requires soft information of a page of the flash memory module, and the second read command includes a compression mode indicator; receiving second read information from the flash memory module in response to the second read command, wherein the second read information includes compressed soft information; decompressing the compressed soft information to generate soft information; and performing a soft decoding method to decode the first read information by the soft information.
[0008] According to an embodiment of the present invention, a control method for a flash memory module is provided, wherein the flash memory module includes at least one flash memory chip, each of the at least one flash memory chip includes a plurality of blocks, and each of the plurality of blocks includes a plurality of pages. The control method includes: receiving a read command from a flash memory controller, wherein the read command requires data of a page of the flash memory module; reading a plurality of memory cells to generate soft information including a plurality of soft bits, wherein each of the plurality of soft bits is a strong bit or a weak bit; compressing the soft information to generate compressed soft information, wherein the compressed soft information includes a plurality of weak bit positions of the plurality of soft bits; and transmitting a second readout information including the compressed soft bits to the flash memory controller.
[0009] According to one embodiment of the present invention, a memory device including a flash memory module and a flash memory controller is provided. The flash memory module includes at least one flash memory chip, and each of the at least one flash memory chip includes multiple blocks. The flash memory controller is used to access the flash memory module. In the operation of the memory device, the flash memory controller transmits a read command to the flash memory module, and the read command requires data of a page of the flash memory module; after receiving the read command from the flash memory controller, the flash memory module reads multiple memory cells to generate soft information including multiple soft bits, each of the multiple soft bits is a strong bit or a weak bit; the flash memory module compresses the soft information to generate compressed soft information, and the compressed soft information includes multiple weak bit positions of the multiple soft bits; and the flash memory module transmits second read-out information including the compressed soft information to the flash memory controller.
[0010] One of the advantages of the present invention is that in the control method of the memory device of the present invention, the second read information transmitted by the flash memory module can have a smaller data size by compressing the soft information, so the performance of the memory interface will not be affected by the bandwidth occupied by the soft information transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 is a schematic diagram of an electronic device according to an embodiment of the present invention.
[0012] Figure 2 FIG. 4 is a schematic diagram of a three-dimensional NAND flash memory according to an embodiment of the present invention.
[0013] Figure 3 FIG. 4 is a schematic diagram of a flash memory chip according to an embodiment of the present invention.
[0014] Figure 4FIG. 4 is a flow chart of a control method of a memory device according to an embodiment of the present invention.
[0015] Figure 5 FIG. 4 is a schematic diagram of a memory cell and a voltage distribution of a read voltage according to an embodiment of the present invention.
[0016] Figure 6 FIG. 4 is a schematic diagram of obtaining soft bits by using two read voltages according to an embodiment of the present invention.
[0017] Figure 7 FIG. 4 is a schematic diagram of hard information and soft information according to an embodiment of the present invention.
[0018] Figure 8 FIG. 4 is a schematic diagram of compressing soft information according to an embodiment of the present invention.
[0019] FIG. 9 is a flow chart of a method for controlling a memory device according to another embodiment of the present invention.
[0020]
Explanation of symbols
[0021] 10: Electronic devices
[0022] 50: Host device
[0023] 52: Processor
[0024] 54: Power supply circuit
[0025] 100: memory device
[0026] 110: Flash memory controller
[0027] 112: Microprocessor
[0028] 112C: Program code
[0029] 112M: Read-only memory
[0030] 114: Control logic circuit
[0031] 116: Random Access Memory
[0032] 118: Transmission interface circuit
[0033] 120: Flash memory module
[0034] 122-1~122-N,300: Flash memory chip
[0035] 132: Encoder
[0036] 134:Decoder
[0037] 136: Randomizer
[0038] 138:De-Randomizer
[0039] PS2D(1)~PS2D(Ny): Circuit module
[0040] S(1,1)~S(Nx,Ny): Subcircuit module
[0041] MBLS(1,1)~MBLS(Nx,Ny): upper selection circuit
[0042] BLS(1)~BLS(Ny): Upper selection line
[0043] BL(1)~BL(Nx): bit line
[0044] WL(1,1)~WL(Ny,Nz): word line
[0045] M(1,1,1)~M(Nx,Ny,Nz): memory unit
[0046] MSLS(1,1)~MSLS(Nx,Ny): bottom selection circuit
[0047] SLS(1)~SLS(Ny): bottom selection line
[0048] SL(1)~SL(Ny): Source line
[0049] 310: Peripheral circuit
[0050] 320: Control circuit
[0051] 330: Sense amplifier
[0052] 340:Memory array
[0053] 400~424,900~934: Steps
[0054] S0,S1: Status
[0055] Vr, Vr+Δ, Vr-Δ: read voltage
[0056] 800: Compressed soft information
[0057] 810: Header
[0058] 820_1~820_N: Field DETAILED DESCRIPTION
[0059] Figure 11 is a schematic diagram of an electronic device 10 according to an embodiment of the present invention, wherein the electronic device 10 may include a host device 50 and a memory device 100. The host device 50 may include at least one processor (e.g., one or more processors, which may be collectively referred to as a processor 52), and may further include a power supply circuit 54 coupled to the processor 52. The processor 52 may be used to control the operation of the host device 50, and the power supply circuit 54 may be used to provide power to the processor 52 and the memory device 100, and output one or more driving voltages to the memory device 100. The memory device 100 may be used to provide storage space for the host device 50, and obtain the one or more driving voltages from the host device 50 as a power supply for the memory device 100. Examples of the host device 50 may include, but are not limited to: a multi-function mobile phone, a wearable device, a tablet computer, and a personal computer (e.g., a desktop computer and a notebook computer). Examples of the memory device 100 may include, but are not limited to, a solid state drive (SSD) and various types of embedded memory devices (e.g., embedded memory devices that comply with the Peripheral Component Interconnect Express (PCIe) specification). According to this embodiment, the memory device 100 may include a flash memory controller 110 and may further include a flash memory module 120, wherein the flash memory controller 110 may be used to control the operation of the memory device 100 and access the flash memory module 120, and the flash memory module 120 is used to store information. The flash memory module 120 may include at least one flash memory chip, such as a plurality of flash memory chips 122-1, 122-2, ..., 122-N, wherein "N" may represent a positive integer greater than 1.
[0060] like Figure 1 As shown, the flash memory controller 110 may include a processing circuit (eg, a microprocessor 112), a storage unit (eg, a read-only memory (ROM) 112M; for simplicity ... Figure 1 116 (denoted as "ROM" in FIG. 114 ), control logic circuit 114, random access memory (RAM) 116 (denoted as "ROM" in FIG. 116 for simplicity) Figure 1The random access memory 116 may be implemented by a static random access memory (SRAM), but the present invention is not limited thereto. The random access memory 116 may be used to provide internal storage space to the flash memory controller 110. For example, the random access memory 116 may be used as a buffer memory to buffer data. In addition, the read-only memory 112M of the present embodiment may be used to store program code 112C, and the microprocessor 112 may be used to execute the program code 112C to control the access of the flash memory module 120. It should be noted that, in some examples, the program code 112C may be stored in the random access memory 116 or any type of memory. In addition, the control logic circuit 114 can be used to control the flash memory module 120, and can include an encoder 132, a decoder 134, a randomizer 136, a de-randomizer 138, and other circuits. The transmission interface circuit 118 can comply with a specific communication specification (such as the Serial Advanced Technology Attachment (SATA) specification, the Peripheral Component Interconnect (PCI) specification, the Peripheral Component Interconnect Express specification, and the Universal Flash Storage (UFS) specification), and can communicate according to the specific communication specification. For example, the memory device 100 can communicate with the host device 50, wherein the host device 50 can include a corresponding transmission interface circuit that complies with the specific communication specification for the host device 50 to communicate with the memory device 100.
[0061] In the present embodiment, the host device 50 may transmit a host command and a corresponding logical address to the flash memory controller 110 to access the memory device 100. The flash memory controller 110 receives the host command and the logical address, converts the host command into a memory operation command (which may be simply referred to as an operation command), and further controls the flash memory module 120 through the operation command to perform operations such as reading, writing, and programming on memory cells (e.g., data pages) in the flash memory module 120 having certain physical addresses, wherein the physical addresses correspond to the logical addresses. When the flash memory controller 110 performs an erase operation on any flash memory chip 122-n among the multiple flash memory chips 122-1, 122-2, ... and 122-N (where "n" can represent any integer in the interval [1, N]), at least one block among the multiple blocks of the flash memory chip 122-n can be erased, wherein each of the multiple blocks can include multiple pages (e.g., multiple data pages), and an access operation (e.g., reading or writing) can be performed on one or more leaf surfaces.
[0062] Figure 2 FIG. 1 is a schematic diagram of a three-dimensional (3D) NAND flash memory according to an embodiment of the present invention. For example, any memory element in at least one of the flash memory chips 122-1, 122-2, ..., and 122-N can be based on Figure 2 The three-dimensional NAND flash memory is shown to be implemented, but the present invention is not limited thereto.
[0063] According to the present embodiment, the 3D NAND flash memory may include a plurality of memory cells arranged in a 3D architecture, such as (Nx*Ny*Nz) memory cells {{M(1,1,1),…,M(Nx,1,1)}, {M(1,2,1),…,M(Nx,2,1)},…,{M(1,Ny,1),…,M(Nx,Ny,1)}}, {{M(1,1,2),…,M(Nx,1,2)}, {M(1,Ny,2),…,M(Nx,2,1)}, {{M(1,1,Nz),…,M(Nx,1,Nz)},{M(1,2,Nz),…,M(Nx,2,Nz)},…,{M(1,Ny,Nz),…,M(Nx,Ny,Nz)}}, and may further include a plurality of selection circuits (selector) for selection control The Nz layer is provided with a plurality of upper selection circuits, such as (Nx*Ny) upper selection circuits {MBLS(1,1),…,MBLS(Nx,1)}, {MBLS(1,2),…,MBLS(Nx,2)}, … and {MBLS(1,Ny),…,MBLS(Nx,Ny)} arranged in an upper layer (upperlayer) above the Nz layer, and (Nx*Ny) lower selection circuits {MSLS(1,1),…,MSLS(Nx,1)}, {MSLS(1,2),…,MSLS(Nx,2)}, … and {MSLS(1,Ny),…,MSLS(Nx,Ny)} arranged in a lower layer (lowerlayer) below the Nz layer. In addition, the three-dimensional NAND flash memory may include a plurality of bit lines and a plurality of word lines for access control, such as Nx bit lines BL(1), ..., and BL(Nx) arranged in a top layer above the upper layer, and (Ny*Nz) word lines {WL(1,1), WL(2,1), ..., WL(Ny,1)}, {WL(1,2), WL(2,2), ..., WL(Ny,2)}, ..., and {WL(1,Nz), WL(2,Nz), ..., WL(Ny,Nz)} arranged in the Nz layer, respectively.In addition, the three-dimensional NAND flash memory may include a plurality of selection lines for selection control, such as Ny upper selection lines BLS(1), BLS(2), ... and BLS(Ny) arranged in the upper layer and Ny lower selection lines SLS(1), SLS(2), ... and SLS(Ny) arranged in the lower layer, and may further include a plurality of source lines for providing a plurality of reference levels, such as Ny source lines SL(1), SL(2), ... and SL(Ny) arranged in a bottom layer below the lower layer.
[0064] like Figure 2As shown, the three-dimensional NAND flash memory can be divided into Ny circuit modules PS2D(1), PS2D(2), ... and PS2D(Ny) distributed along the Y axis. For better understanding, the circuit modules PS2D(1), PS2D(2), ... and PS2D(Ny) may have certain electrical characteristics similar to a planar NAND flash memory (whose memory cells are arranged in a single layer), and therefore can be respectively regarded as multiple pseudo-2D circuit modules, but the present invention is not limited to this. In addition, any circuit module PS2D(ny) among the circuit modules PS2D(1), PS2D(2), ... and PS2D(Ny) may include Nx secondary circuit modules S(1,ny), ... and S(Nx,ny), where "ny" can represent any integer in the interval [1,Ny]. For example, circuit module PS2D(1) may include Nx secondary circuit modules S(1,1), ... and S(Nx,1), circuit module PS2D(2) may include Nx secondary circuit modules S(1,2), ... and S(Nx,2), ... and circuit module PS2D(Ny) may include Nx secondary circuit modules S(1,Ny), ... and S(Nx,Ny). In the circuit module PS2D(ny), any one of the secondary circuit modules S(1,ny), ... and S(Nx,ny) may include Nz memory cells M(nx,ny,1), M(nx,ny,2), ... and M(nx,ny,Nz), and may include a set of selection circuits corresponding to the memory cells M(nx,ny,1), M(nx,ny,2), ... and M(nx,ny,Nz), such as an upper selection circuit MBLS(nx,ny) and a lower selection circuit MSLS(nx,ny), where "nx" may represent any integer in the interval [1,Nx]. The upper selection circuit MBLS(nx,ny), the lower selection circuit MSLS(nx,ny) and the memory cells M(nx,ny,1), M(nx,ny,2), ... and M(nx,ny,Nz) can be implemented by transistors. For example, the upper selection circuit and the lower selection circuit MSLS(nx,ny) can be implemented by ordinary transistors without any floating gates, and any memory cell M(nx,ny,nz) among the memory cells M(nx,ny,1), M(nx,ny,2), ... and M(nx,ny,Nz) can be implemented by a floating gate transistor, where "nz" can represent any integer in the interval [1,Nz], but the present invention is not limited to this.In addition, the upper selection circuits MBLS(1,ny), ... and MBLS(Nx,ny) in the circuit module PS2D(ny) can be selected according to the selection signal on the corresponding selection line BLS(ny), and the lower selection circuits MSLS(1,ny), ... and MSLS(Nx,ny) in the circuit module PS2D(ny) can be selected according to the selection signal on the corresponding selection line SLS(ny).
[0065] Figure 3 FIG. 1 is a schematic diagram of a flash memory chip 300 according to an embodiment of the present invention, wherein the flash memory chip 300 may be Figure 1 Any one of the flash memory chips 122-1 to 122-N shown. Figure 3 As shown, the flash memory chip 300 may include a peripheral circuit 310, a control circuit 320, a sense amplifier 330, and a memory array 340, wherein the memory array 340 may include Figure 2 As shown in the memory cell, the control circuit 320 may be used to control the sense amplifier 330 to read data from the memory array 340 , and the peripheral circuit 340 may include pads and interface circuits connected to the flash memory controller 110 .
[0066] Figure 4 FIG. 1 is a flow chart of a control method of the memory device 100 according to an embodiment of the present invention.
[0067] In step 400 , the process starts and the memory device 100 is started.
[0068] In step 402, the flash memory controller 100 sends a first read command to the flash memory module 120, wherein the first read command requests data in at least one page of a block in the flash memory module 120. In the following description, it is assumed that the first read command requests data in one page of a single-level cell block.
[0069] In step 404 , after receiving the first read command from the flash memory controller 110 , the control circuit 320 uses a read voltage to read all memory cells corresponding to the page to generate first read information. Figure 5 FIG. 2 is a schematic diagram of a memory cell and a voltage distribution of a read voltage Vr according to an embodiment of the present invention. Figure 5As shown, the memory cell is used to store one bit and has one of two states S0 and S1, wherein state S0 corresponds to a logic value "0" and state S1 corresponds to a logic value "1". The control circuit 320 controls the sense amplifier 330 to read each memory cell using a read voltage Vr to determine the logic value of the memory cell, wherein if the memory cell is turned on when the read voltage Vr is applied, the control circuit 320 determines that the memory cell corresponds to a logic value "1"; and if the memory cell is not turned on when the read voltage Vr is applied, the control circuit 320 determines that the memory cell corresponds to a logic value "0". The logic value of each memory cell determined by the control circuit 320 may be referred to as a sign bit, and a plurality of sign bits corresponding to all memory cells of the page may be referred to as hard information, wherein the first read information includes the hard information. It should be noted that due to the voltage distribution of states S0 and S1, the sign bit of the memory cell determined by the control circuit 320 may not be the actual logic value.
[0070] In step 406 , the flash memory module 120 transmits the first read information to the flash memory controller 110 .
[0071] In step 408, after receiving the first read information from the flash memory module 120, the derandomizer 138 performs a derandomization operation on the first read information, and the decoder 134 performs a hard decoding method (such as a BCH (Bose-Chaudhuri-Hocquenghem) decoding method or a low-density parity-check code (LDPC) decoding method) to decode the first read information (or the first read information after derandomization).
[0072] In step 410 , if the decoder 134 fails to decode the first read information by the hard decoding method, the process proceeds to step 414 ; and if the first read information is successfully decoded, the process proceeds to step 412 to end the process.
[0073] In step 414, the decoding operation performed by the decoder 134 on the first read information by the hard decoding method fails, which means that the number of error bits in the first read information exceeds the number of error bits that can be corrected by the decoder 134. Therefore, the flash memory controller 110 may send a second read command to the flash memory module 120, wherein the second read command requests the soft information of the same page as that requested by the first read command in step 402.
[0074] In this embodiment, the second read command at least includes a compression mode indicator, a voltage offset value Δ, and a physical address of the page.
[0075] In step 416 , after receiving the second read command from the flash memory controller 110 , the control circuit 320 uses two read voltages to read all memory cells corresponding to the page to generate soft information, wherein the two read voltages are (Vr+Δ) and (Vr−Δ). Figure 6 FIG. 1 is a schematic diagram of obtaining a soft bit using two read voltages (Vr+Δ) and (Vr-Δ) according to an embodiment of the present invention. Figure 6 As shown, the control circuit 320 controls the sense amplifier 330 to read each memory cell using the read voltage (Vr+Δ) and (Vr-Δ) to determine the soft bit of the memory cell. For example, if the memory cell is turned on when the read voltage (Vr+Δ) is applied, or the memory cell is not turned on when the read voltage (Vr-Δ) is applied, the control circuit 320 determines that the memory cell corresponds to a strong region, and the soft bit of the memory cell is a strong bit "1". If the memory cell is turned on when the read voltage (Vr-Δ) is applied, and the memory cell is not turned on when the read voltage (Vr+Δ) is applied, the control circuit 320 determines that the memory cell corresponds to a weak region, and the soft bit of the memory cell is a weak bit "0". The multiple soft bits corresponding to all memory cells of the page can be called soft information.
[0076] In this embodiment, most of the soft bits of the page should be strong bits "1". For example, assuming that the soft information includes 32768 soft bits, only hundreds of soft bits may be "0". Since most of the soft bits in the soft information are strong bits "1", the control circuit 320 can compress the soft information in step 418 to reduce its size, thereby reducing the burden of subsequent data transmission. For details, please refer to Figure 7 and Figure 8 . Figure 7 FIG. 4 is a schematic diagram of hard information and soft information according to an embodiment of the present invention. Figure 8 FIG. 8 is a schematic diagram of compressed soft information 800 according to an embodiment of the present invention. Figure 7 and Figure 8As shown, the control circuit 320 can record the weak bit positions of multiple soft bits of the soft information, wherein the weak bit position can be a sequence number of the soft bit with a value of "0", such as Figure 7 The sequence number #6 and sequence number #11 are shown. Next, the control circuit 320 may generate compressed soft information 800 including a header 810 and a plurality of fields 820_1-820_N, wherein the header 810 may at least include a compression mode indicator, the number of weak bits (i.e., the value "N") and the physical address of the page, and each of the fields 820_1-820_N may record a weak bit position. For example, the field 820_1 may record the sequence number #6, and the field 820_2 may record the sequence number #11.
[0077] In the above embodiment, if the soft information includes 600 weak bits, and each of the fields 820_1 to 820_N uses two bytes to record the weak bit position, the size of the compressed soft information is slightly larger than 1200 bytes. Therefore, compared with the uncompressed soft information having 32768 bits (i.e., 4096 bytes), the compressed soft information does have a smaller size.
[0078] In step 420 , the flash memory module 120 transmits the second read information to the flash memory controller 110 , wherein the second read information includes the compressed soft information.
[0079] In step 422, after receiving the second read information from the flash memory module 120, an internal circuit of the control logic circuit 114 may decompress the second read information to regenerate Figure 7 Soft information shown.
[0080] In step 424, the decoder 134 performs a soft decoding method to utilize the soft information to decode the hard information obtained in step 408. For example, the decoder 134 may utilize a weighted bit-flipping decoding algorithm of the low-density parity check code to decode the hard information using the soft information. Since the soft decoding method is well known to those skilled in the art, it will not be described in detail for the sake of brevity.
[0081] In view of the above-mentioned realization of soft information compression Figures 3 to 8 In the embodiment, the second read information transmitted by the flash memory module 120 has a smaller data size, so the performance of the memory interface is not affected by the bandwidth occupied by the soft information transmission.
[0082] FIG. 9 is a flow chart of a method for controlling a memory device according to another embodiment of the present invention.
[0083] In step 900 , the process starts and the memory device 100 is started.
[0084] In step 902, the flash memory controller 110 sends a first read command to the flash memory module 120, wherein the first read command requests data in at least one page of a block in the flash memory module 120. In the following description, it is assumed that the first read command requests data in one page of a single-level cell block.
[0085] In step 904, after receiving the first read command from the flash memory controller 110, the control circuit 320 uses a read voltage to read all memory cells corresponding to the page to generate first read information (eg, Figure 5 ). Similar to Figure 4 In step 404, the first read information includes hard information, wherein the hard information includes a plurality of sign bits of the page.
[0086] In step 906 , the flash memory module 120 transmits the first read information to the flash memory controller 110 .
[0087] In step 908 , after receiving the first read information from the flash memory module 120 , the derandomizer 138 performs a derandomization operation on the first read information, and the decoder 134 performs a hard decoding method to decode the first read information (or the derandomized first read information).
[0088] In step 910 , if the decoding operation of the first read information by the decoder 134 using the hard decoding method fails, the process proceeds to step 914 ; and if the first read information is successfully decoded, the process proceeds to step 912 to end the process.
[0089] In step 914, the decoder 134 estimates the number of error bits of the first read information. If the estimated number of error bits of the first read information is greater than a threshold value, the process proceeds to step 928; and if the estimated number of error bits of the first read information is not greater than the threshold value, the process proceeds to step 916.
[0090] In one embodiment, a plurality of syndromes and a plurality of syndrome weights are generated during the LDPC decoding operation, and the decoder 134 can use the distribution of the syndrome weights to estimate the number of error bits in the first readout information. It should be noted that the operation of estimating the number of error bits is well known to those skilled in the art and will not be described in detail for the sake of brevity.
[0091] In step 916, the flash memory controller 110 sends a second read command with a compression mode indicator to the flash memory module 120, wherein the second read command requests the soft information of the same page as the first read command in step 902. In addition, the second read command further includes a voltage offset value Δ and a physical address of the page.
[0092] In step 918, after receiving the second read command from the flash memory controller 110, the control circuit 320 uses two read voltages to read all memory cells corresponding to the page to generate soft information, wherein the two read voltages are Figure 6 (Vr+Δ) and (Vr-Δ) shown.
[0093] In step 920 , the control circuit 320 compresses the soft information to generate compressed soft information.
[0094] In step 922 , the flash memory module 120 transmits the second read information to the flash memory controller 110 , wherein the second read information includes the compressed soft information.
[0095] In step 924, after receiving the second read information from the flash memory module 120, an internal circuit of the control logic circuit 114 decompresses the second read information to regenerate Figure 7 Soft information shown.
[0096] In step 926, the decoder 134 performs a soft decoding method to utilize the soft information to decode the hard information obtained in step 908. For example, the decoder 134 may utilize a weighted bit-flipping decoding algorithm of the LDPC code to decode the hard information using the soft information.
[0097] In step 928, the flash memory controller 110 sends a second read command with a normal mode indicator or a non-compression mode indicator to the flash memory module 120, wherein the second read command requests the soft information of the same page as the first read command in step 902. In addition, the second read command further includes a voltage offset value Δ and a physical address of the page.
[0098] In step 930, after receiving the second read command from the flash memory controller 110, the control circuit 320 uses two read voltages to read all memory cells corresponding to the page to generate soft information, wherein the two read voltages are Figure 6 (Vr+Δ) and (Vr-Δ) shown.
[0099] In step 932, the flash memory module 120 transmits the second read information to the flash memory controller 110, wherein the second read information includes Figure 7 Soft information shown.
[0100] In step 934, the decoder 134 performs a soft decoding method to utilize the soft information to decode the hard information obtained in step 908. For example, the decoder 134 may utilize a weighted bit-flipping decoding algorithm of the LDPC code to decode the hard information using the soft information.
[0101] In the embodiment shown in FIG9 , in order to prevent the compressed soft information from having a size similar to the original soft information, when the number of error bits in the first readout information is greater than the threshold value, the control circuit 320 in the flash memory module 120 does not compress the soft information, and the second readout information including the original soft information is transmitted to the flash memory controller. That is, the control circuit 320 compresses the soft information to generate compressed soft information only when the number of error bits in the first readout information is less than or equal to the threshold value.
[0102] In summary, in the control method of the memory device of the present invention, the second read information transmitted by the flash memory module can have a smaller data size by compressing the soft information, so the performance of the memory interface will not be affected by the bandwidth occupied by the soft information transmission.
[0103] The above description is only a preferred embodiment of the present invention. All equivalent changes and modifications made according to the scope of the patent application of the present invention should fall within the scope of the present invention.
Claims
1. A control method of a flash memory controller, wherein the flash memory controller is used to access a flash memory module, the flash memory module includes at least one flash memory chip, each of the at least one flash memory chip includes a plurality of blocks, each of the plurality of blocks includes a plurality of pages, and the control method includes: Sending a first read command to the flash memory module, wherein the first read command requests data of a page of the flash memory module; receiving first read information from the flash memory module in response to the first read command; decoding the first readout information; In response to the first read information decoding failure, a second read command is sent to the flash memory module, wherein the second read command requests the soft information of the page of the flash memory module, and the second read command includes a compression mode indicator; receiving second read information from the flash memory module in response to the second read command, wherein the second read information includes compressed soft information; decompressing the compressed soft information to generate soft information; and A soft decoding method is performed to decode the first readout information by using the soft information.
2. The control method according to claim 1, characterized in that: In response to the first read information decoding failure, the step of transmitting the second read command to the flash memory module comprises: estimating the number of a plurality of error bits of the first read information; If the number of the plurality of error bits of the first read information is greater than a threshold value, sending the second read command with the compression mode indicator to the flash memory module; as well as If the number of the plurality of error bits of the first read information is not greater than the threshold value, the second read command with a non-compression mode indicator is sent to the flash memory module.
3. A control method for a flash memory module, wherein the flash memory module comprises at least one flash memory chip, each of the at least one flash memory chip comprises a plurality of blocks, each of the plurality of blocks comprises a plurality of pages, and the control method comprises: receiving a read command from a flash memory controller, wherein the read command requests data of a page of the flash memory module; Reading a plurality of memory cells to generate soft information including a plurality of soft bits, wherein each of the plurality of soft bits is a strong bit or a weak bit; compressing the soft information to generate compressed soft information, wherein the compressed soft information includes a plurality of weak bit positions of the plurality of soft bits; as well as The second read information including the compressed soft bit is transmitted to the flash memory controller.
4. The control method according to claim 3, characterized in that: The step of reading the plurality of memory cells to generate the soft information including the plurality of soft bits comprises: Using a first read voltage and a second read voltage to read the plurality of memory cells to generate the soft information including the plurality of soft bits, wherein the second read voltage is greater than the first read voltage; wherein for each of the plurality of memory cells, if the each memory cell is conductive when the second read voltage is applied, or the each memory cell is non-conductive when the first read voltage is applied, then the soft bit of the each memory cell is the strong bit; And if each memory cell is conductive when the first read voltage is applied, or each memory cell is non-conductive when the second read voltage is applied, then the soft bit of each memory cell is the weak bit.
5. The control method according to claim 3, characterized in that: The soft information further includes a header, and the header includes the number of the plurality of weak bit positions of the plurality of soft bits.
6. A memory device comprising: A flash memory module, wherein the flash memory module includes at least one flash memory chip, each of the at least one flash memory chip includes a plurality of blocks, and each of the plurality of blocks includes a plurality of pages; as well as a flash memory controller for accessing the flash memory module; wherein the flash memory controller transmits a read command to the flash memory module, the read command requiring data of a page of the flash memory module; After receiving the read command from the flash memory controller, the flash memory module reads a plurality of memory cells to generate soft information including a plurality of soft bits, each of the plurality of soft bits being a strong bit or a weak bit; the flash memory module compresses the soft information to generate compressed soft information, the compressed soft information including a plurality of weak bit positions of the plurality of soft bits; And the flash memory module transmits the second read information including the compressed soft information to the flash memory controller.
7. The memory device according to claim 6, wherein: The flash memory module uses a first read voltage and a second read voltage to read the plurality of memory cells to generate the soft information including the plurality of soft bits, wherein the second read voltage is greater than the first read voltage; For each memory cell of the plurality of memory cells, if the each memory cell is conductive when the second read voltage is applied or the each memory cell is non-conductive when the first read voltage is applied, the soft bit of the each memory cell is the strong bit; And if each memory cell is conductive when the first read voltage is applied, or each memory cell is non-conductive when the second read voltage is applied, then the soft bit of each memory cell is the weak bit.
8. The memory device according to claim 6, wherein: The soft information further includes a header, and the header includes the number of the plurality of weak bit positions of the plurality of soft bits.
