JP2012230758A - Semiconductor device - Google Patents

Semiconductor device Download PDF

Info

Publication number
JP2012230758A
JP2012230758A JP2012163839A JP2012163839A JP2012230758A JP 2012230758 A JP2012230758 A JP 2012230758A JP 2012163839 A JP2012163839 A JP 2012163839A JP 2012163839 A JP2012163839 A JP 2012163839A JP 2012230758 A JP2012230758 A JP 2012230758A
Authority
JP
Japan
Prior art keywords
transistor
memory cell
voltage
data
conduction electrode
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.)
Granted
Application number
JP2012163839A
Other languages
Japanese (ja)
Other versions
JP5301020B2 (en
Inventor
Shinji Kawai
伸治 河井
Akira Hosogane
明 細金
Shigehiro Hisaie
重博 久家
Kohei Hashimoto
康平 橋本
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.)
Renesas Electronics Corp
Original Assignee
Renesas Electronics Corp
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 Renesas Electronics Corp filed Critical Renesas Electronics Corp
Priority to JP2012163839A priority Critical patent/JP5301020B2/en
Publication of JP2012230758A publication Critical patent/JP2012230758A/en
Application granted granted Critical
Publication of JP5301020B2 publication Critical patent/JP5301020B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Read Only Memory (AREA)
  • For Increasing The Reliability Of Semiconductor Memories (AREA)

Abstract

PROBLEM TO BE SOLVED: To prevent a threshold voltage of a memory cell from being difficult to fall down due to repeating of data rewriting.SOLUTION: Each memory cell MC of a semiconductor device 1 includes a first transistor (for reading) TRA and a second transistor (for writing) each having a common floating gate FG. A control circuit 11 detects short circuit between sub-bit lines SBL_R and SBL_P connected to the first and second transistors, respectively by comparing current caused to flow to the memory cell when energizing one transistor with current caused to flow to the memory cell when energizing the both transistors.

Description

本発明は、半導体装置に関し、特に、データを不揮発的に記憶する半導体装置に関する。   The present invention relates to a semiconductor device, and more particularly to a semiconductor device that stores data in a nonvolatile manner.

EEPROM(Electrically Erasable Programmable Read Only Memory)は、初期パラメータを格納したり、設定値を保持したりするための書き換え単位の小さいデータ記憶領域を有する。そして、EEPROMをマイクロコンピュータに内蔵することが要求されている。EEPROMをマイクロコンピュータに混載することにより、同一プロセスを使用することによる製造コストの削減を図ることができ、また、マイクロコンピュータを使用する装置の省スペース化を図ることができる。このようなマイクロコンピュータに内蔵されたEEPROMには、たとえば10万回のデータ書き換え保証、小さいデータ消去単位および早いデータ消去スピードが要求される。   An EEPROM (Electrically Erasable Programmable Read Only Memory) has a data storage area with a small rewrite unit for storing initial parameters and holding set values. Then, it is required to incorporate the EEPROM in the microcomputer. By embedding the EEPROM in the microcomputer, the manufacturing cost can be reduced by using the same process, and the space for the apparatus using the microcomputer can be reduced. For an EEPROM built in such a microcomputer, for example, a data rewrite guarantee of 100,000 times, a small data erasing unit and a fast data erasing speed are required.

たとえば、特許文献1には、以下のようなEEPROMが開示されている。すなわち、基板と、基板から絶縁材料によって隔離された導電材料製の浮遊ゲートと、読み出し用第1チャネルとプログラミング用第2チャネルとを有する。そして、浮遊ゲートへの電荷注入点が、第1チャネルに重ならない構成である。   For example, Patent Document 1 discloses the following EEPROM. That is, it has a substrate, a floating gate made of a conductive material isolated from the substrate by an insulating material, a first read channel, and a second programming channel. The charge injection point to the floating gate does not overlap with the first channel.

特開平6−188427号公報JP-A-6-188427

しかしながら、特許文献1には、データ消去時間の増大を防ぐための具体的な方法が開示されていない。   However, Patent Document 1 does not disclose a specific method for preventing an increase in data erasing time.

それゆえに、本発明の目的は、データ消去時間の増大を防ぐことが可能な半導体装置を提供することである。   Therefore, an object of the present invention is to provide a semiconductor device capable of preventing an increase in data erasing time.

本発明に係る半導体装置は、要約すれば、データを不揮発的に記憶する半導体装置であって、第1のトランジスタは、浮遊ゲートと、制御ゲートと、第1導通電極と、第2導通電極とを有する。第2のトランジスタは、第1のトランジスタと共通の浮遊ゲートと、第1のトランジスタの制御ゲートに結合される制御ゲートと、第1導通電極と、第1のトランジスタの第2導通電極に結合される第2導通電極とを有する。そして、データ読み出し時、第1のトランジスタおよび第2のトランジスタの制御ゲートに正の第1電圧が供給される。第1のトランジスタの第1導通電極に第1電圧より小さい正の第2電圧が供給される。第1のトランジスタおよび第2のトランジスタの第2導通電極に第2電圧より小さい第3電圧が供給される。第2のトランジスタの第1導通電極に第2電圧より小さい第4電圧が供給される。   In summary, the semiconductor device according to the present invention is a semiconductor device that stores data in a nonvolatile manner, and the first transistor includes a floating gate, a control gate, a first conduction electrode, and a second conduction electrode. Have The second transistor is coupled to a common floating gate with the first transistor, a control gate coupled to the control gate of the first transistor, a first conduction electrode, and a second conduction electrode of the first transistor. A second conductive electrode. When reading data, a positive first voltage is supplied to the control gates of the first transistor and the second transistor. A positive second voltage smaller than the first voltage is supplied to the first conduction electrode of the first transistor. A third voltage smaller than the second voltage is supplied to the second conducting electrodes of the first transistor and the second transistor. A fourth voltage lower than the second voltage is supplied to the first conduction electrode of the second transistor.

また本発明のさらに別の局面に係る半導体装置は、要約すれば、データを不揮発的に記憶する半導体装置であって、第1のトランジスタは、浮遊ゲートと、制御ゲートと、第1導通電極と、第2導通電極とを有する。第2のトランジスタは、第1のトランジスタと共通の浮遊ゲートと、第1のトランジスタの制御ゲートに結合される制御ゲートと、第1導通電極と、第1のトランジスタの第2導通電極に結合される第2導通電極とを有する。データ書き込み時、第1のトランジスタおよび第2のトランジスタの制御ゲートに正の第1電圧が供給される。第2のトランジスタの第1導通電極に第1電圧より小さい第2電圧が供給される。第1のトランジスタの第1導通電極に第2電圧より小さい第3電圧が供給される。第1のトランジスタおよび第2のトランジスタの第2導通電極に第2電圧より小さい第4電圧が供給される。   In summary, a semiconductor device according to still another aspect of the present invention is a semiconductor device that stores data in a nonvolatile manner, and the first transistor includes a floating gate, a control gate, and a first conduction electrode. And a second conduction electrode. The second transistor is coupled to a common floating gate with the first transistor, a control gate coupled to the control gate of the first transistor, a first conduction electrode, and a second conduction electrode of the first transistor. A second conductive electrode. When writing data, a positive first voltage is supplied to the control gates of the first transistor and the second transistor. A second voltage lower than the first voltage is supplied to the first conduction electrode of the second transistor. A third voltage lower than the second voltage is supplied to the first conduction electrode of the first transistor. A fourth voltage smaller than the second voltage is supplied to the second conducting electrodes of the first transistor and the second transistor.

また本発明のさらに別の局面に係る半導体装置は、要約すれば、データを不揮発的に記憶する半導体装置であって、第1のトランジスタは、浮遊ゲートと、制御ゲートと、第1導通電極と、第2導通電極とを有する。第2のトランジスタは、第1のトランジスタと共通の浮遊ゲートと、第1のトランジスタの制御ゲートに結合される制御ゲートと、第1導通電極と、第1のトランジスタの第2導通電極に結合される第2導通電極とを有する。データ消去時、第1のトランジスタおよび第2のトランジスタの制御ゲートに負の第1電圧が供給される。第1のトランジスタの第1導通電極および第2のトランジスタの第1導通電極が開放される。第1のトランジスタおよび第2のトランジスタの第2導通電極に正の第2電圧が供給される。   In summary, a semiconductor device according to still another aspect of the present invention is a semiconductor device that stores data in a nonvolatile manner, and the first transistor includes a floating gate, a control gate, and a first conduction electrode. And a second conduction electrode. The second transistor is coupled to a common floating gate with the first transistor, a control gate coupled to the control gate of the first transistor, a first conduction electrode, and a second conduction electrode of the first transistor. A second conductive electrode. When erasing data, a negative first voltage is supplied to the control gates of the first transistor and the second transistor. The first conduction electrode of the first transistor and the first conduction electrode of the second transistor are opened. A positive second voltage is supplied to the second conducting electrodes of the first transistor and the second transistor.

また本発明のさらに別の局面に係る半導体装置は、要約すれば、メモリセルは、閾値電圧の相違を利用してデータを不揮発的に記憶する。制御回路は、データ消去時、メモリセルの閾値電圧が第1ベリファイ電圧以下であるか否かを判定する。制御回路は、メモリセルの閾値電圧が第1ベリファイ電圧以下でない場合にはメモリセルに閾値電圧を小さくするための消去電圧を印加する。制御回路は、消去電圧の印加時間が第1の判定値を超えると第1の劣化状態を表わす信号を出力する。制御回路は、消去電圧の印加時間が第1の判定値より大きい第2の判定値を超えると第2の劣化状態を表わす信号を出力する。   In summary, a semiconductor device according to still another aspect of the present invention stores data in a nonvolatile manner using a difference in threshold voltage. The control circuit determines whether the threshold voltage of the memory cell is equal to or lower than the first verify voltage when erasing data. The control circuit applies an erase voltage for reducing the threshold voltage to the memory cell when the threshold voltage of the memory cell is not lower than the first verify voltage. The control circuit outputs a signal representing the first deterioration state when the application time of the erase voltage exceeds the first determination value. The control circuit outputs a signal indicating the second deterioration state when the application time of the erase voltage exceeds a second determination value that is larger than the first determination value.

また本発明のさらに別の局面に係る半導体装置は、要約すれば、メモリセルは、閾値電圧の相違を利用してデータを不揮発的に記憶する。制御回路は、データ消去時、メモリセルの閾値電圧が第1ベリファイ電圧以下であるか否かを判定する。制御回路は、メモリセルの閾値電圧が第1ベリファイ電圧以下でない場合にはメモリセルに閾値電圧を小さくするための消去電圧を印加し、さらに、メモリセルの閾値電圧が第1ベリファイ電圧より小さい第2ベリファイ電圧以上であるか否かを判定する。制御回路は、メモリセルの閾値電圧が第2ベリファイ電圧以上でない場合には、メモリセルに閾値電圧を大きくするための第1の書き込み電圧を印加する。制御回路は、メモリセルの閾値電圧が第1ベリファイ電圧以下である場合には、メモリセルの閾値電圧が、第1ベリファイ電圧より小さくかつ第2ベリファイ電圧より大きい第3ベリファイ電圧以上であるか否かを判定する。制御回路は、第3ベリファイ電圧以上でない場合にはメモリセルに閾値電圧を大きくするための第2の書き込み電圧を印加する。   In summary, a semiconductor device according to still another aspect of the present invention stores data in a nonvolatile manner using a difference in threshold voltage. The control circuit determines whether the threshold voltage of the memory cell is equal to or lower than the first verify voltage when erasing data. The control circuit applies an erase voltage for reducing the threshold voltage to the memory cell when the threshold voltage of the memory cell is not equal to or lower than the first verify voltage, and further, the threshold voltage of the memory cell is smaller than the first verify voltage. It is determined whether or not the voltage is equal to or higher than 2 verify voltage. The control circuit applies a first write voltage for increasing the threshold voltage to the memory cell when the threshold voltage of the memory cell is not equal to or higher than the second verify voltage. When the threshold voltage of the memory cell is equal to or lower than the first verify voltage, the control circuit determines whether the threshold voltage of the memory cell is equal to or higher than a third verify voltage that is smaller than the first verify voltage and larger than the second verify voltage. Determine whether. The control circuit applies a second write voltage for increasing the threshold voltage to the memory cell when the voltage is not equal to or higher than the third verify voltage.

また本発明のさらに別の局面に係る半導体装置は、要約すれば、データを不揮発的に記憶する半導体装置であって、第1のトランジスタは、浮遊ゲートと、制御ゲートと、第1導通電極と、第2導通電極とを有する。第2のトランジスタは、第1のトランジスタと共通の浮遊ゲートと、第1のトランジスタの制御ゲートに結合される制御ゲートと、第1導通電極と、第1のトランジスタの第2導通電極に結合される第2導通電極とを有する。制御回路は、第1の電流と第2の電流とを比較し、比較結果に基づいて第1のトランジスタの第1導通電極および第2のトランジスタの第1導通電極間のショートの有無を検出する。第1の電流は、第1のトランジスタの第1導通電極および第2のトランジスタの第1導通電極の両方に第1の電圧を供給し、かつ第1のトランジスタおよび第2のトランジスタの第2導通電極に第1の電圧と異なる第2の電圧を供給した場合において第1のトランジスタおよび第2のトランジスタの第1導通電極と第1のトランジスタおよび第2のトランジスタの第2導通電極との間に流れる電流である。第2の電流は、第1のトランジスタの第1導通電極および第2のトランジスタの第1導通電極のいずれか一方に第1の電圧を供給し、かつ第1のトランジスタおよび第2のトランジスタの第2導通電極に第2の電圧を供給した場合において第1のトランジスタおよび第2のトランジスタの第1導通電極と第1のトランジスタおよび第2のトランジスタの第2導通電極との間に流れる電流である。   In summary, a semiconductor device according to still another aspect of the present invention is a semiconductor device that stores data in a nonvolatile manner, and the first transistor includes a floating gate, a control gate, and a first conduction electrode. And a second conduction electrode. The second transistor is coupled to a common floating gate with the first transistor, a control gate coupled to the control gate of the first transistor, a first conduction electrode, and a second conduction electrode of the first transistor. A second conductive electrode. The control circuit compares the first current and the second current, and detects the presence or absence of a short circuit between the first conduction electrode of the first transistor and the first conduction electrode of the second transistor based on the comparison result. . The first current supplies a first voltage to both the first conduction electrode of the first transistor and the first conduction electrode of the second transistor, and the second conduction of the first transistor and the second transistor. When a second voltage different from the first voltage is supplied to the electrode, the first transistor and the first conductive electrode of the second transistor and the second conductive electrode of the first transistor and the second transistor It is a flowing current. The second current supplies a first voltage to one of the first conduction electrode of the first transistor and the first conduction electrode of the second transistor, and the second current of the first transistor and the second transistor This is a current that flows between the first conduction electrode of the first transistor and the second transistor and the second conduction electrode of the first transistor and the second transistor when the second voltage is supplied to the two conduction electrodes. .

また本発明のさらに別の局面に係る半導体装置は、要約すれば、データを不揮発的に記憶する半導体装置であって、第1のトランジスタは、浮遊ゲートと、制御ゲートと、第1導通電極と、第2導通電極とを有する。第2のトランジスタは、第1のトランジスタと共通の浮遊ゲートと、第1のトランジスタの制御ゲートに結合される制御ゲートと、第1導通電極と、第1のトランジスタの第2導通電極に結合される第2導通電極とを有する。第3のトランジスタは、浮遊ゲートと、制御ゲートと、第1導通電極と、第2導通電極とを有する。第4のトランジスタは、第3のトランジスタと共通の浮遊ゲートと、第3のトランジスタの制御ゲートに結合される制御ゲートと、第1導通電極と、第3のトランジスタの第2導通電極に結合される第2導通電極とを有する。第5のトランジスタは、第2のトランジスタの第1導通電極および第3のトランジスタの第1導通電極間の導通および非導通を切り替える。   In summary, a semiconductor device according to still another aspect of the present invention is a semiconductor device that stores data in a nonvolatile manner, and the first transistor includes a floating gate, a control gate, and a first conduction electrode. And a second conduction electrode. The second transistor is coupled to a common floating gate with the first transistor, a control gate coupled to the control gate of the first transistor, a first conduction electrode, and a second conduction electrode of the first transistor. A second conductive electrode. The third transistor has a floating gate, a control gate, a first conduction electrode, and a second conduction electrode. The fourth transistor is coupled to a floating gate common to the third transistor, a control gate coupled to the control gate of the third transistor, a first conduction electrode, and a second conduction electrode of the third transistor. A second conductive electrode. The fifth transistor switches between conduction and non-conduction between the first conduction electrode of the second transistor and the first conduction electrode of the third transistor.

本発明によれば、半導体装置は、第1のトランジスタと、第1のトランジスタと共通の浮遊ゲートおよび第1のトランジスタの制御ゲートに結合される制御ゲートを有する第2のトランジスタとを備える。これにより、データ読み出しおよびデータ書き込みを別々のチャネルで行なうことができるため、データ書き換えの繰り返しによってメモリセルの閾値電圧が下がりにくくなることを防ぐことができる。   In accordance with the present invention, a semiconductor device includes a first transistor and a second transistor having a floating gate common to the first transistor and a control gate coupled to the control gate of the first transistor. As a result, data reading and data writing can be performed on different channels, so that it is possible to prevent the threshold voltage of the memory cell from becoming difficult to decrease due to repeated data rewriting.

あるいは、本発明によれば、制御回路は、データ消去時、消去電圧または書き戻し電圧の印加時間が第1の判定値を超えると第1の劣化状態を表わす信号を出力する。また、制御回路は、消去電圧または書き戻し電圧の印加時間が第1の判定値より小さい第2の判定値を超えると第2の劣化状態を表わす信号を出力する。これにより、データ消去時間の要求仕様を満たさない状態に加えて、データ消去時間の要求仕様は満たすことが可能であるがメモリセルの劣化がある程度進行している状態を外部で認識することができる。   Alternatively, according to the present invention, at the time of erasing data, the control circuit outputs a signal indicating the first deterioration state when the application time of the erase voltage or the write-back voltage exceeds the first determination value. The control circuit outputs a signal representing the second deterioration state when the application time of the erase voltage or the write-back voltage exceeds a second determination value that is smaller than the first determination value. As a result, in addition to the state where the required specification of the data erasing time is not satisfied, it is possible to recognize the state where the required specification of the data erasing time can be satisfied but the deterioration of the memory cell has progressed to some extent .

あるいは、本発明によれば、制御回路は、データ消去時、メモリセルの閾値電圧が第1ベリファイ電圧以下であるか否かを判定し、メモリセルの閾値電圧が第1ベリファイ電圧以下でない場合にはメモリセルに閾値電圧を小さくするための消去電圧を印加する。そして、消去電圧を印加するたびに、メモリセルの閾値電圧が第1ベリファイ電圧より小さい第2ベリファイ電圧以上であるか否かを判定し、メモリセルの閾値電圧が第2ベリファイ電圧以上でない場合には、メモリセルに閾値電圧を大きくするための書き込み電圧を印加する。これにより、メモリセルの閾値電圧分布が狭くなるようにデータ消去を行なうことができるため、メモリセルの閾値電圧分布が広範囲になることを防ぐことができる。   Alternatively, according to the present invention, when erasing data, the control circuit determines whether or not the threshold voltage of the memory cell is equal to or lower than the first verify voltage, and when the threshold voltage of the memory cell is not equal to or lower than the first verify voltage. Applies an erase voltage for reducing the threshold voltage to the memory cell. Then, each time the erase voltage is applied, it is determined whether or not the threshold voltage of the memory cell is equal to or higher than a second verify voltage that is smaller than the first verify voltage, and when the threshold voltage of the memory cell is not equal to or higher than the second verify voltage. Applies a write voltage for increasing the threshold voltage to the memory cell. As a result, the data can be erased so that the threshold voltage distribution of the memory cell becomes narrow, so that the threshold voltage distribution of the memory cell can be prevented from becoming wide.

あるいは、本発明によれば、制御回路は、第1のトランジスタの第1導通電極および第2のトランジスタの第1導通電極の両方に電圧を供給した場合と、いずれか一方に電圧を供給した場合とで、第1のトランジスタおよび第2のトランジスタの第1導通電極と第1のトランジスタおよび第2のトランジスタの第2導通電極との間に流れる電流を比較する。そして、この比較結果に基づいて第1のトランジスタの第1導通電極および第2のトランジスタの第1導通電極間のショートの有無を検出する。これにより、データ書き換えの繰り返しによってメモリセルの閾値電圧が下がりにくくなることを防ぐことができる。   Alternatively, according to the present invention, the control circuit supplies a voltage to both the first conductive electrode of the first transistor and the first conductive electrode of the second transistor, and supplies a voltage to either one of the first transistor. The currents flowing between the first conduction electrodes of the first transistor and the second transistor and the second conduction electrodes of the first transistor and the second transistor are compared. Based on the comparison result, the presence / absence of a short circuit between the first conduction electrode of the first transistor and the first conduction electrode of the second transistor is detected. Thereby, it is possible to prevent the threshold voltage of the memory cell from being easily lowered due to repeated data rewriting.

あるいは、本発明によれば、半導体装置は、第1のトランジスタと、第1のトランジスタと共通の浮遊ゲートおよび第1のトランジスタの制御ゲートに結合される制御ゲートを有する第2のトランジスタとを備える。また、第3のトランジスタと、第3のトランジスタと共通の浮遊ゲートおよび第3のトランジスタの制御ゲートに結合される制御ゲートを有する第4のトランジスタとを備える。さらに、第2のトランジスタの第1導通電極および第3のトランジスタの第1導通電極間の導通および非導通を切り替える第5のトランジスタを備える。これにより、第1のトランジスタの第1導通電極および第2のトランジスタの第1導通電極間のショートの有無を検出することができるため、データ書き換えの繰り返しによってメモリセルの閾値電圧が下がりにくくなることを防ぐことができる。   Alternatively, according to the present invention, the semiconductor device includes a first transistor, and a second transistor having a floating gate common to the first transistor and a control gate coupled to the control gate of the first transistor. . A third transistor, and a fourth transistor having a control gate coupled to a floating gate common to the third transistor and a control gate of the third transistor. Furthermore, a fifth transistor that switches between conduction and non-conduction between the first conduction electrode of the second transistor and the first conduction electrode of the third transistor is provided. As a result, it is possible to detect the presence or absence of a short circuit between the first conduction electrode of the first transistor and the first conduction electrode of the second transistor, so that the threshold voltage of the memory cell is unlikely to decrease due to repeated data rewriting. Can be prevented.

したがって、本発明によれば、半導体装置のデータ消去時間の増大を防ぐことができる。   Therefore, according to the present invention, it is possible to prevent an increase in the data erasing time of the semiconductor device.

本発明の第1の実施の形態に係るマイクロコンピュータ内蔵用フラッシュメモリ(マイクロコンピュータ用フラッシュメモリモジュール)の構成を示す機能ブロック図である。1 is a functional block diagram showing a configuration of a microcomputer built-in flash memory (microcomputer flash memory module) according to a first embodiment of the present invention. 本発明の第1の実施の形態に係るメモリマットの構成を概略的に示す図である。1 is a diagram schematically showing a configuration of a memory mat according to a first embodiment of the present invention. 本発明の第1の実施の形態に係るメモリセルの構成を示す回路図である。1 is a circuit diagram showing a configuration of a memory cell according to a first embodiment of the present invention. 本発明の第1の実施の形態に係るフラッシュメモリモジュールの構成を示す断面図である。1 is a cross-sectional view showing a configuration of a flash memory module according to a first embodiment of the present invention. 本発明の第1の実施の形態に係るフラッシュメモリモジュールのデータ読み出し時、データ書き込み時およびデータ消去時において各電圧制御線に供給される電圧を示す図である。FIG. 3 is a diagram showing voltages supplied to each voltage control line when reading data, writing data, and erasing data in the flash memory module according to the first embodiment of the present invention. 本発明の第1の実施の形態に係るフラッシュメモリモジュールのメモリセルに対するデータ読み出しの動作の一例を示す図である。FIG. 6 is a diagram showing an example of a data read operation for the memory cell of the flash memory module according to the first embodiment of the present invention. 本発明の第1の実施の形態に係るフラッシュメモリモジュールのメモリセルに対するデータ書き込みの動作の一例を示す図である。FIG. 4 is a diagram showing an example of a data write operation to the memory cell of the flash memory module according to the first embodiment of the present invention. 本発明の第1の実施の形態に係るフラッシュメモリモジュールのメモリセルに対するデータ消去の動作の一例を示す図である。FIG. 4 is a diagram showing an example of a data erasing operation for the memory cell of the flash memory module according to the first embodiment of the present invention. 本発明の第1の実施の形態に係る半導体装置の構成を示す機能ブロック図である。1 is a functional block diagram showing a configuration of a semiconductor device according to a first embodiment of the present invention. 本発明の第1の実施の形態に係る半導体装置の変形例の構成を示す機能ブロック図である。It is a functional block diagram which shows the structure of the modification of the semiconductor device which concerns on the 1st Embodiment of this invention. 本発明の第2の実施の形態に係る半導体装置202におけるシーケンサがフラッシュメモリモジュールに対してデータ消去を行なう際の動作手順を定めたフローチャートである。10 is a flowchart defining an operation procedure when a sequencer in the semiconductor device 202 according to the second embodiment of the present invention erases data from a flash memory module. 本発明の第2の実施の形態に係るフラッシュメモリモジュールのメモリセルの閾値電圧分布を示す図である。It is a figure which shows threshold voltage distribution of the memory cell of the flash memory module which concerns on the 2nd Embodiment of this invention. 本発明の第2の実施の形態に係るフラッシュメモリモジュールにおけるステータスレジスタを示す図である。It is a figure which shows the status register in the flash memory module which concerns on the 2nd Embodiment of this invention. 本発明の第3の実施の形態に係る半導体装置203におけるシーケンサがフラッシュメモリモジュールに対してデータ消去を行なう際の動作手順を定めたフローチャートである。10 is a flowchart defining an operation procedure when a sequencer in a semiconductor device 203 according to a third embodiment of the present invention erases data from a flash memory module. 本発明の第3の実施の形態に係るフラッシュメモリモジュールのメモリセルの閾値電圧分布を示す図である。It is a figure which shows the threshold voltage distribution of the memory cell of the flash memory module which concerns on the 3rd Embodiment of this invention. 本発明の第4の実施の形態に係る半導体装置204におけるメモリセル等の構成を概略的に示す図である。It is a figure which shows roughly the structure of the memory cell etc. in the semiconductor device 204 which concerns on the 4th Embodiment of this invention. メモリセルの閾値電圧試験Aにおいて、メモリセルトランジスタTRAのドレインおよびメモリセルトランジスタTRBのドレイン間がショートしている場合における電流経路を示す図である。In the threshold voltage test A of the memory cell, it is a diagram showing a current path when the drain of the memory cell transistor TRA and the drain of the memory cell transistor TRB are short-circuited. メモリセルの閾値電圧試験Bにおける電流経路を示す図である。It is a figure which shows the current pathway in the threshold voltage test B of a memory cell. メモリセルトランジスタTRAのドレインおよびメモリセルトランジスタTRBのドレイン間がショートしていない場合の、メモリセルの閾値電圧試験AおよびBの各々において取得されるメモリセルの閾値電圧分布を示す図である。It is a figure which shows the threshold voltage distribution of the memory cell acquired in each of the threshold voltage test A and B of a memory cell when the drain of the memory cell transistor TRA and the drain of the memory cell transistor TRB are not short-circuited. メモリセルトランジスタTRAのドレインおよびメモリセルトランジスタTRBのドレイン間がショートしている場合の、メモリセルの閾値電圧試験AおよびBの各々において取得されるメモリセルの閾値電圧分布を示す図である。It is a figure which shows the threshold voltage distribution of the memory cell acquired in each of the threshold voltage tests A and B of a memory cell when the drain of the memory cell transistor TRA and the drain of the memory cell transistor TRB are short-circuited. 本発明の第5の実施の形態に係る半導体装置205におけるメモリセル等の構成を概略的に示す図である。It is a figure which shows roughly the structure of the memory cell etc. in the semiconductor device 205 concerning the 5th Embodiment of this invention.

以下、本発明の実施の形態について図面を用いて説明する。なお、図中同一または相当部分には同一符号を付してその説明は繰り返さない。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. In the drawings, the same or corresponding parts are denoted by the same reference numerals and description thereof will not be repeated.

<第1の実施の形態>
[構成および基本動作]
図1は、本発明の第1の実施の形態に係るマイクロコンピュータ内蔵用フラッシュメモリ(マイクロコンピュータ用フラッシュメモリモジュール)の構成を示す機能ブロック図である。
<First Embodiment>
[Configuration and basic operation]
FIG. 1 is a functional block diagram showing a configuration of a microcomputer built-in flash memory (microcomputer flash memory module) according to the first embodiment of the present invention.

図1を参照して、フラッシュメモリモジュール1は、フラッシュメモリセルを有するメモリマット2と、外部から与えられるアドレス信号ADをプリデコードするロウ/コラムプリデコーダ/バンクデコーダ3と、このロウ/コラムプリデコーダ/バンクデコーダ3からのプリデコード信号に従って、メモリマット2の行およびメモリブロックを選択するロウデコーダ/選択ゲート(SG)デコーダ4と、ロウ/コラムプリデコーダ/バンクデコーダ3からのプリデコード信号に従って、メモリマット2の列を選択する信号を生成するYデコーダ5と、Yデコーダ5からの列選択信号に従ってメモリマット2の対応の列(ビット線)を選択し、かつ各列に対応して設けられるビット線の電圧レベルを初期化するYゲート/ビット線リセット回路6と、データ読出時、Yゲート/ビット線リセット回路6により選択された列に読出されたデータを検出するセンスアンプ7と、データ書込時、このメモリマット2の選択列へデータを書き込む書込ドライバ8と、メモリマット2のソース線、Pウェル、ボトムNウェルの電圧レベルを動作モードに応じて設定するソース線/Pウェル/ボトムNウェルドライバ9とを含む。   Referring to FIG. 1, flash memory module 1 includes a memory mat 2 having flash memory cells, a row / column predecoder / bank decoder 3 for predecoding an externally applied address signal AD, and the row / column prefetch. In accordance with a predecode signal from decoder / bank decoder 3, a row decoder / select gate (SG) decoder 4 for selecting a row and a memory block of memory mat 2 and a predecode signal from row / column predecoder / bank decoder 3 Y decoder 5 for generating a signal for selecting a column of memory mat 2, and a corresponding column (bit line) of memory mat 2 is selected according to a column selection signal from Y decoder 5 and provided corresponding to each column Y gate / bit line reset times to initialize the voltage level of the selected bit line 6, a sense amplifier 7 for detecting data read to a column selected by the Y gate / bit line reset circuit 6 at the time of data reading, and a write operation for writing data to the selected column of the memory mat 2 at the time of data writing. And a source line / P well / bottom N well driver 9 for setting the voltage levels of the source line, P well, and bottom N well of the memory mat 2 in accordance with the operation mode.

メモリマット2においては、フラッシュメモリセルが行列状に配列され、各フラッシュメモリセルは、フローティングゲートの蓄積電荷に応じてデータを不揮発的に記憶する。メモリマット2は複数のメモリブロックに分割され、また、メモリブロックが複数のバンクに分割される。このメモリブロック選択のために、選択ゲート(選択トランジスタ)が設けられる。したがって、メモリマット2においては、選択されたバンクの選択されたメモリブロックの選択行/列のメモリセルに対してデータの読出が行なわれる。   In the memory mat 2, flash memory cells are arranged in a matrix, and each flash memory cell stores data in a non-volatile manner according to the accumulated charge of the floating gate. The memory mat 2 is divided into a plurality of memory blocks, and the memory blocks are divided into a plurality of banks. For this memory block selection, a selection gate (selection transistor) is provided. Therefore, in memory mat 2, data is read from the memory cells in the selected row / column of the selected memory block in the selected bank.

このメモリマット2において、また、メモリセルが接続されるソース線が設けられ、また、メモリセルトランジスタの基板領域を形成するPウェルが設けられ、このPウェルを囲むようにボトムNウェルが設けられる。これらのソース線、PウェルおよびボトムNウェルの電圧レベルが、データの書込/読出/消去モードに応じて、ドライバ9により設定される。   In this memory mat 2, a source line to which a memory cell is connected is provided, a P well for forming a substrate region of the memory cell transistor is provided, and a bottom N well is provided so as to surround the P well. . The voltage levels of these source line, P well and bottom N well are set by driver 9 in accordance with the data write / read / erase mode.

フラッシュメモリモジュール1は、さらに、センスアンプ7および書込ドライバ8に結合され、読出/書込データを転送するデータハンドラ10と、制御信号CTLおよびアドレス信号ADに従ってこのフラッシュメモリモジュール1の内部動作を制御するとともに、データハンドラ10から与えられたデータから出力データDoutを生成して図示しないCPUへ順次与えるシーケンサ11と、シーケンサ11の制御により、活性化され、クロック信号CLK_SCおよびCLK_CPを生成するオシレータ12と、オシレータ12からのクロック信号CLK_CPに従って内部の電圧intVPPおよびVinを生成する電源回路13と、外部から与えられるリセット信号IRP_VDDおよびIRP_VPPに従って内部リセット信号intIRPVPPを生成してオシレータ12および電源回路13を初期化するリセット回路14とを含む。   Flash memory module 1 is further coupled to sense amplifier 7 and write driver 8 to perform internal operation of flash memory module 1 in accordance with data handler 10 for transferring read / write data, control signal CTL and address signal AD. The sequencer 11 that generates the output data Dout from the data provided from the data handler 10 and sequentially supplies it to the CPU (not shown), and the oscillator 12 that is activated by the control of the sequencer 11 and generates the clock signals CLK_SC and CLK_CP A power supply circuit 13 for generating internal voltages intVPP and Vin according to clock signal CLK_CP from oscillator 12, and an internal reset signal according to reset signals IRP_VDD and IRP_VPP given from the outside An oscillator 12 and a power supply circuit 13 generates a ntIRPVPP and a reset circuit 14 for initializing.

シーケンサ11は、さらに、書込データを、アドレス信号バスを介して受け、また、オシレータ12からのクロック信号CLK_SCによりその動作サイクルが規定され、内部動作を制御信号およびアドレス信号に従って制御する。   Sequencer 11 further receives write data via an address signal bus, and its operation cycle is defined by clock signal CLK_SC from oscillator 12, and controls internal operations in accordance with a control signal and an address signal.

電源回路13は、このシーケンサ11からの動作モード指定信号に従って、各動作モードに応じた電圧レベルの内部電圧Vinを生成して、ロウデコーダ/STデコーダ4およびソース線/Pウェル/ボトムNウェルドライバ9およびYゲート/ビット線リセット回路6および書込ドライバ8へ与える。この内部電圧Vinは、後述する複数種類の電圧を含むが、図1においては、図面を簡略化するために、「Vin」でこれらの内部電圧群を示す。   The power supply circuit 13 generates an internal voltage Vin having a voltage level corresponding to each operation mode in accordance with the operation mode designation signal from the sequencer 11, and the row decoder / ST decoder 4 and the source line / P well / bottom N well driver. 9 and Y gate / bit line reset circuit 6 and write driver 8. The internal voltage Vin includes a plurality of types of voltages to be described later. In FIG. 1, these internal voltage groups are indicated by “Vin” in order to simplify the drawing.

外部からは、電圧VDDおよびVPPが与えられる。シーケンサ11は、外部電源電圧VDDに従って動作し、オシレータ12は、外部電源電圧VDDおよび内部電圧intVPPそれぞれを動作電源として発振動作を行なって、クロック信号CLK_SCおよびCLK_CPを生成する。クロック信号CLK_CPは、振幅intVPPレベルであり、一方、クロック信号CLK_SCが、振幅VDDレベルである。電源回路13は、これらのクロック信号に従って、キャパシタのチャージポンプ動作により外部電源電圧VPPから、内部電圧VinおよびintVPPを生成する。   Voltages VDD and VPP are applied from the outside. The sequencer 11 operates according to the external power supply voltage VDD, and the oscillator 12 performs an oscillation operation using the external power supply voltage VDD and the internal voltage intVPP as operation power supplies, and generates clock signals CLK_SC and CLK_CP. Clock signal CLK_CP is at the amplitude intVPP level, while clock signal CLK_SC is at the amplitude VDD level. The power supply circuit 13 generates the internal voltages Vin and intVPP from the external power supply voltage VPP by the charge pump operation of the capacitor in accordance with these clock signals.

オシレータ12において、外部からの2種類の電源電圧VDDおよびVPPが印加されているときに、安定に発振動作を行なって、クロック信号CLK_SCおよびCLK_CPを生成する。外部電源電圧VPPとしては、たとえば、2.7Vから6.5Vの電圧範囲の電圧が利用可能とされる。外部電源電圧VDDは、このマイクロコンピュータの電源電圧と同様の電圧レベルであり、このフラッシュメモリモジュールにおけるマイクロコンピュータとのインターフェイス部分において用いられる。   In the oscillator 12, when two external power supply voltages VDD and VPP are applied, the oscillator 12 stably oscillates and generates clock signals CLK_SC and CLK_CP. As external power supply voltage VPP, for example, a voltage in a voltage range of 2.7 V to 6.5 V can be used. The external power supply voltage VDD has the same voltage level as the power supply voltage of the microcomputer, and is used in the interface portion with the microcomputer in the flash memory module.

外部電源電圧VPPは、外部電源電圧VDDよりも高いレベルの電圧であり、電源回路13において、内部電圧を生成するために利用される。この外部電源電圧VPPは、各種システムに対応するため、その電圧レベルの許容範囲が極めて広い。   The external power supply voltage VPP is a voltage having a higher level than the external power supply voltage VDD, and is used by the power supply circuit 13 to generate an internal voltage. Since the external power supply voltage VPP is compatible with various systems, the allowable range of the voltage level is extremely wide.

図2は、本発明の第1の実施の形態に係るメモリマットの構成を概略的に示す図である。なお、以下の説明において、ビット線が延在する方向を列方向と称し、ワード線が延在する方向を行方向と称する。図2では、代表的に1個のメモリブロックを示す。   FIG. 2 is a diagram schematically showing a configuration of the memory mat according to the first embodiment of the present invention. In the following description, the direction in which the bit lines extend is referred to as the column direction, and the direction in which the word lines extend is referred to as the row direction. FIG. 2 typically shows one memory block.

図2を参照して、メモリマット2におけるメモリブロックMBは、行列状に配列される複数個のメモリセルMCと、複数個のメモリセルの各行に対応して配置される複数のワード線WLと、複数個のメモリセルの各列に対応して配置される複数のメインビット線MBLと、メモリブロックに対応して配置される選択ゲート線SG_RおよびSG_Pと、複数個の選択トランジスタTRS_Rと、複数個の選択トランジスタTRS_Pとを含む。メモリセルMCは、メモリセルトランジスタTRAおよびTRBを含む。   Referring to FIG. 2, memory block MB in memory mat 2 includes a plurality of memory cells MC arranged in a matrix, and a plurality of word lines WL arranged corresponding to each row of the plurality of memory cells. A plurality of main bit lines MBL arranged corresponding to the respective columns of the plurality of memory cells, selection gate lines SG_R and SG_P arranged corresponding to the memory blocks, a plurality of selection transistors TRS_R, and a plurality And select transistors TRS_P. Memory cell MC includes memory cell transistors TRA and TRB.

ワード線WL、選択ゲート線SG_Rおよび選択ゲート線SG_Pには、ロウデコーダ/選択ゲート(SG)デコーダ4からの制御電圧が供給される。メインビット線MBLには、Yゲート/ビット線リセット回路6からの制御電圧が供給される。   A control voltage from the row decoder / select gate (SG) decoder 4 is supplied to the word line WL, the select gate line SG_R, and the select gate line SG_P. A control voltage from the Y gate / bit line reset circuit 6 is supplied to the main bit line MBL.

図3は、本発明の第1の実施の形態に係るメモリセルの構成を示す回路図である。
図3を参照して、メモリセルMC0は、データ読み出し用のメモリセルトランジスタTRAと、データ書き込み用のメモリセルトランジスタTRBとを含む。メモリセルトランジスタTRAは、浮遊ゲートFGと、制御ゲートCGと、ドレインと、ソースとを有する。メモリセルトランジスタTRBは、メモリセルトランジスタTRAと共通の浮遊ゲートFGと、メモリセルトランジスタTRAの制御ゲートCGに結合される制御ゲートCGと、ドレインと、メモリセルトランジスタTRAのソースに結合されるソースとを有する。後述するPウェルPWおよびボトムNウェルNW間には寄生ダイオードDが形成される。
FIG. 3 is a circuit diagram showing a configuration of the memory cell according to the first embodiment of the present invention.
Referring to FIG. 3, memory cell MC0 includes a memory cell transistor TRA for reading data and a memory cell transistor TRB for writing data. The memory cell transistor TRA has a floating gate FG, a control gate CG, a drain, and a source. The memory cell transistor TRB includes a floating gate FG common to the memory cell transistor TRA, a control gate CG coupled to the control gate CG of the memory cell transistor TRA, a drain, and a source coupled to the source of the memory cell transistor TRA. Have A parasitic diode D is formed between a P well PW and a bottom N well NW described later.

メモリセルMC0において、メモリセルトランジスタTRAのドレインにサブビット線SBL_Rが接続され、ソースにソース線SLが接続され、ゲートにワード線WL0が接続される。メモリセルトランジスタTRBのドレインにサブビット線SBL_Pが接続され、ソースにソース線SLが接続され、ゲートにワード線WL0が接続される。   In the memory cell MC0, the sub bit line SBL_R is connected to the drain of the memory cell transistor TRA, the source line SL is connected to the source, and the word line WL0 is connected to the gate. Sub-bit line SBL_P is connected to the drain of memory cell transistor TRB, source line SL is connected to the source, and word line WL0 is connected to the gate.

同様に、メモリセルMC1は、データ読み出し用のメモリセルトランジスタTRAと、データ書き込み用のメモリセルトランジスタTRBとを含む。メモリセルトランジスタTRAは、浮遊ゲートFGと、制御ゲートCGと、ドレインと、ソースとを有する。メモリセルトランジスタTRBは、メモリセルトランジスタTRAと共通の浮遊ゲートFGと、メモリセルトランジスタTRAの制御ゲートCGに結合される制御ゲートCGと、ドレインと、メモリセルトランジスタTRAのソースに結合されるソースとを有する。後述するPウェルPWおよびボトムNウェルNW間には寄生ダイオードDが形成される。   Similarly, the memory cell MC1 includes a memory cell transistor TRA for reading data and a memory cell transistor TRB for writing data. The memory cell transistor TRA has a floating gate FG, a control gate CG, a drain, and a source. The memory cell transistor TRB includes a floating gate FG common to the memory cell transistor TRA, a control gate CG coupled to the control gate CG of the memory cell transistor TRA, a drain, and a source coupled to the source of the memory cell transistor TRA. Have A parasitic diode D is formed between a P well PW and a bottom N well NW described later.

メモリセルMC1において、メモリセルトランジスタTRAのドレインにサブビット線SBL_Rが接続され、ソースにソース線SLが接続され、ゲートにワード線WL1が接続される。メモリセルトランジスタTRBのドレインにサブビット線SBL_Pが接続され、ソースにソース線SLが接続され、ゲートにワード線WL1が接続される。   In the memory cell MC1, the sub bit line SBL_R is connected to the drain of the memory cell transistor TRA, the source line SL is connected to the source, and the word line WL1 is connected to the gate. The sub bit line SBL_P is connected to the drain of the memory cell transistor TRB, the source line SL is connected to the source, and the word line WL1 is connected to the gate.

選択トランジスタTRS_Rは、選択ゲート線SG_Rに接続されるゲートと、メインビット線MBLに接続されるドレインと、サブビット線SBL_Rに接続されるソースとを有する。   Select transistor TRS_R has a gate connected to select gate line SG_R, a drain connected to main bit line MBL, and a source connected to sub bit line SBL_R.

選択トランジスタTRS_Pは、選択ゲート線SG_Pに接続されるゲートと、メインビット線MBLに接続されるドレインと、サブビット線SBL_Pに接続されるソースとを有する。   Select transistor TRS_P has a gate connected to select gate line SG_P, a drain connected to main bit line MBL, and a source connected to sub bit line SBL_P.

図4は、本発明の第1の実施の形態に係るフラッシュメモリモジュールの構成を示す断面図である。   FIG. 4 is a cross-sectional view showing the configuration of the flash memory module according to the first embodiment of the present invention.

図4を参照して、フラッシュメモリモジュール1は、たとえばトリプルウェル構造であり、p−型基板SUBと、ボトムNウェルNWと、PウェルPWとを含む。メモリセルトランジスタは、制御ゲートCGと、浮遊ゲートFGと、n+型拡散領域DR1,DR2,DR5,DR6と、p+型拡散領域DR3,DR4とを含む。メモリセルトランジスタTRAおよびTRBの各々のドレインおよびソースは、PウェルPWにおいて形成される。   Referring to FIG. 4, flash memory module 1 has, for example, a triple well structure, and includes a p − type substrate SUB, a bottom N well NW, and a P well PW. The memory cell transistor includes a control gate CG, a floating gate FG, n + type diffusion regions DR1, DR2, DR5, DR6, and p + type diffusion regions DR3, DR4. The drain and source of each of memory cell transistors TRA and TRB are formed in P well PW.

より詳細には、p−型基板SUBは、接地電圧が供給される接地電位ノードN1に接続される。ボトムNウェルNWは、p−型基板SUBの主表面上に形成される。n+型拡散領域DR1およびDR2は、ボトムNウェルNWの表面に形成される。PウェルPWは、ボトムNウェルNWの表面に、p−型基板SUBの主表面と間隔をあけて形成される。p+型拡散領域DR3およびDR4は、PウェルPWの表面に形成される。n+型拡散領域DR5およびDR6は、PウェルPWの表面に、ボトムNウェルNWと間隔をあけて形成される。   More specifically, p − type substrate SUB is connected to ground potential node N1 to which a ground voltage is supplied. Bottom N well NW is formed on the main surface of p − type substrate SUB. N + type diffusion regions DR1 and DR2 are formed on the surface of bottom N well NW. P well PW is formed on the surface of bottom N well NW at a distance from the main surface of p − type substrate SUB. The p + type diffusion regions DR3 and DR4 are formed on the surface of the P well PW. N + type diffusion regions DR5 and DR6 are formed on the surface of P well PW with a spacing from bottom N well NW.

浮遊ゲートFGは、n+型拡散領域DR5およびDR6に挟まれたPウェルPWにおけるチャネルの上方にPウェルPWと間隔をあけて設けられる。制御ゲートCGは、n+型拡散領域DR5およびDR6に挟まれたPウェルPWにおけるチャネルと浮遊ゲートFGを介して対向して設けられる。   The floating gate FG is provided above the channel in the P well PW sandwiched between the n + type diffusion regions DR5 and DR6 and spaced from the P well PW. The control gate CG is provided opposite to the channel in the P well PW sandwiched between the n + type diffusion regions DR5 and DR6 via the floating gate FG.

図5は、本発明の第1の実施の形態に係るフラッシュメモリモジュールのデータ読み出し時、データ書き込み時およびデータ消去時において各電圧制御線に供給される電圧を示す図である。すなわち、図5は、ワード線WL、サブビット線SBL_R、サブビット線SBL_P、ソース線SL、PウェルPW、選択ゲート線SG_R、選択ゲート線SG_P、メインビット線MBLおよびボトムNウェルNWに供給される電圧を示している。また、「選択」とは、データ読み出し、データ書き込みまたはデータ消去対象のメモリセルを表わし、「非選択」とは、データ読み出し、データ書き込みおよびデータ消去対象外のメモリセルを表わす。   FIG. 5 is a diagram showing voltages supplied to the respective voltage control lines at the time of data reading, data writing and data erasing of the flash memory module according to the first embodiment of the present invention. That is, FIG. 5 shows voltages supplied to the word line WL, the sub bit line SBL_R, the sub bit line SBL_P, the source line SL, the P well PW, the selection gate line SG_R, the selection gate line SG_P, the main bit line MBL, and the bottom N well NW. Is shown. “Select” represents a memory cell that is a target of data read, data write, or data erase, and “non-select” represents a memory cell that is not a target of data read, data write, or data erase.

図6は、本発明の第1の実施の形態に係るフラッシュメモリモジュールのメモリセルに対するデータ読み出しの動作の一例を示す図である。   FIG. 6 is a diagram showing an example of the data read operation for the memory cell of the flash memory module according to the first embodiment of the present invention.

図5および図6を参照して、メモリセルMCに対するデータ読み出し時、メモリセルトランジスタTRAおよびメモリセルトランジスタTRBの制御ゲートCGに正の第1電圧が供給され、メモリセルトランジスタTRAのドレインに第1電圧より小さい正の第2電圧が供給され、メモリセルトランジスタTRAおよびメモリセルトランジスタTRBのソースに第2電圧より小さい第3電圧が供給され、メモリセルトランジスタTRBのドレインに第2電圧より小さい第4電圧が供給され、PウェルPWに第3電圧以下の第5電圧が供給される。また、ボトムNウェルNWに第5電圧以上の第6電圧が供給されることにより、PウェルPWおよびボトムNウェルNW間のフォワードバイアスを防ぐことができる。   5 and 6, when data is read from memory cell MC, a positive first voltage is supplied to memory cell transistor TRA and control gate CG of memory cell transistor TRB, and a first voltage is applied to the drain of memory cell transistor TRA. A positive second voltage lower than the voltage is supplied, a third voltage lower than the second voltage is supplied to the sources of the memory cell transistor TRA and the memory cell transistor TRB, and a fourth lower voltage than the second voltage is supplied to the drain of the memory cell transistor TRB. A voltage is supplied, and a fifth voltage equal to or lower than the third voltage is supplied to the P well PW. Further, by supplying a sixth voltage not lower than the fifth voltage to the bottom N well NW, forward bias between the P well PW and the bottom N well NW can be prevented.

たとえば、シーケンサ11の制御に基づいて、メモリセルトランジスタTRAおよびメモリセルトランジスタTRBの制御ゲートCGに5Vの電圧が供給され、メモリセルトランジスタTRAのドレインにメインビット線MBLおよびサブビット線SBL_Rを介して1Vの電圧が供給され、メモリセルトランジスタTRAおよびメモリセルトランジスタTRBのソースに接地電圧が供給され、メモリセルトランジスタTRBのドレインに接地電圧が供給され、PウェルPWに接地電圧が供給される。また、ボトムNウェルNWに外部電源電圧VDDたとえば1.5Vの電圧が供給される。また、選択トランジスタTRS_Rのゲートに選択ゲート線SG_Rを介して6Vの電圧が供給され、選択トランジスタTRS_Pのゲートに選択ゲート線SG_Pを介して接地電圧が供給される。   For example, under the control of the sequencer 11, a voltage of 5V is supplied to the control gate CG of the memory cell transistor TRA and the memory cell transistor TRB, and 1V is supplied to the drain of the memory cell transistor TRA via the main bit line MBL and the sub bit line SBL_R. Is supplied, the ground voltage is supplied to the sources of the memory cell transistor TRA and the memory cell transistor TRB, the ground voltage is supplied to the drain of the memory cell transistor TRB, and the ground voltage is supplied to the P well PW. Further, external power supply voltage VDD, for example, a voltage of 1.5 V is supplied to bottom N well NW. Further, a voltage of 6V is supplied to the gate of the selection transistor TRS_R via the selection gate line SG_R, and a ground voltage is supplied to the gate of the selection transistor TRS_P via the selection gate line SG_P.

このように、メモリセルトランジスタTRAおよびメモリセルトランジスタTRBのソースに供給される電圧とメモリセルトランジスタTRBのドレインに供給される電圧とを等しくすることにより、データ書き込み用のメモリセルトランジスタTRBのドレイン−ソース間すなわちチャネルに電流が流れないようにする。   In this way, by making the voltage supplied to the sources of the memory cell transistor TRA and the memory cell transistor TRB equal to the voltage supplied to the drain of the memory cell transistor TRB, the drain- Ensure that no current flows between the sources, i.e. the channels.

また、メモリセルトランジスタTRAおよびメモリセルトランジスタTRBのソースに供給される電圧とPウェルPWに供給される電圧とを等しくすることにより、メモリセルトランジスタTRAおよびメモリセルトランジスタTRBのソースとPウェルPWとの間のフォワードバイアスを防ぐことができる。   Further, by equalizing the voltage supplied to the sources of the memory cell transistor TRA and the memory cell transistor TRB and the voltage supplied to the P well PW, the source of the memory cell transistor TRA and the memory cell transistor TRB and the P well PW A forward bias between the two can be prevented.

メモリセルMCに対するデータ読み出しは、以下のように行なわれる。すなわち、選択トランジスタTRS_Rをオン状態とし、選択トランジスタTRS_Pをオフ状態とする。そして、読み出し電圧をワード線WL経由でメモリセルトランジスタTRAおよびメモリセルトランジスタTRBの制御ゲートCGに印加する。そして、読み出し用のメモリセルトランジスタすなわちメモリセルトランジスタTRAのソース・ドレイン間に形成されるチャネルに電流が流れるか否かをセンスアンプ7で判定する。   Data reading from the memory cell MC is performed as follows. That is, the selection transistor TRS_R is turned on and the selection transistor TRS_P is turned off. Then, the read voltage is applied to the control gate CG of the memory cell transistor TRA and the memory cell transistor TRB via the word line WL. Then, the sense amplifier 7 determines whether or not a current flows through a channel formed between the source and drain of the memory cell transistor for reading, that is, the memory cell transistor TRA.

なお、上記は選択メモリセルMCすなわちデータ読み出し対象のメモリセルMCに対する動作であるが、データ読み出し時における非選択メモリセルMCすなわちデータ読み出し対象外のメモリセルMCについては、たとえば以下のような動作になる。すなわち、シーケンサ11の制御に基づいて、メモリセルトランジスタTRAおよびメモリセルトランジスタTRBの制御ゲートCG、ドレイン、ソースおよびPウェルPWに接地電圧が供給される。また、ボトムNウェルNWに外部電源電圧VDDたとえば1.5Vの電圧が供給される。また、選択トランジスタTRS_Rのゲートに選択ゲート線SG_Rを介して接地電圧が供給され、選択トランジスタTRS_Pのゲートに選択ゲート線SG_Pを介して接地電圧が供給される。   The above is the operation for the selected memory cell MC, that is, the memory cell MC that is the target of data reading. However, for the non-selected memory cell MC that is not the target of data reading at the time of data reading, for example, the following operation is performed. Become. That is, based on the control of the sequencer 11, the ground voltage is supplied to the control gate CG, the drain, the source, and the P well PW of the memory cell transistor TRA and the memory cell transistor TRB. Further, external power supply voltage VDD, for example, a voltage of 1.5 V is supplied to bottom N well NW. The ground voltage is supplied to the gate of the selection transistor TRS_R via the selection gate line SG_R, and the ground voltage is supplied to the gate of the selection transistor TRS_P via the selection gate line SG_P.

図7は、本発明の第1の実施の形態に係るフラッシュメモリモジュールのメモリセルに対するデータ書き込みの動作の一例を示す図である。   FIG. 7 is a diagram showing an example of a data write operation to the memory cell of the flash memory module according to the first embodiment of the present invention.

図5および図7を参照して、メモリセルMCに対するデータ書き込み時、メモリセルトランジスタTRAおよびメモリセルトランジスタTRBの制御ゲートCGに正の第1電圧が供給され、メモリセルトランジスタTRBのドレインに第1電圧より小さい第2電圧が供給され、メモリセルトランジスタTRAのドレインに第2電圧より小さい第3電圧が供給され、メモリセルトランジスタTRAおよびメモリセルトランジスタTRBのソースに第2電圧より小さい第4電圧が供給され、PウェルPWに第4電圧より小さい第5電圧が供給される。また、ボトムNウェルNWに第5電圧以上の第6電圧が供給されることにより、PウェルPWおよびボトムNウェルNW間のフォワードバイアスを防ぐことができる。   Referring to FIGS. 5 and 7, when data is written to memory cell MC, a positive first voltage is supplied to memory cell transistor TRA and control gate CG of memory cell transistor TRB, and a first voltage is applied to the drain of memory cell transistor TRB. A second voltage lower than the second voltage is supplied, a third voltage lower than the second voltage is supplied to the drain of the memory cell transistor TRA, and a fourth voltage lower than the second voltage is supplied to the sources of the memory cell transistor TRA and the memory cell transistor TRB. The fifth voltage smaller than the fourth voltage is supplied to the P well PW. Further, by supplying a sixth voltage not lower than the fifth voltage to the bottom N well NW, forward bias between the P well PW and the bottom N well NW can be prevented.

たとえば、シーケンサ11の制御に基づいて、メモリセルトランジスタTRAおよびメモリセルトランジスタTRBの制御ゲートCGに10Vの電圧が供給され、メモリセルトランジスタTRBのドレインにメインビット線MBLおよびサブビット線SBL_Pを介して4Vの電圧が供給され、メモリセルトランジスタTRAのドレインに接地電圧が供給され、メモリセルトランジスタTRAおよびメモリセルトランジスタTRBのソースに接地電圧が供給され、PウェルPWに−1Vの電圧が供給される。また、ボトムNウェルNWに外部電源電圧VDDたとえば1.5Vの電圧が供給される。   For example, under the control of the sequencer 11, a voltage of 10V is supplied to the control gate CG of the memory cell transistor TRA and the memory cell transistor TRB, and 4V is supplied to the drain of the memory cell transistor TRB via the main bit line MBL and the sub bit line SBL_P. Is supplied, a ground voltage is supplied to the drain of the memory cell transistor TRA, a ground voltage is supplied to the sources of the memory cell transistor TRA and the memory cell transistor TRB, and a voltage of −1 V is supplied to the P well PW. Further, external power supply voltage VDD, for example, a voltage of 1.5 V is supplied to bottom N well NW.

このように、メモリセルトランジスタTRAおよびメモリセルトランジスタTRBのソースに供給される電圧とメモリセルトランジスタTRAのドレインに供給される電圧とを等しくすることにより、データ読み出し用のメモリセルトランジスタTRAのドレイン−ソース間すなわちチャネルに電流が流れることを防ぐことができるため、メモリセルトランジスタTRAの劣化を防ぐことができる。   In this way, by equalizing the voltage supplied to the sources of the memory cell transistor TRA and the memory cell transistor TRB and the voltage supplied to the drain of the memory cell transistor TRA, the drain- Since it is possible to prevent a current from flowing between the sources, that is, the channel, deterioration of the memory cell transistor TRA can be prevented.

また、メモリセルトランジスタTRAおよびメモリセルトランジスタTRBのソースに供給される電圧と比べてPウェルPWに供給される電圧を小さくすることにより、電界を発生させて電子の注入効率を高めることができる。   Further, by reducing the voltage supplied to the P well PW as compared with the voltage supplied to the sources of the memory cell transistor TRA and the memory cell transistor TRB, an electric field can be generated and the electron injection efficiency can be increased.

メモリセルMCに対するデータ書き込みは、以下のように行なわれる。すなわち、選択トランジスタTRS_Rをオフ状態とし、選択トランジスタTRS_Pをオン状態とする。そして、CHE(Channel Hot Electron)現象を利用して、書き込み用のメモリセルトランジスタすなわちメモリセルトランジスタTRBのソース・ドレイン間に形成されるチャネルから、浮遊ゲートFGに電子を注入して閾値電圧を徐々に上昇させる。すなわち、シーケンサ11は、書き込み対象のメモリセルMCの閾値電圧を、マイクロコンピュータから受けたデータの論理レベルに対応する閾値電圧とすることにより、データ書き込みを行なう。たとえば、シーケンサ11は、消去状態である論理レベル”1”に対応する閾値電圧から論理レベル”0”に対応する閾値電圧に上昇させる。   Data writing to the memory cell MC is performed as follows. That is, the selection transistor TRS_R is turned off and the selection transistor TRS_P is turned on. Then, using the CHE (Channel Hot Electron) phenomenon, electrons are injected into the floating gate FG from the channel formed between the source and drain of the memory cell transistor for writing, that is, the memory cell transistor TRB, and the threshold voltage is gradually increased. To rise. That is, the sequencer 11 performs data writing by setting the threshold voltage of the memory cell MC to be written to the threshold voltage corresponding to the logic level of the data received from the microcomputer. For example, the sequencer 11 increases the threshold voltage corresponding to the logical level “0” from the threshold voltage corresponding to the logical level “1” in the erased state.

なお、上記は選択メモリセルMCすなわちデータ書き込み対象のメモリセルMCに対する動作であるが、データ書き込み時における非選択メモリセルMCすなわちデータ書き込み対象外のメモリセルMCについては、たとえば以下のような動作になる。すなわち、シーケンサ11の制御に基づいて、メモリセルトランジスタTRAおよびメモリセルトランジスタTRBの制御ゲートCG、ドレインおよびソースに接地電圧が供給される。メモリセルトランジスタTRAおよびメモリセルトランジスタTRBのPウェルPWに−1Vの電圧が供給される。また、ボトムNウェルNWに外部電源電圧VDDたとえば1.5Vの電圧が供給される。また、選択トランジスタTRS_Rのゲートに選択ゲート線SG_Rを介して接地電圧が供給され、選択トランジスタTRS_Pのゲートに選択ゲート線SG_Pを介して接地電圧が供給される。   The above is the operation for the selected memory cell MC, that is, the memory cell MC that is the target of data writing. Become. That is, the ground voltage is supplied to the control gate CG, the drain, and the source of the memory cell transistor TRA and the memory cell transistor TRB based on the control of the sequencer 11. A voltage of −1 V is supplied to the P well PW of the memory cell transistor TRA and the memory cell transistor TRB. Further, external power supply voltage VDD, for example, a voltage of 1.5 V is supplied to bottom N well NW. The ground voltage is supplied to the gate of the selection transistor TRS_R via the selection gate line SG_R, and the ground voltage is supplied to the gate of the selection transistor TRS_P via the selection gate line SG_P.

図8は、本発明の第1の実施の形態に係るフラッシュメモリモジュールのメモリセルに対するデータ消去の動作の一例を示す図である。   FIG. 8 is a diagram showing an example of the data erasing operation for the memory cell of the flash memory module according to the first embodiment of the present invention.

図5および図8を参照して、メモリセルMCに対するデータ消去時、メモリセルトランジスタTRAおよびメモリセルトランジスタTRBの制御ゲートCGに負の第1電圧が供給され、メモリセルトランジスタTRAのドレインおよびメモリセルトランジスタTRBのドレインが開放され、メモリセルトランジスタTRAおよびメモリセルトランジスタTRBのソースに正の第2電圧が供給され、PウェルPWに正の第3電圧が供給される。また、ボトムNウェルNWに第3電圧以上の第4電圧が供給されることにより、PウェルPWおよびボトムNウェルNW間のフォワードバイアスを防ぐことができる。   Referring to FIGS. 5 and 8, when data is erased from memory cell MC, negative first voltage is supplied to control gate CG of memory cell transistor TRA and memory cell transistor TRB, and the drain of memory cell transistor TRA and the memory cell The drain of the transistor TRB is opened, the positive second voltage is supplied to the sources of the memory cell transistor TRA and the memory cell transistor TRB, and the positive third voltage is supplied to the P well PW. Further, by supplying a fourth voltage not lower than the third voltage to the bottom N well NW, a forward bias between the P well PW and the bottom N well NW can be prevented.

たとえば、シーケンサ11の制御に基づいて、メモリセルトランジスタTRAおよびメモリセルトランジスタTRBの制御ゲートCGに−9Vの電圧が供給され、メモリセルトランジスタTRAのドレインおよびメモリセルトランジスタTRBのドレインが開放され、メモリセルトランジスタTRAおよびメモリセルトランジスタTRBのソースに10Vの電圧が供給され、PウェルPWに10Vの電圧が供給される。また、ボトムNウェルNWに11Vの電圧が供給される。また、メインビット線MBLは開放状態とされる。   For example, based on the control of the sequencer 11, a voltage of −9 V is supplied to the control gate CG of the memory cell transistor TRA and the memory cell transistor TRB, the drain of the memory cell transistor TRA and the drain of the memory cell transistor TRB are opened, and the memory A voltage of 10V is supplied to the sources of the cell transistor TRA and the memory cell transistor TRB, and a voltage of 10V is supplied to the P well PW. A voltage of 11V is supplied to the bottom N well NW. Further, the main bit line MBL is opened.

このように、メモリセルトランジスタTRAおよびメモリセルトランジスタTRBのソースに供給される電圧とPウェルPWに供給される電圧とを等しくすることにより、メモリセルトランジスタTRAおよびメモリセルトランジスタTRBのソースとPウェルPWとの間のフォワードバイアスを防ぐことができる。   In this way, by equalizing the voltage supplied to the sources of the memory cell transistor TRA and the memory cell transistor TRB and the voltage supplied to the P well PW, the source and the P well of the memory cell transistor TRA and the memory cell transistor TRB. A forward bias between PW can be prevented.

メモリセルMCに対するデータ消去は、以下のように行なわれる。すなわち、選択トランジスタTRS_Rをオフ状態とし、選択トランジスタTRS_Pをオフ状態とする。そして、FN(Fowler-Nordheim)トンネル現象を利用して、電荷蓄積層である浮遊ゲートFGからメモリセルトランジスタTRAおよびTRBのソース・ドレイン間に形成されるチャネルの両方へ電子を引き抜き、閾値電圧を消去状態である論理レベル”1”に対応する閾値電圧に下降させる。   Data erasure with respect to the memory cell MC is performed as follows. That is, the selection transistor TRS_R is turned off and the selection transistor TRS_P is turned off. Then, by utilizing the FN (Fowler-Nordheim) tunnel phenomenon, electrons are extracted from the floating gate FG, which is a charge storage layer, to both channels formed between the source and drain of the memory cell transistors TRA and TRB, and a threshold voltage is set. The threshold voltage corresponding to the logical level “1” in the erased state is lowered.

なお、上記は選択メモリセルMCすなわちデータ消去対象のメモリセルMCに対する動作であるが、データ消去時における非選択メモリセルMCすなわちデータ消去対象外のメモリセルMCについては、たとえば以下のような動作になる。すなわち、シーケンサ11の制御に基づいて、メモリセルトランジスタTRAおよびメモリセルトランジスタTRBの制御ゲートCG、ソースおよびPウェルPWに接地電圧が供給される。また、ボトムNウェルNWに11Vの電圧が供給される。また、選択トランジスタTRS_Rのゲートに選択ゲート線SG_Rを介して接地電圧が供給され、選択トランジスタTRS_Pのゲートに選択ゲート線SG_Pを介して接地電圧が供給される。   The above is the operation for the selected memory cell MC, that is, the memory cell MC that is the data erasure target. Become. That is, based on the control of the sequencer 11, the ground voltage is supplied to the control gate CG, the source and the P well PW of the memory cell transistor TRA and the memory cell transistor TRB. A voltage of 11V is supplied to the bottom N well NW. The ground voltage is supplied to the gate of the selection transistor TRS_R via the selection gate line SG_R, and the ground voltage is supplied to the gate of the selection transistor TRS_P via the selection gate line SG_P.

図9は、本発明の第1の実施の形態に係る半導体装置の構成を示す機能ブロック図である。   FIG. 9 is a functional block diagram showing the configuration of the semiconductor device according to the first embodiment of the present invention.

図9を参照して、半導体装置201Aは、たとえばマイクロコンピュータであり、SRAM(Static Random Access Memory)101と、CPU(Central Processing Unit)102と、フラッシュメモリモジュール103および104と、高速バスBUSHLおよびBUSHUと、低速バスBUSLとを備える。   Referring to FIG. 9, semiconductor device 201A is a microcomputer, for example, SRAM (Static Random Access Memory) 101, CPU (Central Processing Unit) 102, flash memory modules 103 and 104, and high-speed buses BUSHL and BUSHU. And a low-speed bus BUSL.

フラッシュメモリモジュール103および104は、前述のフラッシュメモリモジュール1と同様の構成を有する。フラッシュメモリモジュール103は、プログラムコードを保存する。また、フラッシュメモリモジュール104は、データを保存する。   The flash memory modules 103 and 104 have the same configuration as the flash memory module 1 described above. The flash memory module 103 stores program code. The flash memory module 104 stores data.

また、CPU102は、フラッシュメモリモジュール103および104へアドレス信号および制御信号等を出力することにより、フラッシュメモリモジュール103および104に対してデータ読み出しおよびデータ消去を行なう。また、CPU102は、フラッシュメモリモジュール103および104へアドレス信号、データ信号および制御信号等を出力することにより、フラッシュメモリモジュール103および104に対してデータ書き込みを行なう。   Further, the CPU 102 outputs an address signal, a control signal, and the like to the flash memory modules 103 and 104, thereby performing data reading and data erasing with respect to the flash memory modules 103 and 104. The CPU 102 writes data to the flash memory modules 103 and 104 by outputting address signals, data signals, control signals, and the like to the flash memory modules 103 and 104.

より詳細には、CPU102は、高速バスBUSHUを介してフラッシュメモリモジュール103からプログラムコードを読み出しながら低速バスBUSLを介してフラッシュメモリモジュール104にデータを書き込む。また、CPU102は、低速バスBUSLを介してフラッシュメモリモジュール104からデータを読み出しながら高速バスBUSHUを介してフラッシュメモリモジュール103にプログラムコードを書きこむ。このように、本発明の第1の実施の形態に係る半導体装置201Aでは、BGO(Back Ground Operation)動作に対応することができる。   More specifically, the CPU 102 writes data to the flash memory module 104 via the low-speed bus BUSL while reading the program code from the flash memory module 103 via the high-speed bus BUSHU. Further, the CPU 102 writes a program code to the flash memory module 103 via the high-speed bus BUSHU while reading data from the flash memory module 104 via the low-speed bus BUSL. As described above, the semiconductor device 201A according to the first embodiment of the present invention can cope with a BGO (Back Ground Operation) operation.

また、CPU102は、SRAM101へアドレス信号および制御信号等を出力することにより、SRAM101に対してデータ読み出しおよびデータ消去を行なう。CPU102は、SRAM101へアドレス信号、データ信号および制御信号等を出力することにより、SRAM101に対してデータ書き込みを行なう。   Further, the CPU 102 reads out data and erases data from the SRAM 101 by outputting an address signal, a control signal, and the like to the SRAM 101. The CPU 102 writes data to the SRAM 101 by outputting an address signal, a data signal, a control signal, and the like to the SRAM 101.

図10は、本発明の第1の実施の形態に係る半導体装置の変形例の構成を示す機能ブロック図である。   FIG. 10 is a functional block diagram showing a configuration of a variation of the semiconductor device according to the first embodiment of the present invention.

図10を参照して、半導体装置201Bは、たとえばマイクロコンピュータであり、SRAM(Static Random Access Memory)101と、CPU(Central Processing Unit)102と、フラッシュメモリモジュール107と、高速バスBUSHLおよびBUSHUと、低速バスBUSLとを備える。フラッシュメモリモジュール107は、フラッシュメモリモジュール105および106を含めて1チップ化したものである。   Referring to FIG. 10, semiconductor device 201B is, for example, a microcomputer, and includes SRAM (Static Random Access Memory) 101, CPU (Central Processing Unit) 102, flash memory module 107, high-speed buses BUSHL and BUSHU, And a low-speed bus BUSL. The flash memory module 107 is a single chip including the flash memory modules 105 and 106.

フラッシュメモリモジュール105および106は、前述のフラッシュメモリモジュール1とほぼ同様の構成を有するが、シーケンサ11および電源回路13等が共通化されている点が異なる。フラッシュメモリモジュール105は、プログラムコードを保存する。また、フラッシュメモリモジュール106は、データを保存する。   The flash memory modules 105 and 106 have substantially the same configuration as the flash memory module 1 described above, except that the sequencer 11 and the power supply circuit 13 are shared. The flash memory module 105 stores program code. The flash memory module 106 stores data.

フラッシュメモリモジュール107が含むシーケンサがフラッシュメモリモジュール105および106を個々に制御することにより、図9に示す半導体装置201Aと同様のBGO動作が可能となる。   When the sequencer included in the flash memory module 107 individually controls the flash memory modules 105 and 106, a BGO operation similar to that of the semiconductor device 201A shown in FIG. 9 is possible.

一般に、フラッシュメモリは、データ書き換えすなわちデータ書き込みおよびデータ消去を繰り返し行なうことによって、メモリセルのトンネル酸化膜において電子がトラップされていく。そうすると、チャネルへ電子を引き抜きにくくなり、閾値電圧が下がりにくくなる。また、データ書き換えを繰り返し行なうことによって、CHEによるチャネルの劣化が大きくなり、このためにトランジスタの相互コンダクタンスが劣化して閾値電圧が下がりにくくなる。閾値電圧が下がりにくくなると、データ消去に長時間を要することとなり、データ消去時間が要求仕様を満たさなくなってしまう。また、データ消去時間が一定の条件下では、閾値電圧がより大きいままの状態になることから、データ読み出しのマージンが小さくなってしまう。   Generally, in a flash memory, electrons are trapped in a tunnel oxide film of a memory cell by repeatedly performing data rewriting, that is, data writing and data erasing. As a result, it is difficult to extract electrons into the channel, and the threshold voltage is difficult to decrease. Further, by repeatedly performing data rewriting, the channel deterioration due to CHE becomes large, and therefore, the transconductance of the transistor is deteriorated and the threshold voltage is hardly lowered. If the threshold voltage is difficult to decrease, it takes a long time to erase data, and the data erasure time does not satisfy the required specification. Further, under the condition that the data erasing time is constant, the threshold voltage remains larger, and the data read margin becomes smaller.

しかしながら、本発明の第1の実施の形態に係る半導体装置では、メモリセルMCは、データ読み出し用のメモリセルトランジスタTRAと、データ書き込み用のメモリセルトランジスタTRBとを含む。このような構成により、データ読み出しおよびデータ書き込みを別々のチャネルで行なうことができるため、データ読み出し用のメモリセルトランジスタTRAにおいてデータ書き換えによる電子のトラップおよび相互コンダクタンスの劣化を防ぐことができる。したがって、本発明の第1の実施の形態に係る半導体装置では、データ書き換えの繰り返しによってメモリセルの閾値電圧が下がりにくくなることを防ぐことができるため、データ消去時間の増大を防ぐことができる。   However, in the semiconductor device according to the first embodiment of the present invention, the memory cell MC includes a memory cell transistor TRA for reading data and a memory cell transistor TRB for writing data. With such a configuration, data reading and data writing can be performed on separate channels, so that it is possible to prevent the trapping of electrons and the deterioration of mutual conductance due to data rewriting in the memory cell transistor TRA for data reading. Therefore, in the semiconductor device according to the first embodiment of the present invention, it is possible to prevent the threshold voltage of the memory cell from becoming difficult to decrease due to repeated data rewriting, and thus it is possible to prevent an increase in data erasing time.

また、データ読み出し用のメモリセルトランジスタにおいてはトンネル酸化膜においてトラップされる電子が少なくなることから、データ書き換えによる電子のデトラップ特性すなわちトラップされた電子が浮遊ゲートから抜けてしまうことによってメモリセルの閾値電圧が下がることを防ぐことができ、メモリセルのデータ保持特性を向上させることができる。   In addition, in the memory cell transistor for reading data, the number of electrons trapped in the tunnel oxide film is reduced. Therefore, the detrapping characteristic of electrons due to data rewriting, that is, the trapped electrons escape from the floating gate, thereby causing the threshold of the memory cell. The voltage can be prevented from lowering, and the data retention characteristics of the memory cell can be improved.

なお、本発明の第1の実施の形態に係るフラッシュメモリモジュールは、NOR型であると仮定して説明したが、これに限定されるものではなく、NAND型のフラッシュメモリであっても本発明を適用することが可能である。   The flash memory module according to the first embodiment of the present invention has been described on the assumption that it is a NOR type. However, the present invention is not limited to this, and the present invention is applicable to a NAND type flash memory. It is possible to apply.

次に、本発明の他の実施の形態について図面を用いて説明する。なお、図中同一または相当部分には同一符号を付してその説明は繰り返さない。   Next, another embodiment of the present invention will be described with reference to the drawings. In the drawings, the same or corresponding parts are denoted by the same reference numerals and description thereof will not be repeated.

<第2の実施の形態>
本実施の形態は、第1の実施の形態に係る半導体装置と比べてフラッシュメモリモジュールに対するデータ消去のシーケンスに特徴を有する半導体装置に関する。以下で説明する内容以外は第1の実施の形態に係る半導体装置と同様である。
<Second Embodiment>
The present embodiment relates to a semiconductor device characterized by a data erasing sequence for a flash memory module as compared with the semiconductor device according to the first embodiment. The contents other than those described below are the same as those of the semiconductor device according to the first embodiment.

図11は、本発明の第2の実施の形態に係る半導体装置202におけるシーケンサがフラッシュメモリモジュールに対してデータ消去を行なう際の動作手順を定めたフローチャートである。   FIG. 11 is a flowchart defining an operation procedure when the sequencer in the semiconductor device 202 according to the second embodiment of the present invention erases data from the flash memory module.

図12は、本発明の第2の実施の形態に係るフラッシュメモリモジュールのメモリセルの閾値電圧分布を示す図である。図12において、VRは、メモリセルMCに対する通常のデータ読み出しにおいてメモリセルMCの制御ゲートCGに印加される読み出し電圧である。たとえば、メモリセルMCの閾値電圧が読み出し電圧VRより小さい場合にはメモリセルMCは消去状態すなわち記憶データの論理レベルが”1”と判定される。一方、メモリセルMCの閾値電圧が読み出し電圧VRより大きい場合にはメモリセルMCは書き込み状態すなわち記憶データの論理レベルが”0”と判定される。   FIG. 12 is a diagram showing a threshold voltage distribution of the memory cells of the flash memory module according to the second embodiment of the present invention. In FIG. 12, VR is a read voltage applied to the control gate CG of the memory cell MC in normal data read from the memory cell MC. For example, when the threshold voltage of the memory cell MC is smaller than the read voltage VR, the memory cell MC is determined to be in the erased state, that is, the logical level of the stored data is “1”. On the other hand, when the threshold voltage of the memory cell MC is higher than the read voltage VR, the memory cell MC is determined to be in the write state, that is, the logical level of the stored data is “0”.

図13は、本発明の第2の実施の形態に係るフラッシュメモリモジュールにおけるステータスレジスタを示す図である。   FIG. 13 is a diagram showing a status register in the flash memory module according to the second embodiment of the present invention.

図13を参照して、ステータスレジスタREGは、ビットB7〜B0の8ビットのデータ領域を有する。たとえば、MSB(Most Significant Bit)であるビットB7はレディー・ビジービットであり、シーケンス動作中たとえばフラッシュメモリモジュールに対してデータ消去が行なわれているときには”0”が設定され、シーケンス動作が終了すると”1”にセットされる。ビットB6は予備である。ビットB5は消去エラービットであり、後述する消去ベリファイにおいて消去エラーが発生した場合に”1”にセットされる。ビットB4は書き込みエラービットであり、フラッシュメモリモジュールに対するデータ書き込みにおいてエラーが発生した場合に”1”にセットされる。ビットB3は予備である。ビットB2は過書き戻しエラービットであり、後述する過書き戻しベリファイにおいてエラーが発生した場合に”1”にセットされる。ビットB1は過消去エラービットであり、後述する過消去ベリファイにおいてエラーが発生した場合に”1”にセットされる。LSB(Least Significant Bit)であるビットB0は消去劣化ワーニングビットであり、後述する消去ベリファイまたは過消去ベリファイにおいてメモリセルMCの劣化が検出された場合に”1”にセットされる。ステータスレジスタREGは、たとえば前述のシーケンサ11内に設けられる。ステータスレジスタREGのビットB7〜B0は読み出し可能であり、たとえば前述のCPU102が読み出すことができる。   Referring to FIG. 13, status register REG has an 8-bit data area of bits B7 to B0. For example, bit B7 which is an MSB (Most Significant Bit) is a ready / busy bit, and is set to "0" when data is erased from the flash memory module during the sequence operation, for example, and the sequence operation ends. Set to “1”. Bit B6 is reserved. Bit B5 is an erase error bit, and is set to “1” when an erase error occurs in erase verify described later. Bit B4 is a write error bit, and is set to “1” when an error occurs in data writing to the flash memory module. Bit B3 is reserved. Bit B2 is an overwriting error bit, and is set to “1” when an error occurs in an overwriting error verify described later. Bit B1 is an overerase error bit, and is set to “1” when an error occurs in overerase verification described later. A bit B0 which is an LSB (Least Significant Bit) is an erase deterioration warning bit, and is set to “1” when deterioration of the memory cell MC is detected in erase verify or over-erase verify described later. The status register REG is provided in the above-described sequencer 11, for example. Bits B7 to B0 of the status register REG can be read, and for example, can be read by the CPU 102 described above.

シーケンサ11は、たとえばCPU102からデータ消去を表わす制御信号CTLと、アドレス信号ADとを受けて、まず、消去ベリファイを行なう。すなわち、シーケンサ11は、データ消去対象である1個のメモリセルMCの閾値電圧またはデータ消去対象である複数個のメモリセルMCの閾値電圧分布の上裾すなわち最大値と消去ベリファイ電圧VUとを比較する。ここで、消去ベリファイ電圧VUとは、読み出し電圧VRより所定値小さい電圧である。また、ここでは、データ消去対象のメモリセルMCは複数個存在すると仮定して説明する。   For example, sequencer 11 receives control signal CTL representing data erasure from CPU 102 and address signal AD, and first performs erase verify. That is, the sequencer 11 compares the threshold voltage of one memory cell MC to be erased with data or the upper skirt of the threshold voltage distribution of a plurality of memory cells MC to be erased, that is, the maximum value with the erase verify voltage VU. To do. Here, the erase verify voltage VU is a voltage smaller than the read voltage VR by a predetermined value. Here, description will be made on the assumption that there are a plurality of memory cells MC to be erased.

より詳細には、シーケンサ11は、消去ベリファイ電圧VUを読み出し電圧としてデータ消去対象のメモリセルMCの制御ゲートCGに印加する。また、制御ゲートCGに印加される電圧以外は、たとえば図5および図6において説明したデータ読み出しにおける各電圧がメモリセルMCに印加される。そして、シーケンサ11は、メモリセルMCを通して電流が流れるか否かをセンスアンプ7で判定することにより、メモリセルMCの閾値電圧分布の上裾と消去ベリファイ電圧VUとを比較する。   More specifically, the sequencer 11 applies the erase verify voltage VU as a read voltage to the control gate CG of the memory cell MC to be erased. Other than the voltage applied to the control gate CG, for example, each voltage in the data read described with reference to FIGS. 5 and 6 is applied to the memory cell MC. Then, the sequencer 11 compares the erase verify voltage VU with the upper skirt of the threshold voltage distribution of the memory cell MC by determining whether the current flows through the memory cell MC with the sense amplifier 7.

シーケンサ11は、図12に示す閾値電圧分布Aのように、データ消去対象のメモリセルMCの閾値電圧分布の上裾が消去ベリファイ電圧VUより大きい場合には(ステップS1でNO)、消去パルスのカウント値を1大きくする(ステップS2)。   When the upper edge of the threshold voltage distribution of the memory cell MC to be erased is larger than the erase verify voltage VU (NO in step S1), the sequencer 11 determines the erase pulse as shown in the threshold voltage distribution A shown in FIG. The count value is increased by 1 (step S2).

そして、シーケンサ11は、消去パルスのカウント値がn1以下である場合であって(ステップS3でNO)、消去パルスのカウント値がn2以下であるときには(ステップS5でNO)、すべてのデータ消去対象のメモリセルMCに対して消去電圧を印加する。たとえば、図5および図8において説明したデータ消去における各電圧がパルス状にフラッシュメモリモジュール1におけるメモリセルMCに供給される(ステップS7)。   Then, when the erase pulse count value is n1 or less (NO in step S3) and the erase pulse count value is n2 or less (NO in step S5), the sequencer 11 deletes all data. An erase voltage is applied to the memory cell MC. For example, each voltage in the data erasure described with reference to FIGS. 5 and 8 is supplied to the memory cell MC in the flash memory module 1 in a pulse shape (step S7).

ここで、n1は、半導体装置202の要求仕様に対応する値、たとえば、フラッシュメモリモジュール1に対するデータ消去時間の要求仕様に対応する値である。また、n2は、n1より小さい値である。また、n1およびn2は、たとえば半導体装置202の外部から変更可能である。このような構成により、半導体装置202が使用される装置の仕様に応じた設定を行なうことができる。   Here, n1 is a value corresponding to the required specification of the semiconductor device 202, for example, a value corresponding to the required specification of the data erasing time for the flash memory module 1. N2 is a value smaller than n1. Further, n1 and n2 can be changed from the outside of the semiconductor device 202, for example. With such a configuration, setting according to the specifications of the device in which the semiconductor device 202 is used can be performed.

また、シーケンサ11は、消去パルスのカウント値がn1より大きい場合には(ステップS3でYES)、消去エラー状態であると判断し、ステータスレジスタREGの消去エラービットをセットし(ステップS4)、異常終了する(ステップS17)。   If the count value of the erase pulse is greater than n1 (YES in step S3), the sequencer 11 determines that an erase error state has occurred, sets the erase error bit in the status register REG (step S4), and causes an abnormality. The process ends (step S17).

一方、シーケンサ11は、消去パルスのカウント値がn1以下である場合であって(ステップS3でNO)、消去パルスのカウント値がn2より大きいとき(ステップS5でYES)には、メモリセルMCが劣化していると判断し、ステータスレジスタREGの劣化ワーニングビットをセットする(ステップS6)。   On the other hand, when the erase pulse count value is n1 or less (NO in step S3) and the erase pulse count value is greater than n2 (YES in step S5), the sequencer 11 determines that the memory cell MC is It is determined that it has deteriorated, and the deterioration warning bit of the status register REG is set (step S6).

劣化ワーニングビットをセットした後、シーケンサ11は、すべてのデータ消去対象のメモリセルMCに対して消去電圧を印加する(ステップS7)。   After setting the deterioration warning bit, the sequencer 11 applies an erase voltage to all the memory cells MC to be erased (step S7).

シーケンサ11は、メモリセルMCに消去電圧を印加した後、再びメモリセルMCの閾値電圧分布の上裾と消去ベリファイ電圧VUとを比較する。そして、シーケンサ11は、データ消去対象のメモリセルMCの閾値電圧分布の上裾が消去ベリファイ電圧VU以下である場合には(ステップS1でYES)、過消去ベリファイを行なう。すなわち、シーケンサ11は、データ消去対象である複数個のメモリセルMCの閾値電圧分布の下裾すなわち最小値と過消去ベリファイ電圧VDとを比較する。ここで、過消去ベリファイ電圧VDは、消去ベリファイ電圧VUより所定値小さい電圧である。   After applying the erase voltage to the memory cell MC, the sequencer 11 compares the upper threshold of the threshold voltage distribution of the memory cell MC with the erase verify voltage VU again. Then, the sequencer 11 performs overerase verification when the upper end of the threshold voltage distribution of the memory cell MC to be erased is equal to or lower than the erase verify voltage VU (YES in step S1). That is, the sequencer 11 compares the lower skirt, that is, the minimum value of the threshold voltage distribution of the plurality of memory cells MC to be erased with the overerase verify voltage VD. Here, the overerase verify voltage VD is a voltage smaller than the erase verify voltage VU by a predetermined value.

より詳細には、シーケンサ11は、過消去ベリファイ電圧VDを読み出し電圧としてデータ消去対象のメモリセルMCの制御ゲートCGに印加する。そして、シーケンサ11は、メモリセルMCを通して電流が流れるか否かをセンスアンプ7で判定することにより、メモリセルMCの閾値電圧分布の下裾と過消去ベリファイ電圧VDとを比較する。   More specifically, the sequencer 11 applies the overerase verify voltage VD as a read voltage to the control gate CG of the memory cell MC to be erased. The sequencer 11 compares the lower skirt of the threshold voltage distribution of the memory cell MC with the overerase verify voltage VD by determining whether or not a current flows through the memory cell MC by the sense amplifier 7.

シーケンサ11は、図12に示す閾値電圧分布Bのように、データ消去対象のメモリセルMCの閾値電圧分布の下裾が過消去ベリファイ電圧VDより小さい場合には(ステップS8でNO)、書き戻しパルスのカウント値を1大きくする(ステップS9)。   The sequencer 11 writes back when the lower end of the threshold voltage distribution of the memory cell MC to be erased is smaller than the overerase verify voltage VD (NO in step S8) as in the threshold voltage distribution B shown in FIG. The pulse count value is increased by 1 (step S9).

そして、シーケンサ11は、書き戻しパルスのカウント値がm1以下である場合であって(ステップS10でNO)、書き戻しパルスのカウント値がm2以下であるときには(ステップS12でNO)、データ消去対象のメモリセルMCのうち、閾値電圧が過消去ベリファイ電圧VDより小さいメモリセルMCに対して選択的に書き戻し電圧を印加する。たとえば、図5および図7において説明したデータ書き込みにおける各電圧がパルス状にフラッシュメモリモジュール1におけるメモリセルMCに供給される。このように、選択的にメモリセルMCに書き戻し電圧を印加することにより、正常なメモリセルMCの閾値電圧が上昇してしまうことを防ぐことができる(ステップS14)。   When the write-back pulse count value is m1 or less (NO in step S10) and the write-back pulse count value is m2 or less (NO in step S12), the sequencer 11 performs data erasure. The write-back voltage is selectively applied to the memory cells MC whose threshold voltage is smaller than the over-erase verify voltage VD. For example, each voltage in the data writing described with reference to FIGS. 5 and 7 is supplied to the memory cell MC in the flash memory module 1 in a pulse shape. In this way, by selectively applying the write-back voltage to the memory cell MC, it is possible to prevent the threshold voltage of the normal memory cell MC from increasing (step S14).

ここで、m1は、半導体装置202の要求仕様に対応する値、たとえば、フラッシュメモリモジュール1に対するデータ消去時間の要求仕様に対応する値である。また、m2は、n1より小さい値である。また、m1およびm2は、たとえば半導体装置202の外部から変更可能である。このような構成により、半導体装置202が使用される装置の仕様に応じた設定を行なうことができる。   Here, m1 is a value corresponding to the required specification of the semiconductor device 202, for example, a value corresponding to the required specification of the data erasing time for the flash memory module 1. Moreover, m2 is a value smaller than n1. Further, m1 and m2 can be changed from the outside of the semiconductor device 202, for example. With such a configuration, setting according to the specifications of the device in which the semiconductor device 202 is used can be performed.

また、シーケンサ11は、書き戻しパルスのカウント値がm1より大きい場合には(ステップS10でYES)、過消去エラー状態であると判断し、ステータスレジスタREGの過消去エラービットをセットし(ステップS11)、異常終了する(ステップS17)。   If the count value of the write-back pulse is greater than m1 (YES in step S10), the sequencer 11 determines that an overerased error state has occurred, and sets the overerased error bit in the status register REG (step S11). ) Ends abnormally (step S17).

一方、シーケンサ11は、書き戻しパルスのカウント値がm1以下である場合であって(ステップS10でNO)、書き戻しパルスのカウント値がm2より大きいとき(ステップS12でYES)には、メモリセルMCが劣化していると判断し、ステータスレジスタREGの劣化ワーニングビットをセットする(ステップS13)。   On the other hand, when the count value of the write-back pulse is less than or equal to m1 (NO in step S10) and the count value of the write-back pulse is larger than m2 (YES in step S12), the sequencer 11 It is determined that the MC has deteriorated, and the deterioration warning bit of the status register REG is set (step S13).

劣化ワーニングビットをセットした後、シーケンサ11は、データ消去対象のメモリセルMCのうち、閾値電圧が過消去ベリファイ電圧VDより小さいメモリセルMCに対して選択的に書き戻し電圧を印加する(ステップS14)。   After setting the deterioration warning bit, the sequencer 11 selectively applies the write-back voltage to the memory cell MC whose threshold voltage is lower than the over-erase verify voltage VD among the memory cells MC to be erased (step S14). ).

シーケンサ11は、メモリセルMCに書き戻し電圧を印加した後、再びメモリセルMCの閾値電圧分布の下裾と過消去ベリファイ電圧VDとを比較する。そして、シーケンサ11は、データ消去対象のメモリセルMCの閾値電圧分布の下裾が過消去ベリファイ電圧VD以上である場合には(ステップS8でYES)、過書き戻しベリファイを行なう。すなわち、シーケンサ11は、データ消去対象である複数個のメモリセルMCの閾値電圧分布の上裾と過書き戻しベリファイ電圧とを比較する。ここで、過書き戻しベリファイ電圧は、消去ベリファイ電圧VUより大きく、かつ読み出し電圧VRより小さい電圧である。消去ベリファイ電圧VUを過書き戻しベリファイ電圧より小さくすることにより、メモリセルMCに対する書き戻しのマージンを設けることができる、すなわち、メモリセルMCに対する書き戻しによって閾値電圧が読み出し電圧VRを超えてしまうことを確実に防ぐことができる。   After applying the write-back voltage to the memory cell MC, the sequencer 11 again compares the lower skirt of the threshold voltage distribution of the memory cell MC with the overerase verify voltage VD. If the lower end of the threshold voltage distribution of the memory cell MC to be erased is equal to or higher than the overerase verify voltage VD (YES in step S8), the sequencer 11 performs overwrite-back verify. That is, the sequencer 11 compares the upper threshold of the threshold voltage distribution of the plurality of memory cells MC to be erased with the overwriting verify voltage. Here, the overwriting verify voltage is a voltage larger than the erase verify voltage VU and smaller than the read voltage VR. By making the erase verify voltage VU smaller than the overwrite-back verify voltage, it is possible to provide a write-back margin for the memory cell MC, that is, the threshold voltage exceeds the read voltage VR by the write-back to the memory cell MC. Can be surely prevented.

シーケンサ11は、データ消去対象のメモリセルMCの閾値電圧分布の上裾が過書き戻しベリファイ電圧より大きい場合には(ステップS15でNO)、過書き戻しエラー状態であると判断し、ステータスレジスタREGの過書き戻しエラービットをセットし(ステップS16)、異常終了する(ステップS17)。   If the upper end of the threshold voltage distribution of the memory cell MC to be erased is greater than the overwrite-back verify voltage (NO in step S15), the sequencer 11 determines that an overwrite-back error state has occurred, and status register REG. The overwriting return error bit is set (step S16), and the process ends abnormally (step S17).

一方、シーケンサ11は、データ消去対象のメモリセルMCの閾値電圧分布の上裾が過書き戻しベリファイ電圧以下である場合には(ステップS15でYES)、データ消去動作を正常終了する(ステップS18)。このとき、データ消去対象のメモリセルMCの閾値電圧分布はたとえば図12に示す閾値電圧分布Cのようになる。   On the other hand, the sequencer 11 normally terminates the data erasing operation when the upper end of the threshold voltage distribution of the memory cell MC to be erased is equal to or lower than the overwriting verify voltage (YES in step S15) (step S18). . At this time, the threshold voltage distribution of the memory cell MC to be erased becomes, for example, a threshold voltage distribution C shown in FIG.

前述のように、フラッシュメモリは、データ書き換えすなわちデータ書き込みおよびデータ消去を繰り返すたびに劣化し、閾値電圧が下がりにくくなってデータ消去に長時間を要することとなり、最終的にはデータ消去時間が要求仕様を満たさなくなってしまう。   As described above, the flash memory deteriorates every time data rewrite, that is, data write and data erase is repeated, and the threshold voltage is unlikely to decrease, and it takes a long time to erase data. The specification will not be met.

ここで、従来の半導体装置では、データ消去が失敗した場合、すなわち所定時間内にデータ消去が完了しなかった場合には、フラッシュメモリモジュールを制御するCPU等の制御回路はフラッシュメモリモジュールまたは他の記憶回路において代替領域を用意してデータを保存する。制御回路は、フラッシュメモリモジュールに実際にデータ消去を行なわなければデータ消去が成功するか否かを判断することができない。また、従来の半導体装置では、データ消去が成功したか失敗したかの情報しか得ることができない。このため、データ消去の処理中に代替領域を用意して再度データ消去を行なう必要が生じることから、データ処理時間が増大してしまう。   Here, in the conventional semiconductor device, when the data erasure fails, that is, when the data erasure is not completed within a predetermined time, the control circuit such as a CPU for controlling the flash memory module is a flash memory module or other An alternative area is prepared in the memory circuit and data is stored. The control circuit cannot determine whether or not the data erasure is successful unless the data is actually erased from the flash memory module. In addition, the conventional semiconductor device can obtain only information on whether data erasure has succeeded or failed. For this reason, it is necessary to prepare an alternative area during the data erasing process and perform the data erasing again, which increases the data processing time.

しかしながら、本発明の第2の実施の形態に係る半導体装置は、消去電圧または書き戻し電圧の印加回数についての2つの判定値を有する。すなわち、シーケンサ11は、消去電圧または書き戻し電圧の印加時間が第1の判定値(n1またはm1)を超えると消去エラービットまたは過消去エラービットをセットする。また、シーケンサ11は、消去電圧または書き戻し電圧の印加時間が第1の判定値より小さい第2の判定値(n2またはm2)を超えると劣化ワーニングビットをセットする。このような構成により、データ消去時間の要求仕様を満たさない状態に加えて、データ消去時間の要求仕様は満たすことが可能であるがメモリセルの劣化がある程度進行している状態を外部で認識することができる。これにより、データ消去が正常終了する場合であっても今後メモリセルの劣化が進行してデータ消去が異常終了する可能性が高いことを検出することができる。このため、予めユーザまたはホスト側で代替領域を用意する等、データ消去時間の増大を防ぐための対策を行なうことが可能になる。したがって、本発明の第2の実施の形態に係る半導体装置では、データ消去時間の増大を防ぐことができる。また、半導体装置に対する処理の自由度および記憶データの安全性を向上させることができる。   However, the semiconductor device according to the second embodiment of the present invention has two determination values for the number of application times of the erase voltage or the write-back voltage. That is, the sequencer 11 sets the erase error bit or the over-erase error bit when the application time of the erase voltage or the write-back voltage exceeds the first determination value (n1 or m1). Further, the sequencer 11 sets the deterioration warning bit when the application time of the erase voltage or the write-back voltage exceeds a second determination value (n2 or m2) that is smaller than the first determination value. With such a configuration, in addition to a state that does not satisfy the required specification of the data erasing time, it is possible to externally recognize a state in which the required specification of the data erasing time can be satisfied but the deterioration of the memory cell has progressed to some extent be able to. As a result, even when data erasure ends normally, it is possible to detect that there is a high possibility that the data erasure will end abnormally due to further deterioration of the memory cells. For this reason, it is possible to take measures to prevent an increase in data erasure time, such as preparing an alternative area in advance on the user or host side. Therefore, in the semiconductor device according to the second embodiment of the present invention, an increase in data erasing time can be prevented. Further, the degree of freedom of processing for the semiconductor device and the safety of stored data can be improved.

なお、本発明の第2の実施の形態に係るフラッシュメモリモジュールでは、シーケンサ11がステータスレジスタREGを含む構成であるとしたが、これに限定するものではない。シーケンサ11が、ステータスレジスタREGを含む代わりにエラー状態およびワーニング状態を表わす信号をそれぞれ外部へ出力する構成であってもよい。   In the flash memory module according to the second embodiment of the present invention, the sequencer 11 includes the status register REG. However, the present invention is not limited to this. The sequencer 11 may be configured to output signals representing an error state and a warning state to the outside instead of including the status register REG.

また、本発明の第2の実施の形態に係るフラッシュメモリモジュールでは、n1、n2、m1およびm2は回数であるとしたが、これに限定するものではなく、メモリセルMCの制御ゲートCGに印加される消去電圧または書き戻し電圧の印加時間を示す値であればよい。   In the flash memory module according to the second embodiment of the present invention, n1, n2, m1, and m2 are the numbers of times. However, the present invention is not limited to this, and is applied to the control gate CG of the memory cell MC. Any value may be used as long as it indicates the application time of the erase voltage or write-back voltage.

また、本発明の第2の実施の形態に係るフラッシュメモリモジュールでは、シーケンサ11は、メモリセルMCの制御ゲートCGにパルス状の消去電圧およびパルス状の書き戻し電圧を印加する、すなわち断続的に消去電圧および書き戻し電圧を印加する構成であるとしたが、これに限定するものではない。シーケンサ11が、メモリセルMCの制御ゲートCGに連続的に消去電圧および書き戻し電圧を印加し、消去電圧および書き戻し電圧の印加時間を計測する構成であってもよい。   In the flash memory module according to the second embodiment of the present invention, the sequencer 11 applies a pulsed erase voltage and a pulsed writeback voltage to the control gate CG of the memory cell MC, that is, intermittently. Although the configuration is such that the erase voltage and the write-back voltage are applied, the present invention is not limited to this. The sequencer 11 may be configured to continuously apply the erase voltage and the write back voltage to the control gate CG of the memory cell MC and measure the application time of the erase voltage and the write back voltage.

また、本発明の第2の実施の形態に係るフラッシュメモリモジュールにおけるメモリセルは、図2および図3に示す構成に限定されるものではなく、閾値電圧の相違を利用してデータを不揮発的に記憶するメモリセルであれば本発明を適用することが可能である。   Further, the memory cell in the flash memory module according to the second embodiment of the present invention is not limited to the configuration shown in FIGS. 2 and 3, and data is stored in a non-volatile manner using the difference in threshold voltage. The present invention can be applied to any memory cell that stores data.

次に、本発明の他の実施の形態について図面を用いて説明する。なお、図中同一または相当部分には同一符号を付してその説明は繰り返さない。   Next, another embodiment of the present invention will be described with reference to the drawings. In the drawings, the same or corresponding parts are denoted by the same reference numerals and description thereof will not be repeated.

<第3の実施の形態>
本実施の形態は、第2の実施の形態に係る半導体装置と比べてデータ消去のシーケンスにおいて新たなベリファイ動作を追加した半導体装置に関する。以下で説明する内容以外は第2の実施の形態に係る半導体装置と同様である。
<Third Embodiment>
The present embodiment relates to a semiconductor device in which a new verify operation is added in the data erasing sequence as compared with the semiconductor device according to the second embodiment. Except for the contents described below, the semiconductor device is the same as that of the second embodiment.

図14は、本発明の第3の実施の形態に係る半導体装置203におけるシーケンサがフラッシュメモリモジュールに対してデータ消去を行なう際の動作手順を定めたフローチャートである。   FIG. 14 is a flowchart defining an operation procedure when the sequencer in the semiconductor device 203 according to the third embodiment of the present invention erases data from the flash memory module.

図15は、本発明の第3の実施の形態に係るフラッシュメモリモジュールのメモリセルの閾値電圧分布を示す図である。後述する超過消去ベリファイ電圧VN以外は図12と同様である。   FIG. 15 is a diagram showing the threshold voltage distribution of the memory cells of the flash memory module according to the third embodiment of the present invention. Except for an over-erase verify voltage VN described later, this is the same as FIG.

シーケンサ11は、たとえばCPU102からデータ消去を表わす制御信号CTLと、アドレス信号ADとを受けて、まず、消去ベリファイを行なう。すなわち、シーケンサ11は、データ消去対象である1個のメモリセルMCの閾値電圧またはデータ消去対象である複数個のメモリセルMCの閾値電圧分布の上裾すなわち最大値と消去ベリファイ電圧VUとを比較する。ここで、消去ベリファイ電圧VUとは、読み出し電圧VRより所定値小さい電圧である。また、ここでは、データ消去対象のメモリセルMCは複数個存在すると仮定して説明する。   For example, sequencer 11 receives control signal CTL representing data erasure from CPU 102 and address signal AD, and first performs erase verify. That is, the sequencer 11 compares the threshold voltage of one memory cell MC to be erased with data or the upper skirt of the threshold voltage distribution of a plurality of memory cells MC to be erased, that is, the maximum value with the erase verify voltage VU. To do. Here, the erase verify voltage VU is a voltage smaller than the read voltage VR by a predetermined value. Here, description will be made on the assumption that there are a plurality of memory cells MC to be erased.

より詳細には、シーケンサ11は、消去ベリファイ電圧VUを読み出し電圧としてデータ消去対象のメモリセルMCの制御ゲートCGに印加する。また、制御ゲートCGに印加される電圧以外は、たとえば図5および図6において説明したデータ読み出しにおける各電圧がメモリセルMCに印加される。そして、シーケンサ11は、メモリセルMCを通して電流が流れるか否かをセンスアンプ7で判定することにより、メモリセルMCの閾値電圧分布の上裾と消去ベリファイ電圧VUとを比較する。   More specifically, the sequencer 11 applies the erase verify voltage VU as a read voltage to the control gate CG of the memory cell MC to be erased. Other than the voltage applied to the control gate CG, for example, each voltage in the data read described with reference to FIGS. 5 and 6 is applied to the memory cell MC. Then, the sequencer 11 compares the erase verify voltage VU with the upper skirt of the threshold voltage distribution of the memory cell MC by determining whether the current flows through the memory cell MC with the sense amplifier 7.

シーケンサ11は、図15に示す閾値電圧分布Aのように、データ消去対象のメモリセルMCの閾値電圧分布の上裾が消去ベリファイ電圧VUより大きい場合には(ステップS21でNO)、消去パルスのカウント値を1大きくする(ステップS22)。   When the upper end of the threshold voltage distribution of the memory cell MC to be erased is larger than the erase verify voltage VU (NO in step S21), the sequencer 11 determines the erase pulse as shown in the threshold voltage distribution A shown in FIG. The count value is increased by 1 (step S22).

そして、シーケンサ11は、消去パルスのカウント値がn1より大きい場合には(ステップS23でYES)、消去エラー状態であると判断し、ステータスレジスタREGの消去エラービットをセットし(ステップS24)、異常終了する(ステップS35)。ここで、半導体装置203が備えるステータスレジスタREGは、たとえば図13に示すステータスレジスタREGのビットB0を予備にしたものである。   If the count value of the erase pulse is larger than n1 (YES in step S23), the sequencer 11 determines that the erase error state has occurred, sets the erase error bit in the status register REG (step S24), and causes an abnormality. The process ends (step S35). Here, the status register REG provided in the semiconductor device 203 is, for example, a spare bit B0 of the status register REG shown in FIG.

ここで、n1は、半導体装置203の要求仕様に対応する値、たとえば、フラッシュメモリモジュール1に対するデータ消去時間の要求仕様に対応する値である。また、n1は、たとえば半導体装置203の外部から変更可能である。このような構成により、半導体装置203が使用される装置の仕様に応じた設定を行なうことができる。   Here, n1 is a value corresponding to the required specification of the semiconductor device 203, for example, a value corresponding to the required specification of the data erasing time for the flash memory module 1. Further, n1 can be changed from the outside of the semiconductor device 203, for example. With such a configuration, setting according to the specifications of the device in which the semiconductor device 203 is used can be performed.

一方、シーケンサ11は、消去パルスのカウント値がn1以下である場合には(ステップS23でNO)、すべてのデータ消去対象のメモリセルMCに対して消去電圧を印加する。たとえば、図5および図8において説明したデータ消去における各電圧がパルス状にフラッシュメモリモジュール1におけるメモリセルMCに供給される(ステップS25)。   On the other hand, when the count value of the erase pulse is n1 or less (NO in step S23), the sequencer 11 applies the erase voltage to all the memory cells MC to be erased. For example, each voltage in the data erasure described with reference to FIGS. 5 and 8 is supplied to the memory cell MC in the flash memory module 1 in a pulse shape (step S25).

そして、シーケンサ11は、超過消去ベリファイを行なう。すなわち、シーケンサ11は、データ消去対象である複数個のメモリセルMCの閾値電圧分布の下裾と超過消去ベリファイ電圧VNとを比較する。ここで、超過消去ベリファイ電圧VNとは、後述する過消去ベリファイ電圧VDより小さい電圧であり、たとえば負電圧である。   Then, the sequencer 11 performs an excess erase verify. That is, the sequencer 11 compares the lower skirt of the threshold voltage distribution of the plurality of memory cells MC to be erased with the excess erase verify voltage VN. Here, the overerase verify voltage VN is a voltage lower than an overerase verify voltage VD described later, and is, for example, a negative voltage.

より詳細には、シーケンサ11は、超過消去ベリファイ電圧VNを読み出し電圧としてデータ消去対象のメモリセルMCの制御ゲートCGに印加する。そして、シーケンサ11は、メモリセルMCを通して電流が流れるか否かをセンスアンプ7で判定することにより、メモリセルMCの閾値電圧分布の下裾と超過消去ベリファイ電圧VNとを比較する。   More specifically, the sequencer 11 applies the excess erase verify voltage VN as a read voltage to the control gate CG of the memory cell MC to be erased. Then, the sequencer 11 compares the lower skirt of the threshold voltage distribution of the memory cell MC with the excess erase verify voltage VN by determining whether the current flows through the memory cell MC with the sense amplifier 7.

シーケンサ11は、図15に示す閾値電圧分布Dのように、データ消去対象のメモリセルMCの閾値電圧分布の下裾が超過消去ベリファイ電圧VNより小さい場合には(ステップS26でNO)、データ消去対象のメモリセルMCの制御ゲートCGにパルス状の微量の書き戻し電圧を印加する。この場合の書き戻し電圧は、後述する過消去ベリファイ電圧VDよりも小さく、かつ超過消去ベリファイ電圧VNより大きい電圧である。また、制御ゲートCGに印加される電圧以外は、たとえば図5および図7において説明したデータ書き込みにおける各電圧がパルス状にメモリセルMCに印加される。なお、シーケンサ11は、データ消去対象のメモリセルMCが複数個存在する場合には、データ消去対象のすべてのメモリセルMCの制御ゲートCGに書き戻し電圧を印加する。通常、正常なメモリセルMCの閾値電圧と超過消去ベリファイで不合格となるメモリセルMCの閾値電圧との差は大きい。このため、書き戻し電圧をデータ消去対象のすべてのメモリセルMCに印加しても、正常なメモリセルMCと比べて閾値電圧が極端に小さいメモリセルの閾値電圧だけを選択的に上昇させることができる(ステップ27)。   The sequencer 11 erases the data when the lower skirt of the threshold voltage distribution of the memory cell MC to be erased is smaller than the excess erase verify voltage VN (NO in step S26) as in the threshold voltage distribution D shown in FIG. A small amount of pulsed write-back voltage is applied to the control gate CG of the target memory cell MC. In this case, the write-back voltage is a voltage smaller than an overerase verify voltage VD described later and larger than an excess erase verify voltage VN. Other than the voltage applied to the control gate CG, for example, each voltage in the data writing described with reference to FIGS. 5 and 7 is applied to the memory cell MC in a pulse shape. The sequencer 11 applies a write back voltage to the control gates CG of all the memory cells MC to be erased when there are a plurality of memory cells MC to be erased. Usually, the difference between the threshold voltage of the normal memory cell MC and the threshold voltage of the memory cell MC that fails the over-erase verification is large. For this reason, even if the write-back voltage is applied to all the memory cells MC to be erased, only the threshold voltage of the memory cell whose threshold voltage is extremely smaller than that of the normal memory cell MC can be selectively increased. Yes (step 27).

シーケンサ11は、メモリセルMCに書き戻し電圧を印加した後、再びメモリセルMCの閾値電圧分布の上裾と消去ベリファイ電圧VUとを比較する。また、シーケンサ11は、データ消去対象のメモリセルMCの閾値電圧分布の下裾が超過消去ベリファイ電圧VNより大きい場合には(ステップS26でYES)、再びメモリセルMCの閾値電圧分布の上裾と消去ベリファイ電圧VUとを比較する。そして、シーケンサ11は、データ消去対象のメモリセルMCの閾値電圧分布の上裾が消去ベリファイ電圧VU以下である場合には(ステップS21でYES)、過消去ベリファイを行なう。すなわち、シーケンサ11は、データ消去対象である複数個のメモリセルMCの閾値電圧分布の下裾すなわち最小値と過消去ベリファイ電圧VDとを比較する。ここで、過消去ベリファイ電圧VDは、消去ベリファイ電圧VUより所定値小さい電圧である。   After applying the write-back voltage to the memory cell MC, the sequencer 11 compares the upper threshold of the threshold voltage distribution of the memory cell MC with the erase verify voltage VU again. In addition, when the lower skirt of the threshold voltage distribution of the memory cell MC to be erased is greater than the excess erasure verify voltage VN (YES in step S26), the sequencer 11 again determines the upper skirt of the threshold voltage distribution of the memory cell MC. The erase verify voltage VU is compared. If the upper end of the threshold voltage distribution of the memory cell MC to be erased is equal to or lower than the erase verify voltage VU (YES in step S21), the sequencer 11 performs overerase verify. That is, the sequencer 11 compares the lower skirt, that is, the minimum value of the threshold voltage distribution of the plurality of memory cells MC to be erased with the overerase verify voltage VD. Here, the overerase verify voltage VD is a voltage smaller than the erase verify voltage VU by a predetermined value.

より詳細には、シーケンサ11は、過消去ベリファイ電圧VDを読み出し電圧としてデータ消去対象のメモリセルMCの制御ゲートCGに印加する。そして、シーケンサ11は、メモリセルMCを通して電流が流れるか否かをセンスアンプ7で判定することにより、メモリセルMCの閾値電圧分布の下裾と過消去ベリファイ電圧VDとを比較する。   More specifically, the sequencer 11 applies the overerase verify voltage VD as a read voltage to the control gate CG of the memory cell MC to be erased. The sequencer 11 compares the lower skirt of the threshold voltage distribution of the memory cell MC with the overerase verify voltage VD by determining whether or not a current flows through the memory cell MC by the sense amplifier 7.

シーケンサ11は、図15に示す閾値電圧分布Bのように、データ消去対象のメモリセルMCの閾値電圧分布の下裾が過消去ベリファイ電圧VDより小さい場合には(ステップS28でNO)、書き戻しパルスのカウント値を1大きくする(ステップS29)。   When the lower end of the threshold voltage distribution of the memory cell MC to be erased is smaller than the overerase verify voltage VD (NO in step S28), the sequencer 11 writes back the data, as in the threshold voltage distribution B shown in FIG. The pulse count value is increased by 1 (step S29).

そして、シーケンサ11は、書き戻しパルスのカウント値がm1以下である場合には(ステップS30でNO)、データ消去対象のメモリセルMCのうち、閾値電圧が過消去ベリファイ電圧VDより小さいメモリセルMCの制御ゲートCGに選択的に書き戻し電圧を印加する。この場合の書き戻し電圧は、たとえば超過消去ベリファイにおける書き戻し電圧より大きい電圧である。また、制御ゲートCGに印加される電圧以外は、たとえば図5および図7において説明したデータ書き込みにおける各電圧がパルス状にメモリセルMCに印加される。この場合は、超過消去ベリファイと異なり、正常なメモリセルMCの閾値電圧と過消去ベリファイで不合格となるメモリセルMCの閾値電圧との差が小さい。このため、選択的にメモリセルMCに書き戻し電圧を印加することにより、正常なメモリセルMCの閾値電圧が上昇してしまうことを防ぐことができる(ステップS32)。   When the count value of the write-back pulse is less than or equal to m1 (NO in step S30), the sequencer 11 selects the memory cell MC whose threshold voltage is smaller than the overerase verify voltage VD among the memory cells MC to be erased. A write back voltage is selectively applied to the control gate CG. In this case, the write-back voltage is, for example, a voltage higher than the write-back voltage in the excess erase verify. Other than the voltage applied to the control gate CG, for example, each voltage in the data writing described with reference to FIGS. 5 and 7 is applied to the memory cell MC in a pulse shape. In this case, unlike the overerase verify, the difference between the threshold voltage of the normal memory cell MC and the threshold voltage of the memory cell MC that fails the overerase verify is small. For this reason, it is possible to prevent the threshold voltage of the normal memory cell MC from rising by selectively applying the write-back voltage to the memory cell MC (step S32).

ここで、m1は、半導体装置203の要求仕様に対応する値、たとえば、フラッシュメモリモジュール1に対するデータ消去時間の要求仕様に対応する値である。また、m1は、たとえば半導体装置203の外部から変更可能である。このような構成により、半導体装置203が使用される装置の仕様に応じた設定を行なうことができる。   Here, m1 is a value corresponding to the required specification of the semiconductor device 203, for example, a value corresponding to the required specification of the data erasing time for the flash memory module 1. Further, m1 can be changed from the outside of the semiconductor device 203, for example. With such a configuration, setting according to the specifications of the device in which the semiconductor device 203 is used can be performed.

また、シーケンサ11は、書き戻しパルスのカウント値がm1より大きい場合には(ステップS30でYES)、過消去エラー状態であると判断し、ステータスレジスタREGの過消去エラービットをセットし(ステップS31)、異常終了する(ステップS35)。   If the count value of the write-back pulse is greater than m1 (YES in step S30), the sequencer 11 determines that an overerased error state has occurred, and sets the overerased error bit in the status register REG (step S31). ) Ends abnormally (step S35).

シーケンサ11は、メモリセルMCに書き戻し電圧を印加した後、再びメモリセルMCの閾値電圧分布の下裾と過消去ベリファイ電圧VDとを比較する。そして、シーケンサ11は、データ消去対象のメモリセルMCの閾値電圧分布の下裾が過消去ベリファイ電圧VD以上である場合には(ステップS28でYES)、過書き戻しベリファイを行なう。すなわち、シーケンサ11は、データ消去対象である複数個のメモリセルMCの閾値電圧分布の上裾と過書き戻しベリファイ電圧とを比較する。ここで、過書き戻しベリファイ電圧は、消去ベリファイ電圧VUより大きく、かつ読み出し電圧VRより小さい電圧である。消去ベリファイ電圧VUを過書き戻しベリファイ電圧より小さくすることにより、メモリセルMCに対する書き戻しのマージンを設けることができる、すなわち、メモリセルMCに対する書き戻しによって閾値電圧が読み出し電圧VRを超えてしまうことを確実に防ぐことができる。   After applying the write-back voltage to the memory cell MC, the sequencer 11 again compares the lower skirt of the threshold voltage distribution of the memory cell MC with the overerase verify voltage VD. If the lower end of the threshold voltage distribution of the memory cell MC to be erased is equal to or higher than the overerase verify voltage VD (YES in step S28), the sequencer 11 performs overwrite back verify. That is, the sequencer 11 compares the upper threshold of the threshold voltage distribution of the plurality of memory cells MC to be erased with the overwriting verify voltage. Here, the overwriting verify voltage is a voltage larger than the erase verify voltage VU and smaller than the read voltage VR. By making the erase verify voltage VU smaller than the overwrite-back verify voltage, it is possible to provide a write-back margin for the memory cell MC, that is, the threshold voltage exceeds the read voltage VR by the write-back to the memory cell MC. Can be surely prevented.

シーケンサ11は、データ消去対象のメモリセルMCの閾値電圧分布の上裾が過書き戻しベリファイ電圧より大きい場合には(ステップS33でNO)、過書き戻しエラー状態であると判断し、ステータスレジスタREGの過書き戻しエラービットをセットし(ステップS34)、異常終了する(ステップS35)。   If the upper end of the threshold voltage distribution of the memory cell MC to be erased is greater than the overwriting back verify voltage (NO in step S33), the sequencer 11 determines that an overwriting back error state has occurred, and status register REG. The overwriting error bit is set (step S34), and the process ends abnormally (step S35).

一方、シーケンサ11は、データ消去対象のメモリセルMCの閾値電圧分布の上裾が過書き戻しベリファイ電圧以下である場合には(ステップS33でYES)、データ消去動作を正常終了する(ステップS36)。このとき、データ消去対象のメモリセルMCの閾値電圧分布はたとえば図15に示す閾値電圧分布Cのようになる。   On the other hand, the sequencer 11 normally terminates the data erasing operation when the upper end of the threshold voltage distribution of the memory cell MC to be erased is equal to or lower than the overwriting verify voltage (YES in step S33) (step S36). . At this time, the threshold voltage distribution of the memory cell MC to be erased becomes, for example, a threshold voltage distribution C shown in FIG.

一般に、フラッシュメモリモジュールでは、データ消去時、メモリセルの閾値電圧分布の上裾が、消去状態に対応する閾値電圧範囲の上限値以下に収まるまで繰り返し消去電圧が印加されるため、閾値電圧が他のメモリセルより早く閾値電圧範囲の上限値以下に収まったメモリセルに対しては、消去電圧の印加が過剰になってしまう。このため、データ消去対象のすべてのメモリセルの閾値電圧が、消去状態に対応する閾値電圧範囲の上限値以下に収まった時点において閾値電圧が極端に小さくなったメモリセルが存在し、結果的にメモリセルの閾値電圧分布が広範囲になってしまう。   Generally, in a flash memory module, when erasing data, an erase voltage is repeatedly applied until the upper skirt of the threshold voltage distribution of the memory cell falls below the upper limit value of the threshold voltage range corresponding to the erased state. The erase voltage is excessively applied to the memory cells that are earlier than the upper limit value of the threshold voltage range earlier than the first memory cell. For this reason, there is a memory cell in which the threshold voltage becomes extremely small when the threshold voltage of all the memory cells to be erased falls below the upper limit value of the threshold voltage range corresponding to the erased state. The threshold voltage distribution of the memory cell becomes wide.

閾値電圧が極端に小さくなったメモリセルは、書き戻しに要する時間がかなり長くなってしまう。また、閾値電圧が極端に小さくなったメモリセルは、電子の注入および放出が過剰に行われるために劣化が早く、信頼性の低下につながる。したがって、データ消去に長時間を要することとなり、データ消去時間が要求仕様を満たさなくなってしまう。   A memory cell whose threshold voltage has become extremely small takes a considerably long time to write back. In addition, a memory cell having an extremely small threshold voltage is rapidly deteriorated because electrons are excessively injected and emitted, leading to a decrease in reliability. Therefore, it takes a long time to erase the data, and the data erasing time does not satisfy the required specification.

ここで、本発明の第3の実施の形態に係る半導体装置では、消去ベリファイにおいて、メモリセルMCに消去電圧を印加するたびに、過消去ベリファイで用いる過消去ベリファイ電圧VDより小さい超過消去ベリファイ電圧VNとメモリセルMCの閾値電圧とを比較する超過消去ベリファイを行なう。そして、閾値電圧が超過消去ベリファイ電圧VNより小さいメモリセルが存在する場合には、過消去ベリファイ電圧VDよりも小さく、かつ超過消去ベリファイ電圧VNより大きい書き戻し電圧をメモリセルMCに印加する。このように、消去電圧と書き戻し電圧とを交互にメモリセルに印加することにより、メモリセルの閾値電圧分布が狭くなるようにデータ消去を行なうことが可能になる。したがって、本発明の第3の実施の形態に係る半導体装置では、メモリセルの閾値電圧分布が広範囲になることを防ぐことにより、データ消去時間の増大を防ぐことができる。また、メモリセルの劣化を防ぐことにより、メモリセルの信頼性を向上することができる。   Here, in the semiconductor device according to the third embodiment of the present invention, every time the erase voltage is applied to the memory cell MC in the erase verify, the excess erase verify voltage smaller than the overerase verify voltage VD used in the overerase verify. Overerase verification is performed to compare VN with the threshold voltage of the memory cell MC. If there is a memory cell whose threshold voltage is smaller than the overerase verify voltage VN, a write-back voltage smaller than the overerase verify voltage VD and greater than the overerase verify voltage VN is applied to the memory cell MC. Thus, by erasing the erasing voltage and the write back voltage alternately to the memory cell, it is possible to erase the data so that the threshold voltage distribution of the memory cell becomes narrow. Therefore, in the semiconductor device according to the third embodiment of the present invention, it is possible to prevent an increase in data erasing time by preventing the threshold voltage distribution of the memory cells from becoming wide. In addition, the reliability of the memory cell can be improved by preventing the deterioration of the memory cell.

なお、本発明の第3の実施の形態に係るフラッシュメモリモジュールにおけるメモリセルは、図2および図3に示す構成に限定されるものではなく、閾値電圧の相違を利用してデータを不揮発的に記憶するメモリセルであれば本発明を適用することが可能である。   Note that the memory cell in the flash memory module according to the third embodiment of the present invention is not limited to the configuration shown in FIGS. 2 and 3, and the data is stored in a non-volatile manner using the difference in threshold voltage. The present invention can be applied to any memory cell that stores data.

次に、本発明の他の実施の形態について図面を用いて説明する。なお、図中同一または相当部分には同一符号を付してその説明は繰り返さない。   Next, another embodiment of the present invention will be described with reference to the drawings. In the drawings, the same or corresponding parts are denoted by the same reference numerals and description thereof will not be repeated.

<第4の実施の形態>
本実施の形態は、第1の実施の形態に係る半導体装置と比べてメモリセルにおけるショートを検出する機能を追加した半導体装置に関する。以下で説明する内容以外は第1の実施の形態に係る半導体装置と同様である。
<Fourth embodiment>
The present embodiment relates to a semiconductor device to which a function of detecting a short circuit in a memory cell is added as compared with the semiconductor device according to the first embodiment. The contents other than those described below are the same as those of the semiconductor device according to the first embodiment.

図16は、本発明の第4の実施の形態に係る半導体装置204におけるメモリセル等の構成を概略的に示す図である。図16は、図3に示す構成において、ワード線WLと、メインビット線MBLと、サブビット線SBL_Rと、サブビット線SBL_Pと、ソース線SLと、選択ゲート線SG_Rと、選択ゲート線SG_Pと、選択トランジスタTRS_Rと、選択トランジスタTRS_Pと、メモリセルトランジスタTRAおよびTRBとを代表的に示している。また、半導体装置204におけるシーケンサ11は、判定回路21を含む。判定回路21は、センスアンプ7からソース線SLへ流れる電流に基づいて、メモリセルトランジスタTRAのドレインおよびメモリセルトランジスタTRBのドレイン間のショートの有無を検出する。   FIG. 16 is a diagram schematically showing a configuration of memory cells and the like in the semiconductor device 204 according to the fourth embodiment of the present invention. FIG. 16 shows a configuration in which the word line WL, the main bit line MBL, the sub bit line SBL_R, the sub bit line SBL_P, the source line SL, the selection gate line SG_R, and the selection gate line SG_P are selected in the configuration shown in FIG. A transistor TRS_R, a selection transistor TRS_P, and memory cell transistors TRA and TRB are representatively shown. Further, the sequencer 11 in the semiconductor device 204 includes a determination circuit 21. The determination circuit 21 detects the presence or absence of a short circuit between the drain of the memory cell transistor TRA and the drain of the memory cell transistor TRB based on the current flowing from the sense amplifier 7 to the source line SL.

シーケンサ11は、メモリセルの閾値電圧試験Aを行なう。すなわち、シーケンサ11は、選択トランジスタTRS_Rをオン状態とし、選択トランジスタTRS_Pをオフ状態とする。そして、シーケンサ11は、ワード線WLを介してメモリセルトランジスタTRAおよびTRBの制御ゲートCGに供給する読み出し電圧を所定範囲で変化させる。また、制御ゲートCGに印加される電圧以外は、たとえば図5および図6において説明したデータ読み出しにおける各電圧がメモリセルMCに印加される。そして、シーケンサ11は、メモリセルMCを通して電流が流れるか否かをセンスアンプ7で判定することにより、読み出し電圧の変化範囲の各電圧値におけるメモリセルの閾値電圧分布を取得する。取得された閾値電圧分布は、シーケンサ11から半導体装置204外部のテスターに転送され、テスターに保存される。テスターは、保存している閾値電圧分布を表示し、また、保存している閾値電圧分布をログファイルとして他の装置に出力する。   The sequencer 11 performs a threshold voltage test A of the memory cell. That is, the sequencer 11 turns on the selection transistor TRS_R and turns off the selection transistor TRS_P. Then, the sequencer 11 changes the read voltage supplied to the control gates CG of the memory cell transistors TRA and TRB through the word line WL within a predetermined range. Other than the voltage applied to the control gate CG, for example, each voltage in the data read described with reference to FIGS. 5 and 6 is applied to the memory cell MC. Then, the sequencer 11 determines whether or not a current flows through the memory cell MC by the sense amplifier 7, thereby acquiring a threshold voltage distribution of the memory cell at each voltage value in the read voltage change range. The acquired threshold voltage distribution is transferred from the sequencer 11 to a tester outside the semiconductor device 204 and stored in the tester. The tester displays the stored threshold voltage distribution, and outputs the stored threshold voltage distribution to another device as a log file.

図16は、サブビット線SBL_Rおよびサブビット線SBL_P間、すなわちメモリセルトランジスタTRAのドレインおよびメモリセルトランジスタTRBのドレイン間がショートしていない場合を示している。すなわち、センスアンプ7から供給される電流I1は、メインビット線MBL、選択トランジスタTRS_R、サブビット線SBL_RおよびメモリセルトランジスタTRAを介してソース線SLへ流れる。   FIG. 16 shows a case where the sub bit line SBL_R and the sub bit line SBL_P, that is, the drain of the memory cell transistor TRA and the drain of the memory cell transistor TRB are not short-circuited. That is, the current I1 supplied from the sense amplifier 7 flows to the source line SL via the main bit line MBL, the selection transistor TRS_R, the sub bit line SBL_R, and the memory cell transistor TRA.

図17は、メモリセルの閾値電圧試験Aにおいて、メモリセルトランジスタTRAのドレインおよびメモリセルトランジスタTRBのドレイン間がショートしている場合における電流経路を示す図である。   FIG. 17 is a diagram showing a current path when the drain of the memory cell transistor TRA and the drain of the memory cell transistor TRB are short-circuited in the threshold voltage test A of the memory cell.

図17を参照して、抵抗SRは、ショートしているメモリセルトランジスタTRAのドレインおよびメモリセルトランジスタTRBのドレイン間の抵抗である。   Referring to FIG. 17, resistance SR is a resistance between the drain of memory cell transistor TRA that is short-circuited and the drain of memory cell transistor TRB.

まず、センスアンプ7から供給される電流I2は、メインビット線MBL、選択トランジスタTRS_R、サブビット線SBL_RおよびメモリセルトランジスタTRAを介してソース線SLへ流れる。   First, the current I2 supplied from the sense amplifier 7 flows to the source line SL via the main bit line MBL, the selection transistor TRS_R, the sub bit line SBL_R, and the memory cell transistor TRA.

ここで、メモリセルトランジスタTRBの制御ゲートCGは、メモリセルトランジスタTRAの制御ゲートCGと結合されているため、メモリセルトランジスタTRBの制御ゲートCGには、メモリセルトランジスタTRAの制御ゲートCGに印加される読み出し電圧と同じ電圧が印加される。したがって、メモリセルトランジスタTRAを介した電流経路に加えて、センスアンプ7から供給される電流I2は、メインビット線MBL、選択トランジスタTRS_R、サブビット線SBL_R、サブビット線SBL_PおよびメモリセルトランジスタTRBを介してソース線SLへ流れる。したがって、電流I2の電流値は電流I1の略2倍になる。   Here, since the control gate CG of the memory cell transistor TRB is coupled to the control gate CG of the memory cell transistor TRA, the control gate CG of the memory cell transistor TRB is applied to the control gate CG of the memory cell transistor TRA. The same voltage as the read voltage is applied. Therefore, in addition to the current path through the memory cell transistor TRA, the current I2 supplied from the sense amplifier 7 passes through the main bit line MBL, the selection transistor TRS_R, the sub bit line SBL_R, the sub bit line SBL_P, and the memory cell transistor TRB. It flows to the source line SL. Therefore, the current value of the current I2 is approximately twice that of the current I1.

ところで、メモリセルトランジスタTRAのドレインおよびメモリセルトランジスタTRBのドレイン間がショートしている場合であっても、メモリセルに対するデータ書き込み、データ読み出しおよびデータ消去を行なうことは可能である。しかしながら、このようなショートが生じている場合には、データ読み出しおよびデータ書き込みを別々のチャネルで行なうことができなくなってしまう。すなわち、データ読み出し用のメモリセルトランジスタTRAにおいてデータ書き換えによる電子のトラップおよび相互コンダクタンスの劣化が生じるため、データ書き換えの繰り返しによってメモリセルの閾値電圧が下がりにくくなる。したがって、データ消去時間が増大してしまう。また、メモリセルトランジスタTRAのドレインおよびメモリセルトランジスタTRBのドレイン間がショートしている場合であっても、メモリセルに対するデータ書き込み、データ読み出しおよびデータ消去を行なうことは可能であることから、メモリセルに対するデータ書き込み、データ読み出しおよびデータ消去を行なう通常の試験では、このようなショート状態を検出することができず、半導体装置が出荷されてからデータ消去時間の増大が生じる可能性がある。   Incidentally, even when the drain of the memory cell transistor TRA and the drain of the memory cell transistor TRB are short-circuited, it is possible to perform data writing, data reading and data erasing with respect to the memory cell. However, when such a short circuit occurs, data reading and data writing cannot be performed on separate channels. That is, in the memory cell transistor TRA for reading data, electron traps and mutual conductance are deteriorated due to data rewriting, and therefore, the threshold voltage of the memory cell is hardly lowered by repeated data rewriting. Therefore, the data erasing time increases. Further, even when the drain of the memory cell transistor TRA and the drain of the memory cell transistor TRB are short-circuited, it is possible to perform data writing, data reading and data erasing with respect to the memory cell. In a normal test in which data writing, data reading and data erasing are performed, such a short state cannot be detected, and the data erasing time may increase after the semiconductor device is shipped.

そこで、本発明の第4の実施の形態に係る半導体装置204では、以下のようなメモリセルの閾値電圧試験Bを行なう。   Therefore, in the semiconductor device 204 according to the fourth embodiment of the present invention, the following threshold voltage test B of the memory cell is performed.

図18は、メモリセルの閾値電圧試験Bにおける電流経路を示す図である。
シーケンサ11は、メモリセルの閾値電圧試験Bを行なう。すなわち、シーケンサ11は、選択トランジスタTRS_Rをオン状態とし、選択トランジスタTRS_Pをオン状態とする。そして、シーケンサ11は、ワード線WLを介してメモリセルトランジスタTRAおよびTRBの制御ゲートCGに供給する読み出し電圧を所定範囲で変化させる。また、制御ゲートCGに印加される電圧以外は、たとえば図5および図6において説明したデータ読み出しにおける各電圧がメモリセルMCに印加される。そして、シーケンサ11は、メモリセルMCを通して電流が流れるか否かをセンスアンプ7で判定することにより、読み出し電圧の変化範囲の各電圧値におけるメモリセルの閾値電圧分布を取得する。
FIG. 18 is a diagram showing a current path in the threshold voltage test B of the memory cell.
The sequencer 11 performs a threshold voltage test B of the memory cell. That is, the sequencer 11 turns on the selection transistor TRS_R and turns on the selection transistor TRS_P. Then, the sequencer 11 changes the read voltage supplied to the control gates CG of the memory cell transistors TRA and TRB through the word line WL within a predetermined range. Other than the voltage applied to the control gate CG, for example, each voltage in the data read described with reference to FIGS. 5 and 6 is applied to the memory cell MC. Then, the sequencer 11 determines whether or not a current flows through the memory cell MC by the sense amplifier 7, thereby acquiring a threshold voltage distribution of the memory cell at each voltage value in the read voltage change range.

センスアンプ7から供給される電流I3は、メインビット線MBL、選択トランジスタTRS_R、サブビット線SBL_RおよびメモリセルトランジスタTRAを介してソース線SLへ流れる。また、センスアンプ7から供給される電流I3は、メインビット線MBL、選択トランジスタTRS_P、サブビット線SBL_PおよびメモリセルトランジスタTRBを介してソース線SLへ流れる。すなわち、メモリセルトランジスタTRAのドレインおよびメモリセルトランジスタTRBのドレイン間のショートの有無に関わらず、電流I3の電流値は電流I1の略2倍になる。   The current I3 supplied from the sense amplifier 7 flows to the source line SL via the main bit line MBL, the selection transistor TRS_R, the sub bit line SBL_R, and the memory cell transistor TRA. The current I3 supplied from the sense amplifier 7 flows to the source line SL via the main bit line MBL, the selection transistor TRS_P, the sub bit line SBL_P, and the memory cell transistor TRB. That is, the current value of the current I3 is approximately twice the current I1 regardless of whether or not there is a short circuit between the drain of the memory cell transistor TRA and the drain of the memory cell transistor TRB.

図19は、メモリセルトランジスタTRAのドレインおよびメモリセルトランジスタTRBのドレイン間がショートしていない場合の、メモリセルの閾値電圧試験AおよびBの各々において取得されるメモリセルの閾値電圧分布を示す図である。   FIG. 19 is a diagram showing the threshold voltage distribution of the memory cell obtained in each of the threshold voltage tests A and B of the memory cell when the drain of the memory cell transistor TRA and the drain of the memory cell transistor TRB are not short-circuited. It is.

図19を参照して、メモリセルの閾値電圧試験Aにおいて取得されるメモリセルの閾値電圧分布Aとメモリセルの閾値電圧試験Bにおいて取得されるメモリセルの閾値電圧分布Bとは大きく異なる。これは、前述のようにメモリセルの閾値電圧試験Bにおいてセンスアンプ7からソース線SLへ流れる電流はメモリセルの閾値電圧試験Aと比べて略2倍になる。このため、メモリセルの閾値電圧試験Bの方がメモリセルの閾値電圧試験Aと比べてセンスアンプ7およびシーケンサ11が認識するメモリセルの閾値電圧が小さくなるからである。   Referring to FIG. 19, the threshold voltage distribution A of the memory cell acquired in the threshold voltage test A of the memory cell and the threshold voltage distribution B of the memory cell acquired in the threshold voltage test B of the memory cell are greatly different. As described above, in the threshold voltage test B of the memory cell, the current flowing from the sense amplifier 7 to the source line SL is approximately twice that of the threshold voltage test A of the memory cell. For this reason, the threshold voltage of the memory cell recognized by the sense amplifier 7 and the sequencer 11 is smaller in the threshold voltage test B of the memory cell than in the threshold voltage test A of the memory cell.

図20は、メモリセルトランジスタTRAのドレインおよびメモリセルトランジスタTRBのドレイン間がショートしている場合の、メモリセルの閾値電圧試験AおよびBの各々において取得されるメモリセルの閾値電圧分布を示す図である。   FIG. 20 is a diagram showing the threshold voltage distribution of the memory cell acquired in each of the threshold voltage tests A and B of the memory cell when the drain of the memory cell transistor TRA and the drain of the memory cell transistor TRB are short-circuited. It is.

図20を参照して、メモリセルの閾値電圧試験Aにおいて取得されるメモリセルの閾値電圧分布Aとメモリセルの閾値電圧試験Bにおいて取得されるメモリセルの閾値電圧分布Bとは略同じである。これは、前述のようにメモリセルの閾値電圧試験Aにおいてもセンスアンプ7からソース線SLへ流れる電流が、メモリセルトランジスタTRAのドレインおよびメモリセルトランジスタTRBのドレイン間がショートしていない場合と比べて略2倍になる。このため、メモリセルの閾値電圧試験AおよびBにおいてセンスアンプ7およびシーケンサ11が認識するメモリセルの閾値電圧が略同じになるからである。   Referring to FIG. 20, the threshold voltage distribution A of the memory cell acquired in the threshold voltage test A of the memory cell and the threshold voltage distribution B of the memory cell acquired in the threshold voltage test B of the memory cell are substantially the same. . This is because the current flowing from the sense amplifier 7 to the source line SL also in the threshold voltage test A of the memory cell as described above is not short-circuited between the drain of the memory cell transistor TRA and the drain of the memory cell transistor TRB. Almost double. For this reason, the threshold voltages of the memory cells recognized by the sense amplifier 7 and the sequencer 11 in the threshold voltage tests A and B of the memory cells are substantially the same.

判定回路21は、メモリセルの閾値電圧試験Aおよびメモリセルの閾値電圧試験Bの各々においてセンスアンプ7からソース線SLへ流れる電流を比較し、両者の差が所定値以下である場合にはメモリセルトランジスタTRAのドレインおよびメモリセルトランジスタTRBのドレイン間がショートしていると判断する。   The determination circuit 21 compares the current flowing from the sense amplifier 7 to the source line SL in each of the threshold voltage test A of the memory cell and the threshold voltage test B of the memory cell, and if the difference between the two is less than a predetermined value, the memory It is determined that the drain of the cell transistor TRA and the drain of the memory cell transistor TRB are short-circuited.

本発明の第4の実施の形態に係る半導体装置では、以上のような構成により、メモリセルトランジスタTRAのドレインおよびメモリセルトランジスタTRBのドレイン間のショートの有無を検出することができる。したがって、本発明の第4の実施の形態に係る半導体装置では、データ書き換えの繰り返しによってメモリセルの閾値電圧が下がりにくくなることを防ぐことができるため、データ消去時間の増大を防ぐことができる。   In the semiconductor device according to the fourth embodiment of the present invention, the presence / absence of a short circuit between the drain of the memory cell transistor TRA and the drain of the memory cell transistor TRB can be detected by the configuration as described above. Therefore, in the semiconductor device according to the fourth embodiment of the present invention, it is possible to prevent the threshold voltage of the memory cell from becoming difficult to decrease due to repeated data rewriting, and thus it is possible to prevent an increase in data erasing time.

なお、本発明の第4の実施の形態に係る半導体装置では、メモリセルは、メモリセルトランジスタTRAおよびメモリセルトランジスタTRBを含む構成であるとしたが、これに限定するものではない。メモリセルは3チャネル型、すなわちデータ消去用のメモリセルトランジスタをさらに含む構成であってもよい。   In the semiconductor device according to the fourth embodiment of the present invention, the memory cell includes the memory cell transistor TRA and the memory cell transistor TRB. However, the present invention is not limited to this. The memory cell may be a three-channel type, that is, a configuration further including a memory cell transistor for erasing data.

次に、本発明の他の実施の形態について図面を用いて説明する。なお、図中同一または相当部分には同一符号を付してその説明は繰り返さない。   Next, another embodiment of the present invention will be described with reference to the drawings. In the drawings, the same or corresponding parts are denoted by the same reference numerals and description thereof will not be repeated.

<第5の実施の形態>
本実施の形態は、第1の実施の形態に係る半導体装置と比べてメモリセルにおけるショートを検出する機能を追加した半導体装置に関する。以下で説明する内容以外は第1の実施の形態に係る半導体装置と同様である。
<Fifth embodiment>
The present embodiment relates to a semiconductor device to which a function of detecting a short circuit in a memory cell is added as compared with the semiconductor device according to the first embodiment. The contents other than those described below are the same as those of the semiconductor device according to the first embodiment.

図21は、本発明の第5の実施の形態に係る半導体装置205におけるメモリセル等の構成を概略的に示す図である。   FIG. 21 is a diagram schematically showing a configuration of memory cells and the like in the semiconductor device 205 according to the fifth embodiment of the present invention.

図21を参照して、半導体装置205は、第1の実施の形態に係る半導体装置と比べて、2個のメモリセルごとに1個のバイパストランジスタTRBYをさらに備える。すなわち、半導体装置205は、メモリセルMC11およびMC12と、選択トランジスタTRS_R1およびTRS_R2と、選択トランジスタTRS_P1およびTRS_P2と、バイパストランジスタTRBYと、ワード線WLと、メインビット線MBL0およびMBL1と、サブビット線SBL_R1およびSBL_R2と、サブビット線SBL_P1およびSBL_P2と、ソース線SLと、選択ゲート線SG_RおよびSG_Pとを含む。メモリセルMC11は、メモリセルトランジスタTRA1およびTRB1を含む。メモリセルMC12は、メモリセルトランジスタTRA2およびTRB2を含む。   Referring to FIG. 21, semiconductor device 205 further includes one bypass transistor TRBY for every two memory cells, as compared with the semiconductor device according to the first embodiment. That is, the semiconductor device 205 includes memory cells MC11 and MC12, select transistors TRS_R1 and TRS_R2, select transistors TRS_P1 and TRS_P2, bypass transistor TRBY, word line WL, main bit lines MBL0 and MBL1, and sub bit lines SBL_R1 and SBL_R2, sub-bit lines SBL_P1 and SBL_P2, source line SL, and select gate lines SG_R and SG_P are included. Memory cell MC11 includes memory cell transistors TRA1 and TRB1. Memory cell MC12 includes memory cell transistors TRA2 and TRB2.

バイパストランジスタTRBYは、たとえばNチャネルMOSトランジスタであり、メモリセルトランジスタTRB1のドレインに接続されるドレインと、メモリセルトランジスタTRA2のドレインに接続されるソースと、ゲートとを有する。   Bypass transistor TRBY is, for example, an N-channel MOS transistor, and has a drain connected to the drain of memory cell transistor TRB1, a source connected to the drain of memory cell transistor TRA2, and a gate.

バイパストランジスタTRBYは、メモリセルトランジスタTRB1のドレインおよびメモリセルトランジスタTRA2のドレイン間の導通および非導通を切り替える。   The bypass transistor TRBY switches between conduction and non-conduction between the drain of the memory cell transistor TRB1 and the drain of the memory cell transistor TRA2.

半導体装置205におけるシーケンサ11は、メモリセルのショート試験を行なう。すなわち、シーケンサ11は、選択トランジスタTRS_R1およびTRS_R2、ならびにバイパストランジスタTRBYをオン状態とし、選択トランジスタTRS_P1およびTRS_P2をオフ状態とする。また、シーケンサ11は、メモリセルトランジスタTRA1、TRA2、TRB1およびTRB2をオフ状態とする。そして、シーケンサ11は、メモリセルトランジスタTRA1のドレインに電源電圧VDDを供給し、メモリセルトランジスタTRA2のドレインに接地電圧VSSを供給する。すなわち、シーケンサ11は、メインビット線MBL0に電源電圧VDDを供給し、メインビット線MBL1に接地電圧VSSを供給する。   The sequencer 11 in the semiconductor device 205 performs a memory cell short test. That is, the sequencer 11 turns on the selection transistors TRS_R1 and TRS_R2 and the bypass transistor TRBY, and turns off the selection transistors TRS_P1 and TRS_P2. The sequencer 11 turns off the memory cell transistors TRA1, TRA2, TRB1, and TRB2. Then, the sequencer 11 supplies the power supply voltage VDD to the drain of the memory cell transistor TRA1, and supplies the ground voltage VSS to the drain of the memory cell transistor TRA2. That is, the sequencer 11 supplies the power supply voltage VDD to the main bit line MBL0 and supplies the ground voltage VSS to the main bit line MBL1.

そして、シーケンサ11は、メモリセルトランジスタTRA1のドレインおよびメモリセルトランジスタTRA2のドレイン間に流れる電流を検出する。より詳細には、シーケンサ11は、センスアンプ7からメインビット線MBL0を介してメインビット線MBL1へ流れる電流をセンスアンプ7によって検出する。   Then, the sequencer 11 detects a current flowing between the drain of the memory cell transistor TRA1 and the drain of the memory cell transistor TRA2. More specifically, the sequencer 11 detects the current flowing from the sense amplifier 7 to the main bit line MBL1 via the main bit line MBL0 by the sense amplifier 7.

メモリセルトランジスタTRA1のドレインおよびメモリセルトランジスタTRB1のドレイン間がショートしている場合には、図21に示すようにセンスアンプ7からメインビット線MBL0を介してメインビット線MBL1へ電流が流れる。   When the drain of the memory cell transistor TRA1 and the drain of the memory cell transistor TRB1 are short-circuited, current flows from the sense amplifier 7 to the main bit line MBL1 via the main bit line MBL0 as shown in FIG.

シーケンサ11は、センスアンプ7からメインビット線MBL0を介してメインビット線MBL1へ流れる電流が所定値以上である場合には、メモリセルトランジスタTRA1のドレインおよびメモリセルトランジスタTRB1のドレイン間がショートしていると判断する。   When the current flowing from the sense amplifier 7 to the main bit line MBL1 through the main bit line MBL0 is equal to or greater than a predetermined value, the sequencer 11 shorts between the drain of the memory cell transistor TRA1 and the drain of the memory cell transistor TRB1. Judge that

本発明の第4の実施の形態において説明したように、メモリセルトランジスタTRA1のドレインおよびメモリセルトランジスタTRB1のドレイン間がショートしている場合には、データ読み出しおよびデータ書き込みを別々のチャネルで行なうことができなくなってしまう。すなわち、データ読み出し用のメモリセルトランジスタTRAにおいてデータ書き換えによる電子のトラップおよび相互コンダクタンスの劣化が生じるため、データ書き換えの繰り返しによってメモリセルの閾値電圧が下がりにくくなる。したがって、データ消去時間が増大してしまう。また、メモリセルトランジスタTRA1のドレインおよびメモリセルトランジスタTRB1のドレイン間がショートしている場合であっても、メモリセルに対するデータ書き込み、データ読み出しおよびデータ消去を行なうことは可能であることから、メモリセルに対するデータ書き込み、データ読み出しおよびデータ消去を行なう通常の試験では、このようなショート状態を検出することができず、半導体装置が出荷されてからデータ消去時間の増大が生じる可能性がある。   As described in the fourth embodiment of the present invention, when the drain of the memory cell transistor TRA1 and the drain of the memory cell transistor TRB1 are short-circuited, data reading and data writing are performed on separate channels. Will not be able to. That is, in the memory cell transistor TRA for reading data, electron traps and mutual conductance are deteriorated due to data rewriting, and therefore, the threshold voltage of the memory cell is hardly lowered by repeated data rewriting. Therefore, the data erasing time increases. Further, even when the drain of the memory cell transistor TRA1 and the drain of the memory cell transistor TRB1 are short-circuited, it is possible to perform data writing, data reading and data erasing with respect to the memory cell. In a normal test in which data writing, data reading and data erasing are performed, such a short state cannot be detected, and the data erasing time may increase after the semiconductor device is shipped.

しかしながら、本発明の第5の実施の形態に係る半導体装置では、以上のような構成により、メモリセルトランジスタTRA1のドレインおよびメモリセルトランジスタTRB1のドレイン間のショートの有無を検出することができる。したがって、本発明の第5の実施の形態に係る半導体装置では、データ書き換えの繰り返しによってメモリセルの閾値電圧が下がりにくくなることを防ぐことができるため、データ消去時間の増大を防ぐことができる。   However, in the semiconductor device according to the fifth embodiment of the present invention, the presence / absence of a short circuit between the drain of the memory cell transistor TRA1 and the drain of the memory cell transistor TRB1 can be detected by the configuration as described above. Therefore, in the semiconductor device according to the fifth embodiment of the present invention, it is possible to prevent the threshold voltage of the memory cell from becoming difficult to decrease due to repeated data rewriting, and thus it is possible to prevent an increase in data erasing time.

なお、本発明の第5の実施の形態に係る半導体装置では、たとえばメモリセルMC11は、メモリセルトランジスタTRA1およびメモリセルトランジスタTRB1を含む構成であるとしたが、これに限定するものではない。メモリセルは3チャネル型、すなわちデータ消去用のメモリセルトランジスタをさらに含む構成であってもよい。   In the semiconductor device according to the fifth embodiment of the present invention, for example, the memory cell MC11 includes the memory cell transistor TRA1 and the memory cell transistor TRB1, but the present invention is not limited to this. The memory cell may be a three-channel type, that is, a configuration further including a memory cell transistor for erasing data.

今回開示された実施の形態はすべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上記した説明ではなくて特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。   The embodiment disclosed this time should be considered as illustrative in all points and not restrictive. The scope of the present invention is defined by the terms of the claims, rather than the description above, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.

1,103〜107 フラッシュメモリモジュール、2 メモリマット、3 ロウ/コラムプリデコーダ/バンクデコーダ、4 ロウデコーダ/選択ゲート(SG)デコーダ、5 Yデコーダ、6 Yゲート/ビット線リセット回路、7 センスアンプ、8 書込ドライバ、9 ソース線/Pウェル/ボトムNウェルドライバ、21 判定回路、101 SRAM、102 CPU、201A,201B,202〜205 半導体装置、BUSHL,BUSHU 高速バス、BUSL 低速バス、MB メモリブロック、MC,MC0,MC11,MC12 メモリセル、MBL,MBL0,MBL1 メインビット線、SG_R1,SG_R2,SG_P1,SG_P2 選択ゲート線、SBL_R1,SBL_R2,SBL_P1,SBL_P2 サブビット線、SL ソース線、WL ワード線、TRS_R1,TRS_R2,TRS_P1,TRS_P2 選択トランジスタ、TRA,TRB,TRA1,TRB1,TRA2,TRB2 メモリセルトランジスタ、TRBY バイパストランジスタ、FG 浮遊ゲート、CG 制御ゲート、PW Pウェル、NW ボトムNウェル、D ダイオード、SUB p−型基板、DR1,DR2,DR5,DR6 n+型拡散領域、DR3,DR4 p+型拡散領域。   1, 103 to 107 Flash memory module, 2 memory mat, 3 row / column predecoder / bank decoder, 4 row decoder / select gate (SG) decoder, 5 Y decoder, 6 Y gate / bit line reset circuit, 7 sense amplifier , 8 Write driver, 9 Source line / P well / Bottom N well driver, 21 Judgment circuit, 101 SRAM, 102 CPU, 201A, 201B, 202 to 205 Semiconductor device, BUSHL, BUSHU high-speed bus, BUSL low-speed bus, MB memory Block, MC, MC0, MC11, MC12 Memory cell, MBL, MBL0, MBL1 Main bit line, SG_R1, SG_R2, SG_P1, SG_P2 Select gate line, SBL_R1, SBL_R2, SBL_P1, SBL_P2 Sub Bit line, SL source line, WL word line, TRS_R1, TRS_R2, TRS_P1, TRS_P2 selection transistor, TRA, TRB, TRA1, TRB1, TRA2, TRB2 memory cell transistor, TRBY bypass transistor, FG floating gate, CG control gate, PWP Well, NW bottom N well, D diode, SUB p-type substrate, DR1, DR2, DR5, DR6 n + type diffusion region, DR3, DR4 p + type diffusion region.

Claims (4)

データを不揮発的に記憶する半導体装置であって、
浮遊ゲートと、制御ゲートと、第1導通電極と、第2導通電極とを有する第1のトランジスタと、
前記第1のトランジスタと共通の浮遊ゲートと、前記第1のトランジスタの制御ゲートに結合される制御ゲートと、第1導通電極と、前記第1のトランジスタの第2導通電極に結合される第2導通電極とを有する第2のトランジスタと、
前記第1のトランジスタの第1導通電極および前記第2のトランジスタの第1導通電極の両方に第1の電圧を供給し、かつ前記第1のトランジスタおよび前記第2のトランジスタの第2導通電極に前記第1の電圧と異なる第2の電圧を供給した場合において前記第1のトランジスタおよび前記第2のトランジスタの第1導通電極と前記第1のトランジスタおよび前記第2のトランジスタの第2導通電極との間に流れる第1の電流と、前記第1のトランジスタの第1導通電極および前記第2のトランジスタの第1導通電極のいずれか一方に前記第1の電圧を供給し、かつ前記第1のトランジスタおよび前記第2のトランジスタの第2導通電極に前記第2の電圧を供給した場合において前記第1のトランジスタおよび前記第2のトランジスタの第1導通電極と前記第1のトランジスタおよび前記第2のトランジスタの第2導通電極との間に流れる第2の電流とを比較し、前記比較結果に基づいて前記第1のトランジスタの第1導通電極および前記第2のトランジスタの第1導通電極間のショートの有無を検出する制御回路とを備える半導体装置。
A semiconductor device for storing data in a nonvolatile manner,
A first transistor having a floating gate, a control gate, a first conduction electrode, and a second conduction electrode;
A floating gate shared with the first transistor, a control gate coupled to the control gate of the first transistor, a first conduction electrode, and a second coupled to the second conduction electrode of the first transistor. A second transistor having a conductive electrode;
Supplying a first voltage to both the first conduction electrode of the first transistor and the first conduction electrode of the second transistor, and to the second conduction electrode of the first transistor and the second transistor; When a second voltage different from the first voltage is supplied, a first conduction electrode of the first transistor and the second transistor, a second conduction electrode of the first transistor and the second transistor, A first current flowing between the first transistor and the first conduction electrode of the first transistor and the first conduction electrode of the second transistor, and the first voltage In the case where the second voltage is supplied to the transistor and the second conduction electrode of the second transistor, the first transistor and the second transistor A second current flowing between the conduction electrode and the second conduction electrode of the first transistor and the second transistor; and based on the comparison result, the first conduction electrode of the first transistor and A semiconductor device comprising: a control circuit that detects the presence or absence of a short circuit between the first conductive electrodes of the second transistor.
前記制御回路は、前記第1の電流と前記第2の電流との差が所定値以下である場合には、前記第1のトランジスタの第1導通電極および前記第2のトランジスタの第1導通電極間がショートしていると判断する請求項1記載の半導体装置。   When the difference between the first current and the second current is equal to or less than a predetermined value, the control circuit includes a first conduction electrode of the first transistor and a first conduction electrode of the second transistor. The semiconductor device according to claim 1, wherein the semiconductor device is determined to be short-circuited. データを不揮発的に記憶する半導体装置であって、
浮遊ゲートと、制御ゲートと、第1導通電極と、第2導通電極とを有する第1のトランジスタと、
前記第1のトランジスタと共通の浮遊ゲートと、前記第1のトランジスタの制御ゲートに結合される制御ゲートと、第1導通電極と、前記第1のトランジスタの第2導通電極に結合される第2導通電極とを有する第2のトランジスタと、
浮遊ゲートと、制御ゲートと、第1導通電極と、第2導通電極とを有する第3のトランジスタと、
前記第3のトランジスタと共通の浮遊ゲートと、前記第3のトランジスタの制御ゲートに結合される制御ゲートと、第1導通電極と、前記第3のトランジスタの第2導通電極に結合される第2導通電極とを有する第4のトランジスタと、
前記第2のトランジスタの第1導通電極および前記第3のトランジスタの第1導通電極間の導通および非導通を切り替える第5のトランジスタとを備える半導体装置。
A semiconductor device for storing data in a nonvolatile manner,
A first transistor having a floating gate, a control gate, a first conduction electrode, and a second conduction electrode;
A floating gate shared with the first transistor, a control gate coupled to the control gate of the first transistor, a first conduction electrode, and a second coupled to the second conduction electrode of the first transistor. A second transistor having a conductive electrode;
A third transistor having a floating gate, a control gate, a first conduction electrode, and a second conduction electrode;
A floating gate common to the third transistor, a control gate coupled to the control gate of the third transistor, a first conduction electrode, and a second conduction electrode coupled to the second conduction electrode of the third transistor. A fourth transistor having a conductive electrode;
A semiconductor device comprising: a fifth transistor that switches between conduction and non-conduction between a first conduction electrode of the second transistor and a first conduction electrode of the third transistor.
前記半導体装置は、さらに、
前記第1のトランジスタ、前記第2のトランジスタ、前記第3のトランジスタおよび前記第4のトランジスタをオフ状態とし、前記第5のトランジスタをオン状態とし、前記第1のトランジスタの第1導通電極に第1の電圧を供給し、前記第3のトランジスタの第1導通電極に前記第1の電圧と異なる第2の電圧を供給し、前記第1のトランジスタの第1導通電極および前記第3のトランジスタの第1導通電極間に流れる電流に基づいて前記第1のトランジスタの第1導通電極および前記第2のトランジスタの第1導通電極間のショートの有無を検出する制御回路を備える請求項3記載の半導体装置。
The semiconductor device further includes:
The first transistor, the second transistor, the third transistor, and the fourth transistor are turned off, the fifth transistor is turned on, and a first conductive electrode of the first transistor is connected to the first conduction electrode. 1, a second voltage different from the first voltage is supplied to the first conduction electrode of the third transistor, and the first conduction electrode of the first transistor and the third transistor 4. The semiconductor according to claim 3, further comprising a control circuit that detects the presence or absence of a short circuit between the first conduction electrode of the first transistor and the first conduction electrode of the second transistor based on a current flowing between the first conduction electrodes. apparatus.
JP2012163839A 2012-07-24 2012-07-24 Semiconductor device Expired - Fee Related JP5301020B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012163839A JP5301020B2 (en) 2012-07-24 2012-07-24 Semiconductor device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012163839A JP5301020B2 (en) 2012-07-24 2012-07-24 Semiconductor device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2007099567A Division JP2008257804A (en) 2007-04-05 2007-04-05 Semiconductor device

Publications (2)

Publication Number Publication Date
JP2012230758A true JP2012230758A (en) 2012-11-22
JP5301020B2 JP5301020B2 (en) 2013-09-25

Family

ID=47432160

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012163839A Expired - Fee Related JP5301020B2 (en) 2012-07-24 2012-07-24 Semiconductor device

Country Status (1)

Country Link
JP (1) JP5301020B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012198988A (en) * 2012-07-24 2012-10-18 Renesas Electronics Corp Semiconductor device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60246099A (en) * 1984-05-07 1985-12-05 ドイチエ・アイテイーテイー・インダストリーズ・ゲゼルシヤフト・ミト・ベシユレンクタ・ハフツンク Semiconductor floating gate memory cell
JPS63150959A (en) * 1986-12-15 1988-06-23 Nec Corp Eprom device
JP2005025800A (en) * 2003-06-30 2005-01-27 Fasl Japan 株式会社 Semiconductor memory
JP2007280446A (en) * 2006-04-03 2007-10-25 Toshiba Nanoanalysis Corp Fault location specifying device of memory cell array part

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60246099A (en) * 1984-05-07 1985-12-05 ドイチエ・アイテイーテイー・インダストリーズ・ゲゼルシヤフト・ミト・ベシユレンクタ・ハフツンク Semiconductor floating gate memory cell
JPS63150959A (en) * 1986-12-15 1988-06-23 Nec Corp Eprom device
JP2005025800A (en) * 2003-06-30 2005-01-27 Fasl Japan 株式会社 Semiconductor memory
JP2007280446A (en) * 2006-04-03 2007-10-25 Toshiba Nanoanalysis Corp Fault location specifying device of memory cell array part

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012198988A (en) * 2012-07-24 2012-10-18 Renesas Electronics Corp Semiconductor device

Also Published As

Publication number Publication date
JP5301020B2 (en) 2013-09-25

Similar Documents

Publication Publication Date Title
JP5106817B2 (en) Flash memory device capable of improving reliability
CN103477392B (en) There is nonvolatile memory and the method for the programming of the improvement of the checking of minimizing
US7362610B1 (en) Programming method for non-volatile memory and non-volatile memory-based programmable logic device
JP4901348B2 (en) Semiconductor memory device and control method thereof
TWI402849B (en) System and method for controlling a memory
US7800946B2 (en) Flash memory device and operating method thereof
US8717821B2 (en) Nonvolatile memory device and method of programming the same
JP2008047273A (en) Semiconductor storage device and its control method
US8947958B2 (en) Latent slow bit detection for non-volatile memory
JP2009266349A (en) Nonvolatile semiconductor memory device
US9269446B1 (en) Methods to improve programming of slow cells
JP4249352B2 (en) Nonvolatile semiconductor memory device
US7948797B2 (en) Nonvolatile semiconductor memory device and method for operating the same
TWI521520B (en) Nonvolatile semiconductor memory device and its reading method
JP2007207343A (en) Nonvolatile semiconductor storage device
KR20070062924A (en) Threshold value read method of nonvolatile semiconductor memory device and nonvolatile semiconductor memory device
JP2012048770A (en) Nonvolatile semiconductor storage device, and memory system
US7796441B2 (en) Method of reading configuration data in flash memory device
US9564219B2 (en) Current based detection and recording of memory hole-interconnect spacing defects
KR101985952B1 (en) Nonvolatile memory device and method for driving the nonvolatile memory device
JP4209219B2 (en) Nonvolatile semiconductor memory device, memory device, and defective memory element detection and repair method
US7558126B2 (en) Nonvolatile semiconductor memory device
JP2001093287A (en) Nonvolatile semiconductor memory
KR20070057716A (en) Programming method of flash memory apparatus having a multi level cell
JP5301020B2 (en) Semiconductor device

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130122

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130321

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130604

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130618

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees