Storage device and operation method thereof

By performing mirror operations on multiple logical storage areas under the memory controller, and performing mirror operations asynchronously when the memory device is idle, the problem of low backup efficiency of existing storage devices is solved, and service quality and efficiency are improved.

CN113126895BActive Publication Date: 2024-08-30SK HYNIX INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010721269.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-24
Publication Date
2024-08-30
Estimated Expiration
2040-07-24

AI Technical Summary

Technical Problem

Existing storage devices have low efficiency during backup operations, and especially cannot effectively perform mirroring operations when the storage device is in an idle state, resulting in a decrease in quality of service (QoS).

Method used

A storage device and its operation method are designed. The memory controller performs mirroring operations on multiple logical storage areas at the request of the host, and performs the mirroring operations asynchronously when the memory device is in an idle state, using the mirror queue and the mapping manager. Copy data from the original storage area to the backup storage area.

Benefits of technology

The backup performance of the storage device is improved, the quality of service (QoS) is improved, and the data storage time under the control of the host is reduced. In particular, the mirror operation can be performed by itself when the storage device is idle, which improves efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113126895B_ABST
    Figure CN113126895B_ABST
Patent Text Reader

Abstract

The present technology relates to an electronic device. A storage device with improved backup performance according to the present technology includes: a memory device including a plurality of logical storage areas; and a memory controller. The memory controller controls the memory device to perform a memory operation on an original storage area in the plurality of logical storage areas according to a request of a host, and performs a mirroring operation of copying the memory operation performed on the original storage area to a backup storage area in the plurality of logical storage areas based on whether the memory device is in an idle state.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims the benefit of Korean Patent Application No. 10-2019-0178579, filed on December 30, 2019, which is hereby incorporated by reference in its entirety. Technical Field

[0003] The present disclosure relates to an electronic device, and more particularly, to a storage device and an operating method thereof. Background Art

[0004] A storage device is a device that stores data under the control of a host device such as a computer or a smart phone. A storage device may include a memory device that stores data and a memory controller for controlling the memory device. Memory devices are divided into volatile memory devices and non-volatile memory devices.

[0005] A volatile memory device is a device that stores data only when power is supplied and loses the stored data when the power is cut off. Volatile memory devices include static random access memory (SRAM), dynamic random access memory (DRAM), and the like.

[0006] A nonvolatile memory device is a device that does not lose data even when power is turned off. Nonvolatile memory devices include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), flash memory, etc. Summary of the invention

[0007] Embodiments of the present disclosure provide a storage device with improved backup performance and an operating method thereof.

[0008] A storage device according to an embodiment of the present disclosure includes: a memory device including a plurality of logical storage areas; and a memory controller. The memory controller controls the memory device to perform a memory operation on an original storage area among the plurality of logical storage areas according to a request of a host, and performs a mirroring operation of copying the memory operation performed on the original storage area to a backup storage area of ​​the plurality of logical storage areas based on whether the memory device is in an idle state.

[0009] A method for operating a storage device, the storage device comprising a mirror queue, an original storage area and a backup storage area, the method comprising: queuing at least one mirror command in the mirror queue, the mirror command being used to copy a memory operation performed on the original storage area to a mirror operation in the backup storage area; and executing the mirror operation according to the queued mirror command based on whether the storage device is in an idle state.

[0010] According to the present technology, a storage device with improved backup performance and an operating method thereof are provided. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 is a diagram for describing a storage device according to an embodiment of the present disclosure.

[0012] Figure 2 For description Figure 1 Schematic diagram of a memory device.

[0013] Figure 3 for Figure 2 Detailed diagram of a memory cell array.

[0014] Figure 4 is a diagram for describing a logical storage area according to an embodiment of the present disclosure.

[0015] Figure 5 For description Figure 1 A diagram of the configuration and operation of a memory controller.

[0016] Figure 6 For description Figure 5 A diagram of the configuration and operation of a mirror controller.

[0017] Figure 7 FIG. 2 is a diagram for describing a memory operation and a mirroring operation according to an embodiment of the present disclosure.

[0018] Figure 8 For description Figure 7 Schematic diagram of the mapping update.

[0019] Fig. 9 is a flowchart for describing the operation of the storage device according to an embodiment of the present disclosure.

[0020] Fig.10 For description Fig. 9 Flowchart of the mirrored command queue.

[0021] Fig.11 For description Fig. 9 Flowchart of the mirroring operation.

[0022] Fig.12 For description Figure 1 Schematic diagram of another embodiment of a memory controller.

[0023] Fig.13 A block diagram showing a memory card system to which a memory device according to an embodiment of the present disclosure is applied.

[0024] Fig.14A block diagram showing a storage device system to which a storage device according to an embodiment of the present disclosure is applied.

[0025] Fig.15 FIG. 1 is a block diagram showing a user system to which a storage device according to an embodiment of the present disclosure is applied. DETAILED DESCRIPTION

[0026] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.

[0027] Figure 1 2 is a diagram for describing a storage device 50 according to an embodiment of the present disclosure.

[0028] Reference Figure 1 , the storage device 50 may include a memory device 100 and a memory controller 200 that controls the operation of the memory device. The storage device 50 may store data under the control of a host 300 such as a cellular phone, a smart phone, an MP3 player, a laptop computer, a desktop computer, a game console, a TV, a tablet PC, or an in-vehicle infotainment system.

[0029] The storage device 50 may be manufactured as one of various types of storage devices according to a host interface as a communication method with the host 300. For example, the storage device 50 may be configured as any of various types of storage devices such as an SSD, a multimedia card in the form of MMC, eMMC, RS-MMC, and micro MMC, a secure digital card in the form of SD, mini SD, and micro SD, a universal serial bus (USB) storage device, a universal flash memory (UFS) device, a personal computer memory card international association (PCMCIA) card type storage device, a peripheral component interconnect (PCI) card type storage device, a high-speed PCI (PCI-E) card type storage device, a compact flash (CF) card, a smart media card, and a memory stick.

[0030] The memory device 50 may be manufactured as any of various types of packages. For example, the memory device 50 may be manufactured as any of various package types such as package on package (POP), system on package (SIP), system on chip (SOC), multi-chip package (MCP), chip on board (COB), wafer-level manufacturing package (WFP), and wafer-level stacked package (WSP).

[0031] The memory device 100 may store data. The memory device 100 may operate under the control of the memory controller 200. The memory device 100 may include a memory cell array including a plurality of memory cells storing data.

[0032] Each of the memory cells may be configured as a single-level cell (SLC) capable of storing one data bit, a multi-level cell (MLC) capable of storing two data bits, a triple-level cell (TLC) capable of storing three data bits, or a quad-level cell (QLC) capable of storing four data bits.

[0033] The memory cell array may include a plurality of memory blocks. Each memory block may include a plurality of memory cells. A memory block may include a plurality of pages. In an embodiment, a page may be a unit for storing data in the memory device 100 or reading data stored in the memory device 100.

[0034] A memory block may be a unit for erasing data. In an embodiment, the memory device 100 may be a double data rate synchronous dynamic random access memory (DDR SDRAM), a low power double data rate fourth generation (LPDDR4) SDRAM, a graphic double data rate (GDDR) SDRAM, a low power DDR (LPDDR), a Rambus dynamic random access memory (RDRAM), a NAND flash memory, a vertical NAND flash memory, a NOR flash memory device, a resistance random access memory (RRAM), a phase change memory (PRAM), a magnetoresistive random access memory (MRAM), a ferroelectric random access memory (FRAM), a spin transfer torque random access memory (STT-RAM), etc. In this specification, for ease of description, it is assumed that the memory device 100 is a NAND flash memory.

[0035] The memory device 100 is configured to receive a command and an address from the memory controller 200 and access an area of ​​the memory cell array selected by the address. That is, the memory device 100 can perform an operation indicated by the command on the area selected by the address. For example, the memory device 100 can perform a write operation (i.e., a programming operation), a read operation, and an erase operation. During a programming operation, the memory device 100 can program data to an area selected by an address. During a read operation, the memory device 100 can read data from an area selected by an address. During an erase operation, the memory device 100 can erase data stored in an area selected by an address.

[0036] In an embodiment, the memory device 100 may include a plurality of logical storage areas. The plurality of logical storage areas may be areas that logically group a plurality of physically divided storage spaces of the memory device 100. The memory device 100 may include an original storage area 110 and a backup storage area 120 for mirroring the original storage area among the plurality of logical storage areas. The number of the backup storage areas 120 is not limited to the present embodiment.

[0037] The memory controller 200 controls the overall operations of the memory device 50 .

[0038] The memory controller 200 may run firmware when power is applied to the memory device 50. When the memory device 100 is a flash memory device, the memory controller 200 may operate firmware such as a flash translation layer (FTL) to control communication between the host 300 and the memory device 100.

[0039] In an embodiment, the memory controller 200 may receive data and a logical block address (LBA) from the host 300 and convert the logical block address (LBA) into a physical block address (PBA) indicating an address of a memory cell storing data included in the memory device 100 .

[0040] The memory controller 200 may control the memory device 100 to perform a program operation, a read operation, or an erase operation in response to a request from the host 300. During a program operation, the memory controller 200 may provide a write command, a physical block address, and data to the memory device 100. During a read operation, the memory controller 200 may provide a read command and a physical block address to the memory device 100. During an erase operation, the memory controller 200 may provide an erase command and a physical block address to the memory device 100.

[0041] In an embodiment, the memory controller 200 may generate commands, addresses, and data and transmit the commands, addresses, and data to the memory device 100 independently of a request from the host 300. For example, the memory controller 200 may provide commands, addresses, and data to the memory device 100 to perform background operations such as a program operation for wear leveling and a program operation for garbage collection.

[0042] In an embodiment, the memory controller 200 may control at least two memory devices. In this case, the memory controller 200 may control the memory devices according to an interleaving method to improve operation performance. The interleaving method may be an operation method for overlapping operation periods of at least two memory devices.

[0043] In an embodiment, the memory controller 200 may logically group a plurality of physically divided storage spaces of the memory device 100 in response to a logical area setting command received from the host 300. The logically grouped storage areas may be logical storage areas. That is, the logical area setting command may be a command for allocating a plurality of physically divided storage spaces of the memory device 100 to at least one or more logical storage areas based on logical addresses.

[0044] The memory controller 200 may set the original storage area 110 and the backup storage area 120 for mirroring the original storage area 110 among a plurality of logical storage areas of the memory device 100 in response to the logical area setting command.

[0045] The memory controller 200 may include a mirror controller 210 and a mapping manager 220. The mirror controller 210 may control the memory device 100 to perform a mirror operation that replicates (or reproduces) a memory operation performed on the original memory area 110 in the backup memory area 120. The memory operation may be a program operation or an erase operation.

[0046] For example, when a program operation of storing data in the original storage area 110 is performed, the mirror controller 210 may control the memory device to store the same data as the data stored in the original storage area 110 in the backup storage area 120. When an erase operation is performed on a selected area of ​​the original storage area 110, the mirror controller 210 may control the memory device to erase a target area of ​​the backup storage area 120 corresponding to the selected area of ​​the original storage area 110.

[0047] The mirroring controller 210 may determine whether a memory operation is performed on the original memory area 110. When it is determined that the memory operation is performed, the mirroring controller 210 may control the memory device 100 to perform the mirroring operation.

[0048] The mirror controller 210 may determine whether the memory device 100 is in an idle state. When it is determined that the memory device 100 is in an idle state, the mirror controller 210 may control the memory device 100 to perform a mirroring operation. The idle state may be a state in which the memory device 100 does not perform any operation according to a request of the host 300.

[0049] In an embodiment, when the memory device 100 is in an idle state, the mirror controller 210 may determine whether a memory operation is performed on the original memory area 110, and control the memory device 100 to perform the mirror operation in a background method. In another embodiment, after performing a memory operation on the original memory area 110, the mirror controller 210 may determine whether the memory device 100 is in an idle state, and control the memory device 100 to perform the mirror operation in a background method.

[0050] The mapping manager 220 may store a mapping table corresponding to each of the plurality of logical storage areas. In an embodiment, the mapping manager 220 may store an original mapping table corresponding to the original storage area 110 and a backup mapping table corresponding to the backup storage area 120.

[0051] When a memory operation is performed, the mapping manager 220 may update the original mapping table and the backup mapping table. Specifically, the mapping manager 220 may update the original mapping table so that the physical address of the original storage area 110 indicating that the memory operation is performed and the logical address of the original storage area 110 received from the host 300 are mapped to each other. The mapping manager 220 may update the backup mapping table so that the physical address indicating the original storage area 110 and the logical address of the backup storage area 120 are mapped to each other. The logical address of the backup storage area 120 may correspond to the logical address of the original storage area 110. When the memory operation is performed but the mirroring operation is not performed, the latest valid data may be stored in the original storage area 110. Therefore, the logical address of the backup storage area 120 may be mapped to the physical address indicating the original storage area 110, rather than the physical address indicating the backup storage area 120.

[0052] Since the logical address of the backup storage area 120 is mapped to the physical address indicating the original storage area 110, even if a read operation is performed based on the logical address of the backup storage area 120 before the mirroring operation is performed, the latest valid data can be read normally.

[0053] When the mirroring operation is performed, the mapping manager 220 may update the backup mapping table. Specifically, the mapping manager 220 may update the backup mapping table so that the physical address of the backup storage area 120 indicating that the mirroring operation is performed and the logical address of the backup storage area 120 are mapped to each other. This is because when the mirroring operation is performed, the memory operation is replicated in the backup storage area 120, and the latest valid data is stored in the backup storage area 120.

[0054] In an embodiment, the memory controller 200 may further include an operation controller 230 .

[0055] The operation controller 230 may control the memory device 100 to perform a memory operation on the original memory area 110 in response to a request from the host 300. The memory operation may include a program operation to store data in the original memory area 110. The memory operation may include an erase operation to erase a selected memory area of ​​the original memory area 110.

[0056] The host 300 may communicate with the storage device 50 using at least one of various communication methods such as a universal serial bus (USB), a serial AT attachment (SATA), a serial SCSI (SAS), a high-speed inter-chip (HSIC), a small computer system interface (SCSI), a peripheral component interconnect (PCI), PCI express (PCIe), non-volatile memory express (NVMe), universal flash memory (UFS), secure digital (SD), a multimedia card (MMC), an embedded MMC (eMMC), a dual in-line memory module (DIMM), a registered DIMM (RDIMM), and a load-reduced DIMM (LRDIMM).

[0057] Figure 2 For description Figure 1 400 may correspond to Figure 1 A memory device 100 is provided.

[0058] Reference Figure 2 , the memory controller 400 may include a memory cell array 410 , a peripheral circuit 420 , and a control logic 430 .

[0059] The memory cell array 410 includes a plurality of memory blocks BLK1 to BLKz. The plurality of memory blocks BLK1 to BLKz are connected to the address decoder 421 through the row line RL. The plurality of memory blocks BLK1 to BLKz are connected to the read and write circuit 423 through the bit lines BL1 to LBm. Each of the plurality of memory blocks BLK1 to BLKz includes a plurality of memory cells. As an embodiment, the plurality of memory cells are nonvolatile memory cells. The memory cells connected to the same word line among the plurality of memory cells are defined as a physical page. That is, the memory cell array 410 is configured by a plurality of physical pages. In an embodiment, each of the plurality of memory blocks BLK1 to BLKz included in the memory cell array 410 may include a plurality of dummy cells. At least one of the dummy cells may be connected in series between the drain select transistor and the memory cell, and between the source select transistor and the memory cell.

[0060] Each of the memory cells of the memory device 400 may be configured as a single-level cell (SLC) capable of storing one data bit, a multi-level cell (MLC) capable of storing two data bits, a triple-level cell (TLC) capable of storing three data bits, or a quad-level cell (QLC) capable of storing four data bits.

[0061] The peripheral circuit 420 may include an address decoder 421 , a voltage generator 422 , a read and write circuit 423 , a data input / output circuit 424 , and a sensing circuit 425 .

[0062] The peripheral circuit 420 drives the memory cell array 410. For example, the peripheral circuit 420 may drive the memory cell array 410 to perform a program operation, a read operation, and an erase operation.

[0063] The address decoder 421 is connected to the memory cell array 410 through a row line RL. The row line RL may include a drain selection line, a word line, a source selection line, and a common source line. In an embodiment, the word line may include a normal word line and a dummy word line. In an embodiment, the row line RL may further include a pipeline selection line.

[0064] The address decoder 421 is configured to operate in response to the control of the control logic 430. The address decoder 421 receives the address ADDR from the control logic 430.

[0065] The address decoder 421 is configured to decode the block address of the address ADDR. The address decoder 421 selects at least one storage block from the storage blocks BLK1 to BLKz according to the decoded block address. The address decoder 421 is configured to decode the row address of the address ADDR. The address decoder 421 can select at least one word line among the word lines of the selected storage block according to the decoded row address. The address decoder 421 can apply the operating voltage Vop received from the voltage generator 422 to the selected word line.

[0066] During a program operation, the address decoder 421 may apply a program voltage to a selected word line and apply a pass voltage having a level less than that of the program voltage to unselected word lines. During a program verification operation, the address decoder 421 may apply a verification voltage to a selected word line and apply a verification pass voltage having a level greater than that of the verification voltage to unselected word lines.

[0067] During a read operation, the address decoder 421 may apply a read voltage to a selected word line, and apply a read pass voltage having a level greater than that of the read voltage to unselected word lines.

[0068] In an embodiment, the erase operation of the memory device 400 is performed in units of memory blocks. The address ADDR input to the memory device 400 during the erase operation includes a block address. The address decoder 421 can decode the block address and select at least one memory block according to the decoded block address. During the erase operation, the address decoder 421 can apply a ground voltage to the word line input to the selected memory block.

[0069] In an embodiment, the address decoder 421 may be configured to decode a column address of the transmitted address ADDR. The decoded column address may be transmitted to the read and write circuit 423. As an example, the address decoder 421 may include components such as a row decoder, a column decoder, and an address buffer.

[0070] The voltage generator 422 is configured to generate a plurality of operating voltages Vop by using an external power supply voltage supplied to the memory device 400. The voltage generator 422 operates in response to the control of the control logic 430.

[0071] As an example, the voltage generator 422 may generate the internal power supply voltage by adjusting the external power supply voltage. The internal power supply voltage generated by the voltage generator 422 is used as an operating voltage of the memory device 400.

[0072] In an embodiment, the voltage generator 422 may generate a plurality of operating voltages Vop using an external power supply voltage or an internal power supply voltage. The voltage generator 422 may be configured to generate various voltages required by the memory device 400. For example, the voltage generator 422 may generate a plurality of erase voltages, a plurality of program voltages, a plurality of pass voltages, a plurality of select read voltages, and a plurality of non-select read voltages.

[0073] In order to generate a plurality of operating voltages Vop having various voltage levels, the voltage generator 422 may include a plurality of pumping capacitors receiving an internal voltage, and selectively activate the plurality of pumping capacitors in response to the control logic 430 to generate the plurality of operating voltages Vop.

[0074] The plurality of generated operating voltages Vop may be supplied to the memory cell array 410 through the address decoder 421 .

[0075] The read and write circuit 423 includes first to mth page buffers PB1 to PBm. The first to mth page buffers PB1 to PBm are connected to the memory cell array 410 through first to mth bit lines BL1 to BLm, respectively. The first to mth page buffers PB1 to PBm operate in response to the control of the control logic 430.

[0076] The first to mth page buffers PB1 to PBm communicate data DATA with the data input / output circuit 424. At the time of programming, the first to mth page buffers PB1 to PBm receive data DATA to be stored through the data input / output circuit 424 and the data lines DL.

[0077] During a programming operation, when a programming voltage is applied to a selected word line, the first to mth page buffers PB1 to PBm may transmit the data DATA to be stored, that is, the data DATA received through the data input / output circuit 424 is transmitted to the selected memory cell through the bit lines BL1 to BLm. The memory cells of the selected page are programmed according to the transmitted data DATA. The memory cells connected to the bit lines to which a programming permission voltage (e.g., a ground voltage) is applied may have an increased threshold voltage. The threshold voltage of the memory cells connected to the bit lines to which a programming inhibition voltage (e.g., a power supply voltage) is applied may be maintained. During a programming verification operation, the first to mth page buffers PB1 to PBm read the data DATA stored in the memory cells from the selected memory cells through the bit lines BL1 to BLm.

[0078] During a read operation, the read and write circuit 423 may read data DATA from memory cells of a selected page through the bit lines BL and store the read data DATA in the first to mth page buffers PB1 to PBm.

[0079] During an erase operation, the read and write circuit 423 may float the bit line BL. In an embodiment, the read and write circuit 423 may include a column selection circuit (not shown).

[0080] The data input / output circuit 424 is connected to the first to mth page buffers PB1 to PBm through the data lines DL The data input / output circuit 424 operates in response to the control of the control logic 430 .

[0081] The data input / output circuit 424 may include a plurality of input / output buffers (not shown) that receive input data DATA. During a program operation, the data input / output circuit 424 receives data DATA to be stored from an external controller (not shown). During a read operation, the data input / output circuit 424 outputs data DATA transmitted from the first to mth page buffers PB1 to PBm included in the read and write circuit 423 to the external controller.

[0082] During a read operation or a verification operation, the sensing circuit 425 can generate a reference current in response to a signal of a permission bit VRYBIT generated by the control logic 430, and can compare the sensing voltage VPB received from the read and write circuit 423 with a reference voltage generated by the reference current to output a pass signal or a fail signal to the control logic 430.

[0083] The control logic 430 may be connected to the address decoder 421, the voltage generator 422, the read and write circuit 423, the data input / output circuit 424, and the sensing circuit 425. The control logic 430 may be configured to control all operations of the memory device 400. The control logic 430 may operate in response to a command CMD transmitted from an external device.

[0084] The control logic 430 may generate various signals in response to the command CMD and the address ADDR to control the peripheral circuit 420. For example, the control logic 430 may generate an operation signal OPSIG, a read and write circuit control signal PBSIGNALS, and a permission bit VRYBIT in response to the command CMD and the address ADDR. The control logic 430 may output the operation signal OPSIG to the voltage generator 422, the address ADDR to the address decoder 421, the read and write circuit control signal PBSIGNALS to the read and write circuit 423, and the permission bit VRYBIT to the sensing circuit 425. In addition, the control logic 430 may determine whether the verification operation is passed or failed in response to the pass or fail signal PASS / FAIL output by the sensing circuit 425.

[0085] Figure 3 for Figure 2 Detailed diagram of memory cell array 410.

[0086] Reference Figure 3 , the first to z-th memory blocks BLK1 to BLKz are commonly connected to the first to m-th bit lines BL1 to BLm. Figure 3 , for ease of description, elements included in the first memory block BLK1 among the plurality of memory blocks BLK1 to BLKz are shown, and elements included in each of the remaining memory blocks BLK2 to BLKz are omitted. It will be understood that each of the remaining memory blocks BLK2 to BLKz is configured similarly to the first memory block BLK1.

[0087] The memory block BLK1 may include a plurality of cell strings CS1_1 to CS1_m, where m is a positive integer. The first to mth cell strings CS1_1 to CS1_m are respectively connected to the first to mth bit lines BL1 to BLm. Each of the first to mth cell strings CS1_1 to CS1_m includes a drain select transistor DST, a plurality of memory cells MC1 to MCn connected in series, and a source select transistor SST, where n is a positive integer.

[0088] A gate terminal of a drain select transistor DST included in each of the first to mth cell strings CS1_1 to CS1_m is connected to a drain select line DSL1. Gate terminals of first to nth memory cells MC1 to MCn included in each of the first to mth cell strings CS1_1 to CS1_m are connected to first to nth word lines WL1 to WLn, respectively. A gate terminal of a source select transistor SST included in each of the first to mth cell strings CS1_1 to CS1_m is connected to a source select line SSL1.

[0089] For ease of description, the structure of the cell strings will be described with reference to the first cell string CS1_1 among the plurality of cell strings CS1_1 to CS1_m. However, it will be understood that each of the remaining cell strings CS1_2 to CS1_m is configured similarly to the first cell string CS1_1.

[0090] A drain terminal of a drain selection transistor DST included in the first cell string CS1_1 is connected to a first bit line BL1. A source terminal of a drain selection transistor DST included in the first cell string CS1_1 is connected to a drain terminal of a first memory cell MC1 included in the first cell string CS1_1. The first to nth memory cells MC1 to MCn are connected in series with each other. A drain terminal of a source selection transistor SST included in the first cell string CS1_1 is connected to a source terminal of an nth memory cell MCn included in the first cell string CS1_1. A source terminal of a source selection transistor SST included in the first cell string CS1_1 is connected to a common source line CSL. As an embodiment, the common source line CSL may be commonly connected to the first to zth storage blocks BLK1 to BLKz.

[0091] The drain selection line DSL1, the first to nth word lines WL1 to WLn, and the source selection line SSL1 are included in Figure 2 The drain select line DSL1, the first to nth word lines WL1 to WLn, and the source select line SSL1 are controlled by the address decoder 421. The common source line CSL is controlled by the control logic 430. The first to mth bit lines BL1 to BLm are controlled by the read and write circuit 423.

[0092] Figure 4 is a diagram for describing a logical storage area according to an embodiment.

[0093] Reference Figure 4 , refer to Figure 2 The described memory cell array 410 may include a plurality of logical storage areas. The plurality of logical storage areas may be areas that logically group a plurality of physically divided storage spaces of the memory cell array 410. The logically grouped storage areas may be logical unit numbers (LUNs).

[0094] Each logical storage area may include at least one plane (PL). A plane may be a unit that independently performs a program operation, an erase operation, and a read operation. A plane may include at least one storage block.

[0095] exist Figure 4 In the embodiment, the memory cell array 410 may include first to fourth logical storage areas LUN1 to LUN4. The number of logical storage areas included in the memory cell array 410 is not limited to the present embodiment.

[0096] For example, the second logical storage area LUN2 may include a first plane PL1 and a second plane PL2. Each plane may include first to nth storage blocks BLK1 to BLKn. The number of planes included in the logical storage area and the number of storage blocks included in the plane are not limited to this embodiment.

[0097] Each logical storage area may have the same structure. Therefore, the first, third and fourth logical storage areas LUN 1, LUN 3 and LUN 4 may also be described in the same manner as the second logical storage area LUN 2.

[0098] In an embodiment, according to a logical area setting command of the host, the first logical storage area LUN1 may be set as an original storage area, and the fourth logical storage area LUN4 may be set as a backup storage area.

[0099] The number of logical storage areas set as backup storage areas is not limited to the present embodiment. That is, the number of backup storage areas may be plural.

[0100] When performing a memory operation on the first logical storage area LUN 1, a mirroring operation may be performed on the fourth logical storage area LUN 4. The memory operation may be performed as a foreground operation according to a request of the host. The mirroring operation may be performed as a background operation according to whether the memory device is in an idle state.

[0101] Figure 5 For description Figure 1 Detailed configuration and operation of the memory controller 200 are shown in FIG.

[0102] Reference Figure 5 , the memory controller 200 may include a mirror controller 210 and a mapping manager 220 . The memory controller 200 may further include an operation controller 230 .

[0103] In an embodiment, the mirror controller 210 may include an idle sensor 211 , a mirror processor 212 , and a mirror queue 213 .

[0104] The idle sensor 211 may sense whether the memory device 100 is in an idle state. The idle sensor 211 may generate idle information indicating whether the memory device 100 is in an idle state. The idle state may be a state in which the memory device 100 does not perform an operation according to a request of the host 300.

[0105] The mirroring processor 212 may sense whether a memory operation is performed on the original storage area 110 based on the mapping update information provided from the mapping manager 220. The memory operation may include a program operation to store data in the original storage area 110. The memory operation may include an operation to erase a selected storage area of ​​the original storage area 110.

[0106] When a memory operation is performed on the original storage area 110 , the mirroring processor 212 may control the memory device 100 to perform a mirroring operation of duplicating (or reproducing) the memory operation in the backup storage area 120 .

[0107] Specifically, the mirroring processor 212 may generate at least one mirroring command MR CMD for a mirroring operation and provide the generated mirroring command MR CMD to the mirroring queue 213 .

[0108] The mirror command MR CMD may include at least one of a program command, a read command, and an erase command. For example, when the memory operation is a program operation, the mirror command MR CMD may include at least one of a read command and a program command. When the memory operation is an erase operation, the mirror command MR CMD may include an erase command.

[0109] The mirroring processor 212 may determine whether the memory device 100 is in an idle state based on the idle information received from the idle sensor 211. When the memory device 100 is in an idle state, the mirroring processor 212 may control the memory device 100 to perform a mirroring operation. That is, the mirroring processor 212 may control the memory device 100 to perform a mirroring operation in a background method.

[0110] The mirror processor 212 may determine whether there is a mirror command MR CMD queued in the mirror queue 213. The mirror queue 213 may be controlled to provide the mirror command MR CMD queued in the mirror queue 213 to the memory device 100.

[0111] In an embodiment, when the memory device 100 is in an idle state, the mirroring processor 212 may control the mirroring queue 213 to provide the mirroring command MR CMD to the memory device 100 according to whether there is a mirroring command MR CMD queued in the mirroring queue 213 .

[0112] In another embodiment, when there is a mirror command MR CMD queued in the mirror queue 213 , the mirror processor 212 may control the mirror queue 213 to provide the mirror command MR CMD to the memory device 100 according to whether the memory device 100 is in an idle state.

[0113] The mirror queue 213 may store the mirror commands MR CMD provided from the mirror processor 212. The mirror queue 213 may perform queuing for arranging the order of providing the mirror commands MR CMD to the memory device 100 under the control of the mirror processor 212. The mirror queue 213 may provide the queued mirror commands MR CMD to the memory device 100 under the control of the mirror processor 212.

[0114] The mapping manager 220 may store an original mapping table corresponding to the original storage area 110 and a backup mapping table corresponding to the backup storage area 120 .

[0115] When a memory operation is performed on the original storage area 110 by the operation controller 230, the mapping manager 220 may update the original mapping table and the backup mapping table. When the original mapping table is updated, the mapping manager 220 may generate mapping update information. The mapping update information may be information indicating whether the original mapping table is updated. The mapping manager 220 may provide the mapping update information to the mirroring processor 212.

[0116] Specifically, the mapping manager 220 may update the original mapping table so that the physical address of the original storage area 110 indicating the execution of the memory operation and the logical address of the original storage area 110 received from the host are mapped to each other. The mapping manager 220 may update the backup mapping table so that the physical address of the original storage area 110 and the logical address of the backup storage area 120 are mapped to each other. The logical address of the backup storage area 120 may correspond to the logical address of the original storage area 110.

[0117] When the memory operation is performed but the mirroring operation is not performed, the latest valid data may be stored in the original storage area 110. Therefore, the logical address of the backup storage area 120 may be mapped to the physical address indicating the original storage area 110, rather than the physical address indicating the backup storage area 120. Since the logical address of the backup storage area 120 is mapped to the physical address indicating the original storage area 110, even if a read operation is performed based on the logical address of the backup storage area 120 before the mirroring operation is performed, the latest valid data may be read normally.

[0118] When the mirroring controller 210 performs a mirroring operation on the backup storage area 120, the mapping manager 220 may update the backup mapping table. Specifically, the mapping manager 220 may update the backup mapping table so that the physical address of the backup storage area 120 indicating the execution of the mirroring operation and the logical address of the backup storage area 120 are mapped to each other. This is because when the mirroring operation is performed, the memory operation is replicated in the backup storage area 120, and the latest valid data is stored in the backup storage area 120.

[0119] The operation controller 230 may include an operation processor 231 and a command queue 232 .

[0120] The operation controller 231 may generate an operation command OP CMD for performing a memory operation on the original memory area 110 in response to a request of the host 300. The operation command OP CMD may include at least one of a program command and an erase command.

[0121] The operation processor 231 may provide the generated operation command OP CMD to the command queue 232. The operation processor 231 may control the command queue 232 to provide the operation command OP CMD to the memory device 100.

[0122] The command queue 232 may store the operation command OP CMD provided from the operation processor 231. The command queue 232 may provide the operation command OP CMD to the memory device 100 under the control of the operation processor 231.

[0123] Figure 6 For description Figure 5 A diagram of the configuration and operation of a mirror controller.

[0124] Reference Figure 6 The mirror controller 210 may include an idle sensor 211 , a mirror processor 212 , and a mirror queue 213 .

[0125] The idle sensor 211 may sense whether the memory device 100 is in an idle state. The idle sensor 211 may generate idle information Idle_INF indicating whether the memory device 100 is in an idle state. The idle state may be a state in which the memory device 100 does not perform an operation according to a request of the host 300.

[0126] The mirroring processor 212 may sense whether a memory operation is performed on the original memory area 110 based on the mapping update information Map UP_INF provided from the mapping manager 220 .

[0127] When a memory operation is performed on the original storage area 110, the mirror processor 212 may generate at least one mirror command MR CMD for a mirror operation. The mirror operation may be an operation of replicating the memory operation in the backup storage area 120. The mirror processor 212 may provide the generated mirror command to the mirror queue 213.

[0128] The mirror processor 212 may determine whether the memory device 100 is in an idle state according to the idle information Idle_INF received from the idle sensor 211. The mirror processor 212 may control the mirror queue 213 through the queue control information Que_CNT to provide the mirror command MR CMD queued by the mirror queue 213 to the memory device. Queuing may be arranging the order in which the mirror command MR CMD is provided to the memory device.

[0129] In an embodiment, when the memory device 100 is in an idle state, the mirroring processor 212 may control the mirroring queue 213 to provide the mirroring command MRCMD to the memory device according to whether the mirroring queue 213 is queuing the mirroring command MR CMD.

[0130] In another embodiment, when the mirror queue 213 is queuing the mirror command MR CMD, the mirror processor 212 may control the mirror queue 213 to provide the mirror command MR CMD to the memory device according to whether the memory device 100 is in an idle state.

[0131] The mirror queue 213 may store the mirror command MR CMD provided from the mirror processor 212. The mirror queue 213 may provide the mirror command MR CMD to the memory device in response to the queue control information Que_CNT.

[0132] Figure 7 FIG. 2 is a diagram for describing a memory operation and a mirroring operation according to an embodiment of the present disclosure.

[0133] Reference Figure 7 According to a request of the host, a memory operation may be performed on the source area S which is a selected storage area of ​​the original storage area 110. The memory operation may include a program operation of storing data in the source area S. The memory operation may include an operation of erasing the source area S.

[0134] When performing a memory operation on the source region S, a first mapping memory operation may be performed to update the original mapping table 221 and the backup mapping table 222. In the original mapping table 221, the source mapping data MS may include the logical address of the source region S. In the backup mapping table 222, the target mapping data MT may include the logical address of the target region T.

[0135] In the first mapping memory operation, the source mapping data MS of the original mapping table 221 may be updated so that the logical address of the source region S received from the host and the physical address indicating the source region S are mapped to each other. In the first mapping memory operation, the target mapping data MT of the backup mapping table 222 may be updated so that the logical address of the target region T corresponding to the logical address of the source region S and the physical address indicating the source region S are mapped to each other.

[0136] When the first mapping memory operation is completed, at least one mirror command MR for a mirror operation may be queued in the mirror queue 213. The mirror operation may be an operation of performing a memory operation performed on the source area S on the target area T of the backup storage area 120. The mirror command may be a read command, a program command, or an erase command.

[0137] When the mirror command MR is queued in the mirror queue 213, the mirror operation may be performed according to whether the memory device is in an idle state. Alternatively, when the memory device is in an idle state, the mirror operation may be performed according to whether the mirror command MR is queued in the mirror queue 213.

[0138] When the memory device is in an idle state, a mirroring operation may be performed on a target area T of the backup storage area 120 based on a mirroring command MR queued in the mirroring queue 213. The target area T may be an area corresponding to the source area S of the original storage area 110.

[0139] When the mirroring operation is performed, a second mapping memory operation may be performed to update the backup mapping table 222. In the second mapping memory operation, the target mapping data MT of the backup mapping table 222 may be updated so that the logical address of the target area T and the physical address indicating the target area T are mapped to each other.

[0140] exist Figure 7 In the embodiment, the memory operation, the first mapping update, and the mirror command queuing can be performed in the foreground operation. The mirror operation and the second mapping update can be performed in the background operation.

[0141] According to an embodiment of the present disclosure, when a memory operation is performed on the original storage area 110 according to a request of the host, a mirror operation can be asynchronously performed on the backup storage area 120 according to whether the memory device is in an idle state. Therefore, when a memory operation is performed on the storage device according to a request of the host, there is an advantage that the storage device senses whether the memory operation is performed by itself without host control after the memory operation, and performs the mirror operation. Since the asynchronous mirror operation is performed when the memory device is in an idle state, the quality of service (QoS) can be improved.

[0142] The storage device may store data files in the original storage area 110 and the backup storage area 120 under the control of the host. In this case, it may take time tDownload for each storage area. The total download time may be 2*tDownload. For example, when the number of backup storage areas increases from one to two, the total download time may increase to 3*tDownload. That is, when data files are stored in the backup storage area under the control of the host, the total download time may increase.

[0143] However, according to the present embodiment, even if the data file is stored only in the original storage area 110, and it is not necessary to store the data file in the backup storage area 120, when the storage device is in an idle state, the same data as the data stored in the area 110 can also be stored in the backup storage area 120. Therefore, since the data file only needs to be stored in the original storage area 110 under the control of the host, and has nothing to do with the backup storage area 120, the total download time can be improved to tDownload.

[0144] Figure 8 For description Figure 7 Schematic diagram of the mapping update.

[0145] Reference Figure 4 and Figure 8 , the backup storage area among the multiple logical storage areas may be a storage area used to mirror the original storage area.

[0146] exist Figure 8 In the example, the physical address indicating the original storage area may be PBA1 to PBA100. The physical address indicating the source area of ​​the original storage area may be PBA20 to PBA50. The physical address indicating the backup storage area may be PBA101 to PBA200. The physical address indicating the target area among the backup storage areas may be PBA120 to PBA150. The target area may be a storage area for mirroring the source area.

[0147] The physical address indicating each storage area is not limited to the present embodiment.

[0148] The original mapping table 221 corresponding to the original storage area may include the logical addresses LBA1 to LBA100 of the original storage area. The logical addresses of the source area of ​​the original storage area may be LBA20 to LBA50. The backup mapping table 222 corresponding to the backup storage area may include the logical addresses LBA101 to LBA200 of the backup storage area. The logical addresses of the target area of ​​the backup storage area may be LBA120 to LBA150.

[0149] As reference Figure 7As described above, when a memory operation is performed on the source region, a first mapping memory operation may be performed.

[0150] In the first mapping memory operation, the original mapping table 221 may be updated so that the logical addresses LBA20 to LBA50 of the source area and the physical addresses PBA20 to PBA50 indicating the source area are mapped to each other.

[0151] In the first mapping memory operation, the backup mapping table 221 may be updated so that the logical addresses LBA120 to LBA150 of the target area and the physical addresses PBA20 to PBA50 indicating the source area are mapped to each other.

[0152] After performing the memory operation and before performing the mirroring operation, since the memory operation performed on the source area is not copied (or reproduced) to the target area, the logical address of the target area can be mapped to the physical address of the source area. Therefore, even if a read operation is performed based on the logical address of the target area, valid data can be read normally with reference to the physical address of the source area.

[0153] When the mirror operation is performed on the target area, a second mapping memory operation may be performed. In the second mapping memory operation, the backup mapping table 222 may be updated so that the logical addresses LBA120 to LBA150 of the target area and the physical addresses PBA120 to PBA150 indicating the target area are mapped to each other.

[0154] When a mirroring operation is performed, since a memory operation performed on a source area is replicated in a target area, a logical address of the target area may be mapped to a physical address of the target area.

[0155] Fig. 9 is a flowchart for describing the operation of the storage device according to an embodiment of the present disclosure.

[0156] Reference Fig. 9 In step S901, the storage device may perform a memory operation on the original storage area. The memory operation may be an operation of programming data into the original storage area or erasing data stored in the original storage area.

[0157] In step S903, the storage device may perform a first mapping update. Figure 8 In the first mapping update, the original mapping table corresponding to the original storage area and the backup mapping table corresponding to the backup storage area may be updated. The original mapping table may include the logical address of the original storage area. The backup mapping table may include the logical address of the backup storage area.

[0158] Specifically, the original mapping table can be updated so that the logical address of the original storage area received from the host and the physical address indicating the original storage area are mapped to each other. The backup mapping table can be updated so that the logical address of the backup storage area corresponding to the logical address of the original storage area and the physical address indicating the original storage area are mapped to each other.

[0159] In step S905, the storage device may queue a mirror command for a mirror operation. A mirror operation may be an operation of copying a memory operation performed on an original storage area to a target storage area. The storage device may sense whether a memory operation is performed on the original storage area, and when a memory operation is performed, the storage device may queue a mirror command for a mirror operation.

[0160] In step S907, the storage device may perform a mirroring operation on the target storage area based on whether the storage device is in an idle state. When the storage device is in an idle state, the storage device may perform a mirroring operation based on a mirroring command queued in a mirroring queue.

[0161] In step S909, the storage device may perform a second mapping update. In the second mapping update, the backup mapping table may be updated so that the logical address of the target storage area and the physical address of the target storage area indicating that the mirroring operation is performed are mapped to each other.

[0162] Fig.10 For description Fig. 9 Flowchart of the mirror command queue.

[0163] Reference Fig.10 , Fig. 9 Step S905 may include steps S1001 to S1005.

[0164] In step S1001, the storage device may determine whether the original mapping table is updated. As a result of the determination, when the original mapping table is updated, the operation proceeds to step S1003, and when the original mapping table is not updated, the operation ends.

[0165] In an embodiment, when the original mapping table is updated, the storage device may generate mapping update information indicating whether the original mapping table is updated. The storage device may determine whether the original mapping table is updated based on the mapping update information.

[0166] In step S1003, the storage device may generate a mirror command for a mirror operation. The mirror operation may be an operation of copying a memory operation performed on an original storage area to a target storage area.

[0167] In step S1005, the storage device may store the generated mirroring command in a mirroring queue.

[0168] Fig.11 For description Fig. 9 Flowchart of the mirroring operation.

[0169] Reference Fig.11 , Fig. 9 Step S907 may include steps S1101 to S1105.

[0170] In step S1101, the storage device may determine whether the storage device is in an idle state. As a result of the determination, when the storage device is in an idle state, the operation may proceed to step S1103, and when the storage device is in a busy state, the operation may end. The busy state may be a state in which the storage device is performing an operation according to a request of the host.

[0171] In step S1103, the storage device may determine whether the mirroring command is queued in the mirroring queue. As a result of the determination, when the command is queued in the mirroring queue, the operation proceeds to step S1105, and when there is no command queued in the mirroring queue, the operation ends.

[0172] In step S1105 , the storage device may perform a mirroring operation based on the mirroring command queued in the mirroring queue.

[0173] In various embodiments, the order of steps S1101 and S1103 may be reversed. That is, after first determining whether a mirror command is queued in the mirror queue, it may be determined whether the storage device is in an idle state when there is a mirror command queued in the mirror queue. When the storage device is in an idle state, the operation may proceed to step S1105.

[0174] Fig.12 For description Figure 1 1 is a diagram of an embodiment of a memory controller 200 of FIG. The memory controller 1000 may correspond to Figure 1 A memory controller 200 is provided.

[0175] Reference Fig.12 , the memory controller 1000 is connected to a host (not shown) and a memory device (not shown). The memory controller 1000 is configured to access the memory device in response to a request from the host. For example, the memory controller 1000 is configured to control a write operation, a read operation, an erase operation, and a background operation of the memory device. The memory controller 1000 is configured to provide an interface between the memory device and the host. The memory controller 1000 is configured to drive firmware for controlling the memory device.

[0176] The memory controller 1000 may include a processor 1010 , a memory buffer 1020 , an error correction component (ECC) 1030 , a host interface 1040 , a buffer controller 1050 , a memory interface 1060 , and a bus 1070 .

[0177] The bus 1070 may be configured to provide a channel between components of the memory controller 1000 .

[0178] The processor 1010 may control the overall operation of the memory controller 1000 and may perform logic operations. The processor 1010 may communicate with an external host through a host interface 1040 and communicate with a memory device through a memory interface 1060. In addition, the processor 1010 may communicate with a memory buffer 1020 through a buffer controller 1050. The processor 1010 may control the operation of a memory device using the memory buffer 1020 as an operating memory, a cache memory, or a buffer memory.

[0179] The processor 1010 may perform the function of a flash translation layer (FTL). The processor 1010 may convert a logical block address (LBA) provided by a host into a physical block address (PBA) through the flash translation layer (FTL). The flash translation layer (FTL) may use a mapping table to receive a logical block address (LBA) and convert the logical block address (LBA) into a physical block address (PBA). The address mapping method of the flash translation layer may include various methods according to a mapping unit. Representative address mapping methods include a page mapping method, a block mapping method, and a hybrid mapping method.

[0180] The processor 1010 is configured to randomize data received from the host. For example, the processor 1010 may randomize data received from the host using a random seed. The randomized data is provided to the memory device as data to be stored and is programmed into the memory cell array.

[0181] The processor 1010 is configured to de-randomize data received from the memory device during a read operation. For example, the processor 1010 may de-randomize the data received from the memory device using a de-randomization seed. The de-randomized data may be output to the host.

[0182] As an example, the processor 1010 may perform randomization and de-randomization by driving software or firmware.

[0183] The memory buffer 1020 may be used as an operation memory, a cache memory, or a buffer memory of the processor 1010. The memory buffer 1020 may store codes and commands executed by the processor 1010. The memory buffer 1020 may store data processed by the processor 1010. The memory buffer 1020 may include a static RAM (SRAM) or a dynamic RAM (DRAM).

[0184] The error correction component 1030 may perform error correction. The error correction component 1030 may perform error correction encoding (ECC encoding) based on data to be written to the memory device through the memory interface 1060. The error correction encoded data may be transmitted to the memory device through the memory interface 1060. The error correction component 1030 may perform error correction decoding (ECC decoding) on ​​data received from the memory device through the memory interface 1060. For example, the error correction component 1030 may be included in the memory interface 1060 as a component of the memory interface 1060.

[0185] The host interface 1040 is configured to communicate with an external host under the control of the processor 1010. The host interface 1040 may be configured to perform communication using at least one of various communication methods such as a universal serial bus (USB), a serial AT attachment (SATA), a serial SCSI (SAS), a high-speed inter-chip (HSIC), a small computer system interface (SCSI), a peripheral component interconnect (PCI), a PCI express (PCIe), a high-speed non-volatile memory (NVMe), a universal flash memory (UFS), a secure digital (SD), a multimedia card (MMC), an embedded MMC (eMMC), a dual in-line memory module (DIMM), a registered DIMM (RDIMM), and a load-reduced DIMM (LRDIMM).

[0186] The buffer controller 1050 is configured to control the memory buffer 1020 under the control of the processor 1010 .

[0187] The memory interface 1060 is configured to communicate with the memory device under the control of the processor 1010. The memory interface 1060 may communicate commands, addresses, and data with the memory device through a channel.

[0188] For example, the memory controller 1000 may not include the memory buffer 1020 and the buffer controller 1050 .

[0189] For example, the processor 1010 may use the code to control the operation of the memory controller 1000. The processor 1010 may load the code from a nonvolatile memory device (eg, a read-only memory) provided inside the memory controller 1000. As another example, the processor 1010 may load the code from the memory device through the memory interface 1060.

[0190] For example, the bus 1070 of the memory controller 1000 may be divided into a control bus and a data bus. The data bus may be configured to transmit data within the memory controller 1000, and the control bus may be configured to transmit control information, such as commands and addresses, within the memory controller 1000. The data bus and the control bus may be separated from each other and may not interfere with or affect each other. The data bus may be connected to the host interface 1040, the buffer controller 1050, the error correction component 1030, and the memory interface 1060. The control bus may be connected to the host interface 1040, the processor 1010, the buffer controller 1050, the memory buffer 1020, and the memory interface 1060.

[0191] In an embodiment, Figure 1 The illustrated mirroring controller 210 , mapping manager 220 , and operation controller 230 may be included in the processor 1010 .

[0192] Fig.13 2 is a block diagram showing a memory card system 2000 to which a memory device according to an embodiment of the present disclosure is applied.

[0193] Reference Fig.13 , the memory card system 2000 includes a memory controller 2100 , a memory device 2200 , and a connector 2300 .

[0194] The memory controller 2100 is connected to the memory device 2200. The memory controller 2100 is configured to access the memory device 2200. For example, the memory controller 2100 may be configured to control a read operation, a write operation, an erase operation, and a background operation of the memory device 2200. The memory controller 2100 is configured to provide an interface between the memory device 2200 and a host. The memory controller 2100 is configured to drive firmware for controlling the memory device 2200. Figure 1 The described memory controller 200 implements the memory controller 2100 identically.

[0195] For example, the memory controller 2100 may include components such as a random access memory (RAM), a processor, a host interface, a memory interface, and an error correction component.

[0196] The memory controller 2100 may communicate with an external device through the connector 2300. The memory controller 2100 may communicate with an external device (e.g., a host) according to a specific communication standard. For example, the memory controller 2100 may be configured to communicate with an external device through at least one of various communication standards such as a universal serial bus (USB), a multimedia card (MMC), an embedded MMC (MCM), a peripheral component interconnect (PCI), a high-speed PCI (PCI-E), an advanced technology attachment (ATA), a serial ATA, a parallel ATA, a small computer system interface (SCSI), an enhanced small disk interface (ESDI), an electronic integrated drive (IDE), a firewire, a universal flash memory (UFS), Wi-Fi, Bluetooth, and NVMe. For example, the connector 2300 may be defined by at least one of the various communication standards described above.

[0197] For example, the memory device 2200 may be configured by various nonvolatile memory elements such as electrically erasable programmable ROM (EEPROM), NAND flash memory, NOR flash memory, phase change RAM (PRAM), resistive RAM (ReRAM), ferroelectric RAM (FRAM), and spin torque magnetic RAM (STT-MRAM).

[0198] The memory controller 2100 and the memory device 2200 may be integrated into one semiconductor device to configure a memory card. For example, the memory controller 2100 and the memory device 2200 may be integrated into one semiconductor device to configure a memory card such as a PC card (Personal Computer Memory Card International Association (PCMCIA)), a Compact Flash card (CF), a Smart Media Card (SM or SMC), a Memory Stick, a Multimedia Card (MMC, RS-MMC, Micro MMC or eMMC), an SD card (SD, Mini SD, Micro SD or SDHC), and a Universal Flash Storage (UFS).

[0199] Fig.14 1 is a block diagram showing a storage device system 3000 to which a storage device according to an embodiment of the present disclosure is applied.

[0200] Reference Fig.14 , the storage device system 3000 includes a host 3100 and a storage device 3200. The storage device 3200 exchanges signals with the host 3100 through a signal connector 3001, and receives power through a power connector 3002. The storage device 3200 includes a controller 3210, a plurality of flash memories 3221 to 322n, an auxiliary power supply 3230, and a buffer memory 3240.

[0201] According to an embodiment of the present disclosure, the controller 3210 may execute a reference Figure 1 The functions of the memory controller 200 are described.

[0202] The controller 3210 and the plurality of flash memories 3221 to 322n may communicate with each other through the channels CH1 to CHn. The controller 3210 may control the plurality of flash memories 3221 to 322n in response to a signal received from the host 3100. For example, the signal may be a signal based on an interface between the host 3100 and the storage device 3200. For example, the signal may be a signal defined by at least one of interfaces such as a universal serial bus (USB), a multimedia card (MMC), an embedded MMC (MCM), a peripheral component interconnect (PCI), a high-speed PCI (PCI-E), an advanced technology attachment (ATA), a serial ATA, a parallel ATA, a small computer system interface (SCSI), an enhanced small disk interface (ESDI), an electronic integrated drive (IDE), a firewire, a universal flash memory (UFS), a Wi-Fi, a Bluetooth, and an NVMe.

[0203] The auxiliary power supply 3230 is connected to the host 3100 through the power connector 3002. The auxiliary power supply 3230 can receive power from the host 3100 and can be charged. When the power supply from the host 3100 is not stable, the auxiliary power supply 3230 can provide power to the storage device 3200. For example, the auxiliary power supply 3230 can be located in the storage device 3200, or can be located outside the storage device 3200. For example, the auxiliary power supply 3230 can be located on the mainboard, and can provide auxiliary power to the storage device 3200.

[0204] The buffer memory 3240 is used as a buffer memory of the storage device 3200. For example, the buffer memory 3240 may temporarily store data received from the host 3100 or data received from the plurality of flash memories 3221 to 322n, or may temporarily store metadata (e.g., a mapping table) of the flash memories 3221 to 322n. The buffer memory 3240 may include a volatile memory such as DRAM, SDRAM, DDR SDRAM, LPDDR SDRAM, and GRAM, or a nonvolatile memory such as FRAM, ReRAM, STT-MRAM, and PRAM.

[0205] Fig.15 FIG. 4 is a block diagram showing a user system 4000 to which a storage device according to an embodiment of the present disclosure is applied.

[0206] Reference Fig.15 , the user system 4000 includes an application processor 4100 , a memory module 4200 , a network module 4300 , a storage module 4400 , and a user interface 4500 .

[0207] The application processor 4100 may drive components included in the user system 4000, an operating system (OS), a user program, etc. For example, the application processor 4100 may include a controller, an interface, a graphic engine, etc. that controls components included in the user system 4000. The application processor 4100 may be provided as a system on chip (SoC).

[0208] The memory module 4200 may be used as a main memory, an operating memory, a buffer memory, or a cache memory of the user system 4000. The memory module 4200 may include a volatile random access memory such as DRAM, SDRAM, DDR SDRAM, DDR2 SDRAM, DDR3 SDRAM, LPDDR SDRAM, LPDDR2 SDRAM, and LPDDR3 SDRAM, or a nonvolatile random access memory such as PRAM, ReRAM, MRAM, and FRAM. For example, the application processor 4100 and the memory module 4200 may be packaged based on a stacked package (POP) and provided as one semiconductor package.

[0209] The network module 4300 may communicate with an external device. For example, the network module 4300 may support wireless communications such as code division multiple access (CDMA), global system for mobile communications (GSM), wideband CDMA (WCDMA), CDMA-2000, time division multiple access (TDMA), long term evolution, Wimax, WLAN, UWB, Bluetooth, and Wi-Fi. For example, the network module 4300 may be included in the application processor 4100.

[0210] The storage module 4400 may store data. For example, the storage module 4400 may store data received from the application processor 4100. Alternatively, the storage module 4400 may transmit the data stored in the storage module 4400 to the application processor 4100. For example, the storage module 4400 may be implemented as a non-volatile semiconductor memory element such as a phase change RAM (PRAM), a magnetic RAM (MRAM), a resistive RAM (RRAM), a NAND flash memory, a NOR flash memory, and a three-dimensional NAND flash memory. For example, the storage module 4400 may be configured as a removable storage device (removable drive) such as a memory card and an external drive of the user system 4000.

[0211] For example, the storage module 4400 may include a plurality of nonvolatile memory devices, and the plurality of nonvolatile memory devices may be associated with the reference Figure 1 The memory module 4400 may be the same as the memory device 100 described in the prior art. Figure 1 The described storage device 50 operates identically.

[0212] The user interface 4500 may include an interface for inputting data, instructions to the application processor 4100 or for outputting data to an external device. For example, the user interface 4500 may include a user input interface such as a keyboard, a keypad, a button, a touch panel, a touch screen, a touch pad, a touch ball, a camera, a microphone, a gyro sensor, a vibration sensor, and a piezoelectric element. The user interface 4500 may include a user output interface such as a liquid crystal display (LCD), an organic light emitting diode (OLED) display device, an active matrix OLED (AMOLED) display device, an LED, a speaker, and a monitor.

Claims

1. A storage device, comprising: a memory device comprising a plurality of logical storage areas; as well as a memory controller that controls the memory device to perform a memory operation on an original storage area among the plurality of logical storage areas according to a request of a host, and performs a mirror operation of copying the memory operation performed on the original storage area to a backup storage area among the plurality of logical storage areas based on whether the memory device is in an idle state, wherein after performing the memory operation and before performing the mirroring operation, the memory controller maps a logical address of the backup storage area to a physical address indicating the original storage area, and After performing the mirroring operation, the memory controller maps the logical address of the backup storage area to a physical address indicating the backup storage area.

2. The storage device according to claim 1, wherein: The memory controller sets the original storage area and the backup storage area in response to a logic area setting command received from the host.

3. The storage device according to claim 1, wherein: The memory controller comprises: a mapping manager storing an original mapping table corresponding to the original storage area and a backup mapping table corresponding to the backup storage area, and generating mapping update information in response to the original mapping table being updated; and A mirroring controller determines whether the memory operation is performed on the original storage area based on the mapping update information, and controls the memory device to perform the mirroring operation based on whether the memory device is in an idle state.

4. The storage device according to claim 3, wherein: The mirror controller comprises: an idle sensor, sensing whether the memory device is in an idle state to generate idle information; a mirroring processor that generates at least one mirroring command for the mirroring operation based on the mapping update information; and The mirror queue stores the at least one mirror command.

5. The storage device according to claim 4, wherein: The mirror processor controls the mirror queue to provide the at least one mirror command to the memory device based on the idle information.

6. The storage device according to claim 3, wherein: The mirroring controller controls the memory device to perform the mirroring operation on a target area of ​​the backup memory area, the target area corresponding to a source area in the original memory area on which the memory operation was performed.

7. The storage device according to claim 6, wherein: The mapping manager updates the original mapping table according to the memory operation, and updates the backup mapping table according to the updated original mapping table or the mirroring operation.

8. The storage device according to claim 7, wherein: After the memory operation, the mapping manager maps a source logical address provided by the host to a source physical address indicating the source area, and maps a target logical address corresponding to the source logical address to the source physical address.

9. The storage device according to claim 8, wherein: After the mirroring operation, the mapping manager maps the target logical address to a target physical address indicating the target area.

10. The storage device according to claim 6, wherein: The memory operation is a program operation, and the mirror operation includes an operation of programming the same data as data stored in the source region on which the program operation is performed, into the target region.

11. The storage device according to claim 6, wherein: The memory operation is an erase operation, and the mirror operation includes an operation of erasing the target area corresponding to the source area on which the erase operation is performed.

12. The storage device according to claim 1, wherein: The memory controller includes an operation controller that controls the memory device to perform the memory operation in response to a request from the host; Wherein, the operation controller comprises: a command queue storing at least one operation command for the memory operation; and The operation processor generates the at least one operation command in response to a request of the host, and controls the command queue to provide the at least one operation command to the memory device.

13. A method for operating a storage device, the storage device comprising a mirror queue, an original storage area, and a backup storage area, the method comprising: In the mirroring queue, at least one mirroring command is queued, the mirroring command being used to copy a memory operation performed on the original storage area to a mirroring operation in the backup storage area; executing the mirroring operation according to the queued mirroring commands based on whether the storage device is in an idle state; as well as, After performing the mirroring operation, mapping the logical address of the backup storage area from the physical address indicating the original storage area to the physical address indicating the backup storage area, After performing the memory operation, the logical address of the backup storage area is mapped to a physical address indicating the original storage area.

14. The method according to claim 13, further comprising: In response to a logical area setting command received from a host, the original storage area and the backup storage area for mirroring the original storage area are set.

15. The method according to claim 13, further comprising: before queuing the at least one mirror command, performing the memory operation on the original storage area in response to a request from a host, The memory operation is a programming operation or an erasing operation.

16. The method according to claim 15, further comprising: Before queuing the at least one mirroring command, an original mapping table corresponding to the original storage area and a backup mapping table corresponding to the backup storage area are updated according to the memory operation.

17. The method according to claim 16, further comprising: After performing the mirroring operation, the backup mapping table is updated.

18. The method according to claim 16, wherein: Queuing the at least one mirroring command comprises: In response to the original mapping table being updated, determining whether the memory operation is performed; and In response to executing the memory operation, the at least one mirrored command is queued in the mirrored queue.

19. The method according to claim 15, wherein: Executing the mirroring operation includes: determining whether the storage device is in an idle state; and In response to the storage device being in an idle state, the mirroring operation is performed according to the queued commands.

20. A method for operating a storage device, the storage device comprising a memory controller and a memory device, the method comprising: performing a memory operation on a raw storage area included in the memory device; updating an original mapping table corresponding to the original storage area and a backup mapping table corresponding to the backup storage area included in the memory device; When it is determined to perform the memory operation, queuing a mirror command for the mirror operation in a mirror queue included in the memory controller; When it is determined that the storage device is in an idle state, performing the mirroring operation of copying the memory operation performed on the original storage area to the backup storage area; as well as updating the backup mapping table to map the logical address of the target storage area included in the backup storage area to the physical address of the target storage area on which the mirroring operation is performed, wherein after performing the memory operation and before performing the mirroring operation, the logical address of the backup storage area is mapped to the physical address indicating the original storage area in the backup mapping table, and After the mirroring operation is performed, the logical address of the backup storage area is mapped to the physical address indicating the backup storage area in the backup mapping table.

Citation Information

Patent Citations

  • Data backup and recovery method and electronic device

    CN104216796A

  • Data processing system

    US20050055523A1