JPH0955091A - Flash memory device - Google Patents

Flash memory device

Info

Publication number
JPH0955091A
JPH0955091A JP20071995A JP20071995A JPH0955091A JP H0955091 A JPH0955091 A JP H0955091A JP 20071995 A JP20071995 A JP 20071995A JP 20071995 A JP20071995 A JP 20071995A JP H0955091 A JPH0955091 A JP H0955091A
Authority
JP
Japan
Prior art keywords
circuit
address
data
buffer
flash memory
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.)
Withdrawn
Application number
JP20071995A
Other languages
Japanese (ja)
Inventor
Kazuyuki Takiguchi
和幸 滝口
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP20071995A priority Critical patent/JPH0955091A/en
Publication of JPH0955091A publication Critical patent/JPH0955091A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Memory System (AREA)
  • Memory System Of A Hierarchy Structure (AREA)
  • Read Only Memory (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an efficient and economical flash memory device by temporarily storing data to be written in a flash memory until fixed quantity can be obtained and reducing the frequency of writing data in a flash memory. SOLUTION: When a data writing in a flash memory is requested from a main device 11 to a flash memory device 5, the address of a region to be written and new data are temporarily stored in a buffer circuit 3 by the control of a transfer control circuit 4. At a point of time when fixed new data is stored in the buffer circuit 3, the data is transferred to a buffer memory circuit 2. The buffer memory circuit 2 arranges data for a writing form for the flash memory, and transfers data to the flash memory circuit 1. Thereby, the frequency of writing data in the flash memory can be reduced, change interval of a flash memory element is extended, and a whole processing time for writing data can be shortened.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、フラッシュメモリ
素子で構成され、補助記憶装置として用いられるフラッ
シュメモリ装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a flash memory device composed of a flash memory device and used as an auxiliary storage device.

【0002】データ処理を行う本体装置は、高速でデー
タを処理する中央処理装置と、処理に必要なデータを中
央処理装置に供給し、また中央処理装置から出力される
処理結果を保持する主記憶装置から構成される。
A main unit for processing data is a central processing unit that processes data at high speed, a main memory that supplies data necessary for processing to the central processing unit, and holds processing results output from the central processing unit. Composed of devices.

【0003】主記憶装置は中央処理装置の処理速度に追
随して動作する必要があるため、一般的に動作速度が速
く任意のアドレスで読み書き出来る比較的安価なダイナ
ミックメモリ素子(以下、「DRAM」と略す)や、高
価ではあるがリフレッシュ処理が不要なスタティックメ
モリ素子(以下、「SRAM」と略す)等のランダムア
クセスメモリ素子(以下、「RAM」と略す)を用いて
構成される。
Since the main memory is required to operate following the processing speed of the central processing unit, it is generally relatively fast and relatively inexpensive dynamic memory device (hereinafter referred to as "DRAM") capable of reading and writing at any address. Or a random access memory element (hereinafter abbreviated as “RAM”) such as a static memory element (hereinafter abbreviated as “SRAM”) that is expensive but does not require refresh processing.

【0004】これらのRAMは電源の供給が途絶えると
保持するデータを喪失する揮発性の記憶素子であるた
め、保存する必要があるデータは磁気ディスクや磁気テ
ープ等の非揮発性の記憶媒体に保存し格納している。
Since these RAMs are volatile storage elements that lose the data they hold when the power supply is cut off, the data that needs to be stored is stored in a non-volatile storage medium such as a magnetic disk or magnetic tape. Then stored.

【0005】しかしながらこれらの記憶媒体に記録する
ためには振動に弱い、機械的に動作する駆動装置が必要
なため、振動する環境下では非揮発性のフラッシュメモ
リ素子を用いたフラッシュメモリ装置が補助記憶装置と
して用いられる。
However, in order to record on these storage media, a drive device that is weak against vibration and operates mechanically is required. Therefore, in a vibrating environment, a flash memory device using a non-volatile flash memory device is auxiliary. Used as a storage device.

【0006】ところが、フラッシュメモリ素子はデータ
を書き込む前に一旦チップ全体を一括して消去する必要
があり、消去に要する所要時間が長く(例えば、0.3
s)、データの読み出し時間(例えば、200ns)に比
して書込み時間が長く(例えば、6μs)、書込み回数
に制限があるという特徴があるため効率的なメモリ制御
が必要である。
However, in the flash memory device, it is necessary to once erase the entire chip at once before writing data, and the time required for the erase is long (for example, 0.3.
s), the writing time is longer (for example, 6 μs) than the data reading time (for example, 200 ns), and the number of times of writing is limited, so that efficient memory control is required.

【0007】[0007]

【従来の技術】図11は従来例の構成図であり、図12
は従来例のフローチャートである。従来例について図1
1,図12を参照しながら説明する。尚、以下の説明に
おいて同一部分または相当部分については同一符号を付
す。
2. Description of the Related Art FIG. 11 is a block diagram of a conventional example.
Is a flowchart of a conventional example. Figure 1 for a conventional example
1, with reference to FIG. In the following description, the same parts or corresponding parts are denoted by the same reference numerals.

【0008】図11において、1はフラッシュメモリ回
路であり、2はバッファメモリ回路であり、4’は転送
制御回路であり、5’はフラッシュメモリ装置であり、
6はデータ線であり、7及び9は制御線であり、8及び
10はアドレス線であり、11は本体装置である。
In FIG. 11, 1 is a flash memory circuit, 2 is a buffer memory circuit, 4'is a transfer control circuit, 5'is a flash memory device,
6 is a data line, 7 and 9 are control lines, 8 and 10 are address lines, and 11 is a main unit.

【0009】フラッシュメモリ回路1はnワードを1ブ
ロックとするmブロックのフラッシュメモリ素子で構成
される記憶回路であって、データ線6を介してバッファ
メモリ回路2と本体装置11とに接続され、アドレス線
10及び制御線9を介して転送制御回路4’に接続さ
れ、前記転送制御回路4’の制御により格納されている
データがブロック単位で消去され、個別アドレスの単位
で読み出し、書込みがなされる記憶回路である。
The flash memory circuit 1 is a memory circuit composed of m blocks of flash memory elements each having n words as one block, and is connected to the buffer memory circuit 2 and the main body device 11 via a data line 6. It is connected to the transfer control circuit 4'through the address line 10 and the control line 9, and the data stored under the control of the transfer control circuit 4'is erased in block units, and read and write are performed in individual address units. Memory circuit.

【0010】バッファメモリ回路2は、フラッシュメモ
リ回路1とワード構成が等しく、フラッシュメモリ回路
1の1ブロック分に相当するワード数を持つRAMで構
成される記憶回路であって、データ線6を介してフラッ
シュメモリ回路1と本体装置11とに接続され、制御線
9及びアドレス線10を介して転送制御回路4’に接続
され、前記転送制御回路4’の制御により個別アドレス
の単位で読み出し、書込みがなされる記憶回路である。
The buffer memory circuit 2 is a memory circuit having the same word configuration as that of the flash memory circuit 1 and having a number of words corresponding to one block of the flash memory circuit 1. Is connected to the flash memory circuit 1 and the main body device 11 and is connected to the transfer control circuit 4'via the control line 9 and the address line 10, and is read and written in the unit of individual address under the control of the transfer control circuit 4 '. It is a memory circuit in which

【0011】転送制御回路4’は、制御線7及びアドレ
ス線8を介して本体装置11に接続され、制御線9を介
してフラッシュメモリ回路1とバッファメモリ回路2と
に接続され、アドレス線10を介してフラッシュメモリ
回路1とバッファメモリ回路2とに接続され、本体装置
11からの要求を受けフラッシュメモリ回路1の消去,
読み出し,書込みを制御し、バッファメモリ回路2の読
み出し,書込みを制御する転送制御回路である。
The transfer control circuit 4'is connected to the main body device 11 via a control line 7 and an address line 8, is connected to the flash memory circuit 1 and the buffer memory circuit 2 via a control line 9, and is connected to the address line 10. Is connected to the flash memory circuit 1 and the buffer memory circuit 2 via the, and receives a request from the main body device 11 to erase the flash memory circuit 1.
A transfer control circuit that controls reading and writing and controls reading and writing of the buffer memory circuit 2.

【0012】フラッシュメモリ装置5’は、データ線
6,制御線7及びアドレス線8を介して本体装置11と
接続され、フラッシュメモリ回路1とバッファメモリ回
路2と転送制御回路4’とから構成される記憶装置であ
る。
The flash memory device 5'is connected to the main body device 11 via a data line 6, a control line 7 and an address line 8 and is composed of a flash memory circuit 1, a buffer memory circuit 2 and a transfer control circuit 4 '. It is a storage device.

【0013】本体装置11は、データ線6,制御線7及
びアドレス線8を介してフラッシュメモリ装置5’と接
続され、フラッシュメモリ装置5’からデータを読み出
して処理を行い、処理結果をフラッシュメモリ装置5’
に格納する処理装置である。
The main body device 11 is connected to the flash memory device 5'via the data line 6, the control line 7 and the address line 8, reads data from the flash memory device 5 ', performs processing, and outputs the processing result to the flash memory device. Device 5 '
It is a processing device for storing in.

【0014】本体装置11からフラッシュメモリ装置
5’に対しデータ書込みが要求されると、該要求は転送
制御回路4’により受け付けられる。ステップS1で
は、フラッシュメモリ回路1の、本体装置11の指定す
るアドレス(以下、「フラッシュアドレス」と略す)の
ブロック指定部(以下、「ブロックアドレス」と略す)
で指定される1ブロック分の領域のデータが、転送制御
回路4’により、バッファメモリ回路2に順次転送され
る。
When data writing is requested from the main body device 11 to the flash memory device 5 ', the request is accepted by the transfer control circuit 4'. In step S1, a block designation section (hereinafter abbreviated as "block address") of an address designated by the main body device 11 (hereinafter abbreviated as "flash address") in the flash memory circuit 1
The data of the area for one block designated by is transferred to the buffer memory circuit 2 by the transfer control circuit 4 '.

【0015】ステップS2では、フラッシュメモリ回路
1のブロックアドレスで指定される1ブロック分の領域
が、転送制御回路4’により消去される。ステップS3
では、バッファメモリ回路2の、フラッシュアドレスの
ワード指定部(以下、「ワードアドレス」と略す)で指
定される領域に、本体装置11から転送された新データ
が、転送制御回路4’により書き込まれる。
In step S2, the area of one block designated by the block address of the flash memory circuit 1 is erased by the transfer control circuit 4 '. Step S3
Then, the new data transferred from the main body device 11 is written by the transfer control circuit 4'in the area of the buffer memory circuit 2 designated by the word designating section of the flash address (hereinafter, abbreviated as "word address"). .

【0016】ステップS4では、フラッシュメモリ回路
1のブロックアドレスで指定される領域に、バッファメ
モリ回路2のデータが、転送制御回路4’によりワード
アドレスの順に転送される。
In step S4, the data of the buffer memory circuit 2 is transferred to the area designated by the block address of the flash memory circuit 1 by the transfer control circuit 4'in the order of the word address.

【0017】本体装置11からフラッシュメモリ装置
5’に対し読み出しが要求されると該要求は転送制御回
路4’により受け付けられ、フラッシュメモリ回路1の
フラッシュアドレスで指定される領域からデータが読み
出される。
When a read request is issued from the main body device 11 to the flash memory device 5 ', the request is accepted by the transfer control circuit 4', and data is read from the area designated by the flash address of the flash memory circuit 1.

【0018】[0018]

【発明が解決しようとする課題】フラッシュメモリ素子
を用いた記憶回路は、書込みに先立ち必須とされる消去
所要時間も、書込み所要時間も長く、書込みのため他の
処理を長時間中断しなければならないと言う問題があっ
た。
A storage circuit using a flash memory device has a long erasing time required before writing and a long writing time, and other processing must be interrupted for a long time before writing. There was a problem saying

【0019】また、チップ単位で消去されるためデータ
を一旦退避し再書込みする必要があり、書込み頻度が高
いと短期間でチップの書込み制限回数をオーバし、フラ
ッシュメモリ素子を交換しなければならなくなるという
問題があった。
Further, since data is erased in units of chips, it is necessary to save data once and rewrite it. If the writing frequency is high, the number of writing restrictions of the chip is exceeded in a short period and the flash memory element must be replaced. There was a problem of disappearing.

【0020】本発明は、フラッシュメモリ回路に書き込
むデータを一定量に達するまで一旦蓄積し、しかるのち
フラッシュメモリ回路にデータを書き込むことにより、
効率的かつ経済的なフラッシュメモリ装置を提供するこ
とを目的とする。
According to the present invention, the data to be written in the flash memory circuit is temporarily stored until it reaches a certain amount, and then the data is written in the flash memory circuit.
It is an object to provide an efficient and economical flash memory device.

【0021】[0021]

【課題を解決するための手段】図1は、本発明の原理図
である。図1において、1はフラッシュメモリ回路であ
り、2はバッファメモリ回路であり、3はバッファ回路
であり、4は転送制御回路であり、5はフラッシュメモ
リ装置であり、6はデータ線であり、7及び9は制御線
であり、8及び10はアドレス線であり、11は本体装
置である。
FIG. 1 is a diagram illustrating the principle of the present invention. In FIG. 1, 1 is a flash memory circuit, 2 is a buffer memory circuit, 3 is a buffer circuit, 4 is a transfer control circuit, 5 is a flash memory device, 6 is a data line, Reference numerals 7 and 9 are control lines, 8 and 10 are address lines, and 11 is a main unit.

【0022】バッファ回路3はバッファアドレスで指定
された領域に、ブロックアドレスとワードアドレスと新
データとフラグとに区分されたバッファデータが格納さ
れ、データ線6を介してバッファメモリ回路2と本体装
置11とに接続され、制御線9及びアドレス線10を介
して転送制御回路4に接続され、前記転送制御回路4に
より、個別アドレスの単位で読み出し,書込みがなされ
る記憶回路である。
In the buffer circuit 3, buffer data divided into a block address, a word address, new data and a flag is stored in an area designated by a buffer address, and the buffer memory circuit 2 and the main unit are connected via a data line 6. 11 is a storage circuit which is connected to 11 and is connected to the transfer control circuit 4 through the control line 9 and the address line 10 and is read and written by the transfer control circuit 4 in units of individual addresses.

【0023】転送制御回路4は制御線7及びアドレス線
8を介して本体装置11に接続され、制御線9を介して
フラッシュメモリ回路1とバッファメモリ回路2とバッ
ファ回路3とに接続され、アドレス線10を介してフラ
ッシュメモリ回路1とバッファメモリ回路2とバッファ
回路3とに接続され、本体装置11からの要求を受け、
フラッシュメモリ回路1の消去,読み出し,書込みを制
御し、バッファメモリ回路2の読み出し,書込みを制御
し、バッファ回路3の読み出し,書込みを制御する転送
制御回路である。
The transfer control circuit 4 is connected to the main body device 11 via the control line 7 and the address line 8, and is connected to the flash memory circuit 1, the buffer memory circuit 2 and the buffer circuit 3 via the control line 9, and the address It is connected to the flash memory circuit 1, the buffer memory circuit 2, and the buffer circuit 3 via a line 10, receives a request from the main body device 11,
A transfer control circuit that controls erasing, reading, and writing of the flash memory circuit 1, controls reading and writing of the buffer memory circuit 2, and controls reading and writing of the buffer circuit 3.

【0024】フラッシュメモリ装置5はデータ線6,制
御線7及びアドレス線8を介して本体装置11と接続さ
れ、フラッシュメモリ回路1とバッファメモリ回路2と
バッファ回路3と転送制御回路4とから構成される記憶
装置である。
The flash memory device 5 is connected to the main body device 11 via a data line 6, a control line 7 and an address line 8 and is composed of a flash memory circuit 1, a buffer memory circuit 2, a buffer circuit 3 and a transfer control circuit 4. It is a storage device.

【0025】図1を参照しながら本発明の原理を説明す
る。本体装置11からフラッシュアドレスで指定される
領域への新データの書込みが要求されると、該要求は転
送制御回路4で受け付けられる。
The principle of the present invention will be described with reference to FIG. When the main body device 11 requests writing of new data to the area specified by the flash address, the request is accepted by the transfer control circuit 4.

【0026】次いで、バッファアドレスが順次変更され
てバッファ回路3からバッファデータが読み出され、前
記領域への新データの書込みが該要求に先立ちなされて
いたか否かが検索される。
Next, the buffer address is sequentially changed, the buffer data is read from the buffer circuit 3, and it is searched whether or not the writing of the new data to the area has been performed prior to the request.

【0027】即ち、バッファ回路3のバッファアドレス
で指定される領域が読み出され、該領域に格納されてい
るブロックアドレスとワードアドレスとを連結したアド
レス(以下、「書込みアドレス」と略す)と図示されな
い表示子(以下、「フラグ」と言う)とが参照され、該
書込みアドレスと該フラッシュアドレスとが一致し、フ
ラグがオンの場合は該要求に先立ち該フラッシュアドレ
スで指定される領域への新データの書込みが要求されて
いたと判断され、該バッファアドレスで指定される領域
に新データが格納され、該書込みアドレスと該フラッシ
ュアドレスとが一致し、フラグがオフの場合は該フラッ
シュアドレスで指定される領域への新データの書込みが
要求されていなかったと判断され、該バッファアドレス
で指定される領域に新データが格納され、フラグがオン
にされ、フラグがオフの領域が読み出されると、その都
度図示されない管理回路に空き領域として該領域を示す
バッファアドレスを格納し、該書込みアドレスのブロッ
クアドレスと該フラッシュアドレスのブロックアドレス
とが一致し、フラグがオンの領域が読み出されると、該
ブロックアドレスで示される領域へ書き込む新データが
読み出されたとして、その都度図示されない読出語数の
管理回路に+1され、バッファ回路3から1語読み出さ
れる度にバッファアドレスが+1され、該フラッシュア
ドレスと一致する書込みアドレスの格納された領域が検
出され該新データが書き込まれるか、読み出し語数のカ
ウント値が図示されない新データの総書込語数を管理す
る管理回路の示す値+1を越え、空き領域に該新データ
が書き込まれるまで繰り返される。
That is, an area designated by the buffer address of the buffer circuit 3 is read out, and an address (hereinafter abbreviated as "write address") connecting the block address and the word address stored in the area is illustrated. An indicator (hereinafter referred to as “flag”) that is not stored is referred to, and when the write address and the flash address match and the flag is on, a new area is specified in the area specified by the flash address prior to the request. When it is determined that the data writing is requested, new data is stored in the area specified by the buffer address, the write address and the flash address match, and when the flag is off, the data is specified by the flash address. The area specified by the buffer address is judged to have not been requested to write new data to the area When new data is stored, the flag is turned on, and the area in which the flag is off is read, a buffer address indicating the area is stored as an empty area in the management circuit (not shown) each time, and the block address of the write address and the When the block address of the flash address matches and the area in which the flag is turned on is read, it is considered that new data to be written in the area indicated by the block address is read, and the management circuit for the number of read words (not shown) increments by 1 each time. , Every time one word is read from the buffer circuit 3, the buffer address is incremented by 1, a region where a write address matching the flash address is stored and the new data is written, or the count value of the number of read words is not shown. The value exceeds the value indicated by the management circuit that manages the total number of data write words + 1 and is empty. It repeated until 該新 data is written in the area.

【0028】本体装置11から書込みが要求される度
に、総書込語数が一定量以上になるまでフラッシュアド
レスと新データをバッファ回路3へ書き込む処理が繰り
返され、総書込語数が一定量を越えると転送制御回路4
によりアドレス毎の書込語数が比較され、バッファ回路
に書き込まれている新データの語数の最も多いブロック
を転送対象ブロックとして、バッファ回路3からバッフ
ァメモリ回路2への転送処理が行われる。
Each time writing is requested from the main unit 11, the process of writing the flash address and the new data to the buffer circuit 3 is repeated until the total number of written words becomes a certain amount or more, and the total number of written words becomes a certain amount. Transfer control circuit 4 when exceeded
Thus, the number of write words for each address is compared, and the transfer processing from the buffer circuit 3 to the buffer memory circuit 2 is performed with the block having the largest number of new data words written in the buffer circuit as the transfer target block.

【0029】転送処理では、先ず、フラッシュメモリ回
路1の転送対象ブロックに該当する領域が消去される。
次に、転送対象ブロックの書込語数が転送語数として設
定され、バッファアドレスが0に設定される。
In the transfer process, first, the area corresponding to the transfer target block of the flash memory circuit 1 is erased.
Next, the number of write words in the transfer target block is set as the number of transfer words, and the buffer address is set to 0.

【0030】そしてバッファ回路3の該バッファアドレ
スで指定される領域からバッファデータが読み出され、
書込みアドレスが該フラッシュアドレスと一致しフラグ
がオンのバッファデータが検索される。
Then, the buffer data is read from the area designated by the buffer address of the buffer circuit 3,
Buffer data in which the write address matches the flash address and the flag is ON is searched.

【0031】書込みアドレスが該フラッシュアドレスと
一致しフラグがオンのバッファデーータが検出される
と、該バッファデータ中の新データが、バッファメモリ
回路2の、該バッファデータ中のワードアドレスで指定
される領域に書き込まれ、転送語数が−1される。
When the write data matches the flash address and the buffer data whose flag is on is detected, the new data in the buffer data is designated by the word address in the buffer data of the buffer memory circuit 2. Is written in the area, and the number of transfer words is decremented by one.

【0032】バッファ回路3からバッファメモリ回路2
への新データの転送は、バッファアドレスを+1しなが
ら転送語数が0となるまで繰り返される。次に、転送対
象ブロックのブロックアドレスが転送アドレスとして設
定され、バッファメモリ回路2からフラッシュメモリ回
路1の転送アドレスで指定される領域に、ワードアドレ
スの順にデータが転送される。
From the buffer circuit 3 to the buffer memory circuit 2
The transfer of new data to is repeated while incrementing the buffer address by 1 until the number of transfer words becomes 0. Next, the block address of the transfer target block is set as the transfer address, and the data is transferred from the buffer memory circuit 2 to the area designated by the transfer address of the flash memory circuit 1 in the order of the word address.

【0033】書込み処理は最終ワードが転送された時点
で完了する。本体装置11からフラッシュアドレスを指
定し、データ読み出しが要求されると、該要求は転送制
御回路4で受け付けられる。
The writing process is completed when the final word is transferred. When a flash address is designated from the main body device 11 and data reading is requested, the request is accepted by the transfer control circuit 4.

【0034】次いで、該フラッシュアドレスの新データ
が格納されているか否かを確認するためのバッファ回路
3の検索がバッファアドレスを順次変更しながら行われ
る。バッファ回路3のバッファアドレスで指定される領
域が読み出され、該領域に格納されている書込みアドレ
スとフラグとが参照され、該書込みアドレスと該フラッ
シュアドレスが一致しフラグがオンのバッファデータが
検出されると、該バッファデータ中の新データがデータ
線6を介して本体装置11に転送され、該書込みアドレ
スと該フラッシュアドレスとが一致しなかった場合に
は、図示されない管理回路に転送先ブロックアドレスと
して保持されている転送アドレスと該フラッシュアドレ
スのブロックアドレスとが比較され、一致する場合はバ
ッファメモリ回路2の該フラッシュアドレスのワードア
ドレスで指定される領域から新データが読み出されデー
タ線6を介して本体装置11に転送され、一致しなかっ
た場合には、フラッシュメモリ回路1の該フラッシュア
ドレスで指定される領域からデータが読み出され、デー
タ線6を介して本体装置11に転送される。
Next, the search of the buffer circuit 3 for confirming whether the new data of the flash address is stored is performed while sequentially changing the buffer address. The area specified by the buffer address of the buffer circuit 3 is read, the write address and the flag stored in the area are referred to, and the write address and the flash address match and the flag-on buffer data is detected. Then, the new data in the buffer data is transferred to the main body device 11 via the data line 6, and if the write address and the flash address do not match, the transfer destination block is transferred to the management circuit (not shown). The transfer address held as the address is compared with the block address of the flash address. If they match, new data is read from the area designated by the word address of the flash address of the buffer memory circuit 2, and the data line 6 is read. It is transferred to the main unit 11 via the Data is read from the area specified by said flash address memory circuit 1 is transferred to the main unit 11 via the data line 6.

【0035】[0035]

【発明の実施の形態】図2は本発明の1実施例構成図で
あり、図3は本発明の1実施例語数管理回路構成図であ
り、図4は本発明の1実施例バッファ回路構成図であ
り、図5は本発明の1実施例バッファメモリ回路構成図
である。
2 is a block diagram of an embodiment of the present invention, FIG. 3 is a block diagram of a word number management circuit of an embodiment of the present invention, and FIG. 4 is a buffer circuit configuration of an embodiment of the present invention. FIG. 5 is a configuration diagram of a buffer memory circuit according to an embodiment of the present invention.

【0036】図2において、40は制御回路であり、4
1はアドレス回路であり、42は語数管理回路であり、
43は転送語数回路であり、44は空領域回路であり、
45は総書込語数回路であり、46は転送アドレス回路
であり、47は読出語数回路であり、48は最多ブロッ
ク回路であり、49は最多語数回路であって、制御回路
40とアドレス回路41と語数管理回路42と転送語数
回路43と空領域回路44と総書込語数回路45と転送
アドレス回路46と読出語数回路47と最多ブロック回
路48と最多語数回路49とで転送制御回路4を構成し
ている。
In FIG. 2, reference numeral 40 denotes a control circuit, which is 4
1 is an address circuit, 42 is a word number management circuit,
43 is a transfer word number circuit, 44 is an empty area circuit,
Reference numeral 45 is a total write word number circuit, 46 is a transfer address circuit, 47 is a read word number circuit, 48 is a most block circuit, 49 is a most word number circuit, and a control circuit 40 and an address circuit 41 are provided. The transfer control circuit 4 is composed of the word count management circuit 42, the transfer word count circuit 43, the empty area circuit 44, the total write word count circuit 45, the transfer address circuit 46, the read word count circuit 47, the most block circuit 48, and the most word count circuit 49. are doing.

【0037】制御回路40は、本体装置11と制御線7
を介して接続され、フラッシュメモリ回路1とバッファ
メモリ回路2とバッファ回路3とアドレス回路41と語
数管理回路42と転送語数回路43と空領域回路44と
総書込語数回路45と転送アドレス回路46と読出語数
回路47と最多ブロック回路48と最多語数回路49と
に制御線9を介して接続され、本体装置11からの要求
を受け、本体装置11とバッファ回路3とバッファメモ
リ回路2とフラッシュメモリ回路1との間のデータ転送
を制御する制御回路である。
The control circuit 40 includes the main unit 11 and the control line 7.
The flash memory circuit 1, the buffer memory circuit 2, the buffer circuit 3, the address circuit 41, the word number management circuit 42, the transfer word number circuit 43, the empty area circuit 44, the total write word number circuit 45, and the transfer address circuit 46. Is connected to the read word number circuit 47, the most block circuit 48, and the most word number circuit 49 via the control line 9, receives a request from the main body device 11, and receives the main body device 11, the buffer circuit 3, the buffer memory circuit 2, and the flash memory. The control circuit controls data transfer with the circuit 1.

【0038】アドレス回路41は、本体装置11とアド
レス線8を介して接続され、フラッシュメモリ回路1と
バッファメモリ回路2とバッファ回路3とにアドレス線
10を介して接続され、本体装置11から指定されたア
ドレスをフラッシュメモリ回路1とバッファメモリ回路
2とバッファ回路3とに転送するアドレス回路である。
The address circuit 41 is connected to the main body device 11 via the address line 8, is connected to the flash memory circuit 1, the buffer memory circuit 2 and the buffer circuit 3 via the address line 10, and is designated by the main body device 11. It is an address circuit that transfers the generated address to the flash memory circuit 1, the buffer memory circuit 2, and the buffer circuit 3.

【0039】語数管理回路42は、制御回路40に制御
線9を介して接続され、フラグがオンとなっているバッ
ファデータの数を書込語数としてブロック単位で管理す
る管理回路である。
The word number management circuit 42 is a management circuit which is connected to the control circuit 40 through the control line 9 and manages the number of buffer data whose flag is turned on as the number of write words in block units.

【0040】転送語数回路43は、制御回路40に制御
線9を介して接続され、転送対象ブロックの書込語数が
設定され、バッファ回路3からバッファメモリ回路2に
新データが転送される度に−1されるカウント回路であ
る。
The transfer word number circuit 43 is connected to the control circuit 40 via the control line 9, sets the number of write words of the transfer target block, and transfers new data from the buffer circuit 3 to the buffer memory circuit 2 each time. It is a count circuit that is decremented by one.

【0041】空領域回路44は、制御回路40に制御線
9を介して接続され、バッファ回路3の、新データの書
き込まれていない領域のバッファアドレスが格納され、
バッファ回路3の新たな領域に新データを書き込む必要
が生じた際に書込み先の領域を示すアドレスとして使用
されるものである。
The empty area circuit 44 is connected to the control circuit 40 via the control line 9, and stores the buffer address of the area of the buffer circuit 3 in which new data is not written.
It is used as an address indicating a write destination area when new data needs to be written in a new area of the buffer circuit 3.

【0042】総書込語数回路45は、制御回路40に制
御線9を介して接続され、バッファ回路3に蓄積されて
いる新データの総和、即ち、語数管理回路42にブロッ
ク単位で管理されている書込語数の総和を管理する管理
回路である。
The total write word number circuit 45 is connected to the control circuit 40 via the control line 9, and is managed by the word number management circuit 42 in units of blocks, that is, the total sum of the new data accumulated in the buffer circuit 3. This is a management circuit that manages the total number of write words.

【0043】転送アドレス回路46は、制御回路40に
制御線9を介して接続され、バッファメモリ回路2に保
持されているデータの書込み先ブロックアドレスが保持
される保持回路である。
The transfer address circuit 46 is a holding circuit which is connected to the control circuit 40 via the control line 9 and holds the write destination block address of the data held in the buffer memory circuit 2.

【0044】読出語数回路47は、制御回路40に制御
線9を介して接続され、バッファ回路3から読み出され
た新データの数をカウントする回路である。最多ブロッ
ク回路48は、制御回路40に制御線9を介して接続さ
れ、書込語数の最も多いブロックのブロックアドレスを
管理する管理回路である。
The read word number circuit 47 is a circuit which is connected to the control circuit 40 via the control line 9 and counts the number of new data read from the buffer circuit 3. The most block circuit 48 is a management circuit which is connected to the control circuit 40 via the control line 9 and manages the block address of the block having the largest number of write words.

【0045】最多語数回路49は、制御回路40に制御
線9を介して接続され、最も多い書込語数を管理する管
理回路である。図6は本発明の1実施例書込みフローチ
ャート(その1)であり、図7は本発明の1実施例書込
みフローチャート(その2)であり、図8は本発明の1
実施例書込みフローチャート(その3)である。
The maximum number-of-words circuit 49 is a management circuit which is connected to the control circuit 40 via the control line 9 and manages the maximum number of written words. FIG. 6 is a flowchart (No. 1) of writing one embodiment of the present invention, FIG. 7 is a flowchart (No. 2) of writing one embodiment of the present invention, and FIG. 8 is a flowchart of No. 1 of the present invention.
It is an Example writing flowchart (the 3).

【0046】フラッシュメモリ装置5に本体装置11か
ら書込み要求があった場合の処理について図6,図7,
図8を参照しながら説明する。本体装置11からフラッ
シュアドレスを指定し、新データの書込みが要求される
と、該要求は転送制御回路4で受け付けられる。
Regarding processing when there is a write request from the main body device 11 to the flash memory device 5, FIG. 6, FIG.
This will be described with reference to FIG. When a flash address is designated from the main body device 11 and a request for writing new data is made, the request is accepted by the transfer control circuit 4.

【0047】ステップS1では、制御回路40によりア
ドレス回路41にバッファアドレス0が設定され、読出
語数回路47に読出語数0が設定される。ステップS2
では、制御回路40により総書込語数回路45から読み
出された総書込語数に+1された値が求められ読出語数
と比較される。
In step S1, the control circuit 40 sets the buffer address 0 in the address circuit 41 and the read word number circuit 47 in the read word number 0. Step S2
Then, a value obtained by adding +1 to the total number of written words read from the total number of written words circuit 45 is obtained by the control circuit 40 and compared with the number of read words.

【0048】読出語数が該総書込語数に+1された値を
越えた場合は、バッファ回路3の全てのバッファデータ
の中に同一フラッシュアドレスで指定されるデータが無
く、新たに新データを蓄積する領域を検出したものとし
てステップS9に進む。
When the number of read words exceeds the value obtained by adding 1 to the total number of write words, there is no data designated by the same flash address in all the buffer data of the buffer circuit 3, and new data is newly stored. Assuming that the region to be detected is detected, the process proceeds to step S9.

【0049】読出語数が該総書込語数に+1された値以
下の場合は、バッファ回路3の検索を継続するためステ
ップS3に進む。ステップS3では、制御回路40によ
りバッファ回路3のバッファアドレスで指定される領域
から、バッファデータが読み出される。
If the number of read words is less than the value obtained by adding 1 to the total number of write words, the process proceeds to step S3 to continue the search of the buffer circuit 3. In step S3, the control circuit 40 reads the buffer data from the area designated by the buffer address of the buffer circuit 3.

【0050】ステップS4では、制御回路40により書
込みアドレスと該フラッシュアドレスとが比較され、異
なる場合は同一フラッシュアドレスで指定されるデータ
が無いと判断されステップS5に進み、一致する場合は
ステップS8に進む。
In step S4, the write address and the flash address are compared by the control circuit 40. If they are different, it is determined that there is no data designated by the same flash address, and the process proceeds to step S5. If they match, the process proceeds to step S8. move on.

【0051】ステップS5では、制御回路40により該
バッファデータ中のフラグがチェックされ、オンの場合
は新データがあると判断されステップS7に進み、オフ
の場合は過去に該フラッシュアドレスが使われたが現在
は未使用であると判断されステップS6に進む。
In step S5, the control circuit 40 checks the flag in the buffer data. If it is on, it is determined that there is new data, and the process proceeds to step S7. If it is off, the flash address has been used in the past. Is determined to be unused at present, and the process proceeds to step S6.

【0052】ステップS6では、制御回路40により該
バッファアドレスが空領域回路44に格納され、バッフ
ァアドレスが+1されてステップS2に戻る。ステップ
S7では、制御回路40によりバッファアドレスが+1
され、読出語数が+1されてステップS2に戻る。
In step S6, the control circuit 40 stores the buffer address in the empty area circuit 44, increments the buffer address by 1, and returns to step S2. In step S7, the control circuit 40 sets the buffer address to +1.
The number of read words is incremented by 1, and the process returns to step S2.

【0053】ステップS8では、制御回路40により該
バッファデータ中のフラグがチェックされ、オンの場合
は新データがあると判断されステップS13に進み、オ
フの場合は過去に該フラッシュアドレスが使われたが現
在は未使用であると判断されステップS10に進む。
In step S8, the flag in the buffer data is checked by the control circuit 40, and if it is on, it is determined that there is new data, and the process proceeds to step S13. If it is off, the flash address has been used in the past. Is determined to be unused at present, and the process proceeds to step S10.

【0054】ステップS9では、制御回路40により空
領域回路44に退避されていたバッファアドレスが読み
出され、新たなバッファアドレスとして置き換えられ
る。ステップS10では、制御回路40により語数管理
回路42のフラッシュアドレスで指定されるブロックの
書込語数が+1され、総書込語数回路45に格納されて
いる総書込語数が+1される。
In step S9, the control circuit 40 reads the buffer address saved in the empty area circuit 44 and replaces it with a new buffer address. In step S10, the control circuit 40 increments the write word count of the block designated by the flash address of the word count management circuit 42 by 1, and increments the total write word count stored in the total write word count circuit 45 by 1.

【0055】ステップS11では、制御回路40により
語数管理回路42のフラッシュアドレスで指定されるブ
ロックの書込語数が読み出され、最多語数回路49に格
納されている値と比較され、語数管理回路42のフラッ
シュアドレスで指定されるブロックの書込語数が最多語
数回路49に格納されている値より大きい場合にはステ
ップS12に進み、語数管理回路42のフラッシュアド
レスで指定されるブロックの書込語数が最多語数回路4
9に格納されている値以下の場合にはステップS13に
進む。
In step S11, the control circuit 40 reads the number of write words of the block designated by the flash address of the word number management circuit 42, compares the read word number with the value stored in the maximum word number circuit 49, and the word number management circuit 42. If the number of write words in the block designated by the flash address is larger than the value stored in the maximum number of words circuit 49, the process proceeds to step S12, and the number of write words in the block designated by the flash address of the word number management circuit 42 is Maximum number of words circuit 4
If it is less than or equal to the value stored in 9, the process proceeds to step S13.

【0056】ステップS12では、制御回路40により
語数管理回路42のフラッシュアドレスで指定されるブ
ロックの書込語数が最多語数回路49に書き込まれ、該
ブロックのブロックアドレスが最多ブロック回路48に
書き込まれる。
In step S12, the control circuit 40 writes the number of write words of the block designated by the flash address of the word number management circuit 42 into the maximum number of words circuit 49, and the block address of the block into the maximum number of block circuits 48.

【0057】ステップS13では、制御回路40により
バッファ回路3の該バッファアドレスで指定される領域
にフラッシュアドレス,新データが書き込まれ、フラグ
がオンにされる。
In step S13, the control circuit 40 writes the flash address and new data in the area designated by the buffer address of the buffer circuit 3, and turns on the flag.

【0058】ステップS14では、制御回路40により
総書込語数回路45から総書込語数が読み出され、バッ
ファ回路3の語数(図4の場合は、語数=i)とが比較
され、等しい場合はバッファ回路3が100%新データ
で使用中の状態にあるものと判断されステップS16に
進み、異なる場合はステップS15に進む。
In step S14, the total number of written words is read from the total number of written words circuit 45 by the control circuit 40 and compared with the number of words in the buffer circuit 3 (the number of words = i in the case of FIG. 4). It is determined that the buffer circuit 3 is in use with 100% new data, and the process proceeds to step S16. If different, the process proceeds to step S15.

【0059】ステップS15では、制御回路40により
本体装置11からの書込み要求を待つ。書込み要求があ
るとステップS1に進む。ステップS16では、制御回
路40により最多ブロック回路48からブロックアドレ
スが読み出され、フラッシュメモリ回路1の該ブロック
アドレスで示される1ブロック分のデータがバッファメ
モリ回路2に転送される。また、該ブロックアドレスが
転送アドレス回路46に設定され、最多語数回路49か
ら書込語数が転送語数回路43に転送され、総書込語数
回路45に格納されている値から該書込語数がマイナス
される。
In step S15, the control circuit 40 waits for a write request from the main body device 11. If there is a write request, the process proceeds to step S1. In step S16, the control circuit 40 reads the block address from the most block circuit 48, and the data of one block indicated by the block address of the flash memory circuit 1 is transferred to the buffer memory circuit 2. Further, the block address is set in the transfer address circuit 46, the number of write words is transferred from the maximum number of words circuit 49 to the transfer word number circuit 43, and the number of write words is minus from the value stored in the total number of write words circuit 45. To be done.

【0060】ステップS17では、制御回路40により
転送アドレス回路46で指定される領域が消去される。
また、語数管理回路42から書込語数が順次読み出さ
れ、転送アドレス回路46で指定されるブロックに次い
で書込語数の多いブロックのブロックアドレスが最多ブ
ロック回路48に、該ブロックの書込語数が最多語数回
路49に設定される。
In step S17, the area designated by the transfer address circuit 46 is erased by the control circuit 40.
Further, the number of write words is sequentially read from the word number management circuit 42, and the block address of the block having the largest number of write words next to the block designated by the transfer address circuit 46 is supplied to the block circuit 48 having the largest number of write words. The maximum number of words circuit 49 is set.

【0061】ステップS18では、制御回路40により
アドレス回路41にバッファアドレス0が設定される。
ステップS19では、制御回路40により転送語数がチ
ェックされ、0より少ない場合は新データが全てバッフ
ァメモリ回路2に転送されたものと判断されステップS
25に進み、0以上の場合には新データがまだバッファ
回路3に残っているものと判断されステップS20に進
む。
In step S18, the control circuit 40 sets the buffer address 0 in the address circuit 41.
In step S19, the number of transfer words is checked by the control circuit 40, and if it is less than 0, it is determined that all new data has been transferred to the buffer memory circuit 2 in step S19.
If it is 0 or more, it is determined that the new data still remains in the buffer circuit 3, and the process proceeds to step S20.

【0062】ステップS20では、制御回路40により
バッファ回路3のバッファアドレスで指定される領域か
ら、バッファデータが読み出される。ステップS21で
は、制御回路40により該バッファデータのブロックア
ドレスと転送アドレス回路46から読み出されたブロッ
クアドレスとが比較され、一致する場合はステップS2
2に進み、異なる場合はステップS24に進む。
In step S20, the control circuit 40 reads the buffer data from the area designated by the buffer address of the buffer circuit 3. In step S21, the control circuit 40 compares the block address of the buffer data with the block address read from the transfer address circuit 46, and if they match, step S2.
2, the process proceeds to step S24 if they differ.

【0063】ステップS22では、制御回路40により
該バッファデータのフラグがチェックされ、オンの時は
新データと判断されてステップS23に進み、オフの時
は新データでは無いと判断されてステップS24に進
む。
In step S22, the flag of the buffer data is checked by the control circuit 40. When the flag is on, it is determined that the data is new data and the process proceeds to step S23. When it is off, it is determined that the data is not new data and the process proceeds to step S24. move on.

【0064】ステップS23では、制御回路40により
バッファメモリ回路2の該バッファデータのワードアド
レスで指定された領域に、該バッファデータの新データ
が書き込まれ、バッファ回路3の該バッファアドレスで
示される領域のフラグがオフにされ、転送語数回路43
の転送語数が−1される。
In step S23, the control circuit 40 writes new data of the buffer data into the area designated by the word address of the buffer data of the buffer memory circuit 2, and the area indicated by the buffer address of the buffer circuit 3. Flag is turned off, and the transfer word number circuit 43
The number of transfer words is decremented by one.

【0065】ステップS24では、制御回路40により
バッファアドレスが+1され、ステップS19に戻る。
ステップS25では、制御回路40によりバッファメモ
リ回路2からフラッシュメモリ回路1にワードアドレス
0から最終アドレスまで順次データが転送され、書込み
処理を完了する。
In step S24, the control circuit 40 increments the buffer address by 1, and the process returns to step S19.
In step S25, the control circuit 40 sequentially transfers data from the word address 0 to the final address from the buffer memory circuit 2 to the flash memory circuit 1, and the writing process is completed.

【0066】図9は本発明の1実施例読み出しフローチ
ャート(その1)であり、図10は本発明の1実施例読
み出しフローチャート(その2)である。本体装置11
から読み出しが要求された場合の処理について、図9,
図10を参照しながら説明する。
FIG. 9 is a flow chart (No. 1) for reading one embodiment of the present invention, and FIG. 10 is a flow chart (No. 2) for reading one embodiment of the present invention. Main unit 11
FIG. 9 shows the processing when the reading is requested from
This will be described with reference to FIG.

【0067】本体装置11からフラッシュメモリ装置5
に対しフラッシュアドレスを指定しデータ読み出し要求
があると、該要求は転送制御回路4で受け付けられる。
ステップS1では、制御回路40によりアドレス回路4
1にバッファアドレス0が設定され、語数管理回路42
から読み出されたフラッシュアドレスのブロックアドレ
スで指定されるブロックの書込語数が読出語数回路47
に読出語数として設定される。
From the main body device 11 to the flash memory device 5
On the other hand, when a data read request is made by designating a flash address, the request is accepted by the transfer control circuit 4.
In step S1, the control circuit 40 causes the address circuit 4
The buffer address 0 is set to 1 and the word number management circuit 42
The write word number of the block designated by the block address of the flash address read from
Is set as the number of read words.

【0068】ステップS2では、制御回路40により読
出語数がチェックされ0より少ない場合には該バッファ
アドレスの新データはバッファ回路3には存在しないも
のと判断されステップS10に進み、0以上の場合には
バッファ回路3の検索を継続するためステップS3に進
む。
In step S2, the number of read words is checked by the control circuit 40. If the number of read words is less than 0, it is determined that the new data of the buffer address does not exist in the buffer circuit 3, and the process proceeds to step S10. Continues to search the buffer circuit 3, the process proceeds to step S3.

【0069】ステップS3では、制御回路40によりバ
ッファ回路3のバッファアドレスで指定される領域か
ら、バッファデータが読み出される。ステップS4で
は、制御回路40により該バッファデータ中のフラグが
チェックされ、オンの場合にはステップS5に進み、オ
フの場合にはステップS8に進む。
In step S3, the control circuit 40 reads the buffer data from the area designated by the buffer address of the buffer circuit 3. In step S4, the flag in the buffer data is checked by the control circuit 40. If it is on, the process proceeds to step S5, and if it is off, the process proceeds to step S8.

【0070】ステップS5では、制御回路40により該
バッファデータ中の書込みアドレスとフラッシュアドレ
スとが比較され、一致する場合にはバッファ回路3に新
データがあったと判断されてステップS9に進み、異な
る場合には検索を継続するためステップS6に進む。
In step S5, the control circuit 40 compares the write address in the buffer data with the flash address. If they match, it is determined that there is new data in the buffer circuit 3 and the process proceeds to step S9. In order to continue the search, the process proceeds to step S6.

【0071】ステップS6では、制御回路40により該
バッファデータ中のブロックアドレスとフラッシュアド
レスのブロックアドレスとが比較され、一致する場合に
はステップS7に進み、異なる場合にはステップS8に
進む。
In step S6, the control circuit 40 compares the block address in the buffer data with the block address of the flash address. If they match, the process proceeds to step S7. If they do not match, the process proceeds to step S8.

【0072】ステップS7では、制御回路40により読
出語数回路47が−1される。ステップS8では、制御
回路40によりバッファアドレスが+1され、ステップ
S2に戻る。
In step S7, the control circuit 40 decrements the read word number circuit 47 by one. In step S8, the control circuit 40 increments the buffer address by 1, and the process returns to step S2.

【0073】ステップS9では、制御回路40により新
データが本体装置11に転送され、処理を終了する。ス
テップS10では、制御回路40により転送アドレス回
路46から読み出されたブロックアドレスとフラッシュ
アドレスのブロックアドレスとが比較され、一致する場
合にはステップS11に進み、異なる場合にはステップ
S12に進む。
In step S9, the control circuit 40 transfers the new data to the main body device 11, and the process ends. In step S10, the block address read from the transfer address circuit 46 by the control circuit 40 is compared with the block address of the flash address. If they match, the process proceeds to step S11, and if they do not match, the process proceeds to step S12.

【0074】ステップS11では、制御回路40により
バッファメモリ回路2のフラッシュアドレスのワードア
ドレスで指定される領域からデータが読み出され、本体
装置11に転送され、処理を終了する。
In step S11, the control circuit 40 reads the data from the area specified by the word address of the flash address of the buffer memory circuit 2, transfers the data to the main body device 11, and ends the processing.

【0075】ステップS12では、制御回路40により
フラッシュメモリ回路1のフラッシュアドレスで指定さ
れる領域からデータが読み出され、本体装置11に転送
され、処理を終了する。
In step S12, the control circuit 40 reads the data from the area designated by the flash address of the flash memory circuit 1, transfers the data to the main body device 11, and ends the processing.

【0076】尚、本実施例では転送制御回路4を各個別
回路から構成しているが、記憶回路上に各個別回路に対
応する領域を設け、プロセッサにより制御しても同様に
実施できる。
Although the transfer control circuit 4 is composed of individual circuits in this embodiment, the same operation can be performed by providing a region corresponding to each individual circuit on the memory circuit and controlling by the processor.

【0077】[0077]

【発明の効果】以上の説明から明らかなように、本発明
によれば外部装置からフラッシュメモリ回路へのデータ
書込み回数を削減出来るためフラッシュメモリ素子の交
換間隔が延び、データ書込みに要する延べ処理時間を短
縮することが出来るという著しい工業的効果がある。
As is apparent from the above description, according to the present invention, the number of data writes from the external device to the flash memory circuit can be reduced, so that the replacement interval of the flash memory elements is extended and the total processing time required for the data write is increased. There is a remarkable industrial effect that can shorten.

【図面の簡単な説明】[Brief description of drawings]

【図1】 本発明の原理図FIG. 1 is a principle diagram of the present invention.

【図2】 本発明の1実施例構成図FIG. 2 is a configuration diagram of an embodiment of the present invention.

【図3】 本発明の1実施例語数管理回路構成図FIG. 3 is a block diagram of a word count management circuit according to an embodiment of the present invention.

【図4】 本発明の1実施例バッファ回路構成図FIG. 4 is a configuration diagram of a buffer circuit according to an embodiment of the present invention.

【図5】 本発明の1実施例バッファメモリ回路構成図FIG. 5 is a block diagram of a buffer memory circuit according to an embodiment of the present invention.

【図6】 本発明の1実施例書込みフローチャート(そ
の1)
FIG. 6 is a first embodiment writing flowchart of the present invention (No. 1)

【図7】 本発明の1実施例書込みフローチャート(そ
の2)
FIG. 7 is a writing flowchart (part 2) of the embodiment of the present invention.

【図8】 本発明の1実施例書込みフローチャート(そ
の3)
FIG. 8 is a writing flowchart (part 3) of the embodiment of the present invention.

【図9】 本発明の1実施例読み出しフローチャート
(その1)
FIG. 9 is a flowchart (No. 1) for reading out an embodiment of the present invention.

【図10】 本発明の1実施例読み出しフローチャート
(その2)
FIG. 10 is a flowchart (No. 2) of reading out an embodiment of the present invention.

【図11】 従来例の構成図FIG. 11 is a configuration diagram of a conventional example.

【図12】 従来例のフローチャートFIG. 12 is a flowchart of a conventional example.

【符号の説明】[Explanation of symbols]

1 フラッシュメモリ回路 2 バッファメモリ回路 3 バッファ回路 4,4’転送制御回路 5,5’フラッシュメモリ装置 6 データ線 7,9 制御線 8,10 アドレス線 11 本体装置 40 制御回路 41 アドレス回路 42 語数管理回路 43 転送語数回路 44 空領域回路 45 総書込語数回路 46 転送アドレス回路 47 読出語数回路 48 最多ブロック回路 49 最多語数回路 1 Flash Memory Circuit 2 Buffer Memory Circuit 3 Buffer Circuit 4, 4'Transfer Control Circuit 5, 5'Flash Memory Device 6 Data Line 7, 9 Control Line 8, 10 Address Line 11 Main Unit 40 Control Circuit 41 Address Circuit 42 Word Count Management Circuit 43 Transfer word number circuit 44 Empty area circuit 45 Total write word number circuit 46 Transfer address circuit 47 Read word number circuit 48 Most block circuit 49 Most word number circuit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 書込みに際し、既に格納されているデー
タを一旦消去した後新データをフラッシュメモリ回路に
書き込むフラッシュメモリ装置において、 データバスにより接続される第1のバッファ回路と、第
2のバッファ回路と、フラッシュメモリ回路とから構成
され、 新データを一旦第1のバッファ回路に格納し、該第1の
バッファ回路に一定量の新データが蓄積された時点で該
新データを第2のバッファ回路に転送し、該第2のバッ
ファ回路内でフラッシュメモリ回路への書込み形式にデ
ータを整え、該第2のバッファ回路から該フラッシュメ
モリ回路に該データを転送することを特徴とするフラッ
シュメモリ装置。
1. In a flash memory device, which erases already stored data and then writes new data to a flash memory circuit at the time of writing, a first buffer circuit and a second buffer circuit connected by a data bus. And a flash memory circuit, the new data is temporarily stored in the first buffer circuit, and the new data is stored in the second buffer circuit when a certain amount of the new data is accumulated in the first buffer circuit. To the flash memory circuit in the second buffer circuit, and transfers the data from the second buffer circuit to the flash memory circuit.
【請求項2】 前記第1のバッファ回路に、新データと
共に前記フラッシュメモリ回路の書込み先アドレスを格
納することを特徴とする請求項1のフラッシュメモリ装
置。
2. The flash memory device according to claim 1, wherein a write destination address of the flash memory circuit is stored together with new data in the first buffer circuit.
【請求項3】 前記第1のバッファ回路に格納された前
記フラッシュメモリ回路の書込み先アドレスを検索し、
前記フラッシュメモリ回路の消去されるブロックの新デ
ータのみを前記第2のバッファ回路に転送することを特
徴とする請求項1のフラッシュメモリ装置。
3. A write destination address of the flash memory circuit stored in the first buffer circuit is searched,
2. The flash memory device according to claim 1, wherein only new data in the erased block of the flash memory circuit is transferred to the second buffer circuit.
【請求項4】 読出し要求に対し、最初に前記第1のバ
ッファ回路を検索し、前記第1のバッファ回路にデータ
が無い場合に前記第2のバッファ回路を検索し、前記第
2のバッファ回路にデータが無い場合に前記フラッシュ
メモリ回路からデータを読み出すことを特徴とする、請
求項1のフラッシュメモリ装置。
4. In response to a read request, the first buffer circuit is searched first, the second buffer circuit is searched when there is no data in the first buffer circuit, and the second buffer circuit is searched. 2. The flash memory device according to claim 1, wherein data is read from the flash memory circuit when there is no data in the flash memory device.
JP20071995A 1995-08-07 1995-08-07 Flash memory device Withdrawn JPH0955091A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20071995A JPH0955091A (en) 1995-08-07 1995-08-07 Flash memory device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20071995A JPH0955091A (en) 1995-08-07 1995-08-07 Flash memory device

Publications (1)

Publication Number Publication Date
JPH0955091A true JPH0955091A (en) 1997-02-25

Family

ID=16429073

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20071995A Withdrawn JPH0955091A (en) 1995-08-07 1995-08-07 Flash memory device

Country Status (1)

Country Link
JP (1) JPH0955091A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6421279B1 (en) * 1993-04-08 2002-07-16 Hitachi, Ltd. Flash memory control method and apparatus processing system therewith
JP2008097225A (en) * 2006-10-10 2008-04-24 Hitachi Ltd Storage device, controller, and control method
JP2008134685A (en) * 2006-11-27 2008-06-12 Konica Minolta Business Technologies Inc Nonvolatile memory system and nonvolatile memory control method
JP2008197981A (en) * 2007-02-14 2008-08-28 Toshiba Corp Semiconductor storage device
JP2011022657A (en) * 2009-07-13 2011-02-03 Fujitsu Ltd Memory system and information processor

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6421279B1 (en) * 1993-04-08 2002-07-16 Hitachi, Ltd. Flash memory control method and apparatus processing system therewith
JP2008097225A (en) * 2006-10-10 2008-04-24 Hitachi Ltd Storage device, controller, and control method
JP2008134685A (en) * 2006-11-27 2008-06-12 Konica Minolta Business Technologies Inc Nonvolatile memory system and nonvolatile memory control method
JP2008197981A (en) * 2007-02-14 2008-08-28 Toshiba Corp Semiconductor storage device
JP2011022657A (en) * 2009-07-13 2011-02-03 Fujitsu Ltd Memory system and information processor

Similar Documents

Publication Publication Date Title
US8301829B2 (en) Flash memory device and flash memory system including buffer memory
JP3328321B2 (en) Semiconductor storage device
KR101213315B1 (en) Methods, circuits, and systems to select memory regions
US6809964B2 (en) Nonvolatile semiconductor memory device capable of transferring data internally without using an external bus
JP2784440B2 (en) Data page transfer control method
JPH05204561A (en) Semiconductor disk having flash memory as storage medium
KR20080007470A (en) Nonvolatile memory system using magneto-resistive random access memory(mram)
JPH06124175A (en) Semiconductor disk device
JP4194600B2 (en) Data transfer method and system
JPH05151098A (en) Memory card device
JPH05314019A (en) Memory card device
JP3702515B2 (en) Flash memory control method and flash memory control unit
US6542969B1 (en) Memory controller and a cache for accessing a main memory, and a system and a method for controlling the main memory
TW478168B (en) Non-volatile semiconductor memory device
JPH0955091A (en) Flash memory device
US20040255076A1 (en) Flash memory controller, memory control circuit, flash memory system, and method for controlling data exchange between host computer and flash memory
JP3609739B2 (en) Semiconductor memory device
US6433786B1 (en) Memory architecture for video graphics environment
JPH0778485A (en) Nonvolatile semiconductor storage device and data rewriting/reading out method
JP3328604B2 (en) Semiconductor storage device
JPH0922596A (en) Flash memory device
JP3190847B2 (en) Data transfer control device
JPH0784886A (en) Method and unit for cache memory control
JP3793464B2 (en) Semiconductor memory device
JP3655658B2 (en) Numerical controller

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20021105