Host device, memory controller and computing system including the same
The host device and memory controller system improves data reliability in host memory buffers by managing data storage based on reliability and importance information, and proactively transferring data to non-volatile storage to prevent loss.
Patent Information
- Application Number
- KR1020210120302
- Authority / Receiving Office
- KR · KR
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-09-09
- Publication Date
- 2026-11-11
- Estimated Expiration
- 2041-09-09
AI Technical Summary
Existing systems lack effective methods to improve the reliability of data stored in host memory buffers, particularly in volatile memory devices where data loss can occur due to power interruptions or degradation over time.
A host device and memory controller system that includes a host memory buffer with multiple memory regions, generating reliability and importance information to manage data storage based on these factors, and a memory controller that performs error correction and proactive data transfer to non-volatile storage when data loss is predicted.
Enhances the reliability of data stored in host memory buffers by anticipating and mitigating data loss through strategic storage and error correction, ensuring data integrity and system stability.
Smart Images

Figure 112021104478810-PAT00001_ABST
Abstract
Description
Technology Field
[0001] The present invention relates to an electronic device, and more specifically, the present invention relates to a host device, a memory controller, and a computing system including the same. Background Technology
[0002] A storage device is a device that stores data under the control of a host device, such as a computer or a smartphone. A storage device may include a memory device that stores data and a memory controller that controls the memory device. Memory devices can be classified into volatile memory devices and non-volatile memory devices.
[0003] Volatile memory devices may be memory devices that store data only while power is supplied and lose the stored data when the power supply is cut off. Volatile memory devices may include Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), etc.
[0004] Non-volatile memory devices are memory devices in which data is not lost even when the power is cut off, and include ROM (Read Only Memory; ROM), PROM (Programmable ROM), EPROM (Electrically Programmable ROM), EEPROM (Electrically Erasable and Programmable ROM), and Flash Memory. The problem to be solved
[0005] An embodiment of the present invention provides a host device, a memory controller, and a computing system including the same, which can improve the reliability of data stored in a host memory buffer (HMB). means of solving the problem
[0006] A host device according to an embodiment of the present invention includes a host memory buffer comprising a plurality of memory regions for storing data provided from a storage device, and a host controller that generates reliability information for each of the plurality of memory regions and provides the reliability information to the storage device.
[0007] A memory controller according to an embodiment of the present invention includes a data importance information generating unit that generates data importance information, and a host memory buffer control unit that receives reliability information for each of a plurality of memory regions included in a host memory buffer of the host device from a host device, and stores the data in one of the plurality of memory regions based on the importance information and the reliability information.
[0008] A memory controller according to an embodiment of the present invention includes a host memory buffer control unit that receives data loss prediction information from a host device predicting that data stored in a host memory buffer of the host device will be lost, and requests the data from the host device in response to the data loss prediction information, and a write operation control unit that receives the data from the host device and controls a memory device to store the data.
[0009] A computing system according to an embodiment of the present invention includes a host memory buffer comprising a plurality of memory regions, a host device that generates reliability information for each of the plurality of memory regions, and a storage device that stores data in one of the plurality of memory regions based on the importance information of the data and the reliability information. Effects of the invention
[0010] According to the present invention, a host device, a memory controller, and a computing system including the same are provided, which can improve the reliability of data stored in a host memory buffer. Brief explanation of the drawing
[0011] FIG. 1 is a drawing for explaining a computing system according to one embodiment of the present invention. FIG. 2 is a diagram illustrating the operation between a host device, a host memory buffer, and a memory controller according to an embodiment of the present invention. FIG. 3 is a drawing for explaining reliability information according to one embodiment of the present invention. FIG. 4 is a diagram illustrating the operation between a host device, a host memory buffer, a memory controller, and a memory device according to an embodiment of the present invention. FIG. 5 is a diagram illustrating data loss prediction information according to one embodiment of the present invention. FIG. 6 is a diagram illustrating an example of an operation method of a memory controller according to an embodiment of the present invention. FIG. 7 is a drawing for explaining another example of the operation method of a memory controller according to one embodiment of the present invention. Figure 8 is a drawing for explaining the memory device of Figure 1. FIG. 9 is a circuit diagram showing one of the memory blocks of FIG. 8. Figure 10 is a diagram illustrating another example of the memory controller of Figure 1. FIG. 11 is a block diagram showing a memory card system to which a storage device according to one embodiment of the present invention is applied. FIG. 12 is a block diagram showing a Solid State Drive (SSD) system to which a storage device according to one embodiment of the present invention is applied. FIG. 13 is a block diagram showing a user system to which a storage device according to one embodiment of the present invention is applied. Specific details for implementing the invention
[0012] Specific structural or functional descriptions regarding embodiments according to the concept of the present invention disclosed in this specification or application are provided merely for the purpose of explaining embodiments according to the concept of the present invention, and embodiments according to the concept of the present invention may be implemented in various forms and should not be interpreted as being limited to the embodiments described in this specification or application.
[0014] FIG. 1 is a drawing for explaining a computing system according to an embodiment of the present invention.
[0015] Referring to FIG. 1, the computing system (10) may include a storage device (50) and a host device (300).
[0016] The storage device (50) may include a memory device (100) and a memory controller (200) that controls the operation of the memory device. The storage device (50) may be a device that stores data under the control of a host device (300), such as a mobile phone, smartphone, MP3 player, laptop computer, desktop computer, game console, TV, tablet PC, or in-vehicle infotainment system.
[0017] The storage device (50) can be manufactured as any one of various types of storage devices according to the host interface, which is the method of communication with the host device (300). For example, the storage device (50) can be configured as any one of various types of storage devices such as an SSD, MMC, eMMC, RS-MMC, micro-MMC type multimedia card, SD, mini-SD, micro-SD type secure digital card, USB (universal serial bus) storage device, UFS (universal flash storage) device, PCMCIA (personal computer memory card international association) card type storage device, PCI (peripheral component interconnection) card type storage device, PCI-E (PCI express) card type storage device, CF (compact flash) card, smart media card, memory stick, etc.
[0018] The storage device (50) can be manufactured in any one of various types of package forms. For example, the storage device (50) can be manufactured in any one of various types of package forms such as POP (package on package), SIP (system in package), SOC (system on chip), MCP (multi-chip package), COB (chip on board), WFP (wafer-level fabricated package), WSP (wafer-level stack package), etc.
[0019] The memory device (100) can store data. The memory device (100) operates in response to the control of the memory controller (200). The memory device (100) may include a memory cell array (not shown) comprising a plurality of memory cells that store data.
[0020] Memory cells can be configured as a Single Level Cell (SLC) that stores one data bit, a Multi Level Cell (MLC) that stores two data bits, a Triple Level Cell (TLC) that stores three data bits, or a Quad Level Cell (QLC) that can store four data bits.
[0021] A memory cell array (not shown) may include a plurality of memory blocks. Each memory block may include a plurality of memory cells. A single memory block may include a plurality of pages. In an embodiment, a page may be a unit for storing data in a memory device (100) or reading data stored in a memory device (100). A memory block may be a unit for erasing data.
[0022] In the embodiment, the memory device (100) may be DDR SDRAM (Double Data Rate Synchronous Dynamic Random Access Memory), LPDDR4 (Low Power Double Data Rate 4) SDRAM, GDDR (Graphics Double Data Rate) SDRAM, LPDDR (Low Power DDR), RDRAM (Rambus Dynamic Random Access Memory), NAND flash memory, Vertical NAND flash memory, NOR flash memory, resistive random access memory (RRAM), phase-change random access memory (PRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), spin transfer torque random access memory (STT-RAM), etc. For convenience of explanation, the present specification assumes that the memory device (100) is a NAND flash memory.
[0023] A memory device (100) receives a command (CMD) and an address (ADDR) from a memory controller (200) and is configured to access an area selected by the address among memory cell arrays. The memory device (100) can perform operations instructed by the command (CMD) on the area selected by the address (ADDR). For example, the memory device (100) can perform a write operation (program operation), a read operation, and an erase operation. During a write operation, the memory device (100) will program data in the area selected by the address (ADDR). During a read operation, the memory device (100) will read data from the area selected by the address (ADDR). During an erase operation, the memory device (100) will erase data stored in the area selected by the address (ADDR).
[0024] The memory controller (200) can control the overall operation of the storage device (50).
[0025] When power is applied to the storage device (50), the memory controller (200) can execute firmware (FW). If the memory device (100) is a flash memory device, the firmware (FW) may include a Host Interface Layer (HIL) that controls communication with the host device (300), a Flash Translation Layer (FTL) that controls communication between the host device (300) and the memory device (100), and a Flash Interface Layer (FIL) that controls communication with the memory device (100).
[0026] In an embodiment, the memory controller (200) receives data and a logical block address (LBA) from a host device (300) and can convert the logical block address into a physical block address (PBA) representing the addresses of memory cells to which data included in the memory device (100) will be stored. In this specification, the logical block address (LBA) and “logical address” or “logical address” may be used interchangeably. In this specification, the physical block address (PBA) and “physical address” or “physical address” may be used interchangeably.
[0027] The memory controller (200) can control the memory device (100) to perform write operations, read operations, or erase operations, etc., according to a request from the host device (300). When performing a write operation, the memory controller (200) can provide a write command, a physical block address, and data to the memory device (100). When performing a read operation, the memory controller (200) can provide a read command and a physical block address to the memory device (100). When performing an erase operation, the memory controller (200) can provide an erase command and a physical block address to the memory device (100).
[0028] In one embodiment, the memory controller (200) may be connected to the memory device (100) through a channel. For example, the memory controller (200) may control the memory device (100) to perform write operations, read operations, or erase operations by providing commands and addresses to the memory device (100) through the channel.
[0029] In an embodiment, the memory controller (200) can independently generate commands, addresses, and data and transmit them to the memory device (100) regardless of a request from the host device (300). For example, the memory controller (200) can provide commands, addresses, and data to the memory device (100) for performing read and write operations associated with performing wear leveling, read reclaim, garbage collection, etc.
[0030] In an embodiment, the memory controller (200) can control at least two memory devices (100). In this case, the memory controller (200) can control the memory devices (100) according to an interleaving method to improve operational performance. The interleaving method may be a method of controlling the operation of at least two memory devices (100) so that it overlaps.
[0031] The host device (300) can communicate with the storage device (50) using at least one of various communication methods such as USB (Universal Serial Bus), SATA (Serial AT Attachment), SAS (Serial Attached SCSI), HSIC (High Speed Interchip), SCSI (Small Computer System Interface), PCI (Peripheral Component Interconnection), PCIe (PCI express), NVMe (NonVolatile Memory express), UFS (Universal Flash Storage), SD (Secure Digital), MMC (MultiMedia Card), eMMC (embedded MMC), DIMM (Dual In-line Memory Module), RDIMM (Registered DIMM), LRDIMM (Load Reduced DIMM).
[0032] In one embodiment, the host device (300) may include a host controller (310) and a host memory (320).
[0033] The host controller (310) can run applications, an operating system (OS), etc., for controlling the computing system (10). For example, the host controller (310) may include controllers, interfaces, a graphics engine, etc., for running applications, an operating system, etc. As an example, the host controller (310) may include any one of a CPU (Central processing unit), a GPU (Graphic processing unit), a SoC (System on chip), or an AP (Application processor).
[0034] In one embodiment, the host controller (310) can provide information related to the host memory buffer (321) to the memory controller (200).
[0035] The host memory (320) can perform data input and output with the host controller (310). The host memory (320) can operate as the main memory, operation memory, buffer memory, or cache memory of the host device (300). The host memory (320) may include volatile memory such as DRAM or SRAM.
[0036] In one embodiment, the host memory (320) may include a host memory buffer (321) and a host memory buffer information storage unit (322).
[0037] The host memory buffer (321) may be an area in the host memory (320) that the storage device (50) can access. The host controller (310) may set the host memory buffer address, host memory buffer size, etc., that the storage device (50) can access. In this case, the storage device (50) may read data from the memory device (100) and store it in the host memory buffer (321). Additionally, the storage device (50) may read from the host memory buffer (321) when a reference to the data is required. Additionally, if the value of the data is updated, the storage device (50) may update the data stored in the host memory buffer (321). Additionally, the storage device (50) may flush the data stored in the host memory buffer (321) to the memory device (100).
[0038] In one embodiment, the host memory buffer (321) may include a plurality of memory regions. The address and size of each of the plurality of memory regions may be set by the host controller (310).
[0039] The host memory buffer information storage unit (322) can store information related to the host memory buffer (321). The information related to the host memory buffer (321) may include the host memory buffer address, the host memory buffer size, reliability information for each of the multiple memory regions, data loss prediction information, etc. The data loss prediction information may be information predicting that data loss will occur in the host memory buffer (321).
[0040] In one embodiment, the host controller (310) may generate reliability information for each of the plurality of memory regions based on at least one of the information related to the durability of the memory regions. In one embodiment, the information related to the durability of the memory regions may include the number of program / erase cycles for each of the plurality of memory regions, the number of errors that occurred during the error correction operation of the data included in each of the plurality of memory regions, etc. The number of program / erase cycles may indicate the number of times a program operation and an erase operation have been performed. The error correction operation may be an operation that detects an error in the data using parity data corresponding to the data and corrects the detected error.
[0041] For example, the host controller (310) may determine that the reliability of the memory area is lower as the number of program / erase cycles of the memory area increases. Conversely, the host controller (310) may determine that the reliability of the memory area is higher as the number of program / erase cycles of the memory area decreases.
[0042] Additionally, the host controller (310) may determine that the reliability of the memory area is lower as the number of errors occurring during the error correction operation of the data included in the memory area increases. Conversely, the host controller (310) may determine that the reliability of the memory area is higher as the number of errors occurring during the error correction operation of the data included in the memory area decreases.
[0043] Meanwhile, the host controller (310) can generate reliability information for the memory area by comprehensively considering the above-mentioned program / erase count, the number of errors that occurred during error correction operations, etc.
[0044] In one embodiment, the host controller (310) may generate data loss prediction information based on at least one of the information related to the durability of the host memory (320). The information related to the durability of the host memory (320) may include temperature information of the host memory (320), the number of program / erase cycles of the host memory (320), the number of errors that occurred during an error correction operation of the data contained in the host memory buffer (321), etc.
[0045] For example, the host controller (310) may determine that data stored in the host memory buffer (321) will be lost if the temperature of the host memory (320) exceeds a preset threshold. Additionally, the host controller (310) may determine that data stored in the host memory buffer (321) will be lost if the number of program / erase operations of the host memory (320) exceeds a preset threshold. The number of program / erase operations of the host memory (320) may include not only the number of program and erase operations performed in memory regions included in the host memory buffer (321), but also the number of program and erase operations performed in other regions of the host memory (320). Additionally, the host controller (310) may determine that data stored in the host memory buffer (321) will be lost if the number of errors that occurred during the error correction operation of the data included in the host memory buffer (321) exceeds a preset threshold.
[0046] Meanwhile, the host controller (310) can generate data loss prediction information by comprehensively considering the temperature information, the number of program / erase cycles, and the number of errors that occurred during error correction operations.
[0047] In one embodiment, the memory controller (200) may include a data importance information generation unit (210), a host memory buffer control unit (220), a write operation control unit (230), and an error correction unit (240).
[0048] The data importance information generation unit (210) can determine the importance of the data and generate data importance information.
[0049] In one embodiment, the data importance information generation unit (210) may generate importance information based on at least one of the information related to the importance of data. At this time, the information related to the importance of data may include whether normal operation of the storage device (50) is possible depending on data corruption, whether the performance of the storage device (50) is affected depending on data corruption, and whether data recovery is possible after data corruption. The data importance information generation unit (210) may generate importance information by comprehensively considering the information related to the importance of data.
[0050] For example, the data importance information generation unit (210) can determine the importance of the data to be high if normal operation of the storage device (50) is impossible due to data damage. Conversely, the data importance information generation unit (210) can determine the importance of the data to be low if normal operation of the storage device (50) is possible even if data damage occurs.
[0051] Additionally, the data importance information generation unit (210) may determine the importance of the data to be high if the performance of the storage device (50) is affected by data damage. In this case, the higher the impact on the performance of the storage device (50) due to data damage, the higher the importance of the data may be. The performance of the storage device (50) may include the operating speed of the storage device (50), the temperature of the storage device (50), etc. Alternatively, the data importance information generation unit (210) may determine the importance of the data to be low if the performance of the storage device (50) is not affected even if data damage occurs.
[0052] Additionally, the data importance information generation unit (210) can determine the importance of the data to be high if the data cannot be recovered after it is damaged. Conversely, the data importance information generation unit (210) can determine the importance of the data to be low if the data can be recovered after it is damaged.
[0053] In one embodiment, the importance information of the data may include one of a plurality of importance grades classified based on the result of comparing the importance of a plurality of data.
[0054] The host memory buffer control unit (220) can perform operations to access the host memory buffer (321). For example, the host memory buffer control unit (220) can perform operations such as reading data from the memory device (100) and storing it in the host memory buffer (321), or reading data from the host memory buffer (321). Additionally, the host memory buffer control unit (220) can perform operations such as updating the data stored in the host memory buffer (321) when the value of the data is updated, or flushing the data stored in the host memory buffer (321) to the memory device (100).
[0055] In one embodiment, the host memory buffer control unit (220) may receive reliability information for each of the multiple memory regions included in the host memory buffer (321) from the host device (300). The host memory buffer control unit (220) may store data in any one of the multiple memory regions based on the importance information of the data and the reliability information for each of the multiple memory regions. In this case, the higher the importance of the data, the higher the reliability of the memory region where the data is stored. Conversely, the lower the importance of the data, the lower the reliability of the memory region where the data is stored. For example, the host memory buffer control unit (220) may store the data in a memory region with relatively higher reliability among the multiple memory regions as the importance of the data is higher. Additionally, the host memory buffer control unit (220) may store the data in a memory region with relatively lower reliability among the multiple memory regions as the importance of the data is lower.
[0056] Accordingly, according to an embodiment of the present invention, by storing data based on the reliability of each memory area of the host memory buffer (321), the reliability of the data stored in the host memory buffer (321) can be improved.
[0057] Additionally, in one embodiment, the host memory buffer control unit (220) may receive the size of each of the multiple memory regions included in the host memory buffer (321) from the host device (300). The host memory buffer control unit (220) may store data in any one of the multiple memory regions based on the importance information of the host data and the size of each of the multiple memory regions. For example, the larger the impact of the data on the performance of the storage device (50), the larger the size of the memory region where the data is stored. Conversely, the smaller the impact of the data on the performance of the storage device (50), the smaller the size of the memory region where the data is stored. For example, the host memory buffer control unit (220) may store data that has a high impact on the performance of the storage device (50) in a memory region with a relatively large size among the multiple memory regions. Additionally, the host memory buffer control unit (220) may store data that has a low impact on the performance of the storage device (50) in a memory region with a relatively small size among the multiple memory regions.
[0058] The write operation control unit (230) can control the write operation of storing data in the memory device (100).
[0059] In one embodiment, the host memory buffer control unit (220) may receive data loss prediction information from the host device (300). The host memory buffer control unit (220) may request data stored in the host memory buffer (321) from the host device (300) in response to the data loss prediction information. The write operation control unit (230) may receive data according to the request from the host device (300) and control the memory device (100) to store the received data.
[0060] In one embodiment, the data requested by the host device (300) may be the data with the highest importance among the data stored in each of the plurality of memory regions included in the host memory buffer (321). For example, the host memory buffer control unit (220) may request the data with the highest importance from the host device (300). The write operation control unit (230) may receive the data with the highest importance from the host device (300) and control the memory device (100) to store the data with the highest importance.
[0061] The error correction unit (240) can perform an error correction operation on the data.
[0062] In one embodiment, after receiving data loss prediction information from the host device (300), when data stored in the host memory buffer (321) is received from the host device (300), the error correction unit (240) can perform an error correction operation on the received data. For example, the host memory buffer control unit (220) can request data stored in the host memory buffer (321) from the host device (300) in response to the data loss prediction information. When data stored in the host memory buffer (321) is received from the host device (300), the error correction unit (240) corrects the error in the received data, and the write operation control unit (230) can control the memory device (100) to store the data with the error corrected.
[0063] Accordingly, according to an embodiment of the present invention, by storing data stored in a host memory buffer (321) in a memory device (100) in response to data loss prediction information, the situation in which data loss will occur can be predicted in advance and the data stored in the host memory buffer (321) can be preserved.
[0065] FIG. 2 is a diagram illustrating the operation between a host device, a host memory buffer, and a memory controller according to an embodiment of the present invention.
[0066] Referring to FIG. 2, in step S201, the host device (300) can recognize the storage device (50). For example, the host device (300) can transmit an identifier to the memory controller (200) to check whether the storage device (50) can use the host memory buffer (321).
[0067] In step S203, the memory controller (200) may request reliability information for each of the multiple memory regions included in the host memory buffer (321) from the host device (300). For example, the memory controller (200) may request information related to the host memory buffer (321) while notifying the host device (300) whether the host memory buffer (321) is in use. In one embodiment, the information related to the host memory buffer (321) may include the host memory buffer address, the host memory buffer size, reliability information for each of the multiple memory regions, data loss prediction information, etc.
[0068] In step S205, the host device (300) can provide reliability information for each of the multiple memory regions to the memory controller (200). For example, the host device (300) can provide information related to the host memory buffer (321) to the memory controller (200) through a Set Feature command.
[0069] In step S207, the memory controller (200) can store data in the host memory buffer (321) based on the importance information of the data and the reliability information of each of the multiple memory regions. For example, the memory controller (200) can store data in any one of the multiple memory regions based on the importance information of the data and the reliability information of each of the multiple memory regions. In this case, the higher the importance of the data, the higher the reliability of the memory region where the data is stored. Conversely, the lower the importance of the data, the lower the reliability of the memory region where the data is stored.
[0071] FIG. 3 is a drawing for explaining reliability information according to one embodiment of the present invention.
[0072] Referring to FIG. 3, when the feature identifier of the set feature command is 0Dh, the set feature command may include information about the host memory buffer (321). In one embodiment, the host device (300) may provide reliability information (RT) to the memory controller (200) through the set feature command.
[0073] For example, the reliability information field may be included in the X position of the set feature command. In this case, the X position may be included in any one of the multiple regions included in the set feature command. In this case, the multiple regions may include Command Dword 11, Command Dword 12, Command Dword 13, Command Dword 14, Command Dword 15, Host Memory Descriptor List, Host Memory Buffer Descriptor Entry, Completion Queue Entry Dword 0, Attributes Data Structure, etc. The reliability information field includes 0 to N bits, and from '0' to '2 N It can have a value. The reliability information may include one of a reliability grade among a plurality of reliability grades classified based on the result of comparing the reliability of each of the plurality of memory regions. For example, the reliability information is '0' to '2 N It may include any one of multiple reliability grades composed of '. The closer the reliability grade is to '0', the lower the reliability of the memory area may be. In contrast, if the reliability grade is '2 N The closer it is to ', the higher the reliability of the memory area can be.
[0075] FIG. 4 is a diagram illustrating the operation between a host device, a host memory buffer, a memory controller, and a memory device according to an embodiment of the present invention.
[0076] Referring to FIG. 4, in step S401, the host device (300) can provide data loss prediction information to the memory controller (200). In one embodiment, the host device (300) can provide data loss prediction information to the memory controller (200) through a set feature command.
[0077] In step S403, the memory controller (200) may request data stored in the host memory buffer (321) in response to data loss prediction information. In one embodiment, the memory controller (200) may request the data with the highest importance among the data stored in the host memory buffer (321).
[0078] In step S405, the host device (300) can provide data stored in the host memory buffer (321) to the memory controller (200) in response to the request.
[0079] In step S407, the memory controller (200) can perform an error correction operation on the data received from the host device (300).
[0080] In step S409, the memory controller (200) can store the error-corrected data in the memory device (100).
[0082] FIG. 5 is a diagram illustrating data loss prediction information according to one embodiment of the present invention.
[0083] Referring to FIG. 5, when the feature identifier of the set feature command is 0Dh, the set feature command may include information about the host memory buffer (321). In one embodiment, the host device (300) may provide data loss prediction information (Data Loss, DT) to the memory controller (200) through the set feature command.
[0084] For example, the field of data loss prediction information may be included in the Y position of the set feature command. In this case, the Y position may be included in any one of the multiple regions included in the set feature command. In this case, the multiple regions may include Command Dword 11, Command Dword 12, Command Dword 13, Command Dword 14, Command Dword 15, Host Memory Descriptor List, Host Memory Buffer Descriptor Entry, Completion Queue Entry Dword 0, Attributes Data Structure, etc. The field of data loss prediction information includes 0 to N bits, and from '0' to '2 N It may have a value. In one embodiment, if the data loss prediction information includes '0', the data loss prediction information may include information that data loss is not predicted. Alternatively, if the data loss prediction information includes '1', the data loss prediction information may include information that data loss is predicted.
[0086] FIG. 6 is a diagram illustrating an example of an operation method of a memory controller according to an embodiment of the present invention.
[0087] The method illustrated in FIG. 6 can be performed, for example, by the memory controller (200) illustrated in FIG. 1.
[0088] Referring to FIG. 6, in step S601, the memory controller (200) can generate data importance information.
[0089] In step S603, the memory controller (200) can receive reliability information for each of the multiple memory regions included in the host memory buffer (321) from the host device (300). For example, the memory controller (200) can receive reliability information for each of the multiple memory regions through a set feature command.
[0090] In step S605, the memory controller (200) may store data in one of the multiple memory regions based on the importance information of the data and the reliability information of each of the multiple memory regions. At this time, the higher the importance of the data, the higher the reliability of the memory region where the data is stored. Conversely, the lower the importance of the data, the lower the reliability of the memory region where the data is stored.
[0092] FIG. 7 is a drawing for explaining another example of the operation method of a memory controller according to one embodiment of the present invention.
[0093] The method illustrated in FIG. 7 can be performed, for example, by the memory controller (200) illustrated in FIG. 1.
[0094] Referring to FIG. 7, in step S701, the memory controller (200) can receive data loss prediction information from the host device (300). For example, the memory controller (200) can receive data loss prediction information through a set feature command.
[0095] In step S703, the memory controller (200) may request data stored in the host memory buffer (321) from the host device (300) in response to data loss prediction information. At this time, the data requested from the host device (300) may be the data with the highest importance among the data stored in the host memory buffer (321).
[0096] In step S705, the memory controller (200) can receive data from the host device (300).
[0097] In step S707, the memory controller (200) can perform an error correction operation on the data received from the host device (300).
[0098] In step S709, the memory controller (200) can store the error-corrected data in the memory device (100).
[0100] Figure 8 is a drawing for explaining the memory device of Figure 1.
[0101] Referring to FIG. 8, the memory device (100) may include a memory cell array (110), a voltage generation unit (120), an address decoder (130), an input / output circuit (140), and a control logic (150).
[0102] A memory cell array (110) includes a plurality of memory blocks (BLK1 to BLKi). The plurality of memory blocks (BLK1 to BLKi) are connected to an address decoder (130) via row lines (RL). The plurality of memory blocks (BLK1 to BLKi) may be connected to an input / output circuit (140) via column lines (CL). In an embodiment, the row lines (RL) may include word lines, source select lines, and drain select lines. In an embodiment, the column lines (CL) may include bit lines.
[0103] Each of the plurality of memory blocks (BLK1~BLKi) includes a plurality of memory cells. In an embodiment, the plurality of memory cells may be non-volatile memory cells. Among the plurality of memory cells, memory cells connected to the same word line may be defined as a single physical page. That is, the memory cell array (110) may include a plurality of physical pages. The memory cells of the memory device (100) may each be configured as a Single Level Cell (SLC) that stores one data bit, a Multi Level Cell (MLC) that stores two data bits, a Triple Level Cell (TLC) that stores three data bits, or a Quad Level Cell (QLC) that can store four data bits.
[0104] In the embodiment, the voltage generation unit (120), the address decoder (130), and the input / output circuit (140) may be collectively referred to as a peripheral circuit. The peripheral circuit can drive the memory cell array (110) under the control of the control logic (150). The peripheral circuit can drive the memory cell array (110) to perform write operations, read operations, and erase operations.
[0105] The voltage generation unit (120) is configured to generate a plurality of operating voltages (Vop) using an external power supply voltage supplied to the memory device (100). The voltage generation unit (120) operates in response to the control of the control logic (150).
[0106] As an example, the voltage generating unit (120) can generate an internal power supply voltage by regulating an external power supply voltage. The internal power supply voltage generated by the voltage generating unit (120) is used as the operating voltage of the memory device (100).
[0107] As an example, the voltage generation unit (120) can generate a plurality of operating voltages using an external power supply voltage or an internal power supply voltage. The voltage generation unit (120) can be configured to generate various voltages required by the memory device (100). For example, the voltage generation unit (120) can generate a plurality of erase voltages, a plurality of program voltages, a plurality of pass voltages, a plurality of select read voltages, and a plurality of non-select read voltages.
[0108] The voltage generation unit (120) includes a plurality of pumping capacitors that receive an internal power supply voltage to generate a plurality of operating voltages having various voltage levels, and will generate a plurality of operating voltages by selectively activating the plurality of pumping capacitors in response to the control of the control logic (150).
[0109] The generated multiple operating voltages can be supplied to the memory cell array (110) by the address decoder (130).
[0110] The address decoder (130) is connected to the memory cell array (110) via row lines (RL). The address decoder (130) is configured to operate in response to the control of the control logic (150). The address decoder (130) can receive an address (ADDR) from the control logic (150). The address decoder (130) can decode a block address among the received address (ADDR). The address decoder (130) selects at least one memory block among the memory blocks (BLK1 to BLKi) according to the decoded block address. The address decoder (130) can decode a row address among the received address (ADDR). The address decoder (130) can select at least one word line among the word lines of the selected memory block according to the decoded row address. In an embodiment, the address decoder (130) can decode the column address among the received addresses (ADDR). The address decoder (130) can connect the input / output circuit (140) and the memory cell array (110) according to the decoded column address.
[0111] According to an embodiment of the present invention, during a read operation, the address decoder (130) may apply a read voltage to a selected word line and apply a read pass voltage of a higher level than the read voltage to non-selected word lines.
[0112] For example, the address decoder (130) may include components such as a row decoder, a column decoder, an address buffer, etc.
[0113] The input / output circuit (140) may include a plurality of page buffers. The plurality of page buffers may be connected to a memory cell array (110) via bit lines. During a write operation, data may be stored in selected memory cells according to the data stored in the plurality of page buffers.
[0114] During a read operation, data stored in selected memory cells is sensed through bitlines, and the sensed data can be stored in page buffers.
[0115] The control logic (150) can control the address decoder (130), the voltage generator (120), and the input / output circuit (140). The control logic (150) can operate in response to a command (CMD) transmitted from an external device. The control logic (150) can control peripheral circuits by generating various signals in response to the command (CMD) and address (ADDR).
[0117] FIG. 9 is a circuit diagram showing one of the memory blocks of FIG. 8.
[0118] Memory block (BLKi) represents any one of the memory blocks (BLK1~BLKi) of FIG. 8.
[0119] Referring to FIG. 9, a plurality of word lines arranged parallel to each other may be connected between a first select line and a second select line. Here, the first select line may be a source select line (SSL), and the second select line may be a drain select line (DSL). More specifically, a memory block (BLKi) may include a plurality of strings (ST) connected between bit lines (BL1~BLn) and a source line (SL). Bit lines (BL1~BLn) may each be connected to strings (ST), and the source line (SL) may be connected to strings (ST) in common. Since strings (ST) may be configured identically, a string (ST) connected to the first bit line (BL1) will be described specifically as an example.
[0120] A string (ST) may include a source select transistor (SST), a plurality of memory cells (MC1 to MC16), and a drain select transistor (DST) connected in series between a source line (SL) and a first bit line (BL1). A single string (ST) may include at least one source select transistor (SST) and one drain select transistor (DST), and may also include more memory cells (MC1 to MC16) than the number shown in the drawing.
[0121] The source of the source select transistor (SST) can be connected to the source line (SL), and the drain of the drain select transistor (DST) can be connected to the first bit line (BL1). Memory cells (MC1~MC16) can be connected in series between the source select transistor (SST) and the drain select transistor (DST). The gates of the source select transistors (SST) included in different strings (ST) can be connected to the source select line (SSL), the gates of the drain select transistors (DST) can be connected to the drain select line (DSL), and the gates of the memory cells (MC1~MC16) can be connected to multiple word lines (WL1~WL16). Among the memory cells included in different strings (ST), a group of memory cells connected to the same word line can be called a physical page (PG). Accordingly, the memory block (BLKi) may contain as many physical pages (PG) as there are word lines (WL1~WL16).
[0122] A single memory cell can store 1 bit of data. This is commonly referred to as a single-level cell (SLC). In this case, a single physical page (PG) can store data for a single logical page (LPG). A single logical page (LPG) of data can contain as many data bits as the number of cells contained in a single physical page (PG).
[0123] A single memory cell can store 2 bits or more of data. In this case, a single physical page (PG) can store 2 or more logical pages (LPG) of data.
[0125] Figure 10 is a diagram illustrating another example of the memory controller of Figure 1.
[0126] The description of the memory controller (200) in Fig. 1 can be applied in the same way to the memory controller (1000) in Fig. 10.
[0127] Referring to FIGS. 1 and FIGS. 10, the memory controller (1000) may include a processor (1010), RAM (1020), an error correction circuit (1030), ROM (1040), a host interface (1050), and a flash interface (1060).
[0128] The processor (1010) can control the general operations of the memory controller (1000). In one embodiment, the data importance information generation unit (210), the host memory buffer control unit (220), and the write operation control unit (230) of FIG. 1 may be implemented as a component of the processor (1010). Accordingly, the processor (1010) can perform the same operations of the data importance information generation unit (210), the host memory buffer control unit (220), and the write operation control unit (230) as described with reference to FIG. 1.
[0129] RAM (1020) can be used as buffer memory, cache memory, operation memory, etc. of the memory controller (1000).
[0130] The error correction circuit (1030) can perform error correction. The error correction circuit (1030) can perform error correction encoding (ECC encoding) based on data to be written to the memory device (100) through the flash interface (1060). The error correction encoded data can be transmitted to the memory device (100) through the flash interface (1060). The error correction circuit (1030) can perform error correction decoding (ECC decoding) on data received from the memory device (100) through the flash interface (1060). For example, the error correction circuit (1030) can be included in the flash interface (1060) as a component of the flash interface (1060). In one embodiment, the error correction unit (240) of FIG. 1 can be implemented as a component of the error correction circuit (1030). Accordingly, the processor (1010) can perform the same operations of the error correction unit (240) described with reference to FIG. 1.
[0131] The ROM (1040) can store various information required for the memory controller (1000) to operate in the form of firmware.
[0132] The memory controller (1000) can communicate with an external device (e.g., a host device (300), an application processor, etc.) through a host interface (1050).
[0133] The memory controller (1000) can communicate with the memory device (100) through the flash interface (1060). The memory controller (1000) can transmit commands, addresses, and control signals, etc., to the memory device (100) and receive data through the flash interface (1060). For example, the flash interface (1060) may include a NAND interface.
[0135] FIG. 11 is a block diagram showing a memory card system to which a storage device according to one embodiment of the present invention is applied.
[0136] Referring to FIG. 11, the memory card system (2000) includes a memory controller (2100), a memory device (2200), and a connector (2300).
[0137] The memory controller (2100) is connected to the memory device (2200). The memory controller (2100) is configured to access the memory device (2200). For example, the memory controller (2100) may be configured to control the read, write, erase, and background operations of the memory device (2200). The memory controller (2100) is configured to provide an interface between the memory device (2200) and a host. The memory controller (2100) is configured to run firmware for controlling the memory device (2200). The memory controller (2100) may be implemented in the same way as the memory controller (200) described with reference to FIG. 1. The memory device (2200) may be implemented in the same way as the memory device (100) described with reference to FIG. 1.
[0138] For example, the memory controller (2100) may include components such as RAM (Random Access Memory), a processing unit, a host interface, a memory interface, and an error correction unit.
[0139] The memory controller (2100) can communicate with an external device through a connector (2300). The memory controller (2100) can communicate with an external device (e.g., a host) according to a specific communication standard. For example, the memory controller (2100) is configured to communicate with an external device through at least one of various communication standards such as USB (Universal Serial Bus), MMC (multimedia card), eMMC (embedded MMC), PCI (peripheral component interconnection), PCI-E (PCI-express), ATA (Advanced Technology Attachment), Serial-ATA, Parallel-ATA, SCSI (small computer system interface), ESDI (enhanced small disk interface), IDE (Integrated Drive Electronics), Firewire, UFS (Universal Flash Storage), WIFI, Bluetooth, NVMe, etc. For example, the connector (2300) may be defined by at least one of the various communication standards described above.
[0140] For example, the memory device (2200) may be composed of various non-volatile memory devices such as EEPROM (Electrically Erasable and Programmable ROM), NAND flash memory, NOR flash memory, PRAM (Phase-change RAM), ReRAM (Resistive RAM), FRAM (Ferroelectric RAM), STT-MRAM (Spin Transfer Torque-Magnetic RAM), etc.
[0141] The memory controller (2100) and the memory device (2200) can be integrated into a single semiconductor device to form a memory card. For example, the memory controller (2100) and the memory device (2200) can be integrated into a single semiconductor device to form a memory card such as a PC card (PCMCIA, Personal Computer Memory Card International Association), Compact Flash card (CF), Smart Media card (SM, SMC), Memory Stick, Multimedia card (MMC, RS-MMC, MMCmicro, eMMC), SD card (SD, miniSD, microSD, SDHC), Universal Flash Storage (UFS), etc.
[0143] FIG. 12 is a block diagram showing a Solid State Drive (SSD) system to which a storage device according to one embodiment of the present invention is applied.
[0144] Referring to FIG. 12, the SSD system (3000) includes a host (3100) and an SSD (3200). The SSD (3200) transmits and receives signals with the host (3100) through a signal connector (3001) and receives power 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).
[0145] According to an embodiment of the present invention, the SSD controller (3210) can perform the function of the memory controller (200) described with reference to FIG. 1.
[0146] The SSD controller (3210) can control a plurality of flash memories (3221 to 322n) in response to a signal received from the host (3100). For example, the signal may be a signal based on an interface between the host (3100) and the SSD (3200). For example, the signal may be a signal defined by at least one of interfaces such as USB (Universal Serial Bus), MMC (multimedia card), eMMC (embedded MMC), PCI (peripheral component interconnection), PCI-E (PCI-express), ATA (Advanced Technology Attachment), Serial-ATA, Parallel-ATA, SCSI (small computer system interface), ESDI (enhanced small disk interface), IDE (Integrated Drive Electronics), Firewire, UFS (Universal Flash Storage), WIFI, Bluetooth, NVMe, etc.
[0147] The auxiliary power unit (3230) is connected to the host (3100) via a power connector (3002). The auxiliary power unit (3230) receives power from the host (3100) and can charge. The auxiliary power unit (3230) can provide power to the SSD (3200) when power supply from the host (3100) is not smooth. For example, the auxiliary power unit (3230) may be located inside the SSD (3200) or outside the SSD (3200). For example, the auxiliary power unit (3230) may be located on the main board and provide auxiliary power to the SSD (3200).
[0148] 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 a plurality of flash memories (3221 to 322n), or may temporarily store metadata (e.g., mapping tables) of the flash memories (3221 to 322n). The buffer memory (3240) may include volatile memory such as DRAM, SDRAM, DDR SDRAM, LPDDR SDRAM, GRAM, etc., or non-volatile memory such as FRAM, ReRAM, STT-MRAM, PRAM, etc.
[0150] FIG. 13 is a block diagram showing a user system to which a storage device according to one embodiment of the present invention is applied.
[0151] Referring to FIG. 13, 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).
[0152] The application processor (4100) can run components included in the user system (4000), an operating system (OS), or user programs, etc. For example, the application processor (4100) may include controllers, interfaces, graphics engines, etc. that control components included in the user system (4000). The application processor (4100) may be provided as a system-on-chip (SoC).
[0153] The memory module (4200) can operate as the main memory, operational memory, buffer memory, or cache memory of the user system (4000). The memory module (4200) may include volatile random access memory such as DRAM, SDRAM, DDR SDRAM, DDR2 SDRAM, DDR3 SDRAM, LPDDR SDRAM, LPDDR2 SDRAM, LPDDR3 SDRAM, etc. or non-volatile random access memory such as PRAM, ReRAM, MRAM, FRAM, etc. For example, the application processor (4100) and the memory module (4200) may be packaged based on POP (Package on Package) and provided as a single semiconductor package.
[0154] The network module (4300) can communicate with external devices. For example, the network module (4300) can support wireless communication such as CDMA (Code Division Multiple Access), GSM (Global System for Mobile communication), WCDMA (wideband CDMA), CDMA-2000, TDMA (Time Division Multiple Access), LTE (Long Term Evolution), WiMAX, WLAN, UWB, Bluetooth, Wi-Fi, etc. For example, the network module (4300) can be included in the application processor (4100).
[0155] The storage module (4400) can store data. For example, the storage module (4400) can store data received from the application processor (4100). Alternatively, the storage module (4400) can transfer data stored in the storage module (4400) to the application processor (4100). For example, the storage module (4400) can be implemented as a non-volatile semiconductor memory device such as PRAM (Phase-change RAM), MRAM (Magnetic RAM), RRAM (Resistive RAM), NAND flash, NOR flash, or a three-dimensional NAND flash. For example, the storage module (4400) can be provided as a removable storage medium such as a memory card or an external drive of the user system (4000).
[0156] For example, the storage module (4400) may include a plurality of non-volatile memory devices, and the plurality of non-volatile memory devices may operate in the same manner as the memory device (100) described with reference to FIG. 1. The storage module (4400) may operate in the same manner as the storage device (50) described with reference to FIG. 1.
[0157] The user interface (4500) may include interfaces for inputting data or commands to the application processor (4100) or outputting data to an external device. For example, the user interface (4500) may include user input interfaces such as a keyboard, keypad, button, touch panel, touch screen, touchpad, touch ball, camera, microphone, gyroscope sensor, vibration sensor, piezoelectric element, etc. The user interface (4500) may include user output interfaces such as an LCD (Liquid Crystal Display), OLED (Organic Light Emitting Diode) display, AMOLED (Active Matrix OLED) display, LED, speaker, monitor, etc. Explanation of the symbols
[0159] 10: Computing Systems 50: Storage device 100: Memory device 200: Memory controller 210: Data Importance Information Generation Unit 220: Host memory buffer controller 230: Write operation control unit 240: Error Correction Department 300: Host device 310: Host controller 320: Host memory 321: Host memory buffer 322: Host memory buffer information storage unit
Claims
Claim 1 A host device comprising: a host memory buffer (HMB) including a plurality of memory regions for storing data provided from a storage device; and a host controller that generates reliability information for each of the plurality of memory regions included in the host memory buffer and provides the reliability information to the storage device. Claim 2 A host device according to claim 1, wherein the reliability information comprises one of a reliability grade among a plurality of reliability grades classified based on the result of comparing the reliability of each of the plurality of memory regions. Claim 3 In claim 1, the host controller is a host device that generates reliability information based on at least one of the program / erase count of each of the plurality of memory regions and the number of errors that occurred during an error correction operation of the data included in each of the plurality of memory regions. Claim 4 In claim 1, the host controller generates data loss prediction information predicting that data loss will occur in the host memory buffer, and provides the data loss prediction information to the storage device. Claim 5 In claim 4, the host controller is a host device that generates data loss prediction information based on at least one of temperature information of a host memory including the host memory buffer, the number of program / erase cycles of the host memory, and the number of errors that occurred during an error correction operation of data included in the host memory buffer. Claim 6 In claim 4, the host controller is a host device that provides the reliability information to the storage device through a Set Feature command. Claim 7 A memory controller comprising: a data importance information generating unit that generates data importance information; and a host memory buffer control unit that receives reliability information for each of a plurality of memory regions included in a host memory buffer (HMB) of the host device from a host device, and stores the data in one of the plurality of memory regions based on the importance information and the reliability information. Claim 8 In claim 7, the data importance information generating unit is a memory controller that generates importance information based on at least one of whether normal operation of a storage device including the memory controller is possible depending on the data corruption, whether the performance of the storage device is affected depending on the data corruption, and whether the data can be recovered after the data corruption. Claim 9 In claim 7, the reliability information comprises a memory controller including one of a reliability grade among a plurality of reliability grades classified based on the result of comparing the reliability of each of the plurality of memory regions. Claim 10 In claim 7, the reliability information is a memory controller generated based on at least one of the program / erase count of each of the plurality of memory regions and the number of errors that occurred during the error correction operation of the data included in each of the plurality of memory regions. Claim 11 In claim 7, the host memory buffer control unit is a memory controller that stores the data in a memory area with higher reliability among the plurality of memory areas as the importance of the data increases. Claim 12 A memory controller comprising: a host memory buffer control unit that receives data loss prediction information from a host device predicting that data loss will occur in the host memory buffer (HMB) of the host device, and requests the data from the host device in response to the data loss prediction information; and a write operation control unit that receives the data from the host device and controls the memory device to store the data. Claim 13 In claim 12, the data loss prediction information is a memory controller generated based on at least one of the temperature information of a host memory including the host memory buffer, the number of program / erase cycles of the host memory, and the number of errors that occurred during an error correction operation of the data included in the host memory buffer. Claim 14 A memory controller according to claim 12, further comprising an error correction unit that detects an error included in the data and corrects the error when the data is received from the host device. Claim 15 In claim 14, the write operation control unit is a memory controller that controls the memory device to store the error-corrected data. Claim 16 In claim 12, the data requested by the host is a memory controller that is the most important data among the data stored in each of the plurality of memory regions included in the host memory buffer. Claim 17 A computing system comprising: a host device including a host memory buffer (HMB) including a plurality of memory regions and generating reliability information for each of the plurality of memory regions; and a storage device that stores the data in one of the plurality of memory regions based on the importance information of the data and the reliability information. Claim 18 A computing system according to claim 17, wherein the host device generates reliability information based on at least one of the program / erase count of each of the plurality of memory regions and the number of errors that occur during an error correction operation of data included in each of the plurality of memory regions, and provides the reliability information to the storage device through a set feature command. Claim 19 In claim 17, the storage device is a computing system that generates importance information based on at least one of whether normal operation of the storage device is possible due to data corruption, whether the performance of the storage device is affected due to data corruption, and whether the data can be recovered after data corruption. Claim 20 In claim 17, the storage device is a computing system that stores the data in a memory region with higher reliability among the plurality of memory regions as the importance of the data increases. Claim 21 In claim 17, the host device is a computing system that provides data loss prediction information, which predicts that data loss will occur in the host memory buffer, to the storage device via a set feature command. Claim 22 In claim 21, the host device is a computing system that generates data loss prediction information based on at least one of temperature information of a host memory including the host memory buffer, the number of program / erase cycles of the host memory, and the number of errors that occurred during an error correction operation of data included in the host memory buffer. Claim 23 In claim 21, the storage device is a computing system that, in response to the data loss prediction information, requests the data with the highest importance among the data stored in the host memory buffer from the host device, receives the data with the highest importance from the host device, and controls the memory device to store the data with the highest importance. Claim 24 In claim 21, the storage device is a computing system that, after receiving the data loss prediction information, detects an error in the data received from the host device and corrects the error when receiving data stored in the host memory buffer from the host device.
Citation Information
Patent Citations
Data storage device using host memory and method of operating same
US20180039578A1
Storage devices, data storage systems and methods of operating storage devices
US20200142630A1
