Memory system
The memory system addresses data reliability issues by completing write operations to a save area, ensuring data integrity during power outages, thereby enhancing reliability and reducing processing time.
Patent Information
- Application Number
- JP2023032128
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-02
- Publication Date
- 2024-09-12
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing memory systems face challenges in improving data reliability, particularly during power outages or emergencies, where data stored in non-volatile memory may be lost or corrupted due to incomplete write operations.
A memory system with a non-volatile memory and a memory controller that executes a save operation to store data in a save area, including a first memory cell for initial data storage and a second memory cell for subsequent data storage, ensuring data integrity by completing write operations even in the event of power loss.
The system enhances data reliability by ensuring that data is fully written to a save area, reducing the risk of data loss and corruption during power outages, and optimizing processing time through efficient write operations.
Smart Images

Figure 2024124152000001
Abstract
Description
[Technical field]
[0001] FIELD OF THE DISCLOSURE Embodiments of the present invention relate to a memory system. [Background technology]
[0002] 2. Description of the Related Art As a memory system, a solid state drive (SSD) equipped with a nonvolatile semiconductor memory such as a NAND flash memory is known. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] U.S. Patent No. 9,342,410 [Patent Document 2] U.S. Pat. No. 9,696,918 [Patent Document 3] U.S. Patent No. 9,946,496 Summary of the Invention [Problem to be solved by the invention]
[0004] An embodiment of the present invention provides a memory system capable of improving data reliability. [Means for solving the problem]
[0005] A memory system according to an embodiment includes a nonvolatile memory and a memory controller. The nonvolatile memory includes a first memory cell configured to store multiple bits of data including a first bit and a second bit in a nonvolatile manner, and a second memory cell configured to store at least one bit of data in a nonvolatile manner. The memory controller executes a save operation in response to receiving a command from a host, and in response to the first memory cell storing the first bit data as the first bit and the first memory cell not storing data as the second bit in the save operation, writes the first bit data to the second memory cell, and then transmits a completion response to the command to the host. [Brief description of the drawings]
[0006] [Figure 1] FIG. 1 is a block diagram showing an example of the overall configuration of an information processing system including a memory system according to the first embodiment. [Diagram 2] FIG. 2 is a block diagram showing a basic configuration of a memory chip included in the memory system according to the first embodiment. [Diagram 3] FIG. 3 is a circuit diagram showing an example of a circuit configuration of a memory cell array included in the memory system according to the first embodiment. [Figure 4] FIG. 4 is a diagram showing threshold voltage distributions and data allocation when the memory cell transistors included in the memory system according to the first embodiment are SLC. [Diagram 5] FIG. 5 is a diagram showing threshold voltage distributions and data allocations when the memory cell transistors included in the memory system according to the first embodiment are QLC. [Figure 6] FIG. 6 is a table showing an example of the configuration of a memory area of a memory cell array included in the memory system according to the first embodiment. [Figure 7] FIG. 7 is a diagram showing an example of the configuration of a write buffer included in the memory system according to the first embodiment. [Figure 8]FIG. 8 is a diagram illustrating an example of the configuration of a parity buffer included in the memory system according to the first embodiment. [Figure 9] FIG. 9 is a diagram showing an example of the configuration of a save flag table included in the memory system according to the first embodiment. [Figure 10] FIG. 10 is a sequence diagram showing an example of a write operation in the memory system according to the first embodiment. [Figure 11] FIG. 11 is a diagram showing changes in threshold voltage distribution of memory cell transistors due to the first write operation in the memory system according to the first embodiment. [Figure 12] FIG. 12 is a diagram showing changes in threshold voltage distribution of memory cell transistors due to the second write operation in the memory system according to the first embodiment. [Figure 13] FIG. 13 is a diagram showing an example of the order in which the first write operation and the second write operation are performed in the memory system according to the first embodiment. [Figure 14] FIG. 14 is a diagram showing another example of the order in which the first write operation and the second write operation are performed in the memory system according to the first embodiment. [Figure 15] FIG. 15 is a flowchart showing an example of the flow of the save operation in the memory system according to the first embodiment. [Figure 16] FIG. 16 is a flowchart showing an example of a write data saving process in the memory system according to the first embodiment. [Figure 17] FIG. 17 is a flowchart showing an example of a write data saving process in the memory system according to the first embodiment. [Figure 18] FIG. 18 is a flowchart showing an example of a parity data evacuation process in the memory system according to the first embodiment. [Figure 19] FIG. 19 is a diagram showing a first specific example of the save operation in the memory system according to the first embodiment. [Figure 20]FIG. 20 is a diagram showing a second specific example of the save operation in the memory system according to the first embodiment. [Figure 21] FIG. 21 is a diagram showing a third specific example of the save operation in the memory system according to the first embodiment. [Figure 22] FIG. 22 is a diagram showing the deletion of an entry from the save flag table in the memory system according to the first embodiment. [Diagram 23] FIG. 23 is a diagram showing an example of the configuration of a save flag table included in the memory system according to the second embodiment. [Figure 24] FIG. 24 is a flowchart showing an example of a write data saving process in the memory system according to the second embodiment. [Diagram 25] FIG. 25 is a flowchart showing an example of a write data saving process in the memory system according to the second embodiment. [Figure 26] FIG. 26 is a diagram showing a first specific example of the save operation in the memory system according to the second embodiment. [Figure 27] FIG. 27 is a diagram showing a second specific example of the save operation in the memory system according to the second embodiment. [Figure 28] FIG. 28 is a diagram showing a third specific example of the save operation in the memory system according to the second embodiment. [Figure 29] FIG. 29 is a diagram showing the deletion of an entry in the save flag table for the write buffer included in the memory system according to the second embodiment. [Diagram 30] FIG. 30 is a diagram showing the deletion of an entry in the save flag table for the user data area included in the memory system according to the second embodiment. [Diagram 31] FIG. 31 is a flowchart showing an example of a parity data evacuation process in the memory system according to the third embodiment. [Diagram 32] FIG. 32 is a diagram showing a first specific example of the save operation in the memory system according to the third embodiment. [Diagram 33]FIG. 33 is a diagram showing a second specific example of the save operation in the memory system according to the third embodiment. [Diagram 34] FIG. 34 is a diagram showing a first specific example of the save operation in the memory system according to the fourth embodiment. [Diagram 35] FIG. 35 is a diagram showing a second specific example of the save operation in the memory system according to the fourth embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0007] Hereinafter, an embodiment will be described with reference to the drawings. The drawings are schematic. In the following description, components having substantially the same functions and configurations are given the same reference numerals. Numbers following the letters constituting the reference numerals are used to distinguish between elements having similar configurations.
[0008] A memory system according to an embodiment will be described below.
[0009] 1 Configuration 1.1 Configuration of information processing device 1.1.1 Data Processing Device Configuration First, an example of the configuration of an information processing system 1 will be described with reference to Fig. 1. Fig. 1 is a block diagram showing an example of the overall configuration of the information processing system 1.
[0010] As shown in FIG. 1, an information processing system 1 includes a host 2 and a memory system 3.
[0011] The host 2 is an information processing device (computing device) that accesses the memory system 3. The host 2 controls the memory system 3. More specifically, for example, the host 2 requests (commands) the memory system 3 to perform a write operation or a read operation of data (hereinafter, referred to as "user data"). For example, the write request includes a write command, a logical address, and user data. The host 2 also transmits a flash command to the memory system 3. The flash command is a command that instructs the memory system 3 to non-volatilize (write) data that has not been non-volatilized, that is, data that has not been written to the non-volatile memory 10 of the memory system 3. For example, the host 2 issues a flash command when it is expected that the supply of power to the memory system 3 will be stopped in the middle of a write operation (that is, a state in which a completion response to the write request has not been received from the memory system 3). In the memory system 3, the data is non-volatilized based on the flash command, and data loss due to power outage is suppressed.
[0012] The memory system 3 is, for example, a solid state drive (SSD). The memory system 3 includes a non-volatile memory 10 and a memory controller 20. The memory system 3 is connected to a host 2 via a host bus. The type of host bus depends on the application to which the memory system 3 is applied. When the memory system 3 is an SSD, the host bus is, for example, a PCIe TM (Peripheral Component Interconnect Express) standard.
[0013] 1.1.2 Memory System Configuration Next, an example of the configuration of the memory system 3 will be described.
[0014] The nonvolatile memory 10 is a nonvolatile storage medium. The nonvolatile memory 10 stores data received from the memory controller 20 in a nonvolatile manner. In the following, a case where the nonvolatile memory 10 is a NAND type flash memory will be described. Note that the nonvolatile memory 10 may be a nonvolatile storage medium other than a NAND type flash memory.
[0015] The memory controller 20 is, for example, a SoC (System On a Chip). In response to a request (command) from the host 2, the memory controller 20 commands the nonvolatile memory 10 to perform a read operation, a write operation, and the like. When the memory controller 20 receives a flash command from the host 2, it executes a data evacuation operation. When the data evacuation operation is completed, the memory controller 20 transmits a completion response to the flash command to the host 2. The memory controller 20 also manages the memory space of the nonvolatile memory 10.
[0016] Next, a description will be given of an example of the internal configuration of the non-volatile memory 10. The non-volatile memory 10 includes one or more memory chips 11.
[0017] The memory chip 11 is, for example, a semiconductor chip equipped with a NAND type flash memory. The memory chip 11 includes a plurality of memory cell transistors (hereinafter also referred to as "memory cells") that store data in a non-volatile manner. The memory chip 11 is connected to the memory controller 20 via a NAND bus. The memory chip 11 includes a user data area UR and a save area SR within the memory area.
[0018] The user data area UR is an area where write data including user data is stored.
[0019] The save area SR is an area where data (hereinafter, referred to as "saved data") is stored based on a flash command. For example, the saved data includes data stored in the write buffer 251 and the parity buffer 252 of the buffer memory 25, and data of memory cell transistors for which a write operation has not been completed in the user data area UR of the memory chip 11. The write buffer 251 is an example of a first buffer. The parity buffer 252 is an example of a second buffer. The memory cell transistors of the user data area UR of this embodiment can store multiple bits of data. In this embodiment, multiple bits of data are written to the memory cell transistors of the user data area UR by multiple write operations. That is, a memory cell transistor for which a write operation has not been completed is a memory cell transistor for which one or more write operations have been completed, but multiple write operations corresponding to the multiple bits of data to be stored have not been completed, and only a part of the multiple bits of data is stored. In other words, a memory cell transistor for which a write operation has not been completed is a memory cell transistor in an intermediate stage of multiple write operations. Details of the write operation will be described later.
[0020] Next, an example of the internal configuration of the memory controller 20 will be described. The memory controller 20 includes a host interface circuit (host I / F) 21, a CPU 22, a ROM (Read Only Memory) 23, a RAM (Random Access Memory) 24, a buffer memory 25, an ECC (Error Checking and Correcting) circuit 26, and one or more NAND controllers 27. These circuits are connected to each other, for example, by an internal bus. Note that the functions of the host interface circuit 21, the ECC circuit 26, and the NAND controller 27 may be realized by a dedicated circuit, or may be realized by the CPU 22 executing firmware.
[0021] The host interface circuit 21 is an interface circuit connected to the host 2. The host interface circuit 21 performs communication between the host 2 and the memory controller 20. The host interface circuit 21 transmits a request and user data received from the host 2 to the CPU 22 and the buffer memory 25, respectively. In addition, the host interface circuit 21 transmits user data in the buffer memory 25 to the host 2 in response to an instruction from the CPU 22.
[0022] The CPU 22 is a processor. The CPU 22 controls the overall operation of the memory controller 20. For example, the CPU 22 issues commands to the non-volatile memory 10 to perform write and read operations based on requests from the host 2.
[0023] Furthermore, the CPU 22 executes a data save operation based on a flush command. The save operation is an operation for saving (writing) data, the write operation of which has not been completed, in the save area SR.
[0024] The ROM 23 is a non-volatile memory. For example, the ROM 23 is an EEPROM. TM (Electrically Erasable Programmable Read-Only Memory). The ROM 23 is a non-transitory storage medium that stores firmware, programs, etc. For example, the CPU 22 loads the firmware from the ROM 23 into the RAM 24 and executes it.
[0025] The RAM 24 is a volatile memory. The RAM 24 is a DRAM or an SRAM, etc. The RAM 24 stores firmware for managing the non-volatile memory 10 and various management tables. For example, the RAM 24 stores a save flag table 241 as a management table. The save flag table 241 is an example of a first table. The save flag table 241 is used to manage write data saved in the save area SR. Details of the save flag table 241 will be described later.
[0026] The buffer memory 25 is a volatile memory. The buffer memory 25 is a DRAM, an SRAM, or the like. The buffer memory 25 temporarily holds data read by the memory controller 20 from the nonvolatile memory 10, user data received from the host 2, and the like. For example, the buffer memory 25 includes a write buffer 251 and a parity buffer 252.
[0027] The write buffer 251 temporarily stores write data. The write data includes user data and an error correction code for the user data. The error correction code is used to correct errors in the data read from the memory chip 11.
[0028] The parity buffer 252 temporarily stores an error correction code (hereinafter, also referred to as "parity data") capable of correcting burst errors such as block loss failures. A block loss failure is, for example, a failure in which an entire block BLK (described later) of the memory chip 11 becomes inaccessible. The parity data is used, for example, when data cannot be read from the memory chip 11, to decode the data that could not be read based on other data and the parity data.
[0029] The ECC circuit 26 is a circuit that executes ECC processing. The ECC processing includes data encoding and decoding. For example, the ECC circuit 26 executes encoding processing of user data during a write operation to generate an error correction code. The ECC circuit 26 generates write data by adding the error correction code to the user data. Then, the ECC circuit 26 executes decoding processing during a read operation. That is, the ECC circuit 26 executes error correction of data read from the memory chip 11 using the error correction code.
[0030] In addition, the ECC circuit 26 performs a burst error correction process. For example, when the ECC circuit 26 cannot read the target data, the ECC circuit 26 performs a burst error correction process based on other data and parity data, and decodes the data that could not be read. The ECC circuit 26 generates parity data based on one or more pieces of write data.
[0031] The NAND controller 27 controls the memory chips 11. For example, one NAND controller 27 can control multiple memory chips 11. The NAND controller 27 transmits commands corresponding to a write operation, a read operation, an erase operation, or the like to the memory chips 11. The NAND controller 27 receives read data from the memory chips 11 during a read operation.
[0032] 1.1.3 Memory chip configuration Next, an example of the configuration of the memory chip 11 will be described with reference to Fig. 2. Fig. 2 is a block diagram showing an example of the basic configuration of the memory chip 11. In the example shown in Fig. 2, some of the connections between the components are indicated by arrows. However, the connections between the components are not limited to the example shown in Fig. 2.
[0033] 2, the memory chip 11 transmits and receives a signal DQ and timing signals DQS and DQSn to and from the memory controller 20 (more specifically, a NAND controller 27) via a NAND bus. The signal DQ is, for example, data DAT, an address ADD, or a command CMD. The timing signals DQS and DQSn are timing signals used when inputting and outputting data DAT. The timing signal DQSn is an inverted signal of the timing signal DQS.
[0034] The memory chip 11 also receives various control signals from the memory controller 20 via the NAND bus. The memory chip 11 also transmits a ready / busy signal RBn to the memory controller 20 via the NAND bus. The ready / busy signal RBn is a signal indicating whether the memory chip 11 is in a state in which it cannot receive a command CMD from the memory controller 20 (busy state) or in a state in which it can receive a command CMD from the memory controller 20 (ready state). The busy state is a state in which the memory chip 11 cannot receive a command CMD from the memory controller 20. The ready state is a state in which the memory chip 11 can receive a command CMD from the memory controller 20.
[0035] Next, a description will be given of the internal configuration of the memory chip 11. The memory chip 11 includes an input / output circuit 101, a logic control circuit 102, an address register 103, a command register 104, a sequencer 105, a ready / busy circuit 106, a memory cell array 107, a row decoder 108, a sense amplifier 109, a data register 110, and a column decoder 111.
[0036] The input / output circuit 101 is a circuit that inputs and outputs a signal DQ. The input / output circuit 101 is connected to the memory controller 20. The input / output circuit 101 is also connected to a logic control circuit 102, an address register 103, a command register 104, and a data register 110.
[0037] When the input signal DQ is an address ADD, the input / output circuit 101 transmits the address ADD to the address register 103. When the input signal DQ is a command CMD, the input / output circuit 101 transmits the command CMD to the command register 104.
[0038] When the input signal DQ is data DAT, the input / output circuit 101 receives the input signal DQ based on the timing signals DQS and DQSn. Then, the input / output circuit 101 transmits the data DAT to the data register 110. In addition, the input / output circuit 101 outputs the data DAT to the memory controller 20 together with the timing signals DQS and DQSn.
[0039] The logic control circuit 102 is a circuit that performs logic control based on a control signal. The logic control circuit 102 is connected to the memory controller 20. The logic control circuit 102 is also connected to the input / output circuit 101 and the sequencer 105. The logic control circuit 102 receives various control signals from the memory controller 20. The logic control circuit 102 controls the input / output circuit 101 and the sequencer 105 based on the received control signals.
[0040] The address register 103 is a register that temporarily stores an address ADD. The address register 103 is connected to the input / output circuit 101, the row decoder 108, and the column decoder 111. The address ADD includes a row address RA and a column address CA. The address register 103 transfers the row address RA to the row decoder 108. The address register 103 also transfers the column address CA to the column decoder 111.
[0041] The command register 104 is a register that temporarily stores the command CMD. The command register 104 is connected to the input / output circuit 101 and the sequencer 105. The command register 104 transfers the command CMD to the sequencer 105.
[0042] The sequencer 105 is a circuit that controls the memory chip 11. The sequencer 105 controls the operation of the entire memory chip 11. More specifically, for example, the sequencer 105 controls a ready / busy circuit 106, a row decoder 108, a sense amplifier 109, a data register 110, and a column decoder 111. The sequencer 105 executes a write operation, a read operation, an erase operation, and the like based on a command CMD.
[0043] The ready / busy circuit 106 is a circuit that transmits a ready / busy signal RBn. The ready / busy circuit 106 transmits the ready / busy signal RBn to the controller in accordance with the operating status of the sequencer 105.
[0044] The memory cell array 107 is a set of a plurality of memory cell transistors arranged in a matrix. The memory cell array 107 includes a plurality of blocks BLK0 to BLKn (n is an integer equal to or greater than 1). The block BLK is, for example, a set of a plurality of memory cell transistors from which data is erased collectively. That is, the block BLK is a data erasure unit. For example, some blocks BLK are included in the user data area UR, and other blocks BLK are included in the save area SR. The number of blocks BLK included in the user data area UR and the number of blocks BLK included in the save area SR are arbitrary. The blocks BLK allocated to the user data area UR and the blocks BLK allocated to the save area SR can be changed arbitrarily. The configuration of the blocks BLK will be described in detail later.
[0045] The row decoder 108 is a decode circuit for the row address RA. Based on the decoded result, the row decoder 108 selects one of the blocks BLK in the memory cell array 107. The row decoder 108 applies a voltage to the row-direction wiring (word lines and select gate lines, which will be described later) of the selected block BLK.
[0046] The sense amplifier 109 is a circuit for writing and reading data DAT. The sense amplifier 109 is connected to the memory cell array 107 and a data register 110. In a read operation, the sense amplifier 109 reads the data DAT from the memory cell array 107. In a write operation, the sense amplifier 109 supplies a voltage corresponding to the data DAT to the memory cell array 107. The sense amplifier 109 includes a plurality of latch circuits for temporarily storing data.
[0047] The data register 110 is a register that temporarily stores data DAT. The data register 110 is connected to the sense amplifier 109 and the column decoder 111. The data register 110 includes a plurality of latch circuits. Each latch circuit temporarily stores data (write data or parity data) received from the input / output circuit 101 or data (read data) received from the sense amplifier 109.
[0048] The column decoder 111 is a circuit that decodes a column address CA. The column decoder 111 receives the column address CA from the address register 103. The column decoder 111 selects a latch circuit in the data register 110 based on the result of decoding the column address CA.
[0049] 1.1.4 Memory cell array circuit configuration Next, an example of a circuit configuration of the memory cell array 107 will be described with reference to Fig. 3. Fig. 3 is a circuit diagram showing an example of a circuit configuration of the memory cell array 107.
[0050] The block BLK includes, for example, five string units SU0 to SU4. The number of string units SU included in the block BLK is arbitrary. The string unit SU is, for example, a set of multiple NAND strings NS that are collectively selected in a write operation or a read operation.
[0051] Next, the internal configuration of the string unit SU will be described. The string unit SU includes a plurality of NAND strings NS. The NAND string NS is a collection of a plurality of memory cell transistors connected in series. Each of the plurality of NAND strings NS in the string unit SU is connected to one of the bit lines BL0 to BLm (m is an integer equal to or greater than 1).
[0052] Next, the internal configuration of the NAND strings NS will be described. Each NAND string NS includes a plurality of memory cell transistors MC and select transistors ST1 and ST2. In the example shown in Fig. 3, the NAND string NS includes eight memory cell transistors MC0 to MC7.
[0053] The memory cell transistor MC is a memory element that stores data in a non-volatile manner. The memory cell transistor MC includes a control gate and a charge storage layer. The memory cell transistor MC may be of a MONOS (Metal-Oxide-Nitride-Oxide-Silicon) type or a FG (Floating Gate) type.
[0054] The selection transistors ST1 and ST2 are switching elements and are used to select the string units SU during various operations.
[0055] The current paths of the select transistor ST2, the memory cell transistors MC0 to MC7, and the select transistor ST1 in the NAND string NS are connected in series. The drain of the select transistor ST1 is connected to a bit line BL. The source of the select transistor ST2 is connected to a source line SL.
[0056] The control gates of the memory cell transistors MC0 to MC7 in the same block BLK are commonly connected to the word lines WL0 to WL7, respectively. More specifically, for example, the block BLK includes five string units SU0 to SU4. Each string unit SU includes a plurality of memory cell transistors MC0. The control gates of the plurality of memory cell transistors MC0 in the block BLK are commonly connected to one word line WL0. The same is true for the memory cell transistors MC1 to MC7.
[0057] The gates of the multiple selection transistors ST1 in the string unit SU are commonly connected to one selection gate line SGD. More specifically, the gates of the multiple selection transistors ST1 in the string unit SU0 are commonly connected to a selection gate line SGD0. The gates of the multiple selection transistors ST1 in the string unit SU1 are commonly connected to a selection gate line SGD1. The gates of the multiple selection transistors ST1 in the string unit SU2 are commonly connected to a selection gate line SGD2. The gates of the multiple selection transistors ST1 in the string unit SU3 are commonly connected to a selection gate line SGD3. The gates of the multiple selection transistors ST1 in the string unit SU4 are commonly connected to a selection gate line SGD4.
[0058] The gates of the multiple selection transistors ST2 in the block BLK are commonly connected to a selection gate line SGS.
[0059] The word lines WL0 to WL7, the select gate lines SGD0 to SGD4, and the select gate line SGS are each connected to a row decoder 108.
[0060] The bit line BL is commonly connected to one NAND string NS of each of the multiple string units SU in each block BLK. Each bit line BL is connected to a sense amplifier 109.
[0061] The source line SL is shared among, for example, a plurality of blocks BLK.
[0062] A set of multiple memory cell transistors MC connected to a common word line WL in one string unit SU is denoted as, for example, a "cell unit CU." In other words, a cell unit CU is a set of multiple memory cell transistors MC selected collectively in a write operation or a read operation. A page is a unit of data that is collectively written (or collectively read) into a cell unit CU. For example, when a memory cell transistor MC stores 1-bit data, the storage capacity of the cell unit CU is 1 page. Note that the cell unit CU may have a storage capacity of 2 or more pages based on the number of bits of data stored in the memory cell transistor MC.
[0063] In the following, in this embodiment, a case will be described in which the memory cell transistors MC in the user data area UR are QLC (Quad Level Cell) that store 4-bit data, and the memory cell transistors MC in the save area SR are SLC (Single Level Cell) that store 1-bit data. Note that the memory cell transistors MC in the user data area UR are not limited to QLC. This embodiment can be applied to the memory cell transistors MC in the user data area UR as long as they can store 2-bit or more data. For example, the memory cell transistors MC may be MLC (Multi Level Cell) that stores 2-bit data, TLC (Triple Level Cell) that stores 3-bit data, or PLC (Penta Level Cell) that stores 5-bit data. Also, the memory cell transistors MC in the save area SR are not limited to SLC. The memory cell transistors MC in the save area SR can store 2-bit or more data.
[0064] 1.2 Threshold voltage distribution of memory cell transistors Next, two examples of the threshold voltage distribution of the memory cell transistor will be described.
[0065] 1.2.1 SLC threshold voltage distribution First, referring to FIG. 4, an example of the threshold voltage distribution of the SLC will be described. FIG. 4 is a diagram showing the threshold voltage distribution and data assignment when the memory cell transistor MC is an SLC.
[0066] As shown in FIG. 4, the threshold voltage of the SLC takes a value included in either of the two discrete threshold voltage distributions. Hereinafter, the two threshold voltage distributions will be denoted as the Er state and the A state in order from the one with the lower threshold voltage.
[0067] The Er state corresponds to, for example, the erased state of data. And the A state corresponds to the state where data is written by injecting charge into the charge storage layer. In the write operation, let the verify voltage corresponding to the threshold voltage distribution of the A state be VA. The voltage VA and the voltage VREAD are in the relationship of VA < VREAD. The voltage VREAD is the voltage applied to the non-selected word line WL during the read operation. When the voltage VREAD is applied to the gate of the memory cell transistor MC, it becomes on regardless of the stored data.
[0068] More specifically, the threshold voltage of the memory cell transistor MC included in the Er state is less than the voltage VA. The threshold voltage of the memory cell transistor MC included in the A state is equal to or greater than the voltage VA and less than the voltage VREAD.
[0069] For example, "1" data is assigned to the Er state and "0" data is assigned to the A state. Thereby, the memory cell transistor MC holds 1-bit (binary) data.
[0070] 1.2.2 Threshold Voltage Distribution of QLC Next, referring to FIG. 5, an example of the threshold voltage distribution of the QLC will be described. FIG. 5 is a diagram showing the threshold voltage distribution and data assignment when the memory cell transistor MC is a QLC.
[0071] 5, when a memory cell transistor MC stores 4-bit data, the distribution of the threshold voltage is divided into 16. These 16 threshold voltage distributions are denoted as states S0 to S15 in order from the lowest threshold voltage.
[0072] Voltages V1 to V15 are verify voltages used in verify operations in the S1 to S15 states during a write operation. The relationship between these voltage values and the voltage VREAD is as follows: V1 <V2<V3<V4<V5<V6<V7<V8<V9<V10<V11<V12<V13<V14<V15<VREADである。
[0073] The S0 state corresponds to an erased state of the memory cell transistor MC. The S1 to S15 states correspond to states in which charges are injected into the charge storage layer of the memory cell transistor MC and data is written. The threshold voltage of the memory cell transistor MC included in the S0 state is less than voltage V1. The threshold voltages of the memory cell transistor MC included in the S1 to S14 states are respectively equal to or greater than voltage V1 and less than voltage V2 to equal to or greater than voltage V14 and less than voltage V15. The threshold voltage of the memory cell transistor MC included in the S15 state is equal to or greater than voltage V15 and less than voltage VREAD.
[0074] The setting value of the verify voltage and the setting value of the read voltage corresponding to each state may be the same or different. In the following, for the sake of simplicity, the case where the verify voltage and the read voltage are the same setting value will be described.
[0075] Hereinafter, the read operations using voltages V1 to V15 are referred to as read operations R1 to R15, respectively. Read operation R1 determines whether the threshold voltage of memory cell transistor MC is less than voltage V1. Read operation R2 determines whether the threshold voltage of memory cell transistor MC is less than voltage V2. Read operation R3 determines whether the threshold voltage of memory cell transistor MC is less than voltage V3. The same applies below.
[0076] As described above, the threshold voltage of each memory cell transistor MC belongs to one of 16 threshold voltage distributions. This allows each memory cell transistor MC to take 16 different states. By assigning these states to binary notation "0000" to "1111", each memory cell transistor MC can store 4-bit data. Hereinafter, the 4-bit data will be referred to as the Lower bit, Middle bit, Upper bit, and Top bit, starting from the least significant bit. Also, a set of Lower bits stored in memory cell transistors MC included in the same cell unit CU will be referred to as Lower page data, a set of Middle bits will be referred to as Middle page data, a set of Upper bits will be referred to as Upper page data, and a set of Top bits will be referred to as Top page data.
[0077] In the example of FIG. 5, data of "Lower bit / Middle bit / Upper bit / Top bit" is assigned to the memory cell transistors MC included in each state as shown below. S0 state: “1111” data S1 state: “1110” data S2 state: “1100” data S3 state: “1101” data S4 state: “1001” data S5 state: “1011” data S6 state: “0011” data S7 state: “0010” data S8 state: “1010” data S9 state: “1000” data S10 state: “0000” data S11 state: “0001” data S12 state: “0101” data S13 state: “0111” data S14 state: “0110” data S15 state: “0100” data
[0078] The data assigned to each state is not limited to this.
[0079] When reading data allocated in this way, the Lower bit is determined by read operations R6, R8, and R10. The Middle bit is determined by read operations R4 and R12. The Upper bit is determined by read operations R2, R5, R9, R13, and R15. The Top bit is determined by read operations R1, R3, R7, R11, and R14. That is, the values of the Lower bit, Middle bit, Upper bit, and Top bit are determined by three, two, five, and five read operations, respectively. Hereinafter, this data allocation is referred to as the "3-2-5-5 code." Note that the allocation of data to states S0 to S15 is not limited to the 3-2-5-5 code.
[0080] 1.3 Memory cell array configuration Next, an example of the memory area of the memory cell array 107 will be described with reference to Fig. 6. Fig. 6 is a table showing an example of the configuration of the memory area of the memory cell array 107. In the example of Fig. 6, in order to simplify the explanation, a case is shown in which each block BLK includes one string unit SU. Also, in the example of Fig. 6, a solid-line rectangular frame indicates one page of data.
[0081] 6, the memory cell array 107 includes a user data area UR and a save area SR as memory areas. The user data area UR is an area in which write data and parity data corresponding to the write data are stored.
[0082] The example in Fig. 6 shows a state in which each page data is written to the cell unit CU corresponding to the word line WL0 (i.e., the word line WL identified by the word line number WL# "0") of each block BLK. Data D0 to D27 indicate write data. Parity data PL0, PM0, PU0, and PT0 indicate parity data of the Lower page data, Middle page data, Upper page data, and Top page data corresponding to the word line WL0, respectively.
[0083] More specifically, the user data area UR includes, for example, eight blocks BLK. The memory controller 20 manages one or more blocks BLK (for example, eight blocks BLK) as a logical block. A logical block is also called a superblock. The user data area UR may include eight or more blocks BLK managed as a plurality of logical blocks. Hereinafter, when referring to the eight blocks BLK of the user data area UR, they are written as blocks BLK_H0 to BLK_H7. For example, when the memory cell transistors MC of the user data area UR are QLC, the cell unit CU stores data corresponding to four page types PT. That is, the page type PT indicates the page data of the cell unit CU. The "L" of the page type PT shown in FIG. 6 indicates Lower page data. The "M" of the page type PT indicates Middle page data. The "U" of the page type PT indicates Upper page data. The "T" of the page type PT indicates Top page data.
[0084] In the example of FIG. 6, the lower page data, middle page data, upper page data, and top page data of the cell unit CU corresponding to WL0 of the block BLK_H0 are data D0, D1, D14, and D15, respectively. The lower page data, middle page data, upper page data, and top page data of the cell unit CU corresponding to the word line WL0 of the block BLK_H1 are data D2, D3, D16, and D17, respectively. The lower page data, middle page data, upper page data, and top page data of the cell unit CU corresponding to the word line WL0 of the block BLK_H2 are data D4, D5, D18, and D19, respectively. The lower page data, middle page data, upper page data, and top page data of the cell unit CU corresponding to the word line WL0 of the block BLK_H3 are data D6, D7, D20, and D21, respectively. The lower page data, middle page data, upper page data, and top page data of the cell unit CU corresponding to the word line WL0 of the block BLK_H4 are data D8, D9, D22, and D23, respectively. The lower page data, middle page data, upper page data, and top page data of the cell unit CU corresponding to the word line WL0 of the block BLK_H5 are data D10, D11, D24, and D25, respectively. The lower page data, middle page data, upper page data, and top page data of the cell unit CU corresponding to the word line WL0 of the block BLK_H6 are data D12, D13, D26, and D27, respectively. The lower page data, middle page data, upper page data, and top page data of the cell unit CU corresponding to the word line WL0 of the block BLK_H7 are parity data PL0, PM0, PU0, and PT0, respectively.
[0085] The parity data PL0, PM0, PU0, and PT0 are used for correcting a burst error of data of the corresponding page type PT in the cell unit CU corresponding to the word line WL0 of each block BLK managed as one logical block. More specifically, the parity data PL0 is used for correcting a burst error of the data D0, D2, D4, D6, D8, D10, and D12. The parity data PL0 is generated by performing an exclusive OR operation (XOR operation) on the data D0, D2, D4, D6, D8, D10, and D12. For example, when the data D0 of the block BLK_H0 cannot be read, the CPU 22 decodes the data D0 by performing an XOR operation on the data D2, D4, D6, D8, D10, and D12 and the parity data PL0. Similarly, the parity data PM0 is used to correct burst errors in the data D1, D3, D5, D7, D9, D11, and D13. The parity data PU0 is used to correct burst errors in the data D14, D16, D18, D20, D22, D24, and D26. The parity data PT0 is used to correct burst errors in the data D15, D17, D19, D21, D23, D25, and D27.
[0086] The save area SR is an area in which save data is stored. In the example of FIG. 6, the save area SR includes 15 blocks BLK. Hereinafter, when referring to the 15 blocks BLK of the save area SR, they are written as blocks BLK_S0 to BLK_S14. For example, when the memory cell transistors MC of the save area SR are SLC, the cell units CU store one page of data. In the example of FIG. 6, data D0 is stored in the cell unit CU corresponding to the word line WL0 of the block BLK_S0. And data Ps0 is stored in the cell unit CU corresponding to the word line WL0 of the block BLK_S1. For example, the data Ps0 indicates parity data of the data D0. The parity data Ps0 is generated, for example, by performing an exclusive OR operation on the data D0 and dummy data of a page size. The dummy data is, for example, data in which all bits are data "0". In this case, the data D0 and the parity data Ps0 are the same data.
[0087] 1.4 Buffer memory configuration 1.4.1 Write Buffer Configuration First, an example of the configuration of the write buffer 251 will be described with reference to Fig. 7. Fig. 7 is a diagram showing an example of the configuration of the write buffer 251.
[0088] As shown in Fig. 7, the write buffer 251 includes a plurality of buffers each capable of storing write data of one page size. The number of buffers included in the write buffer 251 is arbitrary. For example, the number of buffers included in the write buffer 251 is based on the number of bits of data that can be stored in the memory cell transistor MC. In the example of Fig. 7, the write buffer 251 includes four buffers, buffer 0 to buffer 3. In the example of Fig. 7, data D0 is stored in buffer 0.
[0089] 1.4.2 Parity Buffer Configuration Next, an example of the configuration of the parity buffer 252 will be described with reference to Fig. 8. Fig. 8 is a diagram showing an example of the configuration of the parity buffer 252.
[0090] As shown in FIG. 8, the parity buffer 252 includes a plurality of buffers each capable of storing parity data of one page size. For example, the number of buffers included in the parity buffer 252 is based on the page type PT of the cell unit CU of the user data area UR. In the example of FIG. 8, the parity buffer 252 includes four buffers corresponding to four page types PT. In the example of FIG. 8, parity data PL0 is stored in the buffer corresponding to the Lower page data ("L"). Parity data PM0 is stored in the buffer corresponding to the Middel page data ("M"). Parity data PU0 is stored in the buffer corresponding to the Upper page data ("U"). Parity data PT0 is stored in the buffer corresponding to the Top page data ("T").
[0091] The parity data stored in the parity buffer 252 is updated every time the amount of write data that is to be subjected to the burst error correction process increases.
[0092] 1.5 Configuration of the evacuation flag table Next, an example of the configuration of the save flag table 241 will be described with reference to Fig. 9. Fig. 9 is a diagram showing an example of the configuration of the save flag table 241.
[0093] 9, the save flag table 241 includes a plurality of entries for storing address information of the write data saved in the save area SR. For example, in order to distinguish the saved write data, each entry stores information such as a logical block number LBN (Logical Block Number), a word line number WL#, a page type PT, and a physical block number PBN (Physical Block Number) as address information. The logical block number LBN is a number that identifies a logical block. The physical block number PBN is a number that identifies a block BLK of the memory chip 11.
[0094] In the example of Fig. 9, address information is stored in entry 1. For example, in entry 1, "0" is registered (stored) in the logical block number LBN field, "0" (WL0) in the word line number WL# field, "L" (Lower) in the page type PT field, and "H0" (block BLK_H0) in the physical block number PBN field. That is, the example of Fig. 9 indicates that data that should be stored (or is stored) as Lower page data in WL0 of block BLK_H0 of a logical block with logical block number LBN of "0" has been saved in an area in the save area SR corresponding to entry 1.
[0095] 1.6 Write Operation Next, a write operation will be described. The write operation includes a program operation and a program verify operation. Then, by repeating a combination of the program operation and the program verify operation (hereinafter referred to as a "program cycle"), the threshold voltage of the memory cell transistor MC is raised to a target level.
[0096] The program operation is an operation for increasing the threshold voltage by injecting electrons into the charge storage layer (or forbidding the injection to maintain the threshold voltage).
[0097] The program verify operation is an operation in which data is read from the memory cell transistor MC after the program operation to determine whether or not the threshold voltage of the memory cell transistor MC has reached a target level. The memory cell transistor MC whose threshold voltage has reached the target level is write-protected in the subsequent program cycle.
[0098] In this embodiment, when writing data to the user data area UR, the write operation to one cell unit CU is executed in two separate steps. Specifically, the write operation of 4 pages of data corresponding to QLC is executed in two separate steps: an operation to write Lower page data and Middle page data (hereinafter referred to as a "first write operation"), and an operation to write Upper page data and Top page data (hereinafter referred to as a "second write operation"). Note that the write operation to one cell unit CU may be executed in three or more separate steps.
[0099] In this embodiment, when writing data to the save area SR, a write operation to one cell unit CU is executed once. Specifically, a write operation of one page of data corresponding to the SLC is executed.
[0100] 1.6.1 First Write Operation First, the first write operation will be described with reference to Fig. 10 and Fig. 11. Fig. 10 is a sequence diagram showing an example of a write operation. Fig. 11 is a diagram showing a change in threshold voltage distribution of memory cell transistor MC due to the first write operation. Note that in Fig. 10 and Fig. 11, the program verify operation is omitted.
[0101] 10, the memory controller 20 causes the sequencer 105 to execute a first write operation. First, the memory controller 20 transmits the Lower page data and the Middle page data stored in the write buffer 251 to the memory chip 11 (data in). The sequencer 105 temporarily stores the Lower page data and the Middle page data in the latch circuit of the sense amplifier 109 (and the data register 110).
[0102] Next, the sequencer 105 executes a first write operation. More specifically, the sequencer 105 writes the Lower page data and the Middle page data to the target cell unit CU of the memory cell array 107.
[0103] 11, the threshold voltage of each memory cell transistor MC belongs to one of four threshold voltage distributions by the first write operation. Hereinafter, the four threshold voltage distributions are referred to as M0 state, M1 state, M2 state, and M3 state from the lowest threshold voltage side. The memory cell transistors MC included in each state are assigned "Lower bit / Middle bit" data as shown below. M0 state: “11” data M1 state: “10” data M2 state: “00” data M3 state: “01” data
[0104] The M0 state includes memory cell transistors MC that transition to the S0 state to the S3 state by the second write operation described below. The M1 state includes memory cell transistors MC that transition to the S4 state, the S5 state, the S8 state, and the S9 state by the second write operation. The M2 state includes memory cell transistors MC that transition to the S6 state, the S7 state, the S10 state, and the S11 state by the second write operation. The M3 state includes memory cell transistors MC that transition to the S12 state to the S15 state by the second write operation.
[0105] The sequencer 105 uses voltages VM1, VM2, and VM3 as verify voltages in the first write operation. Voltage VM1 is a verify voltage used when writing the M1 state ("10" data). Voltage VM1 is equal to or greater than voltage V1 and less than voltage V4. Voltage VM2 is a verify voltage used when writing the M2 state ("00" data). Voltage VM2 is equal to or greater than voltage V4 and less than voltage V6. Voltage VM3 is a verify voltage used when writing the M3 state ("01" data). Voltage VM3 is equal to or greater than voltage V6 and less than voltage V12.
[0106] The threshold voltage of the memory cell transistor MC included in the M0 state is less than the voltage V1. The threshold voltage of the memory cell transistor MC included in the M1 state is equal to or greater than the voltage VM1 and less than the voltage V5. The threshold voltage of the memory cell transistor MC included in the M2 state is equal to or greater than the voltage VM2 and less than the voltage V7. The threshold voltage of the memory cell transistor MC included in the M3 state is equal to or greater than the voltage VM3 and less than the voltage V13.
[0107] Hereinafter, the state of the cell unit CU in which the first write operation has been performed and the second write operation has not been performed is referred to as the “MLC state” or the “intermediate stage of the write operation.” When the Lower page data and the Middle page data have been written to the cell unit CU and the Upper page data and the Top page data have not been written, the Lower page data and the Middle page data are collectively referred to as the “MLC state data” or the “intermediate stage data of the write operation.”
[0108] 1.6.2 Second write operation Next, the second write operation will be described with reference to Figures 10 and 12. Figure 12 is a diagram showing changes in the threshold voltage distribution of memory cell transistors MC due to the second write operation.
[0109] 10, the memory controller 20 causes the sequencer 105 to execute a second write operation. First, the memory controller 20 transmits the Upper page data and the Top page data stored in the write buffer 251 to the memory chip 11 (data in). The sequencer 105 temporarily stores the Upper page data and the Top page data in the latch circuit of the sense amplifier 109 (and the data register 110).
[0110] Next, the sequencer 105 executes a second write operation. More specifically, first, the sequencer 105 reads out the Lower page data and the Middle page data from the corresponding cell unit CU of the memory cell array 107, and temporarily stores them in the latch circuit of the sense amplifier 109 (and the data register 110). Next, the sequencer 105 executes a write operation of the Upper page data and the Top page data in the target cell unit CU based on the Lower page data, the Middle page data, the Upper page data, and the Top page data stored in the latch circuit of the sense amplifier 109 (and the data register 110). The sequencer 105 may transmit the Lower page data and the Middle page data to the memory controller 20. In this case, the memory controller 20 executes ECC processing of the Lower page data and the Middle page data in the ECC circuit 26. Then, the memory controller 20 may transmit the corrected Lower page data and the Middle page data to the memory chip 11.
[0111] As shown in FIG. 12, 16 threshold voltage distributions are formed by the second write operation. For example, by the second write operation, the memory cell transistor MC that belonged to the threshold voltage distribution of the M0 state becomes one of the threshold voltage distributions of the S0 state to the S3 state. The memory cell transistor MC that belonged to the threshold voltage distribution of the M1 state becomes one of the threshold voltage distributions of the S4 state, the S5 state, the S8 state, and the S9 state. The memory cell transistor MC that belonged to the threshold voltage distribution of the M2 state becomes one of the threshold voltage distributions of the S6 state, the S7 state, the S10 state, and the S11 state. The memory cell transistor MC that belonged to the threshold voltage distribution of the M3 state becomes one of the threshold voltage distributions of the S12 state to the S15 state.
[0112] 1.6.3 Execution Order of Write Operations Next, the order in which the first and second write operations are performed will be described with reference to FIG. 13 and FIG. 14. FIG. 13 is a diagram showing an example of the order in which the first and second write operations are performed in a plurality of blocks BLK in the user data area UR. FIG. 14 is a diagram showing an example of the order in which the first and second write operations are performed when data is continuously written to one block BLK. In the example of FIG. 13, in order to simplify the explanation, a case is shown in which each block BLK includes one string unit SU. In addition, in the example of FIG. 13, a solid-lined rectangular frame corresponding to an intersection between each word line WL and each block BLK indicates one cell unit CU. Similarly, in the example of FIG. 14, a solid-lined rectangular frame corresponding to an intersection between each word line WL and each string unit SU indicates one cell unit CU. The upper part of the solid-lined rectangular frame in FIG. 13 and FIG. 14, which is divided by a dashed line, indicates the first write operation (WRT1). The lower part of the solid-lined rectangular frame, which is divided by a dashed line, indicates the second write operation (WRT2). That is, the numbers above and below the solid-lined rectangular frame indicate the order of the write operations.
[0113] First, the order of write operations when writing data to a plurality of blocks BLK will be described.
[0114] 13, first, the sequencer 105 selects the word line WL0 of each block BLK and executes the first write operation in sequence. More specifically, as the first to eighth operations, the sequencer 105 selects the cell units CU corresponding to the word line WL0 of the blocks BLK_H0 to BLK_H7 in sequence and executes the first write operation in each cell unit CU.
[0115] Next, the sequencer 105 selects the word line WL1 of each block BLK and executes the first write operation in sequence. More specifically, as the 9th to 16th operations, the sequencer 105 selects the cell units CU corresponding to the word lines WL1 of the blocks BLK_H0 to BLK_H7 in sequence and executes the first write operation in each cell unit CU.
[0116] Next, the sequencer 105 selects the word line WL0 of each block BLK and sequentially executes the second write operation. More specifically, as the 17th to 24th operations, the sequencer 105 sequentially selects the cell units CU corresponding to the word line WL0 of the blocks BLK_H0 to BLK_H7 and executes the second write operation in each cell unit CU.
[0117] Next, the sequencer 105 selects the word line WL2 of each block BLK and executes the first write operation in sequence. More specifically, as the 25th to 32nd operations, the sequencer 105 selects the cell units CU corresponding to the word lines WL2 of the blocks BLK_H0 to BLK_H7 in sequence and executes the first write operation in each cell unit CU.
[0118] Next, the sequencer 105 selects the word line WL1 of each block BLK and executes the second write operation in sequence. More specifically, as the 33rd to 40th operations, the sequencer 105 selects the cell units CU corresponding to the word lines WL1 of the blocks BLK_H0 to BLK_H7 in sequence and executes the second write operation in each cell unit CU.
[0119] In this way, the sequencer 105 executes a first write operation in a cell unit CU corresponding to a word line WL with a certain word line number WL#, and then executes a first write operation in a cell unit CU corresponding to a word line WL with the next word line number WL#. Then, after completing the first write operation in a cell unit CU corresponding to a word line WL with the next word line number WL#, the sequencer 105 executes a second write operation in a cell unit CU corresponding to the previous word line number WL#. The sequencer 105 selects cell units CU of each block BLK in the same order for word lines WL2 and onward.
[0120] Next, the order of write operations when data is continuously written to one block BLK will be described.
[0121] As shown in FIG. 14, first, as the first to fifth operations, the sequencer 14 selects the string units SU0 to SU4 in order with the word line WL0 selected, and executes the first write operation in each cell unit CU.
[0122] Next, the sequencer 105 executes a first write operation in which the string unit SU0 and the word line WL1 are selected as the sixth operation.
[0123] Next, the sequencer 105 executes a second write operation in which the string unit SU0 and the word line WL0 are selected as the seventh operation.
[0124] Next, as the 8th to 15th operations, the sequencer 105 selects the string units SU1 to SU4 in order, and alternately performs a first write operation selecting the word line WL1 and a second write operation selecting the word line WL0 in the same procedure as the 6th and 7th operations.
[0125] Next, as the 16th to 25th operations, the sequencer 105 sequentially selects string units SU0 to SU4, similar to the 6th to 15th operations, and alternately performs a first write operation selecting word line WL2 and a second write operation selecting word line WL1.
[0126] Next, as the 26th to 35th operations, the sequencer 105 sequentially selects the string units SU0 to SU4, similarly to the 6th to 15th operations, and alternately executes a first write operation in which the word line WL3 is selected and a second write operation in which the word line WL2 is selected. The sequencer 105 alternately executes the first write operation and the second write operation in the same order for the word lines WL3 and after.
[0127] 1.7 Evacuation Action Next, the save operation will be described. In this embodiment, a case where the same write data and the same parity data are not saved (written) in the save area SR in duplicate will be described. Hereinafter, the case where the same data is not saved in duplicate will be referred to as "de-duplication". That is, in the save operation of the first embodiment, the same write data and the same parity data are de-duplicatable.
[0128] 1.7.1 Evacuation procedure First, an example of the flow of the evacuation operation will be described with reference to Fig. 15. Fig. 15 is a flowchart showing an example of the flow of the evacuation operation.
[0129] As shown in FIG. 15, when the CPU 22 receives a flush command from the host 2 (S100), it starts the save operation.
[0130] First, the CPU 22 executes a save process of the write data (user data and an error correction code of the user data) (S101). More specifically, the CPU 22 executes a save process (write operation) of saving the data in the MLC state of the user data area UR to the save area SR, and a save process (write operation) of saving the write data stored in the write buffer 251 to the save area SR, in that order.
[0131] Next, the CPU 22 executes a parity data evacuation process (S102). More specifically, the CPU 22 executes a save process (write operation) for saving the parity data in the parity buffer 252 to the save area SR.
[0132] When the process of saving the data to the save area SR is completed, the CPU 22 transmits a completion response to the flush command to the host 2 (S103).
[0133] 1.7.2 Flow of write data evacuation process Next, an example of the flow of a write data evacuation process will be described with reference to Fig. 16 and Fig. 17. Fig. 16 and Fig. 17 are flowcharts showing an example of a write data evacuation process.
[0134] As shown in FIG. 16, first, the CPU 22 executes the processes of steps S1001 to S1007 described later to execute the process of saving the write data (user data and error correction code of the user data) in the user data area UR.
[0135] The CPU 22 checks whether there is data in the MLC state in the user data area UR (S1001). That is, the CPU 22 checks whether there is a cell unit CU in the user data area UR in which Lower page data and Middle page data are written and Upper page data and Top page data are not written.
[0136] If there is no data in the MLC state (S1001_False), there is no write data to be saved in the user data area UR, so the CPU 22 skips the process of saving the data in the user data area UR and proceeds to the process of step S1008.
[0137] If there is data in the MLC state in the user data area UR (S1001_True), the CPU 22 selects one page of data from the data in the MLC state in the user data area UR, and sets the selected data as data Dx (x is an integer equal to or greater than 0) (S1002). More specifically, for example, the CPU 22 selects lower page data stored in a cell unit CU that stores data in the MLC state, and sets the selected data as data Dx.
[0138] The CPU 22 acquires a write destination address Add_x of the data Dx (S1003). More specifically, the CPU 22 acquires address information of the cell unit CU of the user data area UR where the data Dx is written.
[0139] The CPU 22 checks whether the address Add_x has been registered in the save flag table 241 (S1004).
[0140] If the address Add_x has already been registered (S1004_True), the CPU 22 proceeds to the process of step S1007 without saving the data Dx.
[0141] If the address Add_x is not registered (S1004_False), the CPU 22 reads the data in the MLC state from the user data area UR and saves the data Dx in the read data in the MLC state to the save area SR (S1005). For example, the sequencer 105 executes a write operation of the data Dx in the save area SR.
[0142] When the CPU 22 finishes saving the data Dx, it registers the address Add_x of the data Dx in the save flag table 241 (S1006).
[0143] If the address Add_x has already been registered (S1004_True), or after registering the address Add_x (S1006), the CPU 22 checks whether there is any MLC state data that has not yet been saved (not yet selected as a target for saving) in the user data area UR (S1007).
[0144] If there is data in the MLC state that has not yet been selected as a target for saving (S1007_True), the CPU 22 increments the variable x (x=x+1) and then sets the data as data Dx (S1002). More specifically, for example, the CPU 22 selects Middle page data from the data in the MLC state in the user data area UR and sets the data as data Dx.
[0145] If there is no data in the MLC state that has not yet been selected as a target for saving (S1007_False), the CPU 22 performs the process of steps S1008 to S1014, which will be described later, to perform a process of saving the write data in the write buffer 251, as shown in FIG.
[0146] First, the CPU 22 checks whether there is unwritten data in the write buffer 251 (S1008). That is, the CPU 22 checks whether there is write data that has not been written to the user data area UR in the write buffer 251. In other words, the CPU 22 checks whether there is write data that has not been made non-volatile in the write buffer 251.
[0147] If there is no unwritten data in the write buffer 251 (S1008_False), there is no data to be saved in the write buffer 251, so the CPU 22 skips the process of saving the written data in the write buffer 251 and proceeds to the process of step S1015.
[0148] If there is unwritten data in the write buffer 251 (S1008_True), the CPU 22 selects one page of data from the unwritten data, and sets the selected data as data Dy (y is an integer equal to or greater than 0) (S1009).
[0149] The CPU 22 acquires the address Add_y of the destination where the data Dy is to be written (S1010). More specifically, the CPU 22 acquires address information of the cell unit CU of the user data area UR that is to be the destination where the data Dy is to be written.
[0150] The CPU 22 checks whether the address Add_y has already been registered in the save flag table 241 (S1011).
[0151] If the address Add_y has already been registered (S1011_True), the CPU 22 proceeds to the process of step S1014 without saving the data Dy.
[0152] If the address Add_y has not been registered (S1011_False), the CPU 22 saves the data Dy in the save area SR (S1012). For example, the sequencer 105 executes a write operation of the data Dy in the save area SR.
[0153] When the CPU 22 finishes saving the data Dy, it registers the address Add_y of the data Dy in the save flag table 241 (S1013).
[0154] If the address Add_y has already been registered (S1011_True), or after registering the address Add_y (S1013), the CPU 22 checks whether there is any unwritten data in the write buffer 251 that has not yet been evacuated (not yet selected as a target for evacuation) (S1014).
[0155] If there is unwritten data that has not yet been selected as a target for saving (S1014_True), the CPU 22 increments the variable y and then sets the data as data Dy (S1009).
[0156] If there is no unwritten data that has not yet been selected as a target for saving (S1014_False), the CPU 22 controls the ECC circuit 26 to generate parity data of the data Dx and data Dy saved in the save area SR (S1015). More specifically, for example, the ECC circuit 26 generates parity data by performing an exclusive OR operation (XOR operation) on the saved data Dx and data Dy under the control of the CPU 22. Note that when the saved data is only one page's worth, the ECC circuit 26 generates parity data by performing an XOR operation on the saved data and dummy data.
[0157] The CPU 22 writes the parity data of the data Dx and the data Dy to the save area SR (S1016). For example, the sequencer 105 executes the write operation of the parity data of the data Dx and the data Dy in the save area SR.
[0158] After completing the process of step S1016, the CPU 22 ends the write data saving process.
[0159] 1.7.3 Parity data evacuation process flow Next, an example of the flow of a parity data evacuation process will be described with reference to Fig. 18. Fig. 18 is a flowchart showing an example of a parity data evacuation process.
[0160] 18, the CPU 22 checks whether parity data of an Upper page or a Top page that has never been non-volatile is in the parity buffer 252 (S2001). More specifically, for example, in the parity data evacuation process in this embodiment, the parity data PL0 and PM0 are not included in the evacuation target. The CPU 22 checks whether the parity data PU0 and PT0 are stored in the user data area UR or the evacuation area SR.
[0161] If there is no parity data of the Upper page or Top page that has never been non-volatiled (S2001_False), there is no parity data to be saved in the parity buffer 252, so the CPU 22 ends the parity data saving process.
[0162] If there is parity data of the Upper page or Top page that has never been non-volatiled (S2001_True), the CPU 22 selects one piece of target parity data and saves it in the save area SR (S2002).
[0163] The CPU 22 checks whether there is parity data of an Upper page or a Top page that has not yet been selected as a save target and has never been made non-volatile (S2003).
[0164] If there is parity data of an Upper page or a Top page that has not yet been selected as a save target and has never been non-volatilized (S2003_True), the CPU 22 selects the target parity data and saves it in the save area SR (S2002).
[0165] If there is no parity data of the Upper page or Top page that has not yet been selected as a save target and has never been non-volatiled (S2003_False), the CPU 22 ends the parity data save process.
[0166] 1.7.4 Example of evacuation operation Next, three specific examples of the save operation will be shown.
[0167] 1.7.4.1 First concrete example First, a first specific example of the first embodiment will be described with reference to Fig. 19. In the first specific example of the first embodiment, a case will be described in which the CPU 22 receives a flush command from the host 2 when no data is stored in the user data area UR. In other words, a case will be described in which the CPU 22 receives a flush command from the host 2 before the first first write operation is executed. Fig. 19 is a diagram showing changes in the write buffer 251, the parity buffer 252, the save flag table 241, the user data area UR, and the save area SR due to the save operation in the first specific example of the first embodiment.
[0168] 19, when the CPU 22 receives a flush command from the host 2, no data is stored in the user data area UR. That is, no data in the MLC state exists in the user data area UR (S1001_False in FIG. 16). In this case, the process of saving the write data in the user data area UR is omitted.
[0169] Since unwritten write data exists in the write buffer 251 (S1008_True in FIG. 17), the CPU 22 executes a process of saving the write data in the write buffer 251. For example, the CPU 22 sets the data in the buffer 0 of the write buffer 251 as data D0 (S1009 in FIG. 17). The CPU 22 acquires address information including the logical block number LBN “0”, the block BLK_H0, the word line WL0, and the page type L (Lower) as the address Add_0 to which the data D0 is to be written (S1010). Since the address Add_0 is not registered in the save flag table 241 (S1011_False in FIG. 17), the CPU 22 saves the data D0 to the save area SR (S1012). More specifically, the sequencer 105 selects the word line WL0 of the block BLK_S0 in the save area SR, and executes the write operation of the data D0. The CPU 22 registers the address Add_0 of the data D0 in entry 1 of the save flag table 241 (S1013). More specifically, in entry 1 of the save flag table 241, "0" is registered in the logical block number LBN field, "0" in the word line number WL# field, "L" in the page type PT field, and "H0" in the physical block number PBN field. Note that, for example, in the save flag table 241 of Fig. 19, the notation "- → 0" for the logical block number LBN in entry 1 indicates that the logical block number LBN has transitioned from an unregistered state "-" to a state in which "0" is registered. The same applies to the other items.
[0170] Next, the CPU 22 controls the ECC circuit 26 to generate parity data Ps0 of the data D0 saved in the save area SR (S1015 in FIG. 17). Then, the CPU 22 writes the parity data Ps0 to the save area SR (S1016). More specifically, the sequencer 105 selects the word line WL0 of the block BLK_S1 in the save area SR, and executes the write operation of the parity data Ps0.
[0171] 19, no parity data is stored in the parity buffer 252 (S2001_False in FIG. 18). In this case, the process of saving the parity data in the parity buffer 252 is omitted.
[0172] After the save operation is completed, the CPU 22 transmits to the host 2 a completion response to the flush command.
[0173] As shown in the first specific example of the first embodiment, the CPU 22 can save data (write data) in the write buffer 251 to the save area SR. The CPU 22 can also generate parity data based on the write data saved in the save area SR and write the parity data to the save area SR. The CPU 22 can protect the saved write data by generating parity data based on the saved write data.
[0174] At this time, information on the saved write data is registered in the save flag table 241. Therefore, the CPU 22 can appropriately manage the state of the saved write data.
[0175] 1.7.4.2 Second concrete example Next, a second specific example of the first embodiment will be described with reference to FIG. 20. In the second specific example of the first embodiment, a case will be described in which the CPU 22 receives a flush command from the host 2 in a state in which data in the MLC state is stored in the user data area UR. In other words, a case will be described in which the CPU 22 receives a flush command from the host 2 after a first write operation is executed and before the next first write operation is executed. FIG. 20 is a diagram showing changes in the write buffer 251, the parity buffer 252, the save flag table 241, the user data area UR, and the save area SR due to the save operation in the second specific example of the first embodiment. Note that the example of FIG. 20 shows a case in which data writing is continued after the data writing state described with reference to FIG. 19.
[0176] As shown in FIG. 20, when the CPU 22 receives a flash command from the host 2, data in the MLC state is stored in the user data area UR (S1001_True in FIG. 16). In the example of FIG. 20, the lower page data and the middle page data are stored in the cell unit CU corresponding to the word line WL0 of the block BLK_H0 of the logical block identified by the logical block number LBN “0” of the user data area UR. Also, the parity buffer 252 stores parity data PL0 and PM0 corresponding to the lower page data and the middle page data, respectively. An arbitrary bit in the parity data PM0 is an example of the first error correction code. For example, as described in the first specific example of the first embodiment, the lower page data D0 has been saved in the save area SR. That is, the address Add_0 of the data D0 has been registered in the save flag table 241 (S1004_True in FIG. 16). For this reason, the save process of the data D0 is not executed.
[0177] Next, the CPU 22 sets the Middle page data in the data in the MLC state in the user data area UR as data D1 (S1002 in FIG. 16). The CPU 22 acquires address information including the logical block number LBN “0”, the block BLK_H0, the word line WL0, and the page type M (Middle) as a write destination address Add_1 of the data D1 (S1003 in FIG. 16). An arbitrary memory cell transistor MC of the write destination specified by the address Add_1 and a bit in the data D1 written to the memory cell transistor MC are an example of a first memory cell and a first bit data, respectively. Since the address Add_1 is not registered in the save flag table 241 (S1004_False in FIG. 16), the CPU 22 saves the data D1 to the save area SR (S1005). More specifically, the sequencer 105 selects the word line WL0 of the block BLK_S2 of the save area SR and executes the write operation of the data D1. Any memory cell transistor MC connected to word line WL0 of block BLK_S2 is an example of a second memory cell. The CPU 22 registers the address Add_1 of data D1 in entry 2 of the saving flag table 241 (S1006). More specifically, in entry 2 of the saving flag table 241, "0" is registered in the logical block number LBN field, "0" in the word line number WL# field, "M" in the page type PT field, and "H0" in the physical block number PBN field.
[0178] Next, since there is unwritten write data in the write buffer 251 (S1008_True in FIG. 17), the CPU 22 executes a process of saving the data in the write buffer 251. For example, the CPU 22 sets the data in the buffer 0 of the write buffer 251 as data D2 (S1009 in FIG. 17). Any bit in the data D2 is an example of the first write data. The CPU 22 acquires address information including the logical block number LBN "0", the block BLK_H1, the word line WL0, and the page type L (Lower) as the address Add_2 to which the data D2 is to be written (S1010). Since the address Add_2 is not registered in the save flag table 241 (S1011_False in FIG. 17), the CPU 22 saves the data D2 to the save area SR (S1012). More specifically, the sequencer 105 selects the word line WL0 of the block BLK_S3 of the save area SR, and executes the write operation of the data D2. Any memory cell transistor MC connected to the word line WL0 of the block BLK_S3 is an example of a third memory cell. The CPU 22 registers the address Add_2 of the data D2 in entry 3 of the save flag table 241 (S1013). More specifically, in entry 3 of the save flag table 241, "0" is registered in the logical block number LBN field, "0" in the word line number WL# field, "L" in the page type PT field, and "H1" in the physical block number PBN field.
[0179] Next, the CPU 22 controls the ECC circuit 26 to generate parity data Ps1 of the data D1 and D2 saved in the save area SR (S1015 in FIG. 17). Any bit in the parity data Ps1 is an example of a second error correcting code. Then, the CPU 22 writes the parity data Ps1 to the save area SR (S1016). More specifically, the sequencer 105 selects the word line WL0 of the block BLK_S4 in the save area SR to execute a write operation of the parity data Ps1. Any memory cell transistor MC connected to the word line WL0 of the block BLK_S4 is an example of a fourth memory cell.
[0180] The parity data PL0 and PM0 in the parity buffer 252 are not to be saved (S2001_False). Therefore, the process of saving the parity data in the parity buffer 252 is omitted. The data D1 and D2 saved in the save area SR are protected by the parity data Ps1. Therefore, the CPU 22 can recover data from a burst error even if the saving of the parity data PL0 and PM0 in the parity buffer 252 is omitted.
[0181] After the save operation is completed, the CPU 22 transmits to the host 2 a completion response to the flush command.
[0182] As shown in the second specific example of the first embodiment, the CPU 22 can save the data in the MLC state in the user data area UR to the save area SR while eliminating duplication of the data. The CPU 22 can also generate parity data based on the write data saved in the save area SR and write the parity data to the save area SR. By generating parity data based on the saved write data, the CPU 22 can protect the saved write data without saving the parity data PL0 and PM0 stored in the parity buffer 252.
[0183] 1.7.4.3 Third Specific Example Next, a third specific example of the first embodiment will be described with reference to FIG. 21. In the third specific example of the first embodiment, a case will be described in which the CPU 22 receives a flush command from the host 2 in a state in which Upper page data and Top page data are stored in a part of blocks BLK of the user data area UR. In other words, a case will be described in which the CPU 22 receives a flush command from the host 2 after the second write operation is executed and before the next second write operation is executed. FIG. 21 is a diagram showing changes in the write buffer 251, the parity buffer 252, the save flag table 241, the user data area UR, and the save area SR due to the save operation in the third specific example of the first embodiment. Note that the example of FIG. 21 shows a case in which data writing is continued after the data write state described using FIG. 20.
[0184] As shown in FIG. 21, when the CPU 22 receives a flash command from the host 2, data in the MLC state is stored in the user data area UR (S1001_True in FIG. 16). More specifically, the cell unit CU corresponding to the word line WL0 of the blocks BLK_H0 to BLK_H5 in the logical block identified by the logical block number LBN “0” in the user data area UR has completed up to the second write operation. The cell unit CU corresponding to the word line WL0 of the block BLK_H6 stores data D12 and D13 in the MLC state. The cell unit CU corresponding to the word line WL0 of the block BLK_H7 stores parity data PL0 and PM0. An arbitrary bit in the parity data PM0 is an example of the third error correction code. The parity data PL0 and PM0 are data in the MLC state. The parity buffer 252 stores parity data PU0 and PT0 corresponding to the Upper page data and the Top page data, respectively.
[0185] The CPU 22 selects, for example, data D12 from among the data in the MLC state in the user data area UR (S1002 in FIG. 16). The CPU 22 acquires address information including logical block number LBN “0”, block BLK_H6, word line WL0, and page type L (Lower) as a write destination address Add_12 of the data D12 (S1003 in FIG. 16). Since the address Add_12 is not registered in the save flag table 241 (S1004_False in FIG. 16), the CPU 22 saves the data D12 to the save area SR (S1005). More specifically, the sequencer 105 selects the word line WL0 of the block BLK_S5 of the save area SR to execute the write operation of the data D12. The CPU 22 registers the address Add_12 of the data D12 in entry 4 of the save flag table 241 (S1006). More specifically, in entry 4 of the save flag table 241, “0” is registered in the logical block number LBN field, “0” in the word line number WL# field, “L” in the page type PT field, and “H6” in the physical block number PBN field.
[0186] Next, the CPU 22 selects, for example, data D13 from the data in the MLC state in the user data area UR (S1002 in FIG. 16). The CPU 22 acquires address information including the logical block number LBN “0”, the block BLK_H6, the word line WL0, and the page type M (Middle) as the write destination address Add_13 of the data D13 (S1003 in FIG. 16). An arbitrary memory cell transistor MC of the write destination specified by the address Add_13 and a bit in the data D13 written to the memory cell transistor MC are an example of the fifth memory cell and the second bit data, respectively. Since the address Add_13 is not registered in the save flag table 241 (S1004_False), the CPU 22 saves the data D13 to the save area SR (S1005). More specifically, the sequencer 105 selects the word line WL0 of the block BLK_S6 of the save area SR to execute the write operation of the data D13. The CPU 22 registers the address Add_13 of the data D13 in entry 5 of the save flag table 241 (S1006). More specifically, in entry 5 of the save flag table 241, “0” is registered in the logical block number LBN field, “0” in the word line number WL# field, “M” in the page type PT field, and “H6” in the physical block number PBN field.
[0187] Next, since there is unwritten write data in the write buffer 251 (S1008_True in FIG. 17), the CPU 22 executes a process of saving the data in the write buffer 251. For example, the CPU 22 sets the data in the buffer 0 of the write buffer 251 as data D26 (S1009 in FIG. 17). Any bit in the data D26 is an example of second write data. The CPU 22 acquires address information including the logical block number LBN "0", the block BLK_H6, the word line WL0, and the page type U (Upper) as the address Add_26 to which the data D26 is to be written (S1010). Since the address Add_26 is not registered in the save flag table 241 (S1011_False in FIG. 17), the CPU 22 saves the data D26 to the save area SR (S1012). More specifically, the sequencer 105 selects the word line WL0 of the block BLK_S7 of the save area SR, and executes the write operation of the data D26. The CPU 22 registers the address Add_26 of the data D26 in the entry 6 of the save flag table 241 (S1013). More specifically, in the entry 6 of the save flag table 241, "0" is registered in the logical block number LBN field, "0" in the word line number WL# field, "U" in the page type PT field, and "H6" in the physical block number PBN field.
[0188] Next, the CPU 22 controls the ECC circuit 26 to generate parity data Ps2 for the data D12, D13, and D26 saved in the save area SR (S1015 in FIG. 17). Any bit in the parity data Ps2 is an example of a fourth error correcting code. Then, the CPU 22 writes the parity data Ps2 to the save area SR (S1016). More specifically, the sequencer 105 selects the word line WL0 of the block BLK_S8 in the save area SR to execute a write operation of the parity data Ps2. Any memory cell transistor MC connected to the word line WL0 of the block BLK_S8 is an example of a sixth memory cell.
[0189] Next, since the parity data PU0 and PT0 that have never been non-volatile are in the parity buffer 252 (S2001_True in FIG. 18), the CPU 22 executes a process of saving the parity data in the parity buffer 252. The CPU 22 saves the parity data PU0 and PT0 to the save area SR (S2002). More specifically, the sequencer 105 selects the word line WL0 of the block BLK_S9 in the save area SR, and executes a write operation of the parity data PU0. Next, the sequencer 105 selects the word line WL0 of the block BLK_S10 in the save area SR, and executes a write operation of the parity data PT0.
[0190] The data D12 and D13 saved in the save area SR are protected by the parity data Ps2. The data D26 saved in the save area SR is also protected by the parity data Ps2, but the data D14, D16, D18, D20, D22, and D24 in the user data area UR cannot be protected if the parity data PU0 is lost. Therefore, the CPU 22 saves the parity data PU0 in the parity buffer 252. Similarly, in order to protect the data D15, D17, D19, D21, D23, and D25 in the user data area UR, the CPU 22 saves the parity data PT0 in the parity buffer 252.
[0191] After the save operation is completed, the CPU 22 transmits to the host 2 a completion response to the flush command.
[0192] As shown in the third specific example of the first embodiment, the page data of the cell unit CU in the user data area UR that has been non-volatile (second write operation) is excluded from the target of the save process. More specifically, the Lower page data D0, D2, D4, D8, and D10, the Middle page data D1, D3, D5, D7, D9, and D11, the Upper page data D14, D16, D18, D20, D22, and D24, and the Top page data D15, D17, D19, D21, D23, and D25 corresponding to the word line WL0 of the blocks BLK_H0 to H5 in the user data area UR are excluded from the target of the save process. On the other hand, in order to protect the Upper page data and the Top page data in the user data area UR, the CPU 22 sets the parity data PU0 and PT0 stored in the parity buffer 252 as the target of the save process.
[0193] 1.8 Deleting an entry in the evacuated flag table Next, the timing of deleting an entry from the save flag table 241 will be described with reference to Fig. 22. Fig. 22 is a diagram showing the deletion of an entry from the save flag table 241.
[0194] As shown in Fig. 22, for example, when a write operation corresponding to the same word line WL number of each block BLK managed as one logical block is completed, the CPU 22 deletes information of each entry in the evacuation flag table 241. In other words, when a write operation of the parity data PL0, PM0, PU0, and PT0 to each block BLK managed as one logical block is completed, information of the entries of the write data corresponding to the parity data PL0, PM0, PU0, and PT0 is deleted in the evacuation flag table 241. In the example of Fig. 22, the second write operation is completed in each cell unit CU corresponding to the word line WL0 of the blocks BLK_H0 to BLK_H7. In this case, the CPU 22 deletes information of the entry corresponding to the word line WL0 in the evacuation flag table 241.
[0195] 1.9 Effects of this embodiment The configuration according to this embodiment can provide a memory system that can improve data reliability.
[0196] For example, when the power supply to the memory system is stopped during the second write operation, non-volatile data may be lost, or data in the MLC state (Lower page data and Middle page data) stored in the cell unit CU during the second write operation may be destroyed. Hereinafter, the destruction of the Lower page data or Middle page data written in the cell unit CU is referred to as "MLC destruction". For example, the host transmits a flash command to the memory system to guarantee the latest value of the data even when MLC destruction occurs. When the memory system receives the flash command from the host, it executes a process for guaranteeing the data. Here, in order to protect the data corresponding to the flash command, a method is considered in which padding data (invalid data) is written as Upper page data and Top page data in the cell unit CU storing the data in the MLC state, and the write operation (second write operation) is completed. However, in this case, the amount of invalid data increases, and the write amplification factor (WAF) increases. In addition, the time required to generate the padding data and to execute the second write operation is relatively long.
[0197] In contrast, with the configuration according to this embodiment, the memory system 3 can provide a save area SR in the memory area for saving data in response to a flash command. When the memory system 3 receives a flash command, it can save non-non-volatile data in the write buffer 251 and the parity buffer 252 and data in the MLC state in the user data area UR to the save area SR. This allows the memory system 3 to guarantee the latest value of the data that is the target of the flash command. Therefore, the memory system 3 can improve the reliability of the data.
[0198] Furthermore, in the configuration according to this embodiment, the memory system 3 can execute an SLC write operation in the save operation by configuring the memory cell transistors MC in the save area SR as SLC. The SLC write operation has a shorter processing time than the second write operation of QLC that writes padding data. Therefore, in an emergency such as a power outage, the processing time for data protection can be shortened.
[0199] Furthermore, in the configuration according to this embodiment, the memory system 3 includes a save flag table 241. By using the save flag table 241 to manage the data saved in the save area SR, it is possible to suppress duplication of data written in the save area SR. Therefore, it is possible to shorten the processing time for data protection.
[0200] 2. Second embodiment Next, a second embodiment will be described. In the second embodiment, a case where a part of the write data is written in the save area SR in a duplicated manner will be described. Hereinafter, a case where the same data can be saved in a duplicated manner will be referred to as "duplicate save". That is, in the save operation of the second embodiment, the write data is saved in duplicate and the parity data is de-duplicated. Below, the differences from the first embodiment will be mainly described.
[0201] 2.1 Configuration of the evacuation flag table First, an example of the configuration of the save flag table 241 will be described with reference to Fig. 23. Fig. 23 is a diagram showing an example of the configuration of the save flag table 241.
[0202] 23, the save flag table 241 of this embodiment includes a write buffer save flag table 241a and a user data area save flag table 241b. The write buffer save flag table 241a and the user data area save flag table 241b are examples of the second table and the third table, respectively.
[0203] The write buffer evacuation flag table 241a includes a plurality of entries for storing address information of write data evacuated from the write buffer 251 to the evacuation area SR. The configuration of the table is similar to that of the evacuation flag table 241 of the first embodiment described with reference to FIG. 9. In the example of FIG. 23, address information is stored in entry 1 of the write buffer evacuation flag table 241a. For example, entry 1 has "0" registered in the logical block number LBN field, "0" in the word line number WL# field, "L" in the page type PT field, and "H0" in the physical block number PBN field.
[0204] The save flag table 241b for the user data area includes a plurality of entries for storing address information of the write data saved from the user data area UR to the save area SR. The configuration of the table is the same as the save flag table 241 of the first embodiment described with reference to FIG. 9. In the example of FIG. 23, the address information is stored in entry 1 of the save flag table 241b for the user data area. For example, in entry 1, "0" is registered in the logical block number LBN field, "0" in the word line number WL# field, "L" in the page type PT field, and "H0" in the physical block number PBN field.
[0205] 2.2 Flow of write data evacuation process Next, an example of the flow of a write data evacuation process will be described with reference to Fig. 24 and Fig. 25. Fig. 24 and Fig. 25 are a flow chart showing an example of a write data evacuation process.
[0206] As shown in FIG. 24, first, the CPU 22 executes the processes of steps S1001 to S1003, S1101, S1005, S1102, and S1007 described later to execute the save process of the write data (user data and error correction code of the user data) in the user data area UR.
[0207] The processes in steps S1001 to S1003 are similar to those in the first embodiment described with reference to FIG.
[0208] The CPU 22 acquires the write destination address Add_x of the data Dx (S1003), and checks whether the address Add_x has been registered in the save flag table 241b for the user data area (S1101).
[0209] If the address Add_x has not been registered (S1101_True), the CPU 22 proceeds to the process of step S1007 without saving the data Dx.
[0210] If the address Add_x has not been registered (S1101_False), the CPU 22 saves the data Dx in the save area SR (S1005). For example, the sequencer 105 executes a write operation of the data Dx in the save area SR.
[0211] When the CPU 22 finishes saving the data Dx, it registers the address Add_x of the data Dx in the user data area save flag table 241b (S1102).
[0212] If the address Add_x has already been registered (S1101_True), or after registering the address Add_x (S1102), the CPU 22 checks whether there is any MLC state data that has not yet been saved (not yet selected as a target for saving) in the user data area UR (S1007).
[0213] If there is data in the MLC state that has not yet been selected as a target for saving (S1007_True), the CPU 22 increments the variable x and then sets the data as data Dx (S1002).
[0214] If there is no MLC state data that has not yet been selected as the target for evacuation (S1007_False), as shown in FIG. 25, the CPU 22 executes the processes of steps S1008 to S1010, step S1103, step S1012, step S1104, and step S1014 described below to perform the evacuation process of the write data in the write buffer 251.
[0215] The processes in steps S1008 to S1010 are similar to those in the first embodiment described with reference to FIG.
[0216] The CPU 22 acquires the address Add_y to which the data Dy is to be written (S1010), and checks whether the address Add_y has already been registered in the write buffer evacuation flag table 241a (S1103).
[0217] If the address Add_y has already been registered (S1103_True), the CPU 22 proceeds to the process of step S1014 without saving the data Dy.
[0218] If the address Add_y has not been registered (S1103_False), the CPU 22 saves the data Dy in the save area SR (S1012). For example, the sequencer 105 executes a write operation of the data Dy in the save area SR.
[0219] When the CPU 22 finishes saving the data Dy, it registers the address Add_y of the data Dy in the write buffer save flag table 241a (S1104).
[0220] If the address Add_y has already been registered (S1103_True), or after registering the address Add_y (S1104), the CPU 22 checks whether there is any unwritten data in the write buffer 251 that has not yet been evacuated (not yet selected as a target for evacuation) (S1014).
[0221] If there is unwritten data that has not yet been selected as a target for saving (S1014_True), the CPU 22 increments the variable y and then sets the data as data Dy (S1009).
[0222] If there is no unwritten data that has not yet been selected as a target for saving (S1014_False), the CPU 22 controls the ECC circuit 26 to generate parity data of the data Dx and data Dy saved in the save area SR (S1015).
[0223] The CPU 22 writes the parity data of the data Dx and the data Dy to the save area SR (S1016). For example, the sequencer 105 executes the write operation of the parity data of the data Dx and the data Dy in the save area SR.
[0224] After completing the process of step S1016, the CPU 22 ends the write data saving process.
[0225] 2.3 Parity data evacuation process flow Next, the flow of the parity data evacuation process will be described. The flow of the parity data evacuation process in this embodiment is similar to that in the first embodiment described with reference to FIG.
[0226] 2.4 Specific examples of evacuation operations Next, three specific examples of the retreat operation will be described. The following description will focus on the differences from the first to third specific examples of the first embodiment.
[0227] 2.4.1 First concrete example First, a first specific example of the second embodiment will be described with reference to FIG. 26. In the first specific example of the second embodiment, a case will be described in which the CPU 22 receives a flush command from the host 2 in a state where no data is stored in the user data area UR, similar to the first specific example of the first embodiment (FIG. 19). FIG. 26 is a diagram showing changes in the write buffer 251, the parity buffer 252, the write buffer save flag table 241a, the user data area save flag table 241b, the user data area UR, and the save area SR due to a save operation in the first specific example of the second embodiment. Note that in the example of FIG. 26, the states of the data stored in the write buffer 251, the parity buffer 252, and the user data area UR are the same as those in the first specific example of the first embodiment (FIG. 19).
[0228] As shown in FIG. 26, similarly to the first specific example (FIG. 19) of the first embodiment, the CPU 22 executes the evacuation process of the write data of the write buffer 251. For example, the CPU 22 sets the data of the buffer 0 of the write buffer 251 as data D0 (S1009 in FIG. 25). The CPU 22 acquires address information including the address Add_0 to which the data D0 is to be written (S1010). Since the address Add_0 is not registered in the evacuation flag table 241a for the write buffer (S1103_False in FIG. 25), the CPU 22 evacuates the data D0 to the evacuation area SR (S1012). More specifically, the sequencer 105 selects the word line WL0 of the block BLK_S0 of the evacuation area SR to execute the write operation of the data D0. The CPU 22 registers the address Add_0 of the data D0 in entry 1 of the evacuation flag table 241a for the write buffer (S1104).
[0229] The operations from S1104 onwards are similar to those in the first embodiment described with reference to FIG.
[0230] After the save operation is completed, the CPU 22 transmits to the host 2 a completion response to the flush command.
[0231] As shown in the first specific example of the second embodiment, the CPU 22 can save data (write data) in the write buffer 251 to the save area SR. At this time, information on the saved data is registered in the write buffer save flag table 241a.
[0232] 2.4.2 Second concrete example Next, a second specific example of the second embodiment will be described with reference to FIG. 27. In the second specific example of the second embodiment, a case will be described in which the CPU 22 receives a flush command from the host 2 in a state where data in the MLC state is stored in the user data area UR, as in the second specific example of the first embodiment (FIG. 20). FIG. 27 is a diagram showing changes in the write buffer 251, the parity buffer 252, the write buffer save flag table 241a, the user data area save flag table 241b, the user data area UR, and the save area SR due to the save operation in the second specific example of the second embodiment. Note that the example of FIG. 27 shows a case where data writing is continued after the data writing state described with reference to FIG. 26. Also, in the example of FIG. 27, the states of the data stored in the write buffer 251, the parity buffer 252, and the user data area UR are the same as those in the second specific example of the first embodiment (FIG. 20).
[0233] As shown in FIG. 27, the CPU 22 selects data D0 from among data D0 and D1 in the MLC state stored in the user data area UR (S1002 in FIG. 24). The CPU 22 acquires address information including a write destination address Add_0 of the data D0 (S1003 in FIG. 24). Since the address Add_0 is not registered in the save flag table 241b for the user data area (S1101_False in FIG. 24), the CPU 22 saves the data D0 to the save area SR (S1005). More specifically, the sequencer 105 selects the word line WL0 of the block BLK_S2 of the save area SR to execute the write operation of the data D0. The CPU 22 registers the address Add_0 of the data D0 in entry 1 of the save flag table 241b for the user data area (S1102).
[0234] Next, the CPU 22 sets the data of the Middle page as data D1 (S1002 in FIG. 24). The CPU 22 acquires address information including a write destination address Add_1 of the data D1 (S1003 in FIG. 24). Since the address Add_1 is not registered in the save flag table 241b for the user data area (S1101_False in FIG. 24), the CPU 22 saves the data D1 to the save area SR (S1005). More specifically, the sequencer 105 selects the word line WL0 of the block BLK_S3 of the save area SR, and executes the write operation of the data D1. The CPU 22 registers the address Add_1 of the data D1 in entry 2 of the save flag table 241b for the user data area (S1102).
[0235] Next, the CPU 22 executes a process of saving data in the write buffer 251. For example, the CPU 22 sets the data in the buffer 0 of the write buffer 251 as data D2 (S1009 in FIG. 25). The CPU 22 acquires address information including an address Add_2 to which the data D2 is to be written (S1010). Since the address Add_2 is not registered in the save flag table 241a for the write buffer (S1103_False in FIG. 25), the CPU 22 saves the data D2 to the save area SR (S1012). More specifically, the sequencer 105 selects the word line WL0 of the block BLK_S4 of the save area SR to execute a write operation of the data D2. The CPU 22 registers the address Add_2 of the data D2 in entry 2 of the save flag table 241a for the write buffer (S1104).
[0236] Next, the CPU 22 controls the ECC circuit 26 to generate parity data Ps1 for the data D0, D1, and D2 saved in the save area SR (S1015 in FIG. 25). Then, the CPU 22 writes the parity data Ps1 to the save area SR (S1016). More specifically, the sequencer 105 selects the word line WL0 of the block BLK_S5 in the save area SR, and executes the write operation of the parity data Ps1.
[0237] The parity data PL0 and PM0 in the parity buffer 252 are not to be saved (S2001_False). Therefore, the process of saving the parity data in the parity buffer 252 is omitted.
[0238] After the save operation is completed, the CPU 22 transmits to the host 2 a completion response to the flush command.
[0239] As shown in the second specific example of the second embodiment, the CPU 22 can save the data in the MLC state in the user data area UR in a redundant manner to the save area SR. Also, as in the second specific example of the first embodiment, the CPU 22 can generate parity data based on the write data saved in the save area SR and write the parity data to the save area SR. This allows the CPU 22 to protect the saved write data without saving the parity data PL0 and PM0 stored in the parity buffer 252.
[0240] 2.4.3 Third Example Next, a third specific example of the second embodiment will be described with reference to FIG. 28. In the third specific example of the second embodiment, a case will be described in which the CPU 22 receives a flush command from the host 2 in a state in which Upper page data and Top page data are stored in some blocks BLK of the user data area UR, similarly to the third specific example of the first embodiment (FIG. 21). FIG. 28 is a diagram showing changes in the write buffer 251, the parity buffer 252, the write buffer save flag table 241a, the user data area save flag table 241b, the user data area UR, and the save area SR due to the save operation in the third specific example of the second embodiment. Note that the example of FIG. 28 shows a case in which data writing is continued after the data write state described with reference to FIG. 27. Also, in the example of FIG. 28, the state of the data stored in the write buffer 251, the parity buffer 252, and the user data area UR is the same as the third specific example of the first embodiment (FIG. 21).
[0241] As shown in FIG. 28, the CPU 22 selects, for example, data D12 from among data D12 and D13 in the MLC state stored in the user data area UR (S1002 in FIG. 24). The CPU 22 acquires address information including a write destination address Add_12 of the data D12 (S1003 in FIG. 24). Since the address Add_12 is not registered in the save flag table 241b for the user data area (S1101_False in FIG. 24), the CPU 22 saves the data D12 to the save area SR (S1005). More specifically, the sequencer 105 selects the word line WL0 of the block BLK_S6 in the save area SR to execute the write operation of the data D12. The CPU 22 registers the address Add_12 of the data D12 in entry 3 of the save flag table 241b for the user data area (S1102).
[0242] Next, the CPU 22 selects, for example, data D13 (S1002 in FIG. 24). The CPU 22 acquires address information including a write destination address Add_13 of the data D13 (S1003 in FIG. 24). Since the address Add_13 is not registered in the save flag table 241b for the user data area (S1101_False), the CPU 22 saves the data D13 to the save area SR (S1005). More specifically, the sequencer 105 selects the word line WL0 of the block BLK_S7 of the save area SR, and executes the write operation of the data D13. The CPU 22 registers the address Add_13 of the data D13 in entry 4 of the save flag table 241b for the user data area (S1102).
[0243] Next, the CPU 22 executes a process of saving data in the write buffer 251. For example, the CPU 22 sets the data in the buffer 0 of the write buffer 251 as data D26 (S1009 in FIG. 25). The CPU 22 acquires address information including an address Add_26 to which the data D26 is to be written (S1010). Since the address Add_26 is not registered in the write buffer save flag table 241a (S1103_False in FIG. 25), the CPU 22 saves the data D26 to the save area SR (S1012). More specifically, the sequencer 105 selects the word line WL0 of the block BLK_S8 of the save area SR to execute a write operation of the data D26. The CPU 22 registers the address Add_26 of the data D26 in entry 3 of the write buffer save flag table 241a (S1104).
[0244] Next, the CPU 22 controls the ECC circuit 26 to generate parity data Ps2 for the data D12, D13, and D26 saved in the save area SR (S1015 in FIG. 25). Then, the CPU 22 writes the parity data Ps2 to the save area SR (S1016). More specifically, the sequencer 105 selects the word line WL0 of the block BLK_S9 in the save area SR, and executes the write operation of the parity data Ps2.
[0245] Next, the CPU 22 executes a process of saving the parity data in the parity buffer 252. For example, the CPU 22 first saves the parity data PU0 to the save area SR (S2002). More specifically, the sequencer 105 selects the word line WL0 of the block BLK_S10 of the save area SR and executes a write operation of the parity data PU0. Next, the CPU 22 saves the parity data PT0 to the save area SR (S2002). More specifically, the sequencer 105 selects the word line WL0 of the block BLK_S11 of the save area SR and executes a write operation of the parity data PT0.
[0246] After the save operation is completed, the CPU 22 transmits to the host 2 a completion response to the flush command.
[0247] As shown in the third specific example of the second embodiment, the page data of the cell unit CU in the user data area UR for which non-volatilization (second write operation) has been completed is excluded from the target of the evacuation process, similar to the third specific example of the first embodiment. Also, similar to the second specific example of the first embodiment, the CPU 22 can protect the evacuated write data without evacuating the parity data PL0 and PM0 stored in the parity buffer 252.
[0248] 2.5 Deleting an entry in the evacuation flag table Next, the timing of deleting entries from the write buffer save flag table 241a and the user data area save flag table 241b will be described with reference to Figures 29 and 30. Figure 29 is a diagram showing the deletion of an entry from the write buffer save flag table 241a. Figure 30 is a diagram showing the deletion of an entry from the user data area save flag table 241b.
[0249] As shown in FIG. 29, information in each entry of the write buffer evacuation flag table 241a is deleted when the write data stored in the write buffer 251 is written to the user data area UR. More specifically, in the example of FIG. 29, it is assumed that the evacuation process is executed when data D0 is stored in the write buffer 251. For this reason, information corresponding to data D0 is registered in entry 1 of the write buffer evacuation flag table 241a. Then, it is assumed that data D1 is stored in the write buffer 251, and data D0 and D1 are written to the user data area UR. In response to data D0 being written to the user data area UR, the CPU 22 deletes the information of data D0 in entry 1 of the write buffer evacuation flag table 241a.
[0250] As shown in Fig. 30, similarly to the first embodiment described with reference to Fig. 22, information of each entry of the user data area save flag table 241b is deleted, for example, at the timing when a write operation corresponding to the same word line WL number of each block BLK managed as one logical block is completed. In the example of Fig. 30, the second write operation is completed in each cell unit CU corresponding to the word line WL0 of blocks BLK_H0 to BLK_H7. In this case, the CPU 22 deletes information of the entry corresponding to the word line WL0 in the user data area save flag table 241b.
[0251] 2.6 Effects of this embodiment With the configuration according to this embodiment, the same effects as those of the first embodiment can be obtained.
[0252] Furthermore, with the configuration according to the present embodiment, it is possible to save the write data in duplicate. By writing the same data to the save area SR multiple times, it is possible to reduce the possibility of data loss due to erroneous writing during the save operation, thereby improving the reliability of data protection.
[0253] 3. Third embodiment Next, a third embodiment will be described. In the third embodiment, a case where a part of the parity data is written in duplicate to the save area SR will be described. That is, in the save operation of the third embodiment, the write data is de-duplicated and the parity data is evacuated in duplicate. Note that the duplicate evacuation of the parity data refers to a state in which the write data evacuated to the save area SR is protected by multiple parity data. The following mainly describes the points that are different from the first and second embodiments.
[0254] 3.1 Flow of write data evacuation process First, the flow of the write data evacuation process will be described. The flow of the write data evacuation process in this embodiment is similar to that in the first embodiment described with reference to FIGS.
[0255] 3.2 Parity data evacuation process flow Next, an example of the flow of a parity data evacuation process will be described with reference to Fig. 31. Fig. 31 is a flow chart showing an example of a parity data evacuation process.
[0256] 31, the CPU 22 checks whether or not there is parity data that has never been made non-volatile in the parity buffer 252 (S2101). More specifically, for example, the CPU 22 checks whether or not the parity data PL0, PM0, PU0, and PT0 in the parity buffer 252 have never been stored in the user data area UR or the save area SR.
[0257] If there is no parity data that has never been non-volatilized (S2101_False), there is no parity data to be saved in the parity buffer 252, and therefore the CPU 22 ends the parity data saving process.
[0258] If there is parity data that has never been non-volatilized (S2101_True), the CPU 22 selects one piece of target parity data and saves it in the save area SR (S2102).
[0259] The CPU 22 checks whether there is any parity data that has not yet been selected as a save target and has never been made non-volatile (S2103).
[0260] If there is parity data that has not yet been selected as the save target and has never been non-volatilized (S2103_True), the CPU 22 selects the target parity data and saves it in the save area SR (S2102).
[0261] If there is no parity data that has not yet been selected as the save target and has not been non-volatilized even once (S2103_False), the CPU 22 ends the parity data save process.
[0262] In the first embodiment described with reference to FIG. 18, the parity data of the Lower page data and the Middle page data is not saved to the save area SR. On the other hand, in this embodiment, the parity data of the Lower page data and the Middle page data is also saved to the save area SR. As a result, in the save area SR, the protection of the write data by the parity data stored in the parity buffer 252 and the protection of the write data by the parity data generated based on the write data written to the save area SR may overlap. In other words, at least a part of the write data saved in the save area SR is protected by multiple parity data. That is, the parity data of at least a part of the write data is saved in a redundant manner.
[0263] 3.3 Example of evacuation operation Next, two specific examples of the save operation will be shown. The following will focus on the parity data save process.
[0264] 3.3.1 First concrete example First, a first specific example of the third embodiment will be described with reference to FIG. 32. In the first specific example of the third embodiment, a case will be described in which the CPU 22 receives a flush command from the host 2 in a state in which data in the MLC state is stored in the user data area UR, as in the second specific example of the first embodiment (FIG. 20). FIG. 32 is a diagram showing changes in the write buffer 251, the parity buffer 252, the save flag table 241, the user data area UR, and the save area SR due to the save operation in the first specific example of the third embodiment. Note that the example of FIG. 32 shows a case in which data writing is continued after the data writing state described using FIG. 19. In addition, in the example of FIG. 32, the state of the data stored in the write buffer 251, the parity buffer 252, and the user data area UR is the same as that in the second specific example of the first embodiment (FIG. 20).
[0265] 32, first, the CPU 22 executes a write data saving process, which is similar to the second specific example of the first embodiment described with reference to FIG.
[0266] Next, since the parity data that has never been non-volatile is in the parity buffer 252 (S2101_True in FIG. 31), the CPU 22 executes a process of saving the parity data in the parity buffer 252. For example, the CPU 22 first saves the parity data PL0 to the save area SR (S2102). More specifically, the sequencer 105 selects the word line WL0 of the block BLK_S5 of the save area SR and executes a write operation of the parity data PL0. Next, the CPU 22 saves the parity data PM0 to the save area SR (S2102). More specifically, the sequencer 105 selects the word line WL0 of the block BLK_S6 of the save area SR and executes a write operation of the parity data PM0. As a result, for example, the data D0 is protected by the parity data Ps0 and PL0. That is, the parity data Ps0 and PL0 for the data D0 are saved in a redundant manner. Similarly, data D1 is protected by parity data Ps1 and PM0. Furthermore, data D2 is protected by parity data Ps1 and PL0. That is, the parity data Ps1 for data D1 and D2, as well as PM0 and PL0, are saved in duplicate.
[0267] After the save operation is completed, the CPU 22 transmits to the host 2 a completion response to the flush command.
[0268] As shown in the first specific example of the third embodiment, the CPU 22 can evacuate the data in the MLC state in the user data area UR to the evacuation area SR while eliminating duplication of the data, as in the second specific example of the first embodiment. At this time, the CPU 22 can evacuate the parity data PL0 and PM0 stored in the parity buffer 252, thereby evacuating the parity data in duplicate.
[0269] 3.3.2 Second concrete example Next, a second specific example of the third embodiment will be described with reference to FIG. 33. In the second specific example of the third embodiment, a case will be described in which the CPU 22 receives a flush command from the host 2 in a state in which Upper page data and Top page data are stored in some blocks BLK of the user data area UR, similarly to the third specific example of the first embodiment (FIG. 21). FIG. 33 is a diagram showing changes in the write buffer 251, the parity buffer 252, the save flag table 241, the user data area UR, and the save area SR due to the save operation in the second specific example of the third embodiment. Note that the example of FIG. 33 shows a case in which data writing is continued after the data writing state described using FIG. 32. Also, in the example of FIG. 33, the state of the data stored in the write buffer 251, the parity buffer 252, and the user data area UR is the same as the third specific example of the first embodiment (FIG. 21).
[0270] As shown in Fig. 33, first, the CPU 22 executes a write data evacuation process. The write data evacuation process is similar to the third specific example of the first embodiment described with reference to Fig. 21. In this example, the CPU 22 writes data D12, D13, and D26, and parity data Ps2 to blocks BLK_S7 to S10 of the evacuation area SR.
[0271] Next, since the parity data PU0 and PT0 that have never been non-volatile are in the parity buffer 252 (S2101_True in FIG. 31), the CPU 22 executes a process of saving the parity data in the parity buffer 252. The parity data PL0 and PM0 in the parity buffer 252 are not selected as the target for saving because they are saved in the blocks BLK_S5 and S6 of the save area SR, respectively. For example, the CPU 22 first saves the parity data PU0 to the save area SR (S2102). More specifically, the sequencer 105 selects the word line WL0 of the block BLK_S11 of the save area SR, and executes a write operation of the parity data PU0. Next, the CPU 22 saves the parity data PT0 to the save area SR (S2102). More specifically, the sequencer 105 selects the word line WL0 of the block BLK_S12 of the save area SR and executes the write operation of the parity data PT0. As a result, for example, the data D26 is protected by the parity data Ps2 and PU0. That is, the parity data Ps2 and PU0 for the data D26 are saved in duplicate.
[0272] After the save operation is completed, the CPU 22 transmits to the host 2 a completion response to the flush command.
[0273] As shown in the second specific example of the third embodiment, the page data of the cell unit CU in the user data area UR for which non-volatilization (second write operation) has been completed is excluded from the target of the evacuation process, as in the third specific example of the first embodiment. That is, the Upper page data and the Top page data of the user data area UR are excluded from the target of the evacuation process. In addition, the CPU 22 can evacuate the parity data PU0 and PT0 stored in the parity buffer 252, thereby evacuating the parity data in duplicate.
[0274] 3.4 Effects of this embodiment With the configuration according to this embodiment, the same effects as those of the first embodiment can be obtained.
[0275] Furthermore, with the configuration according to this embodiment, parity data can be saved in duplicate. This makes it possible to increase the number of attempts to correct a burst error in write data, thereby improving the reliability of data correction.
[0276] 4. Fourth embodiment Next, a fourth embodiment will be described. In the fourth embodiment, a case will be described in which a part of the write data and a part of the parity data are written in a redundant manner to the save area SR. That is, in the save operation of the fourth embodiment, the write data and the parity data are saved in a redundant manner. The following will mainly describe the points that are different from the first to third embodiments.
[0277] 4.1 Flow of write data evacuation process First, the flow of the write data evacuation process will be described. The flow of the write data evacuation process in this embodiment is similar to that in the second embodiment described with reference to FIGS.
[0278] 4.2 Parity data evacuation process flow Next, the flow of the parity data evacuation process will be described. The flow of the parity data evacuation process in this embodiment is similar to that in the third embodiment described with reference to FIG.
[0279] 4.3 Example of evacuation operation Next, two specific examples of the save operation will be given.
[0280] 4.3.1 First concrete example First, a first specific example of the fourth embodiment will be described with reference to FIG. 34. In the first specific example of the fourth embodiment, a case will be described in which the CPU 22 receives a flush command from the host 2 in a state in which data in the MLC state is stored in the user data area UR, as in the second specific example (FIG. 27) of the second embodiment. FIG. 34 is a diagram showing changes in the write buffer 251, the parity buffer 252, the write buffer save flag table 241a, the user data area save flag table 241b, the user data area UR, and the save area SR due to the save operation in the first specific example of the fourth embodiment. Note that the example of FIG. 34 shows a case in which data writing is continued after the data writing state described with reference to FIG. 26. Also, in the example of FIG. 34, the states of the data stored in the write buffer 251, the parity buffer 252, and the user data area UR are the same as those in the second specific example (FIG. 27) of the second embodiment.
[0281] 34, first, the CPU 22 executes a write data saving process, which is similar to the second specific example of the second embodiment described with reference to FIG.
[0282] Next, since there is parity data in the parity buffer 252 that has never been non-volatile (S2101_True in Fig. 31), the CPU 22 executes a process of saving the parity data in the parity buffer 252, similar to the first specific example of the third embodiment described using Fig. 32. That is, the CPU 22 saves the parity data PL0 and the parity data PM0 to the save area SR (S2102).
[0283] After the save operation is completed, the CPU 22 transmits to the host 2 a completion response to the flush command.
[0284] As shown in the first specific example of the fourth embodiment, the CPU 22 can perform control similar to that in the second specific example of the second embodiment and the first specific example of the third embodiment.
[0285] 4.3.2 Second Example Next, a second specific example of the fourth embodiment will be described with reference to FIG. 35. In the second specific example of the fourth embodiment, a case will be described in which the CPU 22 receives a flush command from the host 2 in a state in which Upper page data and Top page data are stored in a part of blocks BLK of the user data area UR, similarly to the third specific example of the second embodiment (FIG. 28). FIG. 35 is a diagram showing changes in the write buffer 251, the parity buffer 252, the write buffer save flag table 241a, the user data area save flag table 241b, the user data area UR, and the save area SR due to the save operation in the second specific example of the fourth embodiment. Note that the example of FIG. 35 shows a case in which data writing is continued after the data write state described with reference to FIG. 34. Also, in the example of FIG. 35, the state of the data stored in the write buffer 251, the parity buffer 252, and the user data area UR is the same as that of the third specific example of the second embodiment (FIG. 28).
[0286] As shown in Fig. 35, first, the CPU 22 executes a write data evacuation process. The write data evacuation process is similar to the third specific example of the second embodiment described with reference to Fig. 28. In this example, the CPU 22 writes data D12, D13, and D26, and parity data Ps2 to blocks BLK_S8 to S11 of the save area SR.
[0287] Next, since the parity data PU0 and PT0 that have never been non-volatile are in the parity buffer 252 (S2101_True in Fig. 31), the CPU 22 executes a process of saving the parity data in the parity buffer 252, similar to the second specific example of the third embodiment described using Fig. 33. That is, the CPU 22 saves the parity data PU0 and the parity data PT0 to the save area SR (S2102).
[0288] After the save operation is completed, the CPU 22 transmits to the host 2 a completion response to the flush command.
[0289] As shown in the second specific example of the fourth embodiment, the CPU 22 can perform control similar to that in the third specific example of the second embodiment and the second specific example of the third embodiment.
[0290] 4.4 Effects of this embodiment With the configuration according to this embodiment, the combined effects of the second and third embodiments can be obtained.
[0291] 5. Modifications, etc. The memory system (3) according to the embodiment includes a nonvolatile memory (10) and a memory controller (20). The nonvolatile memory (10) includes a first memory cell (MC) configured to store multiple bits of data including a first bit (middle bit) and a second bit (upper bit) in a nonvolatile manner, and a second memory cell (MC) configured to store at least one bit of data in a nonvolatile manner. The memory controller (20) is configured to execute a save operation in response to receiving a command (flash command) from a host, and to write the first bit data to the second memory cell in response to the first memory cell storing the first bit data as the first bit and the first memory cell not storing data as the second bit in the save operation, and then transmit a completion response to the command to the host.
[0292] According to the above embodiment, it is possible to provide a memory system with improved data reliability.
[0293] The embodiment is not limited to the above-described embodiment, and various modifications are possible. In addition, the above-described embodiments can be combined as much as possible.
[0294] Furthermore, in the above embodiments, "connection" also includes a state in which something else, such as a transistor or a resistor, is interposed between them and indirectly connected.
[0295] Although some embodiments of the present invention have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, substitutions, and modifications can be made without departing from the spirit of the invention. These embodiments and their modifications are included in the scope and spirit of the invention, and are included in the scope of the invention and its equivalents described in the claims. [Explanation of symbols]
[0296] 1...information processing system, 2...host, 3...memory system, 10...non-volatile memory, 11...memory chip, 14...sequencer, 20...memory controller, 21...host interface circuit, 22...CPU, 23...ROM, 24...RAM, 25...buffer memory, 26...ECC circuit, 27...NAND controller, 101...input / output circuit, 102...logic control circuit, 103...address register, 104...command register, 105...sequencer, 106...ready / busy circuit, 107...memory cell array, 108...row decoder, 109...sense amplifier, 110...data register, 111...column decoder, 241...evacuation flag table, 241a...evacuation flag table for write buffer 241a...evacuation flag table for user data area, 251...write buffer, 252...parity buffer
Claims
1. a non-volatile memory including: a first memory cell configured to non-volatilely store a plurality of bits of data including a first bit and a second bit; and a second memory cell configured to non-volatilely store at least one bit of data; Executes evacuation operations in response to receiving commands from the host; a memory controller configured to, in the save operation, transmit a completion response to the command to the host after writing the first bit data to the second memory cell in response to the first memory cell storing first bit data as the first bit and the first memory cell not storing data as the second bit; A memory system comprising:
2. the memory controller is configured to read the first bit of data from the first memory cell, and write the first bit of data read from the first memory cell to the second memory cell.
2. The memory system of claim 1.
3. Further comprising a first buffer; the non-volatile memory further includes a third memory cell configured to non-volatilely store at least one bit of data; In response to the first write data to be written as the second bit to the first memory cell being stored in the first buffer during the save operation, the memory controller: reading the first write data from the first buffer; and further configured to write the first write data read from the first buffer to the third memory cell.
2. The memory system of claim 1.
4. Further comprising a second buffer; the non-volatile memory further includes a fourth memory cell configured to non-volatilely store at least one bit of data; The memory controller includes: generating a first error correcting code corresponding to at least the first bit data; writing the first error code to the second buffer; In the retreat operation, generating a second error correction code based on at least one of the first bit data and the first write data; and writing the second error correction code to the fourth memory cell without writing the first error correction code stored in the second buffer to the non-volatile memory.
4. The memory system of claim 3.
5. The memory controller includes: Managing the non-volatile memory using a first table; The method is further configured to omit writing the first bit data to the second memory cell in response to information of the first bit data being registered in the first table in the save operation.
2. The memory system of claim 1.
6. The memory controller includes: managing the data written from the first buffer to the third memory cell using a second table, and managing the data written from the first memory cell to the second memory cell using a third table; In the retreat operation, writing the first write data to the third memory cell in response to information of the first write data not being registered in the second table; and writing the first bit data to the second memory cell when information of the first bit data is not registered in the third table.
4. The memory system of claim 3.
7. The memory controller is further configured to register information of the first write data in the second table after writing the first write data to the third memory cell.
7. The memory system of claim 6.
8. The memory controller is further configured to register information of the first bit data in the third table after writing the first bit data to the second memory cell.
7. The memory system of claim 6.
9. Further comprising a second buffer; the non-volatile memory further includes a fifth memory cell configured to non-volatilely store a plurality of bits of data, the plurality of bits including a third bit and a fourth bit; the memory controller generates a third error correction code corresponding at least to the first bit data and the second bit data stored in the fifth memory cell as the third bit; and further configured to write the third error code to the second buffer.
2. The memory system of claim 1.
10. Further comprising a first buffer; In the save operation, the memory controller and generating a fourth error correction code based on at least one of the first bit data, the second bit data, and the second write data in response to second write data to be written as the fourth bit to the fifth memory cell being stored in the first buffer.
10. The memory system of claim 9.
11. the non-volatile memory further comprising a sixth memory cell configured to non-volatilely store at least one bit of data; the memory controller is further configured to, in the save operation, write the fourth error correction code to the sixth memory cell without writing the third error correction code stored in the second buffer to the nonvolatile memory in response to the third error correction code being stored in the nonvolatile memory. The memory system of claim 10.
Citation Information
Patent Citations
Storage module and method for determining whether to back-up a previously-written lower page of data before writing an upper page of data
US9342410B2
Protection and recovery from sudden power failure in non-volatile memory devices
US9696918B2
SSD with non-blocking flush command
US9946496B2
