Allocation mode for expandable storage areas
Through the bitmap list managed by the bitmap and counter, the association between the virtual page address and the physical address in the memory device is realized, which solves the problem of change log storage size and low update efficiency, and improves the access efficiency.
Patent Information
- Application Number
- CN202010855076.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-08-23
- Filing Date
- 2020-08-24
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2040-08-24
AI Technical Summary
Existing memory devices have problems with storage size control and low update efficiency when managing change logs, especially during the mapping process between virtual page addresses and physical addresses, resulting in access delays and high memory occupancy.
A bitmap, a list linked to the bitmap, and a counter of verified bits in the bitmap are used to control the storage size of the change log in the storage device, and through the page pointer table bitmap, virtual page bitmap, page pointer table list, and virtual page list Realize the correlation between virtual page address and physical address to simplify the update process of change log.
It effectively reduces the storage area occupancy of the change log, improves access efficiency, avoids complex search and sorting algorithms, and achieves rapid update and access of virtual page addresses.
Smart Images

Figure CN112416809B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to memory devices. Background Art
[0002] Memory devices are typically provided as internal semiconductor integrated circuits in computers or other electronic devices. There are many different types of memory, including volatile and non-volatile memory. Volatile memory requires power to maintain its data, and examples of volatile memory include random access memory (RAM), dynamic random access memory (DRAM), and synchronous dynamic random access memory (SDRAM), among others. Non-volatile memory can retain stored data when not powered, and examples of non-volatile memory include flash memory, read-only memory (ROM), electrically erasable programmable ROM (EEPROM), erasable programmable ROM (EPROM), resistance variable memory such as phase change random access memory (PCRAM), resistive random access memory (RRAM), magnetoresistive random access memory (MRAM), and three-dimensional (3D) XPoint TM Memory, etc.
[0003] Flash memory is used as non-volatile memory for a wide range of electronic applications. Flash memory devices typically include one or more groups of single transistor, floating gate, or charge trap memory cells that allow high memory density, high reliability, and low power consumption. Two common types of flash memory array architectures include NAND and NOR architectures, which are named after the logical form in which the basic memory cell configuration of each is arranged. The memory cells of a memory array are typically arranged in a matrix. In an example, the gate of each floating gate memory cell in a row of the array is coupled to an access line (e.g., a word line). In a NOR architecture, the drain of each memory cell in a column of the array is coupled to a data line (e.g., a bit line). In a NAND architecture, the memory cells in a string of the array are coupled together in series in a source-to-drain manner between a source line and a bit line.
[0004] Both NOR and NAND architecture semiconductor memory arrays are accessed through a decoder that activates a particular memory cell by selecting a word line coupled to the gate of the particular memory cell. In a NOR architecture semiconductor memory array, once activated, the selected memory cell places its data value on the bit line, causing different currents to flow depending on the state of the particular cell being programmed. In a NAND architecture semiconductor memory array, a high bias voltage is applied to the drain side select gate (SGD) line. The word line coupled to the gates of the unselected memory cells of each group is driven with a specified pass voltage (e.g., Vpass) to cause the unselected memory cells of each group to operate as pass transistors (e.g., pass current in a manner that is not limited by the data values they store). Current then flows from the source line through each series-coupled group to the bit line, limited only by the selected memory cell in each group, causing the currently encoded data value of the selected memory cell to be placed on the bit line.
[0005] Each flash memory cell in a NOR or NAND architecture semiconductor memory array can be programmed to one or more programmed states individually or collectively. For example, a single-level cell (SLC) can represent one of two programmed states (e.g., 1 or 0), representing one data bit. However, a flash memory cell can also represent one of more than two programmed states, thereby allowing the manufacture of higher density memories without increasing the number of memory cells because each cell can represent more than one binary digit (e.g., more than one bit). Such cells may be referred to as multi-state memory cells, majority bit cells, or multi-level cells (multi-level cells, MLCs). In some instances, an MLC may refer to a memory cell that can store two data bits per cell (e.g., one of four programmed states), a triple-level cell (triple-level cell, TLC) may refer to a memory cell that can store three data bits per cell (e.g., one of eight programmed states), and a quad-level cell (quad-level cell, QLC) may store four data bits per cell. Unless explicit language or context indicates otherwise, MLC is used herein in its broader context and may refer to any memory cell that can store more than one bit of data per cell (ie, can represent more than two programmed states).
[0006] Conventional memory arrays are two-dimensional (2D) structures arranged on the surface of a semiconductor substrate. In order to increase memory capacity and reduce cost for a given area, the size of individual memory cells has been reduced. However, there are technical limitations to the reduction in size of individual memory cells, and therefore there are technical limitations to the memory density of 2D memory arrays. In response, three-dimensional (3D) memory structures, such as 3D NAND architecture semiconductor memory devices, are being developed to further increase memory density and reduce memory cost.
[0007] These 3D NAND devices often include strings of memory cells that are coupled in series (e.g., drain to source) between one or more source-side select gates (SGS) proximate to the source and one or more drain-side select gates (SGD) proximate to the bit lines. In an example, the SGS or SGD may include one or more field effect transistors (FETs) or metal-oxide semiconductor (MOS) structure devices, etc. In some examples, the string will extend vertically through multiple vertically spaced levels containing corresponding word lines. A semiconductor structure (e.g., a polysilicon structure) may extend adjacent to the string of memory cells to form a channel for the memory cells of the string. In the example of a vertical string, the polysilicon structure may be in the form of a vertically extending pillar. In some examples, the string may be "folded" and therefore arranged relative to the U-shaped pillar. In other examples, multiple vertical structures may be stacked on top of each other to form a stacked array of memory cell strings.
[0008] Memory arrays or devices may be combined together to form the storage capacity of a memory system, such as a solid state drive (SSD), universal flash storage (UFS), or a TM ) devices, Multimedia Card (MMC) solid-state storage devices, embedded MMC devices (eMMC TM ), etc. SSDs are particularly useful as primary storage devices for computers, having advantages over traditional hard disk drives with moving parts with respect to, for example, performance, size, weight, ruggedness, operating temperature range, and power consumption. For example, an SSD may have reduced seek times, latency, or other delays (e.g., electromechanical, etc.) associated with magnetic disk drives. An SSD uses non-volatile memory cells, such as flash memory cells, to avoid internal battery power requirements, thereby allowing the drive to be more versatile and compact.
[0009] An SSD may include several memory devices, including several dies or logical units (e.g., logical unit numbers or LUNs), and may include one or more processors or other controllers that perform the logic functions required to operate the memory devices or interface with external systems. These SSDs may include one or more flash memory dies that include several memory arrays and peripheral circuitry on these dies. The flash memory array may include several blocks of memory cells organized into several physical pages. In many instances, the SSD will also include DRAM or SRAM (or other forms of memory dies or other memory structures). The SSD may receive commands from a host in conjunction with memory operations, such as read or write operations to transfer data (e.g., user data and associated integrity data, such as error data and address data, etc.) between the memory device and the host, or erase operations to erase data from the memory device.
[0010] In a system having a managed memory device operable with several host devices, access to memory locations is achieved using addresses provided by the host for the host device to read from and write to the memory device. These addresses may be provided by the host as logical block addresses (LBAs), where the host does not track the physical addresses of the memory locations to be accessed. The managed memory device includes a tool for converting the LBAs from the host to the physical addresses at which data is stored in the memory device. The memory device may be a NAND memory device. This pair of information, i.e., the LBA and the corresponding physical address, may be stored as an element within a change log. In order to always ensure correct logical to physical (L2P) conversion, a device conversion unit (DTU) may search the change log for the latest update information about the requested LBA. The conventional structure of the change log is arranged to contain the history of each tracked LBA, which may cause delays when accessing the change log. However, a method for quickly accessing the requested information may be based on an ordered change log, which means that each update has additional work. In addition, the sorting and access times depend on the DTU algorithm implemented, but regardless of the DTU algorithm used, the access is proportional to the change log size. Summary of the invention
[0011] On the one hand, the present application relates to a method, comprising: using a bitmap, a list linked to the bitmap, and a counter of confirmed bits in the bitmap to control the storage size of a change log in a storage device, wherein the change log is implemented to correlate virtual page addresses with physical addresses in the memory device; and updating the change log using the bitmap, the list, and the counter of confirmed bits in the bitmap.
[0012] On the other hand, the present application relates to a system, comprising: a memory device; and a memory device storing a change log, wherein an identifier of a virtual page address is an entry point for determining a physical address in the memory device, the change log being implemented to correlate the virtual page address in the memory device with the physical address, the change log comprising: a page pointer table bitmap for identifying a storage state of a page pointer table in the change log; a virtual page bitmap for each page pointer table indexed in the page pointer table bitmap, each virtual page bitmap being arranged to identify a storage state of a virtual page address in the change log using an index of the virtual page address; a page pointer table list stored in the change log, the list being linked to the page pointer table bitmap; and a virtual page list for each page pointer table in the page pointer table list, each virtual page list identifying a virtual page address stored in the change log, the virtual page list being linked to the virtual page bitmap.
[0013] On the other hand, the present application relates to a system, comprising: firmware storing instructions, the instructions being executable by a processing device to: control the storage size of a change log in a storage device using a bitmap, a list linked to the bitmap, and a counter of confirmed bits in the bitmap, the change log being implemented to correlate virtual page addresses with physical addresses in the memory device; and updating the change log using the bitmap, the list, and the counter of confirmed bits in the bitmap.
[0014] On the other hand, the present application relates to a system, comprising: a log that associates virtual page addresses of a memory device with physical addresses of the memory device, the log comprising: a first position associated with multiple indexes of corresponding virtual page addresses, the first position containing an identifier of the state of the corresponding virtual page address in the log; and a second position for identifying the state of a page pointer table in the log, each second position being capable of being associated with a corresponding set of the multiple indexes; and one or more counters for counting the number of the second positions containing identifiers of page pointer tables associated with corresponding second positions stored in the log, and counting the number of indexes in the set associated with the corresponding second positions. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The drawings, which are not necessarily drawn to scale, generally illustrate various embodiments discussed in this document by way of example and not by way of limitation.
[0016] Figure 1 An example of an environment including a memory device according to various embodiments is shown.
[0017] Figure 2 and 3 Schematic diagram showing an example of a three-dimensional NAND architecture semiconductor memory array according to various embodiments.
[0018] Figure 4 An example block diagram of a memory module is shown in accordance with various embodiments.
[0019] Figure 5 is a block diagram illustrating an example of a machine upon which one or more embodiments may be implemented, according to various embodiments.
[0020] Figure 6 is an illustration of the allocation of change log areas evolving from fixed geometry to variable geometry based on actual memory occupancy, according to various embodiments.
[0021] Figure 7 is a flow chart of an example procedure for accessing a change log for writing at a virtual page address in accordance with various embodiments.
[0022] Figure 8 is an illustration of example operations for efficiently adding a virtual page address to a change log data structure in accordance with various embodiments.
[0023] Fig. 9 is an illustration of an example bitmap and linked list associated with a virtual table, which may represent a table having elements relating virtual page address elements to a page pointer table, according to various embodiments.
[0024] Figures 10A-10D An example of implementing a change log indexing scheme that can reduce the storage area used for the change log is shown according to various embodiments.
[0025] Fig.11 is a block diagram of an embodiment of an example system including a host operating with a memory system having a plurality of memory devices and a storage device, wherein a change log is constructed in the storage device in an allocation pattern for an expandable storage region in the storage device, the change log being implemented to correlate virtual page addresses with physical addresses in one or more of the memory devices, in accordance with various embodiments.
[0026] Fig.12 is a flow diagram of features of an example method of operating a change log implemented to correlate virtual page addresses with physical addresses in a memory device in accordance with various embodiments.
[0027] Fig.13 is a flow diagram of features of an example method of updating a change log in a storage device implemented to correlate virtual page addresses with physical addresses in the memory device in accordance with various embodiments.
[0028] Fig.14is a block diagram of an example system having a log that correlates virtual page addresses of one or more memory devices with physical addresses of the one or more memory devices in accordance with various embodiments. DETAILED DESCRIPTION
[0029] The following detailed description refers to the accompanying drawings, which show various embodiments in which the invention can be implemented by way of illustration and not limitation. These embodiments are described in sufficient detail to enable those skilled in the art to practice these and other embodiments. Other embodiments may be used, and structural, logical, mechanical and electrical changes may be made to these embodiments. The various embodiments are not necessarily mutually exclusive, as some embodiments may be combined with one or more other embodiments to form new embodiments. Therefore, the following detailed description should not be considered restrictive.
[0030] In various embodiments, an allocation pattern for an expandable storage area for storing an L2P change log is provided. In a firmware (FW) architecture based on a change log, the change log may contain the latest L2P value. For a NAND memory system, the change log may be updated during a write operation, while the L2P table is updated and refreshed to NAND only when one of the different events occurs (for example, when the change log becomes full). The change log becoming full triggers an update of the L2P table. During a read operation, the L2P value will be searched in the change log, and if the L2P value that is the object of the search is found to be missing in the change log, the L2P table can be loaded and a search can be performed in the L2P table.
[0031] This allocation pattern may cover the LBAs of the entire managed device with a reduced storage area. The storage area used to store the change log can be a RAM storage area, where, in a conventional arrangement, the storage area stores all the history of the LBAs written. As taught herein, the change log can be implemented to relate the virtual page addresses of the memory device to the physical addresses, where the ordering in the change log can be handled without applying algorithms such as the DTU algorithm. The virtual page address can be implemented as an LBA. Herein, the virtual page address is named VP. In such a change log, there is no need to track the LBA situation because the latest useful updates are stored, which can avoid duplication. In addition, the change log can be structured to relate the virtual page address to the physical address, without the need to store a pair of information such as a logical address and a physical address in a given memory device (e.g., a NAND device).
[0032] The change log can be viewed as an indexable data structure where a logical address is an entry point to the physical address of the data storage location in the memory device associated with the change log. This elimination of the need to store pairs of information reduces the memory used to store each VP element. When approaching the change log, as taught herein, rather than searching for a VP element in the change log, its presence and location can be verified almost immediately, where the number of steps to reach the desired change log element is deterministic and predictable.
[0033] In various embodiments, the difference between a change log based FW architecture and an architecture without a change log includes the following features: During a write operation, the L2P table does not need to be loaded in RAM, but only the change log is updated. Instead of loading the L2P table to be updated, the new L2P value is temporarily saved to the change log resident in RAM. This allows to avoid constantly swapping in / out the L2P table from RAM in random write scenarios. All updated L2P values can be collected in the change log, and when the change log becomes full, all L2P tables to be updated can be loaded and merged with the change log updates.
[0034] Electronic devices such as mobile electronic devices (e.g., smart phones, tablet computers, etc.), electronic devices for automotive applications (e.g., automotive sensors, control units, driver assistance systems, passenger safety or comfort systems, etc.), and Internet-connected electrical equipment or devices (e.g., Internet of Things (IoT) devices, etc.) have varying storage needs depending, inter alia, on the type of electronic device, usage environment, performance expectations, etc.
[0035] An electronic device can be broken down into several major components: a processor (e.g., a central processing unit (CPU) or another host processor); a memory (e.g., one or more volatile or non-volatile random access memory (RAM) memory devices, such as dynamic RAM (DRAM), mobile or low-power double data rate synchronous DRAM (DDR SDRAM), etc.); and a storage device (e.g., a non-volatile memory (NVM) device, such as flash memory, read-only memory (ROM), SSD, MMC, or another memory card structure or assembly, etc.). In some examples, the electronic device may include a user interface (e.g., a display, a touch screen, a keyboard, one or more buttons, etc.), a graphics processing unit (GPU), a power management circuit, a baseband processor, or one or more transceiver circuits, etc.
[0036] Figure 1An example of an environment 100 is shown that includes a host device 105 and a memory device 110 configured to communicate via a communication interface. The host device 105 or the memory device 110 may be included in a variety of products 150, such as Internet of Things (IoT) devices (e.g., refrigerators or other appliances, sensors, motors or actuators, mobile communication devices, cars, drones, etc.) to support processing, communication, or control of the product 150.
[0037] Memory device 110 includes memory processing device 115 and memory array 120, including, for example, several individual memory dies (e.g., a stack of three-dimensional (3D) NAND dies). In 3D architecture semiconductor memory technology, vertical structures are stacked, thereby increasing the number of levels, physical pages, and thus increasing the density of memory devices (e.g., storage devices). In an example, memory device 110 can be a discrete memory or storage device component of host device 105. In other examples, memory device 110 can be part of an integrated circuit (e.g., a system on a chip (SoC), etc.) stacked or otherwise included with one or more other components of host device 105.
[0038] One or more communication interfaces may be used to transfer data between the memory device 110 and one or more other components of the host device 105, such as a Serial Advanced Technology Attachment (SATA) interface, a Peripheral Component Interconnect Express (PCIe) interface, a Universal Serial Bus (USB) interface, a Universal Flash Storage (UFS) interface, an eMMC interface, or a USB interface. TM interface, or one or more other connectors or interfaces. Host device 105 may include a host system, an electronic device, a processor, a memory card reader, or one or more other electronic devices external to memory device 110. In some examples, host device 105 may be a Figure 5 The machine 500 may include some or all of the components discussed above.
[0039] The memory processing device 115 may receive instructions from the host 105 and may communicate with the memory array 120 to transfer data to (e.g., write or erase) or transfer data from (e.g., read) one or more of the memory cells, planes, sub-blocks, blocks, or pages of the memory array 120. The memory processing device 115 may include circuitry or firmware, including one or more components or integrated circuits, among others. For example, the memory processing device 115 may include one or more memory control units, circuits, or components configured to control access across the memory array 120 and provide a translation layer between the host device 105 and the memory device 110. The memory processing device 115 may include one or more input / output (I / O) circuits, lines, or interfaces for transferring data to or from the memory array 120. The memory processing device 115 may include a memory manager 125 and an array controller 135.
[0040] The memory manager 125 may include, among other things, circuitry or firmware, such as several components or integrated circuits associated with various memory management functions. For purposes of this description, example memory operation and management functions will be described in the context of NAND memory. One of ordinary skill in the art will recognize that other forms of non-volatile memory may have similar memory operation or management functions. Such NAND management functions include wear leveling (e.g., garbage collection or reclamation), error detection or correction, block retirement, or one or more other memory management functions. The memory manager 125 may parse or format host commands (e.g., commands received from a host) into device commands (e.g., commands associated with operation of a memory array, etc.), or generate device commands to the array controller 135 or one or more other components of the memory device 110 (e.g., for implementing various memory management functions).
[0041] The memory manager 125 may include a set of management tables 130 configured to maintain various information associated with one or more components of the memory device 110 (e.g., various information associated with a memory array or one or more memory cells coupled to the memory processing device 115). For example, the management table 130 may include information about a block age, a block erase count, an error history, or one or more error counts (e.g., a write operation error count, a read bit error count, a read operation error count, an erase error count, etc.) of one or more memory cell blocks coupled to the memory processing device 115. In certain examples, a bit error may be referred to as an uncorrectable bit error if the number of errors in the one or more error counts detected is above a threshold. The management table 130 may, among other things, maintain counts of correctable or uncorrectable bit errors.
[0042] The array controller 135 may include, among other things, circuitry or components configured to control memory operations associated with writing data to, reading data from, or erasing one or more memory cells of the memory device 110 coupled to the memory processing device 115. The memory operations may be based on, for example, host commands received from the host device 105, or generated internally by the memory manager 125 (e.g., in conjunction with wear leveling, error detection or correction, etc.).
[0043] The array controller 135 may include an error correction code (ECC) component 140, which may include, among other things, an ECC engine or other circuitry configured to detect or correct errors associated with writing data to or reading data from one or more memory cells of a memory device 110 coupled to the memory processing device 115. The memory processing device 115 may be configured to actively detect and recover from the occurrence of errors (e.g., bit errors, operational errors, etc.) associated with various operations or storage of data while maintaining the integrity of data transferred between the host device 105 and the memory device 110 or maintaining the integrity of stored data (e.g., using redundant RAID storage, etc.), and may remove (e.g., write off) failed memory resources (e.g., memory cells, memory arrays, pages, blocks, etc.) to prevent future errors from occurring.
[0044] The memory array 120 may include a number of memory cells arranged in, for example, a number of devices, planes, sub-blocks, blocks, or pages. As an example, a 48GB TLC NAND memory device may include 18,592 bytes (B) of data per page (16,384+2208 bytes), 1536 pages per block, 548 blocks per plane, and 4 or more planes per device. As another example, a 32GB MLC memory device (storing two bits of data per cell (i.e., 4 programmable states)) may include 18,592 bytes (B) of data per page (16,384+2208 bytes), 1024 pages per block, 548 blocks per plane, and 4 planes per device, but with half the write time and twice the program / erase (P / E) cycles as a corresponding TLC memory device. Other examples may include other numbers or arrangements. In some examples, a memory device or portion thereof may selectively operate in SLC mode or in a desired MLC mode (e.g., TLC, QLC, etc.).
[0045] In operation, data is typically written to or read from the NAND memory device 110 in pages and erased in blocks. However, one or more memory operations (e.g., read, write, erase, etc.) may be performed on larger or smaller groups of memory cells as desired. The data transfer size of the NAND memory device 110 is typically referred to as a page, while the data transfer size of the host is typically referred to as a sector.
[0046] Although a data page may include several bytes of user data (e.g., a data payload including several data sectors) and its corresponding metadata, the size of a page often refers only to the number of bytes used to store the user data. As an example, a data page with a page size of 4KB may include 4KB of user data (e.g., 8 sectors assuming a sector size of 512B) and metadata corresponding to several bytes of user data (e.g., 32B, 54B, 224B, etc.), such as integrity data (e.g., error detection or correction code data), address data (e.g., logical address data, etc.), or other metadata associated with the user data.
[0047] Different types of memory cells or memory arrays 120 may provide different page sizes, or may use different amounts of metadata associated therewith. For example, different memory device types may have different bit error rates, which may result in different amounts of metadata being required to ensure the integrity of a page of data (e.g., a memory device with a higher bit error rate may require more bytes of error correction code data than a memory device with a lower bit error rate). As an example, a multi-level cell (MLC) NAND flash device may have a higher bit error rate than a corresponding single-level cell (SLC) NAND flash device. Thus, an MLC device may use more bytes of metadata for error data than a corresponding SLC device.
[0048] Figure 2 A plurality of memory cell strings (eg, first to third A0 memory strings 205A0-207A0, first to third A0 memory strings 205A0-207A0, n Memory string 205A n -207A n , first to third B0 memory string 205B0-207B0, first to third B n Memory string 205B n -207B n 201A, block B, etc.) and sub-blocks (e.g., sub-block A0 201A0, sub-block A1 201B, etc.). n 201A n , sub-block B0201B0, sub-block B n 201Bn Memory array 200 represents a portion of a larger number of similar structures that would typically be found in a block, device, or other unit of a memory device.
[0049] Each memory cell string includes several levels of charge storage transistors (e.g., floating gate transistors, charge trapping structures, etc.) stacked in a source-to-drain manner in the Z direction on a source line (SRC) 235 or a source-side select gate (SGS) (e.g., first to third A0 SGS 231A0-233A0, first to third A1 SGS 231A0-233A0, first to third A2 SGS 231A0-233A0, first to third A3 SGS 231A0-233A0, first to third A4 SGS 231A0-233A0, first to third A5 SGS 231A0-233A0, first to third A6 SGS 231A0-233A0, first to third A7 SGS 231A0-233A0, first to third A8 SGS 231A0-233A0, n SGS 231A n -233A n , 1st to 3rd B0 SGS 231B0-233B0, 1st to 3rd B n SGS 231B n -233B n etc.) and the drain side select gate (SGD) (eg, the first to third A0 SGD 226A0-228A0, the first to third A n SGD 226A n -228A n , 1st to 3rd B0 SGD 226B0-228B0, 1st to 3rd B n SGD 226B n -228B n Each memory cell string in the 3D memory array may be arranged as a data line (eg, bit lines (BL) BL0-BL2 220-222) along the X direction and as a physical page along the Y direction.
[0050] Within a physical page, each level represents a row of memory cells, and each string of memory cells represents a column. A sub-block may include one or more physical pages. A block may include a number of sub-blocks (or physical pages) (e.g., 128, 256, 384, etc.). Although shown herein as having two blocks, each block having two sub-blocks, each sub-block having a single physical page, each physical page having three strings of memory cells, and each string having 8 levels of memory cells, in other examples, the memory array 200 may include more or fewer blocks, sub-blocks, physical pages, strings of memory cells, memory cells, or levels. For example, each string of memory cells may include more or fewer levels (e.g., 16, 32, 64, 128, etc.) as desired, as well as one or more additional levels of semiconductor material above or below the charge storage transistors (e.g., select gates, data lines, etc.). As an example, a 48GB TLC NAND memory device may include 18,592 bytes (B) of data per page (16,384 + 2208 bytes), 1536 pages per block, 548 blocks per plane, and 4 or more planes per device.
[0051] Each memory cell in the memory array 200 includes a control gate (CG) coupled to (e.g., electrically or otherwise operatively connected to) an access line (e.g., word lines (WL) WL00-WL70 210A-217A, WL01-WL71 210B-217B, etc.) that couples the control gate (CG) in common across a particular level or portion of a level as desired. A particular level in the 3D memory array, and therefore a particular memory cell in a string, may be accessed or controlled using a corresponding access line. Groups of select gates may be accessed using various select lines. For example, the first through third A0SGD lines SGDA0 225A0 may be accessed, A0SGD lines SGDA0 226A0-228A0 may be accessed, A1SGD lines SGDA0 227A0-228A0 may be accessed, A2SGD lines SGDA0 229A0-230A0 may be accessed, A3SGD lines SGDA0 228A0-231A0 may be accessed, A4SGD lines SGDA0 229A0-232A0 may be accessed, A5SGD lines SGDA0 229A0-233A0 may be accessed, A6SGD lines SGDA0 221A0-222A0 may be accessed, A7SGD lines SGDA0 223A0-224A0 may be accessed, A8SGD lines SGDA0 224A0-225A0 may be accessed, A9SGD lines SGDA0 225A0-226A0-228A0 may be accessed, A1SGD lines SGDA0 226A0-228A0 may be accessed, A1SGD lines SGDA0 226A0-228A0 may be accessed, A1 n SGD LineSGDA n 225A n Access 1st to 3rd A n SGD 226A n -228A n , the first to third B0 SGDs 226B0-228B0 can be accessed using the B0 SGD line SGDB0 225B0, and the B n SGD LineSGDB n 225B n Access 1st to 3rd B n SGD 226B n -228B n The first to third A0 SGS231A0-233A0 and the first to third A0 SGS231A0-233A0 can be accessed using the gate selection line SGS0 230A. n SGS 231An -233A n , and the first to third B0 SGS 231B0-233B0 and the first to third B0 SGS 231B0-233B0 can be accessed using the gate selection line SGS1 230B n SGS 231B n -233B n .
[0052] In an example, the memory array 200 may include several levels of semiconductor material (e.g., polysilicon, etc.) configured to couple a control gate (CG) or select gate (or a portion of a CG or select gate) of each memory cell of a corresponding level of the array. A particular string of memory cells in the array may be accessed, selected, or controlled using a combination of a bit line (BL) and a select gate, etc., and a particular memory cell at one or more levels in a particular string may be accessed, selected, or controlled using one or more access lines (e.g., word lines).
[0053] Figure 3 An example schematic diagram of a portion of a NAND architecture semiconductor memory array 300 is shown, the array including a plurality of memory cells 302 arranged in a two-dimensional array of strings (e.g., first through third strings 305-307) and levels (e.g., shown as respective word lines (WL) WL0-WL7 310-317, drain side select gate (SGD) lines 325, source side select gate (SGS) lines 330, etc.), and a sense amplifier or device 360. For example, the memory array 300 may show, for example, Figure 2 An example schematic diagram of a portion of a physical page of memory cells of a 3D NAND architecture semiconductor memory device is shown in FIG.
[0054] Each memory cell string is coupled to a source line (SRC) 335 using a respective source side select gate (SGS) (e.g., first to third SGS 331-333) and is coupled to a respective data line (e.g., first to third bit lines (BL) BL0-BL2 320-322) using a respective drain side select gate (SGD) (e.g., first to third SGD 326-328). Figure 3 310-317) and three data lines (BL0-BL2 326-328), but other examples may include memory cell strings with more or fewer levels or data lines as desired.
[0055] In a NAND architecture semiconductor memory array such as the example memory array 300, the state of a selected memory cell 302 may be accessed by sensing a current or voltage change associated with a particular data line containing the selected memory cell 302. The memory array 300 may be accessed using one or more drivers (e.g., by control circuitry, one or more processors, digital logic, etc.). In an example, the one or more drivers may activate a particular memory cell or set of memory cells by driving a particular potential to one or more data lines (e.g., bit lines BL0-BL2), access lines (e.g., word lines WL0-WL7), or select gates, depending on the type of desired operation to be performed on the particular memory cell or set of memory cells.
[0056] To program or write data to the memory cell 302, a programming voltage (Vpgm) (e.g., one or more programming pulses, etc.) may be applied to a selected word line (e.g., WL4), and thus to the control gate of each memory cell 302 coupled to the selected word line (e.g., the first to third control gates (CG) 341-343 of the memory cells coupled to WL4). The programming pulses may start, for example, at or near 15V, and in certain examples, may increase in magnitude during each programming pulse application. While the programming voltage is applied to the selected word line, a potential, such as a ground potential (e.g., Vss), may be applied to the data line (e.g., bit line) and substrate (and thus the channel between the source and drain) of the memory cell targeted for programming, resulting in charge transfer (e.g., direct injection or Fowler-Nordheim (FN) tunneling, etc.) from the channel to the floating gate of the target memory cell.
[0057] In contrast, a pass voltage Vpass may be applied to one or more word lines having memory cells that are not targeted for programming, or an inhibit voltage (e.g., Vcc) may be applied to data lines (e.g., bit lines) having memory cells that are not targeted for programming, for example, to inhibit charge from being transferred from the channel to the floating gates of these non-target memory cells. The pass voltage may vary, for example, depending on the proximity of the applied pass voltage to the word lines targeted for programming. The inhibit voltage may include a supply voltage (Vcc) relative to a ground potential (e.g., Vss), such as a voltage from an external source or supply (e.g., a battery, an AC / DC converter, etc.).
[0058] As an example, if a programming voltage (e.g., 15V or higher) is applied to a particular word line, such as WL4, a pass voltage of 10V may be applied to one or more other word lines, such as WL3, WL5, etc., to inhibit programming of non-target memory cells, or to maintain the values stored on these memory cells that are not targeted for programming. As the distance between the applied programming voltage and the non-target memory cells increases, the pass voltage used to inhibit programming of the non-target memory cells may decrease. For example, where a programming voltage of 15V is applied to WL4, a pass voltage of 10V may be applied to WL3 and WL5, a pass voltage of 8V may be applied to WL2 and WL6, a pass voltage of 7V may be applied to WL1 and WL7, etc. In other examples, the pass voltage or number of word lines, etc. may be higher or lower, or more or less.
[0059] A sensing device 360 coupled to one or more of the data lines (eg, first, second, or third bit lines (BL0-BL2) 320-322) can detect the state of each memory cell in the corresponding data line by sensing the voltage or current on the particular data line.
[0060] Between the application of one or more programming pulses (e.g., Vpgm), a verify operation may be performed to determine whether the selected memory cells have reached their intended programmed states. If the selected memory cells have reached their intended programmed states, they may be inhibited from further programming. If the selected memory cells have not reached their intended programmed states, additional programming pulses may be applied. If the selected memory cells have not reached their intended programmed states after a certain number of programming pulses (e.g., a maximum number), the selected memory cells or the strings, blocks, or pages associated with these selected memory cells may be marked as defective.
[0061] To erase a memory cell or group of memory cells (e.g., erasure is typically performed in blocks or sub-blocks), an erase voltage (Vers) (e.g., typically Vpgm) may be applied (e.g., using one or more bit lines, select gates, etc.) to the substrate (and therefore the channel between the source and drain) of the memory cell targeted for erasure while the word line of the target memory cell is maintained at a potential such as ground potential (e.g., Vss), thereby causing charge transfer (e.g., direct injection or Fowler-Nordheim (FN) tunneling, etc.) from the floating gate of the target memory cell to the channel.
[0062] Figure 4An example block diagram of a memory device 400 is shown that includes a memory array 402 having a plurality of memory cells 404, and one or more circuits or components to provide communication with or perform one or more memory operations on the memory array 402. The memory device 400 may include a row decoder 412, a column decoder 414, a sense amplifier 420, a page buffer 422, a selector 424, an input / output (I / O) circuit 426, and a memory control unit 430.
[0063] The memory cells 404 of the memory array 402 may be arranged in blocks, such as a first block 402A and a second block 402B. Each block may include sub-blocks. For example, the first block 402A may include a first sub-block 402A0 and a second sub-block 402A n , and the second block 402B may include a first sub-block 402B0 and a second sub-block 402B n Each sub-block may include a number of physical pages, each page including a number of memory cells 404. Although shown herein as having two blocks, each block having two sub-blocks, and each sub-block having a number of memory cells 404, in other examples, the memory array 402 may include more or fewer blocks, sub-blocks, memory cells, etc. In other examples, the memory cells 404 may be arranged in a number of rows, columns, pages, sub-blocks, blocks, etc., and accessed using, for example, an access line 406, a first data line 410, or one or more select gates, source lines, etc.
[0064] The memory control unit 430 may control the memory operation of the memory device 400 according to one or more signals or instructions received on the control line 432, including, for example, one or more clock signals or control signals indicating the desired operation (e.g., write, read, erase, etc.), or address signals (A0-AX) received on the one or more address lines 416. One or more devices external to the memory device 400 may control the value of the control signal on the control line 432 or the address signal on the address line 416. Examples of devices external to the memory device 400 may include, but are not limited to, a host, a memory controller, a processor, or Figure 4 One or more circuits or components not shown.
[0065] The memory device 400 may use the access lines 406 and the first data lines 410 to transfer data to (e.g., write or erase) or from (e.g., read) one or more of the memory cells 404. The row decoder 412 and the column decoder 414 may receive and decode address signals (A0-AX) from the address lines 416, may determine which of the memory cells 404 are to be accessed, and may provide signals to one or more of the access lines 406 (e.g., one or more of a plurality of word lines (WL0-WLm)) or the first data lines 410 (e.g., one or more of a plurality of bit lines (BL0-BLn)), such as those described above.
[0066] The memory device 400 may include sensing circuitry, such as sense amplifiers 420, configured to determine the value of data on the memory cell 404 (e.g., read) using the first data line 410, or to determine the value of data to be written to the memory cell 404. For example, in a selected string of memory cells 404, one or more of the sense amplifiers 420 may read the logic level in the selected memory cell 404 in response to a read current flowing in the memory array 402 through the selected string to the data line 410.
[0067] One or more devices external to memory device 400 may communicate with memory device 400 using I / O lines (DQ0-DQN) 408, address lines 416 (A0-AX), or control lines 432. Input / output (I / O) circuitry 426 may transfer values of data into or out of memory device 400, such as into or out of page buffer 422 or memory array 402, using I / O lines 408, based on, for example, control lines 432 and address lines 416. Page buffer 422 may store data received from one or more devices external to memory device 400 and then program the data into a relevant portion of memory array 402, or may store data read from memory array 402 and then transmit the data to one or more devices external to memory device 400.
[0068] The column decoder 414 may receive the address signals (A0-AX) and decode them into one or more column select signals (CSEL1-CSELn). The selector 424 (e.g., a selection circuit) may receive the column select signals (CSEL1-CSELn) and select data in the page buffer 422 representing data values to be read from or programmed into the memory cells 404. The selected data may be transferred between the page buffer 422 and the I / O circuit 426 using the second data line 418.
[0069] The memory control unit 430 may receive positive and negative supply signals, such as a supply voltage (Vcc) 434 and a negative supply (Vss) 436 (e.g., ground potential) from an external source or supply (e.g., an internal or external battery, an AC / DC converter, etc.). In some examples, the memory control unit 430 may include a regulator 428 to internally provide the positive or negative supply signals.
[0070] Figure 5 A block diagram of an example machine 500 is shown, on which any one or more techniques (e.g., methods) discussed herein can be executed. In alternative embodiments, the machine 500 can act as a standalone device or can be connected (e.g., networked) to other machines. In a networked deployment, the machine 500 can operate in the capacity of a server machine, a client machine, or both in a server-client network environment. In an example, the machine 500 can act as a peer machine in a peer-to-peer (P2P) (or other distributed) network environment. The machine 500 can be a personal computer (PC), a tablet PC, a set-top box (STB), a personal digital assistant (PDA), a mobile phone, a network device, an IoT device, an automotive system, or any machine capable of (continuously or otherwise) executing instructions specifying the actions to be taken by the machine. In addition, although only a single machine is shown, the term "machine" will also be deemed to include any machine collection that individually or collectively executes a set (or multiple sets) of instructions to execute any one or more (e.g., cloud computing, software as a service (SaaS), other computer cluster configurations) of the methods discussed herein.
[0071] As described herein, an example may include logic, components, devices, packages, or mechanisms, or may be operated by logic, components, devices, packages, or mechanisms. A circuit system is a collection (e.g., a set) of circuits implemented in a tangible entity including hardware (e.g., simple circuits, gates, logic, etc.). Circuit system members may be flexible over time and underlying hardware variability. A circuit system includes components that can perform specific tasks individually or in combination when operating. In an example, the hardware of a circuit system may be permanently designed to perform specific operations (e.g., hard wiring). In an example, the hardware of a circuit system may include variably connected physical components (e.g., execution units, transistors, simple circuits, etc.), which include computer-readable media that are physically modified (e.g., magnetic, electrically movable placement of unchanged centralized particles, etc.) to encode instructions for specific operations. When connecting physical components, the basic electrical properties of the hardware composition are changed, for example, from an insulator to a conductor or vice versa. Instructions enable the participating hardware (e.g., execution units or loading mechanisms) to generate components of the circuit system in hardware via variable connections to perform parts of specific tasks when in operation. Thus, the computer-readable medium is communicatively coupled to other components of the circuit system when the device is operating. In an example, any of the physical components may be used in more than one component in more than one circuit system. For example, in operation, an execution unit may be used in a first circuit in a first circuit system at one point in time and reused at a different time by a second circuit in the first circuit system or by a third circuit in the second circuit system.
[0072] The machine (e.g., computer system) 500 (e.g., host device 105, memory device 110, etc.) may include a hardware processor 502 (e.g., a central processing unit (CPU), a graphics processing unit (GPU), a hardware processor core, or any combination thereof, such as memory processing device 115, etc.), a main memory 504, and a static memory 506, some or all of which may communicate with each other via an interconnection link (e.g., a bus) 508. The machine 500 may further include a display device 510, an alphanumeric input device 512 (e.g., a keyboard), and a user interface (UI) navigation device 514 (e.g., a mouse). In an example, the display device 510, the input device 512, and the UI navigation device 514 may be a touch screen display. The machine 500 may additionally include a storage device (e.g., a drive unit) 521, a signal generating device 518 (e.g., a speaker), a network interface device 520, and one or more sensors 516, such as a global positioning system (GPS) sensor, a compass, an accelerometer, or other sensors. The machine 500 may include an output controller 528, such as a serial (e.g., Universal Serial Bus (USB), parallel or other wired or wireless (e.g., infrared (IR), near field communication (NFC), etc.) connection to communicate or control one or more peripheral devices (e.g., printer, card reader, etc.).
[0073] The storage device 521 may include a machine-readable medium 522 on which one or more sets of data structures or instructions 524 (e.g., software) embodying or utilized by any one or more of the techniques or functions described herein are stored. The instructions 524 may also reside, completely or at least partially, within the main memory 504, within the static memory 506, or within the hardware processor 502 during execution thereof by the machine 500. In an example, one or any combination of the hardware processor 502, the main memory 504, the static memory 506, or the storage device 521 may constitute the machine-readable medium 522.
[0074] Although machine-readable medium 522 is illustrated as a single medium, the term “machine-readable medium” may include a single medium or multiple media (eg, a centralized or distributed database, or associated caches and servers) configured to store one or more instructions 524 .
[0075] The term "machine-readable medium" may include any medium capable of storing, encoding, or carrying instructions for execution by the machine 500 and causing the machine 500 to perform any one or more of the techniques of the present disclosure, or capable of storing, encoding, or carrying data structures used by or associated with such instructions. Non-limiting machine-readable medium examples may include solid-state memory and optical and magnetic media. In an example, a centralized machine-readable medium includes a machine-readable medium having a plurality of particles, the particles having a constant (e.g., stationary) mass. Therefore, the centralized machine-readable medium is a non-transitory propagating signal. Specific examples of centralized machine-readable media may include: non-volatile memory, such as semiconductor memory devices (e.g., electrically programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM)) and flash memory devices; magnetic disks, such as internal hard disks and removable disks; magneto-optical disks; and CD-ROM and DVD-ROM disks.
[0076] Instructions 524 (e.g., software, programs, operating systems (OS), etc.) or other data are stored on storage device 521 and can be accessed by memory 504 for use by processor 502. Memory 504 (e.g., DRAM) is typically fast but volatile, and is therefore a different type of storage than storage device 521 (e.g., SSD), which is suitable for long-term storage, including long-term storage when in a "disconnected" condition. Instructions 524 or data in use by a user or machine 500 are typically loaded into memory 504 for use by processor 502. When memory 504 is full, virtual space from storage device 521 can be allocated to supplement memory 504; however, because storage device 521 is typically slower than memory 504, and write speeds are typically at least twice slower than read speeds, the use of virtual memory can greatly reduce the user experience due to storage device latency (compared to memory 504, such as DRAM). In addition, the use of storage device 521 for virtual memory can greatly reduce the usable service life of storage device 521.
[0077] Compared to virtual memory, virtual memory compression (e.g. The kernel feature "ZRAM") uses portions of memory as compressed block storage to avoid paging to storage device 521. Paging can occur in compressed blocks until such time as the data should be written to storage device 521. Virtual memory compression increases the available size of memory 504 while reducing wear on storage device 521.
[0078] Storage devices optimized for mobile electronic devices or mobile storage traditionally include MMC solid-state storage devices (e.g., micro Secure Digital (microSD TM) card, etc.). MMC devices include several parallel interfaces (e.g., 8-bit parallel interfaces) with the host device and are often components that can be removed and separated from the host device. In contrast, eMMC TM The device is attached to the circuit board and is seen as a component of the host device, with read speeds comparable to Serial ATA-based TM (Serial Advanced Technology (AT) Attachment, or SATA) SSD devices. However, the demand for mobile device performance continues to increase in order to fully realize virtual or augmented reality devices, take advantage of increased network speeds, etc. In response to this demand, storage devices have moved from parallel to serial communication interfaces. Universal Flash Storage (UFS) devices, which include a controller and firmware, use a low voltage differential signaling (LVDS) serial interface with a dedicated read / write path to communicate with the host device, further promoting higher read / write speeds.
[0079] The instructions 524 may further be transmitted or received over a communication network 526 using a transmission medium via the network interface device 520 using any of a number of transmission protocols (e.g., frame relay, Internet Protocol (IP), transmission control protocol (TCP), user datagram protocol (UDP), hypertext transfer protocol (HTTP), etc.). Example communication networks may include a local area network (LAN), a wide area network (WAN), a packet data network (e.g., the Internet), a mobile telephone network (e.g., a cellular network), a plain old telephone (POTS) network, and a wireless data network (e.g., a wireless network known as a wireless network). The Institute of Electrical and Electronics Engineers (IEEE) 802.11 series of standards, known as ), IEEE 802.16 family of standards, IEEE 802.15.4 family of standards, peer-to-peer (P2P) networks, and other networks. In an example, network interface device 520 may include one or more physical jacks (e.g., Ethernet, coaxial, or telephone jacks) or one or more antennas to connect to communication network 526. In an example, network interface device 520 may include multiple antennas to communicate wirelessly using at least one of single-input multiple-output (SIMO), multiple-input multiple-output (MIMO), or multiple-input single-output (MISO) technology. The term "transmission signal" should be taken to include any signal capable of storing, encoding, or carrying instructions for execution by machine 500, and includes digital or analog communication signals or other signals used to facilitate communication of such software.
[0080] Figure 6It is a diagram of the allocation of the change log area starting from a fixed geometry to a variable geometry based on the actual memory occupancy. The fixed allocation is a virtual allocation that can cover all memory devices associated with the change log, for example, all managed memory devices on the card. The variable geometry allocation is an actual allocation that depends on the usage model. At the first time, at 651, the change log area allocation 652 can be regarded as a table with nxn elements, where each element is the correspondence between a physical address and a VP. It is presented as a simple table, where each row intercepts a specific page pointer table (PPT). The PPT is an array containing several physical addresses. The virtual size of each row in the table 652 is set for the number of VPs that can be tracked on the same value of the corresponding row. The term virtual is used to represent a potential value that is not actually allocated, and only a smaller memory block is actually allocated. In this example, for n PPTs, each PPT may contain physical addresses for n VPs. During the change log update, the geometry of the table can be changed to adapt it to the remaining memory using the new structure, where the virtual size of each row is dynamically reallocated. This reallocation occurs each time a PPT is intercepted.In the example shown, at 653, the shaded entry shows the actual allocated memory 654 allocated relative to the global indexing mode of table 652 to address the memory device associated with the change log.
[0081] When the actual allocated memory consumes all available memory for the change log, an update checkpoint may be triggered. A checkpoint occurs when the L2P change log becomes full, and the checkpoint procedure may include loading all PPTs in the L2P change log into the L2P cache in order to update the PPTs, and then flushing (storing) the modified PPTs to a memory device, such as a NAND memory device. Upon determining that the allocated amount of storage space is used by the change log, the system may be configured to trigger a procedure to load the PPTs from the NAND memory device to the RAM, update the PPTs in the RAM, and flush the PPTs from the RAM to the NAND memory device. The checkpoint operation may be a time-consuming operation.
[0082] In a method for dynamically expanding a change log in a storage device, the size of a storage area to which a dynamic change log table can be allocated can be fixed, wherein for each addressable PPT, the maximum number of entries is equal to e. The maximum number of addressable PPTs in the change log can be fixed to be equal to the maximum number of table rows of r. A PPT bitmap can be generated relative to r rows. A bitmap is a mapping from a domain to a number of bits, which provides a representation of information about items in the domain. A PPT bitmap is an array having one bit (storage location) for each addressable PPT of a managed memory device. At the location in the bitmap where the addressed PPT is located, a bit having a value of zero for the PPT can identify that the addressed PPT is not stored in the change log, and a bit having a value of one for the PPT can identify that the addressed PPT is stored in the change log. Alternatively, bit values of one and zero can provide opposite identification. In an embodiment, a single (one) PPT bitmap can be used. However, the change log can implement multiple PPT bitmaps.
[0083] For each specific PPT, a VP bitmap may be generated. The VP bitmap contains one bit for each VP corresponding to a specific PPT. There may be r VP bitmaps, one for each row (PPT). A dynamic linked list of PPTs may be generated, where the maximum number of nodes is equal to r. A dynamic linked list associated with the VP of each of these PPT nodes may be generated, where each such dynamic linked list has a maximum number of nodes equal to e. One or more hardware accelerators may be implemented, where each hardware accelerator is capable of counting the number of bits confirmed within a memory range (byte sequence). The memory range may include a range of bit positions in a PPT bitmap or a range of bit positions in a VP bitmap.
[0084] In an allocation for dynamic expansion of the change log, as mentioned above, the number of entries that the change log table can contain for each PPT is limited (e=entry count). Each entry in a row identifies the index of a VP. The change log is viewed as a dynamic table, where each row is an entry point to a specific PPT, and each column is a specific VP index to a specific PPT. The table can dynamically change its structure through a variable number of actions, where each row can have a variable number of columns. The dynamic table structure can change in two extreme cases. One extreme case is a complete continuous write transaction based on a single PPT with e less than or equal to the PPT size in terms of VP to generate a table with one row and a number of columns equal to e. The second extreme case is a complete random write transaction based on different PPTs with e less than or equal to the PPT count within the size of the memory device to generate a table with e rows, each row having a single column.
[0085] The change log can be viewed as a two-dimensional vector change log of [rows] and [columns]. Rows can correspond to PPTs, and columns can correspond to VPs. The change log can be accessed to enqueue, overwrite, and read the same VP. The same steps can be performed for all access types. Figure 7 Flowchart of an embodiment of an example procedure for accessing a change log for writing at a VP. At 710, a VP is used as an entry in a change log for a write operation by using an index of the VP. At 720, the PPT existence in the PPT bitmap is checked using the index. At 730, it is determined whether the PPT exists. After determining that the PPT exists in the PPT bitmap, at 740, the position of the PPT (row in the table) is evaluated. This evaluation can be implemented by bit counting before the relevant PPT bit position in the PPT bitmap. At 750, the VP existence in the VP bitmap can be checked. At 760, it is determined whether the VP exists. After determining that the VP exists in the VP bitmap, at 770, the position of the VP (column in the table) is evaluated. This evaluation can be implemented by bit counting before the relevant VP bit position in the VP bitmap. At 780, the relevant list can be navigated to the desired VP node. A write action can be performed on the addressed VP based on the information at the desired VP node. As mentioned above, this procedure can be used to perform read operations or other operations on the addressed VP.
[0086] Figure 8861. is an illustration of an embodiment of an example operation of effectively adding a VP to a change log data structure. In this example, a VP is added, and the VP is the associated bit 3 of the VP bitmap of a particular PPT, and the particular PPT is PPT0 in the PPT bitmap 861. The PPT bitmap 861 shows entries for PPT0, PPT1, PPT2, PPT3, PPT4, PPT5, and PPT6, and indicates that the PPT bitmap 861 may have more positions for more PPTs. There is a bit in each position of PPT0, PPT3, and PPT5, indicating that PPT0, PPT3, and PPT5 exist in the change log. A zero bit in each position of PPT1, PPT2, PPT4, and PPT6 indicates that PPT1, PPT2, PPT4, and PPT6 do not exist in the change log. Also shown are VP bitmaps 865-0, 865-3, and 865-5 for addressable PPT0, PPT3, and PPT5, respectively. The numbers 0, 1, 2, 3, 4, 5, 6, 7, 8 above the VP bitmap 865-0 are the VP index positions in each VP bitmap. Next to PPT bitmap position 0 is 0. Next to PPT bitmap position 3 is 1, and next to PPT bitmap position 5 is 2. These numbers 0, 1, and 2 identify that PPT0, PPT3, and PPT5 are in the linked PPT list of PPTs in the change log, where PPT0 is in the 0th (first) position of the PPT list, PPT3 is in the 1st (second) position of the PPT list, and PPT5 is in the 2nd (third) position of the PPT list. Corresponding to the 0th (first) position of the PPT list is the linked VP list 866-0 shown as having three nodes [0], [1], and [2] before the VP associated with position 3 is added by the insertion process.
[0087] In this example, for a total bit count equal to three, VP bitmap 865-0 has ones asserted in index positions 0, 2, and 4 of VP bitmap 865-0. The asserted ones indicate that there is an associated VP corresponding to PPT0. The asserted ones indicate that there is an associated VP corresponding to PPT0. The asserted bits in bitmap 865-0 map to the three nodes [0], [1], and [2] of linked VP list 866-0. VP bitmap 865-3 has a total bit count equal to two asserted ones, indicating that there is an associated VP corresponding to PPT3. The two asserted bits in bitmap 865-3 map to the two nodes [0] and [1] of linked VP list 866-1. VP bitmap 865-5 has a total bit count equal to three asserted ones, indicating that there is an associated VP corresponding to PPT5. The three asserted bits in bitmap 865-3 map to the three nodes [0], [1], and [2] of linked VP list 866-2.
[0088] When a VP is added to the VP bitmap 865-0 at VP index position 3, VP index position 3 will be validated by changing the zero that existed before the VP was added to one. The number of validated bits (set to one) in the VP bitmap 865-0 before the added VP at index position 3 is counted, where these counted validated bits correspond to nodes in the linked VP list 866-0. In this example, the counting results in a determination that 2 bits are enabled before the index position 3 of the added VP, which indicates two iterations over the VP list 866-0. Two iterations means that for the added VP, the node is inserted in the VP list 866-0 after the first two nodes currently in the VP list 866-0 starting from the head of the VP list 866-0. An iteration is a navigation or movement in the list to the desired node. Alternatively, the counting may be done from the tail of the VP list 866-0. The choice of which end to start counting from may depend on the VP index of the added VP element and the number of index positions of the VP bitmap 865-0. By inserting the node associated with VP index 3 of bitmap 865 - 0 as node [ 2 ] of VP list 866 - 0 , node [ 2 ] of VP list becomes node [ 3 ] of VP list 866 - 0 .
[0089] List navigation of a VP list such as VP list 866-0, 866-3 or 866-5 can be performed from the head of the list or the tail of the list. The shorter of these two routes is preferred. The maximum number of list iterations to access change log elements in this method is the VP count for a given PPT divided by two. Based on the node position, one can choose to navigate the list from the head or tail of the list, in which case the worst case is the maximum list size divided by two, where the maximum list size is the number of VPs contained in the PPT, which can be written as (VP_count_for_PPT).
[0090] In one approach, as taught herein, it is sufficient to store only the physical address, rather than a pair of information about the L2P translation in a change log. Such a change log can be accessed using direct indexing. Additionally, using a bitmap structured change log can support direct overwriting, removal, and addition of VPs. Furthermore, because VP elements are updated in data transactions, the storage of the L2P history of the VP can be eliminated, thereby reducing the amount of data storage used.
[0091] For the example of a 256GB data storage device, the amount of storage in a storage device such as RAM for the change log may include 8KB for a PPT bitmap and 128B for a VP bitmap, where the change log element size is 4B. In the case of 256 PPTs, approximately 32KB may be used to address 256 VP bitmaps, with one VP bitmap per PPT. For a change log allocation size of 4096 elements, the storage size is approximately 16KB. For this example, the amount of storage in the storage device for the change log increases to approximately 32KB+16KB+8KB=56KB.
[0092] In order to implement the change log method using bitmaps and indexing, the bit count before the relevant PPT bit position in the PPT bitmap and before the relevant VP bit position in the VP bitmap can be implemented by one or more hardware accelerators. The hardware accelerator can be implemented to count the number of bits confirmed in the memory range (word sequence). The count can be truncated at a specific test bit. Such a hardware accelerator can be implemented to check whether a specific test bit is confirmed in the memory range (word sequence). The specific test bit is the current focus bit. Each hardware accelerator may have several registers. The register may include a start_addr register for storing the starting memory address, a word register for identifying the number of words to be iterated for counting, and a direction register for identifying the direction of iteration. The start_addr register can be a 32-bit register or another register of appropriate size. The word register can be a 32-bit register or another register of appropriate size. The direction register can be a one-bit register. The start_addr+word indicates the number of bits confirmed before the test bit. The start_addr+word indicates the number of bits confirmed after the test bit.
[0093] The registers of the hardware accelerator may also include a test_bit_pos register, a bits_count register, a test_bit_state register, an enable_check register, and a check_complete register. The content of the test_bit_pos register may indicate which bit in the memory range the count will be truncated on. It may be used to know the number of bits (bit count) confirmed before or after the indicated test bit. The test bit is defined to be absolutely within the range of (start_addr+word). The test_bit_pos register may be a 32-bit register or another register of appropriate size. The bits_count register may save the result of the bit count. The bits_count register may be a 32-bit register or another register of appropriate size. The test_bit_state register may save the result of the check of the test bit as confirmed or unconfirmed. The test_bit_state register may be a one-bit register or another register of appropriate size. The enable_check register may save an indicator for starting the bit count at confirmation and checking whether the test bit is confirmed. It may be used to reset the indicator in the check_complete register. The enable_check register may be a one-bit register or another register of appropriate size. The content of the check_complete register may indicate the count completion time. When asserted, it may be used to reset the indicator in the enable_check register. The check_complete register may be a one-bit register or another appropriately sized register.
[0094] Methods using a change log indexing scheme may include operations that use less memory to access a virtual table having X rows and Y columns, where the maximum count of entries is equal to X*Y (* is a multiplication operator). Because in actual conditions or operating environments, the virtual table may never be full, the allocation pattern as taught herein allows the virtual table to use a reduced storage area, thereby ensuring direct access to table entries. This access can be achieved using four coordinates - two standard coordinates (X and Y) and two sequential coordinates (Sx and Sy) - instead of two coordinates (X and Y).
[0095] Using the first two coordinates X and Y as the position inside x_bitmap and y_bitmap respectively, the presence of the desired item in the table can be checked. The check can be achieved by determining that the corresponding bit in the relevant position of the appropriate bit is confirmed, where the confirmation can correspond to the corresponding bit position containing a one. In an alternative logical method, the confirmation can correspond to the corresponding bit position containing a zero. If the table entries are stored in some linked lists, where each list is regarded as a row and each node is regarded as a column, then the consecutive coordinates correspond to the number of bits confirmed in x_bitmap and y_bitmap before bit X and bit Y. Fig. 9 An example is shown in FIG.
[0096] Fig. 9 is an illustration of an embodiment of an example bitmap and linked list associated with a virtual table, which may represent a table with elements that relate VP elements to PPTs. The virtual table, not shown, has six rows and five columns, where the allocation of elements may have 6*5=30 entries. Fig. 9 , one bitmap 961 is shown as one column with six rows, where the six rows may be indexed sequentially from top to bottom as 0, 1, 2, 3, 4, and 5. Bitmap 961 may correspond to a PPT bitmap associated with six PPTs, where the six PPTs are labeled PPT0, PPT1, PPT2, PPT3, PPT4, and PPT5 in a one-to-one correspondence with row indices 0, 1, 2, 3, 4, and 5. In this example, the row indexed as 1 in bitmap 961 corresponds to bitmap 965-1, and the row indexed as 4 in bitmap 961 corresponds to bitmap 965-4, where each of bitmap 965-1 and bitmap 965-4 is a row with five columns indexed as 0, 1, 2, 3, and 4. Bitmap 965-1 may correspond to a VP bitmap for PPT1, and bitmap 965-4 may correspond to a VP bitmap for PPT4.
[0097] Consider the actual allocation of four items (item 1, item 2, item 3, and item 4) shown as confirmed ones in bitmap 965-1 and bitmap 965-4. Because there is no actual allocation of other items associated with bitmap 961, only bitmap 965-1 and bitmap 965-4 are allocated as rows. Item 1 is allocated for row 1 of bitmap 961, where one is confirmed in column 1 of bitmap 965-1. Item 2 is allocated for row 1 of bitmap 961, where one is confirmed in column 4 of bitmap 965-1. Item 3 is allocated for row 4 of bitmap 961, where one is confirmed in column 0 of bitmap 965-3. Item 4 is allocated for row 4 of bitmap 961, where one is confirmed in column 3 of bitmap 965-3. Other positions in bitmap 965-1 and bitmap 965-4 contain zeros because only four items are allocated in this example. There are two lists 966-1 and 966-3 linked to bitmap 965-1 and bitmap 965-4, respectively. Linked list 966-1 contains only two elements defined by the positions of confirmed ones in bitmap 965-1. Position zero of linked list 966-1 is a node containing information corresponding to item 1 of column 1 in bitmap 965-1 associated with position 1 of bitmap 961, and position one of linked list 966-1 is a node containing information corresponding to item 2 of column 4 in bitmap 965-1 associated with position 4 of bitmap 961. Position zero of linked list 966-4 is a node containing information corresponding to item 3 of column 0 in bitmap 965-4 associated with position 4 of bitmap 961, and position one of linked list 966-4 contains information corresponding to item 4 of column 3 in bitmap 965-4 associated with position 4 of bitmap 961. Although the associated virtual table corresponds to an allocation of thirty entries, the use of a bitmap and linked list allows for the consideration of allocations of more than one entry, in this example, four entries.
[0098] Figures 10A-10DAn example of implementing a change log indexing scheme that can reduce the storage area used for the change log is shown. For ease of discussion, a change log for a smaller memory is represented in these figures. In this example, the virtual page size is 4096 bytes (each VP is referred to as 4kB) and the device storage size is 20VP (4096*20=81900 bytes, which is referred to as 80kB). The number of physical page tables (PPTs) is set equal to four, where each PPT can address five VPs. The four PPTs can be labeled PPT0, PPT1, PPT2, and PPT3. PPT0 can address VP elements from VP0 to VP4. PPT1 can address VP elements from VP5 to VP9. PPT2 can address VP elements from VP10 to VP14. PPT3 can address VP elements from VP15 to VP19. Each of VP0, VP1, VP2, VP3, VP4, VP5, VP6, VP7, VP8, VP9, VP10, VP11, VP12, VP13, VP14, VP15, VP16, VP17, VP18, VP19 contains the absolute index of the corresponding VP in the storage area. For example, for VP8, 8 is the absolute index of the corresponding VP in the storage area.
[0099] Fig. 10A A global change log table 1055 in a storage device is shown. The storage device may be implemented as a RAM. The global change log table (GCT) 1055 is capable of representing a complete storage area addressable using two spatial coordinates (Y for rows corresponding to PPTs and X for columns corresponding to VPs), where VPs are arranged in the PPTs. However, this type of representation has disadvantages with respect to the memory of the storage device used for the change log. For example, a 512GB memory with a VP size = 4096 bytes uses 134,217,728 cells in the GCT 1055, where each cell contains a 32-bit physical address of the location where the VP is remapped. In this case, the RAM to address the complete device memory should be approximately 512MB. This size of memory for RAM provides motivation to generate different addressing modes. In various embodiments, the same result of efficiently obtaining information relating VPs to PPTs can be achieved using less RAM using four coordinates instead of the typical two coordinates Y and X. The two spatial coordinates (Y and X) are used to check for VP presence in the bitmap used to access the change log. Two time or continuous coordinates (S Y and S X ) to navigate the linked list to reach the desired VP node (cell). In this example, GCT 1055 contains rows indexed 0 to 3 corresponding to the PPTs given as PPT0, PPT1, PPT2, and PPT3, respectively. Each row in global change log table 1055 has five columns indexed 0 to 4 for the VP.
[0100] Fig. 10B A write command sequence 1058 is shown issued by the host, where all VP intercepts can be seen. Fig. 10A 1055. The host device write sequence includes absolute VP indexes VP0, VP5, VP3, VP19, VP8, VP6, VP8 generated within a continuous sequence of numbers from 0 to a number representing the total number of possible VPs. In write sequence 1058, VP0 and VP3 can be seen to belong to PPT0 of GCT 1055; VP5, VP6, and VP8 can be seen to belong to PPT0 of GCT 1055; and VP19 can be seen to belong to PPT3 of GCT 1055. The final element in write sequence 1058 for VPs is another write operation relative to VP8.
[0101] Fig. 10C and 10D An embodiment of an example change log representation in RAM is shown. This representation takes up less space in RAM than GCT 1055. Fig. 10C An embodiment of an example manner in which a bitmap may be arranged in a change log for spatial coordinates is shown. Bitmap 1061 is a PPT bitmap 1061. The Y coordinate is the PPT of the desired VP, where the Y coordinate is indexed with an integer from 0 to 3. The associated bit state in each position of the PPT bitmap 1061 has one of two states. A value of zero in a bit position of the PPT bitmap 1061 may be used to mean that the PPT addressed by the given Y coordinate is not stored in the change log. A value of one in a bit position of the PPT bitmap 1061 may be used to mean that the PPT addressed by the given Y coordinate is stored in the change log. Depending on the logic used, the roles of zero and one indicating the presence of a PPT may be reversed.
[0102] There is a VP bitmap associated with each Y coordinate. Y coordinates 0, 1, 2, and 3 are associated with VP bitmap 1065-0, VP bitmap 1065-1, VP bitmap 1065-2, and VP bitmap 1065-3, respectively. The X coordinate of each VP bitmap, which is 0 to 4 in this example, is the VP index within the associated PPT. A value of zero in a bit position of a VP bitmap in the four bitmaps may be used to mean that the VP addressed by the given X coordinate is not stored in the change log. A value of one in a bit position of a VP bitmap in the four bitmaps may be used to mean that the VP addressed by the given X coordinate is stored in the change log. Depending on the logic used, the roles of zeros and ones indicating the presence of a VP may be reversed. For example Fig. 10C, the following identifies the presence of VP0, VP3, VP5, VP6, VP8, and VP19 in the change log: one in position zero of VP bitmap 1065-0; one in position three of VP bitmap 1065-0; one in position zero of VP bitmap 1065-1; one in position one of VP bitmap 1065-1; one in position three of VP bitmap 1065-1; and one in position four of VP bitmap 1065-3, where their presence corresponds to a previous write sequence 1058 performed by the host, as shown in FIG. Fig. 10B as shown in .
[0103] Fig. 10D An embodiment showing an example way of arranging a linked list in a change log for time coordinates. List 1064 is linked to PPT bitmap 1061. Linked list 1064 is a PPT linked list, where PPT linked list 1064 only contains PPTs stored in the change log. Fig. 10B and Fig. 10C In the example, there are only three nodes in the PPT linked list 1064, corresponding to Fig. 10C 1 in the PPT bitmap 1061. For each PPT in the PPT linked list 1064, there is a VP linked list. For PPT0 in the PPT linked list 1064, there is a VP linked list 1066-0. For PPT1 in the PPT linked list 1064, there is a VP linked list 1066-1. For PPT3 in the PPT linked list 1064, there is a VP linked list 1066-3. For each linked list, there is a head end and a tail end from which the linked list can be navigated to find the desired VP for the host-generated operation.
[0104] Consider the following example algorithm for searching and updating VPs within a change log. An algorithm is a series of actions or steps to achieve a specified goal. In this example, a bitmap, a list linked to the bitmap, and a counter of confirmed bits in the bitmap are used to update VP8, where VP8 is such as Fig. 10B The bitmap and linked list are described below with respect to the final VP in the write sequence 1058 of the VP by the host. Fig. 10C and 10D As mentioned above for VP8 in this example, 8 is the absolute index of VP8 within the storage area. At step 1, the associated spatial Y coordinate of the bit associated with the PPT corresponding to VP8 can be evaluated, where in this example, the spatial Y coordinate is one of 0 to 5 that identifies a specific bit position in the PPT bitmap 1061. This evaluation can be performed by performing an integer division of the VP absolute index divided by the PPT size. For VP8, the relevant PPT bit in the bitmap 1061 using the integer division method is given by:
[0105] PPT bits = int (VP absolute index / PPT size) = 8 / 5 = 1
[0106] The Y coordinate of a position in the PPT bitmap 1061 is 1, and VP8 is in PPT1.
[0107] At step 2, the state of the relevant bit in the PPT bitmap (e.g., PPT bitmap 1061) is checked. If the relevant bit from the integer division in PPT bitmap 1061 is confirmed to be set equal to one, then the relevant PPT is stored in the change log. Fig. 10C As seen in , the value of the Y coordinate is one, the Y coordinate is position 1 in PPT bitmap 1061, so for this example, PPT1 is stored in the change log.
[0108] At step 3, the temporal Y coordinate of the node (its position) in the PPT list 1064 is evaluated by counting the number of confirmed bits in the PPT bitmap 1061 before the expected bit. In this example, the spatial Y coordinate is bit one in the PPT bitmap 1061. There is only one confirmed bit in the PPT bitmap 1061 before the bit one position, which is the one in the PPT bitmap 1061 in the bit zero position, corresponding to PPT0. PPT0 is the first node starting from the head end in the PPT list 1064, where the PPT list 1064 lists each PPT where its corresponding position in the PPT bitmap 1061 is confirmed. Therefore, in this example, the expected PPT node is the second node in the PPT list 1064. This step includes navigating the PPT linked list 1064 to the second node in the PPT linked list 1064. This node contains a pointer to the VP linked list associated with PPT1.
[0109] At step 4, the spatial X coordinate of the bit (position) associated with the desired VP in the VP bitmap associated with the determined PPT is evaluated. This bit position is the VP index within the VP bitmap. The evaluation may be performed by performing a modulo operation of the VP absolute index relative to the PPT size (the sign of the modulo operation is also given herein as %). In this example, the VP index for VP8 may be given by:
[0110] VP index = (VP absolute index) mod (PPT size) = 8% 5 = 3,
[0111] where 3 is the relative VP index of VP8 in the determined PPT. In this example, the expected VP8 updated to VP index three identifies that VP8 is associated with position three in the VP bitmap (in this example, the VP bitmap has five positions indexed from zero to four, such that position three is the fourth position of the bitmap). Because the associated PPT has been determined to be PPT1, the expected VP8 is associated with Fig. 10C 1 is associated with position three of the VP bitmap 1065-1 shown in FIG.
[0112] At step 5, the state of the relevant bit in the VP bitmap (in this example, VP bitmap 1065-1, for example) is checked. If it is confirmed that the relevant bit given by the VP index determined according to the modulo operation is set to the value at the VP index equal to one, then the desired VP with the VP index of the determined PPT is stored in the change log. Fig. 10C As seen in , the VP index is position 3 in the VP bitmap 1065-1, which has a value of one, so for this example, the expected VP index is stored in the change log.
[0113] At step 6, the temporal X coordinate of the node (its position) in the VP list 1066-1 is evaluated by counting the number of asserted bits before the desired bit in the VP bitmap 1065-1 to which the VP list 1066-1 is linked. In this example, the spatial X coordinate is at the bit three position in the VP bitmap 1065-1. Two bits are asserted before the bit three position corresponding to PPT1 in the VP bitmap 1065-1, which are one in the bit zero position of the VP bitmap 1065-1 and one in the bit one position of the VP bitmap 1065-1. Therefore, the desired node is the third node in the VP list 1066-1, which contains the associated NAND physical address. This node can be updated with new information about VP8.
[0114] The above algorithm has been applied to Figures 10A-10D , where the size of the PPT and the number of VPs are small for ease of discussion. The algorithmic approach described above may be applied to memory devices with large allocations for data storage. Additionally, various permutations of this algorithmic approach may be performed. Similar to the teachings herein, the use of a bitmap, a list linked to the bitmap, and a counter of confirmed bits in the bitmap may achieve a dynamic reduction in memory usage for change log operations relative to conventional approaches.
[0115] Fig.111 is a block diagram of an embodiment of an example system 1100 including a host 1105 operating with a memory system 1110 having a plurality of memory devices and a storage device 1114, wherein a change log is constructed in the storage device 1114 in an allocation pattern for an expandable storage region in the storage device 1114, the change log being implemented to correlate virtual page addresses in one or more of the memory devices with physical addresses. The storage device 1114 may be implemented as a RAM device. The host 1105 is coupled to the memory system 1110 via an interface 1120. The memory system 1110 may include a processing device 1115 coupled to memory devices 1112-1, 1112-2, 1112-3, 1112-4, 1112-5, and 1112-6 via a bus 1127. The memory devices 1112-1, 1112-2, 1112-3, 1112-4, 1112-5, and 1112-6 may be NAND memory devices. Despite Fig.11 1100 may include one or more memory devices. Memory devices may be implemented in a number of formats, including but not limited to multiple memory dies. Processing device 1115 may include one or more processors or be structured as one or more processors.
[0116] Memory system 1100 may include firmware 1125 having code executable by processing device 1115 to manage at least memory devices 1112-1, 1112-2, 1112-3, 1112-4, 1112-5, and 1112-6. Firmware 1125 may reside in a storage device in memory system 1110 coupled to processing device 1115. Firmware 1125 may be coupled to processing device 1115 using bus 1127 or some other interface on memory system 1110. Alternatively, firmware 1125 may reside in processing device 1115 or may be distributed in memory system 1110 using firmware components, such as, but not limited to, code, including one or more components in processing device 1115. Firmware 1125 may include code having instructions executable by processing device 1115 to operate on memory devices 1112-1, 1112-2, 1112-3, 1112-4, 1112-5, and 1112-6. The instructions may include instructions to control the storage size of a change log in storage device 1114 using a bitmap, a list linked to the bitmap, and one or more counters of confirmed bits in the bitmap, wherein the change log is implemented to correlate virtual page addresses in one or more of memory devices 1112-1, 1112-2, 1112-3, 1112-4, 1112-5, and 1112-6 with physical addresses. The instructions may include instructions to update the change log using the bitmap, the list, and the one or more counters of confirmed bits in the bitmap. The bitmap, the list, and the counters may be relative to Figure 6-1 0, 12 and 13 are implemented in the manner taught.
[0117] The bitmap and list may include a page pointer table bitmap, a virtual page bitmap, a page pointer table list, and a virtual page list. The page pointer table bitmap may be arranged to identify the storage state of the page pointer table in the change log. The virtual page bitmap may be arranged so that each page pointer table indexed in the page pointer table bitmap has a virtual page bitmap. Each virtual page bitmap may be arranged to identify the storage state of the virtual page address in the change log using an index of the virtual page address. The page pointer table list may be structured as a page pointer table list stored in the change log, wherein the list is linked to the page pointer table bitmap. The virtual page list may be arranged as a virtual page list for each page pointer table in the page pointer table list. Each virtual page list may identify a set of virtual page addresses stored in the change log, wherein the virtual page list is linked to the corresponding virtual page bitmap. The index may be written with integers in a sequential order starting from an initial integer, and the index may be assigned to the page pointer table in a sequential order defined by the number of indexes of each page pointer table. Each page pointer table may have the same number of allocated indexes as other page pointer tables represented by the change log. Other arrangements of indexes may be used to operate the change log. A value in a certain position of a page pointer table bitmap can identify that the page pointer table associated with the said position is stored in the change log, and a value in a certain position of a virtual page bitmap of the page pointer table can identify that the virtual page associated with the said position of the virtual page bitmap of the page pointer table is stored in the change log.
[0118] The system 1100 and its components can be structured into several different arrangements. For example, the system 1100 can be arranged with a variation of component types, including a host 1105, an interface 1120, a memory system 1110, memory devices 1112-1, 1112-2, 1112-3, 1112-4, 1112-5, and 1112-6, a processing device 1115, and a bus 1129. The host 1105 can include one or more processors, the type of which can vary. The interface 1120 can be arranged as, but not limited to, a peripheral component interconnect express (PCIe) interface. The memory system 1110 can be, but not limited to, an SSD. The memory devices 1112-1, 1112-2, 1112-3, 1112-4, 1112-5, and 1112-6 can be NAND memory devices. Processing device 1115 may include or be structured as one or more types of processors compatible with memory devices 1112-1, 1112-2, 1112-3, 1112-4, 1112-5, and 1112-6. Bus 1127 may be an Open NAND Flash Interface (ONFI) bus, and memory devices 1112-1, 1112-2, 1112-3, 1112-4, 1112-5, and 1112-6 are NAND flash memory devices. Storage device 1114 may be implemented to provide data or parameters for maintaining memory system 1110. Storage device 1114 may include RAM. Although in Fig.11 In the embodiment of the present invention, the storage device 1114 is external to the processing device 1115 in the memory system 1110, but the storage device 1114 can be integrated into the processing device 1115. The storage device 1114 can be coupled to the bus 1127 to communicate with other components of the memory system 1110. Alternatively, the storage device 1114 can be coupled to the processing device 1115, where the processing device 1115 handles the communication between the storage device 1114 and the other components of the memory system 1110. The storage device 1114 can be coupled to the bus 1127 and the processing device 1115.
[0119] In various embodiments, firmware 1125 may have instructions executable by processing device 1115 to operate on a plurality of memory devices in memory devices 1112-1, 1112-2, 1112-3, 1112-4, 1112-5, and 1112-6. The operations may include providing change log operations for memory system 1110. Change log operations may include a mode of allocating an expandable storage area in storage device 1114, where storing L2P change logs may potentially cover device LBAs of the entire memory system 1110. The allocated area may be structured to provide fast access to change log context, thereby eliminating complex search and sorting algorithms. Change log elements may be accessed by knowing its exact location within the change log.
[0120] Firmware 1125 may operate in conjunction with storage device 1114 to use a bitmap, a list linked to the bitmap, and one or more counters that count asserted bits in the bitmap when operating a change log of memory system 1110. One of the bitmaps may be structured to indicate the state of a page pointer table in the change log, and another of the bitmaps may be structured to indicate the state of a virtual page address of the page pointer table. The one or more counters may be implemented to navigate a list linked to a bitmap to reach a cell to update the change log relative to a specified virtual page address used as an entry in the change log. Firmware 1125 may include instructions to update the change log. The instructions may include the following instructions: initiate a search in a change log in a storage device using a virtual page address as an entry in the change log; identify an index for a specified virtual page address; determine a page pointer table associated with the index using the index; check a state of a determined page pointer table in a page pointer table bitmap in the change log; in response to determining that the state of the determined page pointer table is stored in the change log, evaluate a position of the determined page pointer table in a list of page pointer tables, wherein the list is linked to a page pointer table bitmap; determine a position in a virtual page bitmap of the determined page pointer table corresponding to the index; check a state of a specified virtual page in the change log at the position in the virtual page bitmap of the determined page pointer table; in response to determining that the state of the specified virtual page address is stored in the change log, evaluate the position of the index in a list of virtual pages, wherein the list of virtual pages is linked to the virtual page bitmap; and update information about the specified virtual page address at the position of the index in the list of virtual pages. The updating of information may include removing the position of the index in the list of virtual pages.
[0121] The change log associated with the memory system 1110 may be structured with an allocated amount of storage space in the storage device 1114. The firmware 1125 may include instructions for triggering a program to load the PPT from one or more of the memory devices 1112-1, 1112-2, 1112-3, 1112-4, 1112-5, and 1112-6 or another memory device to the RAM or another storage device (e.g., the storage device 1114), update the page pointer table in the RAM, and flush the page pointer table from the RAM to the one or more memory devices 1112-1, 1112-2, 1112-3, 1112-4, 1112-5, and 1112-6 or another memory device upon determining that the allocated amount of storage space is used by the change log.
[0122] The instructions of the firmware 1125 may be executed, for example, by the processing device 1115 to perform a determination of a page pointer table associated with an index, the determination comprising an integer division of the index divided by a number equal to the total number of page pointer tables allocated for the change log. The evaluation of the position of the determined page pointer table in the list of page pointer tables may include counting the number of confirmed bits in the page pointer table bitmap that precede the bit of the determined page pointer table. The instructions of the firmware 1125 may be executed, for example, by the processing device 1115 to perform a determination of the position of the index in the virtual page bitmap of the determined page pointer table, the determination comprising a modulo operation of the index and a number equal to the total number of page pointer tables allocated for the change log. The evaluation of the position of the index in the virtual page list may include counting the number of confirmed bits in the virtual page list of the determined page pointer table that precede the bit of the index in the virtual page list.
[0123] The system 1100 for claim protection may include a hardware accelerator 1170 for counting the number of confirmed bits in a memory range. The hardware accelerator 1170 may be arranged as a component of the memory system 1110 or as a separate device to count the confirmed bits in the bitmap and the list linked to the bitmap in the storage device 1114, thereby performing the function of the change log, as taught herein. The hardware accelerator 1170 may include a plurality of counters 1172 and a plurality of registers 1174 to include data related to the start of the memory range, the direction of the count, and the result of the count. The plurality of counters 1172 may include a counter for each bitmap of the change log. The plurality of counters 1172 may include a single counter used with the bitmap and linked list associated with the change log. The plurality of counters 1172 may include a counter for the bitmap and linked list of the PPT and another counter for the bitmap and linked list of the VP. Counter 1172 may be arranged to count the number of bits in the page pointer table bitmap asserted to identify the page pointer table as stored in the change log. Counter 1172 may be arranged to count the number of bits in the virtual page bitmap of a given page pointer table asserted to identify a virtual page address stored in the change log.
[0124] Fig.121 is a flow chart of features of an embodiment of an example method 1200 of operating a change log, wherein the change log is implemented to correlate virtual page addresses in a memory device with physical addresses. The method 1200 may be implemented using one or more processing devices executing instructions stored in firmware. At 1210, a storage size of a change log in a storage device is controlled using a bitmap, a list linked to the bitmap, and a counter of confirmed bits in the bitmap. At 1220, the change log is updated using the bitmap, the list, and the counter of confirmed bits in the bitmap. Using the bitmap may include using a bitmap to identify the state of a page pointer table in the change log, and using another bitmap to identify the state of a virtual page address of the page pointer table. Using the counter may include navigating a list linked to a bitmap to reach a cell to update the change log relative to a specified virtual page address used as an entry in the change log.
[0125] Fig.13 1300 is a flow chart of features of an embodiment of an example method 1300 for updating a change log in a storage device, wherein the change log is implemented to correlate virtual page addresses in a memory device with physical addresses. The updated change log can be implemented according to the change log associated with method 1200. Method 1300 can be implemented using one or more processing devices that execute instructions stored in firmware. At 1310, a search is initiated in a change log in a storage device using a specified virtual page address to be updated as an entry in the change log. At 1320, an index of the specified virtual page address is identified. At 1330, a page pointer table associated with the index is determined using the index. Determining the page pointer table associated with the index may include performing an integer division of the index divided by a number equal to the total number of page pointer tables allocated for the change log.
[0126] At 1340, a state of the determined page pointer table in the change log is checked in a page pointer table bitmap. At 1350, in response to determining that the state of the determined page pointer table is stored in the change log, a position of the determined page pointer table in a list of page pointer tables is evaluated, wherein the list is linked to the page pointer table bitmap. Evaluating the position of the determined page pointer table in the list of page pointer tables may include counting a number of confirmed bits in the list of page pointer tables that precede a bit of the determined page pointer table.
[0127] At 1360, a location in a virtual page bitmap of the determined page pointer table corresponding to the index is determined. Determining the location in the virtual page bitmap of the determined page pointer table corresponding to the index may include performing a modulo operation of the index and a number equal to the total number of page pointer tables allocated for the change log. At 1370, a status of a specified virtual page address in the change log is checked at the location in the virtual page bitmap of the determined page pointer table.
[0128] At 1380, in response to determining that the state of the specified virtual page address is stored in the change log, evaluating the position of the index in the virtual page list, wherein the virtual page list is linked to the virtual page bitmap. Evaluating the position of the index in the virtual page list may include counting the number of confirmed bits in the virtual page list of the determined page pointer table that precede the bit of the index in the virtual page list. At 1390, updating information about the specified virtual page address corresponding to the position of the index in the virtual page list.
[0129] Variations of method 1200, methods similar to method 1200, method 1300, methods similar to method 1300, combinations of method 1200 and method 1300, and combinations of methods similar to method 1200 and methods similar to method 1300 may include several different embodiments, which may be combined depending on the application of such methods and / or the architecture of the system in which such methods are implemented.
[0130] Firmware for operating one or more memory devices may include instructions, such as microcode, which when executed by a processing device may cause operations to be performed, the operations including operations to operate a change log, wherein the change log is implemented to correlate virtual page addresses in the memory device with physical addresses. The processing device may be implemented as a set of one or more processing devices, such as, but not limited to, a set of one or more processors, a set of one or more memory controllers, or a combination thereof.
[0131] The operations performed by executing the instructions of the firmware by the processing device may include the operations of performing the tasks of method 1200, a method similar to method 1200, method 1300, a method similar to method 1300, a combination of method 1200 and method 1300, a combination of methods similar to method 1200 and methods similar to method 1300, and other similar operations as taught herein. The operations performed by executing the instructions of the firmware by the processing device may include the operations of performing the functions of the system as taught herein. The variations of the above firmware or firmware-like instructions may include several different embodiments, which may be combined according to the application of such firmware and / or the architecture of the system in which such firmware is implemented. Such instructions of the firmware, when executed by one or more processing devices, may enable operations to be performed, which may include controlling the storage size of a change log in a storage device using a bitmap linked to a list of bitmaps and a counter of confirmed bits in the bitmap, the change log being implemented to associate virtual page addresses with physical addresses in the memory device; and updating the change log using the bitmap, the list, and the counter of confirmed bits in the bitmap. Operations using the bitmaps may include using one bitmap to identify a state of a page pointer table in the change log and using another bitmap to identify a state of a virtual page address of the page pointer table. Operations using the counters may include navigating a list linked to a bitmap to reach a cell to update the change log relative to a specified virtual page address used as an entry in the change log.
[0132] The instructions of the firmware, when executed by one or more processing devices, may enable operations to update a change log, which operations may include: initiating a search in a change log in a storage device using a specified virtual page address as an entry in the change log; identifying an index of the specified virtual page address; using the index to determine a page pointer table associated with the index; checking a state of a determined page pointer table in the change log in a page pointer table bitmap; in response to determining that the state of the determined page pointer table is stored in the change log, evaluating a position of the determined page pointer table in a page pointer table list, the list being linked to a page pointer table bitmap; determining a position in a virtual page bitmap of the determined page pointer table corresponding to the index; checking a state of a specified virtual page address in the change log at the position in the virtual page bitmap of the determined page pointer table; in response to determining that the state of the specified virtual page address is stored in the change log, evaluating the position of the index in a virtual page list, the virtual page list being linked to a virtual page bitmap; and updating information about the specified virtual page address corresponding to the position of the index in the virtual page list.
[0133] Variations of the instructions of the firmware or similar firmware described above may include several different embodiments, which may be combined depending on the application of such firmware and / or the architecture of the system in which such firmware is implemented. The operation of executing the firmware instructions may include several operations. The operation of determining the page pointer table associated with the index may include performing an integer division of the index divided by a number equal to the total number of page pointer tables allocated for the change log. The operation of determining the position corresponding to the index in the virtual page bitmap of the determined page pointer table may include performing a modulo operation of the index and a number equal to the total number of page pointer tables allocated for the change log. The operation of evaluating the position of the determined page pointer table in the page pointer table list may include counting the number of confirmed bits in the page pointer table list that precede the bit of the determined page pointer table. The operation of evaluating the position of the index in the virtual page list may include counting the number of confirmed bits in the virtual page list of the determined page pointer table that precede the bit of the index in the virtual page list.
[0134] In various embodiments, a system may include a memory device and a memory device storing a change log, wherein an identification of a virtual page address is an entry point for determining a physical address in the memory device, wherein the change log is implemented to correlate virtual page addresses in the memory device with physical addresses. The change log may be used for a group of memory devices. The change log may include: a page pointer table bitmap for identifying a storage state of a page pointer table in the change log; a virtual page bitmap for each page pointer table indexed in the page pointer table bitmap, each virtual page bitmap arranged to identify a storage state of a virtual page address in the change log using an index of a virtual page address; a page pointer table list stored in the change log, the list linked to the page pointer table bitmap; and a virtual page list for each page pointer table in the page pointer table list, each virtual page list identifying a virtual page address stored in the change log, the virtual page list linked to the virtual page bitmap.
[0135] As taught herein, variations of the system and features thereof may include several different embodiments and features that may be combined depending on the application of such system and / or the architecture in which the system is implemented. Features of such system may include indexes written with integers in a sequential order starting from an initial integer, wherein the indexes are assigned to page pointer tables in a sequential order defined by the number of indices of each page pointer table. Each page pointer table may have the same number of assigned indices as other page pointer tables represented by a change log. A value in a certain position of a page pointer table bitmap may identify that a page pointer table associated with the position is stored in the change log, and a value in a certain position of a virtual page bitmap of a page pointer table may identify that a virtual page associated with the position of the virtual page bitmap of the page pointer table is stored in the change log.
[0136] As taught herein, variations of the system may include a counter for counting the number of bits in a page pointer table bitmap that are asserted to identify a page pointer table as stored in a change log. Such a system may include a counter for counting the number of bits in a virtual page bitmap of a given page pointer table that are asserted to identify a virtual page address stored in a change log. Multiple counters may be implemented by a single counter having instructions in a controller or firmware to regulate its use.
[0137] As taught herein, variations of the system may include a change log having an allocated amount of storage space in a storage device. Upon determining that the allocated amount of storage space is used by the change log, the system may be configured to trigger a procedure to load a page pointer table from the NAND memory device to the RAM, update the page pointer table in the RAM, and flush the page pointer table from the RAM to the NAND memory device.
[0138] In various embodiments, a system may include firmware storing instructions that are executable by one or more processing devices to perform the following operations: control the storage size of a change log in a storage device using a bitmap, a list linked to the bitmap, and a counter of confirmed bits in the bitmap, the change log being implemented to relate virtual page addresses in the memory device to physical addresses; and update the change log using the bitmap, the list, and the counter of confirmed bits in the bitmap. One of the bitmaps may be structured to indicate the state of a page pointer table in the change log, and another of the bitmaps may be structured to indicate the state of a virtual page address of the page pointer table. The counter may be implemented to navigate a list linked to a bitmap to reach a cell to update the change log relative to a specified virtual page address used as an entry in the change log. The bitmap, the linked list, and the counter, which may be implemented as one or more counters, may be structured to perform various functions taught herein. The system may include a hardware accelerator for counting the number of confirmed bits in a memory range. The hardware accelerator may include a number of registers for containing data related to the start of the memory range, the direction of the count, and the result of the count.
[0139] As taught herein, variations of the system and its features may include several different embodiments, which may be combined depending on the application of such system and / or the architecture in which the system is implemented.Such variations of the system may include various operations from executing instructions in firmware. The firmware may have instructions for updating a change log, including the following instructions: initiating a search in a change log in a storage device using a specified virtual page address as an entry in the change log; identifying an index of the specified virtual page address; using the index to determine a page pointer table associated with the index; checking a state of a determined page pointer table in the change log in a page pointer table bitmap; in response to determining that the state of the determined page pointer table is stored in the change log, evaluating a position of the determined page pointer table in a page pointer table list, the list being linked to a page pointer table bitmap; determining a position in a virtual page bitmap of the determined page pointer table corresponding to the index; at the position in the virtual page bitmap of the determined page pointer table, checking a state of a specified virtual page in the change log; in response to determining that the state of the specified virtual page address is stored in the change log, evaluating a position of the index in a virtual page list, the virtual page list being linked to a virtual page bitmap; and updating information about the specified virtual page address at the position of the index in the virtual page list.
[0140] The various operations from executing instructions in the firmware may include a number of determinations, evaluations, and updates. Determining a page pointer table associated with the index may include an integer division of the index divided by a number equal to the total number of page pointer tables allocated for the change log. Evaluating the position of the determined page pointer table in the page pointer table list may include counting the number of confirmed bits in the page pointer table bitmap that precede the bit of the determined page pointer table. Determining the position of the index in the virtual page bitmap of the determined page pointer table may include a modulo operation of the index and a number equal to the total number of page pointer tables allocated for the change log. Evaluating the position of the index in the virtual page list may include counting the number of confirmed bits in the virtual page list of the determined page pointer table that precede the bit of the index in the virtual page list. Updating information may include removing the position of the index in the virtual page list.
[0141] Fig.14is a block diagram of an embodiment of an example system 1400 having a log 1456 that associates virtual page addresses of one or more memory devices with physical addresses of the one or more memory devices. The system 1400 may also include a set of one or more counters 1472. The log 1456 may include first locations 1465 associated with a plurality of indices of respective virtual page addresses, wherein the first locations 1465 may contain an identifier of a state of the respective virtual page addresses in the log 1456. The log 1456 may include second locations 1461 for identifying a state of a page pointer table in the log 1456, each second location 1461 being able to be associated with a respective set of the plurality of indices. The one or more counters 1472 may be arranged to count the number of second locations 1461 containing an identifier of a page pointer table associated with a respective second location stored in the log 1456, and count the number of indices in the set associated with the respective second location. Each element of the first location 1465 and each element of the second location 1461 may have a position for one or more bits. The log 1461 may be arranged such that the first position 1465 and the second position 1461 are arranged as a bitmap.
[0142] As taught herein, variations of system 1400 and its features may include several different embodiments, which may be combined depending on the application of such system and / or the architecture in which the system is implemented. Such variations of system 1400 may include that each second position 1461 can be associated with a maximum number of multiple indexes, wherein the maximum number is the same for each second position. Such variations of system 1400 may include that a page pointer table associated with a specific virtual page address used as a search entry for log 1461 is identified by an integer division of the index of the specific virtual page address divided by the maximum number. Such variations of system 1400 may include that entries in log 1456 can be overwritten. Log 1456 may be included in a random access memory separated from a memory device. The one or more counters 1472 may include a hardware accelerator. System 1400 may be arranged to have an architecture and function as a change log, as taught herein.
[0143] Following are example embodiments of systems and methods according to the teachings herein.
[0144] An example system 1 may include: a memory device; and a memory device storing a change log, wherein an identifier of a virtual page address is an entry point for determining a physical address in the memory device, the change log being implemented to correlate virtual page addresses with physical addresses in the memory device, the change log comprising: a page pointer table bitmap for identifying a storage state of a page pointer table in the change log; a virtual page bitmap for each page pointer table indexed in the page pointer table bitmap, each virtual page bitmap being arranged to identify a storage state of a virtual page address in the change log using an index of the virtual page address; a page pointer table list stored in the change log, the list being linked to the page pointer table bitmap; and a virtual page list for each page pointer table in the page pointer table list, each virtual page list identifying a virtual page address stored in the change log, the virtual page list being linked to the virtual page bitmap.
[0145] Example system 2 may include features of example system 1, and may include the indexes being written with integers in sequential order starting from an initial integer, and the indexes being assigned to page pointer tables in sequential order defined by the index number of each page pointer table.
[0146] Example system 3 may include features of any of the previous example systems, and may include each page pointer table having the same number of allocated indexes as other page pointer tables represented by the change log.
[0147] Example system 4 may include features of any of the previous example systems, and may include a value in a position of the page pointer table bitmap identifying that the page pointer table associated with the position is stored in the change log, and a value in a position of the virtual page bitmap of the page pointer table identifying that the virtual page associated with the position of the virtual page bitmap of the page pointer table is stored in the change log.
[0148] Example system 5 may include features of any of the previous example systems, and may include a counter for counting the number of bits in the page pointer table bitmap that are asserted to identify a page pointer table as stored in the change log.
[0149] Example system 6 may include features of any of the previous example systems, and may include a counter for counting the number of bits in the virtual page bitmap of a given page pointer table that are asserted to identify a virtual page address stored in the change log.
[0150] Example system 7 may include features of any of the previous example systems, and may include the change log having an allocated amount of storage space in the storage device, and upon determining that the allocated amount of storage space is used by the change log, the system is configured to trigger a procedure for loading a page pointer table from a NAND memory device to a random access memory (RAM), updating the page pointer table in the RAM, and refreshing the page pointer table from the RAM to the NAND memory device.
[0151] The example system 8 may include: firmware storing instructions executable by a processing device to: control a storage size of a change log in a storage device using a bitmap, a list linked to the bitmap, and a counter of confirmed bits in the bitmap, the change log being implemented to correlate virtual page addresses with physical addresses in the memory device; and update the change log using the bitmap, the list, and the counter of confirmed bits in the bitmap.
[0152] Example system 9 may include features of example system 8, and may include one of the bitmaps structured to indicate a state of a page pointer table in the change log, and another of the bitmaps structured to indicate a state of a virtual page address of the page pointer table.
[0153] Example system 10 may include features of any of previous example systems 8 and 9, and may include the counter being implemented to navigate one of the lists linked to one of the bitmaps to reach a cell to update the change log relative to a specified virtual page address used as an entry of the change log.
[0154] The example system 11 may include features of any of the previous example systems 8-10, and may include instructions for the firmware to update the change log, including the following instructions: initiate a search in the change log in the storage device using a specified virtual page address as an entry in the change log; identify an index of the specified virtual page address; use the index to determine a page pointer table associated with the index; check a state of the determined page pointer table in the change log in a page pointer table bitmap; in response to determining that the state of the determined page pointer table is stored in the change log, evaluate a position of the determined page pointer table in a page pointer table list, the list being linked to the page pointer table bitmap; determine a position in a virtual page bitmap of the determined page pointer table corresponding to the index; at the position in the virtual page bitmap of the determined page pointer table, check the state of the specified virtual page in the change log; in response to determining that the state of the specified virtual page address is stored in the change log, evaluate the position of the index in a virtual page list, the virtual page list being linked to the virtual page bitmap; and update information about the specified virtual page address at the position of the index in the virtual page list.
[0155] Example system 12 may include features of any of previous example systems 8-11 and may include determining the page pointer table associated with the index includes an integer division of the index divided by a total number of page pointer tables allocated for the change log.
[0156] Example system 13 may include features of any of previous example systems 8-12, and may include evaluating the position of the determined page pointer table in the page pointer table list including counting a number of confirmed bits preceding a bit of the determined page pointer table in the page pointer table bitmap.
[0157] Example system 14 may include features of any of previous example systems 8-13, and may include determining the position of the index in the virtual page bitmap of the determined page pointer table comprising a modulo operation of the index and a number equal to the total number of page pointer tables allocated for the change log.
[0158] Example system 15 may include features of any of previous example systems 8-14, and may include evaluating the position of the index in the virtual page list including counting a number of validated bits preceding a bit of the index in the virtual page list in the virtual page list of the determined page pointer table.
[0159] Example system 16 may include features of any of the previous example systems 8-15, and may include updating information including removing the position of the index in the virtual page list.
[0160] Example system 17 may include features of any of the previous example systems 8-16, and may include a hardware accelerator for counting the number of asserted bits in a memory range.
[0161] Example system 18 may include features of any of the previous example systems 8-17, and may include the hardware accelerator including registers for containing data related to the start of the memory range, the direction of the count, and the result of the count.
[0162] The example system 19 may include: a log that associates virtual page addresses of a memory device with physical addresses of the memory device, the log comprising: a first position associated with a plurality of indexes of corresponding virtual page addresses, the first position containing an identifier of a state of the corresponding virtual page address in the log; a second position for identifying a state of a page pointer table in the log, each second position being capable of being associated with a corresponding set of the plurality of indexes; and one or more counters for counting the number of the second positions containing an identifier of a page pointer table associated with a corresponding second position stored in the log, and counting the number of indexes in the set associated with the corresponding second position.
[0163] Example system 20 may include features of example system 19 and may include that each second position can be associated with a maximum number of multiple indexes, the maximum number being the same for each second position.
[0164] Example system 21 may include features of any of previous example systems 19 and 20 and may include a page pointer table associated with a particular virtual page address used as a search entry for the log identified by an integer division of an index of the particular virtual page address divided by the maximum number.
[0165] Example system 22 may include features of any of the previous example systems 19 - 21 and may include the ability for entries in a log to be overwritten.
[0166] The example system 23 may include features of any of the previous example systems 19 - 22 , and may include the log being contained in a random access memory separate from the memory device.
[0167] The example system 24 may include features of any of the previous example systems 19-23, and may include the one or more counters including hardware accelerators.
[0168] Example method 1 may include: controlling the storage size of a change log in a storage device using a bitmap, a list linked to the bitmap, and a counter of confirmed bits in the bitmap, the change log being implemented to correlate virtual page addresses with physical addresses in the memory device; and updating the change log using the bitmap, the list, and the counter of confirmed bits in the bitmap.
[0169] Example method 2 may include features of example method 1, and may include using bitmaps including using one of the bitmaps to identify a state of a page pointer table in the change log and using another of the bitmaps to identify a state of a virtual page address of the page pointer table.
[0170] Example method 3 may include features of any of the previous example methods, and may include using the counter to include navigating links to one of the lists of the bitmap to reach a cell, thereby updating the change log relative to a specified virtual page address used as an entry of the change log.
[0171] Example method 4 may include features of any of the previous example methods, and may include updating the change log including: initiating a search in the change log in the storage device using a specified virtual page address as an entry in the change log; identifying an index of the specified virtual page address; using the index to determine a page pointer table associated with the index; checking a state of the determined page pointer table in the change log in a page pointer table bitmap; in response to determining that the state of the determined page pointer table is stored in the change log, evaluating a position of the determined page pointer table in a page pointer table list, the list being linked to the page pointer table bitmap; determining a position in a virtual page bitmap of the determined page pointer table corresponding to the index; checking a state of the specified virtual page address in the change log at the position in the virtual page bitmap of the determined page pointer table; in response to determining that the state of the specified virtual page address is stored in the change log, evaluating a position of the index in a virtual page list, the virtual page list being linked to the virtual page bitmap; and updating information about the specified virtual page address corresponding to the position of the index in the virtual page list.
[0172] Example method 5 may include features of any of the previous example methods, and may include determining the page pointer table associated with the index comprising performing an integer division of the index divided by a number equal to the total number of page pointer tables allocated for the change log, and determining the position in the virtual page bitmap of the determined page pointer table corresponding to the index comprises performing a modulo operation of the index and a number equal to the total number of page pointer tables allocated for the change log.
[0173] Example method 6 may include features of any of the previous example methods, and may include evaluating the position of the determined page pointer table in the page pointer table list including counting the number of confirmed bits that precede the bit of the determined page pointer table in the page pointer table list, and evaluating the position of the index in the virtual page list including counting the number of confirmed bits that precede the bit of the index in the virtual page list in the virtual page list of the determined page pointer table.
[0174] Example method 7 may include features of any of the previous example methods, and may include performing functions associated with any features of example systems 1 - 7 , example systems 8 - 18 , and example systems 19 - 24 .
[0175] In different examples, the components, controllers, processors, units, engines, or tables described herein may include physical circuitry or firmware stored on a physical device, etc. As used herein, "processor" means any type of computing circuit, such as (but not limited to) a microprocessor, a microcontroller, a graphics processor, a digital signal processor (DSP), or any other type of processor or processing circuit, including a group of processors or multi-core devices.
[0176] As used herein, operating a memory cell includes reading from the memory cell, writing to the memory cell, or erasing the memory cell. The operation of placing a memory cell in a given state is referred to herein as "programming" and may include writing to or erasing from a memory cell (e.g., a memory cell may be programmed to an erased state).
[0177] According to one or more embodiments, a memory controller (e.g., a processor, controller, firmware, etc.) located inside or outside a memory device can determine (e.g., select, set, adjust, calculate, change, clear, transfer, adapt, derive, define, utilize, modify, apply, etc.) the number of wear cycles, or a wear state (e.g., record wear cycles, count operations of the memory device as they occur, track operations of the memory device from which they originate, evaluate memory device characteristics corresponding to the wear state, etc.).
[0178] According to one or more embodiments, a memory access device may be configured to provide wear cycle information to a memory device with respect to each memory operation. The memory device control circuitry (e.g., control logic) may be programmed to compensate for memory device performance changes corresponding to the wear cycle information. The memory device may receive the wear cycle information and determine one or more operating parameters (e.g., values, characteristics) in response to the wear cycle information.
[0179] The method examples described herein may be implemented at least in part by a machine or computer. Some examples may include a computer-readable medium or machine-readable medium encoded with instructions, which are operable to configure an electronic device to perform a method as described in the above example. The implementation of such methods may include code, such as microcode, assembly language code, high-level language code, etc. Such code may include computer-readable instructions for performing various methods. The code may form part of a computer program product. In addition, the code may be tangibly stored on one or more volatile or non-volatile tangible computer-readable media, such as during execution or at other times. Examples of these tangible computer-readable media may include, but are not limited to: hard disks, removable disks, removable optical disks (e.g., compact disks and digital video disks), cassettes, memory cards or sticks, random access memory (RAM), read-only memory (ROM), solid-state drives (SSD), universal flash storage (UFS) devices, embedded MMC (eMMC) devices, etc.
[0180] In various embodiments, an L2P change log that potentially covers the LBAs of a complete set of memory devices can be implemented as an expandable storage area that can be allocated based on usage. The allocated area can be structured to provide fast access to the change log context, thereby eliminating complex search and sorting algorithms. A change log element can be accessed knowing its exact location within the change log. In this representation of the change log, the steps for knowing the location of an element within the change log can be deterministic and predictable. In such a change log architecture, a single virtual page overwrite can be performed directly on a specific VP without consuming the allocated area, which can avoid recording the history of a specific VP.
[0181] Although specific embodiments have been shown and described herein, it will be appreciated by those skilled in the art that any arrangement calculated to achieve the same purpose may replace the specific embodiments shown. Various embodiments use permutations and / or combinations of the embodiments described herein. It should be understood that the above description is intended to be illustrative rather than limiting, and that the wording or terminology employed herein is for illustrative purposes.
Claims
1. A method for operating a memory device, comprising: controlling a storage size of a change log in a storage device using a bitmap, a list linked to the bitmap, and a counter of asserted bits in the bitmap, the change log being implemented to correlate virtual page addresses with physical addresses in the memory device; as well as The change log is updated using the bitmap, the list, and the counter of asserted bits in the bitmap, wherein the bitmap comprises a page pointer table bitmap arranged to identify a storage state of a page pointer table in the change log.
2. The method of claim 1, wherein using the counter comprises navigating one of the lists linked to one of the bitmaps to reach a cell to update the change log relative to a specified virtual page address used as an entry of the change log.
3. A method for operating a memory device, comprising: controlling a storage size of a change log in a storage device using a bitmap, a list linked to the bitmap, and a counter of asserted bits in the bitmap, the change log being implemented to correlate virtual page addresses with physical addresses in the memory device; as well as The change log is updated using the bitmap, the list, and the counter of validated bits in the bitmap, wherein using the bitmap includes using one of the bitmaps to identify a state of a page pointer table in the change log and using another of the bitmaps to identify a virtual page address of the page pointer table.
4. A method of operating a memory device, comprising: controlling a storage size of a change log in a storage device using a bitmap, a list linked to the bitmap, and a counter of asserted bits in the bitmap, the change log being implemented to correlate virtual page addresses with physical addresses in the memory device; as well as Updating the change log using the bitmap, the list, and the counter of validated bits in the bitmap, wherein updating the change log comprises: initiating a search in the change log in the storage device using a specified virtual page address as an entry in the change log; Identifying an index of the specified virtual page address; Using the index, determining a page pointer table associated with the index; Checking the state of the determined page pointer table in the change log in the page pointer table bitmap; In response to determining that the state of the determined page pointer table is stored in the change log, evaluating a position of the determined page pointer table in a list of page pointer tables, the list being linked to the page pointer table bitmap; determining a position corresponding to the index in a virtual page bitmap of the determined page pointer table; checking, at the position in the virtual page bitmap of the determined page pointer table, a status of the specified virtual page address in the change log; In response to determining that the state of the specified virtual page address is stored in the change log, evaluating a position of the index in a virtual page list linked to the virtual page bitmap; as well as Information about the specified virtual page address corresponding to the position of the index in the virtual page list is updated.
5. The method of claim 4 , wherein determining the page pointer table associated with the index comprises performing an integer division of the index divided by a number equal to a total number of page pointer tables allocated for the change log, and determining the position in the virtual page bitmap of the determined page pointer table corresponding to the index comprises performing a modulo operation of the index and a number equal to the total number of page pointer tables allocated for the change log.
6. The method of claim 4 , wherein evaluating the position of the determined page pointer table in the page pointer table list comprises counting the number of confirmed bits in the page pointer table list that precede the bit of the determined page pointer table, and evaluating the position of the index in the virtual page list comprises counting the number of confirmed bits in the virtual page list of the determined page pointer table that precede the bit of the index in the virtual page list.
7. A memory system comprising: Memory device; as well as A storage device storing a change log, wherein an identification of a virtual page address is an entry point for determining a physical address in the storage device, the change log being implemented to correlate virtual page addresses with physical addresses in the storage device, the change log comprising: a page pointer table bitmap, used to identify the storage state of the page pointer table in the change log; a virtual page bitmap for each page pointer table indexed in the page pointer table bitmap, each virtual page bitmap arranged to identify a storage state of a virtual page address in the change log using an index of the virtual page address; a page pointer table list stored in the change log, the list being linked to the page pointer table bitmap; as well as A virtual page list for each page pointer table in the page pointer table lists, each virtual page list identifying a virtual page address stored in the change log, the virtual page lists being linked to the virtual page bitmap.
8. The memory system of claim 7, wherein the indexes are written with integers in sequential order starting from an initial integer, and the indexes are assigned to the page pointer tables in sequential order defined by the number of indices of each page pointer table.
9. The memory system of claim 8, wherein each page pointer table has the same number of allocated indexes as other page pointer tables represented by the change log.
10. The memory system of claim 7 , wherein a value in a certain position of the page pointer table bitmap identifies that a page pointer table associated with the position is stored in the change log, and a value in a certain position of a virtual page bitmap of the page pointer table identifies that a virtual page associated with the position of the virtual page bitmap of the page pointer table is stored in the change log.
11. The memory system of claim 7, wherein the memory system includes a counter for counting a number of bits in the page pointer table bitmap that are asserted to identify a page pointer table as stored in the change log.
12. The memory system of claim 7, wherein the memory system includes a counter for counting the number of bits in the virtual page bitmap of a given page pointer table that are asserted to identify a virtual page address stored in the change log.
13. The memory system of claim 7 , wherein the change log has an allocated amount of storage space in the storage device, and upon determining that the allocated amount of storage space is used by the change log, the memory system is configured to trigger a procedure of loading a page pointer table from a NAND memory device to a random access memory (RAM), updating the page pointer table in the RAM, and refreshing the page pointer table from the RAM to the NAND memory device.
14. A memory system comprising: Firmware storing instructions executable by a processing device to: controlling a storage size of a change log in a storage device using a bitmap, a list linked to the bitmap, and a counter of asserted bits in the bitmap, the change log being implemented to correlate virtual page addresses with physical addresses in the memory device; as well as The change log is updated using the bitmap, the list, and the counter of asserted bits in the bitmap, wherein the bitmap comprises a page pointer table bitmap arranged to identify a storage state of a page pointer table in the change log.
15. The memory system of claim 14, wherein the counter is implemented to navigate one of the lists linked to one of the bitmaps to reach a cell to update the change log relative to a specified virtual page address used as an entry of the change log.
16. A memory system comprising: Firmware storing instructions executable by a processing device to: controlling a storage size of a change log in a storage device using a bitmap, a list linked to the bitmap, and a counter of asserted bits in the bitmap, the change log being implemented to correlate virtual page addresses with physical addresses in the memory device; as well as The change log is updated using the bitmap, the list, and the counter of asserted bits in the bitmap, wherein one of the bitmaps is structured to indicate a state of a page pointer table in the change log and the other of the bitmaps is structured to indicate a state of a virtual page address of the page pointer table.
17. A memory system comprising: Firmware storing instructions executable by a processing device to: controlling a storage size of a change log in a storage device using a bitmap, a list linked to the bitmap, and a counter of asserted bits in the bitmap, the change log being implemented to correlate virtual page addresses with physical addresses in the memory device; as well as The change log is updated using the bitmap, the list, and the counter of validated bits in the bitmap, wherein the firmware has instructions for updating the change log including the following instructions: initiating a search in the change log in the storage device using a specified virtual page address as an entry in the change log; Identifying an index of the specified virtual page address; Using the index, determining a page pointer table associated with the index; Checking the state of the determined page pointer table in the change log in the page pointer table bitmap; In response to determining that the state of the determined page pointer table is stored in the change log, evaluating a position of the determined page pointer table in a list of page pointer tables, the list being linked to the page pointer table bitmap; determining a position corresponding to the index in a virtual page bitmap of the determined page pointer table; checking, at the position in the virtual page bitmap of the determined page pointer table, a status of the specified virtual page address in the change log; In response to determining that the state of the specified virtual page address is stored in the change log, evaluating a position of the index in a virtual page list linked to the virtual page bitmap; as well as Information about the specified virtual page address at the position of the index in the virtual page list is updated.
18. The memory system of claim 17, wherein determining the page pointer table associated with the index comprises an integer division of the index divided by a number equal to a total number of page pointer tables allocated for the change log.
19. The memory system of claim 17, wherein evaluating the position of the determined page pointer table in the page pointer table list comprises counting a number of validated bits that precede a bit of the determined page pointer table in the page pointer table bitmap.
20. The memory system of claim 17, wherein determining the position of the index in the virtual page bitmap of the determined page pointer table comprises a modulo operation of the index and a number equal to a total number of page pointer tables allocated for the change log.
21. The memory system of claim 17, wherein evaluating the position of the index in the virtual page list comprises counting a number of validated bits that precede a bit of the index in the virtual page list in the virtual page list of the determined page pointer table.
22. The memory system of claim 17, wherein updating information includes removing the position of the index in the virtual page list.
23. The memory system of claim 17, wherein the memory system comprises a hardware accelerator for counting the number of asserted bits in a memory range.
24. The memory system of claim 23, wherein the hardware accelerator comprises a plurality of registers for containing data related to the start of the memory range, the direction of the count, and the result of the count.
25. A memory system comprising: A log correlating virtual page addresses of a memory device with physical addresses of the memory device, the log comprising: a first location associated with a plurality of indices of a corresponding virtual page address, the first location containing an identifier of a state of the corresponding virtual page address in the log; as well as a second location for identifying a state of a page pointer table in the log, each second location being capable of being associated with a corresponding set of the plurality of indexes; as well as One or more counters for counting the number of second locations containing identifiers of page pointer tables associated with respective second locations stored in the log and for counting the number of indexes in the set associated with the respective second locations.
26. The memory system of claim 25, wherein each second location can be associated with a maximum number of the plurality of indices, the maximum number being the same for each second location.
27. The memory system of claim 26, wherein a page pointer table associated with a specific virtual page address used as a search entry for the log is identified by integer division using an index of the specific virtual page address divided by the maximum number.
28. The memory system of claim 25, wherein entries in the log can be overwritten.
29. The memory system of claim 25, wherein the log is contained in a random access memory separate from the memory device.
30. The memory system of claim 25, wherein the one or more counters comprise a hardware accelerator.
