Error correction code buffer reduction in memory devices

By using ECC circuitry to compress data in a non-volatile memory system and storing it along with the row index, the problems of buffer space and time costs are solved, achieving efficient utilization of the memory controller and fast data processing.

CN115206412BActive Publication Date: 2026-11-24SAMSUNG ELECTRONICS CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202210348128.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-04-06
Filing Date
2022-03-30
Publication Date
2026-11-24
Estimated Expiration
2042-03-30

AI Technical Summary

Technical Problem

In existing non-volatile memory systems, buffers that are too large occupy a lot of space, resulting in wasted memory controller space, while buffers that are too small increase the time cost of error checking and correction.

Method used

An error correction code (ECC) circuit is used to identify data rows that are not all zero and store them in a buffer along with the row index. The data is then compressed and written to the memory device, and the compressed data is used for error correction.

Benefits of technology

Without increasing error checking and correction time, the size of the buffer was reduced, saving space in the memory controller and improving data processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115206412B_ABST
    Figure CN115206412B_ABST
Patent Text Reader

Abstract

A memory system includes a memory device and a memory controller. The memory device includes a plurality of memory cells. The memory controller includes error correction code (ECC) circuitry. The ECC circuitry is configured to determine a non-all-zero data row of first write data and store the determined data row along with a corresponding row index in a buffer row of a buffer. The memory controller is configured to write second data based on the buffer into the memory device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Exemplary embodiments of the present invention relate to the use of buffers in memory, and more specifically, to using buffers to perform error checking and correction on data to be exchanged with non-volatile memory. Background Technology

[0002] Non-volatile memory is a type of computer memory that retains its stored information even after power is lost. Flash memory is an example of non-volatile memory. Non-volatile memory systems typically include a memory controller and non-volatile memory (NVM).

[0003] The memory controller may include error correction code (ECC) circuitry to correct data to be written to the NVM or read from the NVM. The ECC circuitry can use buffers to temporarily store data and any other information generated during error checking and correction. However, when the buffer size is large, the memory controller occupies a significant amount of space. Furthermore, when the buffer size is too small, performing error checking and correction can take a long time. Therefore, it is necessary to reduce the size of the buffer without increasing the amount of time required to perform error checking and correction. Summary of the Invention

[0004] According to an exemplary embodiment of the present invention, a memory system is provided. The memory system includes a memory device and a memory controller. The memory controller includes error correction code (ECC) circuitry. The ECC circuitry is configured to determine a non-all-zero data row of first write data and store the determined data row along with a corresponding row index in a buffer row of a buffer. The memory controller is configured to write second data based on the buffer into the memory device.

[0005] According to an exemplary embodiment of the present invention, a computer-implemented method for programming data into a memory system is provided. The method includes: a memory controller receiving a write request including first write data; an ECC circuit determining a non-all-zero data row within the first write data; the ECC circuit generating compressed data within the first write data including the determined data row and a corresponding row index; and the memory controller writing second write data based on the compressed data into the memory device.

[0006] According to an exemplary embodiment of the present invention, a computer-implemented method for reading data from a memory system is provided. The method includes: a memory controller receiving a read request including a read address from a host device; the memory controller reading first read data from the memory of the memory system based on the read address; an error correction code (ECC) circuit decompressing compressed data based on the first read data to generate second read data; and the memory controller outputting the second read data to the host device. The compressed data includes multiple rows, wherein each row includes data and a different stored row index. Attached Figure Description

[0007] The above and other features of the present invention will become more apparent from the detailed description of exemplary embodiments of the invention with reference to the accompanying drawings, in which:

[0008] Figure 1 This is a block diagram illustrating an embodiment of a data processing system including a memory system according to an exemplary embodiment of the present invention.

[0009] Figure 2 This is an exemplary embodiment of the concept of the present invention. Figure 1 Detailed block diagram of the non-volatile memory device.

[0010] Figure 3 This illustrates an exemplary embodiment of the concept according to the present invention. Figure 1 A block diagram of the memory system.

[0011] Figure 4 This is an exemplary embodiment of the concept of the present invention. Figure 2 A block diagram of a memory cell array.

[0012] Figure 5 This is an exemplary embodiment of the concept of the present invention. Figure 4 The circuit diagram of the memory block of the memory cell array.

[0013] Figure 6A and Figure 6B An exemplary embodiment of an ECC circuit based on the concept of the present invention is shown.

[0014] Figure 7A Exemplary pseudocode for compressing and decompressing data is shown, based on an exemplary embodiment of the present invention.

[0015] Figure 7B The use of an exemplary embodiment of the concept according to the present invention is shown. Figure 7A Compression is a method of programming data.

[0016] Figure 7C It shows that according to Figure 7AExamples of data that are compressed.

[0017] Figure 7D The use of an exemplary embodiment of the concept according to the present invention is shown. Figure 7A The method of decompressing to read data.

[0018] Figure 8A Exemplary pseudocode for compressing data is shown, based on an exemplary embodiment of the concept according to the present invention.

[0019] Figure 8B The use of an exemplary embodiment of the concept according to the present invention is shown. Figure 8A Compression is a method of programming data.

[0020] Figure 8C It shows that according to Figure 8A Examples of data that are compressed.

[0021] Figure 9A Exemplary pseudocode for decompressing data is shown, based on an exemplary embodiment of the present invention.

[0022] Figure 9B The use of an exemplary embodiment of the concept according to the present invention is shown. Figure 9A The method of decompressing to read data.

[0023] Figure 10 A compressor according to an exemplary embodiment of the present invention is shown.

[0024] Figure 11 A decompressor is shown as an exemplary embodiment of the invention; and

[0025] Figure 12 This is a block diagram of a computing system including a non-volatile memory system, which is an exemplary embodiment of the present invention. Detailed Implementation

[0026] Exemplary embodiments of the inventive concept will be described more fully below with reference to the accompanying drawings. Throughout the drawings, the same reference numerals may refer to the same elements.

[0027] It should be understood that the description of a feature or aspect in each exemplary embodiment should generally be regarded as another similar feature or aspect that may be used in other exemplary embodiments, unless the context clearly indicates otherwise.

[0028] As used herein, the singular forms “one” and “the” are intended to also include the plural forms unless the context clearly indicates otherwise.

[0029] Here, when a value is described as approximately equal to or substantially the same as or equal to another value, it will be understood that these values ​​are equal to each other within measurement error, or, if measurably unequal, are numerically close enough to be functionally equal to each other, as understood by one of ordinary skill in the art. For example, taking into account the measurements discussed and the errors associated with the measurement of a particular quantity (i.e., limitations of the measurement system), the term “approximately” as used herein includes the stated value and means within an acceptable deviation of the particular value as determined by one of ordinary skill in the art. For example, “approximately” could mean within one or more standard deviations as understood by one of ordinary skill in the art. Furthermore, it will be understood that while a parameter may be described herein as having “approximately” a certain value, according to exemplary embodiments, the parameter may be exactly that certain value or may be approximately that certain value within measurement error, as will be understood by one of ordinary skill in the art.

[0030] Figure 1 This is a block diagram illustrating an embodiment of a data processing system including a memory system according to an exemplary embodiment of the present invention.

[0031] Reference Figure 1 The data processing system 10 may include a host 100 and a storage system 200. Figure 1 The memory system 200 shown can be used in various systems that include data processing functions. These various systems can be various devices, including, for example, mobile devices such as smartphones or tablet computers. However, the range of devices is not limited to these.

[0032] The memory system 200 may include various types of memory devices. Here, exemplary embodiments of the inventive concept will be described as including memory devices as non-volatile memory. However, exemplary embodiments are not limited thereto. For example, the memory system 200 may include memory devices as volatile memory.

[0033] According to an exemplary embodiment, memory system 200 may include non-volatile memory devices, such as read-only memory (ROM), disks, optical disks, flash memory, etc. Flash memory may be a memory that stores data based on changes in the threshold voltage of a metal-oxide-semiconductor field-effect transistor (MOSFET), and may include, for example, NAND and NOR flash memory. Memory system 200 may be implemented using a memory card that includes non-volatile memory devices such as, for example, an embedded multimedia card (eMMC), a secure digital card (SD), a microSD card, or universal flash storage (UFS), or memory system 200 may be implemented using, for example, an SSD that includes non-volatile memory devices. Here, the configuration and operation of memory system 200 will be described assuming that memory system 200 is a non-volatile memory system. However, memory system 200 is not limited thereto. Host 100 may include, for example, a system-on-a-chip (SoC) application processor (AP) mounted on a mobile device, or a central processing unit (CPU) included in a computer system.

[0034] As described above, host 100 may include AP 110. AP 110 may include various intellectual property (IP) blocks. For example, AP 110 may include memory device driver 111 that controls non-volatile memory system 200. Host 100 may communicate with non-volatile memory system 200 to send commands related to memory operations (e.g., read commands, write commands, erase commands, etc.) and receive acknowledgment commands in response to the sent commands.

[0035] The non-volatile memory system 200 may include, for example, a memory controller 210 and a memory device 220. The memory controller 210 may receive commands related to memory operations from the host 100, use the received commands to generate internal commands and internal clock signals, and provide the internal commands and internal clock signals to the memory device 220. The memory device 220 may, in response to an internal command, store write data in a memory cell array, or may, in response to an internal command, provide read data to the memory controller 210.

[0036] Memory device 220 may include an array of memory cells that retains data stored therein even when memory device 220 is not powered on. The memory cell array may include memory cells such as NAND or NOR flash memory, magnetoresistive random access memory (MRAM), resistive random access memory (RRAM), ferroelectric random access memory (FRAM), or phase-change memory (PCM). For example, when the memory cell array includes NAND flash memory, the memory cell array may include multiple blocks and multiple pages. Data can be programmed and read in units of pages, and data can be erased in units of blocks. Examples of memory blocks included in a memory cell array are shown in […]. Figure 4 As shown in the image.

[0037] Figure 2 This is an exemplary embodiment of the concept of the present invention. Figure 1 Detailed block diagram of non-volatile memory device 220.

[0038] Reference Figure 2 The non-volatile memory device 220 may include, for example, a memory cell array 221, control logic 222, a voltage generation unit 223, a row decoder 224, and a page buffer 225.

[0039] The memory cell array 221 can be connected to one or more string select lines SSL, multiple word lines WL, one or more ground select lines GSL, and multiple bit lines BL. The memory cell array 221 may include multiple memory cells disposed at the intersections between the multiple word lines WL and the multiple bit lines BL.

[0040] Control logic 222 can receive commands (e.g., internal commands) and addresses (ADD) from memory controller 210, and also receives control signals (CTRL) from memory controller 210 for controlling various functional blocks within the non-volatile memory device 220. Control logic 222 can output various control signals for writing data to or reading data from memory cell array 221 based on commands (CMD), addresses (ADD), and control signals (CTRL). In this way, control logic 222 can control the overall operation of memory device 220.

[0041] Various control signals output by control logic 222 can be provided to voltage generation unit 223, row decoder 224, and page buffer 225. For example, control logic 222 can provide voltage control signal CTRL_vol to voltage generation unit 223, row address X-ADD to row decoder 224, and column address Y-ADD to page buffer 225.

[0042] The voltage generation unit 223 can generate various voltages for performing programming, reading, and erasing operations on the memory cell array 221 based on the voltage control signal CTRL_vol. For example, the voltage generation unit 223 can generate a first driving voltage VWL for driving multiple word lines WL, a second driving voltage VSSL for driving multiple string select lines SSL, and a third driving voltage VGSL for driving multiple ground select lines GSL. In this case, the first driving voltage VWL can be a programming voltage (e.g., write voltage), a read voltage, an erase voltage, a pass voltage, or a programming verification voltage. Furthermore, the second driving voltage VSSL can be a string select voltage (e.g., turn-on voltage or turn-off voltage). Furthermore, the third driving voltage VGSL can be a ground select voltage (e.g., turn-on voltage or turn-off voltage).

[0043] The row decoder 224 can be connected to the memory cell array 221 via multiple word lines WL, and can activate a portion of the multiple word lines WL in response to a row address X-ADD received from the control logic 222. For example, in a read operation, the row decoder 224 can apply a read voltage to the selected word line and apply a pass voltage to the unselected word line.

[0044] During programming operations, the line decoder 224 can apply a programming voltage to the selected word line and apply a pass voltage to the unselected word line. In an exemplary embodiment, in at least one of a plurality of programming cycles, the line decoder 224 can apply a programming voltage to the selected word line and another selected word line.

[0045] Page buffer 225 can be connected to memory cell array 221 via multiple bit lines BL. For example, in a read operation, page buffer 225 can operate as a sense amplifier that outputs data stored in memory cell array 221. Alternatively, in a programming operation, page buffer 225 can operate as a write driver that writes desired data to memory cell array 221.

[0046] Figure 3 This illustrates an exemplary embodiment of the concept according to the present invention. Figure 1 Block diagram of the memory system 200.

[0047] Reference Figure 3 The memory system 200 includes a memory device 220 and a memory controller 210. The memory controller 210 may also be referred to herein as a controller circuit. The memory device 220 can perform write operations, read operations, or erase operations under the control of the memory controller 210.

[0048] The memory controller 210 can control the memory device 220 depending on requests received from the host 100 or internally specified scheduling. The memory controller 210 may include a controller core 121, internal memory 124, host interface block 125, and memory interface block 126.

[0049] Controller core 121 may include page buffer 130 and ECC circuitry 131. Controller core 121 may control and access memory device 220 depending on requests received from host 100 or internally specified scheduling. Controller core 121 may manage and run various metadata and code for managing or manipulating memory system 200. In an exemplary embodiment of the inventive concept, ECC circuitry 131 performs error detection and correction on read data read from memory cells of memory device 220 or write data to be written to memory device. In embodiments, read data or write data is temporarily stored in a buffer of the ECC circuitry. The buffer may also be used to store information generated and used during error detection and correction.

[0050] The controller core 121 can sense the read voltage from a subset of memory cells in response to read commands and address information received from the host, convert the read voltage into codewords (including data and redundant information), and perform ECC operations on the codewords using ECC circuit 131.

[0051] ECC circuit 131 can perform ECC operations using a buffer with a smaller size compared to existing technologies. In an exemplary embodiment, in response to a write request from the host, ECC circuit 131 compresses the write data, stores the compressed data in an internal buffer, encodes and corrects errors in the stored data to generate corrected data, and controller core 121 writes the corrected data to memory device 220. In an exemplary embodiment, in response to a read request from the host, controller core 121 reads data from memory device 220, decodes and corrects errors in the read data to generate error-corrected data, decompresses the error-corrected data, and outputs the decompressed data to the host. Compression and decompression will be discussed in more detail below.

[0052] Internal memory 124 can be used as, for example, system memory used by controller core 121, cache memory for storing data of memory device 220, or buffer memory for temporarily storing data between host 100 and memory device 220. Internal memory 124 may additionally store a mapping table MT that indicates the relationship between logical addresses from host device 100 and physical addresses of memory device 220 allocated to memory system 200. Internal memory 124 may include, for example, dynamic random access memory (DRAM) or static random access memory (SRAM). Internal memory 124 may include one or more buffers.

[0053] Host interface block 125 may include components for communicating with host 100, such as, for example, a physical block. Memory interface block 126 may include components for communicating with memory device 220, such as, for example, a physical block.

[0054] The host interface block 125 can provide the memory control core 122 with a first request REQ1 received from the host 100. The first request REQ1 may include a command (e.g., a read command or a write command) and a logical address. The memory control core 122 can translate the first request REQ1 into a second request REQ2 suitable for the memory device 220.

[0055] For example, controller core 121 can convert the format of commands. Controller core 121 can obtain address information AI by referring to the mapping table MT stored in internal memory 124. Controller core 121 can use the address information AI to translate logical addresses into physical addresses of memory device 220. Controller core 121 can provide a second request REQ2 suitable for memory device 220 to memory interface block 126.

[0056] The memory interface block 126 can register a second request REQ2 from the controller core 121 in the queue. The memory interface block 126 can send the request that was first registered in the queue as a third request REQ3 to the memory device 220.

[0057] When the first request REQ1 is a write request, the host interface block 125 can write the data received from the host 100 to the internal memory 124. When the third request REQ3 is a write request, the memory interface block 126 can send the data stored in the internal memory 124 to the memory device 220.

[0058] When the data has been fully written, the memory device 220 may send a third response RESP3 to the memory interface block 126. In response to the third response RESP3, the memory interface block 126 may provide a second response RESP2 to the controller core 121, indicating that the data has been fully written.

[0059] After the data is stored in the internal memory 124 or after the second response RESP2 is received, the controller core 121 can send a first response RESP1 indicating completion of the request to the host 100 via the host interface block 125.

[0060] When the first request REQ1 is a read request, the read request can be sent to the memory device 220 via the second request REQ2 and the third request REQ3. The memory interface block 126 can store the data received from the memory device 220 in the internal memory 124. When the data has been completely sent, the memory device 220 can send a third response RESP3 to the memory interface block 126.

[0061] When the third response RESP3 is received, the memory interface block 126 can provide the controller core 121 with a second response RESP2 indicating that the data has been completely stored. When the second response RESP2 is received, the controller core 121 can send the first response RESP1 to the host 100 through the host interface block 125.

[0062] The host interface block 125 can send data stored in the internal memory 124 to the host 100. In an exemplary embodiment, if the data corresponding to the first request REQ1 is stored in the internal memory 124, the sending of the second request REQ2 and the third request REQ3 can be omitted.

[0063] Figure 4 and Figure 5 An example of implementing a memory system 200 using three-dimensional flash memory is shown. The three-dimensional flash memory may include three-dimensional (e.g., vertical) NAND (e.g., VNAND) memory cells. An embodiment of a memory cell array 221 including three-dimensional memory cells is described below. Each memory cell described below may be a NAND memory cell.

[0064] Figure 4 This is an exemplary embodiment of the concept of the present invention. Figure 2 A block diagram of the memory cell array 221.

[0065] Reference Figure 4The memory cell array 221 according to an exemplary embodiment includes a plurality of memory blocks BLK1 to BLKz. Each of the memory blocks BLK1 to BLKz has a three-dimensional structure (e.g., a vertical structure). For example, each of the memory blocks BLK1 to BLKz may include a structure extending upward in a first to third direction. For example, each of the memory blocks BLK1 to BLKz may include a plurality of NAND strings extending in a second direction. For example, a plurality of NAND strings may be provided upward in the first to third direction.

[0066] Each NAND string is connected to the bit line BL, the string select line SSL, the ground select line GSL, the word line WL, and the common source line CSL. That is, each of the memory blocks BLK1 to BLKz can be connected to multiple bit lines BL, multiple string select lines SSL, multiple ground select lines GSL, multiple word lines WL, and the common source line CSL. The following will refer to... Figure 5 The memory blocks BLK1 to BLKz are described in more detail.

[0067] Figure 5 This is a circuit diagram of a memory block BLKi according to an exemplary embodiment of the present invention. Figure 5 It shows Figure 4 An example of one of the memory blocks BLK1 to BLKz in the memory cell array 221.

[0068] The memory block BLKi may include multiple cell strings CS11 to CS41 and CS12 to CS42. The multiple cell strings CS11 to CS41 and CS12 to CS42 may be arranged in column and row directions to form columns and rows. Each of the cell strings CS11 to CS41 and CS12 to CS42 may include a ground selection transistor GST, memory cells MC1 to MC6, and a string selection transistor SST. The ground selection transistor GST, memory cells MC1 to MC6, and string selection transistor SST included in each of the cell strings CS11 to CS41 and CS12 to CS42 may be stacked in a height direction substantially perpendicular to the substrate.

[0069] Columns of multiple cell strings CS11 to CS41 and CS12 to CS42 can be connected to different string select lines SSL1 to SSL4 respectively. For example, the string select transistors SST of cell strings CS11 and CS12 can be connected together to string select line SSL1. The string select transistors SST of cell strings CS21 and CS22 can be connected together to string select line SSL2. The string select transistors SST of cell strings CS31 and CS32 can be connected together to string select line SSL3. The string select transistors SST of cell strings CS41 and CS42 can be connected together to string select line SSL4.

[0070] Rows of multiple cell strings CS11 to CS41 and CS12 to CS42 can be connected to different bit lines BL1 and BL2 respectively. For example, the string select transistors SST of cell strings CS11 to CS41 can be connected together to bit line BL1. The string select transistors SST of cell strings CS12 to CS42 can be connected together to bit line BL2.

[0071] Columns of multiple cell strings CS11 to CS41 and CS12 to CS42 can be connected to different ground select lines GSL1 to GSL4 respectively. For example, the ground select transistors GST of cell strings CS11 and CS12 can be connected to ground select line GSL1. The ground select transistors GST of cell strings CS21 and CS22 can be connected to ground select line GSL2. The ground select transistors GST of cell strings CS31 and CS32 can be connected to ground select line GSL3. The ground select transistors GST of cell strings CS41 and CS42 can be connected to ground select line GSL4.

[0072] Memory cells positioned at the same height from the substrate (or ground select transistor GST) can be connected to a single word line. Memory cells positioned at different heights from the substrate can be connected to different word lines WL1 to WL6. For example, memory cell MC1 can be connected to word line WL1. Memory cell MC2 can be connected to word line WL2. Memory cell MC3 can be connected to word line WL3. Memory cell MC4 can be connected to word line WL4. Memory cell MC5 can be connected to word line WL5. Memory cell MC6 can be connected to word line WL6. The ground select transistors GST of cell strings CS11 to CS41 and CS12 to CS42 can be connected to a common source line CSL.

[0073] Figure 6A and Figure 6B An exemplary embodiment of an ECC circuit 131 according to the present invention is shown. (Refer to...) Figure 6A The ECC circuit 131 includes a compressor 132, an ECC encoder 133, a decompressor 134, an ECC decoder 135, and a buffer 620. The compressor 132 compresses the data to be written to the memory device 220, stores the compressed data in a buffer within the buffer 620, and then the ECC encoder 133 encodes and error-correcting buffered data to generate corrected data for output to the memory device 220. The ECC decoder 135 decodes and error-corrects the data read from the memory device to generate corrected data, the decompressor 134 decompresses the corrected data, and the decompressed data is output to the host.

[0074] Figure 6BThe diagram shows a peripheral circuit 600 connected to a buffer interface having N columns (e.g., N can be a positive integer greater than 1) and M rows (e.g., M can be a positive integer greater than 1). For example, the peripheral circuit 600 could be a host interface block. Figure 6B The diagram shows that, once an embodiment of the inventive concept is adopted, the peripheral circuitry 600 can interact with buffer 620-1, which is a smaller buffer 620 due to the compressor 132 and decompressor 134. Buffer 620-1 includes N' columns and M' rows. In the embodiment, N' is the same as N but M' is less than M.

[0075] Figure 7A Pseudocode for compressing data to be written to memory and decompressing data read from memory, according to exemplary embodiments of the present disclosure, is shown. Figure 7B The exemplary embodiments of the present disclosure are shown for use. Figure 7A A method for compressing and writing data. Figure 7C It shows that it can be accessed through Figure 7A An example of compressed data produced by compression. Figure 7D It shows that it can be used Figure 7A A method for decompressing and reading compressed data from memory.

[0076] Figure 7B The method includes receiving a write request that includes the data to be written and the write address (step 701). For example, Figure 3 The host interface block 125 can receive write requests from the host. The write data can be temporarily stored in the page buffer 130.

[0077] The method in Figure 7B also includes checking the current data row being written (step 702). The checking of the current data row can correspond to... Figure 7A The second line of the compressor pseudocode references parameter i. For example, when the first data line of data is referenced during the first pass through the compressor pseudocode, i = 1; when the second data line of data is referenced during the second pass through the compressor pseudocode, i = 2, and so on.

[0078] Figure 7B The method also includes determining whether the current row of data is all zeros (step 703). For example, compressor 132 can compare the row data of the first row of page buffer 130 with the all-zero vector to determine whether the current row of data is all zeros. Figure 7A The third line of the compressor code represents a comparison.

[0079] If all row data is zero, then Figure 7BThe method proceeds to the next data row (step 704); however, if it is determined that the row data is not all zero, the data of the current data row and its index are stored in the current row of the data matrix, the process proceeds to the next row of the data matrix, and step 704 is executed (step 705). Figure 7A Lines 4 and 5 of the compressor code represent data storage and forwarding, and the parameter j in line 1 of the compressor code represents a row of the matrix. For example, if the data to be written includes a first row of data that is not all zeros, a second row of data that is all zeros, and a third row of data that is not all zeros, then the first row of the data matrix (i.e., j=1) will include the first row of data and index 1 (i.e., i=1), and the second row of the data matrix (i.e., j=1) will include the third row of data and index 3 (i.e., i=3). In this embodiment, the data matrix is ​​a buffer 620-1. The parameter i can be incremented forward to the next data row, and the parameter j can be incremented forward to the next row of the data matrix.

[0080] After proceeding to the next row of data Figure 7B The method includes determining whether all data that has been written has been traversed (step 706). If not all data has been traversed (e.g., another row of data has been written), the method returns to step 702. If all data has been traversed, then... Figure 7B The method involves writing the data matrix to the write address (step 707). For example, the controller core 121 can write the data matrix to the memory device 220. In an exemplary embodiment, the ECC encoder 133 encodes and corrects errors in the data matrix to produce corrected data, and the controller 121 writes the corrected data to the memory device 220. Because the data matrix does not include zero rows of data, the size of the data matrix is ​​smaller than the size of the original data stored in the page buffer 130. Therefore, the written data stored in the memory device 220 can be referred to as compressed data.

[0081] Figure 7C For example, because the original data consists of 4 rows of data all zeros, the original write data, which consists of 8 rows of data, is compressed into 4 rows of compressed data. For example, the first row of compressed data includes the first row of the original data and its row index 1, the second row of compressed data includes the fourth row of the original data and its row index 4, the third row of compressed data includes the sixth row of the original data and its row index 6, and the fourth row of compressed data includes the eighth row of the original data and its row index 8.

[0082] Figure 7D A method for reading back compressed data according to exemplary embodiments of this disclosure is shown. (The remaining text appears to be unrelated and likely refers to a separate topic.) Figure 7C To discuss compressed data Figure 7D The method.

[0083] Figure 7DThe method includes receiving a read request including a read address (step 711). For example, controller core 121 can receive a read request from a host via host interface block 125.

[0084] Figure 7D The method also includes reading data stored at the read address (step 712). For example, controller core 121 can read data from the location associated with the read address in memory device 220. Figure 7C Compressed data.

[0085] Figure 7D The method further includes determining whether the current row of the read data includes a stored row index that matches the current row index of the original data (step 713). In an embodiment, before performing step 713, the ECC decoder 135 performs decoding and error correction operations on the read data to produce corrected read data, and performs step 713 on the corrected read data.

[0086] Figure 7D The method also includes, if no match occurs, outputting an all-zero vector (step 714) and incrementing the current row index (step 715); if a match occurs, outputting the data of the current row (step 716) and incrementing the current row index (step 715). For example, if the current row of data being read is the first row and the current row index is 1, then the corresponding stored row index 1 of the compressed data matches the current row index, and the output data is 0101010101 with the current row index incremented to 2. Because the current row index is 2, step 713 will next determine that the stored row index 4 of the second row of the compressed data does not match the current row index 2, resulting in the output of an all-zero vector 0000000000 and the current row index incremented to 3. Figure 7D The method continues until all lines of compressed data have been processed. Each data line output in step S716 can be temporarily stored in buffer 620-1 until decompression is complete, and then the resulting decompressed data can be output to the host.

[0087] Figure 8A Pseudocode for compressing data according to embodiments of the present disclosure is shown. Figure 8B The embodiments of use according to this disclosure are illustrated. Figure 8A A method for compressing and writing data.

[0088] Figure 8B The method includes receiving a write request that includes the data to be written and the write address (step 801). For example, controller core 121 can receive a write request from a host via host interface block 125.

[0089] Figure 8BThe method also includes checking the current data row for writing data (step 802). Figure 8A The second line of the pseudocode corresponds to checking the current data row.

[0090] Figure 8B The method also includes dividing the current row into data vectors of the same size and generating multiple matrices based on the number of vectors (step 803). For example, if the current data row has 8 bits of data, it can be divided into two vectors of size 4, resulting in a matrix of 2. However, embodiments of the present invention are not limited to this, as the current data row can be divided into more than two vectors, and the size of the vectors can be greater than 4 bits.

[0091] Figure 8B The method also includes examining the current data vector associated with the current matrix (step 804). For example, if the current data row is divided into two data vectors, this step examines one of those two data vectors.

[0092] Figure 8B The method also includes determining whether the current data vector is all zeros (step 805). Figure 8B The method includes: if the data vector is not all zeros, storing the current data vector along with its row index and vector index in the current matrix (step 806), and proceeding to the next data vector and the next matrix (step 807); if the data vector is all zeros, only step 807 is executed. Storing the current data vector along with its row index and vector index in the current matrix can be performed by storing the current data vector along with its row index and vector index in different rows of buffer 620-1.

[0093] Figure 8B The method also includes determining whether all data vectors have been traversed (step 808). If all data vectors in the current row have not been traversed, the method returns to step 804 with the help of the next data vector and the next matrix.

[0094] If all data vectors of the current data row have already been traversed, then Figure 8B The method involves moving forward to the next data row and the first matrix (step 809) and then returning to step 802. Once all data rows have been traversed, Figure 8B The method may also include writing the matrix from buffer 620-1 as compressed data to memory device 220. In an exemplary embodiment, the matrix data is first fed to ECC encoder 133 to encode and error-correct the data to produce corrected data, and the corrected data is written to a location in memory device 220 associated with a write address.

[0095] Figure 8CAn example is shown where the original written data is compressed into two matrices. For example, when... Figure 8B The method is applied to Figure 8C When processing the original data, step 803 divides the first row R1 of the 8 bits of the original data into two data vectors V1 and V2 of size 4, generating a first matrix M1 and a second matrix M2. Step 806 outputs the first data vector V1, its row index R1, and its vector index V1 to the first row of the first matrix M1; and outputs the second data vector V2, its row index R1, and its vector index V2 to the first row of the second matrix. Because the second, third, sixth, and seventh rows of the original data are all zero, matrices M1 and M2 do not include any of their data. The first matrix M1 also includes the first 4 bits of the fourth row of the original data with row index R4 and the 4 most significant bits of the original data with row index R8. The second matrix M2 also includes the last 4 bits of the fifth row of the original data with row index R5 and the least significant bits of the eighth row. In this embodiment, matrices M1 and M2 are stored sequentially in buffer 620-1. For example, the first matrix M1 will correspond to the first row of buffer 620-1, and the second matrix M2 will correspond to the second row of buffer 620-1 that is sequentially adjacent to the first row.

[0096] Figure 9A Pseudocode for decompressing data according to embodiments of this disclosure is shown. Figure 9B The embodiments of use according to this disclosure are illustrated. Figure 9A Methods for decompressing and reading data.

[0097] Figure 9B The method includes receiving a read request including a read address (step 901). For example, controller 121 may receive a read request from a host via host interface block 125.

[0098] Figure 9B The method also includes reading data stored at the read address (step 902). For example, controller core 121 can read data such as... Figure 8C The data in matrices M1 and M2 is stored in the memory device 220 at the locations corresponding to the read addresses. In an embodiment, the ECC decoder 135 decodes and corrects errors in the read data to produce corrected read data, and performs the following steps 903-907 on the corrected read data.

[0099] Figure 9B The method further includes determining whether the current row of the current matrix includes a stored row index that matches the current row index and a stored vector index that matches the current vector index (step 903). If both the stored row index and the stored vector index match, then... Figure 9BThe method includes outputting the data vector of the current row (step 904). If neither the stored row index nor the stored vector index matches, then... Figure 9B The method includes outputting a vector of all zeros (step 905). For example, regarding... Figure 8C If the current row index is R1, the current matrix is ​​the first matrix M1, and the current data vector index is V1, then the stored row index and the stored vector index match, and the output will be 0101. For example, regarding... Figure 8C If the current row index is R2, the current matrix is ​​the first matrix M1, and the current data vector index is V1, then the stored row indices will not match, and all zero data such as 0000 will be output.

[0100] Figure 9B The method also includes determining whether all vectors and / or matrices have been traversed (step 906). If not all vectors have been traversed, then Figure 9B The method involves incrementing the vector index (step 907) and returning to step 903. If all vectors have been traversed but not all matrices have been traversed, then... Figure 9B The method involves incrementing the matrix index and resetting the vector index (step 907) and then returning to step 903. If all vectors and all matrices have been traversed, then... Figure 9B The method involves incrementing the row index and resetting the matrix index (step 908) and then returning to step 903. Resetting the vector index means that the first vector index will be checked next, and resetting the matrix index means that the first matrix index will be checked next.

[0101] Figure 9B The method continues until all read data or corrected read data has been decompressed and output. Each time step 904 or step 905 is executed, the corresponding output data can be stored in the corresponding row of buffer 620-1 until decompression is complete. Then the decompressed data can be output to the host by controller core 121 in response to a read request.

[0102] Figure 10 A compressor 132 according to an exemplary embodiment of the present disclosure is shown. (Refer to...) Figure 10 The compressor 132 includes a row counter 630 that increments each time a row of raw written data is analyzed to generate a row index, which is stored along with the data of that row in a row of buffer 620 when the data is non-zero. In an embodiment, the row counter 630 is a cyclic row counter that counts from 1 to the number of rows M within the raw written data. Initially, all components of the compressor 132 can be reset to zero. Incoming rows can be input in a single clock cycle, where the row counter 630 indicates the index of the incoming row at a non-compressed buffer (e.g., page buffer 130).

[0103] Data can be determined to be non-zero by comparing it to a zero vector. A zero vector comparator can be used to perform the comparison. A zero vector comparator can include AND gates between all vector bits. For example, when there are N vector bits, the vector comparator can have N-1 AND gates. In this embodiment, the row counter 630 has values ​​from 0 to M-1 and includes a log2M flip-flop.

[0104] If the data in a row is not zero, the data is written to the current row of buffer 620-1 along with the row index based on the write address, and the write address logic 650 increments the write address. In an embodiment, the write address logic 650 includes log2M half-adders, each half-adder having an AND gate and an XOR (exclusive OR) gate. If the data in the row is zero, the data is not written to the current row of buffer 620-1 associated with the write address, and the write address is not incremented.

[0105] Figure 11 A decompressor 134 according to an exemplary embodiment of this disclosure is shown. (Refer to...) Figure 11 The decompressor 134 includes a line counter 660, a multiplexer 670, comparison logic 680, and read address logic 690. The line counter 680 periodically increments its count to traverse all lines of the original data. The comparison logic 680 compares the count of the line counter 660, representing the current line of the original data, with an index stored in buffer 620-1 associated with the current read address. If the count matches the stored index, the comparison logic 680 outputs a first control signal of a first logic level to multiplexer 670, indicating that the data for that line in the buffer should be output, and outputs a second control signal logic to read address logic 690 to increment the read address. If the count does not match the stored index, the comparison logic 680 outputs a first control signal of a second, other logic level to multiplexer 670 to output a zero vector.

[0106] Figure 12 This is a block diagram of a computing system 1200 including a non-volatile memory system according to an exemplary embodiment of the present invention.

[0107] Figure 12 The non-volatile memory system in the middle can be Figure 1 The memory system 200 is shown. In a computing system 1200, which may be, for example, a mobile device or a desktop computer, a non-volatile memory system may be installed as a non-volatile memory system 1201; however, the exemplary embodiments are not limited thereto.

[0108] The computing system 1200 may include, for example, a host 1202 including a CPU, RAM 1203, a user interface 1204, and a device driver 1205. The host 1202 may be... Figure 1 The host 100 shown, and the device driver 1205 can be Figure 1 The memory device driver 111 is shown. These components are electrically connected to bus 1206. Non-volatile memory system 1201 can be connected to device driver 1205. Host 1202 can control the entire computing system 1200 and execute operations corresponding to user commands input through user interface 1204. RAM 1203 can be used as data storage for host 1202. Host 1202 can write user data to or read user data from non-volatile memory system 1201 through device driver 1205. Figure 12 In this embodiment, the device driver 1205, which controls and manages the operation of the non-volatile storage system 1201, is shown to be located outside the host 1202; however, the exemplary embodiment is not limited thereto. For example, in the exemplary embodiment, the device driver 1205 may be located inside the host 1202.

[0109] In an exemplary embodiment of the present invention, a three-dimensional (3D) memory array is provided. The 3D memory array is integrally formed in one or more physical levels of an array of memory cells having active regions disposed on a silicon substrate and circuitry associated with the operation of those memory cells, whether on or within the substrate. The term "integral" means that each layer of the array is deposited directly on the layer of each layer below the array.

[0110] In an exemplary embodiment of the inventive concept, the 3D memory array includes a vertically oriented string of NAND flash memory cells such that at least one memory cell is located above another memory cell. The at least one memory cell may include a charge trapping layer. Suitable configurations for three-dimensional memory arrays, wherein the three-dimensional memory array is configured as multiple layers and shares word lines and / or bit lines between layers, are described by reference to the following patent documents incorporated herein by reference: U.S. Patent Nos. 7,679,133, 8,553,466, 8,654,587, 8,559,235, and 2011 / 0233648.

[0111] In the conventional art of this invention, exemplary embodiments are described and illustrated in the accompanying drawings in terms of functional blocks, units, and / or modules. Those skilled in the art will understand that these blocks, units, and / or modules are physically implemented using electronic (or optical) circuits (such as logic circuits), discrete components, microprocessors, hardwired circuits, memory elements, wiring connections, etc., formed using semiconductor-based or other manufacturing techniques. Where blocks, units, and / or modules are implemented using microprocessors or the like, they can be programmed using software (e.g., microcode) to perform the various functions discussed herein and may optionally be driven by firmware and / or software. Alternatively, each block, unit, and / or module may be implemented by dedicated hardware, or as a combination of dedicated hardware performing some functions and processors performing other functions (e.g., one or more programmed microprocessors and associated circuitry). Furthermore, without departing from the scope of this invention, each block, unit, and / or module of the exemplary embodiments may be physically separated into two or more interactive and discrete blocks, units, and / or modules. Furthermore, without departing from the scope of the inventive concept, the blocks, units, and / or modules of the exemplary embodiments can be physically combined into more complex blocks, units, and / or modules.

[0112] Exemplary embodiments of the present invention may be embodied directly in hardware, in software modules executed by a processor, or in a combination of both. Software modules may be tangibly embodied in non-transitory program storage devices, such as, for example, RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, or any other form of storage medium known in the art. Exemplary storage media may be coupled to a processor such that the processor can read information from and write information to the storage medium. Alternatively, the storage medium may be integrated with the processor. Furthermore, in some aspects, the processor and storage medium may reside in an application-specific integrated circuit (ASIC).

[0113] While the inventive concept has been specifically shown and described with reference to exemplary embodiments thereof, those skilled in the art will understand that various changes in form and detail may be made therein without departing from the spirit and scope of the inventive concept as defined by the appended claims.

Claims

1. A memory system, comprising: A memory device, comprising multiple memory cells; as well as The memory controller includes error correction code (ECC) circuitry. The ECC circuit is configured to determine the first row of data to be written that is not all zero, and store the determined row along with its corresponding row index in the buffer row of the buffer. The memory controller is configured to write second write data based on a buffer to the memory device.

2. The memory system of claim 1, wherein the ECC circuit encodes and corrects errors in the buffer data to generate the second write data.

3. The memory system of claim 2, wherein the memory controller is configured to receive a write request including first write data and a write address, and the memory controller writes the corrected write data to the location of the memory device associated with the write address.

4. The memory system of claim 1, wherein the ECC circuit is configured to decode and error-correct the second write data to generate correction data, the ECC circuit is configured to decompress the correction data to generate read data, and the memory controller is configured to output the read data to the host device.

5. The memory system of claim 4, wherein the ECC circuit decompresses the correction data by determining a first number of all-zero rows from the row index stored in the correction data and a second number of rows of the first written data.

6. The memory system of claim 4, wherein the ECC circuit decompresses the correction data by outputting the data in the current row of the correction data when the row index in the current row matches the current row index and outputting an all-zero vector when the row index does not match the current row index.

7. The memory system of claim 1, wherein the ECC circuitry comprises: Compressor; Decompressor; ECC encoder; as well as ECC decoder.

8. The memory system of claim 1, wherein the first write data is initially stored in a first number of rows of a page buffer of the memory controller, and the buffer has a second number of rows less than the first number.

9. A computer-implemented method for programming data into a memory system, the method comprising: The memory controller receives a write request including the first write data. The first row of data written, which is not entirely zero, is determined by the error correction code (ECC) circuit. The ECC circuit generates compressed data, including the determined data rows and corresponding row indices, within the first written data. as well as The memory controller writes the second write data, based on the compressed data, to the memory device.

10. The method of claim 9, further comprising encoding and error correction of the compressed data by an ECC circuit to generate second write data.

11. The method of claim 10, wherein the first write data is stored in a first number of rows of a page buffer of a memory controller, and the ECC circuit temporarily stores compressed data in an internal buffer having a second number of rows less than the first number before performing encoding and error correction.

12. The method of claim 9, wherein the compressed data does not include all data rows that are all zeros.

13. The method of claim 9, wherein the compressed data comprises a plurality of entries, wherein each entry comprises one of the determined data rows and one of the row indices.

14. The method of claim 9, wherein the generation of compressed data comprises: Divide one of the data rows in the original data row into multiple data vectors of equal size; as well as A single line of compressed write data is generated to include a data vector that is not all zeros, a corresponding row index in the row index, and a vector index associated with said data vector.

Citation Information

Patent Citations

  • Three-Dimensional Semiconductor Memory Devices And Methods Of Fabricating The Same

    US20110233648A1

  • Vertical-type non-volatile memory devices

    US7679133B2

  • Non-volatile memory device, erasing method thereof, and memory system including the same

    US8553466B2

  • Nonvolatile memory device, operating method thereof and memory system including the same

    US8559235B2

  • Nonvolatile memory devices, channel boosting methods thereof, programming methods thereof, and memory systems including the same

    US8654587B2