JP2001027966A - Memory controller, facsimile equipment and image forming device - Google Patents

Memory controller, facsimile equipment and image forming device

Info

Publication number
JP2001027966A
JP2001027966A JP11202014A JP20201499A JP2001027966A JP 2001027966 A JP2001027966 A JP 2001027966A JP 11202014 A JP11202014 A JP 11202014A JP 20201499 A JP20201499 A JP 20201499A JP 2001027966 A JP2001027966 A JP 2001027966A
Authority
JP
Japan
Prior art keywords
command
processing
commands
electrical
erasure
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
JP11202014A
Other languages
Japanese (ja)
Other versions
JP3440032B2 (en
Inventor
Akira Osanai
明 長内
Minoru Ozaki
実 尾崎
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.)
Panasonic System Solutions Japan Co Ltd
Original Assignee
Matsushita Graphic Communication Systems Inc
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 Matsushita Graphic Communication Systems Inc filed Critical Matsushita Graphic Communication Systems Inc
Priority to JP20201499A priority Critical patent/JP3440032B2/en
Publication of JP2001027966A publication Critical patent/JP2001027966A/en
Application granted granted Critical
Publication of JP3440032B2 publication Critical patent/JP3440032B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Storing Facsimile Image Data (AREA)

Abstract

PROBLEM TO BE SOLVED: To prevent the occurrence of excessive waiting time even if the electric deletion requests of a physical sector are continuously inputted in a system where a flash memory is shared by plural units by appropriately processing other requests such as reading/writing. SOLUTION: In a buffer (FIFO(B)) of a FIFO system, the processing order of commands is unitarily decided. A format command instructing the deletion of the physical sector of a flash memory is preliminarily accumulated in FIFO(C). Then, the commands are transferred to FIFO(B) one by one with the absence of the format command waiting for the processing or during the processing in FIFO(B) as a condition. Such management is executed by a format command queue management part 37.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、メモリ制御装置,
ファクシミリ装置およびデジタル複写機等の画像形成装
置に関する。
The present invention relates to a memory control device,
The present invention relates to an image forming apparatus such as a facsimile machine and a digital copying machine.

【0002】[0002]

【従来の技術】フラッシュメモリは、大量のデータの記
憶が可能な不揮発性メモリとして各種の機器に広く使わ
れている。
2. Description of the Related Art Flash memories are widely used in various devices as nonvolatile memories capable of storing a large amount of data.

【0003】フラッシュメモリにおけるメモリ空間は、
図9(a)に示すように、所定のバイト数(例えば、6
4Kバイト)の物理セクタの集合体と把握され、「電気
的な消去」は、この物理セクタ単位にしか行なえない。
The memory space in a flash memory is
As shown in FIG. 9A, a predetermined number of bytes (for example,
This is regarded as an aggregate of 4 Kbytes) physical sectors, and “electrical erasure” can be performed only in units of the physical sectors.

【0004】但し、一つの物理セクタは、ブロック(例
えば1Kバイト)に区分されており、機器からデータの
消去の要求があった場合には、このブロック単位で「論
理的な消去」を行なうことができる。「論理的な消去」
は、機器からのデータ消去要求に応えるための見かけ上
の消去であり、実際には、そのブロックを事実上使用不
可とすることを意味する。そのブロックを使用不可とす
ることは、例えば、そのブロックの全領域にゼロを書き
込んだり、ブロック管理情報に使用不可を示すフラグを
たてる、といった処理を行なうことで達成される。
However, one physical sector is divided into blocks (for example, 1 Kbyte), and when a data erasure request is issued from a device, "logical erasure" must be performed in block units. Can be. "Logical erasure"
Is an apparent erasure in response to a data erasure request from the device, and in fact means that the block is virtually unusable. Making the block unusable is achieved, for example, by performing processing such as writing zero to the entire area of the block or setting a flag indicating unusable in the block management information.

【0005】そして、論理的な消去をブロック単位で行
なっていって、1つの物理セクタを構成する全ブロック
が消去されたことになると、その時点で、その物理セク
タを電気的に消去する。
[0005] When logical erasure is performed in units of blocks and all blocks constituting one physical sector are erased, the physical sector is electrically erased at that time.

【0006】例えば、図9(b)の左側に示すように、
一つの物理セクタ内に、1ページ目および2ページ目の
原稿データが格納されていて、2ページ目のデータの論
理的な消去を行なったところ、ちょうど物理セクタの全
領域が消去されたことになると、図9の右側に示すよう
に、その時点で物理セクタの電気的消去を実行すること
になる。
For example, as shown on the left side of FIG.
Document data of the first page and the second page are stored in one physical sector, and when the data of the second page is logically erased, it is determined that the entire area of the physical sector has just been erased. Then, as shown on the right side of FIG. 9, the electrical erasure of the physical sector is executed at that time.

【0007】この物理セクタの消去には、一般に、かな
りの時間(数百ミリ秒〜数秒)がかかる。また、この物
理セクタの消去を行なっているときには、ライト/リー
ドといった他の処理は実行できず、これらの処理は、物
理セクタの消去完了まで待たされることになる。
The erasure of the physical sector generally takes a considerable time (several hundred milliseconds to several seconds). In addition, when erasing the physical sector, other processes such as write / read cannot be executed, and these processes wait until the erasure of the physical sector is completed.

【0008】[0008]

【発明が解決しようとする課題】物理セクタの消去の要
求の発生頻度はそう多くはないと考えられるが、何ペー
ジにも渡る原稿のデータを一括して消去する場合のよう
に、物理セクタの消去が連続的に発生する場合もあり得
る。
It is considered that the frequency of requests for erasing physical sectors is not so high. However, as in the case of erasing data of an original document covering several pages at a time, the number of physical sector Erasing may occur continuously.

【0009】ここで、フラッシュメモリを複数の機器で
共用している場合を考えると、一つの機器から発生した
物理セクタの消去要求を連続的に実行しているときに
は、他の機器は、フラッシュメモリに対するアクセス
(リード・ライト)が一切、できないことになる。
[0009] Considering a case where a flash memory is shared by a plurality of devices, when a physical sector erasure request issued from one device is continuously executed, the other devices are connected to the flash memory. Access (read / write) cannot be performed at all.

【0010】例えば、多数の物理セクタの電気的消去が
連続した場合は、場合によっては数十秒もデータのリー
ド/ライトができなくなり、これによって、ファクシミ
リ等の通信機器において通信エラーが発生する場合もあ
り得る。
For example, when electrical erasure of a large number of physical sectors continues, data reading / writing cannot be performed for several tens of seconds in some cases, thereby causing a communication error in a communication device such as a facsimile. It is possible.

【0011】リード/ライトの処理を最優先させ、物理
セクタの電気的消去を後回しにするような優先順位を設
定すれば、リード/ライトはスムーズに行なえる。しか
し、今度は、いつまでたっても物理セクタの電気的消去
ができない、といった事態が生じかねない。物理セクタ
の消去ができないと(すなわち、不要になったデータを
消去できないと)、データのライト効率が悪くなるし、
メモリ領域が一杯になってしまえば、それ以上のライト
はできなくなる。
If the read / write processing is given the highest priority and the priority order is set so that the electrical erasure of the physical sector is postponed, the read / write can be performed smoothly. However, a situation may occur in which the physical sector cannot be electrically erased forever. If the physical sector cannot be erased (that is, the unnecessary data cannot be erased), the data write efficiency will deteriorate,
Once the memory area is full, no more writes can be made.

【0012】また、各機器は別個・独立に動作してフラ
ッシュメモリに対する要求を自由に発生させるので、各
機器間で、あらかじめフラッシュメモリに対する要求の
発生を調停することもできない。
Since each device operates independently and independently to generate a request for a flash memory, it is not possible to arbitrate in advance the request for a flash memory between the devices.

【0013】本発明は、このような問題点に鑑みてなさ
れたものであり、一つの機器より物理セクタの消去要求
が連続して発生した場合でも、他の機器から発生したラ
イト/リード等の要求も適切に処理して、共用するメモ
リの円滑な使用を可能とし、システム全体としての処理
効率を向上させることを目的とする。
The present invention has been made in view of such a problem, and even if a physical sector erasure request is continuously issued from one device, a write / read or the like generated from another device can be performed. It is another object of the present invention to appropriately process a request, enable smooth use of a shared memory, and improve processing efficiency of the entire system.

【0014】[0014]

【課題を解決するための手段】本発明では、電気的消去
に関連するコマンドが複数、連続しており、かつ電気的
消去に関連するコマンド以外のコマンドが存在する場合
には、電気的消去に関するコマンドの連続した処理を禁
止する。
According to the present invention, when a plurality of commands related to electrical erasure are continuous and a command other than the command related to electrical erasure exists, the command related to the electrical erasure exists. Prohibits continuous processing of commands.

【0015】これにより、多数の物理セクタの消去が連
続した場合でも、一つの消去処理が終了した後には、リ
ードやライト等の処理を行え、長時間の処理待ちを余儀
なくされるような事態が生じない。
As a result, even when a large number of physical sectors are continuously erased, after one erasing process is completed, processes such as read and write can be performed, and a situation in which a long process wait is required. Does not occur.

【0016】本発明では、望ましくは、FIFO形式の
コマンドキューにて処理順を一元的に管理すると共に、
電気的消去に関するコマンドだけは、コマンドキューと
は別に、一旦、予備的に蓄積しておき、一つ一つ別々に
コマンドキューに移しかえるという手法を採用する。つ
まり、コマンドキューに、処理待ちあるいは実行中の電
気的消去に関するコマンドがある場合には、それ以上
の、コマンドキューへの移しかえ(キューイング)を行
なわない。
In the present invention, the processing order is desirably centrally managed in a command queue of FIFO format,
Only the command related to electrical erasure is temporarily stored separately from the command queue, and then transferred to the command queue individually. In other words, if there is a command related to electrical erasure waiting or being executed in the command queue, no further transfer to the command queue (queuing) is performed.

【0017】このようにすると、一つの電気的消去に関
するコマンドを実行している最中に発生した、その他の
コマンド(ライト/リード等のコマンド)は、次々にF
IFO形式のコマンドキューに蓄積されていき、その後
ろに、次の電気的消去に関するコマンドがキューイング
されるので、電気的消去に関するコマンドとコマンドの
間に、その他のコマンドが確実に挿入されることにな
り、特別な管理なしに、自動的にコマンドの処理順の調
整を行なえる。
In this manner, other commands (commands such as write / read) generated during execution of one command related to electrical erasure are successively changed to F.
Since the next command related to electrical erasure is stored in the command queue of the IFO format and queued after that, other commands are surely inserted between commands related to electrical erasure. And automatically adjust the order of command processing without any special management.

【0018】[0018]

【発明の実施の形態】本発明のメモリ制御装置の一つの
態様では、所定サイズの領域毎にしか電気的消去を行な
えないメモリに対して、複数の機器から独立に発生する
コマンドの処理の順序を管理する際に、前記電気的消去
に関連するコマンドが複数、連続しており、かつ電気的
消去に関連するコマンド以外のコマンドが存在する場合
には、前記電気的消去に関するコマンドの連続した処理
を禁止する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS In one aspect of the memory control device of the present invention, the order of processing commands generated independently from a plurality of devices in a memory in which electrical erasing can be performed only for each region of a predetermined size is described. When managing a plurality of commands related to the electrical erasure, if there is a command other than the command related to the electrical erasure, if there is a command other than the command related to the electrical erasure, continuous processing of the command related to the electrical erasure Ban.

【0019】これにより、多数の物理セクタの消去が連
続した場合でも、一つの消去処理が終了した後にはリー
ドやライト等の処理を行え、長時間の処理待ちを余儀な
くされるような事態が生じない。
As a result, even when a large number of physical sectors are continuously erased, a process such as reading or writing can be performed after one erasing process is completed, and a situation occurs in which a long waiting time is required. Absent.

【0020】また、本発明のメモリ制御装置の他の態様
は、所定サイズの領域毎にしか電気的消去を行なえない
メモリに対して、複数の機器から独立に発生するライト
コマンド,リードコマンドおよび消去に関するコマンド
を、FIFO形式のコマンドキューによって順次、処理
するメモリ制御装置であって、データの電気的な消去に
関するコマンドをそれ以外のコマンドとは分離して一
旦、蓄積しておき、前記コマンドキューにおいて処理待
ち,あるいは現在実行中の電気的な消去に関するコマン
ドがないことを条件として、前記一旦、蓄積された電気
的な消去に関するコマンドを前記コマンドキューにキュ
ーイングするコマンド管理手段を有する構成を採る。
Another aspect of the memory control device of the present invention relates to a memory which can be electrically erased only for each area of a predetermined size, a write command, a read command and an erase command generated independently from a plurality of devices. A memory controller that sequentially processes commands related to electrical erasure of data by a FIFO-type command queue, and temporarily stores commands related to electrical erasure of data separately from other commands. On the condition that there is no command relating to electrical erasure that is waiting for processing or is currently being executed, a configuration having command management means for queuing the temporarily stored command relating to electrical erasure in the command queue is adopted.

【0021】FIFO形式のコマンドキューにて処理順
を一元的に管理すると共に、電気的消去に関するコマン
ドだけは、コマンドキューとは別に、一旦、予備的に蓄
積しておき、一つ一つ別々にコマンドキューに移しかえ
るという手法を採用する。つまり、コマンドキューに、
処理待ちあるいは実行中の電気的消去に関するコマンド
がある場合には、それ以上の、コマンドキューへの移し
かえ(キューイング)を行なわない。
The processing order is centrally managed in a FIFO type command queue, and only commands relating to electrical erasure are temporarily stored separately from the command queue, and are stored separately. The method of moving to the command queue is adopted. In other words, in the command queue,
If there is a command related to electrical erasure that is waiting for processing or is being executed, no further transfer to the command queue (queuing) is performed.

【0022】このようにすると、一つの電気的消去に関
するコマンドを実行している最中に発生した、その他の
コマンド(ライト/リード等のコマンド)は、次々にF
IFO形式のコマンドキューに蓄積されていき、その後
ろに、次の電気的消去に関するコマンドがキューイング
されるので、電気的消去に関するコマンドとコマンドの
間に、その他のコマンドが確実に挿入されることにな
り、特別な管理なしに、自動的にコマンドの処理順の調
整を行なえる。
In this way, other commands (commands such as write / read) generated during execution of one command related to electrical erasure are successively changed to F.
Since the next command related to electrical erasure is stored in the command queue of the IFO format and queued after that, other commands are surely inserted between commands related to electrical erasure. And automatically adjust the order of command processing without any special management.

【0023】また、本発明のメモリ制御装置の第3の態
様は、所定サイズの領域毎にしか電気的消去を行なえな
いメモリに対して、複数の機器から独立に発生する、電
気的消去に関連する処理コマンドおよびその他の処理コ
マンドを管理,実行するメモリ制御装置であって、コマ
ンドの処理順序を決めるコマンドキューが格納されるF
IFO形式の第1のバッファと、前記電気的消去に関連
する処理のコマンドのみを予備的に蓄積するFIFO形
式の第2のバッファと、入力されたコマンドが、前記電
気的消去の処理についてのコマンドであるか、あるいは
前記その他の処理についてのコマンドであるかを判別
し、その他の処理についてのコマンドを前記第1のバッ
ファに送り、電気的消去の処理についてのコマンドを前
記第2のバッファに送るコマンド分配部と、前記第1の
バッファにおいて、処理待ち、あるいは現在実行中の電
気的消去に関連する処理のコマンドがないことを条件と
して、前記第2のバッファに予備的に蓄積された前記電
気的消去に関連する処理のコマンドを、前記第1のバッ
ファにキューイングする処理を行なうバッファ管理手段
と、を有する。
A third aspect of the memory control device according to the present invention relates to a memory which can be electrically erased only for each area of a predetermined size, which is generated independently from a plurality of devices. A memory controller that manages and executes processing commands to be executed and other processing commands, and stores a command queue that determines the processing order of the commands.
A first buffer in an FIFO format, a second buffer in a FIFO format for preliminarily storing only a command for a process related to the electrical erasure, and a command for inputting a command related to the electrical erasure process. , Or a command for the other process, sends a command for the other process to the first buffer, and sends a command for an electrical erase process to the second buffer. The command distribution unit and the first buffer are provided with the electric power preliminarily stored in the second buffer on condition that there is no processing command waiting for processing or processing currently being executed related to electrical erasure. And buffer management means for performing a process of queuing a command of a process related to the target erasure in the first buffer.

【0024】第2の態様と同様に、電気的消去に関する
コマンドだけは別に保持しておき、コマンドの処理順を
決めるFIFOバッファ(コマンドキュー)に、一つず
つ移す方式を採用するものである。この構成を採ること
により、複雑な管理を経ることなく、自然に、電気的消
去に関するコマンドを分散させることができる。
As in the second embodiment, a method is adopted in which only commands related to electrical erasure are separately stored and transferred one by one to a FIFO buffer (command queue) that determines the processing order of the commands. By adopting this configuration, commands relating to electrical erasure can be naturally distributed without complicated management.

【0025】本発明の実施の態様によれば、複数の機器
がフラッシュメモリのような、記憶容量が大きく安価な
不揮発性メモリを共用する場合の、システム全体として
の処理効率を向上させることができる。
According to the embodiment of the present invention, when a plurality of devices share a non-volatile memory having a large storage capacity and a low price, such as a flash memory, the processing efficiency of the entire system can be improved. .

【0026】また、FIFOキューへのキューイングの
タイミングを制御することにより、簡単に、自然にコマ
ンドの処理順を変更できるので、コスト上昇等の問題も
生じない。ゆえに、低コスト・小型化が厳しく求められ
る普及型のファクシミリ装置等の機器にも適用すること
ができる。
Further, by controlling the timing of queuing to the FIFO queue, the order of command processing can be easily and naturally changed, so that there is no problem such as an increase in cost. Therefore, the present invention can be applied to a device such as a popular facsimile machine that requires strict cost reduction and size reduction.

【0027】以下、本発明の実施の形態について、図面
を参照して具体的に説明する。
Hereinafter, embodiments of the present invention will be specifically described with reference to the drawings.

【0028】図1は、フラッシュメモリに対する制御を
行なうシステム(及びこのシステムを含むファクシミリ
装置)の主要な構成を示すブロック図である。
FIG. 1 is a block diagram showing a main configuration of a system for controlling a flash memory (and a facsimile machine including this system).

【0029】図示されるように、ファクシミリ装置15
は、ファクシミリ通信や通信データのメモリへの蓄積等
を統括的に制御するファクシミリ制御部12と、スキャ
ナ装置13と、プリンタ14と、を具備し、これらは各
々独立に、バス11を介してフラッシュメモリ10にア
クセスすることができる。
As shown, the facsimile machine 15
Is provided with a facsimile control unit 12 for overall control of facsimile communication and storage of communication data in a memory, a scanner device 13 and a printer 14, each of which is independently flashed via a bus 11. The memory 10 can be accessed.

【0030】また、ファクシミリ装置15は、フラッシ
ュメモリ10へのアクセスを管理・制御するための構成
として、ファイル入力インタフェース部1と、ファイル
出力インタフェース部2と、ファイル消去インタフェー
ス部3と、ブロックデータライト部4と、ブロックデー
タリード部5と、ブロックデータ消去部6と、ファイル
情報管理部7と、物理セクタフォーマット部8と、フラ
ッシュメモリ制御部9とを有している。
The facsimile device 15 has a file input interface unit 1, a file output interface unit 2, a file erasure interface unit 3, a block data write unit, and a file input interface unit 1 for managing and controlling access to the flash memory 10. It has a unit 4, a block data reading unit 5, a block data erasing unit 6, a file information management unit 7, a physical sector format unit 8, and a flash memory control unit 9.

【0031】上述のフラッシュメモリ制御部9におい
て、FIFO形式のコマンドキューへのキューイングタ
イミングを変更してコマンドの処理順を調整するとい
う、本発明の特徴的な動作が行なわれる。この点につい
ては、図3を用いて後述する。
In the flash memory control unit 9 described above, a characteristic operation of the present invention is performed in which the queuing timing to the command queue in the FIFO format is changed to adjust the order of command processing. This will be described later with reference to FIG.

【0032】図1の構成において、ファイル入力インタ
ーフェイス部1は、ファクシミリ制御部12、スキャナ
ー13,プリンタ装置14等の機器からファイルデータ
を入力(ライト)するための指令を受け付けて、ライト
データとライトファイル情報をブロックデータライト部
4に送る。また、そのライト結果を受け付けて機器に通
知する処理を行なう。
In the configuration shown in FIG. 1, the file input interface unit 1 receives a command for inputting (writing) file data from devices such as the facsimile control unit 12, the scanner 13, and the printer 14, and writes the write data. The file information is sent to the block data write unit 4. In addition, a process of receiving the write result and notifying the device is performed.

【0033】また、ファイル出力インターフェイス部2
は、ファクシミリ制御部12、スキャナー13,プリン
タ装置14等の機器へファイルデータを出力(リード)
するための処理を行う。すなわち、リードファイル情報
をブロックデータリード部5に送り、また、そのリード
結果を受けつけて機器に通知する。
The file output interface unit 2
Outputs file data to devices such as the facsimile control unit 12, the scanner 13, and the printer device 14 (read).
To perform the process. That is, the read file information is sent to the block data read unit 5, and the read result is received and notified to the device.

【0034】また、ファイル消去インターフェイス部3
は、ファクシミリ制御部12、スキャナー13,プリン
タ装置14等の機器からファイル消去を指示された場合
に、その指示を受け付け、消去ファイル情報をブロック
データ消去部6に送ると共に、その消去結果を受け付け
て機器に通知する処理を行なう。
The file erasing interface unit 3
Receives an instruction to delete a file from a device such as the facsimile control unit 12, the scanner 13, or the printer device 14, accepts the instruction, sends the deleted file information to the block data erasing unit 6, and receives the erasure result. A process for notifying the device is performed.

【0035】また、ブロックデータライト部4は、ファ
イル入力インターフェース部1からのファイル入力情報
に基づき、ファイルデータおよびライトコマンドをフラ
ッシュメモリ9に送ると共に、ファイル管理情報の生成
と更新のための指令をファイル情報管理部7に送る。ま
た、ライト処理の結果がフラッシュメモリ制御部9から
送られてきた場合には、その結果をファイル入力インタ
ーフェース部1に通知する。
The block data writing section 4 sends file data and a write command to the flash memory 9 based on the file input information from the file input interface section 1 and issues commands for generating and updating file management information. The file is sent to the file information management unit 7. When the result of the write process is sent from the flash memory control unit 9, the result is notified to the file input interface unit 1.

【0036】また、ブロックデータリード部5は、ファ
イル出力インターフェース部2からのファイル出力情報
に基づき、フラッシュメモリ9にリードコマンドを送出
すると共に、読み出されたデータを受取ってファイル出
力インターフェース部2に送る処理を行なう。また、フ
ァイル管理情報の更新のための指令をファイル情報管理
部7に送る。また、フラッシュメモリ制御部9から送ら
れてきたリード結果をファイル出力インターフェース部
2に送る処理を行なう。
The block data read unit 5 sends a read command to the flash memory 9 based on the file output information from the file output interface unit 2, receives the read data, and sends the read data to the file output interface unit 2. Perform the sending process. In addition, a command for updating the file management information is sent to the file information management unit 7. Further, it performs a process of sending the read result sent from the flash memory control unit 9 to the file output interface unit 2.

【0037】また、ブロックデータ消去部6は、ファイ
ル消去インターフェース部3からのファイル消去情報に
基づき、「ブロックデータの消去コマンド」をフラッシ
ュメモリ9に送出する。この「ブロックデータの消去コ
マンド」は、具体的には、ファイルデータに含まれるブ
ロックを一つずつ消去することを命じるものである。フ
ラッシュメモリ制御部9は、指示されたブロックを消去
して行き、1ブロック終了毎に消去結果をブロックデー
タ消去部6に返すようになっている。ブロックデータ消
去部6は、その消去結果を受け取ってファイル消去イン
ターフェース部3に送る。また、ファイル管理情報の更
新(消去)のための指令をファイル情報管理部7に送
る。
Further, the block data erasing section 6 sends a “block data erasing command” to the flash memory 9 based on the file erasing information from the file erasing interface section 3. The "block data erasure command" specifically instructs erasure of blocks included in the file data one by one. The flash memory controller 9 erases the designated block, and returns an erase result to the block data eraser 6 each time one block is completed. The block data erasure unit 6 receives the erasure result and sends it to the file erasure interface unit 3. In addition, a command for updating (erasing) the file management information is sent to the file information management unit 7.

【0038】ここで、「ブロックデータの消去」とは、
図9で説明した、ブロック単位の論理的な消去を意味す
る。そして、「ブロックデータの消去」は、具体的に
は、データの消去および管理情報の消去を含む。すなわ
ち、フラッシュメモリ制御部9は、ブロックを使用不可
状態と能とした後、ファイル管理情報を消去する。そし
て、消去を依頼した機器に対して消去の終了を通知する
ことになる。
Here, "erasing block data" means
This means the logical erasure in units of blocks described with reference to FIG. The “erase of block data” specifically includes erasure of data and erasure of management information. That is, the flash memory control unit 9 erases the file management information after setting the block to the unusable state. Then, the end of the erasure is notified to the device that has requested the erasure.

【0039】また、ファイル情報管理部7は、ファイル
管理情報の生成,更新,消去の指示に従い、実際のファ
イル管理情報の操作を行って、フラッシュメモリ10の
現在の状況をリアルタイムに一元的に管理する。ここ
で、注意すべき点は、ファイル管理情報を消去する時に
は、消去済みとなったブロック(図9(a)参照)を管
理・把握し、図9(b)で説明したように、物理セクタ
内の全ブロックが消去済みとなると、物理セクタフォー
マット部8に、物理セクタのフォーマット処理の実行を
指示する点である。
Further, the file information management section 7 operates the actual file management information in accordance with the instructions for generating, updating, and erasing the file management information, and integrally manages the current state of the flash memory 10 in real time. I do. Here, it should be noted that when erasing the file management information, the erased block (see FIG. 9A) is managed and grasped, and the physical sector is erased as described in FIG. 9B. When all the blocks in the block have been erased, the physical sector format unit 8 is instructed to execute the format processing of the physical sector.

【0040】物理セクタフォーマット部8は、ファイル
情報管理部7から出力されるフォーマット処理の指令を
受け、フラッシュメモリ制御部9に、指定する物理セク
タのフォーマット処理を指示する。ここで、「フォーマ
ット処理」とは、図9(b)で説明した、物理セクタを
電気的に消去する処理を意味する。より具体的には、消
去が完了したその物理セクタがライト可能状態であるこ
とを示すデータをブロックの所定位置に書き込む処理も
含むものである。
The physical sector format section 8 receives a format processing command output from the file information management section 7 and instructs the flash memory control section 9 to format a specified physical sector. Here, the “formatting process” means the process of electrically erasing the physical sector described with reference to FIG. More specifically, it also includes a process of writing data indicating that the erased physical sector is in a writable state at a predetermined position in the block.

【0041】また、フラッシュメモリ制御部9は、フラ
ッシュメモリ(データ格納領域)10に対して、データ
の入力(ライト),出力(リード),消去(イレイズ)
の各コマンドを受け付けて処理を実行する。フラッシュ
メモリ制御部9におけるコマンドの処理順は、原則的に
は入力順である。すなわち、図2に示すように、ライト
1,リード1,物理セクタ1フォーマットの各コマンド
がこの順序で入力されたとすると、この入力順に処理が
行われ、その処理結果が順次、返信される、というのが
原則である。
The flash memory controller 9 inputs (writes), outputs (reads), and erases (erases) data with respect to the flash memory (data storage area) 10.
And executes the process. The command processing order in the flash memory control unit 9 is basically the input order. That is, as shown in FIG. 2, if each command of the write 1, read 1, and physical sector 1 format is input in this order, the processing is performed in the input order, and the processing results are sequentially returned. That is the principle.

【0042】但し、このような入力順による制御のみで
は、フォーマットコマンドが連続して入力された場合
に、その他の処理が長期間に渡り待たされるという弊害
が生じる。よって、これを防止するべく、本実施の形態
では、フラッシュメモリ制御部9の内部構成に工夫を施
している。
However, if only the control in the input order is performed, when format commands are continuously input, there is an adverse effect that other processing is waited for a long period of time. Therefore, in order to prevent this, in the present embodiment, the internal configuration of the flash memory control unit 9 is devised.

【0043】次に、本実施の形態の特徴である、フラッ
シュメモリ制御部9の構成と、その動作の特徴について
図3,図4を用いて説明する。
Next, the configuration of the flash memory control unit 9 and the features of its operation, which are the features of this embodiment, will be described with reference to FIGS.

【0044】図3に示すように、フラッシュメモリ制御
部9は、バッファ受付部31と、コマンド制御部32
と、処理結果通知部33と、コマンド分配部34と、処
理バッファキュー管理部35と、処理コマンドキュー管
理部36と、フォーマットコマンドキュー管理部37
と、これらの管理部35,36,37の各々によって管
理されるキューを格納するための3つのFIFO(ファ
ーストイン・ファーストアウト)形式のバッファ(FI
FO(A),FIFO(B),FIFO(C))と、コ
マンド実行部38と、を具備している。FIFO(C)
は、フォーマットコマンドだけを予備的に蓄積するため
に特別に設けられた専用のバッファである。
As shown in FIG. 3, the flash memory control unit 9 includes a buffer reception unit 31 and a command control unit 32
, A processing result notifying unit 33, a command distribution unit 34, a processing buffer queue management unit 35, a processing command queue management unit 36, and a format command queue management unit 37.
And three FIFO (first-in first-out) type buffers (FIOs) for storing queues managed by each of these management units 35, 36, and 37.
FO (A), FIFO (B), FIFO (C)), and a command execution unit 38. FIFO (C)
Is a dedicated buffer specially provided for preliminarily storing only the format command.

【0045】ここで、バッファ受付部31は、ブロック
のリードやライトを行うためのファイルデータを一時的
に格納するためのバッファ(データの格納に必要な領域
を確保するための情報)を受け付ける。受付られたバッ
ファは、処理バッファキュー管理部35の管理の下、F
IFO(A)にキューイングされる。ここで、キューイ
ングとは、「処理コマンドを順々に蓄積すること」をい
い、コマンドキューとは、「蓄積されたコマンドの列」
をいう。コマンドキューにおける処理の順番は、蓄積さ
れた順番と一致する。すなわち、先入れ先出し形式のコ
マンドの蓄積であり、この意味で、コマンドキューをF
IFOキューという場合もある。
Here, the buffer receiving unit 31 receives a buffer (information for securing an area necessary for storing data) for temporarily storing file data for reading or writing a block. The received buffer is stored in the F buffer under the management of the processing buffer queue management unit 35.
It is queued in IFO (A). Here, queuing refers to “accumulating processing commands in sequence”, and command queuing refers to “a sequence of accumulated commands”.
Say. The order of processing in the command queue matches the order of accumulation. That is, the command is stored in a first-in first-out format.
It may be called an IFO queue.

【0046】また、コマンド受付部32は、実際の処理
内容(処理コマンド)を受け付けるものである。受け付
けられた処理コマンドは、コマンド分配部34に送られ
る。
The command receiving section 32 receives actual processing contents (processing commands). The received processing command is sent to the command distribution unit 34.

【0047】コマンド分配部34は、物理セクタのフォ
ーマットの処理コマンド(以下、「フォーマットコマン
ド」という)と、それ以外の処理コマンド(以下、通常
の処理コマンドという)とを区分し、前者をフォーマッ
トコマンド管理キュー37に渡し、後者を処理コマンド
キュー管理部36に渡す。ここで、「フォーマットコマ
ンド」は、物理セクタの消去コマンドと、その消去され
た物理セクタがライト可能であることを示すフラグ(ラ
イト可能フラグ)の書き込みを指示するコマンドと、か
らなる。
The command distribution unit 34 classifies a physical sector format processing command (hereinafter, referred to as a “format command”) from other processing commands (hereinafter, referred to as a normal processing command). It is passed to the management queue 37, and the latter is passed to the processing command queue management unit 36. Here, the “format command” includes a physical sector erase command and a command instructing writing of a flag (write enable flag) indicating that the erased physical sector is writable.

【0048】フォーマットコマンドは、フォーマットコ
マンドキュー管理部37によってFIFO(C)に蓄積
され、キュー管理される。FIFO(C)に一旦、蓄積
されたフォーマットコマンドは、一つ一つ別々にFIF
O(B)に移されることになり、これによって、連続す
るフォーマットコマンドが、自然に分散されて処理され
ることになる。そして結果的に、他のコマンドとの間で
処理順の調整が達成されることになる。この点について
は、図4を用いて、後に具体的に説明する。
The format commands are accumulated in the FIFO (C) by the format command queue management unit 37 and are queue-managed. Once the format command is stored in the FIFO (C),
It will be moved to O (B) so that successive format commands will be naturally distributed and processed. As a result, adjustment of the processing order with other commands is achieved. This will be specifically described later with reference to FIG.

【0049】また、処理結果通知部33は、処理結果
を、その処理を指示した各処理部へ返信するものであ
る。
The processing result notifying section 33 returns the processing result to each processing section instructing the processing.

【0050】処理コマンドキュー管理部36によってキ
ュー管理される通常のコマンド(ライト/リードのコマ
ンド)は、入力順に、コマンド実行部38に送られ、処
理されることになる。つまり、コマンドの処理順は、F
IFO(B)におけるコマンドキューの順番によって一
元的に管理されることになる。
Normal commands (write / read commands) managed by the processing command queue management unit 36 are sent to the command execution unit 38 in the order of input and processed. That is, the processing order of the commands is F
It is managed in a unified manner by the order of the command queue in the IFO (B).

【0051】コマンドの実行にブロックバッファが必要
な場合(リード/ライトの場合)は、処理バッファキュ
ー管理部35に管理されている、処理コマンドに対応し
たブロックバッファからライトデータが読み出された
り、そのブロックバッファにリードデータが格納された
りする。FIFO(A)とFIFO(B)は共に、入力
順に処理を行なうものであるので、処理の同期が保たれ
る。つまり、特別な管理をしなくても、処理コマンド
と、その処理に必要なブロックバッファとは、自然と1
対1に対応づけがなされることになる。
When a block buffer is necessary for executing a command (in the case of read / write), write data is read from the block buffer corresponding to the processing command, which is managed by the processing buffer queue management unit 35, and Read data is stored in the block buffer. Since both FIFO (A) and FIFO (B) perform processing in the order of input, the processing is kept in synchronization. In other words, even without special management, the processing command and the block buffer required for the processing are naturally 1
Correspondence will be made on a one-to-one basis.

【0052】また、コマンド実行部38は、与えられた
処理コマンドをフラッシュメモリ9に対し行うだけであ
る。つまり、複数のコマンドを同時に処理しないように
排他制御を行うのは、処理コマンドキュー管理部36で
ある。
The command executing section 38 only executes the given processing command to the flash memory 9. That is, it is the processing command queue management unit 36 that performs exclusive control so as not to process a plurality of commands at the same time.

【0053】次に、フォーマットコマンドキュー管理部
37の動作について図4(a)〜(d)を用いて説明す
る。
Next, the operation of the format command queue management unit 37 will be described with reference to FIGS.

【0054】図4(a)に示すように、FIFO(c)
に蓄積されたフォーマットコマンドFORM1(消去A
とライトフラグBの各コマンドからなる)は、FIFO
(B)に処理待ち、あるいは現在実行中のフォーマット
コマンドがないことを条件に、FIFO(B)にキュー
イングされる。図中の矢印は、フォーマットコマンドF
ORM1がFIFO(B)に移されたことを示してい
る。なお、FIFO(B)には、先に入力されたライト
C,ライトDの各コマンドがキューイングされている。
As shown in FIG. 4A, the FIFO (c)
Format command FORM1 (erase A
And each command of the write flag B)
It is queued in the FIFO (B) on condition that there is no processing command in (B) or there is no format command currently being executed. The arrow in the figure indicates the format command F
This indicates that ORM1 has been moved to FIFO (B). Each command of the write C and the write D previously input is queued in the FIFO (B).

【0055】図4(b)は、FIFO(B)において、
ライトC,ライトDの各コマンドの処理が完了し、フォ
ーマットコマンドFORM1が処理される順番となり、
その処理が開始された状態を示している。このフォーマ
ット処理には、物理セクタの消去という長時間を要する
処理を伴うので、処理完了までには、かなり時間がかか
ることになる。
FIG. 4B shows the FIFO (B)
The processing of each command of the write C and the write D is completed, and the format command FORM1 is processed in the order.
This shows a state in which the processing has been started. Since the formatting process involves a long-time process of erasing physical sectors, it takes a considerable amount of time to complete the process.

【0056】図4(c)では、フォーマットコマンドキ
ュー管理部37が行なう特徴的な動作の手順が、〜
の符号により示されている。
In FIG. 4C, the characteristic operation procedure performed by the format command queue management unit 37 is as follows.
Are shown.

【0057】すなわち、FIFO(B)でフォーマット
コマンドFORM1が処理されている間に、新たなフォ
ーマットコマンドがコマンド分配部34から送られてく
ると、これをFIFO(C)にキューイングする(動作
)。
That is, if a new format command is sent from the command distribution unit 34 while the format command FORM1 is being processed in the FIFO (B), it is queued in the FIFO (C) (operation). .

【0058】そして、処理コマンドキュー管理部36か
ら、実行中であったフォーマットコマンドFORM1の
処理が完了した旨の通知を受けると(動作)、そのフ
ォーマットコマンドFORM1を、FIFO(C)から
削除する(動作。図中の×はコマンドが消去されたこ
とを示している)。
When the processing command queue management unit 36 receives a notification that the processing of the format command FORM1 being executed has been completed (operation), the format command FORM1 is deleted from the FIFO (C) (operation). Operation, x in the figure indicates that the command has been erased).

【0059】続いて、新たなフォーマットコマンド(F
ORM2)が蓄積されていることを確認し(動作)、
そのフォーマットコマンドFORM2を、FIFO
(B)に移す(動作)。
Subsequently, a new format command (F
ORM2) is stored (operation),
The format command FORM2 is sent to the FIFO
Move to (B) (operation).

【0060】図4(c)では、フォーマットコマンドF
ORM1を実行している間に、ライトG,ライトHの各
コマンドが蓄積されているので、フォーマットコマンド
FORM2は、ライトG,ライトHのコマンドの後ろに
キューイングされることになる。
In FIG. 4C, the format command F
Since the write G and write H commands are accumulated while the ORM 1 is being executed, the format command FORM 2 is queued after the write G and write H commands.

【0061】したがって、図4(d)に示すように、コ
マンド処理の順序は、FORM1,ライトG,ライト
H,FORM2の順になり、フォーマットコマンドの間
に他のコマンド(ライトG,ライトH)が挿入されるこ
とになる。よって、フォーマットコマンドが連続して入
力された場合でも、実際のコマンド処理の段階では、各
コマンドが分散(分割)され、その他のコマンドの処理
が確保される。
Accordingly, as shown in FIG. 4D, the order of command processing is FORM1, write G, write H, FORM2, and other commands (write G, write H) are interposed between format commands. Will be inserted. Therefore, even when format commands are continuously input, at the stage of actual command processing, each command is distributed (divided), and processing of other commands is secured.

【0062】このようなフォーマットコマンドの分散
(分割)が達成されるのは、「FIFO(B)中に、処
理待ち、あるいは処理中のフォーマットコマンドがない
こと」を、FIFO(B)にフォーマットコマンドを移
す際の条件としているからである。
The distribution (division) of the format command is achieved by the fact that "there is no format command waiting or being processed in the FIFO (B)". Is a condition for transferring

【0063】つまり、FIFO(B)中では、未処理
(処理中を含む)の2つ以上のフォーマットコマンドの
存在が許されないのであり、これにより、一つのフォー
マットコマンドが実行されている期間において、その他
のコマンドが入力されると、その新たに入力されたコマ
ンドは、次に、確実に実行されることが保証されること
になる。
That is, in the FIFO (B), the existence of two or more unprocessed (including in-process) format commands is not allowed. Therefore, during the period in which one format command is executed, If another command is entered, the newly entered command is then guaranteed to be executed reliably.

【0064】図1に示されるように、フォーマットコマ
ンドキュー管理部37には、コマンド分配部34から送
られてくるフォーマットコマンド()と、処理コマン
ドキュー管理部36から送られてくるフォーマットコマ
ンドの処理終了通知()とが入力される。
As shown in FIG. 1, the format command queue management unit 37 processes the format command () sent from the command distribution unit 34 and the format command sent from the processing command queue management unit 36. End notification () is input.

【0065】そして、フォーマットコマンドキュー管理
部37は、FIFO(C)にフォーマットコマンドが蓄
積されており、かつ、FIFO(B)に、処理待ち、あ
るいは処理中のフォーマットコマンドがないことを条件
として、次のフォーマットコマンドを処理コマンドキュ
ー管理部36に送る。処理コマンドキュー管理部36
は、送られてきたフォーマットコマンドをFIFO
(B)にキューイングし、これによって、フォーマット
コマンドのFIFO(C)からFIFO(B)への移送
が完了する(図1中の点線で示される矢印)。
The format command queue management unit 37 determines that the format command is stored in the FIFO (C) and that there is no format command in the FIFO (B) waiting to be processed or being processed. The next format command is sent to the processing command queue management unit 36. Processing command queue management unit 36
Sends the format command to FIFO
(B), and the transfer of the format command from the FIFO (C) to the FIFO (B) is completed (the arrow indicated by the dotted line in FIG. 1).

【0066】以上説明した、フォーマットコマンドキュ
ー管理部37の主要な動作をまとめると、図5に示すよ
うになる。
FIG. 5 summarizes the main operations of the format command queue management unit 37 described above.

【0067】すなわち、新たなフォーマットコマンドが
入力されれば(ステップ40)、これをFIFO(C)
のキューに蓄積する(ステップ41)。また、処理コマ
ンドキュー管理部36からの処理終了通知があったか否
かを確認し(ステップ42)、処理終了通知があった場
合には、先にFIFO(B)に移送したフォーマットコ
マンドの処理がFIFO(B)側で完了したことになる
ので、同様に、FIFO(C)のキューから、そのコマ
ンドを削除する(ステップ43)。
That is, when a new format command is input (step 40), this is sent to the FIFO (C).
(Step 41). Further, it is checked whether or not there has been a processing end notification from the processing command queue management unit 36 (step 42). If there is a processing end notification, the processing of the format command previously transferred to the FIFO (B) is performed by the FIFO. Since the process is completed on the (B) side, the command is similarly deleted from the FIFO (C) queue (step 43).

【0068】そして、FIFO(C)にフォーマットコ
マンドが蓄積されている場合には(ステップ45)、そ
のフォーマットコマンドを処理コマンドキュー管理部3
6に移送する(ステップ46)。
If a format command is stored in the FIFO (C) (step 45), the format command is stored in the processing command queue management unit 3 (step 45).
6 (step 46).

【0069】一方、ステップ42において処理終了通知
がなく、かつ、先にFIFO(B)に移送したフォーマ
ットコマンドがある場合には(ステップ44)、その移
送したフォーマットコマンドが、FIFO(B)中で処
理待ちであるか、あるいは現在実行中であるので、ステ
ップ45に進むことなく、処理コマンドキュー管理部3
6からのフォーマットコマンドの終了通知を待つ動作を
行なう。
On the other hand, if there is no processing end notification in step 42 and there is a format command which has been transferred to the FIFO (B) first (step 44), the transferred format command is stored in the FIFO (B). The processing command queue management unit 3 does not proceed to step 45 because it is waiting for processing or is currently being executed.
The operation of waiting for a format command end notification from C.6 is performed.

【0070】以上説明したようなフラッシュメモリの制
御を行なうことによって、図6に示すようなコマンドの
処理がなされる。
By controlling the flash memory as described above, command processing as shown in FIG. 6 is performed.

【0071】図6では、最初に、セクタ1〜セクタ4の
それぞれをフォーマットするコマンドが連続的に入力さ
れ、その直後に、ライト1,ライト2の各コマンドが入
力され、その後、リード1、リード2,リード3,ライ
ト3,ライト4の各コマンドが入力される。
In FIG. 6, first, commands for formatting each of the sectors 1 to 4 are successively input, and immediately thereafter, commands for write 1 and write 2 are input. Each command of 2, read 3, write 3, and write 4 is input.

【0072】図6の右側に示される期間T1は、セクタ
1のフォーマット処理が行なわれている期間である。こ
の期間T1において、入力されたライト1およびライト
2の各コマンドは、次の処理期間T2において実行され
る。
A period T1 shown on the right side of FIG. 6 is a period during which the sector 1 is being formatted. In this period T1, the input commands of the write 1 and the write 2 are executed in the next processing period T2.

【0073】次の処理期間T3には、セクタ2のフォー
マット処理が行なわれるが、この期間T3において入力
された、リード1,リード2,リード3,ライト3,ラ
イト4の各コマンドは、次の処理期間T4において実行
される。
In the next processing period T3, the format processing of the sector 2 is performed. Each command of read 1, read 2, read 3, write 3, and write 4 inputted in this period T3 is It is executed in the processing period T4.

【0074】このように、フォーマットコマンドが連続
して入力された場合でも、フォーマットコマンドが連続
して実際に処理されることはなく、その後に入力された
ライトやリードのコマンドが速やかに実行されるので、
図1の各機器からの独立したフラッシュメモリへのアク
セス要求に公平に応えることができ、システム全体とし
て、円滑で効率的なメモリアクセスが保証される。
As described above, even when the format commands are continuously input, the format commands are not actually processed continuously, and the subsequently input write or read command is promptly executed. So
The request for access to the independent flash memory from each device shown in FIG. 1 can be fairly met, and smooth and efficient memory access can be guaranteed as a whole system.

【0075】また、図3のフラッシュメモリ制御装置で
は、FIFO(B)でコマンドの処理順を一元的に管理
すると共に、FIFO(C)に予備的に蓄積されたフォ
ーマットコマンドを一つずつFIFO(B)に移しかえ
るという、きわめてシンプルな操作を行なうだけであ
り、実行が容易で、コストアップや装置の複雑化の心配
もない。
Further, in the flash memory control device of FIG. 3, the processing order of the commands is centrally managed by the FIFO (B), and the format commands preliminarily stored in the FIFO (C) are stored in the FIFO (C) one by one. Only the very simple operation of moving to B) is performed, the execution is easy, and there is no concern about an increase in cost and complexity of the apparatus.

【0076】図7は、比較例(本発明を使用しない例)
のフラッシュメモリ制御部9の構成を示す図である。基
本的な構成は図3と同様であるが、図7の場合、FIF
O(A)とFIFO(B)のみであり、フォーマットコ
マンドを予備的に蓄積するためのFIFO(C)がな
い。
FIG. 7 shows a comparative example (an example not using the present invention).
3 is a diagram showing a configuration of a flash memory control unit 9 of FIG. The basic configuration is the same as in FIG. 3, but in the case of FIG.
There are only O (A) and FIFO (B), and there is no FIFO (C) for preliminarily storing format commands.

【0077】このような構成の場合、図8に示すよう
に、セクタ1〜セクタ4のフォーマットコマンドが連続
的に入力されると、これら全てのフォーマット処理が完
了するまで、それ以降に受け付けられたコマンドは待た
されることになり、システム全体としてのコマンドの処
理の効率が低下してしまう。図6と図8とを比較する
と、本発明を適用したメモリ管理を行なうことによっ
て、比較例における不都合は完全に解消されることがわ
かる。
In the case of such a configuration, as shown in FIG. 8, when the format commands of the sectors 1 to 4 are continuously input, the format commands are accepted thereafter until all the format processes are completed. The command is kept waiting, and the processing efficiency of the command as a whole system is reduced. Comparing FIG. 6 with FIG. 8, it can be seen that by performing the memory management to which the present invention is applied, the disadvantage in the comparative example is completely eliminated.

【0078】なお、以上の説明ではフラッシュメモリを
使用しているが、これに限定されるものではなく、本発
明は、消去に時間のかかるメモリを使用するシステムに
広く利用することができる。また、以上の説明では、フ
ァクシミリ装置について説明しているが、これに限定さ
れるものではなく、本発明はデジタル複写機等の画像形
成装置に広く適用可能である。
In the above description, a flash memory is used. However, the present invention is not limited to this, and the present invention can be widely applied to a system using a memory that requires a long time for erasing. In the above description, the facsimile apparatus has been described. However, the present invention is not limited to this, and the present invention is widely applicable to image forming apparatuses such as digital copying machines.

【0079】[0079]

【発明の効果】以上説明したように、本発明によれば、
物理セクタの電気的消去を指示するコマンドが連続的に
入力された場合でも、実際の処理においては、それ以降
に入力されたライトやリードの処理が速やかに行なわれ
ることが保証され、多数の機器が接続されるシステムで
も、フラッシュメモリをファイル格納領域として安心し
て使用できるようになる。
As described above, according to the present invention,
Even if commands for instructing electrical erasure of the physical sector are continuously input, in the actual processing, it is guaranteed that the subsequent write and read processing will be performed promptly, and many devices Can be used with confidence in a system to which the flash memory is connected as a file storage area.

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

【図1】本発明の実施の形態にかかる、フラッシュメモ
リ制御システムの全体構成を示すブロック図
FIG. 1 is a block diagram showing an overall configuration of a flash memory control system according to an embodiment of the present invention;

【図2】図1に示されるシステムの基本的な動作を示す
FIG. 2 is a diagram showing a basic operation of the system shown in FIG.

【図3】本発明の実施の形態にかかるメモリ制御装置の
構成を示すブロック図
FIG. 3 is a block diagram showing a configuration of a memory control device according to the embodiment of the present invention;

【図4】(a)FIFOバッファにおけるキューの状態
例を示す図 (b)FIFOバッファにおけるキューの状態例を示す
図 (c)フォーマットコマンドキュー管理部の動作手順を
示す図 (d)本発明の実施の形態における、コマンド処理の順
序の例を示す図
4A is a diagram showing an example of a queue state in a FIFO buffer; FIG. 4B is a diagram showing an example of a queue state in a FIFO buffer; FIG. 4C is a diagram showing an operation procedure of a format command queue management unit; FIG. 4 is a diagram illustrating an example of a command processing order in the embodiment.

【図5】フォーマットコマンドキュー管理部の動作手順
を示すフロー図
FIG. 5 is a flowchart showing an operation procedure of a format command queue management unit;

【図6】本発明の実施の形態のシステムにおける、コマ
ンド処理の一例を示す図
FIG. 6 is a diagram showing an example of command processing in the system according to the embodiment of the present invention;

【図7】比較例のフラッシュメモリ制御部の構成を示す
ブロック図
FIG. 7 is a block diagram illustrating a configuration of a flash memory control unit according to a comparative example.

【図8】比較例のシステムにおける、コマンド処理の一
例を示す図
FIG. 8 is a diagram showing an example of command processing in the system of the comparative example.

【図9】(a)フラッシュメモリの構成を示す図 (b)フラッシュメモリの電気的消去動作を説明するた
めの図
9A is a diagram showing a configuration of a flash memory; FIG. 9B is a diagram for explaining an electrical erase operation of the flash memory;

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

1 ファイル入力インタフェース部 2 ファイル出力インタフェース部 3 ファイル消去インタフェース部 4 ブロックデータライト部 5 ブロックデータリード部 6 ブロックデータ消去部 7 ファイル情報管理部 8 物理セクタフォーマット部 9 フラッシュメモリ制御部 10 フラッシュメモリ 12 ファクシミリ制御部 13 スキャナ装置 14 プリンタ装置 REFERENCE SIGNS LIST 1 file input interface unit 2 file output interface unit 3 file erase interface unit 4 block data write unit 5 block data read unit 6 block data erase unit 7 file information management unit 8 physical sector format unit 9 flash memory control unit 10 flash memory 12 facsimile Control unit 13 Scanner device 14 Printer device

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 所定サイズの領域毎にしか電気的消去を
行なえないメモリに対して、複数の機器から独立に発生
するコマンドの処理の順序を管理する際に、前記電気的
消去に関連するコマンドが複数、連続しており、かつ電
気的消去に関連するコマンド以外のコマンドが存在する
場合には、前記電気的消去に関するコマンドの連続した
処理を禁止することを特徴とするメモリ制御装置。
When managing the order of processing of commands generated independently from a plurality of devices in a memory in which electrical erasing can be performed only for each area of a predetermined size, a command related to the electrical erasing is managed. A memory control device for prohibiting continuous processing of commands related to electrical erasure when a plurality of commands are continuous and a command other than a command related to electrical erasure exists.
【請求項2】 所定サイズの領域毎にしか電気的消去を
行なえないメモリに対して、複数の機器から独立に発生
するライトコマンド,リードコマンドおよび消去に関す
るコマンドを、FIFO形式のコマンドキューによって
順次、処理するメモリ制御装置であって、 データの電気的な消去に関するコマンドをそれ以外のコ
マンドとは分離して一旦、蓄積しておき、前記コマンド
キューにおいて処理待ち,あるいは現在実行中の電気的
な消去に関するコマンドがないことを条件として、前記
一旦、蓄積された電気的な消去に関するコマンドを前記
コマンドキューにキューイングするコマンド管理手段を
有することを特徴とするメモリ制御装置。
2. A write command, a read command, and a command related to erasure, which are generated independently from a plurality of devices, are sequentially transmitted to a memory in which electrical erasing can be performed only for each area of a predetermined size by a command queue of FIFO format. A memory control device for processing, wherein a command relating to electrical erasure of data is temporarily stored separately from other commands, and is waited for processing in the command queue or is currently being executed. And a command management means for queuing the temporarily stored command related to electrical erasure in the command queue on condition that there is no command related to the command.
【請求項3】 所定サイズの領域毎にしか電気的消去を
行なえないメモリに対して、複数の機器から独立に発生
する、電気的消去に関連する処理コマンドおよびその他
の処理コマンドを管理,実行するメモリ制御装置であっ
て、 コマンドの処理順序を決めるコマンドキューが格納され
るFIFO形式の第1のバッファと、 前記電気的消去に関連する処理のコマンドのみを予備的
に蓄積するFIFO形式の第2のバッファと、 入力されたコマンドが、前記電気的消去の処理について
のコマンドであるか、あるいは前記その他の処理につい
てのコマンドであるかを判別し、その他の処理について
のコマンドを前記第1のバッファに送り、電気的消去の
処理についてのコマンドを前記第2のバッファに送るコ
マンド分配部と、 前記第1のバッファにおいて、処理待ち、あるいは現在
実行中の電気的消去に関連する処理のコマンドがないこ
とを条件として、前記第2のバッファに予備的に蓄積さ
れた前記電気的消去に関連する処理のコマンドを、前記
第1のバッファにキューイングする処理を行なうバッフ
ァ管理手段と、を有することを特徴とするメモリ制御装
置。
3. A processing command related to electrical erasing and other processing commands, which are generated independently from a plurality of devices, are managed and executed for a memory in which electrical erasing can be performed only for each area of a predetermined size. A memory control device, comprising: a first buffer in a FIFO format in which a command queue for determining a processing order of a command is stored; and a second buffer in a FIFO format in which only a command of a process related to the electrical erasure is preliminarily stored. And whether the input command is a command for the electrical erasure process or a command for the other process, and sends a command for the other process to the first buffer. A command distribution unit that sends a command for an electrical erase process to the second buffer; In this case, on condition that there is no processing command related to the electrical erasure that is waiting or currently being executed, a command of the processing related to the electrical erasure that has been preliminarily stored in the second buffer is transmitted. And a buffer management unit for performing a process of queuing in the first buffer.
【請求項4】 前記所定サイズの領域毎にしか電気的消
去を行なえないメモリは、フラッシュメモリであること
を特徴とする請求項1〜請求項3のいずれかに記載のメ
モリ制御装置。
4. The memory control device according to claim 1, wherein the memory capable of electrically erasing only the area of the predetermined size is a flash memory.
【請求項5】 請求項1〜請求項4のいずれかに記載の
メモリ制御装置を具備することを特徴とするファクシミ
リ装置。
5. A facsimile apparatus comprising the memory control device according to claim 1.
【請求項6】 請求項1〜請求項4のいずれかに記載の
メモリ制御装置を具備することを特徴とする画像形成装
置。
6. An image forming apparatus comprising the memory control device according to claim 1. Description:
JP20201499A 1999-07-15 1999-07-15 Memory control device, facsimile device and image forming device Expired - Lifetime JP3440032B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20201499A JP3440032B2 (en) 1999-07-15 1999-07-15 Memory control device, facsimile device and image forming device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20201499A JP3440032B2 (en) 1999-07-15 1999-07-15 Memory control device, facsimile device and image forming device

Publications (2)

Publication Number Publication Date
JP2001027966A true JP2001027966A (en) 2001-01-30
JP3440032B2 JP3440032B2 (en) 2003-08-25

Family

ID=16450506

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20201499A Expired - Lifetime JP3440032B2 (en) 1999-07-15 1999-07-15 Memory control device, facsimile device and image forming device

Country Status (1)

Country Link
JP (1) JP3440032B2 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7430632B2 (en) 2004-03-11 2008-09-30 Samsung Electronics Co., Ltd. Data management apparatus and method for determining a response time in flash memory devices
JP2011523157A (en) * 2008-05-13 2011-08-04 ラムバス・インコーポレーテッド Partial program commands for memory devices
JP2011159070A (en) * 2010-01-29 2011-08-18 Toshiba Corp Semiconductor storage device, and method of controlling the same
JP2011187078A (en) * 2011-05-13 2011-09-22 Toshiba Corp Semiconductor storage device and method for controlling the same
JP2012511789A (en) * 2008-12-09 2012-05-24 ラムバス・インコーポレーテッド Non-volatile memory device for parallel and pipelined memory operation
WO2012081730A1 (en) * 2010-12-15 2012-06-21 Kabushiki Kaisha Toshiba Memory system and method of controlling memory system
US9304952B2 (en) 2010-10-21 2016-04-05 Kabushiki Kaisha Toshiba Memory control device, storage device, and memory control method

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7430632B2 (en) 2004-03-11 2008-09-30 Samsung Electronics Co., Ltd. Data management apparatus and method for determining a response time in flash memory devices
JP2011523157A (en) * 2008-05-13 2011-08-04 ラムバス・インコーポレーテッド Partial program commands for memory devices
US9966142B2 (en) 2008-05-13 2018-05-08 Rambus Inc. Fractional program commands for memory devices
US10861554B2 (en) 2008-05-13 2020-12-08 Rambus Inc. Fractional program commands for memory devices
US11651823B2 (en) 2008-05-13 2023-05-16 Rambus Inc. Fractional program commands for memory devices
JP2012511789A (en) * 2008-12-09 2012-05-24 ラムバス・インコーポレーテッド Non-volatile memory device for parallel and pipelined memory operation
JP2011159070A (en) * 2010-01-29 2011-08-18 Toshiba Corp Semiconductor storage device, and method of controlling the same
US9304952B2 (en) 2010-10-21 2016-04-05 Kabushiki Kaisha Toshiba Memory control device, storage device, and memory control method
WO2012081730A1 (en) * 2010-12-15 2012-06-21 Kabushiki Kaisha Toshiba Memory system and method of controlling memory system
JP2011187078A (en) * 2011-05-13 2011-09-22 Toshiba Corp Semiconductor storage device and method for controlling the same

Also Published As

Publication number Publication date
JP3440032B2 (en) 2003-08-25

Similar Documents

Publication Publication Date Title
US9244617B2 (en) Scheduling requests in a solid state memory device
US7644224B2 (en) Flash memory device and method
JP4694270B2 (en) Image processing apparatus, method, and program
JP5419500B2 (en) Program and information processing apparatus
JP4694268B2 (en) Image processing apparatus, method, and program
JP5029513B2 (en) Information processing apparatus, information processing apparatus control method, and program
JP4694267B2 (en) Image processing apparatus, method, and program
JP4694264B2 (en) Image processing apparatus, method, and program
JP4694265B2 (en) Image processing apparatus, method, and program
JP2006338500A (en) Image processor, image processing method, and program
US20070297433A1 (en) Method and apparatus for double buffering
CN106919471B (en) Method and system for snapshot creation
JP4619868B2 (en) Image processing apparatus, method, and program
JP4694269B2 (en) Image processing apparatus, method, and program
JP2001027966A (en) Memory controller, facsimile equipment and image forming device
JP2016206938A (en) Information processing system, memory control method for information processing system, and program
JP5340058B2 (en) Image processing apparatus, control method thereof, and program
CN104427181A (en) Image forming apparatus and image forming method
JP2004206424A (en) Data processing device and data transfer method for data processing device
JP4076316B2 (en) Data writing system using non-volatile cache memory
JPH05108274A (en) Method and device for parallel disk control
JP2007310533A (en) Nonvolatile storage system, nonvolatile storage device, and file data write-in method
JP3940701B2 (en) Disk array device and cache matching control method applied to the same
JP2853639B2 (en) Data processing device
JPH1063558A (en) Server device

Legal Events

Date Code Title Description
TRDD Decision of grant or rejection written
R150 Certificate of patent or registration of utility model

Ref document number: 3440032

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080613

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090613

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100613

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100613

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110613

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120613

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120613

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130613

Year of fee payment: 10

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term