Storage device and operating method of storage device

By introducing mapping tables and garbage collection mechanisms into storage devices, the problem of reduced life and reliability of flash memory devices in write operations is solved, and the effect of reducing write amplification factors and improving data security is achieved.

CN118897648APending Publication Date: 2024-11-05SAMSUNG ELECTRONICS CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410213124.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-05-02
Filing Date
2024-02-27
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

During the write operation, the life and reliability of the flash memory device decrease due to the pre-write erase characteristics, and the write amplification factor (WAF) increases, making it difficult to ensure data security.

Method used

By introducing a mapping table mechanism in the storage device, only sequential writing is allowed, and while maintaining the mapping table, some invalid requests are managed and rewrite operations are performed to avoid repeated writing, and a garbage collection mechanism is used to copy valid data to other to ensure data security.

Benefits of technology

It effectively reduces the write amplification factor, improves the life and reliability of the storage device, and enhances the security of important data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118897648A_ABST
    Figure CN118897648A_ABST
Patent Text Reader

Abstract

A memory device is disclosed that includes a non-volatile memory device including a plurality of erase units, each including a plurality of memory cells, and a memory controller. Based on an open zone request received from an external host device, the memory controller allocates a zone to at least one of the plurality of erase units and allows only sequential writes with respect to the zone. The memory controller generates a mapping table that maps sequential logical addresses of data in the write region to sequential physical addresses. Based on a partial invalidation request received from an external host device, the memory controller manages data corresponding to the partial invalidation request among the data in the write region as invalidation data while maintaining the mapping table.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims the priority of Korean Patent Application No. 10-2023-0057247 filed in the Korean Intellectual Property Office on May 2, 2023, the disclosure of which is incorporated herein by reference in its entirety. Technical Field

[0003] Embodiments of the present disclosure described herein relate to an electronic device, and more particularly, to a storage device that reduces a write amplification factor (WAF) and improves security and an operating method of the electronic device. Background Art

[0004] A storage device refers to a device that stores data under the control of a host device such as a computer, smart phone, or smart tablet. Storage devices include devices that store data on a disk, such as a hard disk drive (HDD), or devices that store data in a semiconductor memory (particularly a non-volatile memory), such as a solid-state drive (SSD) or a memory card.

[0005] Non-volatile memory includes read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), flash memory, phase change random access memory (PRAM), magnetic RAM (MRAM), resistive RAM (RRAM), or ferroelectric RAM (FRAM).

[0006] Whenever a write operation is performed in a nonvolatile memory, the life and reliability of the nonvolatile memory are reduced. In particular, a flash memory has an erase-before-write feature, that is, an erase operation should be performed between write operations. Because a write operation of the flash memory results in an erase operation after the write operation, repeated write operations of the flash memory reduce the life and reliability of the flash memory. Summary of the invention

[0007] Embodiments of the present disclosure provide a storage device capable of reducing a write amplification factor (WAF) and providing improved security for important data, and an operating method of the storage device.

[0008] The present invention provides a storage device, comprising: a non-volatile memory device, comprising a plurality of erase units, each of which comprises a plurality of memory units; and a memory controller, wherein, based on an open area request received from an external host device, the memory controller is configured to allocate an area to at least one erase unit among the plurality of erase units and only allow sequential writing with respect to the area, wherein the memory controller is further configured to generate a mapping table, and the mapping table maps sequential logical addresses of first data in the write area to sequential physical addresses, and wherein, based on a partial invalidation request received from the external host device, the memory controller is further configured to manage second data corresponding to the partial invalidation request among the first data in the write area as invalid data while maintaining the mapping table.

[0009] The present invention also provides a storage device, comprising: a non-volatile memory device, comprising a plurality of erase units, each of which comprises a plurality of memory units; and a memory controller, wherein, based on an open area request received from an external host device, the memory controller is configured to assign an area to at least one erase unit among the plurality of erase units and only allow sequential writing on the area, wherein the memory controller is also configured to generate a mapping table, and the mapping table maps sequential logical addresses of first data in the write area to sequential physical addresses, and wherein, based on a partial invalidation request received from the external host device, the memory controller is also configured to perform a rewrite operation on second data corresponding to the partial invalidation request among the first data in the write area while maintaining the mapping table.

[0010] The present invention also provides an operating method of a storage device, the storage device includes a non-volatile memory device and a memory controller, the operating method includes: setting a partial invalidation request to one of a first mode, a second mode and a third mode depending on a request of an external host device; in the first mode, at the memory controller, based on the partial invalidation request received from the external host device, managing the second data corresponding to the partial invalidation request as invalid; in the second mode, based on the partial invalidation request received from the external host device, the memory controller causes the non-volatile memory device to perform a rewrite operation on the second data corresponding to the partial invalidation request, and manages the second data corresponding to the partial invalidation request as invalid; and in the third mode, based on the partial invalidation request received from the external host device: the memory controller copies valid first data except the second data corresponding to the partial invalidation request to another memory block, and erases the memory block corresponding to the partial invalidation request, the second data being among the third data of the memory block corresponding to the partial invalidation request. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The above and other objects and features of the present disclosure will become apparent by describing in detail embodiments of the present disclosure with reference to the accompanying drawings.

[0012] Figure 1 An electronic device according to an embodiment of the present disclosure is shown.

[0013] Figure 2 A storage device according to an embodiment of the present disclosure is shown.

[0014] Figure 3 is a block diagram illustrating a nonvolatile memory device according to an embodiment of the present disclosure.

[0015] Figure 4 An example is shown in which a processing unit allocates an extent to a storage device.

[0016] Figure 5 An example in which an electronic device manages one zone is shown.

[0017] Figure 6 An example of the lifespan of data written in the first area is shown.

[0018] Figure 7 An example of partially invalidating the electronic device execution is shown.

[0019] Figure 8 is a diagram illustrating an example in which an electronic device writes data in a first area.

[0020] Fig. 9 is a diagram illustrating an example in which an electronic device performs partial invalidation with respect to data of a first area.

[0021] Fig.10 is a diagram illustrating an example of copying valid data of a first area to a second area through garbage collection.

[0022] Fig.11 is a diagram illustrating an example of a storage device processing a read request.

[0023] Fig.12 An example is shown in which a part of the data of each page is invalidated.

[0024] Fig.13 is a diagram illustrating an example of copying valid data of a first area to a second area through garbage collection.

[0025] Fig.14 Another example of partially invalidating an electronic device execution is shown.

[0026] Fig.15 An example of performing a program operation and a rewrite operation on a memory cell is shown.

[0027] Fig.16An example is shown in which a nonvolatile memory device performs a program operation and a rewrite operation.

[0028] Fig.17 is a diagram illustrating an example in which a storage device manages invalid data.

[0029] Fig.18 Another example of partially invalidating an electronic device execution is shown.

[0030] Fig.19 An example of setting a partially invalid mode for an electronic device is shown.

[0031] Fig. 20 is a diagram illustrating a system according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0032] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that the embodiments of the present disclosure can be easily implemented by those skilled in the art.

[0033] Figure 1 An electronic device 10 according to an embodiment of the present disclosure is shown. Figure 1 , the electronic device 10 may include a storage device 11 , a processing unit 12 , and a random access memory (RAM) 13 .

[0034] The storage device 11 may also include a nonvolatile memory device that retains data even when power is turned off. The storage device 11 may include a first storage area 11a and a second storage area 11b.

[0035] The first storage area 11a may store user data UD that the processing unit 12 requests the storage device 11 to write. For example, the user data UD may include original data of an operating system or application executable by the processing unit 12 and data generated by the operating system or application.

[0036] The second storage area 11b may be used to store the first file system FS1. The first file system FS1 may include configuration information of the first storage area 11a of the storage device 11. For example, the first file system FS1 may include various configuration information of the first storage area 11a, such as access unit information, partition information, file name information, file size information, and file address information.

[0037] The processing unit 12 may include a central processing unit (CPU) or an application processor (AP). The processing unit 12 may execute an operating system to drive the electronic device 10. The processing unit 12 may execute various applications. The random access memory 13 may be used for various purposes, such as a system memory of the electronic device 10, a working memory of the processing unit 12, a buffer memory of the processing unit 12, and a cache memory of the processing unit 12.

[0038] The processing unit 12 may read the first file system FS1 stored in the second storage area 11b of the storage device 11 so as to be loaded as the second file system FS2 to the random access memory 13. The processing unit 12 may access the storage device 11 by using the second file system FS2, and if necessary, the processing unit 12 may update the second file system FS2. The updated portion of the second file system FS2 may be applied to the first file system FS1 of the storage device 11 through a backup (or log).

[0039] Figure 2 A storage device 100 according to an embodiment of the present disclosure is shown. Figure 2 , the storage device 100 may correspond to Figure 1 The storage device 100 may include a nonvolatile memory device 110, a memory controller 120, and an external buffer 130. The nonvolatile memory device 110 may include a plurality of memory cells. Each of the plurality of memory cells may store two or more bits.

[0040] For example, the nonvolatile memory device 110 may include at least one of various nonvolatile memory devices such as a flash memory device, a phase change memory device, a ferroelectric memory device, a magnetic memory device, and a resistive memory device.

[0041] The memory controller 120 may receive various requests for writing data in the nonvolatile memory device 110 or reading data from the nonvolatile memory device 110 from the processing unit 12 (e.g., an external host device). The memory controller 120 may store (or buffer) user data communicated with the processing unit 12 in the external buffer 130, and may store metadata for managing the storage device 11 or 100 in the external buffer 130.

[0042] The memory controller 120 may access the nonvolatile memory device 110 through the first signal line SIGL1 and the second signal line SIGL2. For example, the memory controller 120 may send a command and an address to the nonvolatile memory device 110 through the first signal line SIGL1. The memory controller 120 may exchange data with the nonvolatile memory device 110 through the first signal line SIGL1.

[0043] The memory controller 120 may transmit the first control signal to the nonvolatile memory device 110 through the second signal line SIGL2. The memory controller 120 may receive the second control signal from the nonvolatile memory device 110 through the second signal line SIGL2.

[0044] In an embodiment, the memory controller 120 may be configured to control two or more nonvolatile memory devices. The memory controller 120 may provide a first signal line and a second signal line for each of the two or more nonvolatile memory devices.

[0045] As another example, the memory controller 120 may share first signal lines with respect to two or more nonvolatile memory devices.The memory controller 120 may share some of second signal lines with respect to two or more nonvolatile memory devices and may provide other second signal lines therein separately.

[0046] The external buffer 130 may include a random access memory. For example, the external buffer 130 may include at least one of a dynamic random access memory, a phase change random access memory, a ferroelectric random access memory, a magnetic random access memory, and a resistive random access memory.

[0047] The nonvolatile memory device 110 may include a first storage area 110a, a second storage area 110b, a third storage area 110c, and a fourth storage area 110d. Each of the first storage area 110a, the second storage area 110b, the third storage area 110c, and the fourth storage area 110d may include a plurality of memory cells.

[0048] The first storage area 110a may be used to store user data UD and may correspond to Figure 1 The second storage area 110b may be used to store the first file system FS1 and may correspond to Figure 1 The second storage area 11b.

[0049] The third storage area 110c may be used to store the first mapping table MT1. The first mapping table MT1 may be used for the storage device 11 or 100 to convert a physical address into a logical address. For example, the request (e.g., a write request and a read request) transmitted by the processing unit 12 to the storage device 11 or 100 may be based on the logical address. The user data UD may be written into the first storage area 110a based on the physical address. The storage device 11 or 100 may convert the logical address transmitted from the processing unit 12 into a physical address by using the first mapping table MT1, and may access the first storage area 110a storing the user data UD by using the physical address. In an embodiment, the processing unit 12 may not identify (or recognize) the capacity of the third storage area 110c as the storage capacity of the storage device 11 or 100.

[0050] The fourth storage area 110d may be used to store buffered data BD. For example, part or all of the data to be written into the first storage area 110a may be first written into the fourth storage area 110d and may be migrated to the first storage area 110a (e.g., at idle time). Migration may include writing the original data (e.g., the data of the fourth storage area 110d) into a target area (or destination area) (e.g., the first storage area 110a) and then invalidating the original data (e.g., the data of the fourth storage area 110d). In an embodiment, when the capacity of the fourth storage area 110d is insufficient, the data to be written into the first storage area 110a may be directly written into the first storage area 110a without passing through the fourth storage area 110d. In an embodiment, the capacity of the fourth storage area 110d may be identified (or recognized) by the processing unit 12 as the storage capacity of the storage device 11 or 100 or may not be identified by the processing unit 12 as the storage capacity of the storage device 11 or 100.

[0051] The memory controller 120 may include a bus 121 , a host interface 122 , an internal buffer 123 , a processor 124 , a buffer controller 125 , a memory manager 126 , and an error correction code (ECC) block 127 .

[0052] The bus 121 may provide a communication channel between components of the memory controller 120 . The host interface 122 may receive various requests from an external host device and may parse the received requests. The host interface 122 may store the parsed requests in the internal buffer 123 .

[0053] The host interface 122 may transmit various responses to an external host device. The host interface 122 may exchange signals with an external host device in accordance with a given communication protocol. The internal buffer 123 may include a random access memory. For example, the internal buffer 123 may include a static random access memory or a dynamic random access memory.

[0054] The processor 124 may execute an operating system or firmware for driving the memory controller 120. The processor 124 may read the parsed request stored in the internal buffer 123, and may generate an address and a command for controlling the nonvolatile memory device 110. The processor 124 may provide the generated command and address to the memory manager 126.

[0055] The processor 124 may store various metadata for managing the storage device 100 in the internal buffer 123. The processor 124 may access the external buffer 130 through the buffer controller 125. The processor 124 may control the buffer controller 125 and the memory manager 126 so that user data stored in the external buffer 130 is transmitted to the nonvolatile memory device 110.

[0056] The processor 124 may control the host interface 122 and the buffer controller 125 so that the data stored in the external buffer 130 is transmitted to the external host device. The processor 124 may control the buffer controller 125 and the memory manager 126 so that the data received from the nonvolatile memory device 110 is stored in the external buffer 130. The processor 124 may control the host interface 122 and the buffer controller 125 so that the data received from the external host device is stored in the external buffer 130.

[0057] The processor 124 may read the first mapping table MT1 stored in the third storage area 110c of the nonvolatile memory device 110 so as to be stored in the external buffer 130 as the second mapping table MT2. The processor 124 may convert the logical address into the physical address by using the second mapping table MT2 stored in the external buffer 130. If necessary, the processor 124 may update the second mapping table MT2 of the external buffer 130. The processor 124 may apply the updated portion of the second mapping table MT2 to the first mapping table MT1 of the nonvolatile memory device 110 by backing up.

[0058] The buffer controller 125 may write data into or read data from the external buffer 130 under the control of the processor 124. The memory manager 126 may communicate with the nonvolatile memory device 110 through the first and second signal lines SIGL1 and SIGL2 under the control of the processor 124.

[0059] The memory manager 126 may access the nonvolatile memory device 110 under the control of the processor 124. For example, the memory manager 126 may access the nonvolatile memory device 110 through the first signal line SIGL1 and the second signal line SIGL2. The memory manager 126 may communicate with the nonvolatile memory device 110 based on a protocol defined in accordance with a standard or defined by a manufacturer.

[0060] The error correction code block 127 may perform error correction encoding on data to be provided to the nonvolatile memory device 110 by using the error correction code ECC. The error correction code block 127 may perform error correction decoding on data received from the nonvolatile memory device 110 by using the error correction code ECC.

[0061] In an embodiment, the external buffer 130 and the buffer controller 125 may be omitted in the storage device 100. When the external buffer 130 and the buffer controller 125 are omitted, the functions described as being performed by the external buffer 130 and the buffer controller 125 may be performed by the internal buffer 123.

[0062] For example, when the external buffer 130 and the buffer controller 125 are omitted, the processor 124 may read a portion (e.g., partial mapping data) of the first mapping table MT1 stored in the third storage area 110c of the nonvolatile memory device 110 to store in the internal buffer 123. When the necessary mapping data does not exist in the internal buffer 123, the processor 124 may read a necessary portion (e.g., necessary mapping data) of the first mapping table MT1 stored in the third storage area 110c of the nonvolatile memory device 110 to store in the internal buffer 123. When the storage capacity of the internal buffer 123 is insufficient, the processor 124 may ensure the storage capacity of the internal buffer 123 for loading the necessary mapping data by discarding part or all of the mapping data previously loaded to the internal buffer 123.

[0063] Figure 3 2 is a block diagram showing a nonvolatile memory device 200 according to an embodiment of the present disclosure. Figure 2 and Figure 3 , the nonvolatile memory device 200 may correspond to Figure 2 The nonvolatile memory device 200 may include a memory cell array 210, a row decoder block 220, a page buffer block 230, a pass / fail check block (PFC) 240, a data input and output block 250, a buffer block 260, and a control logic block 270.

[0064] The memory cell array 210 includes a plurality of memory blocks BLK1 to BLKz. Each of the memory blocks BLK1 to BLKz includes a plurality of memory cells. Each of the memory blocks BLK1 to BLKz may be connected to the row decoder block 220 through at least one ground selection line GSL, a word line WL, and at least one string selection line SSL. Some of the word lines WL may be used as dummy word lines. Each of the memory blocks BLK1 to BLKz may be connected to the page buffer block 230 through a plurality of bit lines BL. A plurality of memory blocks BLK1 to BLKz may be connected to a plurality of bit lines BL in common.

[0065] In an embodiment, each of a plurality of memory blocks BLK1 to BLKz may correspond to a unit of an erase operation. Memory cells belonging to each memory block may be erased simultaneously. As another example, each of the memory blocks BLK1 to BLKz may be divided into a plurality of sub-blocks. Each of the plurality of sub-blocks may correspond to a unit of an erase operation. As another example, two or more memory blocks may constitute a super block. Each super block may correspond to a unit of an erase operation. The unit of an erase operation is referred to as an "erase unit". That is, an erase unit may be a memory block, a sub-block of a memory block, or a super block of a memory block.

[0066] The row decoder block 220 is connected to the memory cell array 210 through the ground selection line GSL, the word line WL, and the string selection line SSL. The row decoder block 220 operates under the control of the control logic block 270.

[0067] The row decoder block 220 may decode the row address RA received from the buffer block 260 , and may control voltages to be applied to the string selection line SSL, the word line WL, and the ground selection line GSL based on the decoded row address.

[0068] The page buffer block 230 is connected to the memory cell array 210 through a plurality of bit lines BL. The page buffer block 230 is connected to the data input and output block 250 through a plurality of data lines DL. The page buffer block 230 operates under the control of the control logic block 270.

[0069] In a programming operation, the page buffer block 230 may store data to be written into a memory cell. The page buffer block 230 may apply a voltage to a plurality of bit lines BL based on the stored data. In a read operation or a verification read operation performed in a programming operation or an erase operation, the page buffer block 230 may sense the voltage of the bit line BL and may store the sensing result.

[0070] In a verification read operation associated with a program operation or an erase operation, the pass / fail check block 240 may verify the sensing result of the page buffer block 230. For example, in a verification read operation performed in a program operation, the pass / fail check block 240 may count the number of values ​​corresponding to on-cells that are not programmed to a target threshold voltage or higher (e.g., the number of 0s).

[0071] In the verification read operation performed in the erase operation, the pass / fail check block 240 may count the number of values ​​(e.g., the number of 1s) corresponding to the turn-off cells that are not erased to the target threshold voltage or lower. When the count result is greater than or equal to the threshold, the pass / fail check block 240 may output a fail signal to the control logic block 270. When the count result is less than the threshold, the pass / fail check block 240 may output a pass signal to the control logic block 270. Depending on the verification result of the pass / fail check block 240, a program loop of a program operation may be further performed, or an erase loop of an erase operation may be further performed.

[0072] The data input and output block 250 is connected to the page buffer block 230 through a plurality of data lines DL. The data input and output block 250 may receive a column address CA from the buffer block 260. The data input and output block 250 may output data read by the page buffer block 230 to the buffer block 260 depending on the column address CA. The data input and output block 250 may provide the data received from the buffer block 260 to the page buffer block 230 based on the column address CA.

[0073] Through the first signal line SIGL1, the buffer block 260 may receive a command CMD and an address ADDR from an external device, and may exchange data “DATA” with the external device. The buffer block 260 may operate under the control of the control logic block 270. The buffer block 260 may provide the command CMD to the control logic block 270. The buffer block 260 may provide a row address RA of the address ADDR to the row decoder block 220, and may provide a column address CA of the address ADDR to the data input and output block 250. The buffer block 260 may exchange data “DATA” with the data input and output block 250.

[0074] The control logic block 270 may exchange a control signal CTRL with an external device through a second signal line SIGL2. The control logic block 270 may allow the buffer block 260 to route a command CMD, an address ADDR, and data “DATA”. The control logic block 270 may decode the command CMD received from the buffer block 260, and may control the nonvolatile memory device 200 based on the decoded command.

[0075] In an embodiment, the nonvolatile memory device 200 may be manufactured by a bonding method. The memory cell array 210 may be manufactured by using a first wafer, and the row decoder block 220, the page buffer block 230, the pass / fail check block 240, the data input and output block 250, the buffer block 260, and the control logic block 270 may be manufactured by using a second wafer. The nonvolatile memory device 200 may be implemented by coupling the first wafer and the second wafer so that the upper surface of the first wafer and the upper surface of the second wafer face each other.

[0076] As another example, the nonvolatile memory device 200 may be manufactured by a cell on periphery (COP) method. A peripheral circuit including a row decoder block 220, a page buffer block 230, a pass / fail check block 240, a data input and output block 250, a buffer block 260, and a control logic block 270 may be implemented on a substrate. The memory cell array 210 may be implemented on the peripheral circuit. The peripheral circuit and the memory cell array 210 may be connected by using a through hole.

[0077] Figure 4FIG. 2 shows an example in which the processing unit 12 allocates an area to the storage device 11 or 100. Figure 1 , 2 , 3 and 4, considering the processing unit 12, the processing unit 12 may open a zone in the first storage area 110a of the storage device 11 or 100. For example, in an initialization operation, the storage device 11 or 100 may provide information about the storage capacity of the erase unit of the first storage area 110a to the processing unit 12. The processing unit 12 may open a zone based on the storage capacity of the erase unit of the first storage area 110a.

[0078] When the processing unit 12 opens the zone, the memory controller 120 of the storage device 11 or 100 may respectively allocate the zone to the erase unit of the nonvolatile memory device 110 or 200 in consideration of the memory controller 120. For example, the processing unit 12 may transmit an open request to the memory controller 120 so that the first zone Z1, the second zone Z2, and the third zone Z3 of the first storage area 11a or 110a for the storage device 11 or 100 are opened. The memory controller 120 may respectively allocate the first zone Z1, the second zone Z2, and the third zone Z3 to the first erase unit EU1, the second erase unit EU2, and the third erase unit EU3 of the nonvolatile memory device 110 or 200.

[0079] Each of the first erasing unit EU1, the second erasing unit EU2, and the third erasing unit EU3 may include a plurality of memory cells used as y-level cells yLC. Here, "y" may be a positive integer. Each memory cell used as y-level cell Y1c may store "y" bits.

[0080] The processing unit 12 may independently access the first zone Z1, the second zone Z2, and the third zone Z3 (e.g., perform write or read operations on the first zone Z1, the second zone Z2, and the third zone Z3). The processing unit 12 may only perform sequential write SW in each of the first zone Z1, the second zone Z2, and the third zone Z3. For example, the processing unit 12 may write data to each of the first zone Z1, the second zone Z2, and the third zone Z3 based on sequential logical addresses. For example, the first zone Z1, the second zone Z2, and the third zone Z3 may respectively correspond to different applications that can be executed by the processing unit 12.

[0081] In response to the sequential write SW of the processing unit 12, the memory controller 120 may manage a write pointer WP for each of the first erase unit EU1 allocated to the first zone Z1, the second erase unit EU2 allocated to the second zone Z2, and the third erase unit EU3 allocated to the third zone Z3. The write pointer WP may indicate the next location (e.g., page) where data is to be written.

[0082] As data is written to the page indicated by the write pointer WP, the memory controller 120 may update the write pointer WP to indicate the next page. That is, the data written in each of the first erasing unit EU1, the second erasing unit EU2, and the third erasing unit EU3 may correspond to sequential physical addresses. Therefore, the data written by the processing unit 12 in each of the first zone Z1, the second zone Z2, and the third zone Z3 may correspond to sequential logical addresses and sequential physical addresses.

[0083] The data requested by the processing unit 12 to be written in each of the first zone Z1, the second zone Z2, and the third zone Z3 may be designated to be finally written in each of the first erasure unit EU1, the second erasure unit EU2, and the third erasure unit EU3 respectively corresponding to the first zone Z1, the second zone Z2, and the third zone Z3. In the embodiment, the description is given as if each zone is assigned to one erasure unit, but the number of erasure units assigned to each zone may be two or more.

[0084] Before data requested by the processing unit 12 to be written to each of the first zone Z1, the second zone Z2 and the third zone Z3 is finally written to each of the first erase unit EU1, the second erase unit EU2 and the third erase unit EU3 corresponding to the first zone Z1, the second zone Z2 and the third zone Z3, respectively, the memory controller 120 can buffer the write data by using the erase unit of the fourth storage area 110d.

[0085] For example, the memory controller 120 may use the fourth erasure unit EU4, the fifth erasure unit EU5, and the sixth erasure unit EU6 of the fourth storage area 110d for buffering. The memory controller 120 may use the memory cells of the fourth erasure unit EU4, the fifth erasure unit EU5, and the sixth erasure unit EU6 of the fourth storage area 110d for buffering as the x-level unit xLC. Here, "x" may be a positive integer less than "y".

[0086] The storage capacity of the x-level cell xLC may be smaller than the storage capacity of the y-level cell yLC. Therefore, the size of each of the fourth erasure unit EU4, the fifth erasure unit EU5, and the sixth erasure unit EU6 of the fourth storage area 110d is shown to be smaller than the size of each of the first erasure unit EU1, the second erasure unit EU2, and the third erasure unit EU3.

[0087] The writing speed of the x-level cell xLC can be faster than the writing speed of the y-level cell yLC. Therefore, the writing speed of the fourth erasing unit EU4, the fifth erasing unit EU5 and the sixth erasing unit EU6 of the fourth storage area 110d used for buffering can be faster than the writing speed of the first erasing unit EU1, the second erasing unit EU2 and the third erasing unit EU3 that finally write data. By using the fourth storage area 110d to perform buffering, the writing speed of the storage device 11 or 100 can be improved.

[0088] In an embodiment, the processing unit 12 may take the lead in managing data that is ultimately written into the first erasing unit EU1, the second erasing unit EU2, and the third erasing unit EU3 corresponding to the first zone Z1, the second zone Z2, and the third zone Z3, respectively. For example, in addition to the case where read recycling is required due to the occurrence of a bad block or reduced reliability, the processing unit 12 may take the lead in data management operations such as data copying, data discarding (invalidation or zone reset) of zone units, and garbage collection of zone units.

[0089] The memory controller 120 may play a leading role in managing data written (or buffered) in the fourth erasing unit EU4, the fifth erasing unit EU5, and the sixth erasing unit EU6 of the fourth storage area 110d. Even without an explicit request from the processing unit 12, the memory controller 120 may internally perform data copying, data garbage collection, or data migration with respect to the fourth erasing unit EU4, the fifth erasing unit EU5, and the sixth erasing unit EU6.

[0090] Since the zone-based data management operation is performed by the processing unit 12, the storage device 11 or 100 can prevent the write amplification factor WAF from increasing by performing the data management operation internally.

[0091] In an embodiment, data requested by the processing unit 12 to be written in an arbitrary area may be written in an erase unit of the first storage area 110a allocated to a specific area by the memory controller 120. In the process of the memory controller 120 writing data in the erase unit of the first storage area 110a, the memory controller 120 may buffer the data by using the external buffer 130 (or the internal buffer 123) or the erase unit of the fourth storage area 110d. In the following, considering the processing unit 12, data requested by the processing unit 12 to be written in an arbitrary area is considered to be written in the arbitrary area, regardless of whether the data is being buffered.

[0092] Figure 5 An example is shown in which the electronic device 10 manages one zone. Figure 1 , Figure 2 and Figure 5In operation S110, the processing unit 12 may open the first zone. For example, the processing unit 12 may open the first zone by sending an open request for the first zone to the memory controller 120 or sending a first write request for the first zone to the memory controller 120. The memory controller 120 may allocate at least one of the erase units of the first storage area 110a of the nonvolatile memory device 110 to the first zone.

[0093] In operation S120, the processing unit 12 may write data in the first area or may read data from the first area. The processing unit 12 may access the first area by sending a write request or a read request for the first area to the memory controller 120. The processing unit 12 may request a write operation for the first area based on a sequential logical address. The memory controller 120 may eventually write the data corresponding to the sequential logical address to the sequential physical address of at least one erase unit of the first storage area 110a allocated to the first area (e.g., after buffering the data).

[0094] In operation S130, the processing unit 12 may determine whether garbage collection is required. For example, the processing unit 12 may determine whether zone-based garbage collection is required. When the first zone does not require garbage collection, the processing unit 12 may continuously access the first zone in operation S120.

[0095] When the first area needs garbage collection, in operation S140, the processing unit 12 may open the second area. In operation S150, the processing unit 12 may copy valid data to the second area.

[0096] In an embodiment, the processing unit 12 may open the second zone by sending an open request for the second zone to the memory controller 120. As another example, the processing unit 12 may open the second zone by using a write request for copying made for the second zone for the first time in operation S150. As the second zone is opened, the memory controller 120 may allocate at least one of the erase units of the first storage area 110a to the second zone. For example, the at least one erase unit allocated to the first zone may be different from the at least one erase unit allocated to the second zone.

[0097] In an embodiment, during zone-based garbage collection, processing unit 12 may copy only valid data among data present in the first zone to the second zone. Alternatively, during zone-based garbage collection, processing unit 12 may integrate valid data of two or more zones by using a second zone (e.g., a single zone).

[0098] In an embodiment, the valid data of the first area (or specific area) may refer to data that is not invalid data. The invalid data of the first area may be data that is determined to be no longer needed by the processing unit 12 after being written to the first area. The invalid data of the first area (or specific area) may be determined by the processing unit 12, and the memory controller 120 or the storage device 11 or 100 may not be able to recognize the invalid data of the first area (or specific area).

[0099] In operation S160, the processing unit 12 may reset the first area. For example, the processing unit 12 may reset the first area by sending a reset request for the first area to the memory controller 120. When valid data of two or more areas are integrated in the second area, the processing unit 12 may send a reset request for the two or more areas to the memory controller 120.

[0100] The memory controller 120 may identify the data of the erase unit of the first storage area 110a allocated to the first zone as invalid data based on the reset request for the first zone. Alternatively, the memory controller 120 may identify the data of the erase unit of the first storage area 110a allocated to two or more zones as invalid data based on the reset request for the two or more zones. The memory controller 120 may ensure a free erase unit by erasing the erase unit(s) of the first storage area 110a including only the invalid data.

[0101] Figure 6 An example of the lifespan of data written in the first zone Z1 is shown. Figure 1 , Figure 2 and Figure 6 , the first zone Z1 may include the first page P1 to the 16th page P16. Through the first sequential write SW1, the processing unit 12 may request the memory controller 120 to write the first page data D1 to the eighth page data D8 at the first page P1 to the eighth page P8 of the first zone Z1. Through the first sequential write SW1, the memory controller 120 may sequentially write the first page data D1 to the eighth page data D8 at the first page P1 to the eighth page P8 of the erase unit allocated to the first zone Z1. After the first sequential write SW1, the write pointer WP of the first zone Z1 may point to the ninth page P9 of the first zone Z1.

[0102] In an embodiment, the third page data D3 and the sixth page data D6 may be security data SD. The security data SD may be data requiring relatively high security, such as personal information, encryption keys, and certificate information. When the security data SD thus written is not needed, as shown by the first arrow A1, the processing unit 12 may internally invalidate the security data SD including the third page data D3 and the sixth page data D6.

[0103] Because it is necessary to ensure that the logical address is a physical address in the order of data written in the first zone Z1, even if the processing unit 12 internally invalidates the security data SD including the third page data D3 and the sixth page data D6, the security data SD including the third page data D3 and the sixth page data D6 can also be managed as valid data in the first file system FS1 or the second file system FS2.

[0104] The processing unit 12 may internally invalidate the security data SD including the third page data D3 and the sixth page data D6 by preventing the operating system and the application executed by the processing unit 12 from accessing the security data SD including the third page data D3 and the sixth page data D6 .

[0105] As shown by the second arrow A2, when garbage collection of the first zone Z1 is performed, the processing unit 12 can request the memory controller 120 to write the following into the second zone Z2: the first page data D1 and the second page data D2, the fourth page data D4 and the fifth page data D5, and the seventh page data D7 and the eighth page data D8, that is, the remaining page data of the first page data D1 to the eighth page data D8 in the first zone Z1 except the third page data D3 and the sixth page data D6 which are invalid internally.

[0106] Through the second sequential write SW2, the memory controller 120 can sequentially write the first page data D1 and the second page data D2, the fourth page data D4 and the fifth page data D5, and the seventh page data D7 and the eighth page data D8 at the first page P1 to the sixth page P6 of the erase unit allocated to the second zone Z2. After the second sequential write SW2, the write pointer WP of the first zone Z1 can point to the seventh page P7 of the second zone Z2.

[0107] When the garbage collection of the first zone Z1 is completed, that is, when all valid data of the first zone Z1 is copied to the second zone Z2, the processing unit 12 may reset the first zone Z1 (refer to Figure 5 When the first zone Z1 is reset, the memory controller 120 may manage all data written in the first zone Z1 (or all data written in the erase units allocated to the first zone Z1) as invalid data, and may prohibit access to the data written in the first zone Z1 (or the data written in the erase units allocated to the first zone Z1).

[0108] As reference Figure 6As described above, even if the processing unit 12 invalidates the data written in the first zone Z1 (or any specific zone) internally due to security requirements, the data written in the first zone Z1 can be maintained as valid data in the first zone Z1 (or any zone) until the first zone Z1 (or any zone) is reset. When the data is maintained as valid data in the first zone Z1 (or any zone), the data can be read from the storage device 11 or 100 at any time. In other words, the security of the data is reduced.

[0109] Figure 7 An example of electronic device 10 executing partial invalidation is shown. Figure 1 , Figure 2 and Figure 7 In operation S210, the processing unit 12 may detect invalidation of zone data. For example, the processing unit 12 may detect data that is invalid inside from data written in a specific zone. For example, after writing security data into a zone and using the security data written into the zone, the processing unit 12 may detect that the security data needs to be invalidated to maintain the security of the security data.

[0110] In operation S220, the processing unit 12 may send a partial invalidation request to the memory controller 120. For example, the partial invalidation request may be used to invalidate a portion of the data in the write area. For example, the partial invalidation request may be sent via a UPIU (UFS Protocol Information Unit) (e.g., command UPIU) or in any other appropriate format.

[0111] In an embodiment, a partial invalidation request may include one or more logical addresses that are targeted to be partially invalidated. A partial invalidation request may include one or more logical address ranges that are targeted to be partially invalidated. A logical address range may include a starting logical address and a length. When a partial invalidation request includes information about two or more invalidation targets, the partial invalidation request may include information about the total length of the parameters indicating the partially invalidated targets, such as a parameter list length.

[0112] The partial invalidation request (or command) may be called differently. For example, the partial invalidation request may be represented by using various similar terms, such as unmap request (or command), partial unmap request (or command), discard request (or command), partial discard request (or command), delete request (or command), partial delete request (or command), erase request (or command), and partial erase request (or command).

[0113] In operation S230, the memory controller 120 may perform logical invalidation of the zone data. For example, based on a partial invalidation request, the memory controller 120 may manage the data requested to be partially invalidated as invalid data. The memory controller 120 may manage the data requested to be partially invalidated as invalid data while maintaining the sequential aspects of the logical addresses and physical addresses of the zone data in the write zone.

[0114] In operation S240, the memory controller 120 may send a response to the processing unit 12. For example, the response may be transmitted to the processing unit 12 through a response UPIU or in accordance with any other suitable format. The response may include information about the partial invalidation result (eg, success or failure).

[0115] In operation S250, the processing unit 12 may send a read request to the memory controller 120. For example, the read request may be transmitted to the memory controller 120 via a command UPIU or in any other suitable format. For example, the read request may include a logical address of the partially invalid data and may be used to read the partially invalid data.

[0116] In operation S260, the memory controller 120 may detect logical invalidity. For example, the memory controller 120 may detect that the data requested to be read is logically invalid data.

[0117] In operation S270, the memory controller 120 may send invalid pattern data to the processing unit 12. For example, based on detecting that the data requested to be read is logically invalid data, the memory controller 120 may send the invalid pattern data to the processing unit 12. The invalid pattern data may be pattern data unrelated to the original data, such as specific pattern data, arbitrary pattern data, dummy pattern data, or random pattern data.

[0118] In operation S280, the memory controller 120 may send a response to the processing unit 12. For example, the response may be transmitted to the processing unit 12 through a response UPIU or in any other suitable format. The response may include information about the read request result (eg, information indicating invalid data).

[0119] As reference Figure 7As described above, the processing unit 12 may request the memory controller 120 to partially invalidate a portion of the zone data while maintaining the sequential aspects of the logical addresses and physical addresses of the zone data written in the zone. The memory controller 120 may invalidate a portion of the zone data while maintaining the sequential aspects of the logical addresses and physical addresses of the zone data written in the zone. When a read request for invalid data is made, the memory controller 120 may return invalid pattern data to the processing unit 12. Therefore, since a portion of the zone data written in the zone is invalidated even before the zone is reset, the security of the zone data written in the zone may be improved.

[0120] Figure 8 is a diagram showing an example of the electronic device 10 writing data in the first zone Z1. Figure 1 , Figure 2 and Figure 8 , the first zone Z1 may include the first page P1 to the sixteenth page P16. The processing unit 12 may request the memory controller 120 to perform a first sequential write SW1, in which the first page data D1 to the eighth page data D8 are sequentially written to the first page P1 to the eighth page P8 of the first zone Z1. After the first sequential write SW1 is performed, the write pointer WP of the first zone Z1 may point to the ninth page P9.

[0121] When the first to eighth page data D1 to D8 are sequentially written to the first to eighth pages P1 to P8 of the first zone Z1 through the first sequential write SW1, the memory controller 120 may sequentially increase the valid page count VPC of the first zone Z1 from "1" to "8". The valid page count VPC may indicate the number of valid pages storing valid data among the pages of the relevant zone.

[0122] Each page of the first zone Z1 may correspond to two or more logical addresses. In an embodiment, each page of the first zone Z1 may correspond to four logical addresses. A bitmap (BM) may indicate invalid or valid information of data written at a logical address belonging to each page.

[0123] When one page of the first zone Z1 corresponds to four logical addresses, four bits of the bit map BM may be mapped to one page of the first zone Z1. Four bits corresponding to one page may correspond to one row. When the first page data D1 to the eighth page data D8 are sequentially written to the first page P1 to the eighth page P8 of the first zone Z1 through the first sequential write SW1, the memory controller 120 may set the values ​​of the bits of the first row to the eighth row of the bit map BM to valid values. For example, Figure 8 In , the dashed boxes may indicate bits of the bitmap BM corresponding to valid values. Figure 8 In the example, empty boxes may indicate bits of the bitmap BM corresponding to invalid values.

[0124] When the first to eighth page data D1 to D8 are sequentially written at the first to eighth pages P1 to P8 of the first zone Z1 through the first sequential write SW1 , the memory controller 120 may generate a mapping table MT.

[0125] For example, the memory controller 120 may write data corresponding to the first logical address group LBA[1] at the first page P1, and may map the first logical address group LBA[1] to the first page P1. When one page of the first zone Z1 corresponds to four logical addresses, the first logical address group LBA[1] may include four consecutive logical addresses. Each of the logical addresses of the first logical address group LBA[1] may be mapped to a physical address and a position offset of the first page P1.

[0126] The memory controller 120 may write data corresponding to the kth logical address group LBA[k] at the kth page (k is a positive integer) Pk, and may map the kth logical address group LBA[k] to the kth page Pk. The kth logical address group LBA[k] may include four logical addresses that are continuous to the last logical address of the (k-1)th logical address group LBA[k-1] and continuous. Each of the logical addresses of the kth logical address group LBA[k] may be mapped to a physical address and a position offset of the kth page Pk.

[0127] For example, the memory controller 120 may write data corresponding to the eighth logical address group LBA[8] at the eighth page P8, and may map the eighth logical address group LBA[8] to the eighth page P8. The eighth logical address group LBA[8] may include four logical addresses that are continuous to the last logical address of the seventh logical address group LBA[7]. Each of the logical addresses of the eighth logical address group LBA[8] may be mapped to a physical address and a position offset of the eighth page P8.

[0128] Fig. 9 1 is a diagram showing an example of the electronic device 10 performing partial invalidation on data in the first zone Z1. Fig. 9 The following table shows the write Figure 8 An example of partially invalidating the data in the first zone Z1.

[0129] refer to Figure 1 , Figure 2 and Fig. 9, the processing unit 12 may send a partial invalidation request for the third page data D3 and the sixth page data D6 written at the third page P3 and the sixth page P6 among the first page data D1 to the eighth page data D8 written in the first zone Z1 to the memory controller 120. Based on the partial invalidation request, the memory controller 120 may perform a partial invalidation INV_P so that the third page data D3 and the sixth page data D6 are managed as invalid data.

[0130] As the memory controller 120 performs the partial invalidation INV_P for managing the third page data D3 and the sixth page data D6 as invalid data, the memory controller 120 can manage the third page P3 and the sixth page P6 of the first zone Z1 as storing invalid data. Therefore, the memory controller 120 can reduce the valid page count VPC of the first zone Z1 from "8" to "6".

[0131] As the memory controller 120 performs partial invalidation INV_P for managing the third and sixth page data D3 and D6 as invalid data, the memory controller 120 may update values ​​of bits of the bitmap BM corresponding to the third and sixth pages P3 and P6 to change to invalid values.

[0132] Even when the partial invalidation INV_P is performed, the memory controller 120 may maintain the mapping table MT without updating. Therefore, the sequential aspect of the logical address and the physical address may be guaranteed in the first zone Z1.

[0133] That is, even if the partial invalidation INV_P is executed, the memory controller 120 can maintain the mapping table MT so that the order of the logical address and the physical address of the first zone Z1 is maintained. Even after the partial invalidation INV_P is executed, the processing unit 12 can send a read request based on the third logical address group LBA[3] and the sixth logical address group LBA[6] to the memory controller 120. Due to an error, the memory controller 120 may not process the read request based on the third logical address group LBA[3] and the sixth logical address group LBA[6].

[0134] When a read request based on the third logical address group LBA[3] and the sixth logical address group LBA[6] is received, the memory controller 120 may determine that the received read request is a read request for partially invalid data with reference to the valid page count VPC and the bit map BM. The memory controller 120 may send the invalid pattern data to the processing unit 12 (refer to Figure 7 Operation S260), therefore, the original data whose part is invalidated can be prevented from being leaked.

[0135] Fig.10is a diagram showing an example of copying valid data of a first zone Z1 to a second zone Z2 by garbage collection. Figure 1 , Figure 2 and Fig.10 Through the second sequential write SW2, the memory controller 120 can sequentially write valid page data from the first page data D1 to the eighth page data D8 of the first zone Z1, that is, the first page data D1 and the second page data D2, the fourth page data D4 and the fifth page data D5, and the seventh page data D7 and the eighth page data D8 at the first page P1 to the sixth page P6 of the second zone Z2.

[0136] As the first page data D1 and the second page data D2, the fourth page data D4 and the fifth page data D5, and the seventh page data D7 and the eighth page data D8 are sequentially written to the first page P1 to the sixth page P6 of the second zone Z2 through the second sequential write SW2, the memory controller 120 can sequentially increase the valid page count VPC of the second zone Z2 from "1" to "6".

[0137] As the first and second page data D1 and D2, the fourth and fifth page data D4 and D5, and the seventh and eighth page data D7 and D8 are sequentially written to the first to sixth pages P1 to P6 of the second zone Z2 through the second sequential write SW2, the memory controller 120 can set the bits of the first to sixth rows of the bit map BM to valid values.

[0138] As the first page data D1 and the second page data D2, the fourth page data D4 and the fifth page data D5, and the seventh page data D7 and the eighth page data D8 are sequentially written to the first page P1 to the sixth page P6 of the second zone Z2 through the second sequential write SW2, the memory controller 120 can generate a mapping table MT, in which the first logical address group LBA[1] to the sixth logical address group LBA[6] are mapped to the first page P1 to the sixth page P6.

[0139] In an embodiment, while garbage collection is being performed, some logical addresses assigned to a plurality of page data may be updated. For example, in order to ensure the order of logical addresses and physical addresses, the third logical address group LBA[3] given to the third page data D3 of the invalid zone (i.e., the first zone Z1) may be given to any other page data, for example, the fourth page data D4 written at the third page P3 of the second zone Z2.

[0140] The fourth logical address group LBA[4] given to the fourth page data D4 of the first zone Z1 may be given to any other page data, for example, the fifth page data D5 written at the fourth page P4 of the second zone Z2.

[0141] The fifth logical address group LBA[5] given to the fifth page data D5 of the first zone Z1 may be given to any other page data, for example, the seventh page data D7 written at the fifth page P5 of the second zone Z2.

[0142] The sixth logical address group LBA[6] given to the sixth page data D6 of the invalid zone (ie, the first zone Z1) may be given to any other page data, for example, the eighth page data D8 written at the sixth page P6 of the second zone Z2.

[0143] The seventh logical address group LBA[7] and the eighth logical address group LBA[8] given to the seventh page data D7 and the eighth page data D8 of the first zone Z1 may not be given to the data copied to the second zone Z2. In an embodiment, after garbage collection is completed, the data written in the second zone Z2 may have the seventh logical address group LBA[7].

[0144] When garbage collection is completed, the processing unit 12 may send a reset request for the first zone Z1 to the memory controller 120. Based on the reset request, the memory controller 120 may manage all data written in the first zone Z1 as invalid data. The memory controller 120 may physically erase the data of the reset zone by erasing the erase unit assigned to the reset zone.

[0145] As described above, the memory controller 120 can manage the partial invalid data as logically invalid data by using the valid page count VPC or the bit map BM while maintaining the original data of the partial invalid data in the nonvolatile memory device 110. As the memory controller 120 manages the partial data as invalid data in response to the partial invalid request, the memory controller 120 can improve the security of the data written in the first zone Z1.

[0146] When the first zone Z1 is reset, the memory controller 120 may manage all data written in the first zone Z1 as invalid data, and may delete the mapping table MT of the first zone Z1. That is, as the memory controller 120 manages the original data as invalid data based on the partial invalidation request, and physically erases or removes the original data of the nonvolatile memory device 110 when or after the first zone Z1 is reset (e.g., by garbage collection), the security of the data written in the first zone Z1 may be improved.

[0147] Fig.11 is a diagram showing an example of processing a read request by the storage device 11 or 100. Figure 1 , Figure 2 and Fig.11In operation S310, the storage device 11 or 100 may receive a read request from the processing unit 12. For example, the memory controller 120 may receive the read request from the processing unit 12.

[0148] In operation S320, the memory controller 120 may determine whether the received read request is associated with valid data. For example, the memory controller 120 may determine the target area of ​​the read request based on the received read request. The memory controller 120 may determine whether the read request is associated with valid data based on the (multiple) logical addresses included in the received read request, the valid page count VPC of the target area, and the bit map BM of the target area. For example, when the logical address of the read request corresponds to the logical address of the valid data of the target area, the read request may be determined to be associated with valid data. When the logical address of the read request does not correspond to the logical address of the valid data of the target area, the read request may be determined to be not associated with valid data.

[0149] When the read request is associated with valid data, the memory controller 120 may read the valid data in operations S331 to S335. In operation S331, the memory controller 120 may read data from the nonvolatile memory device 110. For example, the memory controller 120 may convert (multiple) logical addresses into (multiple) physical addresses by using a mapping table MT. The memory controller 120 may read data from the nonvolatile memory device 110 by sending a read command to the nonvolatile memory device 110 based on the (multiple) physical addresses.

[0150] In operation S333, the memory controller 120 may output data. For example, the memory controller 120 may output data read from the nonvolatile memory device 110 to the processing unit 12. In operation S335, the memory controller 120 may output a response. For example, the memory controller 120 may output a response indicating that the read operation is performed normally to the processing unit 12.

[0151] When the read request is not associated with valid data, in operation S340, the memory controller 120 may determine that the read request is associated with invalid data. For example, when the logical address of the read request corresponds to the logical address of the partial invalid data of the target area, the read request may be determined to be associated with invalid data. When the logical address of the read request does not correspond to the logical address of the partial invalid data of the target area, the read request may be determined to be not associated with invalid data.

[0152] When the read request is associated with invalid data, the memory controller 120 may output the invalid data in operations S351 and S353. In operation S351, the memory controller 120 may output invalid pattern data. The invalid pattern data may be pattern data unrelated to the original data, such as specific pattern data, arbitrary pattern data, dummy pattern data, or random pattern data.

[0153] In operation S353, the memory controller 120 may output a response indicating invalid pattern data to the processing unit 12. For example, the response may include information indicating that the data output to the processing unit 12 is invalid pattern data. Because the order of the logical address and the physical address of each zone is maintained, and the mapping table of each zone is maintained until each zone is reset, the memory controller 120 may recognize a read request for invalid data as a normal operation. The memory controller 120 may not determine a read request for invalid data as an error.

[0154] When the read request is not associated with invalid data, the read request may be a read request for data in an unwritten area, for example, the read request is outside the write pointer WP. When the read request is not associated with invalid data, the memory controller 120 may perform error processing in operations S361 and S363. In operation S361, the memory controller 120 may determine an error. For example, as shown in FIG. Figure 8 , Fig. 9 and Fig.10 As described above, the memory controller 120 may generate a mapping table MT for a page before the write pointer WP. The memory controller 120 may not include a mapping table MT for a page beyond the write pointer WP or outside the write pointer WP. When a read request for a (multiple) logical address that does not exist in the mapping table is received, the memory controller 120 may determine the read request as an error. In operation S363, the memory controller 120 may output a response indicating an error to the processing unit 12.

[0155] As described above, a read request for valid data among the data in the write area and a read request for part of invalid data among the data in the write area can be performed as a normal operation. Depending on the read request for valid data, the memory controller 120 can read and output valid data. Depending on the read request for invalid data, the memory controller 120 can output preset invalid pattern data without performing a read operation.

[0156] Fig.12 An example is shown in which a portion of the data of each page is invalidated. In an embodiment, Fig.12 Shows the write Figure 8 An example of partially invalidating INV_P in the data execution section of the first zone Z1. Figure 1 , Figure 2 and Fig.12 , depending on the partial invalidation request of the processing unit 12, the memory controller 120 may invalidate the data corresponding to the first logical address and the second logical address among the seventh page data D7 of the seventh page P7 of the first zone Z1 through the partial invalidation INV_P. In addition, depending on the partial invalidation request of the processing unit 12, the memory controller 120 may invalidate the data corresponding to the third logical address and the fourth logical address among the eighth page data D8 of the eighth page P8 of the first zone Z1 through the partial invalidation INV_P.

[0157] Since all data of any one page are not completely invalid, the memory controller 120 may maintain the valid page count VPC of the first zone Z1 at “8”.

[0158] The memory controller 120 may set the first and second bits corresponding to the seventh page P7 among the bits of the bitmap BM to invalid values. The memory controller 120 may set the third and fourth bits corresponding to the eighth page P8 among the bits of the bitmap BM to invalid values.

[0159] The memory controller 120 may maintain the mapping table MT. Original data corresponding to the data partially invalidated by the memory controller 120 may be maintained in the nonvolatile memory device 110 .

[0160] Fig.13 is a diagram showing an example of copying valid data of a first zone Z1 to a second zone Z2 by garbage collection. Figure 1 , Figure 2 and Fig.13 Through the second sequential write SW2, the memory controller 120 can sequentially write valid page data from the first page data D1 to the eighth page data D8 of the first zone Z1, that is, the first page data D1 to the sixth page data D6 at the first page P1 to the seventh page P7 of the second zone Z2, partial data D7' (for example, the first half) of the seventh page data D7, and partial data D8' (for example, the second half) of the eighth page data D8.

[0161] For example, the memory controller 120 may write the first to sixth pages of data D1 to D6 at the first to sixth pages P1 to P6 of the second zone Z2. The memory controller 120 may integrate partial data D7' of the seventh page of data D7 and partial data D8' of the eighth page of data D8, and may write the integrated data at the seventh page P7 of the second zone Z2.

[0162] As the second sequential write SW2 is performed, the memory controller 120 may increase the valid page count VPC of the second zone Z2 from “1” to “7”.

[0163] As the second sequential write SW2 is performed, the memory controller 120 may set bits corresponding to the first to seventh pages P1 to P7 of the bit map BM of the second zone Z2 to valid values.

[0164] As the second sequential write SW2 is performed, the memory controller 120 may generate a mapping table MT of data written at the first to seventh pages P1 to P7 .

[0165] As reference Fig.12 and Fig.13 As described above, partial invalidation of data in the write area may be performed for each of the logical addresses corresponding to the pages and for each page.

[0166] Fig.14 Another example of partially invalidating the electronic device 10 is shown. Fig.14 In the example, the specific operation will correspond to Figure 7 Unless otherwise clearly mentioned in the specification, reference is made to Figure 7 The description given for a specific operation of Fig.14 The corresponding operation.

[0167] refer to Figure 1 , Figure 2 and Fig.14 In operation S410, the processing unit 12 may detect the invalidity of the zone data. Operation S410 may correspond to Figure 7 Operation S210.

[0168] As invalidation of the region data is detected, in operation S420, the processing unit 12 may send a partial invalidation request to the memory controller 120. Operation S420 may correspond to Figure 7 Operation S220.

[0169] As the partial invalidation request is received, the memory controller 120 may perform a logical invalidation of the region data in operation S430. Operation S430 may correspond to Figure 7 Operation S230.

[0170] After performing the logical invalidation of the region data, in operation S440, the memory controller 120 may send a physical rewrite command to the non-volatile memory device 110. For example, the memory controller 120 may refer to the mapping table MT to convert the (multiple) logical addresses of the partial invalidation request into (multiple) physical addresses. The memory controller 120 may request the non-volatile memory device 110 to perform a rewrite operation based on the (multiple) physical addresses. As the non-volatile memory device 110 performs the rewrite operation in response to the physical rewrite command, the data requested to partially invalidate may be physically removed (or destroyed) so as not to be read.

[0171] In operation S450, the memory controller 120 may send a response to the processing unit 12. Operation S450 may correspond to Figure 7 Operation S240.

[0172] In operation S460, the processing unit 12 may send a read request to the memory controller 120. Operation S460 may correspond to Figure 7 Operation S250.

[0173] Depending on the read request, in operation S470, the memory controller 120 may detect a logical invalid. Operation S470 may correspond to Figure 7 Operation S260.

[0174] When logic invalidation is detected, the memory controller 120 may send invalid pattern data to the processing unit 12 in operation S480. Operation S480 may correspond to Figure 7 Operation S270.

[0175] After sending the invalid pattern data, in operation S490, the memory controller 120 may send a response to the processing unit 12. Operation S490 may correspond to Figure 7 Operation S280.

[0176] With reference Figure 7 Compared to the described embodiments, when the data in the write area is partially invalidated, the electronic device 10 or the storage device 11 or 100 can perform a rewrite operation for the data written in the non-volatile memory device 110. That is, the original data can be physically removed at the time when the partial invalidation is performed. This means that the security of the data is further improved.

[0177] In an embodiment, a partial invalidation request (or command) that causes a rewrite operation may be defined as being different from a partial invalidation request (or command) that does not cause a rewrite operation. Alternatively, a partial invalidation request (or command) that causes a rewrite operation may be defined as being the same as a partial invalidation request (or command) that does not cause a rewrite operation, and may be defined as using a descriptor different from the descriptor of the partial invalidation request (or command) that does not cause a rewrite operation.

[0178] Fig.15 An example of performing a program operation PGM and an overwrite operation OW on a memory cell is shown. Fig.15 In each frame of , the horizontal axis represents the threshold voltage VTH of the memory cell, and the vertical axis represents the number of memory cells. That is, Fig.15 Each box shows the distribution of threshold voltages of memory cells of a page.

[0179] refer to Figure 2 , Figure 3 and Fig.15 In an embodiment, memory cells of a page may be connected to the same word line. Memory cells of a page may receive a common voltage through a common word line.

[0180] In a state where data is not written at the page, for example, as shown in the first block B1, the memory cell may have a threshold voltage corresponding to the erase state ES. The threshold voltage distribution of the memory cell may correspond to the erase state ES.

[0181] After the program operation PGM is performed, as shown in the second block B2, each of the memory cells may be programmed to a target state among the erase state ES and the first to fifteenth program states PS1. For example, the nonvolatile memory device 200 may maintain the threshold voltage of the memory cell having the erase state ES as the target state.

[0182] The nonvolatile memory device 200 can increase the threshold voltage of the memory cell having the first programming state PS1 to the fifteenth programming state PS15 as the target state by using the first verification voltage VFY1 to the fifteenth verification voltage VFY15. For example, the nonvolatile memory device 200 can increase the threshold voltage of the memory cell having the mth programming state PSm (m is a positive integer equal to or less than "(2^y)-1") as the target state until the threshold voltage of the memory cell is greater than the mth verification voltage VFYm. The memory controller 120 can identify the data written in the nonvolatile memory device 200 by performing a read operation using a read voltage whose level is between different states.

[0183] When the rewrite operation OW is performed, as shown in the third box B3, the nonvolatile memory device 200 can increase the threshold voltage of the memory cell of the lowest at least two states (e.g., the erase state ES and the first program state PS1) so as to belong to the threshold voltage distribution of any other state. As the rewrite operation OW is performed, the memory cells belonging to two different states can be updated to have the same state OWS (e.g., overlapping with the program state P2 and partially overlapping with the program state P3, as shown in the third box B3). That is, the memory controller 120 can physically remove the original data by causing a read error through the rewrite operation OW.

[0184] Fig.16 2 shows an example in which the nonvolatile memory device 200 performs a program operation PGM and an overwrite operation OW. Figure 2 and Fig.16 , the program operation PGM may include a first program loop LOOP1 to an i-th program loop LOOPPi (i is a positive integer).

[0185] In each programming loop, the nonvolatile memory device 200 may apply a program voltage VPGM to the memory cells of the page through a word line. The program voltage VPGM may increase the threshold voltage of the memory cells of the page. The nonvolatile memory device 200 may apply a verification voltage VFY including at least some of the first verification voltage VFY1 to the fifteenth verification voltage VFY15 to the memory cells of the page through a word line. The nonvolatile memory device 200 may determine whether each of the memory cells of the page is programmed to a target state through the verification voltage VFY.

[0186] The programming loop may be repeated until the memory cells of the page are fully programmed. As the programming loop is repeated, the programming voltage VPGM may increase. The programming voltage VPGM of the first programming loop LOOP1 (e.g., the starting programming loop) may be the programming start voltage VINI. The programming voltage VPGM of the i-th programming loop LOOPi (e.g., the last programming loop) may be the programming end voltage VEND.

[0187] In an embodiment, in an initial program loop among the first to i-th program loops LOOP1, the nonvolatile memory device 200 may not use a verification voltage having a relatively high level among the verification voltages VFY to verify the memory cells of the page. In the remaining program loops except the initial program loop, the nonvolatile memory device 200 may not use a verification voltage having a relatively low level from among the verification voltages VFY to verify the memory cells of the page.

[0188] In the rewrite operation OW, the nonvolatile memory device 200 may apply a rewrite voltage VOW to the memory cells of the page through the word line. The rewrite voltage VOW may have a level between the program start voltage VINI and the program end voltage VEND. The nonvolatile memory device 200 may apply the rewrite voltage VOW to the memory cells of the page through the word line at least twice without verification. The nonvolatile memory device 200 may maintain, increase, or decrease the level of the rewrite voltage VOW applied to the memory cells of the page.

[0189] As the level of the rewrite voltage VOW decreases, the degree to which the threshold voltage of the memory cells of the page increases can be reduced. Therefore, the number of states of the memory cells with increased threshold voltages can be reduced in the rewrite operation OW. As the level of the rewrite voltage VOW increases, the degree to which the threshold voltage of the memory cells of the page increases can be increased. Therefore, the number of states of the memory cells with increased threshold voltages can be increased in the rewrite operation OW.

[0190] As described above, based on the partial invalidation request, the storage device 11 or 100 according to the embodiment of the present disclosure can manage part of the data in the write area as logically invalid, or can physically remove (or destroy) the logically invalid data. Therefore, a storage device 11 or 100 with improved security is provided.

[0191] Fig.17 1 is a diagram showing an example of managing invalid data by the storage device 11 or 100. In an embodiment, before writing data to be written to a zone into the erase unit of the first storage area 110a allocated to the zone, the storage device 11 or 100 may buffer the data by using the erase unit of the fourth storage area 110d. That is, before the data in the write zone is written into the erase unit of the first storage area 110a, a portion of the data in the write zone may be partially invalidated in the process of being buffered in the erase unit of the fourth storage area 110d. Fig.17 An example is shown in which the data storage device 11 or 100 manages data that is partially invalidated during buffering.

[0192] refer to Figure 2 , Figure 4 and Fig.17 In operation S510, the memory controller 120 may detect migration or internal garbage collection GC. Migration may refer to an operation of moving data written in the erase unit of the fourth storage area 110d to the erase unit of the first storage area 110a allocated to the zone. Internal garbage collection GC may refer to garbage collection performed internally between the erase units of the fourth storage area 110d by the memory controller 120 for data buffered in the erase units of the fourth storage area 110d, so as to ensure free erase units of the fourth storage area 110d.

[0193] In operation S520, the memory controller 120 may determine whether the original data of the migration or internal garbage collection GC is valid data. When the original data is valid data, in operation S530, the memory controller 120 may read data from the sacrifice erase unit EU. The sacrifice erase unit EU may refer to an erase unit storing the original data to be moved by migration or internal garbage collection GC. In operation S540, the memory controller 120 may write the read data into the destination erase unit EU. That is, the valid data may be copied from the sacrifice erase unit EU to the destination erase unit EU.

[0194] When the original data is not valid data, the memory controller 120 may write invalid pattern data into the destination erase unit EU in operation S550. For example, the memory controller 120 may not read the original data from the victim erase unit EU, but it may write the preset invalid pattern data into the destination erase unit EU. As the invalid pattern data is written into the destination erase unit EU, the partially invalidated original data may be physically removed during migration or internal garbage collection (GC).

[0195] In an embodiment, in order to ensure the order of the logical address and the physical address of the data in the write area, the memory controller 120 may not process the read request for invalid pattern data in the write destination erase unit EU as an error. When a read request for invalid pattern data is received, the memory controller 120 may output a response indicating the invalid pattern data instead of a response indicating the occurrence of an error.

[0196] Fig.18 Another example of partially invalidating the electronic device 10 is shown. Fig.18 In the example, the specific operation will correspond to Figure 7 Unless otherwise clearly mentioned in the specification, reference is made to Figure 7 The description given for a specific operation of Fig.18 The corresponding operation.

[0197] refer to Figure 1 , Figure 2 and Fig.18 In operation S610, the processing unit 12 may detect the invalidity of the zone data. Operation S610 may correspond to Figure 7 Operation S210.

[0198] As invalidation of the region data is detected, in operation S620, the processing unit 12 may send a partial invalidation request to the memory controller 120. Operation S620 may correspond to Figure 7 Operation S220.

[0199] As the partial invalidation request is received, in operation S630, the memory controller 120 may send a copy command to the nonvolatile memory device 110. For example, the memory controller 120 may send a command including source information and destination information and requesting to perform a copy operation to the nonvolatile memory device 110. Alternatively, the memory controller 120 may send a read command including source information and a write command including destination information to the nonvolatile memory device 110.

[0200] Through operation S630, the memory controller 120 can copy the remaining part of the data of the memory block (e.g., the source memory block) except the partially invalid target corresponding to the partial invalidation request to the destination memory block. That is, the valid data of the source memory block of the nonvolatile memory device 110 can be copied to the destination memory block.

[0201] In operation S640, the memory controller 120 may send an erase command to the nonvolatile memory device 110. For example, in operation S630, the memory controller 120 may send an erase command for a memory block corresponding to the partial invalidation request (ie, a source block of the copy command) to the nonvolatile memory device 110.

[0202] By copying valid data of a source memory block corresponding to a partial invalidation request to a destination block and erasing the source memory block, data corresponding to the partial invalidation request can be physically and completely removed from the nonvolatile memory device 110. Therefore, the security of the storage device 100 can be improved.

[0203] In operation S650, the memory controller 120 may update the mapping table. For example, the memory controller 120 may delete the mapping data of the source memory block. The memory controller 120 may record the logical address and physical address of the valid data copied to the destination memory block.

[0204] In an embodiment, the logical addresses of the data copied to the destination memory block may not be sequential due to partially invalid data.The memory controller 120 may not manage the destination memory block based on the zone, or may select a memory block not managed based on the zone as the destination memory block.

[0205] In operation S660, the memory controller 120 may send a response to the processing unit 12. Operation S660 may correspond to Figure 7 Operation S240.

[0206] In operation S670, the processing unit 12 may send a read request to the memory controller 120. Operation S670 may correspond to Figure 7Operation S250.

[0207] Depending on the read request, the memory controller 120 may detect a mapping table mismatch in operation S680. For example, the memory controller 120 may detect a mapping table mismatch because there is no mapping table for a logical address requested to be read.

[0208] After the mapping table mismatch is detected, in operation S690, the memory controller 120 may send a response to the processing unit 12. Operation S690 may correspond to Figure 7 The response may include information indicating that a read error occurred.

[0209] With reference Figure 7 and Fig.14 Compared to the described embodiments, when the data in the write area is partially invalidated, the electronic device 10 or the storage device 11 or 100 can perform an erase operation for the data written in the non-volatile memory device 110. That is, the original data can be physically removed at the time when the partial invalidation is performed. This means that the security of the data is further improved.

[0210] In an embodiment, a partial invalidation request (or command) that causes an erase operation may be defined as different from an invalidation request (or command) that causes a rewrite operation or a partial invalidation request (or command) that does not cause a rewrite operation. Alternatively, a partial invalidation request (or command) that causes an erase operation may be defined as the same as an invalidation request (or command) that causes a rewrite operation or a partial invalidation request (or command) that does not cause a rewrite operation, and may be defined to use any other descriptor.

[0211] Fig.19 An example of setting the electronic device 10 to a partial invalid mode is shown. Figure 1 , Figure 2 and Fig.19 In operation S710, the processing unit 12 may determine an invalid mode. For example, the invalid mode may include a first mode as a logical invalid mode, a second mode as a rewrite mode, and a third mode as an erase mode.

[0212] In operation S720, the processing unit 12 may send an invalid mode setting request to the memory controller 120. The invalid mode setting request may be transmitted to the memory controller 120 through a UPIU, for example, a command UPIU or a query request UPIU, or in accordance with any other suitable format.

[0213] Depending on the invalidation mode setting request, the memory controller 120 may set the invalidation mode in operation S730. After the invalidation mode is set, the memory controller 120 may perform a partial invalidation request depending on the set mode.

[0214] In operation S740 , the memory controller 120 may transmit a response indicating that the mode is completely set to the processing unit 12 .

[0215] As described above, depending on the preset invalidation mode, the storage device 100 can perform the same partial invalidation request in one of the first mode, the second mode, and the third mode. In an embodiment, in the first mode, at the memory controller, based on the partial invalidation request received from the external host device, the second data corresponding to the partial invalidation request is managed as invalid; in the second mode, based on the partial invalidation request received from the external host device, the memory controller causes the non-volatile memory device to perform a rewrite operation on the second data corresponding to the partial invalidation request, and manages the second data corresponding to the partial invalidation request as invalid; and in the third mode, based on the partial invalidation request received from the external host device: the memory controller copies the valid first data except the second data corresponding to the partial invalidation request to another memory block, the second data is among the third data of the memory block corresponding to the partial invalidation request, and erases the memory block corresponding to the partial invalidation request.

[0216] In an embodiment, the first mode, the second mode, and the third mode may be defined depending on the security level. The first mode may correspond to the lowest security level. The third mode may correspond to the highest security level. The second mode may correspond to an intermediate security level. The processing unit 12 may set a partially invalid mode of the storage device 11 or 100 by setting the security level of the storage device 11 or 100.

[0217] As another example, when sending a partial invalidation request to the storage device 11 or 100, the processing unit 12 may allow invalidation mode information (or security level information) to be included in the partial invalidation request. The storage device 11 or 100 may perform partial invalidation depending on the invalidation mode information (or security level information) included in the partial invalidation request.

[0218] Fig. 20 is a diagram of a system 1000 to which a storage device is applied according to an embodiment. Fig. 20 The system 1000 may basically be a mobile system such as a portable communication terminal (e.g., a mobile phone), a smart phone, a tablet personal computer (PC), a wearable device, a healthcare device, or an Internet of Things (IOT) device. However, Fig. 20 The system 1000 is not necessarily limited to a mobile system and may be a PC, a laptop computer, a server, a media player, or an automotive device (eg, a navigation device).

[0219] refer to Fig. 20, the system 1000 may include a main processor 1100, a memory (e.g., 1200a and 1200b), and a storage device (e.g., 1300a and 1300b). In addition, the system 1000 may include at least one of an image capture device 1410, a user input device 1420, a sensor 1430, a communication device 1440, a display 1450, a speaker 1460, a power supply device 1470, and a connection interface 1480.

[0220] The main processor 1100 may control all operations of the system 1000, and more specifically, operations of other components in the system 1000. The main processor 1100 may be implemented as a general-purpose processor, a dedicated processor, or an application processor.

[0221] The main processor 1100 may include at least one CPU core 1110, and also include a controller 1120 configured to control memories 1200a and 1200b and / or storage devices 1300a and 1300b. In some embodiments, the main processor 1100 may also include an accelerator 1130, which is a dedicated circuit for high-speed data operations (such as artificial intelligence (AI) data operations). The accelerator 1130 may include a graphics processing unit (GPU), a neural processing unit (NPU), and / or a data processing unit (DPU), and may be implemented as a chip physically separated from other components of the main processor 1100.

[0222] Memories 1200a and 1200b may be used as main memory devices of system 1000. Although each of memories 1200a and 1200b may include volatile memory, such as static random access memory (SRAM) and / or dynamic RAM (DRAM), each of memories 1200a and 1200b may include nonvolatile memory, such as flash memory, phase change RAM (PRAM) and / or resistive RAM (RRAM). Memories 1200a and 1200b may be implemented in the same package as main processor 1100.

[0223] The storage devices 1300a and 1300b may be used as non-volatile memory devices configured to store data regardless of whether power is supplied thereto, and have a larger storage capacity than the memories 1200a and 1200b. The storage devices 1300a and 1300b may include storage controllers (STRG CTRL) 1310a and 1310b and NVM (non-volatile memory) 1320a and 1320b, respectively, which are configured to store data via the control of the storage controllers 1310a and 1310b. Although the NVMs 1320a and 1320b may include flash memories having a two-dimensional (2D) structure or a three-dimensional (3D) V-NAND structure, the NVMs 1320a and 1320b may include other types of NVMs, such as PRAM and / or RRAM.

[0224] The storage devices 1300a and 1300b may be physically separated from the main processor 1100 and included in the system 1000 or implemented in the same package as the main processor 1100. In addition, the storage devices 1300a and 1300b may have various types of solid-state devices (SSDs) or memory cards, and may be removably combined with other components of the system 100 through an interface (such as a connection interface 1480 to be described below). The storage devices 1300a and 1300b may be devices that apply a standard protocol, such as universal flash storage (UFS), embedded multimedia card (eMMC), or non-volatile memory express (NVMe), but are not limited thereto.

[0225] The image capture device 1410 may capture still images or moving images. The image capture device 1410 may include a camera, a camcorder, and / or a webcam.

[0226] The user input device 1420 may receive various types of data input by a user of the system 1000 and include a touch pad, a keypad, a keyboard, a mouse, and / or a microphone.

[0227] The sensor 1430 may detect various types of physical quantities that may be obtained from the outside of the system 1000 and convert the detected physical quantities into electrical signals. The sensor 1430 may include a temperature sensor, a pressure sensor, an illumination sensor, a position sensor, an acceleration sensor, a biosensor, and / or a gyro sensor.

[0228] The communication device 1440 may transmit and receive signals between other devices outside the system 1000 according to various communication protocols. The communication device 1440 may include an antenna, a transceiver, and / or a modem.

[0229] Display 1450 and speaker 1460 may be used as output devices configured to output visual information and auditory information, respectively, to a user of system 1000 .

[0230] The power supply device 1470 may appropriately convert power supplied from a battery (not shown) embedded in the system 1000 and / or an external power source, and supply the converted power to each component of the system 1000 .

[0231] The connection interface 1480 may provide a connection between the system 1000 and an external device, wherein the external device is connected to the system 1000 and is capable of transmitting and receiving data to and from the system 1000. The connection interface 1480 may be implemented by using various interface schemes, such as Advanced Technology Attachment (ATA), Serial ATA (SATA), External SATA (e-SATA), Small Computer Small Interface (SCSI), Serial Attached SCSI (SAS), Peripheral Component Interconnect (PCI), PCI Express (PCIe), NVMe, IEEE 1394, Universal Serial Bus (USB) interface, Secure Digital (SD) card interface, Multimedia Card (MMC) interface, eMMC interface, UFS interface, Embedded UFS (eUFS) interface, and Compact Flash (CF) card interface.

[0232] In the embodiments, reference Figures 1 to 19 The storage device 11 or 100 described above can be implemented with the storage devices 1300a and 1300b. Figures 1 to 19 The processing unit 12 described may be implemented with the main processor 1100. For example, the main processor 1100 may send a partial invalidation request to the storage devices 1300a and 1300b. In response to the partial invalidation request, the storage devices 1300a and 1300b may logically manage a portion of the data in the write area as invalid data, or may remove a portion of the data while logically managing a portion of the data as invalid data. Figures 1 to 19 The description given of the storage device 11 or 100 and the processing unit 12 in the embodiment can be applied to Fig. 20 storage devices 1300a and 1300b and the main processor 1100.

[0233] In the above embodiments, the components according to the present disclosure are described by using the terms "first", "second", "third", etc. However, the terms "first", "second", "third", etc. may be used to distinguish components from each other and do not limit the present disclosure. For example, the terms "first", "second", "third", etc. do not refer to any form of order or numerical meaning.

[0234] In the above embodiments, the components according to the embodiments of the present disclosure are referred to by using a frame. The frame can be implemented with various hardware devices, such as an integrated circuit, an application-specific IC (ASIC), a field programmable gate array (FPGA), and a complex programmable logic device (CPLD), firmware driven in a hardware device, software such as an application, or a combination of a hardware device and software. In addition, the frame may include a circuit implemented using a semiconductor element in an integrated circuit, or a circuit registered as intellectual property (IP).

[0235] According to an embodiment of the present disclosure, a storage device can reduce a write amplification factor WAF by allowing only sequential writes to a zone. In addition, the storage device can support rapid invalidation of important data by allowing partial invalidation of data in a write zone. Therefore, a storage device capable of reducing a write amplification factor WAF and providing improved security for important data and an operating method of the storage device are provided.

[0236] While the present disclosure has been described with reference to the embodiments thereof, it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the present disclosure as set forth in the appended claims.

Claims

1. A storage device, include: A nonvolatile memory device comprising a plurality of erasure units, each of which comprises a plurality of memory cells; as well as Memory controller, wherein, based on an open zone request received from an external host device, the memory controller is configured to assign a zone to at least one of the plurality of erase units and to allow only sequential writing to the zone, The memory controller is further configured to generate a mapping table, and the mapping table maps sequential logical addresses of the first data in the write area to sequential physical addresses, and Wherein, based on a partial invalidation request received from an external host device, the memory controller is further configured to manage second data corresponding to the partial invalidation request among the first data in the write area as invalid data while maintaining the mapping table.

2. The storage device according to claim 1, in, The memory controller is further configured to: Based on the first data being written to the zone, increasing a valid page count for the zone; and Based on the first data being invalidated, a valid page count of the zone is decreased.

3. The storage device according to claim 2, in, Based on the valid page count being different from the page number indicated by the write pointer, the memory controller is further configured to determine that at least one of the pages of the zone to which the first data is written stores invalid page data.

4. The storage device according to claim 1, in, Each page of the zone corresponds to two or more logical addresses, and Wherein, the memory controller is further configured as: setting a relevant bit of a bit map for the zone to a valid value based on third data being written to the zone, wherein the third data corresponds to the first logical address; and Based on the third data being invalidated, a relevant bit of the bit map of the zone is set to an invalid value.

5. The storage device according to claim 1, in, The partial invalidation request includes two or more logical addresses.

6. The storage device according to claim 1, in, The partial invalidation request includes two or more logical address ranges, and Each of the two or more logical address ranges includes a starting logical address and a length.

7. The storage device according to claim 1, in, The memory controller is further configured to send invalidation pattern data to the external host device based on a read request for invalidation data received from the external host device.

8. The storage device according to claim 7, in, The memory controller is further configured to send invalid pattern data to the external host device in the absence of a read operation of the nonvolatile memory device.

9. The storage device according to claim 7, in, The memory controller is further configured to send a response indicating the invalid pattern data after sending the invalid pattern data to the external host device.

10. The storage device according to claim 1, in, The memory controller is further configured to manage second data corresponding to the partial invalidation request as invalid data, and the nonvolatile memory device is configured to retain original valid data corresponding to the partial invalidation request.

11. The storage device according to claim 10, in, The memory controller is further configured to delete the mapping table in response to receiving a reset request of the zone from the external host device.

12. The storage device according to claim 11, in, Access to invalid data is prohibited based on the mapping table being deleted.

13. A storage device, include: A nonvolatile memory device comprising a plurality of erasure units, each of which comprises a plurality of memory cells; as well as Memory controller, wherein, based on an open zone request received from an external host device, the memory controller is configured to assign the zone to at least one erase unit among a plurality of erase units and to allow only sequential writing with respect to the zone, The memory controller is further configured to generate a mapping table, and the mapping table maps sequential logical addresses of the first data in the write area to sequential physical addresses, and Wherein, based on a partial invalidation request received from an external host device, the memory controller is further configured to perform a rewrite operation on second data corresponding to the partial invalidation request among the first data in the write area while maintaining the mapping table.

14. The storage device according to claim 13, in, When data is written to the zone, the nonvolatile memory device is further configured to program memory cells of each page of the zone into an erased state and a plurality of programmed states, and In which, in a rewrite operation, the non-volatile memory device is also configured to increase the threshold voltage of a memory cell having an erased state and to increase the threshold voltage of a memory cell having at least one of a plurality of programming states so that the erased state and the at least one programming state overlap or partially overlap with some of the remaining programming states of the plurality of programming states except the at least one programming state.

15. The storage device according to claim 13, in, Based on the first data being written into the area, the nonvolatile memory device is further configured to: apply a programming voltage to the memory cells of the page, the level of the programming voltage belonging to the range from a programming start voltage to a programming end voltage, and Wherein, in the rewrite operation, the nonvolatile memory device is further configured to apply at least one rewrite voltage to a second memory cell of the page, wherein the second memory cell corresponds to a partial invalidation request.

16. The storage device according to claim 15, in, The at least one rewrite voltage has a level between a program start voltage and a program end voltage.

17. The storage device according to claim 16, in, The at least one rewrite voltage includes at least two rewrite voltages having different levels.

18. The storage device according to claim 13, in, Based on a partial invalidation request received from an external host device, the memory controller is further configured to manage second data corresponding to the partial invalidation request among the first data in the write area as invalid data while maintaining a mapping table.

19. The storage device according to claim 18, in, The memory controller is further configured to send invalidation pattern data to the external host device based on a read request for the second data received from the external host device.

20. A method for operating a storage device, in, The storage device includes a non-volatile memory device and a memory controller, and the operating method includes: setting the partial invalidation request to one of a first mode, a second mode, and a third mode depending on a request of the external host device; In the first mode, at the memory controller, based on a partial invalidation request received from an external host device, second data corresponding to the partial invalidation request is managed as invalid data; In the second mode, based on a partial invalidation request received from an external host device, the memory controller causes the nonvolatile memory device to perform a rewrite operation on the second data corresponding to the partial invalidation request and manage the second data corresponding to the partial invalidation request as invalid; and In a third mode, based on a partial invalidation request received from an external host device: copying, by the memory controller, valid first data except for the second data corresponding to the partial invalidation request to another memory block, the second data being among third data of the memory block corresponding to the partial invalidation request, and Erase the memory block corresponding to the partial invalidation request.

Citation Information

Patent Citations

  • Storage system for quantum circuit simulation

    KR1020230057247A