Storage device and operation method thereof

By introducing an operation controller and an authentication controller into the storage device, the authentication information of the written data is generated and verified, which solves the problems of data integrity during the writing operation and data recovery after power outage, and improves the writing performance of the storage device. and data reliability.

CN113268441BActive Publication Date: 2024-09-10SK HYNIX INC
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202010926058.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-02-17
Filing Date
2020-09-07
Publication Date
2024-09-10
Estimated Expiration
2040-09-07

AI Technical Summary

Technical Problem

During writing operations, it is difficult for existing storage devices to effectively ensure data integrity and data recovery after a sudden power outage, and the writing performance is insufficient.

Method used

By introducing an operation controller and an authentication controller into the storage device, the authentication information of the written data is generated and verified to ensure the integrity of the data during writing and storage, and data authentication and recovery are performed after a power outage to improve writing into performance.

Benefits of technology

Data integrity verification during write operations and data recovery after power outage are achieved, thereby improving the write performance and data reliability of the storage device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113268441B_ABST
    Figure CN113268441B_ABST
Patent Text Reader

Abstract

The present invention provides a storage device with improved write performance. The storage device may include a memory device and a memory controller. The memory controller may: generate check start information indicating the start of a programming operation in response to a write request received from a host; control the memory device to perform a programming operation of storing data received from the host in a target area of ​​the memory device; generate check completion information indicating whether the programming operation has been successful; and provide a write result response including the check completion information to the host in response to a write return request received from the host.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to Korean Patent Application No. 10-2020-0018811, filed on February 17, 2020, which is hereby incorporated by reference in its entirety. Technical Field

[0003] Various embodiments of the present disclosure relate generally to an electronic device, and more particularly, to a memory device and a method of operating the memory device. Background Art

[0004] Typically, a storage device stores data under the control of a host device such as a computer or a smart phone. The storage device may include a memory device configured to store data, and a memory controller configured to control the memory device. The memory device may be a volatile memory device or a non-volatile memory device.

[0005] A volatile memory device stores data only when power is supplied thereto; when the power is turned off, the stored data is lost. Examples of volatile memory devices include static random access memory (SRAM) and dynamic random access memory (DRAM).

[0006] In a nonvolatile memory device, stored data is retained even when power is turned off. Examples of nonvolatile memory devices include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), and flash memory. Summary of the invention

[0007] Various embodiments of the present disclosure are directed to a memory device having improved write performance and a method of operating the memory device.

[0008] Embodiments of the present disclosure may provide a storage device, comprising: a memory device; and a memory controller, configured to: generate check-in information indicating the start of a programming operation in response to a write request received from a host, control the memory device to perform a programming operation of storing data received from the host in a target area of ​​the memory device, generate check-out information indicating whether the programming operation has been successful, and provide a write result response including the check-out information to the host in response to a write return request received from the host.

[0009] Embodiments of the present disclosure may provide a method for operating a storage device, comprising: in response to a write request received from a host, generating check start information indicating a target area on which a programming operation is to be performed; providing a write request check response indicating whether the write request has been received to the host; using an authentication key and data received from the host, generating authentication information indicating whether the data has integrity; based on the authentication information, performing a programming operation to store data in a data area of ​​the target area; generating check completion information indicating whether the programming operation has been successful; and in response to a result return request received from the host, providing a write result response including the check completion information to the host.

[0010] Embodiments of the present disclosure may provide a method for operating a storage device, comprising: in response to a write request received from a host, generating check start information indicating a target area on which a programming operation is to be performed; providing a write request check response indicating whether the write request has been received to the host; performing a programming operation to store data in a data area of ​​the target area; after the programming operation has been completed, generating check completion information indicating whether the programming operation has been successful; and in response to a result return request received from the host, providing a write result response including the check completion information to the host.

[0011] An embodiment of the present disclosure may provide a method for operating a controller, comprising: in response to a secure write request, controlling a memory device to store a provided authentication code and write data in a protected memory block (PMB); when power is restored after a sudden power outage, authenticating the stored write data based on the stored authentication code and authentication key; and when the authentication is successful, controlling the memory device to store the authentication information in the PMB. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 is a diagram illustrating a storage device according to an embodiment of the present disclosure.

[0013] Figure 2 It shows that Figure 1 A diagram of a configuration of a memory device of a memory device.

[0014] Figure 3 It shows that Figure 2 Schematic diagram of a memory cell array of a memory cell array.

[0015] Figure 4 It shows that Figure 1 A diagram of the configuration and operation of a memory controller of a memory controller.

[0016] Figure 5 is a diagram for describing a target area according to an embodiment.

[0017] Figure 6 It shows that Figure 4 Schematic diagram of an inspection information generator of an inspection information generator.

[0018] Fig. 7A is a diagram showing a method such as Figure 4 Illustration of an authentication controller of an authentication controller.

[0019] Figure 7B is a diagram showing a method according to another embodiment Figure 4 Illustration of an authentication controller of an authentication controller.

[0020] Figure 8 is a diagram for describing an operation performed in response to a write request according to an embodiment.

[0021] Fig. 9 is a diagram for describing an operation performed in response to a write request according to an embodiment.

[0022] Fig.10 is a diagram for describing an operation performed in response to a write request according to an embodiment.

[0023] Fig.11 is a diagram for describing a data processing operation when a sudden power failure event occurs.

[0024] Fig.12 It shows that Figure 1 A diagram of an example of a memory controller of a memory controller.

[0025] Fig.13 is a block diagram illustrating a memory card system to which a storage device according to an embodiment of the present disclosure is applied.

[0026] Fig.14 is a block diagram illustrating a solid state drive (SSD) system to which a storage device according to an embodiment of the present disclosure is applied.

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

[0028] Although various embodiments of the present invention are described below, it will be appreciated by those skilled in the art based on this disclosure that the present invention can be implemented in various other forms and ways. Therefore, the present invention is not limited to or restricted to any specific embodiment or details presented herein. Hereinafter, embodiments of the present invention are described in detail with reference to the accompanying drawings. Moreover, throughout the specification, references to "embodiment", "another embodiment", etc. are not necessarily directed to only one embodiment, and different references to any such phrases are not necessarily directed to the same embodiment.

[0029] Figure 1 is a diagram illustrating a storage device 50 according to an embodiment of the present disclosure.

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

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

[0032] The memory device 50 may be manufactured in the form of any of a variety of packaging types. For example, the memory device 50 may be manufactured in the form of a package-on-package (POP) type, a system-in-package (SIP) type, a system-on-chip (SOC) type, a multi-chip package (MCP) type, a chip-on-board (COB) type, a wafer-level manufacturing package (WFP) type, and / or a wafer-level stacked package (WSP) type.

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

[0034] The memory cell may be a single-level cell (SLC) capable of storing a single data bit, a multi-level cell (MLC) capable of storing two data bits, a triple-level cell (TLC) capable of storing three data bits, or a quad-level cell (QLC) capable of storing four data bits.

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

[0036] Each storage block may be a unit of erasing data. In an embodiment, the memory device 100 may be a double data rate synchronous dynamic random access memory (DDR SDRAM), a low power double data rate fourth generation (LPDDR4) SDRAM, a graphic double data rate (GDDR) SDRAM, a low power DDR (LPDDR), a Rambus dynamic random access memory (RDRAM), a NAND flash memory, a vertical NAND flash memory, a NOR flash memory, a resistive random access memory (RRAM), a phase change random access memory (PRAM), a magnetoresistive random access memory (MRAM), a ferroelectric random access memory (FRAM), or a spin transfer torque random access memory (STT-RAM). In this specification, by way of example, features and aspects of the present invention are described in the context of the memory device 100 being a NAND flash memory.

[0037] The memory device 100 can receive a command and an address from the memory controller 200, and access the area of ​​the memory cell array selected by the address. In other words, the memory device 100 can perform the operation indicated by the command on the area selected by the address. For example, the memory device 100 can perform any one of a write (programming) operation, a read operation, and an erase operation. During a programming operation, the memory device 100 can program data to the area selected by the address. During a read operation, the memory device 100 can read data from the area selected by the address. During an erase operation, the memory device 100 can erase data from the area selected by the address.

[0038] The memory controller 200 may control the overall operations of the memory device 50 .

[0039] The memory controller 200 may execute firmware (FW) when power is supplied to the memory device 50. In the case where the memory device 100 is a flash memory device, the memory controller 200 may execute firmware such as a flash translation layer (FTL) for controlling communication between the host 300 and the memory device 100.

[0040] In an embodiment, the memory controller 200 may receive data and a logical block address (LBA) from the host 300 and convert the LBA into a physical block address (PBA) indicating an address in a memory cell where data is to be stored, the memory cell being included in the memory device 100 .

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

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

[0043] In an embodiment, the memory controller 200 may control two or more memory devices 100. In this case, the memory controller 200 may control the memory devices 100 in an interleaved manner in order to improve operation performance. In the interleaved scheme, operation periods of at least two memory devices 100 may overlap.

[0044] The memory controller 200 may receive a request for a secure write operation from the host 300. In response to each request from the host 300, the memory controller 200 may provide a response corresponding to the request to the host 300. The memory controller 200 may control the memory device 100 to perform a secure write operation.

[0045] The memory controller 200 may receive a write request and write data from the host 300. In response to the write request, the memory controller 200 may provide a write request check response to the host 300, the write request check response indicating whether the write request has been received. When receiving the write request check response from the memory controller 200, the host 300 may provide a result request to the memory controller 200.

[0046] The memory controller 200 may receive a result request from the host 300. In response to the result request, the memory controller 200 may provide a result request check response to the host 300, the result request check response indicating whether the result request has been received. When the result request check response is received from the memory controller 200, the host 300 may provide a result return request to the memory controller 200.

[0047] The memory controller 200 may receive a result return request from the host 300. In response to the result return request, the memory controller 200 may provide a write result response to the host 300, the write result response indicating the result of the write request. The write result response may indicate whether the programming operation for the write data has been successful and whether the write data has integrity. The integrity of the write data may indicate whether the received write data has been damaged or distorted.

[0048] In an embodiment, the memory controller 200 may include an operation controller 210 and an authentication controller 220 .

[0049] The operation controller 210 may generate check start information in response to a write request, the check start information indicating that a programming operation starts. The check start information may include information about a target area to be performed with a programming operation among storage areas of the memory device 100. When a write request is received from the host 300, the operation controller 210 may generate the check start information.

[0050] In an embodiment, the check start information may further include a host authentication code received from the host 300. The host authentication code may be generated based on the write data and the authentication key in the host 300. The authentication key may be set to the same value between the host 300 and the storage device 50 for generating the authentication code, and the authentication key may be preset.

[0051] The operation controller 210 may generate check completion information indicating whether the programming operation for the write data has been successful. After the programming operation for the write data has been completed, the operation controller 210 may generate the check completion information. In detail, the check completion information may include programming pass / fail information indicating whether the programming operation has been successful. In an embodiment, the check completion information may further include authentication information indicating whether the write data has integrity.

[0052] The operation controller 210 may control the memory device 100 to store inspection start information, write data, and inspection completion information in a target area among storage areas of the memory device 100 .

[0053] The operation controller 210 may update the map data corresponding to the target area based on the inspection completion information.

[0054] For example, the operation controller 210 may determine whether the programming operation for the write data has been successful and whether the write data has integrity based on the check completion information. When the programming operation for the write data is successful and it is determined that the write data has integrity, the operation controller 210 may update the mapping data corresponding to the target area. When the programming operation for the write data fails or the write data is damaged, i.e., does not have integrity, the operation controller 210 may maintain the mapping data corresponding to the target area without updating the mapping data.

[0055] When a sudden power-off event occurs, the operation controller 210 may control the memory device 100 to recover data. When the memory device recovers from a sudden power-off event that occurs after the check start information has been generated, the operation controller 210 may control the memory device 100 to read the program data stored in the target area of ​​the memory device 100. The operation controller 210 may generate the check completion information including the authentication information indicating whether the program data read from the memory device 100 has integrity.

[0056] The authentication controller 220 may verify the integrity of the write data received from the host 300. In detail, the authentication controller 220 may generate authentication information indicating whether the write data has integrity using the host authentication code, the write data, and the authentication key received from the host 300. The authentication key may be set to the same value between the host 300 and the storage device 50 in order to generate the authentication code.

[0057] Authentication controller 220 may generate a device authentication code using the write data and the authentication key. Authentication controller 220 may determine whether the host authentication code received from host 300 matches the device authentication code.

[0058] If the host authentication code matches the device authentication code, the authentication controller 220 can determine that the written data has integrity. In other words, the authentication controller 220 can determine that the written data is valid. If the host authentication code does not match the device authentication code, the authentication controller 220 can determine that the written data has been damaged and therefore does not have integrity. In other words, the authentication controller 220 can determine that the written data is invalid.

[0059] In an embodiment, the authentication controller 220 may verify the integrity of the program data read from the memory device 100. The authentication controller 220 may generate authentication information indicating whether the program data stored in the target area indicated by the check start information has integrity.

[0060] When the storage device recovers from a sudden power-off event that occurs after the check start information has been generated, the authentication controller 220 may generate a device authentication code using the authentication key and the programming data read from the memory device 100. Here, the authentication controller 220 may determine whether the host authentication code included in the check start information matches the device authentication code. The authentication controller 220 may generate authentication information indicating whether the programming data has integrity based on a comparison result between the host authentication code and the device authentication code.

[0061] In various embodiments, the host authentication code and the device authentication code may be generated based on a message authentication code (MAC).

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

[0063] Figure 2 It is shown Figure 1 1 is a diagram showing a configuration of a memory device 100 .

[0064] Reference Figure 2 , the memory device 100 may include a memory cell array 110 , a peripheral circuit 120 , and a control logic 130 .

[0065] The memory cell array 110 may include a plurality of memory blocks BLK1 to BLKz, and the plurality of memory blocks BLK1 to BLKz are connected to the address decoder 121 through the row line RL. The memory blocks BLK1 to BLKz may be connected to the read / write circuit 123 through the bit lines BL1 to BLm. Each of the memory blocks BLK1 to BLKz may include a plurality of memory cells. In an embodiment, the plurality of memory cells may be non-volatile memory cells. The memory cells connected to the same word line among the plurality of memory cells are defined as a page. In other words, the memory cell array 110 may be formed by a plurality of physical pages. In an embodiment, each of the memory blocks BLK1 to BLKz in the memory cell array 110 may include a plurality of dummy cells. One or more dummy cells may be connected in series between the drain select transistor and the memory cell and between the source select transistor and the memory cell.

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

[0067] The peripheral circuit 120 may include an address decoder 121 , a voltage generator 122 , a read / write circuit 123 , a data input / output circuit 124 , and a sensing circuit 125 .

[0068] The peripheral circuit 120 may drive the memory cell array 110. For example, the peripheral circuit 120 may drive the memory cell array 110 to perform a program operation, a read operation, or an erase operation.

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

[0070] The address decoder 121 may operate under the control of the control logic 130. The address decoder 121 receives an address ADDR from the control logic 130.

[0071] The address decoder 121 may decode a block address among the received addresses. The address decoder 121 may select at least one of the memory blocks BLK1 to BLKz according to the decoded block address. The address decoder 121 may decode a row address among the received addresses. The address decoder 121 may select at least one of the word lines of the selected memory block according to the decoded row address. The address decoder 121 may apply the operating voltage Vop supplied by the voltage generator 122 to the selected word line.

[0072] During a program operation, the address decoder 121 may apply a program voltage to a selected word line and apply a read pass voltage less than the program voltage to unselected word lines. During a program verification operation, the address decoder 121 may apply a verification voltage to a selected word line and apply a verification pass voltage greater than the verification voltage to unselected word lines.

[0073] During a read operation, the address decoder 121 may apply a read voltage to a selected word line and apply a read pass voltage greater than the read voltage to unselected word lines.

[0074] In an embodiment, an erase operation of the memory device 100 may be performed based on a memory block. During the erase operation, the address ADDR to be input to the memory device 100 includes a block address. The address decoder 121 may decode the block address and select a memory block according to the decoded block address. During the erase operation, the address decoder 121 may apply a ground voltage to a word line connected to the selected memory block.

[0075] In an embodiment of the present disclosure, the address decoder 121 may decode a column address among the transmitted address ADDR. The decoded column address may be transmitted to the read / write circuit 123. For example, the address decoder 121 may include components such as a row decoder, a column decoder, and an address buffer.

[0076] The voltage generator 122 may generate a plurality of operating voltages Vop using an external power supply voltage supplied to the memory device 100. The voltage generator 122 may operate under the control of the control logic 130.

[0077] In an embodiment, the voltage generator 122 may generate an internal power supply voltage by regulating an external power supply voltage. The internal power supply voltage generated by the voltage generator 122 may be used as an operating voltage of the memory device 100.

[0078] In an embodiment, the voltage generator 122 may generate a plurality of operating voltages Vop using an external power supply voltage or an internal power supply voltage. The voltage generator 122 may generate various voltages required by the memory device 100. For example, the voltage generator 122 may generate a plurality of erase voltages, a plurality of program voltages, a plurality of pass voltages, a plurality of select read voltages, and a plurality of unselect read voltages.

[0079] The voltage generator 122 may include a plurality of pump capacitors configured to receive an internal power supply voltage to generate a plurality of operating voltages Vop having various voltage levels, and may generate the plurality of operating voltages Vop by selectively enabling the plurality of pump capacitors under the control of the control logic 130 .

[0080] The generated operating voltage Vop may be supplied to the memory cell array 110 by the address decoder 121 .

[0081] The read / write circuit 123 may include first to mth page buffers PB1 to PBm, which may be coupled to the memory cell array 110 through first to mth bit lines BL1 to BLm, respectively. The first to mth page buffers PB1 to PBm operate under the control of the control logic 130 .

[0082] The first to mth page buffers PB1 to PBm may communicate data DATA with the data input / output circuit 124. During a program operation, the first to mth page buffers PB1 to PBm may receive data DATA to be stored through the data input / output circuit 124 and the data lines DL.

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

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

[0085] During an erase operation, the read / write circuit 123 may float the bit line BL. In an embodiment, the read / write circuit 123 may include a column selection circuit.

[0086] The data input / output circuit 124 is coupled to the first to mth page buffers PB1 to PBm through the data lines DL The data input / output circuit 124 may operate under the control of the control logic 130 .

[0087] The data input / output circuit 124 may include a plurality of input / output buffers (not shown) for receiving input data DATA. During a program operation, the data input / output circuit 124 may receive data DATA to be stored from an external controller (not shown). During a read operation, the data input / output circuit 124 may output data DATA received from the first to mth page buffers PB1 to PBm in the read / write circuit 123 to the external controller.

[0088] During a read operation or a verification operation, the sensing circuit 125 can generate a reference current in response to an enable bit signal VRYBIT generated by the control logic 130, compare the sensing voltage VPB received from the read / write circuit 123 with the reference voltage generated by the reference current, and output a pass signal or a fail signal to the control logic 130.

[0089] The control logic 130 may be coupled to the address decoder 121, the voltage generator 122, the read / write circuit 123, the data input / output circuit 124, and the sensing circuit 125. The control logic 130 may control the overall operation of the memory device 100. The control logic 130 may operate in response to a command CMD transmitted from an external device.

[0090] The control circuit 130 may generate various signals in response to the command CMD and the address ADD and control the peripheral circuit 120. For example, in response to the command CMD and the address ADDR, the control logic 130 may generate an operation signal OPSIG, an address ADDR, a read / write circuit control signal PBSIGNALS, and an enable bit VRYBIT. The control logic 130 may output the operation signal OPSIG to the voltage generator 122, the address ADDR to the address decoder 121, the read / write control signal to the read / write circuit 123, and the enable bit VRYBIT to the sensing circuit 125. The control logic 130 may determine whether the target memory cell has passed or failed verification during the verification operation in response to the pass signal PASS or the fail signal FAIL output from the sensing circuit 125.

[0091] Figure 3 It is shown Figure 2 Schematic diagram of a memory cell array.

[0092] Reference Figure 3 , the first to z-th memory blocks BLK1 to BLKz are commonly connected to the first to m-th bit lines BL1 to BLm. Figure 3 , since each of the memory blocks BLK2 to BLKz has the same configuration as the first memory block BLK1 , only elements of the first memory block BLK1 among the plurality of memory blocks BLK1 to BLKz are shown by way of example.

[0093] The memory block BLK1 may include a plurality of cell strings CS1_1 to CS1_m (m is a positive integer). The first to m-th cell strings CS1_1 to CS1_m are respectively coupled to the first to m-th bit lines BL1 to BLm. Each of the first to m-th cell strings CS1_1 to CS1_m includes a drain select transistor DST, a plurality of memory cells MC1 to MCn (n is a positive integer) coupled in series to each other, and a source select transistor SST.

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

[0095] By way of example, the configuration of the first cell string CS1_1 among the plurality of cell strings CS1_1 to CS1_m is described. It will be understood that each of the other cell strings CS1_1 to CS1_m has the same configuration as the first cell string CS1_1.

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

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

[0098] Figure 4 Is used to describe Figure 1 2 is a diagram of a configuration and operation of a memory controller 200.

[0099] Reference Figure 4 , the memory controller 200 may include an operation controller 210 and an authentication controller 220 .

[0100] The operation controller 210 may receive a request REQ for a security write operation from the host 300. In response to each request REQ from the host, the operation controller 210 may provide a response RES corresponding to the request REQ to the host 300.

[0101] The operation controller 210 may receive a write request and write data W_DATA from the host 300. In response to the write request, the operation controller 210 may provide a write request check response to the host 300, the write request check response indicating whether the write request has been received. When receiving the write request check response from the operation controller 210, the host 300 may provide a result request to the operation controller 210.

[0102] The operation controller 210 may receive a result request from the host 300. In response to the result request, the operation controller 210 may provide a result request check response to the host 300, the result request check response indicating whether the result request has been received. When the result request check response is received from the operation controller 210, the host 300 may provide a result return request to the operation controller 210.

[0103] The operation controller 210 may receive a result return request from the host 300. In response to the result return request, the operation controller 210 may provide a write result response to the host 300 based on the check completion information CO_INF, and the write result response indicates the result of the write request. In other words, the write result response may include the check completion information CO_INF. The write result response may indicate whether a safe write operation for the write data W_DATA has been successfully performed. In other words, the write result response may indicate whether the write data W_DATA has been successfully programmed on the memory device 100 and whether the write data W_DATA has integrity. The write result response may indicate whether the received write data W_DATA has integrity, i.e., whether the write data W_DATA has been damaged or distorted. In an embodiment, the operation controller 210 may determine whether the write data W_DATA has integrity based on the authentication information AUT_INF received from the authentication controller 220.

[0104] The operation controller 210 may generate check start information CI_INF including information indicating a target area of ​​the storage area of ​​the memory device 100 on which a program operation corresponding to a write request is to be performed. In an embodiment, the check start information CI_INF may further include a host authentication code AUT_CODE(H) received from the host 300. The host authentication code AUT_CODE(H) may be generated based on the write data W_DATA and the authentication key in the host 300. The authentication key may be set to the same value between the host 300 and the storage device 50 in order to generate the authentication code, and the authentication key may be preset in the host 300.

[0105] The operation controller 210 may generate check completion information CO_INF indicating whether the program operation for write data has been successful. In detail, the check completion information CO_INF may include program pass / fail information indicating whether the program operation has been successful. In an embodiment, the check completion information CO_INF may include authentication information AUT_INF indicating whether the write data W_DATA has integrity.

[0106] The operation controller 210 may update map data corresponding to the target area based on the inspection completion information CO_INF.

[0107] The operation controller 210 may provide a command CMD for performing a safety write operation to the memory device 100. The operation controller 210 may provide a command CMD for data recovery to the memory device 100 when a sudden power-off event has occurred.

[0108] The operation controller 210 may be used to provide a program command for storing inspection start information CI_INF in an inspection start area including a start point in a target area to the memory device 100. The operation controller 210 may be used to provide a program command for storing write data W_DATA in a data area of ​​the target area to the memory device 100. The operation controller 210 may be used to provide a program command for storing inspection finish information CO_INF in an inspection finish area including an end point in the target area to the memory device 100.

[0109] If the memory device recovers from a sudden power-off event that occurs after the check start information CI_INF has been generated, the operation controller 210 may provide a command for reading program data stored in a target area of ​​the memory device 100 to the memory device 100. The operation controller 210 may receive authentication information AUT_INF indicating whether the program data read from the memory device 100 has integrity from the authentication controller 220. The operation controller 210 may generate check completion information CO_INF including the authentication information AUT_INF indicating whether the program data has integrity.

[0110] In an embodiment, the operation controller 210 may include an inspection information generator 211 and a mapping manager 212 .

[0111] When receiving a write request from the host 300, the check information generator 211 may generate check start information CI_INF. When the program operation for the write data W_DATA is completed, the check information generator 211 may generate check completion information CO_INF. In an embodiment, the check information generator 211 may generate the check completion information CO_INF including the authentication information AUT_INF.

[0112] The mapping manager 212 may update the mapping data corresponding to the target area based on the check completion information CO_INF. For example, the mapping manager 212 may determine whether the write data W_DATA has been successfully programmed or whether the write data W_DATA has integrity based on the check completion information CO_INF. If the write data W_DATA is successfully programmed and it is considered that the write data W_DATA has integrity, the mapping manager 212 may update the mapping data corresponding to the target area. If the programming operation for the write data W_DATA fails and the write data W_DATA is damaged, i.e., does not have integrity, the mapping manager 212 may retain the existing mapping data corresponding to the target area without updating the existing mapping data.

[0113] The authentication controller 220 may generate authentication information AUT_INF indicating whether the write data W_DATA has integrity.

[0114] In detail, the authentication controller 220 may verify the integrity of the write data W_DATA using the host authentication code AUT_CODE(H), the write data W_DATA, and the authentication key received from the host 300. The authentication key may be set to the same value between the host 300 and the storage device 50 for generating the authentication code.

[0115] The authentication controller 220 can use the write data W_DATA and the authentication key to generate a device authentication code. The authentication controller 220 can determine whether the host authentication code AUT_CODE (H) received from the host 300 matches the device authentication code. If the host authentication code AUT_CODE (H) matches the device authentication code, the authentication controller 220 can determine that the write data W_DATA has integrity, that is, the write data W_DATA has not been damaged, destroyed or has other abnormalities. In other words, it can be determined that the write data W_DATA is valid. If the host authentication code AUT_CODE (H) does not match the device authentication code, the authentication controller 220 can determine that the write data W_DATA does not have integrity. In other words, it can be determined that the write data W_DATA is invalid.

[0116] In various embodiments, the host authentication code AUT_CODE(H) and the device authentication code may be generated based on a message authentication code (MAC).

[0117] The authentication controller 220 may provide authentication information AUT_INF indicating whether the write data W_DATA has integrity to the operation controller 210 .

[0118] In an embodiment, if the storage device is recovered from a sudden power-off event that occurs after the check start information CI_INF has been generated, the authentication controller 220 may generate a device authentication code using an authentication key and read data R_DATA read from the memory device 100. Here, the read data R_DATA may be data obtained by reading the programming data stored in the target area indicated by the check start information CI_INF. The authentication controller 220 may determine whether the host authentication code AUT_CODE (H) included in the check start information CI_INF matches the device authentication code. The authentication controller 220 may generate authentication information AUT_INF indicating whether the programming data has integrity based on a comparison result between the host authentication code AUT_CODE (H) and the device authentication code. The authentication controller 220 may provide the authentication information AUT_INF indicating whether the programming data has integrity to the operation controller 210.

[0119] Figure 5 is a diagram for describing a target area according to an embodiment.

[0120] Reference Figure 5 , the target area may include an inspection start area, a data area, and an inspection completion area. In some embodiments, the target area may be an area with continuous physical addresses. In some embodiments, the target area may be an area with continuous logical addresses.

[0121] The inspection start area may be an area including a start point in the target area. The inspection completion area may be an area including an end point in the target area. The data area may be an area other than the inspection start area and the inspection completion area in the target area.

[0122] The target area may correspond to one or more pages, one or more super pages, one or more storage blocks, or one or more super blocks. However, more generally, the target area may correspond to a storage area of ​​any suitable size. The storage area unit corresponding to the target area may vary according to the size of the check start information CI_INF, the data, and the check completion information CO_INF. In an embodiment, the storage block storing the data in the target area according to the message authentication operation may include a replay protection storage block (RPMB).

[0123] In an embodiment, the inspection start information CI_INF, data and inspection completion information CO_INF may be stored in the target area continuously. In various embodiments, the inspection start information and all or some of the data may be stored simultaneously. The inspection completion information CO_INF may be stored in the inspection completion area after the data has been stored in the data area.

[0124] The inspection start information CI_INF may include information indicating the target area. In an embodiment, the inspection start information CI_INF may further include a host authentication code AUT_CODE(H). The host authentication code AUT_CODE(H) may be used to recover data from a sudden power failure event that occurs after the inspection start information CI_INF has been generated.

[0125] The check completion information CO_INF may include program pass / fail information PGM P / F indicating whether the program operation has succeeded. In an embodiment, the check completion information CO_INF may further include authentication information AUT_INF indicating whether data received from the host has integrity.

[0126] Figure 6 It is shown Figure 4 Schematic diagram of the inspection information generator 211.

[0127] Reference Figure 4 and Figure 6 , the operation controller 210 may include an inspection information generator 211 .

[0128] In response to the write request REQ received from the host 300, the check information generator 211 may generate the check start information CI_INF indicating a target area on which an operation corresponding to the write request REQ is to be performed. In detail, the check information generator 211 may generate the check start information CI_INF including information indicating the target area.

[0129] In an embodiment, the inspection information generator 211 may generate the inspection start information CI_INF further including the host authentication code AUT_CODE(H) received from the host 300. The host authentication code AUT_CODE(H) may be generated based on the write data W_DATA and the authentication key in the host 300. The authentication key may be set to the same value between the host 300 and the storage device 50 in order to generate the authentication code.

[0130] If the program operation for write data W_DATA is completed, the inspection information generator 211 may generate inspection completion information CO_INF indicating whether the program operation has succeeded. In detail, the inspection information generator 211 may generate inspection completion information CO_INF including program pass / fail information indicating whether the program operation has succeeded.

[0131] In an embodiment, the check information generator 211 may generate the check completion information CO_INF further including the authentication information AUT_INF. The authentication information AUT_INF may indicate whether the write data W_DATA received from the host 300 has integrity.

[0132] Fig. 7A is a diagram showing a method according to an embodiment of the present invention. Figure 4 Schematic diagram of the authentication controller 220.

[0133] Reference Figure 4 and Fig. 7A , the authentication controller 220 may include an authentication code generator 221 and an authentication code comparator 222 .

[0134] The authentication code generator 221 may generate a device authentication code AUT_CODE(D) using the authentication key KEY and the write data W_DATA received from the host 300. The authentication key KEY may be set to the same value between the host 300 and the storage device 50 for generating the authentication code.

[0135] The authentication code generator 221 may provide the generated device authentication code AUT_CODE(D) to the authentication code comparator 222 .

[0136] The authentication code comparator 222 may receive the host authentication code AUT_CODE(H) from the host 300 and the device authentication code AUT_CODE(D) from the authentication code generator 221. The host authentication code AUT_CODE(H) may be an authentication code generated based on the write data W_DATA and the key KEY preset in the host 300.

[0137] The authentication code comparator 222 may generate authentication information AUT_INF indicating whether the write data W_DATA has integrity based on a comparison result between the host authentication code AUT_CODE(H) and the device authentication code AUT_CODE(D).

[0138] In detail, the authentication code comparator 222 can determine whether the host authentication code AUT_CODE (H) matches the device authentication code AUT_CODE (D). If the host authentication code AUT_CODE (H) matches the device authentication code, the authentication code comparator 222 can determine that the write data W_DATA has integrity. In other words, the authentication code comparator 222 can determine that the write data W_DATA is valid. If the host authentication code AUT_CODE (H) does not match the device authentication code AUT_CODE (D), the authentication code comparator 222 can determine that the write data W_DATA does not have integrity, that is, the write data W_DATA has been damaged. In other words, the authentication code comparator 222 can determine that the write data W_DATA is invalid.

[0139] In various embodiments, the host authentication code AUT_CODE(H) and the device authentication code AUT_CODE(D) may be generated based on a message authentication code (MAC).

[0140] Figure 7B is a diagram showing a method according to an embodiment of the present invention. Figure 4 Schematic diagram of the authentication controller 220.

[0141] Reference Figure 7B , the authentication controller 220 may have a reference Fig. 7A The authentication controller 220 has the same configuration as described.

[0142] The authentication code generator 221 can use the authentication key KEY and the reference Figure 4 The memory device 100 described above reads the read data R_DATA to generate the device authentication code AUT_CODE (D). Here, the read data R_DATA may be data obtained by reading the programming data stored in the target area indicated by the check start information CI_INF. The authentication key may be set to the same value between the host 300 and the memory device 50 in order to generate the authentication code.

[0143] The authentication code comparator 222 may obtain the host authentication code AUT_CODE(H) included in the inspection start information CI_INF from the memory device 100. The authentication code comparator 222 may receive the device authentication code AUT_CODE(D) from the authentication code generator 221.

[0144] The authentication code comparator 222 may generate authentication information AUT_INF indicating whether the read data R_DATA has integrity based on a comparison result between the host authentication code AUT_CODE(H) and the device authentication code AUT_CODE(D).

[0145] In an embodiment, the authentication information AUT_INF indicating the integrity of the read data R_DATA may be used to recover data from a sudden power-off event occurring after the check start information CI_INF has been generated.

[0146] Figure 8 is a diagram for describing an operation performed in response to a write request according to an embodiment.

[0147] Reference Figure 8 In step S801, the storage device 50 may receive a write request from the host 300. The write request may be a request for a secure write operation. The storage device 50 may receive write data and a host authentication code from the host 300 together with the write request.

[0148] As reference Fig. 7A As described, in step S803 , the storage device 50 may generate a device authentication code using the authentication key and the write data.

[0149] In step S805, the storage device 50 may determine whether the write data is valid. If the write data is valid, the process may proceed to step S807. If the write data is invalid, the process may proceed to step S809.

[0150] In detail, the storage device 50 can determine whether the device authentication code matches the host authentication code. If the device authentication code matches the host authentication code, the storage device 50 can determine that the written data has integrity, that is, the written data is not damaged. In other words, the storage device 50 can determine that the written data is valid. If the device authentication code does not match the host authentication code, the storage device 50 can determine that the written data has been damaged and therefore lacks integrity. In other words, the storage device 50 can determine that the written data is invalid.

[0151] In step S807 , the memory device 50 may perform a program operation for writing data.

[0152] In step S809, the storage device 50 may generate program pass / fail information indicating whether the programming operation has succeeded. If the storage device 50 determines in step S805 that the written data is invalid, the programming operation is not performed. Therefore, in step S809, the storage device 50 may determine that the programming operation has failed.

[0153] In step S811, the storage device 50 may update the mapping data based on the programming pass / fail information. In detail, the storage device 50 may determine whether the programming operation has passed or failed based on the programming pass / fail information. If the programming operation has passed, the storage device 50 may update the mapping data corresponding to the target area where the programming operation has been performed. If the programming operation has failed, the storage device 50 may maintain the existing mapping data corresponding to the target area where the programming operation has been performed without updating the existing mapping data.

[0154] In step S813 , the storage device 50 may provide a write request check response to the host 300 , the write request check response indicating whether the write request has been received.

[0155] In step S815 , the storage device 50 may receive a result request from the host 300 .

[0156] In step S817 , the storage device 50 may provide a result request check response to the host 300 , the result request check response indicating whether the result request has been received.

[0157] In step S819 , the storage device 50 may receive a result return request from the host 300 .

[0158] In step S821, the storage device 50 may provide a write result response indicating a result obtained in response to the write request to the host 300. The write result response may indicate whether a program operation for write data in response to the write request has been successfully performed.

[0159] Fig. 9 is a diagram for describing an operation performed in response to a write request according to an embodiment.

[0160] Reference Fig. 9 In step S901, the storage device 50 may receive a write request from the host 300. The write request may be a request for a secure write operation. The storage device 50 may receive write data and a host authentication code from the host 300 together with the write request.

[0161] In step S903 , the storage device 50 may generate check start information indicating a target area where a program operation is to be performed in response to the write request.

[0162] In step S905 , the storage device 50 may provide a write request check response to the host 300 , the write request check response indicating whether the write request has been received.

[0163] In step S907 , the storage device 50 may receive a result request from the host 300 .

[0164] In step S909 , the storage device 50 may provide a result request check response to the host 300 , the result request check response indicating whether the result request has been received.

[0165] In step S911 , the storage device 50 may receive a result return request from the host 300 .

[0166] In step S913, the storage device 50 may generate authentication information indicating whether the written data has integrity. Step S905 and step S913 may be performed simultaneously. Alternatively, step S905 and step S913 may be performed in parallel. Further optionally, some operation periods of step S905 and step S913 may overlap with each other.

[0167] In step S915, the storage device 50 may perform a programming operation for the written data based on the authentication information. In detail, the storage device 50 may determine whether the written data has integrity based on the authentication information. If it is determined that the written data has integrity, the storage device 50 may perform a programming operation. If the integrity of the written data is not verified, that is, if the written data is damaged, the storage device 50 may not perform a programming operation.

[0168] In step S917, the storage device 50 may generate check completion information indicating whether the programming operation has been successful. In detail, the storage device 50 may generate check completion information including programming pass / fail information indicating whether the programming operation has been successful. If, in step S915, the storage device 50 determines that the written data has been damaged, the programming operation is not performed. Therefore, in step S917, the storage device 50 may determine that the programming operation has failed.

[0169] In step S919, the storage device 50 may update the mapping data based on the check completion information. In detail, the storage device 50 may determine whether the programming operation has passed or failed based on the check completion information. If the programming operation has passed, the storage device 50 may update the mapping data corresponding to the target area where the programming operation has been performed. If the programming operation has failed, the storage device 50 may maintain the existing mapping data corresponding to the target area where the programming operation has been performed without updating the existing mapping data.

[0170] In step S921, the storage device 50 may provide a write result response indicating a result obtained in response to the write request to the host 300 based on the check completion information. The write result response may indicate whether a program operation of write data in response to the write request has been successfully performed.

[0171] Reference Figure 8 If a write request is received from the host 300 at step S801, the storage device 50 may perform an operation corresponding to the write request at steps S803 to S811, and then provide a write request check response to the host 300 at step S813. Thereafter, the storage device 50 may perform communication with the host 300 at steps S813 to S821.

[0172] exist Fig. 9 In the embodiment of the present invention, if a write request is received from the host 300 in step S901, the storage device 50 may generate check start information in step S903. Thereafter, the storage device 50 may communicate with the host 300 (S905 to S911) while performing operations S913 to S919 corresponding to the write request. Figure 8 Compared with the embodiment of Fig. 9 In the embodiment of the present invention, the total transaction time from a write request to a write result response can be reduced by the time that the communication with the host 300 and the operation corresponding to the write request overlap.

[0173] Fig.10 is a diagram for describing an operation performed in response to a write request according to an embodiment.

[0174] Reference Fig.10 In step S1001, the storage device 50 may receive a write request from the host 300. The write request may be a request for a secure write operation. The storage device 50 may receive write data and a host authentication code from the host 300 together with the write request.

[0175] In step S1003 , the storage device 50 may generate check start information indicating a target area where a program operation is to be performed in response to the write request.

[0176] In step S1005 , the storage device 50 may provide a write request check response to the host 300 , the write request check response indicating whether a write request has been received.

[0177] In step S1007 , the storage device 50 may receive a result request from the host 300 .

[0178] In step S1009 , the storage device 50 may provide a result request check response to the host 300 , the result request check response indicating whether the result request has been received.

[0179] In step S1011 , the storage device 50 may receive a result return request from the host 300 .

[0180] In step S1013 , the memory device 50 may perform a program operation for writing data.

[0181] In step S1015, the storage device 50 may generate authentication information indicating whether the written data has integrity. In an embodiment, step S1005, step S1013, and step S1015 may be performed simultaneously. Alternatively, step S1005, step S1013, and step S1015 may be performed in parallel. Further optionally, some of the respective operation periods of step S1005, step S1013, and step S1015 may overlap with each other.

[0182] In step S1017, the storage device 50 may generate check completion information indicating whether the programming operation performed in step S1013 has been successful and whether the written data has integrity. In detail, the storage device 50 may generate check completion information including programming pass / fail information indicating whether the programming operation performed in step S1013 has been successful and the authentication information generated in step S1015.

[0183] In step S1019, the storage device 50 may update the mapping data based on the check completion information. In detail, the storage device 50 may determine whether the programming operation has passed or failed and whether the written data has integrity based on the check completion information. If the programming operation has passed and it is determined that the written data has integrity, the storage device 50 may update the mapping data corresponding to the target area where the programming operation has been performed. If the programming operation has failed and the written data has been damaged and therefore lacks integrity, the storage device 50 may maintain the existing mapping data corresponding to the target area where the programming operation has been performed without updating the existing mapping data.

[0184] In step S1021, the storage device 50 may provide a write result response to the host 300 based on the check completion information, the write result response indicating the result obtained in response to the write request. The write result response may indicate whether the programming operation of the write data in response to the write request has been successfully performed and whether the write data has integrity.

[0185] and Fig. 9 Compared with the embodiment, Fig.10The check completion information may additionally include authentication information and programming pass / fail information. Fig. 9 In the embodiment of , the programming operation (in step S915) is performed after the authentication information has been generated (in step S913). Fig.10 In the embodiment of the present invention, the programming operation (S1013) can be performed in parallel with generating the authentication information (S1015). Fig. 9 Compared with the embodiment of Fig.10 In the embodiment, the total transaction time from a write request to a write result response can be reduced by the time during which the programming operation overlaps with the generation of authentication information.

[0186] Fig.11 is a diagram for describing a data processing operation when a sudden power failure event occurs.

[0187] Reference Fig.11 In step S1101, after the check start information has been generated, a sudden power failure event may occur in the storage device.

[0188] In step S1103, if the storage device recovers from the sudden power failure event, the storage device may determine whether there is inspection completion information corresponding to the inspection start information. If the determination result indicates that there is inspection completion information, the process may be terminated. If there is no inspection completion information, the process may proceed to step S1105.

[0189] In step S1105, the storage device may read program data stored in the target area based on the check start information. The check start information may include information indicating the target area on which a program operation has been performed.

[0190] In step S1107, the storage device may determine whether the read operation for the program data has succeeded. If the read operation has succeeded, the process may proceed to step S1109. If the read operation has failed, the process may proceed to step S1115. The success of the read operation may indicate that the program operation for the program data has succeeded. The failure of the read operation may indicate that the program operation for the program data has failed.

[0191] In step S1109, the storage device may generate a device authentication code using the read data and the authentication key. The authentication key may be set to the same value between the host and the storage device in order to generate the authentication code.

[0192] In step S1111, the storage device may determine whether the generated device authentication code matches the host authentication code included in the check start information. As a result of the determination, if the device authentication code matches the host authentication code, the process may proceed to step S1113. If the device authentication code does not match the host authentication code, the process may proceed to step S1115. A match between the device authentication code and the host authentication code may indicate that the programming data has integrity. A mismatch between the device authentication code and the host authentication code may indicate that the programming data has been damaged and therefore lacks integrity.

[0193] In step S1113 , it may be determined that the security write operation in response to the write request has succeeded.

[0194] In step S1115 , it may be determined that the security write operation in response to the write request has failed.

[0195] In step S1117, the storage device 50 may generate check completion information indicating whether the programming operation performed before the sudden power-off event has been successful and whether the programming data has integrity. If (in step S1113) the secure write operation has been successful, the storage device may determine that the programming operation has been successful and the programming data has integrity. If (in step S1115) the secure write operation has failed, the storage device may determine that the programming operation has failed and the programming data is damaged and therefore lacks integrity.

[0196] In step S1119, the storage device may update the mapping data based on the check completion information. In detail, the storage device may determine whether the programming operation has passed or failed and whether the programming data has integrity based on the check completion information. If the programming operation has passed and the programming data is considered to have integrity, the storage device may update the mapping data corresponding to the target area where the programming operation has been performed. If the programming operation has failed and the written data is damaged, the storage device may maintain the existing mapping data corresponding to the target area where the programming operation has been performed without updating the existing mapping data.

[0197] according to Fig.11 In an embodiment, when a sudden power-off event occurs after the check start information has been generated, the storage device can determine whether the data programmed before the sudden power-off event occurs has integrity and whether the programming operation has been successful based on the check start information without host intervention. The storage device can determine whether to recover or discard the programmed data based on the result of determining whether the programmed data has integrity and whether the programming operation has been successful.

[0198] Fig.12 It is shown Figure 1 A diagram of an example of a memory controller.

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

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

[0201] The bus 1070 may provide a channel between the components of the memory controller 1000 .

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

[0203] Processor 1010 can perform the function of flash translation layer (FTL). Processor 1010 can convert the logical block address (LBA) provided by the host into a physical block address (PBA) through FTL. FTL can receive LBA and convert LBA into PBA using a mapping table. According to the mapped unit, any suitable address mapping method using FTL can be used. Representative address mapping methods include page mapping method, block mapping method and hybrid mapping method.

[0204] The processor 1010 may randomize the data received from the host. For example, the processor 1010 may use a randomization seed to randomize the data received from the host. The randomized data may be provided to the memory device as data to be stored and may be programmed to the memory cell array.

[0205] During a read operation, the processor 1010 may derandomize data received from the memory device 100. For example, the processor 1010 may use a derandomization seed to derandomize data received from the memory device. The derandomized data may be output to a host.

[0206] In an embodiment, the processor 1010 may drive software or firmware to perform a randomization operation or a de-randomization operation.

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

[0208] The ECC circuit 1030 may perform error correction. The ECC circuit 1030 may perform an ECC encoding operation based on data to be stored in the memory device through the memory interface 1060. The ECC-encoded data may be transmitted to the memory device through the memory interface 1060. The ECC circuit 1030 may perform an ECC decoding operation on data received from the memory device through the memory interface 1060. For example, the ECC circuit 1030 may be included in the memory interface 1060 as a component of the memory interface 1060.

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

[0210] The buffer control circuit 1050 may control the memory buffer 1020 under the control of the processor 1010 .

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

[0212] For example, the memory controller 1000 may include neither the memory buffer 1020 nor the buffer control circuit 1050. One or both of these components may be provided separately.

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

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

[0215] In the embodiments, reference Figure 1 The described operation controller 210 and authentication controller 220 may be included in the processor 1010 .

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

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

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

[0219] In an embodiment, the memory controller 2100 may include components such as a random access memory (RAM), a processor, a host interface, a memory interface, and an ECC circuit.

[0220] The memory controller 2100 may communicate with an external device through the connector 2300. The memory controller 2100 may communicate with an external device (e.g., a host) based on a specific communication protocol. In an embodiment, the memory controller 2100 may communicate with an external device through at least one of various communication protocols such as: Universal Serial Bus (USB), Multimedia Card (MMC), Embedded MMC (eMMC), Peripheral Component Interconnect (PCI), High-Speed ​​PCI (PCI-E), Advanced Technology Attachment (ATA), Serial ATA (SATA), Parallel ATA (PATA), Small Computer System Interface (SCSI), Enhanced Small Disk Interface (ESDI), Electronic Integrated Drive (IDE), FireWire, Universal Flash Memory (UFS), Wi-Fi, Bluetooth, and / or High-Speed ​​Non-Volatile Memory (NVMe) protocol. In an embodiment, the connector 2300 may be defined by at least one of the various communication protocols described above.

[0221] In an embodiment, the memory device 2200 may be implemented as any of a variety of non-volatile memory devices such as: electrically erasable programmable ROM (EEPROM), NAND flash memory, NOR flash memory, phase change RAM (PRAM), resistive RAM (ReRAM), ferroelectric RAM (FRAM) and / or spin torque magnetic RAM (STT-MRAM).

[0222] In an embodiment, the memory controller 2100 and the memory device 2200 may be integrated into a single semiconductor device to form a memory card such as a Personal Computer Memory Card International Association (PCMCIA), a Compact Flash card (CF), a Smart Media Card (SM or SMC), a Memory Stick, a Multi Media Card (MMC, RS-MMC or Micro MMC), an SD card (SD, Mini SD, Micro SD or SDHC), or a Universal Flash Storage (UFS).

[0223] Fig.14 is a block diagram illustrating a solid state drive (SSD) system 3000 to which a storage device according to an embodiment of the present disclosure is applied.

[0224] Reference Fig.14 , the SSD system 3000 may include a host 3100 and an SSD 3200. The SSD 3200 may exchange a signal SIG with the host 3100 through a signal connector 3001, and may receive power PWR through a power connector 3002. The SSD 3200 may include an SSD controller 3210, a plurality of flash memories 3221 to 322n, an auxiliary power supply 3230, and a buffer memory 3240.

[0225] In an embodiment, the SSD controller 3210 may perform the above-referenced Figure 1 The functions of the memory controller 200 are described.

[0226] The SSD controller 3210 may control the plurality of flash memories 3221 to 322n in response to a signal SIG received from the host 3100. In an embodiment, the signal SIG may be based on an interface between the host 3100 and the SSD 3200. For example, the signal SIG may be defined by at least one of various interfaces such as a universal serial bus (USB), a multimedia card (MMC), an embedded MMC (eMMC), a peripheral component interconnect (PCI), PCI-Express (PCI-E), an advanced technology attachment (ATA), a serial ATA (SATA), a parallel ATA (PATA), a small computer system interface (SCSI), an enhanced small disk interface (ESDI), an integrated drive electronics (IDE), a firewire, a universal flash memory (UFS), a Wi-Fi, a Bluetooth, and / or a non-volatile memory express (NVMe) interface.

[0227] The auxiliary power supply 3230 may be coupled to the host 3100 through the power connector 3002. The auxiliary power supply 3230 may be supplied with power PWR from the host 3100 and may be charged by the power PWR. When the power from the host 3100 is not smoothly transmitted, the auxiliary power supply 3230 may supply power to the SSD 3200. In an embodiment, the auxiliary power supply 3230 may be provided inside the SSD 3200, or in another embodiment, the auxiliary power supply 3230 may be provided outside the SSD 3200. For example, the auxiliary power supply 3230 may be provided in a mainboard and may supply auxiliary power to the SSD 3200.

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

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

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

[0231] The application processor 4100 may run components, an operating system (OS), or a user program included in the user system 4000. In an embodiment, the application processor 4100 may include a controller, an interface, a graphic engine, etc. for controlling components included in the user system 4000. The application processor 4100 may be provided as a system on chip (SoC).

[0232] The memory module 4200 may be used as a main memory, a working memory, a buffer memory, or a cache memory of the user system 4000. The memory module 4200 may include a volatile RAM such as DRAM, SDRAM, DDR SDRAM, DDR2 SDRAM, DDR3 SDRAM, LPDDR SDRAM, LPDDR2 SDRAM, and LPDDR3 SDRAM, or a nonvolatile RAM such as PRAM, ReRAM, MRAM, and FRAM. In an embodiment, the application processor 4100 and the memory module 4200 may be packaged based on a stacked package (POP) and may then be provided as a single semiconductor package.

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

[0234] The storage module 4400 may store data therein. For example, the storage module 4400 may store data received from the application processor 4100. Alternatively, the storage module 4400 may transmit the data stored in the storage module 4400 to the application processor 4100. In an embodiment, the storage module 4400 may be implemented as a non-volatile semiconductor memory device such as a phase change RAM (PRAM), a magnetic RAM (MRAM), a resistive RAM (RRAM), a NAND flash memory, a NOR flash memory, or a NAND flash memory with a three-dimensional (3D) structure. In an embodiment, the storage module 4400 may be set as a removable storage medium (i.e., a removable drive) such as a memory card, or an external drive of the user system 4000.

[0235] In an embodiment, the storage module 4400 may include a plurality of non-volatile memory devices, and each of the non-volatile memory devices may be configured as described above with reference to Figure 1 The storage module 4400 can be operated in the same manner as the memory device described above. Figure 1 The storage device 50 operates in the same manner as described.

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

[0237] As described above, various embodiments of the present disclosure provide a memory device having improved write performance and a method of operating the memory device.

[0238] Various embodiments have been disclosed herein, and although specific terms are employed, these specific terms are used and interpreted only in a general and descriptive sense, and not for limiting purposes. In some cases, as will be apparent to one of ordinary skill in the art when submitting this application, unless otherwise expressly stated, features, characteristics, and / or elements described in conjunction with a particular embodiment may be used alone or in combination with features, characteristics, and / or elements described in conjunction with other embodiments. Therefore, it will be understood by those skilled in the art that various changes in form and detail may be made without departing from the spirit and scope of the invention as set forth in the appended claims.

Claims

1. A storage device, include: Memory device; as well as Memory Controller: generating check start information indicating the start of a program operation in response to a write request received from a host, controlling the memory device to perform the programming operation of storing data received from the host in a target area of ​​the memory device, generating check completion information indicating whether the program operation has been successful, and In response to a write return request received from the host, providing a write result response including the check completion information to the host, The memory controller successively stores the inspection start information, the data, and the inspection completion information in the target area.

2. The storage device according to claim 1, wherein the memory controller include: An operation controller controls the memory device to store the inspection start information, the inspection completion information, and the data in the target area; as well as An authentication controller generates authentication information indicating whether the data has integrity using a host authentication code received from the host, the data, and an authentication key.

3. A storage device according to claim 2, wherein the operation controller controls the memory device to store the inspection start information in an inspection start area in the target area including a starting point, to store the inspection completion information in an inspection completion area in the target area including an ending point, and to store the data in a data area in the target area.

4. The storage device according to claim 2, wherein the operation controller provides a write request check response to the host in response to the write request, the write request check response indicating whether the write request has been received. ; providing a result request check response to the host in response to a result request received from the host, the result request check response indicating whether the result request has been received; And in response to the result return request, a write result response is provided to the host, the write result response indicating the result of the write request.

5. The storage device according to claim 2, wherein the operation controller include: a check information generator that generates the check start information including information about the target area in response to the write request, and generates the check completion information including the authentication information after the program operation is completed; as well as The mapping manager updates mapping data corresponding to the target area based on the inspection completion information.

6. The storage device according to claim 2, wherein the authentication controller include: an authentication code generator that generates a device authentication code using the data and the authentication key; as well as The authentication code comparator generates the authentication information based on whether the device authentication code matches the host authentication code.

7. A storage device according to claim 2, wherein the operation controller controls the memory device to read the programming data stored in the target area based on the check start information when the storage device recovers from a sudden power off event that occurs after the check start information has been generated; generates the check completion information including authentication information, the authentication information indicating whether the programming data has integrity; and updates the mapping data corresponding to the target area based on the check completion information.

8. A storage device according to claim 7, wherein the authentication controller generates a device authentication code using the programming data and the authentication key, and generates the authentication information indicating whether the programming data has integrity based on a comparison result between the device authentication code and a host authentication code included in the check start information.

9. A method of operating a storage device, include: generating, in response to a write request received from a host, check start information indicating a target area on which a programming operation is to be performed; storing the inspection start information in the target area; providing a write request check response to the host, the write request check response indicating whether the write request has been received; generating authentication information indicating whether the data has integrity using the data received from the host and an authentication key; Based on the authentication information, performing the programming operation of storing the data in the data area of ​​the target area; generating check completion information indicating whether the programming operation has been successful; storing the inspection completion information in the target area, and In response to a result return request received from the host, providing a write result response including the check completion information to the host, The examination start information, the data and the examination completion information are successively stored in the target area.

10. The method according to claim 9, further comprising: include: wherein storing the inspection start information comprises storing the inspection start information in an inspection start area in the target area including a start point; as well as Wherein storing the inspection completion information includes storing the inspection completion information in an inspection completion area in the target area including an end point.

11. The method according to claim 9, wherein the authentication information is generated include: generating a device authentication code using the data and the authentication key; as well as The authentication information is generated based on a comparison result between the device authentication code and a host authentication code received from the host.

12. The method according to claim 9, further comprising: include: when the storage device recovers from a sudden power-off event that occurs after the check start information is generated, reading the program data stored in the target area based on the check start information; generating a device authentication code using the programming data and the authentication key; generating authentication information indicating whether the programming data has integrity based on a comparison result between the device authentication code and a host authentication code included in the check start information; generating the check completion information including the authentication information, the authentication information indicating whether the programming data has integrity; as well as Map data corresponding to the target area is updated based on the inspection completion information.

13. The method of claim 9, further comprising, after providing the write request check response to the host: In response to a result request received from the host, a result request check response is provided to the host, the result request check response indicating whether the result request has been received.

14. A method of operating a storage device, include: generating, in response to a write request received from a host, check start information indicating a target area on which a programming operation is to be performed; storing the inspection start information in the target area; providing a write request check response to the host indicating whether the write request has been received; performing the programming operation of storing data in the data area of ​​the target area; After the programming operation has been completed, generating check completion information indicating whether the programming operation has been successful; storing the inspection completion information in the target area; as well as In response to a result return request received from the host, providing a write result response including the check completion information to the host, The examination start information, the data and the examination completion information are successively stored in the target area.

15. The method according to claim 14, further comprising: include: wherein storing the inspection start information comprises storing the inspection start information in an inspection start area in the target area including a start point; as well as Wherein storing the inspection completion information includes storing the inspection completion information in an inspection completion area in the target area including an end point.

16. The method according to claim 14, further comprising, after generating the check start information: Authentication information indicating whether the data has integrity is generated using the data and an authentication key received from the host. The method of claim 16 , wherein generating the authentication information is performed in parallel with performing the programming operation.

18. The method according to claim 16, wherein the authentication information is generated include: generating a device authentication code using the data and the authentication key; as well as The authentication information is generated based on a comparison result between the device authentication code and a host authentication code received from the host.

19. The method of claim 14, further comprising, after providing the write request check response to the host: In response to a result request received from the host, a result request check response indicating whether the result request has been received is provided to the host.

20. The method according to claim 14, further comprising: include: when the storage device recovers from a sudden power-off event that occurs after the check start information is generated, reading the program data stored in the target area based on the check start information; generating a device authentication code using the programming data and the authentication key; generating authentication information indicating whether the programming data has integrity based on a comparison result between the device authentication code and a host authentication code included in the check start information; generating the check completion information including the authentication information, the authentication information indicating whether the programming data has integrity; as well as Map data corresponding to the target area is updated based on the inspection completion information.

Citation Information

Patent Citations

  • Systems and methods for onboard fast chargers

    KR1020200018811A

  • Method of generating authentication information for a memory device, an external device and system icluding the external device

    CN103164666A

  • Data storage device,data processing system and method for manufacturing data storage device

    CN108021471A

  • Data storage device and operating method thereof

    CN108958643A

  • Garbage collection strategy for memory system and method of executing such garbage collection

    CN110347332A