Storage device including memory controller
By designing a cooperative working mechanism between the first core and the second core in the memory controller, the problem of data loss in the storage device under abnormal power conditions is solved, and data reliability and storage stability are achieved when power is interrupted.
Patent Information
- Application Number
- CN202010880456.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-27
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2040-08-27
AI Technical Summary
It is difficult for existing storage devices to ensure data reliability when power supply is abnormal. Especially in the case of sudden power outage (SPO), data may be lost or the storage process may be interrupted.
A memory controller is designed, including a first core and a second core. The first core is responsible for receiving requests from the host and performing logical address translation. When the second core detects an abnormal power state, it performs a power-off protection operation and saves the element. Data is stored in the memory device in a timely manner to ensure data reliability.
By immediately storing metadata and related data when abnormal power conditions are detected, the integrity and reliability of data in the storage device during power outages are ensured, and the stability and response speed of the storage process are improved.
Smart Images

Figure CN113093988B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This patent document claims priority to and the benefit of Korean Patent Application No. 10-2019-0173295, filed on December 23, 2019, which is hereby incorporated by reference in its entirety. Technical Field
[0003] Exemplary embodiments of the disclosed technology relate generally to an electronic device, and more particularly, to a memory device including a memory controller. Background Art
[0004] A storage device refers to an electronic component for storing data permanently or temporarily. Each storage device may include one or more storage media to store data, and may further include a memory controller configured to control the memory device to store or retrieve data. A memory device is a memory device implemented using a semiconductor such as silicon (Si), germanium (Ge), gallium arsenide (GaAs), or indium phosphide (InP). Storage devices can be classified based on the type of storage medium. For example, a hard disk drive (HDD) uses a magnetic disk as a storage medium, and a solid-state drive (SSD) or a memory card uses a semiconductor memory device such as a volatile memory device and a non-volatile memory device as a storage medium.
[0005] A volatile memory device is a memory device that can retain its data only when powered. Therefore, such a volatile memory device loses its data when there is no power. Examples of volatile memory devices include static random access memory (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), etc.
[0006] On the other hand, a nonvolatile memory device is a memory device that retains data even when there is no power. Examples of nonvolatile memory devices include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), flash memory, phase change RAM (PRAM), magnetic RAM (MRAM), resistive RAM (RRAM), ferroelectric RAM (FRAM), etc. Flash memory is generally classified into NOR-type flash memory and NAND-type flash memory.
[0007] In order to ensure the reliability of data stored in a storage device, a protection operation is performed in the storage device when power supply to the storage device is abnormal. Summary of the invention
[0008] Various embodiments of the disclosed technology provide a memory controller with improved performance and a storage device including the memory controller.
[0009] According to one aspect of the present disclosure, a memory controller is provided for controlling the operation of a memory device, the memory controller comprising: a first core configured to receive a request from a host and perform a logical address processing operation of converting a first logical address into a second logical address having a second size, wherein each request received has a corresponding first logical address associated with data requested from the host and having a first size, the second size being different from the first size; and a second core configured to convert the second logical address into a physical address to which data is to be written or from which data is to be read, the physical address representing the location of a memory cell included in the memory device.
[0010] According to another aspect of the present disclosure, a memory controller is provided for controlling the operation of a memory device, the memory controller comprising: a first core configured to receive a request from a host to read data from a memory device or to write data to a memory device, and to detect an abnormal power state in which power is less than power in a normal power state and to notify a second core of the abnormal power state, each request received comprising a corresponding first logical address having a first size, the first logical address being convertible into a second logical address having a second size, the second size being different from the first size; a storage area configured to store metadata comprising a conversion relationship between a physical address and at least one of the first logical address and the second logical address, the physical address representing a location of a memory cell included in the memory device; and a second core configured to store the metadata in the memory device in response to the abnormal power state, such that the metadata is stored before data associated with the request.
[0011] According to another aspect of the present disclosure, a storage device is provided, comprising a memory device and a memory controller for controlling the operation of the memory device, the storage device comprising: a memory controller comprising a first core and a second core, the first core being configured to receive a request from a host together, the request having a first logical address corresponding to the request respectively, and the second core being configured to obtain a physical address corresponding to the first logical address, the physical address representing the location of an area in the memory device from which data associated with the request is read or written; a buffer memory configured to store data to be stored in or to be read from the memory device; and a memory device configured to operate in response to a command received from the memory controller, wherein, in response to detecting an abnormal power state, the second core is configured to cancel an operation being performed by the memory device and perform another operation to store mapping information for obtaining the physical address in the memory device, and the first core is configured to determine whether any two requests having the same first logical address in the request have been received from the host while the mapping information is stored in the memory device. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Example embodiments will now be described more fully hereinafter with reference to the accompanying drawings; however, example embodiments may be implemented in different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the example embodiments to those skilled in the art.
[0013] In the drawings, dimensions may be exaggerated for clarity of illustration. Like reference numerals refer to like elements throughout.
[0014] Figure 1 is an example of a block diagram illustrating a storage device according to an embodiment of the disclosed technology.
[0015] Figure 2 is an example of a block diagram illustrating operations of a first core and a second core according to an embodiment of the disclosed technology.
[0016] Figure 3 is an example of a block diagram showing the configuration of a first core and a second core according to an embodiment of the disclosed technology.
[0017] Figure 4 is an example of a diagram illustrating the operation of a first kernel based on one embodiment of the disclosed technology.
[0018] Figure 5 is an example of a diagram illustrating an example of PLP information according to an embodiment of the disclosed technology.
[0019] Figure 6is an example of a diagram illustrating the operation of the second kernel in detail.
[0020] Figure 7 is an example of a diagram illustrating the operation of a dump controller.
[0021] Figure 8 is an example of a block diagram showing the configuration of a first core and a second core according to an embodiment of the disclosed technology.
[0022] Fig. 9 is an example of a flowchart showing a case where the first core performs a logical address processing operation and a duplicate request checking operation.
[0023] Fig.10 is an example of a flowchart illustrating the operation of the second kernel.
[0024] Fig.11 is an example of a flowchart illustrating operations of the first core and the second core.
[0025] Fig.12 is an example of a diagram illustrating a memory device according to an embodiment of the disclosed technology.
[0026] Fig.13 It is shown Figure 1 An example of a diagram of another embodiment of a memory controller is shown.
[0027] Fig.14 is an example of a block diagram illustrating a memory card system to which a storage device including a memory device is applied according to an embodiment of the disclosed technology.
[0028] Fig.15 is an example of a block diagram exemplarily illustrating a solid state drive (SSD) system to which a storage device including a memory device is applied according to an embodiment of the disclosed technology.
[0029] Fig.16 is an example of a block diagram illustrating a user system to which a storage device including a memory device is applied according to an embodiment of the disclosed technology. DETAILED DESCRIPTION
[0030] The specific examples of structural or functional features disclosed herein are only for the purpose of describing embodiments or implementations of the disclosed technology. In addition to the specific examples provided herein, the disclosed technology can be implemented in various forms or configurations.
[0031] Hereinafter, exemplary embodiments of the disclosed technology will be described in detail with reference to the accompanying drawings.
[0032] Figure 1 is an example of a block diagram illustrating a storage device according to an embodiment of the disclosed technology.
[0033] Reference Figure 1 , the memory device 50 may include a memory device 100 and a memory controller 200 configured to control operations of the memory device 100. The memory controller 200 may include a first core 210 and a second core 220.
[0034] The storage device 50 may be a device for storing data under the control of the host 300 such as a mobile 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.
[0035] The storage device 50 may be implemented as any of various suitable types of storage devices that store data under control according to a host interface as a communication scheme with the host 300. In some embodiments, the host 300 may include a host device that includes a host interface. In some embodiments, the storage device 50 may be implemented using any of a plurality of types of storage devices such as a solid state drive (SSD), a multimedia card (MMC), an embedded MMC (eMMC), a reduced size MMC (RS-MMC), a micro MMC (micro-MMC), a secure digital (SD) card, a mini SD card, a micro SD card, a universal serial bus (USB) storage device, a universal flash memory (UFS) device, a compact flash (CF) card, a smart media card (SMC), a memory stick, etc.
[0036] The memory device 50 may be or have any of a variety of package types. For example, the memory device 50 may be manufactured as any of a variety of package types such as: package on package (POP), system-in-package (SIP), system on chip (SOC), multi-chip package (MCP), chip on board (COB), wafer-level manufacturing package (WFP), or wafer-level stacked package (WSP).
[0037] The memory device 100 may store data. The memory device 100 may operate under the control of the memory controller 200. The memory device 100 may include a memory cell array including a plurality of memory cells for storing data.
[0038] Each of the memory cells may be configured as a single-level cell (SLC) storing one data bit, a multi-level cell (MLC) storing two data bits, a triple-level cell (TLC) storing three data bits, or a quad-level cell (QLC) storing four data bits.
[0039] The memory cell array may include a plurality of memory blocks. Each of the memory blocks may include a plurality of memory cells. A memory block may include a plurality of pages. In an embodiment, a page may be a unit for storing data in the memory device 100 or reading data stored in the memory device 100.
[0040] 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 4 (LPDDR4) SDRAM, a graphic double data rate (GDDR) SRAM, 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), a spin transfer torque random access memory (STT-RAM), etc. In this specification, for the convenience of description, it is assumed and described that the memory device 100 is a NAND flash memory.
[0041] The memory device may receive a command and an address from the memory controller 200. The memory device 100 accesses an area selected by the received address in the memory cell array. Accessing the selected area may mean performing an operation corresponding to the received command on the selected area. For example, the memory device 100 may perform a write (program) operation, a read operation, and an erase operation. In a programming operation, the memory device may program data in an area selected by an address. In a read operation, the memory device 100 may read data from an area selected by an address. In an erase operation, the memory device 100 may erase data stored in an area selected by an address.
[0042] The memory controller 200 may control the overall operations of the memory device 50 .
[0043] When power is supplied to the memory device 50, the memory controller 200 may run firmware (FW). The FW may include a host interface layer (HIL) that receives a request input from the host 300 or outputs a response to the host, a flash translation layer (FTL) that manages operations between an interface of the host 300 and an interface of the memory device 100, and a flash interface layer (FIL) that provides a command to the memory device 100 or receives a response from the memory device 100.
[0044] In an embodiment, the memory controller 200 may receive data and a logical address (LA) from the host 300, and convert the LA into a physical address (PA) representing an address of a memory cell where data is to be stored in the memory device 100. The LA may be a logical block address (LBA), and the PA may be a physical block address (PBA).
[0045] The memory controller 200 may control the memory device 100 to perform a program operation, a read operation, an erase operation, etc. in response to a request from the host 300. In a program operation, the memory controller 200 may provide a program command, a PBA, and data to the memory device 100. In a read operation, the memory controller 200 may provide a read command and a PBA to the memory device 100. In an erase operation, the memory controller 200 may provide an erase command and a PBA to the memory device 100.
[0046] In an embodiment, the memory controller 200 may control the memory device 100 to autonomously perform a program operation, a read operation, or an erase operation regardless of any request from the host 300. For example, the memory controller 200 may control the memory device 100 to perform a program operation, a read operation, an erase operation, or other operations for performing background operations such as wear leveling, garbage collection, or read reclamation.
[0047] Reference Figure 1 , the memory controller 200 may include a first core 210 and a second core 220. The first core 210 and the second core 220 may perform operations independently of each other. When performing operations independently of each other, the first core 210 and the second core 220 may exchange information on the progress status of the operation of the memory controller 200.
[0048] For example, the first core 210 may receive a request from the host 300, or perform an operation corresponding to the HIL that outputs a response to the host. In some embodiments, the second core 220 may perform an operation corresponding to the FTL that manages operations between an interface of the host 300 and an interface of the memory device 100. In some embodiments, the second core 220 may further perform an operation corresponding to the FIL that provides a command to the memory device 100 or receives a response from the memory device 100.
[0049] The storage device 50 may be supplied with power from the outside. In some cases, the state of the power supplied to the storage device 50 may be abnormal due to various reasons. When the power supplied to the storage device 50 is interrupted, an abnormal state of power may occur. Alternatively, when power having a size smaller than the size of normal power is supplied to the storage device 50, an abnormal state of power may occur. The abnormal state of power may be defined as a sudden power failure (hereinafter referred to as "SPO"). The memory controller 200 may detect SPO and perform a power failure protection (hereinafter referred to as "PLP") operation by using auxiliary power in the storage device 50. When SPO is detected, a PLP operation may be performed in the memory controller 200 and the memory device 100. The PLP operation may include at least one of an operation of canceling an operation currently being performed by the memory device 100 or a dump operation of storing data in the memory device 100. A dump operation may be performed to store data while supplying auxiliary power until the power is completely cut off. The data to be stored in the memory device 100 may include data associated with its command / request received from the host 300 and / or metadata including mapping information between logical addresses and physical addresses. In some embodiments, the metadata may be temporarily stored in a buffer memory included in the memory device 50 or the memory controller 200. The metadata may include mapping information indicating a conversion relationship between LA and PA, which is required to store data in the memory device 100 or read data stored in the memory device 100, and thus high reliability of the metadata is required. Therefore, in some embodiments, the metadata including the mapping information may be stored in the memory device 100 prior to data associated with a write request received from the host 300.
[0050] When SPO is detected, the first core 210 and the second core 220 may perform an operation for ensuring data reliability.
[0051] In various embodiments, the first core 210 may perform an operation on data associated with a write request received from the host 300 , and the second core 220 may perform a dump operation to store metadata in the memory device 100 .
[0052] For example, the address system of the data used by the host 300 may be different from the address system of the data used by the second core 220. This is because the logical block size of the data processed by the host 300 may be different from the logical block size of the data processed by the second core 220. The first core 210 may perform a logical address conversion operation to convert the LA transmitted from the host 300 into an LA having a size corresponding to the size of the LA to be used by the second core 220. The LA transmitted from the host 300 may be referred to as the front LA. In addition, the LA used by the second core 220 may be referred to as the main LA. Moreover, when there is a request that has not been processed among the requests received from the host 300, or when a request for the same LA is received again, the first core 210 may determine the previously received request as an unnecessary request. Moreover, the first core 210 may perform a duplicate request check operation to cancel the resources used for the previously received request. Details related to this will be described with reference to the accompanying drawings to be described later.
[0053] 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), High Speed Inter-Chip (HSIC), Small Computer System Interface (SCSI), FireWire, Peripheral Component Interconnect (PCI), PCI Express (PCIe), Non-Volatile Memory Express (NVMe), Universal Flash Storage (UFS), Secure Digital (SD), MultiMedia Card (MMC), Embedded MMC (eMMC), Dual In-line Memory Module (DIMM), Registered DIMM (RDIMM), and Load Reduced DIMM (LRDIMM).
[0054] Figure 2 is a block diagram illustrating the operation of a first core and a second core according to an embodiment of the disclosed technology.
[0055] Reference Figure 2 , the host 300 may send a request and data associated with the request to the memory controller 200. The request received from the host 300 may include at least one of a write request or a read request. Hereinafter, a case where the request received from the host 300 is a write request is described as an example. In response to receiving the write request from the host 300, the memory controller 200 may control the memory device 100 so that the data associated with the write request received from the host 300 is stored in the memory device 100.
[0056] The memory controller 200 may include a first core 210, a second core 220, and a buffer memory 230. Figure 2, shows a case where the buffer memory 230 is included in the memory controller 200. In various embodiments, the buffer memory 230 may be located inside the memory device 50 and outside the memory controller 200. The first core 210 and the second core 220 may access the buffer memory 230, and temporarily store data in the buffer memory 230 or process the temporarily stored data by using various methods.
[0057] In the case where SPO is not detected, the host 300 may provide a write request and data associated with the write request to the memory controller 200. The first core 210 may receive the write request and the data, and control the buffer memory 230 so that the data is temporarily stored in the buffer memory 230. In addition, the write request received from the host 300 may be added to a queue (not shown) of the first core 210. The queue (not shown) of the first core 210 may store the requests received from the host 300 sequentially or according to a predetermined rule. A plurality of requests received from the host 300 are added to the queue (not shown), so that the response speed of the storage device 50 can be quickly improved. When the first core 210 normally receives the write request and the data from the host 300, the first core 210 may provide the request completion information to the second core 220. The second core 220 may receive the request completion information from the first core 210, and perform an operation for executing the write request from the host 300. For example, a command to be provided to the memory device 100 may be added to the queue (not shown) of the second core 220. The command to be provided to the memory device 100 may include a write command for executing a write request received from the host 300. In addition to the write request received from the host 300, the command to be provided to the memory device 100 may include a command for performing a background operation. Compared with a general operation performed in response to a request input from the host 300, the background operation may use fewer resources of the storage device 50 or the memory controller 200. For example, a logical address received from the host 300 may be converted into a physical address representing a storage location of the memory device 100. The mapping information used herein may be stored in a partial area of the buffer memory 230. In addition to the write request received from the host 300, the mapping information may be continuously updated while performing the background operation. Because the updated mapping information is an important factor affecting the reliability of the storage device 50, the updated mapping information may be provided to the memory device 100 periodically or at a specific time. The command for storing the mapping information in the memory device 100 may also be included in a queue (not shown) of the second core 220. The second core 220 may provide a write command so that the data temporarily stored in the buffer memory 230 is stored in the memory device 100. In response to the command of the second core 220, the memory device 100 may store the data stored in the buffer memory 230 in a memory block (or page) corresponding to the PA in the memory device 100.
[0058] In the case where an SPO is detected, the first core 210 may detect the SPO and notify the second core 220 of the SPO. Also, the first core 210 may check the write request and data normally received from the host 300, and add the write request and data to a queue (not shown) of the first core 210. In addition, metadata of the first core 210 may be further added to the queue (not shown) of the first core 210. The metadata of the first core 210 may be data about firmware used in the operation of the first core 210. Also, the first core 210 may provide the second core 220 with information included in the queue (not shown) of the first core 210. In some embodiments, all information included in the queue of the first core 210 may be provided to the second core 220.
[0059] In an embodiment, after detecting the SPO, the first core 210 may perform a logical address conversion operation and / or a duplicate request check operation. For example, the first core 210 may perform a logical address conversion operation to convert a logical address received from the host 300 into a logical address corresponding to the size of the logical address to be used by the second core 220. In some embodiments, the first core 210 may perform a duplicate request check operation to determine whether any two requests from the host 300 have been made for the same logical address, and if the current request received from the host 300 has the same logical address as the logical address of the previous request, the resources used for the previous request are cancelled. For example, when the host 300 provides a write request for a specific logical address to the memory controller 200 after providing a write request for the same logical address to the memory controller 200, the previous write request may be considered unnecessary. Therefore, the first core 210 may determine that the previous write request is unnecessary and release the resources allocated for the previous write request. By releasing the resources, the previous write request is processed as an invalid request. In this case, the buffer memory 230 is controlled so that an area in the buffer memory 230 that was allocated for the previous write request to store the associated data becomes available for another data associated with another request. The order of the logical address conversion operation and the duplicate request check operation may be changed. Thus, the duplicate request check operation may be performed first, and then the logical address conversion operation may be performed.
[0060] In an embodiment, the first core 210 may notify the second core 220 that an SPO has been detected, and the second core 220 may perform a PLP operation in response to the detection of the SPO. In some embodiments, during the PLP operation, the memory device 100 may cancel at least some of the operations currently being performed. For example, it is assumed that the memory device 100 is currently performing an operation of storing data associated with a write request received from the host 300 and metadata including mapping information. The memory device 100 may cancel the current operation instead of canceling the operation of storing metadata including mapping information in the memory device. The operation of storing metadata including mapping information is called a dump operation. Depending on the amount of data, the time required to perform the dump operation may be extended or shortened. In an embodiment, while the second core 220 is performing the PLP operation, the first core 210 may perform at least one of a logical address conversion operation and a duplicate request check operation. Because the operations performed by the first core 210 and the second core 220 are different from each other, the first core 210 and the second core 220 can operate simultaneously, which improves the processing efficiency in an emergency.
[0061] The first core 210 may provide the second core 220 with PLP information "PLP_Info" indicating the status of the logical address conversion operation and the repeated request check operation. The second core 220 may receive the PLP information "PLP_Info" and determine whether the first core 210 has completed the logical address conversion operation and the repeated request check operation based on the received PLP information. When the PLP information "PLP_Info" indicates that the first core 210 has not completed at least one of the logical address conversion operation and the repeated request check operation, the second core 220 may perform the corresponding operation that has not been completed. Subsequently, the second core 220 may convert the logical address into a physical address. Moreover, the second core 220 may provide a write command and data associated with the write command to the memory device, so that the data stored in the buffer memory 230 is stored in a storage block (or page) corresponding to the physical address.
[0062] In another embodiment, the first core 210 may perform a logical address operation and a duplicate request check operation while the second core 220 performs a PLP operation, and the first core 210 may convert a logical address into a physical address. When the first core 210 converts the logical address into a physical address, the first core 210 may notify the second core 220 that the logical address has been converted into a physical address.
[0063] Figure 3 is a block diagram showing the configuration of a first core and a second core according to an embodiment of the disclosed technology.
[0064] Reference Figure 3, the first kernel 210 may include an SPO detector 211 , a first PLP manager 212 , a logical address processor 213 , a duplicate request checker 214 , and a first kernel queue 215 .
[0065] The SPO detector 211 may detect an SPO indicating an abnormal power state. Also, the SPO detector 211 may provide the second core 220 with SPO information 'SPO_detect' indicating that the SPO has been detected by the first PLP manager 212.
[0066] The first PLP manager 212 may be connected to the logical address processor 213 and the duplicate request checker 214. The first PLP manager 212 may control the operation of the logical address processor 213 and receive information indicating whether the logical address conversion operation has been completed. The first PLP manager 212 may control the operation of the duplicate request checker 214 and receive information indicating whether the duplicate request check operation has been completed. The first queue 215 includes requests received from the host 300, and the first PLP manager 212 may provide the requests included in the first kernel queue 215 to the second kernel 220. The first PLP manager 212 may provide the second kernel 220 with PLP information "PLP_Info" indicating the operation results of the logical address processor 213 and the duplicate request checker 214.
[0067] The logical address processor 213 may perform a logical address conversion operation to convert the size of the logical address received from the host into a size corresponding to the logical address used by the second core 220. Also, the logical address processor 213 may provide the first PLP manager 212 with information indicating whether the logical address conversion operation has been completed.
[0068] The duplicate request checker 214 may perform a duplicate request check operation to determine whether any two requests having the same logical address have been received from the host, and if the current request received from the host has the same logical address as the logical address of the previous request, release the resources used for the previous request. Furthermore, the duplicate request checker 214 may provide information indicating whether the duplicate request check operation has been completed to the first PLP manager 212.
[0069] The first kernel queue 215 may include requests received from the host. The requests received from the host may be added to the first kernel queue 215 sequentially or according to a predetermined rule. The requests added to the first kernel queue 215 may be executed sequentially or according to a predetermined rule. One or more requests received from the host are added to the first kernel queue 215, so that the response speed of the storage device 50 can be quickly improved.
[0070] The second kernel 220 may include a dump controller 221 , a second PLP manager 222 , an address translator 223 , and a second kernel queue 224 .
[0071] While the auxiliary power is supplied, the dump controller 221 may perform a dump operation to store data in the memory device 100. The data to be stored in the memory device 100 may include data associated with a write request received from a host or metadata including mapping information.
[0072] The second PLP manager 222 may receive SPO information "SPO_detect" and PLP information "PLP_Info" from the first PLP manager 212. The second PLP manager 222 may receive the SPO information "SPO_detect" and control the operation of the dump controller 221. The second PLP manager 222 may control the operation of the address converter 223. The second PLP manager 222 may add a request to the second kernel queue 224 or process the request as an invalid request. For example, the second PLP manager 222 processes the request currently executed by the memory device 100 in response to receiving the SPO information "SPO_Info". In addition to the request received from the host, a request for storing metadata including mapping information in the memory device may be added to the second kernel queue 224. In addition, a request provided from the first kernel 215 may be added to the second kernel queue 224.
[0073] Figure 4 is a diagram illustrating the operation of the first kernel.
[0074] Reference Figure 4 , the memory controller 200 may include a first core 210, a second core 220, and a buffer memory 230. The first core 210 may include an SPO detector 211, a first PLP manager 212, a logical address manager 213, a duplicate request checker 214, and a first core queue 215. The logical address processor 213 may include a block manager 216 and a block converter 217. The second core 220 may include a second PLP manager 222. A case where the buffer memory 230 is included in the memory controller 200 is shown. In various embodiments, the buffer memory 230 may be located inside the storage device 50 and outside the memory controller 200. The buffer memory 230 may be a volatile memory.
[0075] The SPO detector 211 may detect an SPO indicating an abnormal power state. Also, the SPO detector 211 may provide the second core 220 with SPO information 'SPO_detect' indicating that the SPO has been detected by the first PLP manager 212.
[0076] The second PLP manager 222 may receive the SPO information "SPO_detect". In addition, the second core 220 may perform a PLP operation in response to the SPO information "SPO_detect". The PLP operation may include a cancel operation of canceling the operation being performed by the memory device and a dump operation of storing metadata including mapping information in the memory device. When the second core 220 performs the PLP operation, a logical address conversion operation and a duplicate request check operation may be performed in the first core 210. According to an embodiment, the first core 210 and the second core 220 may perform independent operations at the same time. Therefore, when SPO is detected, metadata and data associated with a write request received from the host may be stored in the memory device within a short time after the SPO is detected. According to an embodiment, since the first core 210 and the second core 220 may perform independent operations at the same time after the SPO is detected, the time required to supply auxiliary power may be shortened. Therefore, the reliability of the data can be ensured by supplying only a small amount of auxiliary power using an auxiliary power supply.
[0077] In some embodiments, the first PLP manager 212 may control the operation of the logical address processor 213. The block manager 216 may determine whether the size of the logical address transmitted from the host is equal to the size of the logical address to be used by the second core 220. Based on the determination, the block manager 216 controls whether the logical address processor 213 performs a logical address conversion operation. For example, the logical address corresponding to the request provided from the host may have a size of 512 bytes, and the logical address processed by the second core 220 may have a size of 1 kilobyte. As described in the example, when the logical addresses have different sizes, the block manager 216 may perform a logical address conversion operation to convert the logical address transmitted from the host into a corresponding logical address processed by the second core 220. In another example, the size of the logical address transmitted from the host may be equal to the size of the logical address processed by the second core 220. In this case, the logical address conversion operation may not be performed. The logical address processor 213 may provide the first PLP manager 212 with logical address block information "blk_fin", including at least one of information indicating whether the logical address conversion operation has been completed and information indicating the size of the logical address.
[0078] The first PLP manager 212 may control the operation of the duplicate request checker 214. The duplicate request checker 214 may determine whether a request having the same logical address has been received. When it is determined that a request having the same logical address has been received, the duplicate request checker 214 may perform a duplicate request check operation to release resources allocated for the previously received request. The duplicate request check operation of releasing resources will be described in more detail by using a write request as an example. When two or more write requests having the same logical address are input from the host, it may be determined that the previous write request is unnecessary. Therefore, the previous write request may be processed as an invalid request. In addition, the buffer memory 230 may be controlled so that an area in which data corresponding to the previous write request has been temporarily stored may be used to store another data. When it is determined that any two requests having the same logical address have not been received from the host, the duplicate request check operation of releasing resources may not be performed. The duplicate request checker 214 may provide the first PLP manager 212 with duplicate request information "req_fin" indicating whether the duplicate request check operation has been completed.
[0079] The first PLP manager 212 may provide SPO information “SPO_detect” to the second kernel 220. The first PLP manager 212 may provide the request included in the first kernel queue 215 to the second kernel 220. The first PLP manager 212 may provide PLP information “PLP_info” to the second PLP manager 222. The PLP information PLP_info may include logical address block information “blk_fin” including at least one of information indicating whether the logical address conversion operation has been completed and information indicating the size of the logical address. Moreover, the PLP information “PLP_info” may include repeated request information “req_fin” indicating whether the repeated request check operation has been completed.
[0080] The second PLP manager 222 may receive PLP information "PLP_info" including logical address block information "blk_fin". When the logical address block information "blk_fin" included in the PLP information "PLP_info" indicates that the logical address conversion operation has been completed, the second core 220 may not perform the logical address conversion operation. Therefore, the second core 220 may determine that the first core 210 has performed the logical address conversion operation, and skip the logical address conversion operation. Meanwhile, when the logical address block information "blk_fin" included in the PLP information "PLP_info" indicates that the logical address conversion operation has not been completed, the second core 220 may perform the logical address conversion operation. Therefore, the second core 220 may determine that the first core 210 has not performed the logical address conversion operation, and perform the logical address conversion operation. As described above, the second core 220 may first determine whether the size of the logical address transmitted from the host is equal to the size of the logical address to be used by the second core 220. In addition, the second core 220 may perform a logical address conversion operation, performing conversion to convert the logical address transmitted from the host into a corresponding logical address processed by the second core 220. When it is determined that the first core 210 has not yet performed the logical address conversion operation or has not yet completely performed the logical address conversion operation, the second core 220 may perform the above-mentioned logical address conversion operation of the logical address processor 213 .
[0081] The second PLP manager 222 may receive PLP information "PLP_info" including duplicate request information "req_fin". When the duplicate request information "req_fin" included in the PLP information "PLP_info" indicates that the duplicate request check operation has been completed, the second core 220 may not perform the duplicate request check operation. Therefore, the second core 220 may determine that the first core 210 has performed the duplicate request check operation and skip the duplicate request check operation. At the same time, when the duplicate request information req_fin included in the PLP information "PLP_info" indicates that the duplicate request check operation has not been completed, the second core 220 may perform the duplicate request check operation. Therefore, the second core 220 may determine that the first core 210 has not performed the duplicate request check operation and perform the duplicate request check operation. As described above, the second core 220 may first determine whether any two or more requests having the same logical address have been received from the host. When it is determined that any two or more requests having the same logical address have been input from the host, the second core 220 may perform the duplicate request check operation and release the resources allocated for the previous request. As discussed for the case of the duplicate request checker 214 of the first core 210, the second core 220 may process the previous write request as an invalid request. Moreover, the second core 220 may control the buffer memory 230 so that the area in which the data corresponding to the previous write request processed as an invalid request is temporarily stored is used to store another data. When it is determined that the first core 210 has not yet performed the duplicate request check operation or has not yet completely performed the duplicate request check operation, the second core 220 may perform the above-mentioned duplicate request check operation of the duplicate request checker 214.
[0082] Therefore, the second core 220 may selectively perform at least one of the logical address translation operation or the repeat request check operation based on determining that the first core 210 has not yet performed or has not completely performed the logical address translation operation and / or the repeat request check operation.
[0083] Figure 5 is a diagram illustrating an example of PLP information PLP_info according to an embodiment of the disclosed technology.
[0084] The PLP information 'PLP_info' may include at least one of logical address block information 'blk_fin' and repetition request information 'req_fin'.
[0085] The logical address block information "blk_fin" may include at least one of information indicating whether the logical address conversion operation has been completed and information indicating the size of the logical address. Figure 5As shown, the first flag "flag1" may indicate whether the logical address conversion operation has been completed. For example, when the first flag "flag1" indicates "0000", this indicates that the logical address conversion operation has been completed. The second core may receive the logical address block information "blk_fin" included in the PLP information "PLP_info", and determine whether to perform the logical address conversion operation. When the logical address block information "blk_fin" indicates that the first core has not yet performed the logical address conversion operation or has not yet fully performed the logical address conversion operation, the second core may perform the logical address conversion operation. Even when the logical address block information "blk_fin" indicates that the first core has not yet performed the logical address conversion operation or has not yet fully performed the logical address conversion operation, if the size of the logical address transmitted from the host is equal to the size of the logical address to be used by the second core, the second core may not perform the logical address conversion operation. At the same time, when the logical address block information "blk_fin" indicates that the first core has performed the logical address conversion operation, the second core does not perform the logical address conversion operation, but may skip the logical address conversion operation.
[0086] The re-request information "req_fin" may include information indicating whether the re-request check operation has been completed. Figure 5 As shown, the second flag "flag2" may indicate whether the repeat request check operation has been completed. For example, when the second flag "flag2" indicates "1000", this may indicate that the repeat request check operation has been completed. The second kernel may receive the repeat request information "req_fin" included in the PLP information "PLP_info" and determine whether to perform the repeat request check operation. When the repeat request information "req_fin" indicates that the first kernel has not yet performed the repeat request check operation or has not yet completely performed the repeat request check operation, the second kernel may perform the repeat request check operation.
[0087] Figure 6 is a diagram illustrating the operation of the second kernel in detail.
[0088] Reference Figure 6 , the memory controller 200 may include a first core 210, a second core 220, and a buffer memory 230. The second core 220 may include a dump controller 221, a second PLP manager 222, an address translator 223, and a second core queue 224.
[0089] In some embodiments, the second PLP manager 222 may receive SPO information "SPO_detect" from the first core 210. The second PLP manager 222 may perform an operation of canceling an operation being performed by the memory device 100 in response to receiving the SPO information "SPO_detect". Subsequently, the second PLP manager 222 may control the dump controller 221 to perform a dump operation. The dump operation may include storing data in the memory device 100 while auxiliary power is being supplied and before power is completely interrupted. The data to be stored in the memory device 100 may include metadata temporarily stored in the buffer memory 230. The metadata may include mapping information indicating a conversion relationship between a logical address and a physical address. Because the mapping information is used to store data in the memory device 100 or read data stored in the memory device 100, high reliability of the mapping information is required. Therefore, after sensing or detecting the SPO, although the operation being performed by the memory device 100 may be canceled, the metadata including the mapping information may be stored in the memory device 100. The priority of storing the metadata in the memory device 100 is higher than the priority of storing data associated with a write request from the host. The data associated with the write request corresponds to data that has been requested by the host to be stored in the memory device. When the second PLP manager 222 and the dump controller 221 cancel the operation being performed by the memory device 100 so that the metadata is stored in the memory device 100, the first kernel 210 may execute Figure 4 At least one of the logical address conversion operation and the duplicate request check operation described in. Therefore, the first kernel 210 and the second kernel 220 are configured to perform different operations simultaneously. In some embodiments, the first kernel 210 may provide PLP information "PLP_info" to the second kernel 220. The second PLP manager 222 may perform other operations that are not performed by the first kernel 210. For example, when the PLP information "PLP_info" indicates that the logical address conversion operation has not been performed or has not been fully performed, the second PLP manager 222 may perform the logical address conversion operation. In another example, when the PLP information "PLP_info" indicates that the duplicate request check operation has not been performed or has not been fully performed, the second PLP manager 222 may perform the duplicate request check operation.
[0090] When the PLP information "PLP_info" indicates that both the logical address conversion operation and the duplicate request check operation have been performed, the second PLP manager 222 may control the address converter 223 to convert the logical address into a physical address. The address converter 223 may obtain a physical address corresponding to the logical address by using the mapping information temporarily stored in the buffer memory 230. Also, the second PLP manager 222 may receive a request from the first core 210 and add the received request to the second core queue 224.
[0091] While the auxiliary power is supplied, the dump controller 221 may perform a dump operation of storing data in the memory device 100. Metadata including mapping information may have been stored in the memory device 100. In this case, a dump operation of storing data corresponding to the request included in the second kernel queue 224 may be performed. Because the logical address conversion operation and the duplicate request check operation have been completed, the dump operation may be performed quickly. Specifically, the second PLP manager 222 and the dump controller 221 may perform operations corresponding to the request included in the second kernel queue 224. Assume that a write request is included in the second kernel queue 224. The dump controller 221 may generate a write command corresponding to the write request. Moreover, the dump controller 221 may provide the memory device 100 with a write command and data associated with the write request and temporarily stored in the buffer memory 230. In addition, the physical address converted by the address converter 223 may be provided to the memory device 100. The memory device 100 may receive the write command, the data associated with the write request, and the physical address. The memory device 100 may store data in memory cells included in a memory block (or page) corresponding to a physical address.
[0092] Figure 7 is a diagram illustrating the operation of the dump controller.
[0093] Reference Figure 7 When the dump controller 221 receives the notification of the SPO, the dump controller 221 may generate a cancel command so that the memory device cancels the operation being executed, and provide the generated cancel command to the memory device. The memory device receives the cancel command and suspends the operation currently being executed. The dump controller 221 may generate a write command so that metadata is stored in the memory device before the data associated with the write request is stored, and provide the generated write command to the memory device. The memory device may receive the write command and the metadata, and store the metadata. When the memory device cancels the operation being executed and stores the metadata, Figure 6The first core 210 shown may perform a logical address conversion operation or a repeated request check operation. After the metadata is stored, the dump controller 221 may generate completion information "meta_fin" indicating that the storage of the metadata has been completed. The completion information "meta_fin" may be provided to Figure 6 The first core 210 shown. The first core 210 may receive the completion information "meta_fin" and generate PLP information "PLP_info". The first core 210 may receive the completion information "meta_fin" and generate information indicating whether the logical address conversion operation or the repeat request check operation has been completed.
[0094] Figure 8 is a block diagram showing the configuration of a first core and a second core according to an embodiment of the disclosed technology.
[0095] exist Figure 8 In the Figure 3 The same or corresponding content as described in Figure 3 The different parts are described in .
[0096] Reference Figure 8 , the first core 210 may include an SPO detector 211, a first PLP manager 212, a logical address processor 213, and a first core queue 215. The second core 220 may include a dump controller 221, a second PLP manager 222, a duplicate request checker 214, an address converter 223, and a second core queue 224. Figure 3 The difference from the description in FIG. 1 is that the duplicate request checker 214 included in the first core 210 is Figure 8 In the illustrated embodiment, it is included in the second core 220 .
[0097] The logical address processor 213 included in the first core 210 may perform a logical address conversion operation to convert the logical address transmitted from the host into a logical address having a size corresponding to the size of the logical address to be used by the second core 220. The second core 220 may notify the first core 210 that the dump operation of storing metadata in the memory device has been completed. The first core 210 may be in a state where the logical address conversion operation is being performed and the duplicate request check operation has not been performed. The first core 210 may provide the second core 220 with PLP information "PLP_info" indicating that the logical address conversion operation is being performed and the duplicate request check operation has not been performed. The second core 220 may receive the PLP information "PLP_info" and check that the duplicate request check operation has not been performed. In addition, the duplicate request checker 214 included in the second core 220 may perform a duplicate request check operation. Therefore, the second core 220 may perform the duplicate request check operation while the first core 210 performs the logical address conversion operation. According to an embodiment, the first core 210 and the second core 220 perform operations simultaneously, so that data can be safely stored in the memory device within a short time after the SPO occurs.
[0098] Reference Figure 8 , shows a case where the first core 210 performs a logical address conversion operation and the second core 220 performs a duplicate request check operation, but the logical address conversion operation and the duplicate request check operation may be performed regardless of their order. Therefore, the first core 210 may include a duplicate request checker 214 and preferentially perform the duplicate request check operation. Therefore, the second core 220 may include a logical address processor 213 and perform a logical address conversion operation.
[0099] Fig. 9 is a flowchart showing a case where the first core performs a logical address translation operation and a duplicate request check operation.
[0100] In step S910, the first core may detect an SPO and may notify the second core that the SPO has been detected.
[0101] In step S920, the first kernel may check the request normally received from the host, and add the normally received request to the queue of the first kernel. The normally received request may be a request received before the SPO is detected. Moreover, the first kernel may add metadata of the first kernel to the queue of the first kernel. The metadata of the first kernel may include data about the firmware used for the operation of the first kernel.
[0102] In step S930, the first kernel may determine whether the logical block size of the host and the logical block size of the second kernel are the same. That is, the first kernel may determine whether the address system of the data used by the host and the address system of the data used by the second kernel are the same. When the logical block sizes are different, the first kernel may proceed to step S940. When the logical block sizes are the same, the first kernel may proceed to step S950.
[0103] In step S940, the first core may convert the logical block size. That is, the first core may perform a logical address conversion operation to convert the logical address transmitted from the host into a logical address having a size corresponding to the size of the logical address to be used by the second core.
[0104] In step S950, the first kernel may determine whether a request having the same logical address has been received from the host. The first kernel may determine whether two or more requests having the same logical address have been received from the host. When there is a duplicate request, the first kernel may proceed to step S960. When there is no duplicate request, the duplicate request check operation may not be performed.
[0105] In step S960, when two or more requests having the same logical address have been received from the host, the first core may release the resources allocated for the previous request. In this case, the previous request is considered unnecessary and is processed as an invalid request. Moreover, the buffer memory is controlled so that an area temporarily storing data corresponding to the previous request processed as an invalid request is used to store another data.
[0106] As described above, steps S930 and S940 may correspond to a logical address conversion operation. In addition, steps S950 and S960 may correspond to a repeat request check operation. The order of the logical address conversion operation and the repeat request check operation may be changed. Therefore, steps S950 and S960 may be performed before steps S930 and 940.
[0107] Fig.10 is a flow chart showing the operation of the second kernel.
[0108] In step S1010 , the second core may receive SPO information indicating that an SPO has been detected from the first core.
[0109] In step S1020 , the second core may cancel the operation currently being executed by the memory device.
[0110] In step S1030, the second kernel may provide metadata to the memory device so that the metadata is stored in the memory device. The metadata includes data that is critical to the operation of the memory device, and the reliability of the metadata needs to be ensured. For example, the metadata may include mapping information. Because the mapping information is critical to the operation of the memory device, the mapping information is stored in the memory device before other data including data associated with the request from the host. Therefore, in step S1030, the metadata including the mapping information may be provided to the memory device.
[0111] In step S1040, the second core may receive PLP information "PLP_info" from the first core. The PLP information "PLP_info" may include information about whether the first core has performed a logical address conversion operation or a repeat request check operation. It is assumed that the received PLP information "PLP_info" indicates that the first core has performed both a logical address conversion operation and a repeat request check operation.
[0112] In step S1050, the second core may convert the logical address received from the host into a corresponding physical address. The physical address may indicate the location of a memory unit included in the memory device.
[0113] In step S1060, the second core may add the request received from the first core to the queue of the second core. The second core may control the memory device in response to the added request. For example, when the added request is a write request, the second core may provide a write command, data to be stored, and a physical address to the memory device. The memory device may store the data in a memory cell corresponding to the physical address.
[0114] Fig.11 is a flow chart illustrating the operation of the first core and the second core.
[0115] In step S1101 , the first kernel may detect the SPO.
[0116] In step S1102, the first kernel may notify the second kernel that an SPO has been detected. In some implementations, the first kernel may provide information indicating that an SPO has been detected to the second kernel.
[0117] In step S1103, the first kernel may add the request received from the host and metadata to a queue of the first kernel. The metadata may include data about the firmware of the first kernel.
[0118] In step S1104, the first kernel may convert the block size received from the host to a block size corresponding to that used by the second kernel. The first kernel may convert the logical address size so that the size of the logical address used by the host is the same as the size of the logical address used by the second kernel. In some other embodiments, step S1104 may be performed by the second kernel.
[0119] In step S1105, the first kernel may check whether two or more requests with the same logical address have been received from the host, and if there are two or more requests with the same logical address, release the resources allocated to the previous request. The first kernel may process the previous request as an invalid request, and control the buffer memory so that the area temporarily storing the data corresponding to the previous request is used to store another data. In some other embodiments, step S1105 may be performed by the second kernel.
[0120] In step S1106 , the second core may cancel the operation being executed by the memory device.
[0121] In step S1107 , the second core may provide a write command to the memory device to store metadata including mapping information.
[0122] In step S1108, the first kernel may provide the second kernel with PLP information "PLP_info." The PLP information "PLP_info" may include information on whether steps S1104 and S1105 have been performed.
[0123] In step S1109 , the first core may provide the second core with the request included in the queue of the first core.
[0124] In step S1110 , the second core may receive a request from the first core, and add the received request to a queue of the second core.
[0125] Fig.12 is a diagram illustrating a memory device 100 according to an embodiment of the disclosed technology.
[0126] Reference Fig.12 , the memory device 100 may include a memory cell array 100 , a peripheral circuit 120 , and a control logic 130 .
[0127] The memory cell array 110 includes a plurality of memory blocks BLK1 to BLKz. The plurality of memory blocks BLK1 to BLKz are connected to a row decoder 121 through a row line RL. The plurality of memory blocks BLK1 to BLKz are connected to a page buffer group 123 through bit lines BL1 to BLn. Each of the plurality of memory blocks BLK1 to BLKz includes a plurality of memory cells. In an embodiment, the plurality of memory cells may be nonvolatile memory cells. The memory cells connected to the same word line may be defined as one page. That is, the memory cell array 110 is configured by a plurality of physical pages. Therefore, one memory block may include a plurality of pages.
[0128] Each of the memory cells included in the memory cell array 110 may be configured as a single-level cell (SLC) storing one data bit, a multi-level cell (MLC) storing two data bits, a triple-level cell (TLC) storing three data bits, or a quad-level cell (QLC) storing four data bits.
[0129] The peripheral circuit 120 may perform a program operation, a read operation, or an erase operation on a selected region in the memory cell array 110 under the control of the control logic 130. The peripheral circuit 120 may drive the memory cell array 110. For example, the peripheral circuit 120 may apply various operating voltages to the row lines RL and the bit lines BL1 to BLn or discharge the applied voltages under the control of the control logic 130.
[0130] The peripheral circuit 120 may include a row decoder 121 , a voltage generator 122 , a page buffer group 123 , a column decoder 124 , an input / output circuit 125 , and a sensing circuit 126 .
[0131] The peripheral circuit 120 drives 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, and an erase operation.
[0132] The row decoder 121 is connected to the memory cell array 110 through a row line RL. The row line RL may include at least one source selection line, a plurality of word lines, and at least one drain selection 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.
[0133] The row decoder 121 operates under the control of the control logic 130. The row decoder 121 receives a row address RADD from the control logic 130.
[0134] The row decoder 121 decodes the row address RADD. The row decoder 121 selects at least one memory block among the memory blocks BLK1 to BLKz according to the decoded address. Moreover, the row decoder 121 may select at least one word line of the selected memory block according to the decoded address to apply the voltage generated by the voltage generator 122 to the at least one word line WL.
[0135] For example, in a program operation, the row decoder 121 may apply a program voltage to a selected word line, and apply a program pass voltage having a level lower than the program voltage to unselected word lines. In a program verification operation, the row decoder 121 may apply a verification voltage to a selected word line, and apply a verification pass voltage having a level higher than the verification voltage to unselected word lines. In a read operation, the row decoder 121 may apply a read voltage to a selected word line, and apply a read pass voltage having a level higher than the read voltage to unselected word lines.
[0136] In an embodiment, the erase operation of the memory device 100 is performed in units of memory blocks. In the erase operation, the row decoder 121 may select a memory block according to the decoded address. In the erase operation, the row decoder 121 may apply a ground voltage to a word line coupled to the selected memory block.
[0137] The voltage generator 122 operates under the control of the control logic 130. The voltage generator 122 generates a plurality of voltages by using an external power supply voltage supplied to the memory device 100. Specifically, the voltage generator may generate various operation voltages Vop used in a program operation, a read operation, and an erase operation in response to an operation signal OPSIG. For example, under the control of the control logic 130, the voltage generator 122 may generate a program voltage, a verification voltage, a pass voltage, a read voltage, an erase voltage, and the like.
[0138] 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 is used as an operating voltage of the memory device 100.
[0139] In an embodiment, the voltage generator 122 may generate a plurality of voltages by using an external power supply voltage or an internal power supply voltage.
[0140] For example, the voltage generator 122 may include a plurality of pumping capacitors for receiving an internal power supply voltage, and may generate a plurality of voltages by selectively enabling the plurality of pumping capacitors under the control of the control logic 130 .
[0141] The plurality of generated voltages may be supplied to the memory cell array 110 through the row decoder 121 .
[0142] The page buffer group 123 includes first to nth page buffers PB1 to PBn. The first to nth page buffers PB1 to PBn are connected to the memory cell array 110 through first to nth bit lines BL1 to BLn, respectively. The first to nth bit lines BL1 to BLn operate under the control of the control logic 130. Specifically, the first to nth bit lines BL1 to BLn may operate in response to the page buffer control signal PBSIGNALS. For example, in a read operation or a verification operation, the first to nth page buffers PB1 to PBn may temporarily store data received through the first to nth bit lines BL1 to BLn, or may sense the voltage or current of the bit lines BL1 to BLn.
[0143] Specifically, in a programming operation, when a programming pulse is applied to a selected word line, the first to nth page buffers PB1 to PBn may transmit data DATA received through the input / output circuit 125 to the selected memory cell through the first to nth bit lines BL1 to BLn. The memory cells of the selected page are programmed according to the transmitted data DATA. The memory cells connected to the bit lines to which a programming 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 maintained. In a program verification operation, the first to nth page buffers PB1 to PBn read page data from the selected memory cells through the first to nth bit lines BL1 to BLn.
[0144] In a read operation, the first to nth page buffers PB1 to PBn read data DATA from memory cells of a selected page through the first to nth bit lines BL1 to BLn and output the read data DATA to the data input / output circuit 125 under the control of the column decoder 124 .
[0145] In an erase operation, the first to nth page buffers PB1 to PBn may float the first to nth bit lines BL1 to BLn.
[0146] The column decoder 124 may communicate data between the input / output circuit 125 and the page buffer group 123 in response to the column address CADD. For example, the column decoder 124 may communicate data with the first to nth page buffers PB1 to PBn through data lines DL or with the input / output circuit 125 through column lines CL.
[0147] The input / output circuit 125 can be used to Figure 1 The memory controller 200 described here transfers the received command CMD and address ADDR to the control logic 130 , or exchanges data DATA with the column decoder 124 .
[0148] In a read operation or a verification operation, the sensing circuit 126 may generate a reference current in response to an enable bit VRYBIT signal and output a pass signal or a fail signal PASS / FAIL by comparing a sensing voltage VPB received from the page buffer group 123 with a reference voltage generated by the reference current.
[0149] The control logic 130 may control the peripheral circuit 120 by outputting an operation signal OPSIG, a row address RADD, a page buffer control signal PBSIGNALS, and an enable bit VRYBIT in response to a command CMD and an address ADDR. Also, the control logic 130 may determine whether a verification operation has passed or failed in response to a pass signal or a fail signal PASS / FAIL.
[0150] Fig.13 It is shown Figure 1 A diagram of another embodiment of a memory controller is shown.
[0151] Reference Fig.13 , the memory controller 1000 is coupled to a host and a memory device. The memory controller 1000 may access the memory device in response to a request received from the host.
[0152] 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 .
[0153] The bus 1070 may be configured to provide a channel between components of the memory controller 1000 .
[0154] The processor 1010 may control the overall operation of the memory controller 1000 and 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. Furthermore, 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 using the memory buffer 1020 as a working memory, a cache memory, or a buffer memory.
[0155] The processor 1010 may perform the function of a flash translation layer (FTL). The processor 1010 may randomize data received from a host. For example, the processor 1010 may use a randomization seed to randomize data received from a host. The randomized data is provided to a memory device as data to be stored to be programmed in a memory cell array.
[0156] In a read operation, the processor 1010 may derandomize the data received from the memory device. For example, the processor 1010 may derandomize the data received from the memory device using a derandomization seed. The derandomized data may be output to the host.
[0157] In an embodiment, the processor 1010 may perform randomization and de-randomization by driving software or firmware.
[0158] The memory buffer 1020 may be used as a working memory, a cache memory, or a buffer memory of the processor 1010. The memory buffer 1020 may store codes and commands executed by the processor 1010. The memory buffer 1020 may include a static RAM (SRAM) or a dynamic RAM (DRAM).
[0159] The ECC circuit 1030 may perform an ECC operation. The ECC circuit 1030 may perform ECC encoding on data to be written into 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 ECC decoding on data received from the memory device through the memory interface 1060. In an example, the ECC circuit 1030 may be included in the memory interface 1060 as a component of the memory interface 1060.
[0160] The host interface 1040 may communicate with an external host under the control of the processor 1010. The host interface 1040 may communicate with the host using at least one of various communication methods such as Universal Serial Bus (USB), Serial AT Attachment (SATA), High Speed Inter-Chip (HSIC), Small Computer System Interface (SCSI), FireWire, Peripheral Component Interconnect (PCI), PCI Express (PCIe), Non-Volatile Memory Express (NVMe), Universal Flash Storage (UFS), Secure Digital (SD), Multimedia Card (MMC), Embedded MMC (eMMC), Dual Inline Memory Module (DIMM), Registered DIMM (RDIMM), and Load Reduced DIMM (LRDIMM).
[0161] The buffer control circuit 1050 is configured to control the memory buffer 1020 under the control of the processor 1010 .
[0162] The memory interface 1060 is configured to communicate with the memory device under the control of the processor 1010. The memory interface 1060 may communicate commands, addresses, and data with the memory device through a channel.
[0163] In an example, the memory controller 1000 may not include the memory buffer 1020 and the buffer control circuit 1050 .
[0164] In an example, the processor 1010 may control the operation of the memory controller 1000 by using the code. The processor 1010 may load the code from a nonvolatile memory device (eg, a read only memory (ROM)) provided in the memory controller 1000. In another example, the processor 1010 may load the code from the memory device through the memory interface 1060.
[0165] In an example, the bus 1070 of the memory controller 1000 may be divided into a control bus and a data bus. The data bus may be configured to transmit data in the memory controller 1000, and the control bus may be configured to transmit control information such as commands and addresses in the memory controller 1000. The data bus and the control bus are separated from each other and do not interfere 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.
[0166] Fig.14 is a block diagram illustrating a memory card system to which a storage device including a memory device is applied according to an embodiment of the disclosed technology.
[0167] Reference Fig.14 , the memory card system 2000 includes a memory controller 2100 , a memory device 2200 , and a connector 2300 .
[0168] The memory controller 2100 is connected to the memory device 2200. The memory controller 2100 can access the memory device 2200. The memory controller 2100 can communicate with the reference Figure 1 The described memory controller 200 is implemented identically.
[0169] In an example, the memory controller 2100 may include components such as a random access memory (RAM), a processing unit, a host interface, a memory interface, and an ECC circuit.
[0170] The memory controller 2100 may communicate with an external device through the connector 2300. The memory controller 2100 may communicate with an external device (e.g., a host) according to a specific communication protocol. In an example, 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), PCI Express (PCIe), 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 Storage (UFS), Wi-Fi, Bluetooth, and NVMe.
[0171] In an example, the memory device 2200 may be implemented using various nonvolatile 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 spin transfer torque magnetic RAM (STT-MRAM).
[0172] In an example, the memory controller 2100 or the memory device 2200 may be packaged in a manner such as a stacked package (PoP), a ball grid array (BGA), a chip scale package (CSP), a plastic lead chip carrier (PLCC), a plastic dual in-line package (PDIP), a die in a waffle assembly, a die in wafer form, a chip on board (COB), a ceramic dual in-line package (CERDIP), a plastic metric quad flat package (MQFP), a thin quad flat package (TQFP), a small outline integrated circuit (SOIC), a shrink small outline package (SSOP), a thin small outline package (TSOP), a system-in-package (SIP), a multi-chip package (MCP), a wafer-level manufacturing package (WFP), or a wafer-level processing stack package (WSP). Optionally, the memory device 2200 may include a plurality of nonvolatile memory chips, and the plurality of nonvolatile memory chips may be packaged based on the above packaging manner to be arranged as a single semiconductor package.
[0173] In an example, the memory controller 2100 and the memory device 2200 may be integrated into a single semiconductor device. In an example, the memory controller 2100 and the memory device 2200 may be integrated into a single semiconductor device to constitute a solid state drive (SSD). The memory controller 2100 and the memory device 2200 may be integrated into a single semiconductor device to constitute a memory card. For example, the memory controller 2100 and the memory device 2200 may be integrated into a single semiconductor device to constitute a memory card such as a PC card (Personal Computer Memory Card International Association (PCMCIA)), a Compact Flash (CF) card, a Smart Media Card (SM and SMC), a Memory Stick, a Multimedia Card (MMC, RS-MMC, Micro MMC and eMMC), an SD card (SD, Mini SD, Micro SD and SDHC) and a Universal Flash Memory (UFS).
[0174] In an example, the memory device 2200 may be a reference Figure 1 A memory device 100 is described.
[0175] Fig.15 is a block diagram exemplarily illustrating a solid state drive (SSD) system to which a storage device including a memory device is applied according to an embodiment of the disclosed technology.
[0176] Reference Fig.15 , the SSD system 3000 includes a host 3100 and an SSD 3200. The SSD 3200 exchanges a signal SIG with the host 3100 through a signal connector 3001, and receives power PWR through a power connector 3002. The SSD 3200 includes an SSD controller 3210, a plurality of flash memories 3221 to 322n, an auxiliary power supply 3230, and a buffer memory 3240.
[0177] In an embodiment, the SSD controller 3210 may be used as a reference Figure 1 The memory controller 200 is described.
[0178] 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 example, the signal SIG may be a signal based on an interface between the host 3100 and the SSD 3200. For example, the signal SIG may be a signal defined by at least one of interfaces such as a universal serial bus (USB), a multimedia card (MMC), an embedded MMC (eMMC), a peripheral component interconnect (PCI), PCI Express (PCIe), 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), WI-FI, Bluetooth, and NVMe.
[0179] The auxiliary power supply 3230 is connected to the host 3100 through the power connector 3002. When the power supply from the host 3100 is not stable, the auxiliary power supply 3230 can provide power to the SSD 3200. In an example, the auxiliary power supply 3230 can be located in the SSD 3200, or located outside the SSD 3200. For example, the auxiliary power supply 3230 can be located on the mainboard and provide auxiliary power to the SSD 3200.
[0180] The buffer memory 3240 operates 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 temporarily store metadata (e.g., a mapping table) of the flash memories 3221 to 322n. The buffer memory 3240 may include a volatile memory such as DRAM, SDRAM, DDR SDRAM, LPDDR SDRAM, and GRAM, or a nonvolatile memory such as FRAM, ReRAM, STT-MRAM, and PRAM.
[0181] In an example, the flash memories 3221 to 322n may constitute a reference Figure 1 A memory device 100 is described.
[0182] Fig.16 is a block diagram illustrating a user system to which a storage device including a memory device is applied according to an embodiment of the disclosed technology.
[0183] Reference Fig.16 , the user system 4000 includes an application processor 4100 , a memory module 4200 , a network module 4300 , a storage module 4400 , and a user interface 4500 .
[0184] The application processor 4100 may drive components included in the user system 4000, an operating system (OS), a user program, etc. In an example, 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).
[0185] The memory module 4200 may operate 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 random access memory such as DRAM, SDRAM, DDR SDRAM, DDR2 SDRAM, DDR3 SDRAM, LPDDR SDRAM, LPDDR2 SDRAM, and LPDDR3 SDRAM, or a nonvolatile random access memory such as PRAM, ReRAM, MRAM, and FRAM. In an example, the application processor 4100 and the memory module 4200 may be provided as one semiconductor package by packaging based on a stacked package (PoP).
[0186] The network module 4300 may communicate with an external device. In an example, the network module 4300 may support wireless communications such as code division multiple access (CDMA), global system for mobile communications (GSM), wideband CDMA (WCDMA), CDMA-2000, time division multiple access (TDMA), long term evolution (LTE), Wimax, WLAN, UWB, Bluetooth, and Wi-Fi. In an example, the network module 4300 may be included in the application processor 4100.
[0187] The storage module 4400 may store data. For example, the storage module 4400 may store data received from the application processor 4100. Alternatively, the storage module 4400 may transmit the data stored therein to the application processor 4100. In an example, the storage module 4400 may be implemented using 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 having a three-dimensional structure. In an example, the storage module 4400 may be provided as a removable drive, such as a memory card or an external drive of the user system 4000.
[0188] In an example, the storage module 4400 may include a plurality of nonvolatile memory devices, and the plurality of nonvolatile memory devices may constitute a reference Figure 1 A memory device 100 is described.
[0189] The user interface 4500 may include an interface for inputting data or commands to the application processor 4100 or outputting data to an external device. In an example, the user interface 4500 may include a user input interface such as a keyboard, a keypad, a button, a touch panel, a touch screen, a touch pad, a touch ball, a camera, a microphone, a gyro sensor, a vibration sensor, and a piezoelectric element. The user interface 4500 may include a user output interface such as a liquid crystal display (LCD), an organic light emitting diode (OLED) display device, an active matrix OLED (AMOLED) display device, an LED, a speaker, and a monitor.
[0190] According to the disclosed technology, a memory controller with improved performance and a storage device including the memory controller can be provided.
[0191] Although the disclosed technology has been shown and described with reference to certain exemplary embodiments of the disclosed technology, it will be understood by those skilled in the art that various changes in form and details may be made without departing from the spirit and scope of the disclosed technology as defined by the appended claims and their equivalents. Therefore, the scope of the disclosed technology should not be limited to the above-described exemplary embodiments, but should be determined not only by the appended claims but also by their equivalents.
[0192] In the above-described embodiments, all steps may be selectively performed or some steps may be omitted. In each embodiment, the steps are not necessarily performed in the order described and may be rearranged. The embodiments disclosed in this specification and the accompanying drawings are merely examples to help understand the disclosed technology, and the disclosed technology is not limited thereto. That is, it should be apparent to those skilled in the art that various modifications may be made based on the technical scope of the disclosed technology.
[0193] Meanwhile, exemplary embodiments of the disclosed technology have been described in the drawings and the specification. Although specific terms are used herein, these terms are only used to illustrate the embodiments of the disclosed technology. Therefore, the disclosed technology is not limited to the above-described embodiments, and many modifications can be made within the spirit and scope of the disclosed technology. It should be apparent to those skilled in the art that, in addition to the embodiments disclosed herein, various modifications can also be made based on the technical scope of the disclosed technology.
Claims
1. A memory controller for controlling an operation of a memory device, the memory controller comprising: A first kernel receives a request having a first logical address from a host, and outputting abnormal power state information based on the detected abnormal power state, Outputting first power-off protection information, that is, first PLP information, wherein the first PLP information indicates whether a logical address processing operation of converting the first logical address into a second logical address by the first core is completed; The second core, in response to the abnormal power status information received from the first core, cancels the operation being performed by the memory device, and performs another operation to store mapping information representing a conversion relationship between the physical address of the memory device and the second logical address in the memory device, and in response to the first PLP information indicating that the logical address processing operation is not completed, performs the logical address processing operation.
2. The memory controller of claim 1 , wherein the first core comprises: a logical address processor that performs the logical address processing operation to convert the first logical address into the second logical address, the second logical address having a size different from the size of the first logical address; as well as The first kernel queue stores the request and the second logical address.
3. The memory controller of claim 1 , wherein the first core comprises: a first kernel queue storing a plurality of write requests and corresponding first logical addresses received from the host; as well as A duplicate request checker performs a duplicate request check operation to process a request with an earlier reception time among the requests corresponding to the same first logical address among the corresponding first logical addresses as an invalid request. 4 . The memory controller according to claim 3 , wherein the first core includes a detector that detects the abnormal power state and outputs abnormal power state information in response to detecting the abnormal power state.
5. The memory controller according to claim 4, wherein the first core outputs the first PLP information and also outputs second PLP information, the second PLP information indicating whether the repeated request check operation performed by the first core is completed, and in, The second core performs the duplicate request check operation in response to the second PLP information indicating that the duplicate request check operation is not completed. 6 . The memory controller of claim 5 , wherein the first core performs the logical address processing operation or the duplicate request checking operation. 7 . The memory controller of claim 5 , wherein the first core further comprises a first PLP manager that outputs the first PLP information and the second PLP information to the second core. 8 . The memory controller of claim 1 , wherein the second core comprises an address translator that converts the second logical address into the physical address based on the mapping information.
9. The memory controller of claim 1 , wherein both the first core and the second core are operable to perform the logical address processing operation, wherein when the first core has not completed the logical address processing operation, the second core is operable to perform and complete the logical address processing operation.
10. A memory controller for controlling a memory device, the memory controller comprising: The first core, in response to detecting an abnormal power state, outputs abnormal power state information, performs a first operation or a second operation, and outputs power-off protection information, i.e., PLP information, the PLP information indicating whether the executed first operation or the second operation is completed; as well as the second core, in response to the abnormal power state information received from the first core, canceling an operation being executed by the memory device, and performing another operation to store mapping information indicating a conversion relationship between a physical address of the memory device and a second logical address in the memory device, identifying an uncompleted operation of the executed first operation or the second operation based on the PLP information, and executing the uncompleted operation, The first operation is a logical address processing operation of converting a first logical address into the second logical address, and the second operation is a repeat request checking operation.
11. The memory controller according to claim 10, wherein: The first core includes a duplicate request checker that performs the first operation to process a request having an earlier reception time among requests having the same address among a plurality of requests received from a host as an invalid request based on the reception time of each request.
12. The memory controller of claim 11, wherein the second core cancels an operation being performed by the memory device in response to detecting the abnormal power state. 13 . The memory controller of claim 12 , wherein the first core performs the second operation to convert a first logical address having a request received from the host into a second logical address, a size of the second logical address being different from a size of the first logical address.
14. A storage device comprising: Memory device; as well as Memory controller, including: A first kernel receives a request having a first logical address from a host, and a second kernel, obtaining a physical address of at least one first logical address corresponding to the first logical address, and controlling the memory device to perform an operation corresponding to at least one of the requests in a storage area of the memory device indicated by the physical address; a buffer memory storing data to be stored in or read from the memory device; wherein the first core outputs abnormal power state information in response to detection of an abnormal power state, performs a second power-off protection operation, i.e., a second PLP operation, and outputs PLP information indicating whether the second PLP operation is completed, and wherein, in response to receiving the abnormal power state information, the second core controls the memory device to cancel the operation being executed, and determines whether to execute the second PLP operation according to the PLP information, The second PLP operation is an operation of removing a request with an earlier reception time from repeated requests having the same first logical address, or The second PLP operation is an operation of converting the first logical addresses into second logical addresses respectively. The buffer memory stores metadata indicating a conversion relationship between a physical address of the memory device and the second logical address. 15 . The memory device of claim 14 , wherein the second core performs the second PLP operation in response to the PLP information indicating that the second PLP operation is not completed.
Citation Information
Patent Citations
Method and apparatus including heuristic for sharing TLB entries
US20020144081A1
System and method for managing address mapping information due to abnormal power events
US20130031296A1
Storage device capable of managing jobs without intervention of a processor
US20190004869A1
