JP7291640B2 - Semiconductor memory device and refresh method for semiconductor memory device - Google Patents

Semiconductor memory device and refresh method for semiconductor memory device Download PDF

Info

Publication number
JP7291640B2
JP7291640B2 JP2020009681A JP2020009681A JP7291640B2 JP 7291640 B2 JP7291640 B2 JP 7291640B2 JP 2020009681 A JP2020009681 A JP 2020009681A JP 2020009681 A JP2020009681 A JP 2020009681A JP 7291640 B2 JP7291640 B2 JP 7291640B2
Authority
JP
Japan
Prior art keywords
data
storage unit
block
page
written
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2020009681A
Other languages
Japanese (ja)
Other versions
JP2021118011A (en
Inventor
元輝 上田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lapis Semiconductor Co Ltd
Original Assignee
Lapis Semiconductor Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lapis Semiconductor Co Ltd filed Critical Lapis Semiconductor Co Ltd
Priority to JP2020009681A priority Critical patent/JP7291640B2/en
Publication of JP2021118011A publication Critical patent/JP2021118011A/en
Application granted granted Critical
Publication of JP7291640B2 publication Critical patent/JP7291640B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、半導体記憶装置及び半導体記憶装置のリフレッシュ方法に関する。 The present invention relates to a semiconductor memory device and a refresh method for a semiconductor memory device.

近年、SSD(Solid State Drive)、SD(Secure Digital)カード等のストレージデバイスやモバイル機器等において、NANDフラッシュメモリの需要が高まっている。それに伴って、NANDフラッシュメモリの大容量化も進んでいる。 In recent years, the demand for NAND flash memory has increased in storage devices such as SSD (Solid State Drive) and SD (Secure Digital) cards, mobile devices, and the like. Along with this, the capacity of NAND flash memory is increasing.

NANDフラッシュメモリでは、ゲート絶縁膜の物理的な劣化によるデータ保持の不良やリードディスターブ等による電荷の移動等により、正しいデータ値が読み取れなくなる現象(以下、データの劣化と称する)が生じる。このようなデータの劣化に対処するため、NANDフラッシュメモリでは、メモリ領域のリフレッシュ処理が行われている(例えば、特許文献1)。 In a NAND flash memory, a phenomenon (hereinafter referred to as data deterioration) occurs in which correct data values cannot be read due to poor data retention due to physical deterioration of the gate insulating film, charge transfer due to read disturbance, and the like. In order to cope with such data deterioration, refresh processing of the memory area is performed in the NAND flash memory (for example, Patent Document 1).

リフレッシュ処理は、NANDフラッシュメモリのブロックに書き込まれているデータをブロック内の全てのページについて一旦読み出し、他のブロックに新たに書き直す処理である。リフレッシュ処理は、例えばデータの読み出し時にデータの劣化が発見された場合に行われる。通常、NANDフラッシュメモリのデータの読み出しはページ単位で行われ、データの消去はブロック毎に行われる。リフレッシュ処理はデータの消去を伴う処理であるため、ブロック単位で行われる。 The refresh process is a process of once reading data written in a block of the NAND flash memory for all pages in the block and rewriting it to another block. The refresh process is performed, for example, when deterioration of data is found during reading of data. Normally, data is read from a NAND flash memory page by page, and data is erased block by block. Since the refresh process involves erasing data, it is performed in units of blocks.

特開2009-87509号公報JP-A-2009-87509

メモリセルへのデータ記録方式として、1つのメモリセルに1ビットのデータを記録するSLC(Single Level Cell)方式、2ビットのデータを記録するMLC(Multiple Level Cell)方式、3ビットのデータを記録するTLC(Triple Level Cell)方式がある。近年では、1つのメモリセルに複数ビットのデータを記録できるMLC方式やTLC方式の採用が増加している傾向にある。しかし、これらのデータ記録方式には、1つのメモリセルに記録するデータのビット数が大きくなればなるほど、データの書き換え可能回数が少なくなるというデメリットが存在する。従って、MLC方式やTLC方式では、NANDフラッシュメモリを長寿命化するため、消去回数を抑える制御が特に必要となる。 The data recording methods for memory cells include the SLC (Single Level Cell) method that records 1-bit data in one memory cell, the MLC (Multiple Level Cell) method that records 2-bit data, and the 3-bit data recording method. There is a TLC (Triple Level Cell) system. In recent years, there is an increasing tendency to adopt the MLC method and the TLC method, which are capable of recording multiple bits of data in one memory cell. However, these data recording methods have the disadvantage that the number of times data can be rewritten decreases as the number of bits of data recorded in one memory cell increases. Therefore, in the MLC method and the TLC method, in order to extend the life of the NAND flash memory, it is particularly necessary to control the number of erasures to be suppressed.

上記の通り、NANDフラッシュメモリの特性上、データの読み出しはページ単位で行われる。このため、例えばブロック内の1ページのみが劣化していた場合でも、そのブロックはリフレッシュ対象となってしまう。従って、データが劣化していない正常なページについてまでデータのコピーを行うことになり、無駄な処理が発生してしまう。そして、リフレッシュ処理はデータの消去を伴うため、少数のエラーページのためにNANDフラッシュメモリの寿命を縮めてしまうという問題があった。 As described above, due to the characteristics of the NAND flash memory, data is read in units of pages. Therefore, even if only one page in a block is degraded, the block will be refreshed. Therefore, data is copied even for normal pages in which the data is not degraded, resulting in wasteful processing. In addition, since the refresh process involves erasing data, there is a problem that the life of the NAND flash memory is shortened due to a small number of error pages.

本発明は、上記問題点に鑑みてなされたものであり、データ消去の回数を抑えてメモリを長寿命化することが可能な半導体記憶装置を提供することを目的とする。 SUMMARY OF THE INVENTION It is an object of the present invention to provide a semiconductor memory device capable of reducing the number of times data is erased and extending the life of the memory.

本発明に係る半導体記憶装置は、各々が複数のセルからなるm個のページを夫々含むn個のブロック(m,nは2以上の整数)を有する第1の記憶部と、複数のセルを有する第2の記憶部と、前記第1の記憶部及び前記第2の記憶部に対するデータの書き込み、読み出し及び消去を制御する制御部と、を有し、前記制御部は、前記第1の記憶部からページ毎にデータを読み出して誤り検出を行い、当該誤り検出において、前記第1の記憶部内でデータの誤りを含むページが検出された場合には、当該誤りを含むページのデータに誤り訂正を施したデータを前記第2の記憶部に書き込み、前記第1の記憶部の1のブロック内の所定数のページに記憶されていたデータが前記第2の記憶部に書き込まれた場合に、前記1のブロックのリフレッシュ処理を実行することを特徴とする。 A semiconductor memory device according to the present invention comprises: a first memory unit having n blocks (where m and n are integers equal to or greater than 2) each containing m pages each composed of a plurality of cells; and a plurality of cells. and a control unit for controlling writing, reading, and erasing of data in the first storage unit and the second storage unit, wherein the control unit controls the first storage unit. error detection is performed by reading data page by page from the storage unit, and when a page including a data error is detected in the first storage unit in the error detection, error correction is performed on the data of the page including the error. When the data subjected to It is characterized by executing the refresh processing of the one block.

また、本発明に係るリフレッシュ方法は、各々が複数のセルからなるm個のページを夫々含むn個のブロック(m,nは2以上の整数)を有する第1の記憶部と、複数のセルを有する第2の記憶部と、データの書き込み、読み出し、消去及び誤り検出訂正処理を制御する制御部と、を有する半導体記憶装置が実行するブロックのリフレッシュ方法であって、前記第1の記憶部からページ毎にデータを読み出して誤り検出を行うステップと、前記誤り検出において前記第1の記憶部にデータの誤りを含むページが検出された場合に、当該誤りを含むページのデータに誤り訂正を施したデータを前記第2の記憶部に書き込むステップと、前記第1の記憶部の1のブロックの所定数のページに記憶されていたデータが前記第2の記憶部に書き込まれた場合に、前記1のブロックのリフレッシュ処理を実行するステップと、を含むことを特徴とする。 Further, the refresh method according to the present invention includes: a first storage unit having n blocks (m and n are integers equal to or greater than 2) each containing m pages each composed of a plurality of cells; and a control unit for controlling writing, reading, erasing, and error detection and correction processing of data, wherein the block refresh method is executed by a semiconductor memory device, wherein the first storage unit and performing error detection by reading data page by page from the memory unit, and if a page containing a data error is detected in the first storage unit in the error detection, error correction is performed on the data of the page containing the error. writing the applied data to the second storage unit; and when the data stored in a predetermined number of pages of one block in the first storage unit is written to the second storage unit and performing refresh processing of the one block.

本発明の半導体記憶装置によれば、データ消去の回数を抑えてメモリの長寿命化を図ることが可能となる。 According to the semiconductor memory device of the present invention, it is possible to extend the life of the memory by suppressing the number of times data is erased.

実施例1のNANDフラッシュ制御システムの構成を示すブロック図である。1 is a block diagram showing the configuration of a NAND flash control system of Example 1; FIG. データ検査処理の処理ルーチンを示すフローチャートである。10 is a flowchart showing a processing routine for data inspection processing; 冗長メモリへのデータの書き込みを模式的に示す図である。FIG. 4 is a diagram schematically showing writing of data to a redundant memory; FIG. リフレッシュ処理の処理ルーチンを示すフローチャートである。4 is a flowchart showing a processing routine of refresh processing; リフレッシュ処理におけるデータの読み出し及び書き込みを模式的に示す図である。FIG. 4 is a diagram schematically showing reading and writing of data in refresh processing; 実施例2のNANDフラッシュ制御システムの構成を示すブロック図である。FIG. 11 is a block diagram showing the configuration of a NAND flash control system of Example 2; FIG. 実施例2のNANDフラッシュメモリの第2の領域へのデータの書き込みを模式的に示す図である。FIG. 10 is a diagram schematically showing writing of data to the second area of the NAND flash memory of Example 2; 実施例2の変形例によるNANDフラッシュメモリの第2の領域へのデータの書き込みを模式的に示す図である。FIG. 10 is a diagram schematically showing writing of data to the second area of the NAND flash memory according to the modified example of the second embodiment;

以下に本発明の好適な実施例を詳細に説明する。なお、以下の各実施例における説明及び添付図面においては、実質的に同一または等価な部分には同一の参照符号を付している。 Preferred embodiments of the present invention are described in detail below. In the following description of each embodiment and the attached drawings, substantially the same or equivalent parts are denoted by the same reference numerals.

図1は、本発明に係るNANDフラッシュ制御システム100の概略構成を示すブロック図である。NANDフラッシュ制御システム100は、ホストコンピュータ10及び半導体記憶装置11から構成されている。 FIG. 1 is a block diagram showing a schematic configuration of a NAND flash control system 100 according to the invention. A NAND flash control system 100 comprises a host computer 10 and a semiconductor memory device 11 .

ホストコンピュータ10及び半導体記憶装置11は互いに通信接続されている。ホストコンピュータ10は、データの読み出しや書き込みを指示するコマンドを半導体記憶装置11に送信する。半導体記憶装置11は、ホストコンピュータ10からのコマンドを受信し、これに応じてデータの書き込み動作や読み出し動作を実行する。 The host computer 10 and the semiconductor memory device 11 are connected for communication with each other. The host computer 10 transmits commands to the semiconductor memory device 11 to instruct reading and writing of data. The semiconductor memory device 11 receives commands from the host computer 10 and executes data write and read operations accordingly.

半導体記憶装置11は、コントローラ12、NANDフラッシュメモリ13、RAM(Random Access Memory)14及び冗長メモリ15を有する。 The semiconductor memory device 11 has a controller 12 , a NAND flash memory 13 , a RAM (Random Access Memory) 14 and a redundant memory 15 .

コントローラ12は、半導体記憶装置11の動作を制御する制御部であり、例えばCPU(Central Processing Unit)から構成されている。コントローラ12は、NANDフラッシュメモリ13、RAM14及び冗長メモリ15にアクセスし、データの書き込み、読み出し及び消去等の各種のデータ処理を実行する。 The controller 12 is a control unit that controls the operation of the semiconductor memory device 11, and is composed of, for example, a CPU (Central Processing Unit). The controller 12 accesses the NAND flash memory 13, RAM 14 and redundant memory 15 and executes various data processing such as writing, reading and erasing of data.

また、コントローラ12は、ECC(Error Check and Correct)回路を含み、NANDフラッシュメモリ13から読み出したデータに対する誤り検出訂正処理を実行する。本実施例では、例えばNANDフラッシュメモリ13に設けられたゲート絶縁膜(図示せず)の物理的な劣化によるデータ保持の不良やリードディスターブによる電荷の移動等に起因する所謂データの劣化がエラーとして検出される。 The controller 12 also includes an ECC (Error Check and Correct) circuit and executes error detection and correction processing on data read from the NAND flash memory 13 . In this embodiment, for example, data retention failure due to physical deterioration of a gate insulating film (not shown) provided in the NAND flash memory 13, or so-called data deterioration due to charge transfer due to read disturbance, etc., is regarded as an error. detected.

また、コントローラ12は、誤り検出訂正処理におけるエラー検出の結果に基づいて、冗長メモリ15へのデータの書き込み及びNANDフラッシュメモリ13のリフレッシュ処理を実行する。 The controller 12 also writes data to the redundant memory 15 and refreshes the NAND flash memory 13 based on the error detection result in the error detection and correction process.

NANDフラッシュメモリ13は、例えばEEPROM(Electrically Erasable Programmable Read-Only Memory)等からなる不揮発性の半導体メモリである。NANDフラッシュメモリ13は、記憶領域としてn個のブロック(nは2以上の整数)を有する。n個のブロックの各々は、m個のページ(mは2以上の整数)から構成されている。m個のページの各々は、複数のセルから構成されている。本実施例では、各々のページへのデータの書き込みは、セル毎に2ビットのデータを記録するMLC(Multiple Level Cell)方式で行われる。 The NAND flash memory 13 is a non-volatile semiconductor memory such as an EEPROM (Electrically Erasable Programmable Read-Only Memory). The NAND flash memory 13 has n blocks (n is an integer equal to or greater than 2) as a storage area. Each of the n blocks consists of m pages (m is an integer equal to or greater than 2). Each of the m pages consists of a plurality of cells. In this embodiment, data writing to each page is performed by the MLC (Multiple Level Cell) method in which 2-bit data is recorded in each cell.

NANDフラッシュメモリ13へのデータの書き込み及びNANDフラッシュメモリ13からのデータの読み出しは、ページ毎に行われる。一方、NANDフラッシュメモリ13に記憶されているデータの消去は、ブロック単位で行われる。なお、NANDフラッシュメモリ13には、誤り訂正符号ECC(Error Correction Code)が付加されたデータが書き込まれる。 Writing data to the NAND flash memory 13 and reading data from the NAND flash memory 13 are performed page by page. On the other hand, data stored in the NAND flash memory 13 is erased in block units. Data added with an error correction code ECC (Error Correction Code) is written in the NAND flash memory 13 .

RAM14は、NANDフラッシュメモリ13のリフレッシュ処理におけるキャッシュメモリとして機能する揮発性メモリである。例えば、リフレッシュ処理では、NANDフラッシュメモリ13及び冗長メモリ15から読み出されたデータがRAM14にいったん格納される。そして、RAM14から当該データが読み出され、NANDフラッシュメモリ13に書き込まれる。 The RAM 14 is a volatile memory that functions as cache memory in refresh processing of the NAND flash memory 13 . For example, in the refresh process, data read from the NAND flash memory 13 and redundant memory 15 are temporarily stored in the RAM 14 . Then, the data is read from the RAM 14 and written to the NAND flash memory 13 .

冗長メモリ15は、半導体記憶装置11にNANDフラッシュメモリ13とは別に設けられた不揮発性の半導体メモリである。冗長メモリ15は、各々が複数のセルからなる複数のページを有する。冗長メモリ15へのデータの書き込みは、セル毎に1ビットのデータを記録するSLC(Single Level Cell)方式によって行われる。 The redundant memory 15 is a nonvolatile semiconductor memory provided separately from the NAND flash memory 13 in the semiconductor memory device 11 . Redundant memory 15 has multiple pages each of which consists of multiple cells. Writing data to the redundant memory 15 is performed by the SLC (Single Level Cell) method in which 1-bit data is recorded for each cell.

本実施例では、誤り検出によりデータの劣化が進んだページが検出された場合に、当該ページのデータが誤り訂正を経て冗長メモリ15に記録される。以後、ブロックのリフレッシュ処理が行われるまでの間、当該ページのデータを読み出す際には、冗長メモリ15からデータの読み出しが行われる。なお、ブロックのリフレッシュ処理が行われると、当該ブロックに対応するデータは冗長メモリ15から消去される。 In this embodiment, when a page whose data deterioration has progressed is detected by error detection, the data of the page is recorded in the redundant memory 15 through error correction. Thereafter, until the refresh processing of the block is performed, the data is read from the redundant memory 15 when reading the data of the page. Note that when the block is refreshed, data corresponding to the block is erased from the redundant memory 15 .

次に、本実施例に係る半導体記憶装置11のエラー検出処理及びリフレッシュ処理の処理動作について、図2及び図4のフローチャートを参照して説明する。 Next, processing operations of error detection processing and refresh processing of the semiconductor memory device 11 according to the present embodiment will be described with reference to the flow charts of FIGS. 2 and 4. FIG.

コントローラ12は、例えば半導体記憶装置11の電源が投入された直後のタイミングで、NANDフラッシュメモリ13のエラー検出処理を実行する。本実施例のエラー検出処理は、誤り訂正符号ECCを用いた誤り検出訂正処理であり、n個のブロックの各々についてページ毎に行われる。以下の説明では、NANDフラッシュメモリ13のn個のブロックを第1ブロック~第nブロック、m個のページを第1ページ~第mページとする。 The controller 12 executes error detection processing for the NAND flash memory 13, for example, immediately after the semiconductor memory device 11 is powered on. The error detection processing of this embodiment is error detection and correction processing using an error correction code ECC, and is performed page by page for each of n blocks. In the following description, the n blocks of the NAND flash memory 13 are referred to as the 1st block to the nth block, and the m pages are referred to as the 1st page to the mth page.

コントローラ12は、NANDフラッシュメモリ13のn個のブロックのうち、エラー検出の対象となるブロックを示す“k”の値をk=1にセットする(STEP101)。 The controller 12 sets the value of "k" indicating a block to be subjected to error detection among n blocks of the NAND flash memory 13 to k=1 (STEP 101).

コントローラ12は、NANDフラッシュメモリ13の第kブロックを対象としてデータ検査を実行する(STEP102)。具体的には、第1~第mページの各々から順次データを読み出し、読み出したデータに対して誤り検出訂正を行うことにより、各ページのデータの劣化の有無を検出する。 The controller 12 executes data inspection on the k-th block of the NAND flash memory 13 (STEP 102). Specifically, data is sequentially read from each of the 1st to m-th pages, and error detection and correction is performed on the read data, thereby detecting the presence or absence of deterioration in the data of each page.

コントローラ12は、データ検査(誤り検出訂正処理)の結果、データの劣化したページが発見されたか否かを判定する(STEP103)。 The controller 12 determines whether or not a page with degraded data is found as a result of data inspection (error detection and correction processing) (STEP 103).

データの劣化したページが発見されたと判定すると(STEP103:Yes)、コントローラ12は、誤り訂正を経たNANDフラッシュメモリ13の当該ページのデータを、冗長メモリ15に書き込む(STEP104)。一方、データの劣化したページが発見されたと判定されなかった場合(STEP103:No)、STEP107に進む。 If it is determined that a page with deteriorated data has been found (STEP 103: Yes), the controller 12 writes the error-corrected data of the page in the NAND flash memory 13 to the redundant memory 15 (STEP 104). On the other hand, if it is not determined that a page with degraded data has been found (STEP103: No), the process proceeds to STEP107.

図3は、STEP104で行われる冗長メモリへのデータの書き込みを模式的に示す図である。例えば、NANDフラッシュメモリ13の「ブロック2」の「ページ1」でデータの劣化が検出された場合、ブロック2のページ1(図4に斜線で示す)に記録されていたデータである「データ2,1」が誤り訂正を経て冗長メモリ15に書き込まれる。 FIG. 3 is a diagram schematically showing writing of data to the redundant memory performed in STEP104. For example, when data deterioration is detected in "page 1" of "block 2" of the NAND flash memory 13, "data 2" which is the data recorded in page 1 of block 2 (indicated by hatching in FIG. 4) is detected. , 1” are written into the redundant memory 15 after error correction.

再び図2を参照すると、コントローラ12は、第kブロックの閾値以上のページ数のデータが冗長メモリ15に格納されたか否か(すなわち、第kブロックの所定以上のデータ量のデータが冗長メモリ15に書き込まれたか否か)を判定する(STEP105)。 Referring to FIG. 2 again, the controller 12 determines whether or not the number of pages of data of the k-th block equal to or greater than the threshold is stored in the redundant memory 15 (that is, whether or not the data of the k-th block equal to or greater than a predetermined amount of data is stored in the redundant memory 15). (STEP 105).

第kブロックの閾値以上のページ数のデータが冗長メモリ15に格納されたと判定すると(STEP105:Yes)、コントローラ12は、NANDフラッシュメモリ13のリフレッシュ処理を実行する(STEP106)。 When it is determined that the number of pages of data of the k-th block or more is stored in the redundant memory 15 (STEP 105: Yes), the controller 12 executes refresh processing of the NAND flash memory 13 (STEP 106).

図4は、リフレッシュ処理の処理ルーチンを示すフローチャートである。まず、コントローラ12は、リフレッシュ処理におけるデータの書き込み先として用いるブロック(以下、リフレッシュ先ブロックと称する)を空きブロックとするため、当該ブロックに書き込まれているデータを消去する(STEP201)。 FIG. 4 is a flowchart showing a processing routine for refresh processing. First, the controller 12 erases data written in a block to be used as a data write destination in the refresh process (hereinafter referred to as a refresh destination block) in order to set it as an empty block (STEP 201).

コントローラ12は、NANDフラッシュメモリ13の第kブロックのm個のページのうち、リフレッシュ処理におけるデータ移動の対象となるページを示す“j”の値をj=1にセットする(STEP202)。 The controller 12 sets the value of "j", which indicates the page to be moved in the refresh process among the m pages of the k-th block of the NAND flash memory 13, to j=1 (STEP 202).

コントローラ12は、jページ目のデータが冗長メモリ15に格納されているか否か、すなわち図2のフローチャートのSTEP104で冗長メモリ15に書き込まれたデータであるか否かを判定する(STEP203)。 The controller 12 determines whether or not the j-th page data is stored in the redundant memory 15, that is, whether or not it is the data written in the redundant memory 15 in STEP 104 of the flowchart of FIG. 2 (STEP 203).

jページ目のデータが冗長メモリ15に格納されていると判定すると(STEP203:Yes)、コントローラ12は、jページ目のデータを冗長メモリ15から読み出す(STEP204)。 When determining that the j-th page data is stored in the redundant memory 15 (STEP 203: Yes), the controller 12 reads the j-th page data from the redundant memory 15 (STEP 204).

一方、jページ目のデータが冗長メモリ15に格納されていないと判定すると(STEP203:No)、コントローラ12は、jページ目のデータをNANDフラッシュメモリ13の第kブロックの第jページから読み出す(STEP205)。 On the other hand, if it is determined that the j-th page data is not stored in the redundant memory 15 (STEP 203: No), the controller 12 reads the j-th page data from the j-th page of the k-th block of the NAND flash memory 13 ( STEP 205).

コントローラ12は、STEP204又はSTEP205で読み出されたjページ目のデータを、NANDフラッシュメモリ13のリフレッシュ先ブロックのメモリ領域に書き込む(STEP206)。 The controller 12 writes the j-th page data read in STEP204 or STEP205 to the memory area of the refresh destination block of the NAND flash memory 13 (STEP206).

図5は、STEP204~206で行われるデータの読み出し及び書き込みを模式的に示す図である。ここでは、NANDフラッシュメモリ13の「ブロック2」を対象とするエラー検出処理(図2のSTEP102~104を参照)において、「ページ1、3、4、5及びm」でデータのエラーが検出された場合を例として示している。 FIG. 5 is a diagram schematically showing reading and writing of data performed in STEP204-206. Here, in the error detection processing (see STEPs 102 to 104 in FIG. 2) targeting "block 2" of the NAND flash memory 13, a data error is detected in "pages 1, 3, 4, 5 and m". A case is shown as an example.

ページ1、3、4、5及びmでデータのエラーが検出された場合、当該ページに記憶されていたデータが誤り訂正を経て冗長メモリ15にコピーされる。このため、図5に示すように、冗長メモリ15には、NANDフラッシュメモリ13のブロック2のページ1、3、4、5及びmの各々に対応するデータである「データ2,1」、「データ2,3」、「データ2,4」、「データ2,5」及び「データ2,m」が格納されている。従って、コントローラ12は、これらのデータを読み出し、リフレッシュ先のブロックである「ブロックX」に書き込む。 When a data error is detected in pages 1, 3, 4, 5 and m, the data stored in the page is copied to redundant memory 15 after error correction. Therefore, as shown in FIG. 5, the redundant memory 15 stores "data 2, 1", " Data 2, 3", "Data 2, 4", "Data 2, 5" and "Data 2, m" are stored. Therefore, the controller 12 reads these data and writes them to "block X" which is the refresh destination block.

一方、ブロック2のページ1、3、4、5及びm以外のページに書き込まれているデータについては、データエラーが検出されていないため、対応するデータが冗長メモリ15に格納されていない。このため、コントローラ12は、これらのデータをNANDフラッシュメモリ13のブロック2から読み出し、リフレッシュ先のブロックであるブロックXに書き込む。 On the other hand, no data error is detected in the data written in pages other than pages 1, 3, 4, 5 and m of block 2, so the corresponding data is not stored in redundant memory 15. FIG. Therefore, the controller 12 reads these data from the block 2 of the NAND flash memory 13 and writes them to the block X which is the refresh destination block.

これにより、ブロックXには、ページ1~mに対応するデータ2,1、データ2,2データ2,3、・・・データ2,mが書き込まれ、ブロック2についてのリフレッシュ処理が完了する。 As a result, data 2,1, data 2,2, data 2,3, .

再び図4を参照すると、コントローラ12は、STEP203~206の一連の処理が第kブロックのmページ目まで行われたか否かを判定する(STEP207)。 Referring to FIG. 4 again, the controller 12 determines whether or not the series of processes from STEP203 to STEP206 has been performed up to the m-th page of the k-th block (STEP207).

一連の処理がmページ目まで行われていないと判定すると(STEP207:No)、jの値を“+1”だけインクリメントし(STEP208)、STEP203に戻る。 If it is determined that the series of processes has not been performed up to the m-th page (STEP 207: No), the value of j is incremented by "+1" (STEP 208), and the process returns to STEP 203.

一方、一連の処理がmページ目まで行われたと判定すると(STEP207:Yes)、冗長メモリ15に記録されている第kブロックのデータを消去し(STEP209)、リフレッシュ処理を終了する。 On the other hand, if it is determined that the series of processes has been performed up to the m-th page (STEP 207: Yes), the data of the k-th block recorded in the redundant memory 15 is erased (STEP 209), and the refresh process ends.

再び図2を参照すると、STEP103においてデータの劣化したページが発見されたと判定されなかった場合(STEP103:No)、STEP105において第kブロックの閾値以上のページ数のデータが冗長メモリ15に格納されていないと判定された場合(STEP105:No)、及びSTEP106の第kブロックのリフレッシュ処理が終了した場合、コントローラ12は、STEP102~106の一連の処理が第nブロックまで行われたか否かを判定する(STEP107)。 Referring to FIG. 2 again, if it is not determined in STEP 103 that a page with deteriorated data has been found (STEP 103: No), then in STEP 105 the redundant memory 15 stores data of the number of pages equal to or greater than the threshold value of the k-th block. If it is determined that there is no (STEP 105: No), and if the refresh processing of the k-th block in STEP 106 is completed, the controller 12 determines whether or not the series of processing of STEP 102 to 106 has been performed up to the n-th block. (STEP 107).

一連の処理が第nブロックまで行われていないと判定すると(STEP107:No)、kの値を“+1”だけインクリメントし(STEP108)、STEP102に戻る。 If it is determined that the series of processes has not been performed up to the n-th block (STEP107: No), the value of k is incremented by "+1" (STEP108), and the process returns to STEP102.

一方、一連の処理が第nブロックまで行われたと判定すると(STEP107:Yes)、NANDフラッシュメモリ13についてのエラー検出処理を終了する。 On the other hand, when it is determined that the series of processes has been performed up to the n-th block (STEP 107: Yes), the error detection process for the NAND flash memory 13 ends.

以上のように、本実施例の半導体記憶装置11では、NANDフラッシュメモリ13からデータを読み出して誤り検出訂正を行い、エラーが検出されたページのデータを冗長メモリ15に書き込む。そして、特定のブロック内の一定以上のページ数のデータが冗長メモリ15に記録された場合に、当該ブロックのリフレッシュ処理を実行する。 As described above, in the semiconductor memory device 11 of this embodiment, data is read from the NAND flash memory 13, error detection and correction are performed, and the data of the page in which the error is detected is written to the redundant memory 15. FIG. Then, when data of a certain number of pages or more in a specific block are recorded in the redundant memory 15, refresh processing of the block is executed.

本実施例の半導体記憶装置11によれば、データの劣化が発見されたページの数が1つのブロックにつき所定数以上に達した場合に当該ブロックのリフレッシュ処理を行うため、データが劣化したページが発見される度にリフレッシュ処理を行う場合と比べて、データの消去回数を抑えることができる。従って、NANDフラッシュメモリ13を長寿命化することが可能となる。 According to the semiconductor memory device 11 of the present embodiment, when the number of pages in which data deterioration has been detected reaches a predetermined number or more per block, the block is refreshed. The number of times data is erased can be reduced compared to the case where refresh processing is performed each time it is found. Therefore, the life of the NAND flash memory 13 can be extended.

次に、本発明の実施例2について説明する。図6は、本実施例のNANDフラッシュ制御システム200の概略構成を示すブロック図である。NANDフラッシュ制御システム200は、ホストコンピュータ20及び半導体記憶装置21から構成されている。 Next, Example 2 of the present invention will be described. FIG. 6 is a block diagram showing a schematic configuration of the NAND flash control system 200 of this embodiment. A NAND flash control system 200 comprises a host computer 20 and a semiconductor memory device 21 .

半導体記憶装置21は、コントローラ12、RAM14及びNANDフラッシュメモリ23を有する。 A semiconductor memory device 21 has a controller 12 , a RAM 14 and a NAND flash memory 23 .

本実施例のNANDフラッシュメモリ23は、複数のブロックからなる第1の領域と、これとは異なるブロックからなる第2の領域と、から構成されている。 The NAND flash memory 23 of this embodiment is composed of a first area made up of a plurality of blocks and a second area made up of different blocks.

第1の領域は、NANDフラッシュメモリ23に対する通常のデータの書き込みに用いられるメモリ領域である。第1の領域は、各々がm個のページからなるp個のブロック(pはp<nを満たす自然数)から構成されている。本実施例では、第1の領域へのデータの書き込みはMLC方式によって行われる。 The first area is a memory area used for normal data writing to the NAND flash memory 23 . The first area consists of p blocks (p is a natural number that satisfies p<n), each of which consists of m pages. In this embodiment, data is written to the first area by the MLC method.

第2の領域は、第1の領域においてデータが劣化したページが検出された場合に、当該ページのデータを書き込むためのメモリ領域である。すなわち、本実施例では、実施例1の冗長メモリ15(図1を参照)の代わりに、通常のメモリ領域として用いる第1の領域と同一のチップ内に、冗長領域として用いる第2の領域が設けられている。第2の領域は、各々がr個のページ(rはr<mを満たす自然数)からなるq個のブロック(qはq=n-pを満たす自然数)から構成されている。本実施例では、第2の領域へのデータの書き込みはSLC方式によって行われる。 The second area is a memory area for writing data of the page when a page whose data is degraded is detected in the first area. That is, in this embodiment, instead of the redundant memory 15 (see FIG. 1) of the first embodiment, a second area used as a redundant area is provided in the same chip as a first area used as a normal memory area. is provided. The second area consists of q blocks (q is a natural number satisfying q=n−p), each of which consists of r pages (r is a natural number satisfying r<m). In this embodiment, data is written to the second area by the SLC method.

コントローラ12は、NANDフラッシュメモリ13の第1の領域のp個のブロックに対してページ毎に誤り検出訂正処理を行い、各ページにおけるデータの劣化の有無を検出する。データの劣化したページを発見すると、コントローラ12は、誤り訂正を経た当該ページのデータをNANDフラッシュメモリ13の第2の領域に書き込む。 The controller 12 performs error detection and correction processing for each page of p blocks in the first area of the NAND flash memory 13, and detects the presence or absence of data deterioration in each page. When a page with degraded data is found, the controller 12 writes the error-corrected data of the page to the second area of the NAND flash memory 13 .

図7は、第2の領域へのデータの書き込みを模式的に示す図である。例えば、NANDフラッシュメモリ13の第1の領域のブロック2において、ページ1、3及び4でデータの劣化が検出された場合、これらのページに記録されていたデータである「データ2,1」、「データ2,3」及び「データ2,4」が誤り訂正を経てNANDフラッシュメモリ13の第2の領域に書き込まれる。以後、ブロックのリフレッシュ処理が行われるまでの間、当該ページのデータを読み出す際には、第2の領域からデータの読み出しが行われる。そして、第1の領域のブロックのリフレッシュ処理が行われると、当該ブロックに対応するデータは第2の領域から消去される。 FIG. 7 is a diagram schematically showing writing of data to the second area. For example, in the block 2 of the first area of the NAND flash memory 13, when data deterioration is detected in pages 1, 3 and 4, the data recorded in these pages "data 2, 1", "Data 2, 3" and "Data 2, 4" are written to the second area of the NAND flash memory 13 through error correction. Thereafter, until the refresh processing of the block is performed, when reading the data of the page, the data is read from the second area. Then, when the refresh processing of the blocks in the first area is performed, the data corresponding to the blocks are erased from the second area.

なお、第2の領域の1つのブロックには第1の領域の1つのブロックのページのデータが書き込まれるように、管理及び制御がなされる。すなわち、第1の領域の同一のブロックに記録されていたデータは、第2の領域の同一のブロックに書き込まれる。そして、第1の領域の互いに異なるブロックに記録されていたデータは、第2の領域の互いに異なるブロックにそれぞれ書き込まれる。 Note that management and control are performed such that page data of one block of the first area is written into one block of the second area. That is, data recorded in the same block in the first area is written in the same block in the second area. Data recorded in different blocks in the first area are written in different blocks in the second area.

コントローラ12は、第2の領域の1つのブロックの全ページ(すなわち、r個のページ)にデータが書き込まれた場合に、そのデータの元の記録場所であるページを含む第1の領域のブロックについて、リフレッシュ処理を実行する。 When data is written to all pages (that is, r pages) of one block of the second area, the controller 12 controls the block of the first area including the page that is the original recording location of the data. Execute refresh processing.

リフレッシュ処理では、コントローラ12は、第2の領域に記録されているデータ(すなわち、データの劣化が発見されたページのデータ)については、第2の領域から読み出したデータをリフレッシュ先のブロックに書き込む。一方、第2の領域に記録されていないデータ(すなわち、データの劣化が発見されなかったページのデータ)については、コントローラ12は、第1の領域から読み出したデータをリフレッシュ先のブロックに書き込む。 In the refresh process, the controller 12 writes the data read from the second area to the refresh destination block for the data recorded in the second area (that is, the data of the page in which data deterioration was found). . On the other hand, the controller 12 writes the data read from the first area to the refresh destination block for the data not recorded in the second area (that is, the data of the page for which deterioration of data was not found).

このように、本実施例の半導体記憶装置21では、NANDフラッシュメモリ13にSLC方式でデータを書き込む第2の領域を設け、データエラーが検出されたページのデータの移動先となる退避用のメモリとして使用する。SLC方式は、MLC方式やTLC方式と比べてデータの消去可能回数が多いため、データが繰り返し消去されることを前提とする退避用のメモリとして使用しても、NANDフラッシュメモリ13の寿命の低下を抑えることができる。従って、本実施例の半導体記憶装置21によれば、実施例1のような冗長メモリを別途設けることなく、NANDフラッシュメモリ13を長寿命化することが可能となる。 As described above, in the semiconductor memory device 21 of the present embodiment, the NAND flash memory 13 is provided with the second area in which data is written by the SLC method, and the data of the page in which the data error is detected is transferred to the save memory. Use as Since the SLC method allows data to be erased more times than the MLC method and the TLC method, the life of the NAND flash memory 13 is shortened even if it is used as a backup memory on the premise that data is repeatedly erased. can be suppressed. Therefore, according to the semiconductor memory device 21 of this embodiment, it is possible to extend the life of the NAND flash memory 13 without separately providing a redundant memory as in the first embodiment.

なお、本発明は上記実施例で示したものに限られない。例えば、上記実施例では、半導体記憶装置11の電源投入の直後にNANDフラッシュメモリ13の第1~第nのブロックの各々のページについて順次エラー検出処理を行う例について説明した。しかし、エラー検出処理を行うタイミングはこれに限られない。例えば、あるブロックに対してアクセスがあった場合に、そのブロックについてのみエラー検出処理を行ってもよい。この場合、当該ブロックのみを対象として、図2のフローチャートのSTEP103~106の処理(すなわち、冗長メモリ15へのデータの書き込み及びリフレッシュ処理)が実行される。 It should be noted that the present invention is not limited to those shown in the above embodiments. For example, in the above embodiment, an example has been described in which error detection processing is sequentially performed on each page of the first to n-th blocks of the NAND flash memory 13 immediately after the power of the semiconductor memory device 11 is turned on. However, the timing of performing error detection processing is not limited to this. For example, when a certain block is accessed, error detection processing may be performed only for that block. In this case, the processing of STEPs 103 to 106 in the flowchart of FIG. 2 (that is, writing data to the redundant memory 15 and refresh processing) is executed only for the block concerned.

また、電源投入直後にエラー検出処理を行う場合であっても、必ずしも1回のエラー検出処理で全てのブロックに対して処理を行わなくてもよい。例えば、1回の電源投入につきk個(kはn未満の自然数)のブロックを対象としてエラー検出処理を行い、対象となるブロックを電源投入毎に順次遷移させるようにしてもよい。 Further, even when the error detection process is performed immediately after the power is turned on, it is not necessary to perform the error detection process for all blocks in one error detection process. For example, the error detection process may be performed on k blocks (k is a natural number less than n) each time the power is turned on, and the target blocks may be sequentially transitioned each time the power is turned on.

また、上記実施例2では、NANDフラッシュメモリ23が、通常のデータの書き込みを行う第1の領域と、エラーを含むページが検出された際に当該ページのデータの書き込みを行う第2の領域と、から構成されている場合について説明した。しかし、第1の領域及び第2の領域の区分は、予めなされていなくてもよい。すなわち、通常の状態ではNANDフラッシュメモリ23の全てのメモリ領域を第1の領域として使用し、データの劣化が検出された場合に、その時点で空いているブロックを第2の領域として使用するように構成されていてもよい。 In addition, in the second embodiment, the NAND flash memory 23 has a first area in which normal data is written, and a second area in which, when a page containing an error is detected, data of the page is written. , has been described. However, the division into the first area and the second area may not be made in advance. That is, in a normal state, the entire memory area of the NAND flash memory 23 is used as the first area, and when data deterioration is detected, an empty block at that time is used as the second area. may be configured to

また、上記実施例2では、MLC方式で第1の領域へのデータの書き込みを行い、SLC方式で第2の領域へのデータの書き込みを行う場合を例として説明した。しかし、データ記録方式はこれに限られない。例えば、第1の領域にはTLC(Triple Level Cell)方式でデータを記録し、第2の領域にはMLC方式でデータを記録するようにしてもよい。ただし、第2の領域は、データエラーが検出された第1の領域のページのデータを一時的に移す退避用のメモリとして用いる領域であり、繰り返し消去が行われることを前提とする記憶領域であるため、第1の領域よりも消去可能回数の多いデータ記録方式を採用することが望ましい。 Further, in the second embodiment, the case where data is written to the first area by the MLC method and data is written to the second area by the SLC method has been described as an example. However, the data recording method is not limited to this. For example, data may be recorded in the first area by the TLC (Triple Level Cell) method, and data may be recorded in the second area by the MLC method. However, the second area is an area used as a memory for saving the page data of the first area in which a data error has been detected, and is a storage area that is assumed to be erased repeatedly. Therefore, it is desirable to adopt a data recording method that allows more erasable times than in the first area.

また、上記実施例では、リフレッシュ処理の最初の段階(図4のSTEP201)でリフレッシュ先ブロックに書き込まれているデータを消去する場合を例として説明した。しかし、リフレッシュ先ブロックのデータの消去のタイミングはこれに限られず、リフレッシュ処理を行う段階でリフレッシュ先ブロックにデータが記録されていない状態が実現されていればよい。例えば、予め空きブロックとなっているブロックをリフレッシュ先ブロックとして用いてもよい。また、リフレッシュ処理を行った後に元のデータが記録されていたブロックの消去を行うことにより、一定の空きブロックが常に確保されるようにしてもよい。 Also, in the above embodiment, the case where the data written in the refresh destination block is erased at the first stage of the refresh process (STEP 201 in FIG. 4) has been described as an example. However, the timing of erasing the data in the refresh destination block is not limited to this, as long as the state in which no data is recorded in the refresh destination block is realized at the stage of performing the refresh processing. For example, a block that has become an empty block in advance may be used as a refresh destination block. Alternatively, a certain number of empty blocks may be always secured by erasing the blocks in which the original data were recorded after performing the refresh process.

また、上記実施例2では、第2の領域の1つのブロックの全ページにデータが格納された場合にリフレッシュ処理を行う場合を例として説明した。しかし、リフレッシュ処理を行わず、エラー検出時のデータの移動先(退避先)である第2領域のブロックを、そのままデータのコピー先のブロックとして用いてもよい。例えば、図8に示すように、劣化したデータを含むページを発見した際に当該ページのデータを第2の領域のブロックに順次書き込み、第2の領域の1のブロックの全てのページにデータが格納された場合には、当該1のブロックに隣接するブロックにデータを順次書き込む。第2の領域の複数のブロックに亘ってデータを記録することにより、最終的には第1の領域の1のブロックの全てのページのデータを第2領域に移すことができる。そして、第1の領域の1のブロックに対応するデータを第2の領域の複数のブロックで管理することにより、リフレッシュ処理を行うことなくデータの書き直しを完了することができる。従って、リフレッシュ処理に付随するデータの消去を行う必要がないため、NANDフラッシュメモリを長寿命化することが可能となる。 Also, in the second embodiment, the case where the refresh process is performed when data is stored in all pages of one block in the second area has been described as an example. However, the block of the second area, which is the destination (save destination) of the data at the time of error detection, may be directly used as the block of the data copy destination without performing the refresh process. For example, as shown in FIG. 8, when a page containing degraded data is found, the data of the page is sequentially written into the blocks of the second area so that all the pages of one block of the second area have data. If it is stored, the data is sequentially written to blocks adjacent to the one block. By recording data over a plurality of blocks in the second area, finally all pages of data in one block in the first area can be moved to the second area. By managing data corresponding to one block in the first area with a plurality of blocks in the second area, rewriting of data can be completed without performing refresh processing. Therefore, since there is no need to erase data associated with refresh processing, the life of the NAND flash memory can be extended.

また、本発明の半導体記憶装置は、NANDフラッシュメモリ以外の他の種類の不揮発性メモリにも適用することが可能である。例えば、NANDフラッシュメモリはページ毎にデータの書き込み及び読み出しを行い、ブロック毎にデータの消去を行うことを前提としているが、これとは異なり、ページ毎にデータの消去を行うことが可能な不揮発性メモリに本発明を適用することも可能である。このような不揮発性メモリにおいても、誤りを含むページの数が一定以上に達した場合にリフレッシュ処理を実行することにより、その都度リフレッシュ処理を実行する場合と比べて、少ない機会に集中してリフレッシュ処理を行うことが可能となる。 Also, the semiconductor memory device of the present invention can be applied to other types of non-volatile memory other than NAND flash memory. For example, NAND flash memory is premised on writing and reading data page by page and erasing data block by block. It is also possible to apply the present invention to a static memory. Even in such a non-volatile memory, by executing the refresh process when the number of pages containing errors reaches a certain level or more, the refresh process can be concentrated on fewer occasions than when the refresh process is executed each time. processing can be performed.

100、200 NANDフラッシュ制御システム
10 ホストコンピュータ
11、21 半導体記憶装置
12 コントローラ
13 NANDフラッシュメモリ
14 RAM
15 冗長メモリ
100, 200 NAND flash control system 10 host computer 11, 21 semiconductor memory device 12 controller 13 NAND flash memory 14 RAM
15 redundant memory

Claims (10)

各々が複数のセルからなるm個のページを夫々含むn個のブロック(m,nは2以上の整数)を有する第1の記憶部と、
複数のセルを有する第2の記憶部と、
前記第1の記憶部及び前記第2の記憶部に対するデータの書き込み、読み出し及び消去を制御する制御部と、
を有し、
前記制御部は、前記第1の記憶部からページ毎にデータを読み出して誤り検出を行い、
当該誤り検出において、前記第1の記憶部内でデータの誤りを含むページが検出された場合には、当該誤りを含むページのデータに誤り訂正を施したデータを前記第2の記憶部に書き込み、
前記第1の記憶部の1のブロック内の所定数のページに記憶されていたデータが前記第2の記憶部に書き込まれた場合に、前記1のブロックのリフレッシュ処理を実行することを特徴とする半導体記憶装置。
a first storage unit having n blocks (where m and n are integers equal to or greater than 2) each containing m pages each consisting of a plurality of cells;
a second storage unit having a plurality of cells;
a control unit that controls writing, reading, and erasing of data in the first storage unit and the second storage unit;
has
The control unit reads data page by page from the first storage unit and performs error detection,
In the error detection, when a page including a data error is detected in the first storage unit, the data of the page including the error is error-corrected and written to the second storage unit;
When data stored in a predetermined number of pages in one block of the first storage unit is written to the second storage unit, the one block is refreshed. semiconductor memory device.
前記制御部は、前記リフレッシュ処理において、前記1のブロックのm個のページに記憶されているデータのうち、前記第2の記憶部に書き込まれた前記データを前記第1の記憶部の1の空きブロックに書き込み、前記第2の記憶部に書き込まれた前記データ以外のデータを前記第1の記憶部の前記1のブロックから読み出して前記1の空きブロックに書き込むことを特徴とする請求項1に記載の半導体記憶装置。 In the refresh process, the control unit converts the data written in the second storage unit out of the data stored in the m pages of the one block into one of the first storage units. 2. An empty block is written, and data other than the data written in the second storage unit is read from the one block of the first storage unit and written into the one empty block. 2. The semiconductor memory device according to . 前記制御部は、前記第1の記憶部の前記1のブロック以外のブロックのうちの1つのブロックに記録されているデータを消去することにより、前記1の空きブロックを生成することを特徴とする請求項2に記載の半導体記憶装置。 The control unit generates the one empty block by erasing data recorded in one of blocks other than the one block in the first storage unit. 3. The semiconductor memory device according to claim 2. 前記制御部は、セル毎に複数ビットのデータを記録する方式である第1のデータ記録方式で前記第1の記憶部にデータを書き込み、
セル毎に記録されるデータのビット数が前記第1のデータ記録方式よりも少ない第2のデータ記録方式で前記第2の記憶部にデータを書き込むことを特徴とする請求項1乃至3のいずれか1に記載の半導体記憶装置。
The control unit writes data to the first storage unit by a first data recording method, which is a method of recording multiple bits of data for each cell,
4. The method according to any one of claims 1 to 3, wherein data is written in said second storage unit by a second data recording method in which the number of bits of data recorded in each cell is smaller than that in said first data recording method. 1. A semiconductor memory device according to claim 1.
前記第1のデータ記録方式は、MLC(Multiple Level Cell)方式又はTLC(Triple Level Cell)方式であり、
前記第2のデータ記録方式は、SLC(Single Level Cell)方式であることを特徴とする請求項4に記載の半導体記憶装置。
The first data recording method is an MLC (Multiple Level Cell) method or a TLC (Triple Level Cell) method,
5. The semiconductor memory device according to claim 4, wherein said second data recording method is an SLC (Single Level Cell) method.
前記第1の記憶部は、前記第1のデータ記録方式でデータが記録される第1の不揮発性メモリから構成され、
前記第2の記憶部は、前記第2のデータ記録方式でデータが記録される第2の不揮発性メモリから構成されていることを特徴とする請求項4又は5に記載の半導体記憶装置。
The first storage unit is composed of a first nonvolatile memory in which data is recorded by the first data recording method,
6. The semiconductor memory device according to claim 4, wherein said second storage section comprises a second non-volatile memory in which data is recorded by said second data recording method.
前記第1の記憶部は、1の不揮発性メモリ内のn個のブロックからなるブロック群として構成され、
前記第2の記憶部は、前記1の不揮発性メモリ内の前記n個のブロックとは異なるブロックから構成されていることを特徴とする請求項1乃至5のいずれか1に記載の半導体記憶装置。
The first storage unit is configured as a block group consisting of n blocks in one nonvolatile memory,
6. The semiconductor memory device according to any one of claims 1 to 5, wherein said second storage unit is composed of blocks different from said n blocks in said one nonvolatile memory. .
各々が複数のセルからなるm個のページを夫々含むn個のブロック(m,nは2以上の整数)を有する第1の記憶部と、複数のセルを有する第2の記憶部と、データの書き込み、読み出し、消去及び誤り検出訂正処理を制御する制御部と、を有する半導体記憶装置が実行するブロックのリフレッシュ方法であって、
前記第1の記憶部からページ毎にデータを読み出して誤り検出を行うステップと、
前記誤り検出において前記第1の記憶部にデータの誤りを含むページが検出された場合に、当該誤りを含むページのデータに誤り訂正を施したデータを前記第2の記憶部に書き込むステップと、
前記第1の記憶部の1のブロックの所定数のページに記憶されていたデータが前記第2の記憶部に書き込まれた場合に、前記1のブロックのリフレッシュ処理を実行するステップと、
を含むことを特徴とするリフレッシュ方法。
a first storage section having n blocks (where m and n are integers equal to or greater than 2) each containing m pages each consisting of a plurality of cells; a second storage section having a plurality of cells; A block refresh method executed by a semiconductor memory device having a control unit for controlling writing, reading, erasing, and error detection and correction processing of
a step of reading data page by page from the first storage unit and performing error detection;
when a page including a data error is detected in the first storage unit in the error detection, writing data obtained by performing error correction on the data of the page including the error in the second storage unit;
a step of performing refresh processing of the one block when data stored in a predetermined number of pages of one block of the first storage unit is written to the second storage unit;
A refresh method, comprising:
前記リフレッシュ処理を実行するステップは、
前記1のブロックのm個のページに記憶されているデータのうち、前記第2の記憶部に書き込まれた前記データを前記第1の記憶部の1の空きブロックに書き込むステップと、
前記1のブロックのm個のページに記憶されているデータのうち、前記第2の記憶部に書き込まれた前記データ以外のデータを前記第1の記憶部の前記1のブロックから読み出して前記1の空きブロックに書き込むステップと、
を含むことを特徴とする請求項8に記載のリフレッシュ方法。
The step of executing the refresh process includes:
a step of writing the data written in the second storage unit, among the data stored in m pages of the one block, into one free block of the first storage unit;
Of the data stored in the m pages of the one block, data other than the data written in the second storage unit is read out from the one block of the first storage unit and read out from the one block. writing to a free block in
9. The refreshing method according to claim 8, comprising:
前記第1の記憶部の前記1のブロック以外のブロックのうちの1つのブロックに記録されているデータを消去することにより、前記1の空きブロックを生成するステップを含むことを特徴とする請求項9に記載のリフレッシュ方法。 3. The step of generating the one empty block by erasing data recorded in one of blocks other than the one block in the first storage unit. 9. The refresh method according to 9.
JP2020009681A 2020-01-24 2020-01-24 Semiconductor memory device and refresh method for semiconductor memory device Active JP7291640B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020009681A JP7291640B2 (en) 2020-01-24 2020-01-24 Semiconductor memory device and refresh method for semiconductor memory device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020009681A JP7291640B2 (en) 2020-01-24 2020-01-24 Semiconductor memory device and refresh method for semiconductor memory device

Publications (2)

Publication Number Publication Date
JP2021118011A JP2021118011A (en) 2021-08-10
JP7291640B2 true JP7291640B2 (en) 2023-06-15

Family

ID=77175092

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020009681A Active JP7291640B2 (en) 2020-01-24 2020-01-24 Semiconductor memory device and refresh method for semiconductor memory device

Country Status (1)

Country Link
JP (1) JP7291640B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004326867A (en) 2003-04-22 2004-11-18 Toshiba Corp Data storage system
JP2005243183A (en) 2004-02-27 2005-09-08 Toshiba Corp Data storage system
JP2009205578A (en) 2008-02-29 2009-09-10 Toshiba Corp Semiconductor storage device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004326867A (en) 2003-04-22 2004-11-18 Toshiba Corp Data storage system
JP2005243183A (en) 2004-02-27 2005-09-08 Toshiba Corp Data storage system
JP2009205578A (en) 2008-02-29 2009-09-10 Toshiba Corp Semiconductor storage device

Also Published As

Publication number Publication date
JP2021118011A (en) 2021-08-10

Similar Documents

Publication Publication Date Title
JP5505922B2 (en) Memory system and reading method thereof
US8271515B2 (en) System and method for providing copyback data integrity in a non-volatile memory system
US9852032B2 (en) Data storage devices and data maintenance methods
US20120072798A1 (en) Semiconductor device
TWI388982B (en) Semiconductor memory device with memory cell having charge accumulation layer and control gate and memory system
JPWO2007119267A1 (en) Memory controller for flash memory
US10410738B2 (en) Memory system and control method
US9361221B1 (en) Write amplification reduction through reliable writes during garbage collection
US20170162267A1 (en) Data Storage Device and Data Maintenance Method
US11138070B2 (en) Memory system and method performed thereby
JP5592478B2 (en) Nonvolatile storage device and memory controller
US10714193B2 (en) Data storage apparatus and method for preventing data error using the same
JP5494086B2 (en) Nonvolatile storage device and nonvolatile memory controller
US20210034541A1 (en) Memory system, memory control device, and memory control method
JP7291640B2 (en) Semiconductor memory device and refresh method for semiconductor memory device
US11487655B2 (en) Method for managing flash memory module and associated flash memory controller and electronic device based on timing of dummy read operations
US11249838B2 (en) Memory system, memory controller, and method of operating memory controller
JP2010128697A (en) Memory system
US8885406B2 (en) Memory device, memory control device, and memory control method
US10777297B2 (en) Age-based refresh of firmware
JP2005292925A (en) Memory controller, flash memory system, and control method for flash memory
US11367472B2 (en) Semiconductor storage device
US11656790B2 (en) Memory system, memory controller, and operation method of memory system
TWI823649B (en) Control method of flash memory controller, flash memory controller, and electronic device
JP4304167B2 (en) Memory controller, flash memory system, and flash memory control method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220907

TRDD Decision of grant or rejection written
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230428

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20230509

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230605

R150 Certificate of patent or registration of utility model

Ref document number: 7291640

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150