JP2003280822A - Memory management system - Google Patents

Memory management system

Info

Publication number
JP2003280822A
JP2003280822A JP2002084322A JP2002084322A JP2003280822A JP 2003280822 A JP2003280822 A JP 2003280822A JP 2002084322 A JP2002084322 A JP 2002084322A JP 2002084322 A JP2002084322 A JP 2002084322A JP 2003280822 A JP2003280822 A JP 2003280822A
Authority
JP
Japan
Prior art keywords
physical
sector
address
block
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.)
Granted
Application number
JP2002084322A
Other languages
Japanese (ja)
Other versions
JP3699942B2 (en
Inventor
Tadaaki Kinoshita
忠明 木下
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP2002084322A priority Critical patent/JP3699942B2/en
Publication of JP2003280822A publication Critical patent/JP2003280822A/en
Application granted granted Critical
Publication of JP3699942B2 publication Critical patent/JP3699942B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

<P>PROBLEM TO BE SOLVED: To shorten the processing time associated with the reading/writing of a non-volatile memory, and to efficiently use memory resources. <P>SOLUTION: A physical sector address where an unwritten block exists is detected by memory write processing, and a physical sector address where an already written block exists is detected by memory read processing by using a sector address conversion table 23 and a block information table 25. A virtual sector address made to correspond to a plurality of physical sector addresses is made to correspond to one physical sector address by memory connection processing, and a physical sector address group corresponding to a virtual sector address to be erased is erased by memory erase processing, and the corresponding information of the virtual sector address and the physical sector address is written by memory copy processing and memory movement processing. <P>COPYRIGHT: (C)2004,JPO

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、消去単位が、複数
の書き込み単位により構成される不揮発性メモリにおけ
るメモリ管理方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory management system in a nonvolatile memory in which an erase unit is composed of a plurality of write units.

【0002】[0002]

【従来の技術】従来技術においては、システムからみた
メモリ(仮想メモリ)の消去単位(セクタ)に対する不
揮発性メモリ上のメモリ(物理メモリ)のセクタ(物理
セクタ)の対応付けは、仮想セクタに対して、一つのセ
クタ物理セクタを対応づける方法であった。
2. Description of the Related Art In the prior art, associating a sector (physical sector) of a memory (physical memory) on a non-volatile memory with an erase unit (sector) of the memory (virtual memory) as seen from the system corresponds to a virtual sector. In this method, one sector physical sector is associated.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、仮想メ
モリに対応付けられる物理セクタ上の、既にデータライ
トが成されている書き込み単位領域(ブロック)に対し
てオーバライトが発生する場合には、データがライトさ
れてない新しい物理セクタを新たに用意して、この新し
い物理セクタ上に、更新すべきブロックデータと、オー
バライトされるべきブロックが属しているセクタ上のオ
ーバライトされるべきブロック以外のブロックデータを
ライトし、仮想セクタと既存の物理セクタの対応づけを
消去して、新しい物理セクタに対する対応付けをする必
要があるので、オーバライトブロック以外のブロックデ
ータを新しい物理セクタにライトする必要がある分デー
タライトの処理時間が長くなるとともに、使用するメモ
リ容量が大きくなる問題があった。
However, when overwriting occurs in a write unit area (block) on the physical sector which is associated with the virtual memory and data is already written, the data is not written. A new unwritten physical sector is newly prepared, and block data to be updated and blocks other than the block to be overwritten on the sector to which the block to be overwritten belongs on this new physical sector. Since it is necessary to write the data, erase the association between the virtual sector and the existing physical sector, and associate it with the new physical sector, it is necessary to write the block data other than the overwrite block to the new physical sector. Data write processing time becomes longer and the memory capacity used becomes larger. There was a problem.

【0004】本発明は上記の問題を解決するためになさ
れたものであり、メモリの読み書きに係る処理時間を短
縮し、また、メモリ資源を効率よく使うことが可能にな
るメモリ管理方式を提供することを目的とする。
The present invention has been made to solve the above problems, and provides a memory management system that shortens the processing time for reading and writing a memory and enables efficient use of memory resources. The purpose is to

【0005】[0005]

【課題を解決するための手段】すなわち、本発明の請求
項1に係わるメモリ管理方式は、各々が複数の書き込み
単位の物理ブロックを有してなる複数の消去単位の物理
セクタで構成される物理メモリに対して、当該物理メモ
リの物理セクタに対応付けられた複数の仮想セクタを有
してなる仮想メモリを用いてデータの読み書きを管理す
るメモリ管理方式であって、仮想セクタのアドレスと前
記単一または複数の物理セクタのアドレスとを対応付け
るセクタアドレス管理手段と、このセクタアドレス管理
手段により対応付けられた物理セクタに属する物理ブロ
ックの使用状態を示すブロック情報を管理するブロック
情報管理手段と、前記セクタアドレス管理手段により管
理される物理セクタと前記ブロック情報管理手段により
管理される物理ブロックに基づいて必要な物理セクタの
アドレスを検出するセクタアドレス検出手段と、前記セ
クタアドレス検出手段により検出された物理セクタのア
ドレスおよび前記ブロック情報管理手段により管理され
る物理ブロックのアドレスに基づいて物理メモリアドレ
スを生成するアドレス生成手段とを有することを特徴と
する。
That is, a memory management system according to claim 1 of the present invention is a physical management system which comprises physical sectors of a plurality of erase units each having a physical block of a plurality of write units. A memory management method for managing reading and writing of data from and to a memory using a virtual memory having a plurality of virtual sectors associated with a physical sector of the physical memory. Sector address management means for associating addresses of one or a plurality of physical sectors with each other; block information management means for managing block information indicating a usage state of a physical block belonging to the physical sector associated by the sector address management means; Physical sectors managed by the sector address management means and physical blocks managed by the block information management means. Based on the address of the physical sector detected by the sector address detecting means and the address of the physical block detected by the sector address detecting means, and the address of the physical block managed by the block information managing means. And an address generation unit for generating a physical memory address.

【0006】つまり、本発明の請求項1に係わるメモリ
管理方式では、セクタアドレス管理手段により、仮想セ
クタのアドレスと前記単一または複数の物理セクタのア
ドレスとを対応付けられ、ブロック情報管理手段によ
り、セクタアドレス管理手段により対応付けられた物理
セクタに属する物理ブロックの使用状態を示すブロック
情報が管理され、セクタアドレス検出手段により、セク
タアドレス管理手段により管理される物理セクタのアド
レスとブロック情報管理手段により管理される物理ブロ
ックに基づいて必要な物理ブロックのアドレスが検出さ
れ、アドレス生成手段により、セクタアドレス検出手段
により検出された物理セクタのアドレスおよびブロック
情報管理手段により管理される物理ブロックのアドレス
に基づいて物理メモリアドレスが生成されて、メモリに
対するデータ処理がなされることになる。
That is, in the memory management system according to claim 1 of the present invention, the sector address management means associates the address of the virtual sector with the address of the single or a plurality of physical sectors, and the block information management means. Block information indicating a use state of a physical block belonging to a physical sector correlated by the sector address management means is managed, and the sector address detection means manages the physical sector address and the block information management means managed by the sector address management means. The address of the required physical block is detected based on the physical block managed by the address generation means, and the address of the physical sector detected by the sector address detection means and the address of the physical block managed by the block information management means are detected. Physical notes based on Address is generated, the data processing to the memory is carried out.

【0007】また、本発明の請求項2に係わるメモリ管
理方式は、請求項1に記載のメモリ管理方式であって、
前記ブロック情報管理手段は、各々の物理ブロックの使
用状態を、使用の有無を示す情報に基づいて管理するこ
とを特徴とする。
A memory management system according to a second aspect of the present invention is the memory management system according to the first aspect,
The block information management means manages the usage state of each physical block based on information indicating the presence or absence of usage.

【0008】つまり、本発明の請求項2に係わるメモリ
管理方式では、セクタアドレス管理手段により、仮想セ
クタのアドレスと前記単一または複数の物理セクタのア
ドレスとを対応付けられ、ブロック情報管理手段によ
り、セクタアドレス管理手段により対応付けられた物理
セクタに属する物理ブロックの使用状態を示すブロック
情報が使用の有無を示す情報に基づいて管理され、セク
タアドレス検出手段によりセクタアドレス管理手段によ
り管理される物理セクタのアドレスとブロック情報管理
手段により管理される物理ブロックに基づいて必要な物
理セクタのアドレスが検出され、アドレス生成手段によ
り、セクタアドレス検出手段により検出された物理セク
タのアドレスおよびブロック情報管理手段により管理さ
れる物理ブロックのアドレスに基づいて物理メモリアド
レスが生成されて、メモリに対するデータ処理がなされ
ることになる。
That is, in the memory management system according to the second aspect of the present invention, the sector address management means associates the address of the virtual sector with the address of the single or a plurality of physical sectors, and the block information management means. Physical information managed by the sector address management means by the sector address management means, and block information indicating the usage status of the physical blocks belonging to the physical sector associated by the sector address management means is managed based on the information indicating the presence or absence of use. The address of the required physical sector is detected based on the address of the sector and the physical block managed by the block information management means, and the address generation means detects the address of the physical sector detected by the sector address detection means and the block information management means. Of managed physical blocks A physical memory address is generated based on the address, data processing for the memory is made.

【0009】また、本発明の請求項3に係わるメモリ管
理方式は、請求項1に記載のメモリ管理方式であって、
前記ブロック情報管理手段は、各々のブロックの使用状
態を、物理セクタにおける物理ブロックのアドレス範囲
に基づいて管理することを特徴とする。
A memory management system according to claim 3 of the present invention is the memory management system according to claim 1.
The block information management means manages the usage status of each block based on the address range of the physical block in the physical sector.

【0010】つまり、本発明の請求項3に係わるメモリ
管理方式では、セクタアドレス管理手段により、仮想セ
クタのアドレスと前記単一または複数の物理セクタのア
ドレスとを対応付けられ、ブロック情報管理手段によ
り、セクタアドレス管理手段により対応付けられた物理
セクタに属する各物理ブロックの使用状態を示すブロッ
ク情報が物理セクタにおける物理ブロックのアドレス範
囲に基づいて管理され、セクタアドレス検出手段により
セクタアドレス管理手段により管理される物理セクタの
アドレスとブロック情報管理手段により管理される物理
ブロックに基づいて必要な物理セクタのアドレスが検出
され、アドレス生成手段により、セクタアドレス検出手
段により検出された物理セクタのアドレスおよびブロッ
ク情報管理手段により管理される物理ブロックのアドレ
スに基づいて物理メモリアドレスが生成されて、メモリ
に対するデータ処理がなされることになる。
That is, in the memory management system according to claim 3 of the present invention, the sector address management means associates the address of the virtual sector with the address of the single or a plurality of physical sectors, and the block information management means. Block information indicating the use state of each physical block belonging to the physical sector associated by the sector address management means is managed based on the address range of the physical block in the physical sector, and is managed by the sector address management means by the sector address detection means. Address of the required physical sector is detected based on the address of the physical sector and the physical block managed by the block information management means, and the address and block information of the physical sector detected by the sector address detection means by the address generation means. By management means A physical memory address is generated based on the address of the managed physical block, the data processing to the memory is carried out.

【0011】また、本発明の請求項4に係わるメモリ管
理方式は、請求項1に記載のメモリ管理方式であって、
前記セクタアドレス管理手段は、さらに、任意の仮想セ
クタに対応付けられた物理セクタを検索し、前記ブロッ
ク情報管理手段は、さらに、このセクタアドレス管理手
段により検索された物理セクタに属する任意の物理ブロ
ックのブロック情報を検索し、前記セクタアドレス検出
手段は、前記ブロック情報管理手段により検索された物
理ブロックに基づき未使用状態の物理ブロックを検索し
て、この検索された未使用状態の物理ブロックが属する
物理セクタアドレスを検出することを特徴とする。
A memory management system according to a fourth aspect of the present invention is the memory management system according to the first aspect,
The sector address management means further searches for a physical sector associated with an arbitrary virtual sector, and the block information management means further acquires an arbitrary physical block belonging to the physical sector searched by the sector address management means. Of the block information, the sector address detection means searches for an unused physical block based on the physical block searched by the block information management means, and the searched unused physical block belongs to the physical block. It is characterized by detecting a physical sector address.

【0012】つまり、本発明の請求項4に係わるメモリ
管理方式では、セクタアドレス管理手段により、任意の
仮想セクタに対応付けられた物理セクタが検索され、ブ
ロック情報管理手段により、セクタアドレス管理手段に
より検索された物理セクタに属する任意の物理ブロック
のブロック情報が検索され、セクタアドレス検出手段に
より、前記ブロック情報管理手段により検索されたブロ
ックに基づき未使用状態の物理ブロックが検索され、こ
の検索された未使用状態ブロックが属する物理セクタア
ドレスが検出されアドレス生成手段により、セクタアド
レス検出手段により検出された物理セクタのアドレスお
よびブロック情報管理手段により管理される物理ブロッ
クのアドレスに基づいて物理メモリアドレスが生成され
て、メモリに対するメモリライト処理がなされることに
なる。
That is, in the memory management system according to the fourth aspect of the present invention, the sector address management means searches for a physical sector associated with an arbitrary virtual sector, and the block information management means uses the sector address management means. The block information of an arbitrary physical block belonging to the searched physical sector is searched, the physical address in the unused state is searched by the sector address detection means based on the block searched by the block information management means, and the searched physical block is searched. The physical sector address to which the unused state block belongs is detected, and the address generation means generates a physical memory address based on the address of the physical sector detected by the sector address detection means and the address of the physical block managed by the block information management means. And memory So that the memory write processing is performed.

【0013】また、本発明の請求項5に係わるメモリ管
理方式は、請求項4に記載のメモリ管理方式であって、
さらに、前記セクタアドレス検出手段により、未使用状
態の物理ブロックが検出されない場合に、属する全ての
物理ブロックが未使用状態にある物理セクタを仮想セク
タに対応付けるセクタ設定手段を有することを特徴とす
る。
A memory management system according to claim 5 of the present invention is the memory management system according to claim 4.
Further, it is characterized by further comprising sector setting means for associating a physical sector in which all physical blocks to which the physical block belongs belong to an unused state with a virtual sector when the physical address in the unused state is not detected by the sector address detecting means.

【0014】つまり、本発明の請求項5に係わるメモリ
管理方式では、セクタアドレス管理手段により、任意の
仮想セクタに対応付けられた物理セクタが検索され、ブ
ロック情報管理手段により、セクタアドレス管理手段に
より検索された物理セクタに属する任意の物理ブロック
のブロック情報が検索され、セクタアドレス検出手段に
より、前記ブロック情報管理手段により検索されたブロ
ックに基づき未使用状態の物理ブロックが検索され、こ
の検索された未使用状態ブロックが属する物理セクタア
ドレスが検出されない場合に、セクタアドレス設定手段
により、属する全ての物理ブロックが未使用状態にある
物理セクタを仮想セクタに対応付けられ、アドレス生成
手段により、セクタアドレス設定手段により設定された
物理セクタのアドレスおよびブロック情報管理手段によ
り管理される物理ブロックのアドレスに基づいて物理メ
モリアドレスが生成されて、メモリに対するメモリライ
ト処理がなされることになる。
That is, in the memory management system according to the fifth aspect of the present invention, the sector address management means searches for a physical sector associated with an arbitrary virtual sector, and the block information management means uses the sector address management means. The block information of an arbitrary physical block belonging to the searched physical sector is searched, the physical address in the unused state is searched by the sector address detection means based on the block searched by the block information management means, and the searched physical block is searched. When the physical sector address to which the unused state block belongs is not detected, the sector address setting unit associates the physical sector in which all the physical blocks to which it belongs to the unused state with the virtual sector, and the address generation unit sets the sector address. Add physical sector set by Scan and is a physical memory address based on the address of the managed physical blocks by the block information management means generates, so that the memory write operation is performed to the memory.

【0015】[0015]

【発明の実施の形態】以下、図面により本発明の実施形
態について説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings.

【0016】図1は、本発明の実施形態に係わるメモリ
制御装置の構成を示す図である。
FIG. 1 is a diagram showing a configuration of a memory control device according to an embodiment of the present invention.

【0017】図1に示すように、このメモリ制御装置
は、不揮発性メモリ1、メモリ管理部2、メモリインタ
フェース3およびシステム制御部4で構成される。
As shown in FIG. 1, this memory control device comprises a non-volatile memory 1, a memory management unit 2, a memory interface 3 and a system control unit 4.

【0018】メモリ管理部2は、システムを制御するシ
ステム制御部4に対して、メモリ管理部2に対するコマ
ンド(命令)を示す信号を転送するコマンドバス11、
仮想メモリアドレスバス12およびデータバス13を介
して接続され、このメモリ管理部2に対してメモリイン
タフェース3が、メモリインタフェース3に対するコマ
ンドを示す信号を転送するメモリアクセスコマンドバス
14、物理メモリアドレスバス15およびメモリ管理部
2とメモリインタフェース3との間でデータを転送する
メモリデータバス16を介して接続され、このメモリイ
ンタフェース3に対して不揮発性メモリ1がメモリバス
17を介して接続される。
The memory management unit 2 transfers a signal indicating a command (command) to the memory management unit 2 to a system control unit 4 which controls the system,
The memory access command bus 14 and the physical memory address bus 15 are connected to each other via the virtual memory address bus 12 and the data bus 13. The memory interface 3 transfers a signal indicating a command to the memory interface 3 to the memory management unit 2. The memory management unit 2 and the memory interface 3 are connected via a memory data bus 16 for transferring data, and the nonvolatile memory 1 is connected to the memory interface 3 via a memory bus 17.

【0019】メモリバス17は、不揮発性メモリ1に対
して読み書きのアクセスするためのアクセスコマンド
(処理命令)を示す信号を転送する。
The memory bus 17 transfers a signal indicating an access command (processing instruction) for reading / writing access to the nonvolatile memory 1.

【0020】仮想メモリアドレスバス12は、仮想メモ
リ上の仮想メモリアドレスを示す信号をシステム制御部
4からメモリ管理部2に転送する。
The virtual memory address bus 12 transfers a signal indicating a virtual memory address on the virtual memory from the system control unit 4 to the memory management unit 2.

【0021】物理メモリアドレスバス15は、不揮発性
メモリ1上の物理メモリアドレスを示す信号をメモリ管
理部2からメモリインタフェース3に転送する。
The physical memory address bus 15 transfers a signal indicating a physical memory address on the nonvolatile memory 1 from the memory management unit 2 to the memory interface 3.

【0022】データバス13は、不揮発性メモリ1に対
して読み書きするデータを、メモリ管理部2を介してシ
ステム制御部4とメモリインタフェース3の間で転送す
る。
The data bus 13 transfers data to be read from and written to the non-volatile memory 1 between the system control unit 4 and the memory interface 3 via the memory management unit 2.

【0023】メモリ管理部2は、システム制御部4より
転送されるコマンドと仮想メモリアドレスに応じて、ア
クセスコマンドおよび物理メモリアドレスをメモリイン
タフェース3に転送するとともに、不揮発性メモリ1に
書き込むデータをメモリインタフェース3に転送し、不
揮発性メモリ1から読み出したデータを、システム制御
部4に転送する。
The memory management unit 2 transfers the access command and the physical memory address to the memory interface 3 according to the command and the virtual memory address transferred from the system control unit 4, and stores the data to be written in the nonvolatile memory 1 in the memory. The data transferred to the interface 3 and read from the non-volatile memory 1 is transferred to the system control unit 4.

【0024】メモリインタフェース3は、メモリバス1
7を介して不揮発性メモリ1に対してアクセス処理をす
る。
The memory interface 3 is a memory bus 1.
Access processing is performed to the non-volatile memory 1 via 7.

【0025】図2は、前記実施形態に係わるメモリ制御
装置に備えられるメモリ管理部2の構成を示す図であ
る。
FIG. 2 is a diagram showing the configuration of the memory management unit 2 provided in the memory control device according to the above embodiment.

【0026】図2に示すように、メモリ管理部2は、メ
モリ制御部21、データバッファ22、セクタアドレス
変換テーブル23、セクタアドレス変換制御部24、ブ
ロック情報テーブル25およびブロック情報制御部26
で構成される。
As shown in FIG. 2, the memory management unit 2 includes a memory control unit 21, a data buffer 22, a sector address conversion table 23, a sector address conversion control unit 24, a block information table 25 and a block information control unit 26.
Composed of.

【0027】そして、メモリ制御部21に対してデータ
バッファ22が接続されるとともに、メモリ制御部21
に対して、システム制御部4からコマンドバス11、仮
想メモリアドレスバス12が接続されるとともに、メモ
リインタフェース3に対して物理メモリアドレスバス1
5およびアクセスコマンドバス11が接続され、データ
バッファ22に対して、システム制御部4からデータバ
ス13が接続され、このデータバッファ22からメモリ
インタフェース3に対して、メモリデータバス16が接
続される。
The data buffer 22 is connected to the memory controller 21 and the memory controller 21 is connected.
, The command bus 11 and the virtual memory address bus 12 are connected from the system control unit 4, and the physical memory address bus 1 is connected to the memory interface 3.
5 and the access command bus 11 are connected, the data buffer 22 is connected to the data bus 13 from the system controller 4, and the data buffer 22 is connected to the memory interface 3 to the memory data bus 16.

【0028】また、メモリ制御部21に対してセクタア
ドレス変換テーブル23がセクタアドレス変換制御部2
4を介して接続されるとともに、ブロック情報テーブル
25がブロック情報制御部26を介して接続される。
In addition, the sector address conversion table 23 for the memory control unit 21 is stored in the sector address conversion control unit 2.
4 and the block information table 25 is connected via the block information control unit 26.

【0029】セクタアドレス変換テーブル23は、仮想
メモリのセクタ単位アドレス(仮想セクタアドレス)と
物理メモリのセクタ単位アドレス(物理セクタアドレ
ス)の対応付けを示すデータを記憶するメモリである。
The sector address conversion table 23 is a memory for storing data showing the correspondence between the sector unit address of the virtual memory (virtual sector address) and the sector unit address of the physical memory (physical sector address).

【0030】ブロック情報テーブル25は、物理セクタ
アドレス内に設定される複数の物理ブロックの使用状態
を示すデータすなわちブロックが使用されている状態で
あるか、または使用されていない状態であるかを示すデ
ータ(ブロック情報)を記憶するメモリである。
The block information table 25 indicates data indicating the usage status of a plurality of physical blocks set in the physical sector address, that is, whether the block is used or not used. It is a memory that stores data (block information).

【0031】セクタアドレス変換制御部24は、セクタ
アドレス変換テーブル23において仮想メモリに属する
全ての仮想セクタアドレスをインデックス値として、各
仮想セクタアドレスと対応付けられる一つまたは複数の
物理セクタアドレスを登録、削除および読み出しを行
い、また、セクタアドレス変換テーブル23に登録され
ていない物理セクタアドレスを検索する。
The sector address conversion control unit 24 registers one or a plurality of physical sector addresses associated with each virtual sector address by using all virtual sector addresses belonging to the virtual memory in the sector address conversion table 23 as index values. Deletion and reading are performed, and a physical sector address not registered in the sector address conversion table 23 is searched.

【0032】ブロック情報制御部26は、ブロック情報
テーブル25において物理メモリに属する全ての物理セ
クタアドレスをインデックス値として物理セクタアドレ
スに属する各物理ブロックに対して、ブロック情報を登
録、削除、更新および読み出しをする。
The block information control unit 26 registers, deletes, updates and reads block information with respect to each physical block belonging to the physical sector address using all the physical sector addresses belonging to the physical memory as index values in the block information table 25. do.

【0033】メモリ制御部21は、システム制御部4か
らのコマンドに応じて、メモリ制御部21とブロック情
報制御部26を制御し、仮想メモリアドレスに基づいて
適当な物理メモリアドレスに変更し、不揮発性メモリ1
に対するアクセスコマンドを転送し、また、データバッ
ファ22を介して不揮発性メモリ1に対して読み書きす
るデータの転送制御をする。
The memory control unit 21 controls the memory control unit 21 and the block information control unit 26 in response to a command from the system control unit 4, changes the physical memory address to an appropriate physical memory address on the basis of the virtual memory address, and nonvolatile memory. Sex memory 1
To the nonvolatile memory 1 via the data buffer 22 and transfer control of data to be read from and written to the nonvolatile memory 1.

【0034】データバッファ22は、システム制御部4
と不揮発性メモリ1とのデータ転送速度の調停を行う。
The data buffer 22 is used by the system controller 4
And arbitrates the data transfer rate between the nonvolatile memory 1 and the nonvolatile memory 1.

【0035】図3は、前記実施形態に係わるメモリ制御
装置に備えられるセクタアドレス変換テーブル23の構
成を示す図である。
FIG. 3 is a diagram showing the configuration of the sector address conversion table 23 provided in the memory control device according to the above embodiment.

【0036】図3に示すように、セクタアドレス変換テ
ーブル23は、仮想セクタアドレスと物理セクタアドレ
スとの対応関係を管理するテーブルデータであり、仮想
メモリ内の全ての仮想セクタアドレスが登録される仮想
セクタアドレスインデックス(p1)内の一つの仮想セ
クタアドレスが、一つの物理セクタアドレスまたは複数
の物理セクタアドレスで構成された物理セクタアドレス
群内のそれぞれの物理セクタアドレスと対応付けられる
構成である。
As shown in FIG. 3, the sector address conversion table 23 is table data for managing the correspondence between virtual sector addresses and physical sector addresses, and all virtual sector addresses in virtual memory are registered. One virtual sector address in the sector address index (p1) is associated with one physical sector address or each physical sector address in a physical sector address group composed of a plurality of physical sector addresses.

【0037】つまり、図3に示すセクタアドレス変換テ
ーブル23の場合には、仮想セクタアドレス“0”が、
物理セクタアドレス“3”、“8”、“N”および
“α”で構成された物理セクタアドレス群(p2)に対
応付けられることを示し、この物理セクタアドレス群内
の各物理セクタアドレスの配列は登録順番すなわち仮想
セクタアドレスに対応付けられた順番に従った配列であ
る。
That is, in the case of the sector address conversion table 23 shown in FIG. 3, the virtual sector address "0" is
It is shown that the physical sector addresses are associated with the physical sector address group (p2) composed of the physical sector addresses “3”, “8”, “N” and “α”, and the array of each physical sector address in this physical sector address group Is an array according to the registration order, that is, the order associated with the virtual sector address.

【0038】つまり、物理セクタアドレス群(p2)の
左端の物理セクタアドレス“3”は最初に仮想セクタア
ドレス“0“に対応付けられた物理セクタアドレスを示
し、右端の物理セクタアドレス”α“は、最後に仮想セ
クタアドレス”0“に対応付けられた物理セクタアドレ
スを示している。この場合、物理セクタアドレスの大小
は登録順番と関係ない。
That is, the physical sector address "3" at the left end of the physical sector address group (p2) indicates the physical sector address first associated with the virtual sector address "0", and the physical sector address "α" at the right end is Finally, the physical sector address associated with the virtual sector address "0" is shown. In this case, the size of the physical sector address has nothing to do with the registration order.

【0039】仮想セクタアドレスと物理セクタアドレス
との対応付けは、図3に示す仮想セクタアドレス“1”
のように物理セクタアドレスが全く対応付けられていな
い場合には、仮想セクタアドレスに対して新規に物理セ
クタアドレスを対応付けることでなされ、また、仮想セ
クタアドレス“2”のように既に仮想セクタアドレスに
対して物理セクタアドレスが対応付けられる場合で、新
しい物理セクタアドレス“18”を物理セクタ“9”の
後に登録したい場合には、p3に示すように物理セクタ
アドレス群内において物理セクタアドレスの登録順番を
変更して登録または最終物理セクタアドレスの直後の登
録順番として物理セクタアドレス群内の新たな物理セク
タアドレスとして追加することでなされる。
The correspondence between the virtual sector address and the physical sector address is the virtual sector address "1" shown in FIG.
When the physical sector address is not associated at all as shown in, the physical sector address is newly associated with the virtual sector address, and the virtual sector address is already assigned to the virtual sector address like “2”. In the case where a physical sector address is associated with the physical sector address, and a new physical sector address “18” is desired to be registered after the physical sector “9”, the physical sector address registration order within the physical sector address group as shown in p3. Is added and registered or added as a new physical sector address in the physical sector address group as the registration order immediately after the final physical sector address.

【0040】また、仮想セクタアドレスと物理セクタア
ドレスの対応付けを無くすには、p4に示すように物理
セクタアドレス群から各物理セクタアドレスを削除する
ことでなされる。
To eliminate the correspondence between the virtual sector address and the physical sector address, each physical sector address is deleted from the physical sector address group as shown in p4.

【0041】図4は、前記実施形態に係わるメモリ制御
装置に備えられるセクタアドレス変換テーブル23によ
る仮想メモリと物理メモリの対応付けの例を示す図であ
る。
FIG. 4 is a diagram showing an example of the correspondence between the virtual memory and the physical memory by the sector address conversion table 23 provided in the memory control device according to the above embodiment.

【0042】図4に示すように、仮想メモリのそれぞれ
の仮想セクタアドレスを示す仮想メモリセクタアドレス
マップと、物理メモリのそれぞれの物理セクタアドレス
を示す物理メモリセクタアドレスマップにおいて、一つ
の仮想セクタに対して一つまたは複数の物理セクタが対
応付けられる。
As shown in FIG. 4, in the virtual memory sector address map showing each virtual sector address of the virtual memory and the physical memory sector address map showing each physical sector address of the physical memory, one virtual sector is One or a plurality of physical sectors are associated with each other.

【0043】なお、図4に示される仮想メモリセクタア
ドレスマップの0セクタ、1セクタ、2セクタ、・・
・、L−1セクタおよびLセクタは、仮想セクタアドレ
ス“0”、“1”、“2”、・・、“L−1”および
“L”を示す領域を示し、物理メモリセクタアドレスマ
ップの0セクタ、1セクタ、2セクタ、・・・、N−1
セクタおよびNセクタは、物理セクタアドレス“0”、
・・“N−1”および“N”を示す領域である。
Incidentally, 0 sector, 1 sector, 2 sectors of the virtual memory sector address map shown in FIG.
., L-1 sector and L sector indicate areas indicating virtual sector addresses "0", "1", "2", ..., "L-1" and "L", respectively, in the physical memory sector address map. 0 sector, 1 sector, 2 sectors, ..., N-1
The sector and N sector are physical sector addresses “0”,
.. An area indicating "N-1" and "N".

【0044】また、一つの物理セクタすなわち物理セク
タアドレスで区別される各物理セクタは、p11で示す
ように複数の物理ブロックで構成され、それぞれの物理
ブロックが物理ブロックアドレスで区別される。
Further, one physical sector, that is, each physical sector distinguished by a physical sector address is composed of a plurality of physical blocks as shown by p11, and each physical block is distinguished by a physical block address.

【0045】つまり、図4に示される各物理ブロックの
0ブロック、1ブロック、・・・、M−1ブロックおよ
びMブロックは、物理セクタ内の物理ブロックアドレス
“0”、“1”、・・、“M−1”および“M”を示す
領域である。
That is, the 0 block, 1 block, ..., M−1 block and M block of each physical block shown in FIG. 4 are physical block addresses “0”, “1”, ... , "M-1" and "M".

【0046】図5は、前記実施形態に係わる仮想セクタ
と物理セクタとの対応付けの例を示す図である。
FIG. 5 is a diagram showing an example of correspondence between virtual sectors and physical sectors according to the above embodiment.

【0047】図5に示すように、仮想セクタ(p21)
は複数の仮想ブロック(p22)で構成され、それぞれ
の仮想ブロックが仮想ブロックアドレスで区別される。
As shown in FIG. 5, the virtual sector (p21)
Is composed of a plurality of virtual blocks (p22), and each virtual block is distinguished by a virtual block address.

【0048】そして、各仮想ブロックが、p23に示す
物理ブロック群の各物理ブロックと対応付けられること
になる。
Then, each virtual block is associated with each physical block of the physical block group shown in p23.

【0049】各仮想ブロックの0ブロック、1ブロッ
ク、・・・、M−1ブロックおよびMブロックは、仮想
セクタ内の仮想ブロックアドレス“0”、・・、“M−
1”および“M”を示す領域である。
The 0 block, 1 block, ..., M-1 block and M block of each virtual block are virtual block addresses "0", ..., "M-" in the virtual sector.
It is an area showing 1 ”and“ M ”.

【0050】そして、仮想セクタ内の仮想ブロックであ
る0ブロックは、この仮想ブロックアドレスの値と同一
の物理ブロックアドレス値である0ブロックが属する物
理セクタ(8セクタの0ブロック目)と対応付けられ
る。
The 0 block, which is a virtual block in the virtual sector, is associated with the physical sector (the 0th block of 8 sectors) to which the 0 block having the same physical block address value as this virtual block address value belongs. .

【0051】つまり、これらの各仮想ブロックが、同じ
アドレス値をもつ物理ブロックと対応付けられること
で、仮想セクタが、物理ブロックが属する一つまたは複
数の物理セクタと対応付けられることになる。
That is, by associating each of these virtual blocks with a physical block having the same address value, the virtual sector is associated with one or a plurality of physical sectors to which the physical block belongs.

【0052】図6は、前記実施形態に係わるメモリ制御
装置に備えられるブロック情報テーブル25の構成を示
す図である。
FIG. 6 is a diagram showing the configuration of the block information table 25 provided in the memory control device according to the above embodiment.

【0053】図6に示すように、このブロック情報テー
ブル25は、セクタアドレス変換テーブル23に登録さ
れた各物理セクタアドレスに属する全ての物理ブロック
に関する物理ブロック情報を管理するテーブルである。
As shown in FIG. 6, the block information table 25 is a table for managing physical block information regarding all physical blocks belonging to each physical sector address registered in the sector address conversion table 23.

【0054】このセクタアドレス変換テーブル23は、
物理メモリ内の全ての物理セクタアドレスが登録される
物理セクタアドレスインデックス(p31)、この物理
セクタアドレスインデックスの各物理セクタアドレスに
属する全ての物理ブロックアドレスが登録される物理ブ
ロックアドレスインデックス(p32)、および物理セ
クタアドレスインデック各物理ブロックの物理ブロック
情報を記憶する物理ブロック情報記憶領域で構成され、
物理セクタアドレス群を一つめのインデックスとし、物
理ブロックアドレス群を二つめのインデックスとしてブ
ロック情報記憶領域が参照される。
The sector address conversion table 23 is
A physical sector address index (p31) in which all physical sector addresses in the physical memory are registered, a physical block address index (p32) in which all physical block addresses belonging to each physical sector address of this physical sector address index are registered, And a physical sector address index, which is composed of a physical block information storage area for storing physical block information of each physical block,
The block information storage area is referred to by using the physical sector address group as the first index and the physical block address group as the second index.

【0055】例えば、p33で示すブロック記憶領域
は、物理セクタアドレスが“0”である物理セクタ内の
ブロックアドレスが“M”である物理ブロックのブロッ
ク情報記憶領域である。
For example, the block storage area indicated by p33 is a block information storage area of a physical block whose block address is "M" in the physical sector whose physical sector address is "0".

【0056】このブロック情報記憶領域に記憶される物
理ブロック情報は、参照元の物理セクタアドレス及び物
理ブロックアドレスから導かれる物理メモリアドレスに
対してデータの書き込みがなされたかどうかを示す情報
であり、既にライト(書き込み)済の状態の場合に
は、”1”のフラグが記憶され、未ライトつまりデータ
の書き込みがなされていない状態の場合には、”0”の
フラグが記憶される。
The physical block information stored in this block information storage area is information indicating whether or not data has been written to the physical memory address derived from the physical sector address and physical block address of the reference source. The flag of "1" is stored in the written (written) state, and the flag of "0" is stored in the unwritten state, that is, the state in which no data is written.

【0057】また、p34で示すように、任意の物理セ
クタアドレスに対応する特定の物理ブロックのブロック
情報を“0”または“1”に更新することができる。ま
た、p35で示される領域、つまり、任意の物理セクタ
アドレスに対応する全ての物理ブロックのブロック情報
を登録することができ、p36で示される領域、つま
り、任意の物理セクタアドレスに対応する全ての物理ブ
ロックのブロック情報を削除することができる。
Further, as shown in p34, the block information of a specific physical block corresponding to an arbitrary physical sector address can be updated to "0" or "1". Further, it is possible to register the block information of all the physical blocks corresponding to the area indicated by p35, that is, any physical sector address, and the area indicated by p36, that is, all the physical blocks corresponding to any physical sector address. The block information of the physical block can be deleted.

【0058】つまり、仮想セクタアドレスと複数の物理
セクタアドレスを対応付けることのできるセクタアドレ
ス変換テーブル23と対応付けた物理セクタアドレスの
各ブロックの使用状態を知ることのできるブロック情報
テーブル25により、一つの仮想セクタが複数の物理セ
クタと対応付けられるので、一つの仮想セクタを一つの
物理セクタのみに対応付ける必要が無いことから、オー
バライト時にメモリ上のデータ移動の発生が少ない高速
なメモリライトができる。
That is, the sector address conversion table 23 capable of associating a virtual sector address with a plurality of physical sector addresses and the block information table 25 capable of knowing the use state of each block of the physical sector address associated with each other Since the virtual sector is associated with a plurality of physical sectors, it is not necessary to associate one virtual sector with only one physical sector, so that high-speed memory write with less data movement on the memory during overwriting can be performed.

【0059】また、任意のブロック毎に使用状態が
“0”と“1“のフラグで示されることにより、システ
ムに見合ったブロック単位で管理を行うことが可能にな
るので、ブロック情報テーブル25のメモリ容量を削減
できる。
Further, since the use status is indicated by the flags of "0" and "1" for each arbitrary block, it becomes possible to manage in block units suitable for the system. The memory capacity can be reduced.

【0060】次に、前記構成によるメモリ制御装置の処
理について説明する。
Next, the processing of the memory control device having the above configuration will be described.

【0061】まず、メモリ制御装置によるメモリライト
(書き込み)処理について説明する。
First, the memory write (write) processing by the memory controller will be described.

【0062】図7は、前記実施形態に係わるメモリ制御
装置によるメモリライト処理(その1)を示すフローチ
ャートである。
FIG. 7 is a flow chart showing a memory write process (No. 1) by the memory control device according to the above embodiment.

【0063】図8は、前記実施形態に係わるメモリ制御
装置によるメモリライト処理(その2)を示すフローチ
ャートである。
FIG. 8 is a flowchart showing a memory write process (No. 2) by the memory control device according to the above embodiment.

【0064】図7および図8に示すように、まず、シス
テム制御部4よりコマンドバス11を介してメモリ制御
部21のメモリ管理部2にライト命令が与えられるとと
もに、仮想メモリアドレスバス12を介して仮想メモリ
アドレスがメモリ制御部21に転送されると、仮想メモ
リアドレスがメモリ制御部21により仮想セクタアドレ
スAと仮想ブロックアドレス(仮想ブロックオフセット
アドレス)Bとに分けられる(ステップA1)。
As shown in FIGS. 7 and 8, first, a write command is given from the system control unit 4 to the memory management unit 2 of the memory control unit 21 via the command bus 11 and also via the virtual memory address bus 12. When the virtual memory address is transferred to the memory controller 21, the memory controller 21 divides the virtual memory address into a virtual sector address A and a virtual block address (virtual block offset address) B (step A1).

【0065】なお、この仮想ブロックアドレスBに基づ
いて、ブロック情報テーブル上の物理ブロックアドレス
インデックス上で同じアドレス値をもつ物理ブロックア
ドレスが検索されて物理ブロックアドレスBとして取り
扱われることになる。
Based on the virtual block address B, a physical block address having the same address value is searched for in the physical block address index on the block information table and treated as the physical block address B.

【0066】次に、セクタアドレス変換制御部24によ
りセクタアドレス変換テーブル23が読み出されて、こ
のセクタアドレス変換テーブル23と仮想セクタアドレ
スAとが照合されて、該仮想セクタアドレスAに対応付
けられる一つまたは複数の物理セクタアドレスで構成さ
れる物理セクタアドレス群Cが検索されて、この物理セ
クタアドレス群Cが存在するかどうかが判断される(ス
テップA2,A3)。
Next, the sector address conversion control unit 24 reads the sector address conversion table 23, collates the sector address conversion table 23 with the virtual sector address A, and associates them with the virtual sector address A. The physical sector address group C composed of one or a plurality of physical sector addresses is searched, and it is judged whether or not the physical sector address group C exists (steps A2 and A3).

【0067】ステップA3で「YES」と判断される、
つまり仮想セクタアドレスAに物理セクタアドレス群C
が対応付けられる場合には、ブロック情報制御部26に
よりブロック情報テーブル25が読み出されて、このブ
ロック情報テーブル25において、物理セクタアドレス
群Cに属する各物理セクタアドレスおよび仮想ブロック
アドレスBと同じアドレスの物理ブロックアドレス(物
理ブロックオフセットアドレス)に基づいて、各物理ブ
ロックの中に未ライトブロックすなわちブロック情報が
“0”である物理ブロックが含まれているかどうかが判
断され、未ライトブロックが含まれていれば、そのうち
一つの物理ブロックが属する物理セクタアドレスが物理
セクタアドレスDとして検出されてセクタアドレス変換
テーブル23での検索が終了される(ステップA4,A
5)。
It is judged "YES" at step A3,
That is, the physical sector address group C is added to the virtual sector address A.
, The block information control unit 26 reads the block information table 25, and in the block information table 25, the same address as each physical sector address and virtual block address B belonging to the physical sector address group C is read. On the basis of the physical block address (physical block offset address) of the above, it is determined whether or not each physical block includes an unwritten block, that is, a physical block whose block information is "0", If so, the physical sector address to which one physical block belongs is detected as the physical sector address D, and the search in the sector address conversion table 23 is completed (steps A4 and A).
5).

【0068】図9は、前記実施形態に係わるメモリライ
ト処理において未ライトブロックが存在する物理セクタ
アドレスDが検出される例を示す図である。
FIG. 9 is a diagram showing an example in which the physical sector address D in which an unwritten block exists is detected in the memory write processing according to the above embodiment.

【0069】つまり、図9に示すように、セクタアドレ
ス変換テーブル23において、仮想セクタアドレスAに
対応付けられる物理セクタアドレス群Cに属する各物理
セクタアドレスが、p41に示すように、その登録順番
の古い順から“3”、“8”および“N”である場合
で、仮想ブロックアドレスBが“M−1”である場合に
は、検索の対象となる物理ブロックはp42で囲まれた
検索列となり、検索する順番は、p43に示すように物
理セクタアドレス群Cに属する各物理セクタアドレスの
登録順番の新しい方から古い方に向かう順番となる、つ
まり物理セクタアドレスが“N”で物理ブロックアドレ
スが“M−1”で対応付けられる物理ブロック(p4
4)から検索され、次に物理セクタアドレスが“8”
で、物理ブロックアドレスが“M−1”で対応付けられ
る物理ブロック(p45)が検索され、最後に物理セク
タアドレスが“3”で、物理ブロックアドレスが“M−
1”で対応付けられる物理ブロック(p46)が検索対
象となる。
That is, as shown in FIG. 9, in the sector address conversion table 23, each physical sector address belonging to the physical sector address group C associated with the virtual sector address A has the registration order as shown in p41. When the virtual block address B is “M−1” in the case of “3”, “8”, and “N” from the oldest order, the physical block to be searched is the search string surrounded by p42. Therefore, as shown in p43, the search order is from the newest registration order of the physical sector addresses belonging to the physical sector address group C to the oldest one, that is, the physical sector address is "N" and the physical block address is Are associated with "M-1" (p4
4), then the physical sector address is “8”
Then, the physical block (p45) associated with the physical block address "M-1" is searched, and finally the physical sector address is "3" and the physical block address is "M-".
The physical block (p46) associated with "1" is the search target.

【0070】そして、物理セクタアドレスの登録順番に
従って、検索列のなかで登録順番が最新のライト済ブロ
ックに対応する物理セクタアドレスの直前にある登録順
番の物理セクタアドレスに対応する未ライトブロック、
つまり、物理セクタアドレスが“8”で、物理ブロック
アドレスが“M−1”のブロック(p45)が未ライト
ブロックとして検出され、検出される物理セクタアドレ
スDは“8”となる。
Then, according to the registration order of the physical sector addresses, an unwritten block corresponding to the physical sector address of the registration order immediately before the physical sector address corresponding to the latest written block of the registration order in the search sequence,
That is, the block (p45) having the physical sector address "8" and the physical block address "M-1" is detected as an unwritten block, and the detected physical sector address D is "8".

【0071】なお、未ライトブロックの検索方法は、検
索順番に従って最初に検出された未ライトブロックに対
応する物理セクタアドレスを物理セクタアドレスDとし
て検出する方法としてもよく、この場合、図9に示す、
ブロック情報テーブル25から検出される物理セクタア
ドレスDは“N”となる。
The unwritten block search method may be a method in which the physical sector address corresponding to the unwritten block first detected in the search order is detected as the physical sector address D, and in this case, it is shown in FIG. ,
The physical sector address D detected from the block information table 25 is “N”.

【0072】図10は、前記実施形態に係わるリード処
理において未ライトブロックが存在する物理セクタアド
レスDを検出できない例を示す図である。
FIG. 10 is a diagram showing an example in which the physical sector address D in which an unwritten block exists cannot be detected in the read processing according to the above embodiment.

【0073】図10で示すように、メモリセクタアドレ
ス群Cの各要素セクタアドレスが登録の古い順から
“3”、“8”および“N”で構成され、仮想ブロック
アドレスBが“M”である場合には、検索列はp51で
示す検索列となり、登録の新しい物理セクタアドレスに
対応したブロック(p52)から順番に検索する。この
場合、検索されたブロックが全てライト済である、すな
わち検索された全ての物理ブロックのブロック情報が全
て“1”であり、検索列の中で登録順番が最新のライト
済ブロックが検索されるまでに未ライトブロックが検出
されないので、検出される物理セクタアドレスDは無し
となる。
As shown in FIG. 10, each element sector address of the memory sector address group C is composed of "3", "8" and "N" from the oldest registered one, and the virtual block address B is "M". In some cases, the search string becomes the search string indicated by p51, and the blocks (p52) corresponding to the new registered physical sector address are searched in order. In this case, all the searched blocks have been written, that is, the block information of all the searched physical blocks is “1”, and the written block with the latest registration order in the search sequence is searched. Since the unwritten block is not detected by the time, the detected physical sector address D is none.

【0074】図11は、前記実施形態に係わるブロック
情報テーブル25内のブロック情報の更新処理を示す図
である。
FIG. 11 is a diagram showing a process of updating the block information in the block information table 25 according to the above embodiment.

【0075】つまり、図11に示すように、検出された
物理セクタアドレスDが“8”であり、仮想ブロックア
ドレスBが“M−1”である場合には、更新すべきブロ
ック情報テーブル25のブロック情報はp61で示すブ
ロックであるので、このブロック情報が“0”から
“1”に書き換えられる、つまり未ライトブロックから
ライト済ブロックに更新される。
That is, as shown in FIG. 11, when the detected physical sector address D is "8" and the virtual block address B is "M-1", the block information table 25 to be updated is updated. Since the block information is the block indicated by p61, this block information is rewritten from "0" to "1", that is, the unwritten block is updated to the written block.

【0076】一方、ステップA3で「NO」と判断され
る、つまり仮想セクタアドレスAに物理セクタアドレス
群Cが対応付けられていない場合、または、ステップA
4で「NO」と判断される、すなわち未ライトブロック
である物理セクタアドレスDが検出されない場合には、
仮想セクタアドレスAに対して書き込みに使用する未ラ
イトブロックが対応付けられていないことになるので、
データがライト可能な未ライトブロックを新たに得る。
つまり、セクタアドレス変換テーブル23に登録されて
いない物理セクタアドレスがブロック情報テーブル25
に新たに登録されて、この物理セクタアドレスが物理セ
クタアドレスDとして設定される(ステップA6)。
On the other hand, if it is judged "NO" in step A3, that is, if the physical sector address group C is not associated with the virtual sector address A, or step A
When it is determined to be “NO” in 4, that is, when the physical sector address D which is an unwritten block is not detected,
Since the unwritten block used for writing is not associated with the virtual sector address A,
A new unwritten block in which data can be written is newly obtained.
That is, the physical sector address not registered in the sector address conversion table 23 is the block information table 25.
The physical sector address is newly registered in and the physical sector address is set as the physical sector address D (step A6).

【0077】ここで物理セクタアドレスDの各ブロック
はライト済であった可能性があるので、メモリインタフ
ェース3を通じて物理セクタアドレスDに対して消去処
理すなわち物理セクタアドレスDに属するブロックのブ
ロック情報をすべて“0”に書き換える処理がなされる
(ステップA7)。
Since there is a possibility that each block of the physical sector address D has already been written, the erase process is performed on the physical sector address D through the memory interface 3, that is, all block information of the block belonging to the physical sector address D is written. Processing for rewriting to "0" is performed (step A7).

【0078】そして、この物理セクタアドレスDが、セ
クタアドレス変換制御部24を介してセクタアドレス変
換テーブル23に仮想セクタアドレスAに対応する新規
物理セクタアドレスとして物理メモリセクタアドレス群
Cの末尾の登録順番である物理セクタアドレスの直後の
登録順番で登録され(ステップA8)、この新規物理セ
クタアドレスに属する各物理ブロックが未ライトブロッ
クである物理ブロックとしてブロック情報制御部26を
介してブロック情報テーブル25に登録される(ステッ
プA9)。
This physical sector address D is registered in the sector address conversion table 23 via the sector address conversion control unit 24 as a new physical sector address corresponding to the virtual sector address A at the end of the physical memory sector address group C in the registration order. Is registered in the registration order immediately after the physical sector address (step A8), and each physical block belonging to this new physical sector address is a physical block that is an unwritten block in the block information table 25 via the block information control unit 26. It is registered (step A9).

【0079】図12は、前記実施形態に係わるブロック
情報テーブル25に対する新規物理セクタアドレスの登
録処理と、この登録処理に伴うブロック情報の更新処理
を示す図である。
FIG. 12 is a diagram showing a process of registering a new physical sector address in the block information table 25 according to the above embodiment and a process of updating block information accompanying this registration process.

【0080】つまり、図12に示すように、ステップA
5で追加された新規物理セクタアドレスDが“α”であ
った場合には、ステップA6により物理セクタアドレス
D(=“α”)に属するブロック情報が消去処理され、
p71に示すように物理セクタアドレスD(=α)の全
ブロック情報は未ライトブロックとなり、ステップA8
により、既存のブロック情報テーブル25(p72)に
新規物理セクタアドレスに属する各物理ブロックが登録
される。
That is, as shown in FIG. 12, step A
If the new physical sector address D added in 5 is “α”, the block information belonging to the physical sector address D (= “α”) is erased in step A6,
As shown in p71, all block information of the physical sector address D (= α) becomes an unwritten block, and step A8
As a result, each physical block belonging to the new physical sector address is registered in the existing block information table 25 (p72).

【0081】そして、未ライトブロックの検索対象の仮
想ブロックアドレスBが“M”であった場合には、物理
セクタアドレスが“α”で、物理ブロックアドレスが
“M”である物理ブロック(p73)の情報が未ライト
ブロックからライト済ブロックに更新され、すなわち
“0”から“1”に書き換えられる。
When the virtual block address B to be searched for the unwritten block is "M", the physical block whose physical sector address is "α" and whose physical block address is "M" (p73). Is updated from the unwritten block to the written block, that is, rewritten from "0" to "1".

【0082】ステップA4で「YES」と判断される、
つまり物理セクタアドレスDが検出された場合、また
は、ステップA8により新規物理セクタアドレスに属す
る物理ブロックがブロック情報テーブル25に登録され
ると、物理セクタアドレスDおよび物理ブロックアドレ
スBから物理メモリアドレスEが計算され、メモリイン
タフェース3を介してメモリライトつまり不揮発性メモ
リ1に対するデータの書き込みを支持するメモリアクセ
スコマンドが転送されて物理メモリアドレスEに対して
データバッファ22にあるシステム制御部4からのブロ
ックデータが転送される(ステップA10,A11)。
It is judged "YES" in step A4,
That is, when the physical sector address D is detected, or when the physical block belonging to the new physical sector address is registered in the block information table 25 in step A8, the physical memory address E is changed from the physical sector address D and the physical block address B. The block data from the system control unit 4 in the data buffer 22 for the physical memory address E is calculated, and the memory access command for supporting the memory write, that is, the writing of the data to the nonvolatile memory 1, is transferred via the memory interface 3. Is transferred (steps A10, A11).

【0083】そして、ブロック情報制御部26を介して
ブロック情報テーブル25に登録される物理セクタアド
レスDと物理ブロックアドレスBとに対応する物理ブロ
ックのブロック情報がライト済を示す“0”に更新され
る(ステップA12)。
Then, the block information of the physical block corresponding to the physical sector address D and the physical block address B registered in the block information table 25 via the block information control unit 26 is updated to "0" indicating that writing has been completed. (Step A12).

【0084】つまり、メモリライト処理により、ライト
すべき仮想セクタアドレスに対応付けられた物理セクタ
アドレス群の中から適当な未ライトブロックが存在する
物理セクタアドレスが検出されるので、新規に物理セク
タを割り当てる必要がないメモリ資源の有効活用が可能
となる。
In other words, the memory write process detects a physical sector address in which an appropriate unwritten block exists from the physical sector address group associated with the virtual sector address to be written. It is possible to effectively use memory resources that do not need to be allocated.

【0085】次に、メモリ制御装置によるメモリリード
(読み出し)処理について説明する。
Next, the memory read processing by the memory control device will be described.

【0086】図13は、前記実施形態に係わるメモリ制
御装置によるメモリリード処理(その1)を示すフロー
チャートである。
FIG. 13 is a flow chart showing the memory read processing (No. 1) by the memory control device according to the above embodiment.

【0087】図14は、前記実施形態に係わるメモリ制
御装置によるメモリリード処理(その2)を示すフロー
チャートである。
FIG. 14 is a flow chart showing the memory read processing (No. 2) by the memory control device according to the above embodiment.

【0088】図13および図14に示すように、まず、
システム制御部4よりコマンドバス11を介してメモリ
管理部2のメモリ管理部2にメモリリード命令(読み出
し命令)が与えられるとともに、仮想メモリアドレスバ
ス12を介して仮想メモリアドレスがメモリ制御部21
に転送されると、仮想メモリアドレスがメモリ制御部2
1により仮想セクタアドレスAと仮想ブロックアドレス
Bとに分けられる(ステップB1)。
As shown in FIGS. 13 and 14, first,
The system control unit 4 gives a memory read command (read command) to the memory management unit 2 of the memory management unit 2 via the command bus 11, and the virtual memory address is transferred to the memory control unit 21 via the virtual memory address bus 12.
Is transferred to the memory control unit 2
It is divided into a virtual sector address A and a virtual block address B by 1 (step B1).

【0089】次に、セクタアドレス変換制御部24によ
りセクタアドレス変換テーブル23が読み出されて、こ
のセクタアドレス変換テーブル23と仮想セクタアドレ
スAとが照合されて、該仮想セクタアドレスAに対応付
けられる一つまたは複数の物理セクタアドレスで構成さ
れる物理セクタアドレス群Cが存在するかどうかが判断
される(ステップB2,B3)。
Next, the sector address conversion control unit 24 reads the sector address conversion table 23, collates the sector address conversion table 23 with the virtual sector address A, and associates them with the virtual sector address A. It is determined whether there is a physical sector address group C composed of one or a plurality of physical sector addresses (steps B2 and B3).

【0090】ステップB3で「YES」と判断される、
つまり仮想セクタアドレスAに物理セクタアドレス群C
が対応付けられる場合には、ブロック情報制御部26に
よりブロック情報テーブル25が読み出されて、このブ
ロック情報テーブル25において、物理セクタアドレス
群Cに属する各物理セクタアドレスおよび仮想ブロック
アドレスBと同じアドレス値の物理ブロックアドレスB
に基づいて、各ブロックの中にライト済ブロックすなわ
ちブロック情報が“1”であるブロックが含まれている
かどうかが判断され、ライト済ブロックが含まれていれ
ば、そのうち一つの物理ブロックが属する物理セクタア
ドレスが物理セクタアドレスDとして検出され、ライト
済ブロックが含まれていない場合には、検索列のなかで
いずれかの物理ブロックが属する物理セクタアドレスが
物理セクタアドレスDとして検出される(ステップB
4)。
It is judged "YES" in step B3,
That is, the physical sector address group C is added to the virtual sector address A.
, The block information control unit 26 reads the block information table 25, and in the block information table 25, the same address as each physical sector address and virtual block address B belonging to the physical sector address group C is read. Value physical block address B
It is determined whether each block includes a written block, that is, a block whose block information is “1”. If the written block is included, one of the physical blocks belongs to the physical block. When the sector address is detected as the physical sector address D and the written block is not included, the physical sector address to which any one of the physical blocks belongs is detected as the physical sector address D in the search column (step B).
4).

【0091】図15は、前記実施形態に係わるメモリリ
ード処理においてライト済ブロックが存在する物理セク
タアドレスDが検出される例を示す図である。
FIG. 15 is a diagram showing an example in which the physical sector address D in which the written block exists is detected in the memory read processing according to the above embodiment.

【0092】つまり、図15に示すように、仮想セクタ
アドレスAに対応付けられる物理セクタアドレス群Cに
属する各物理セクタアドレスが、その登録順番の古い順
から“3”,“8”および“N”である場合で、仮想ブ
ロックアドレスBが“M−1”である場合には、検索の
対象となる物理ブロックはp81で示す検索列となり、
検索する順番は、物理セクタアドレス群Cに属する各物
理セクタアドレスの登録順番の新しい方から古い方に、
つまり物理セクタアドレスが“N”で物理ブロックアド
レスが“M−1”で対応付けられる物理ブロック(p8
2)から検索され、次に物理セクタアドレスが“8”
で、物理ブロックアドレスが“M−1”で対応付けられ
る物理ブロック(p83)が検索され、最後に物理セク
タアドレスが“3”で、物理ブロックアドレスが“M−
1”で対応付けられる物理ブロック(p84)が検索さ
れることになる。
That is, as shown in FIG. 15, the physical sector addresses belonging to the physical sector address group C associated with the virtual sector address A are "3", "8", and "N" from the oldest registration order. And the virtual block address B is “M−1”, the physical block to be searched is the search string shown in p81,
The search order is from newest to oldest in the registration order of the physical sector addresses belonging to the physical sector address group C,
That is, the physical sector address is "N" and the physical block address is "M-1", and the associated physical block (p8
2), then the physical sector address is "8"
Then, the physical block (p83) associated with the physical block address "M-1" is searched, and finally the physical sector address is "3" and the physical block address is "M-".
The physical block (p84) associated with "1" will be searched.

【0093】そして、物理セクタアドレスの登録順番に
従って、検索列のなかで最初に検出されたライト済ブロ
ック、つまり、物理セクタアドレスが“8”、物理ブロ
ックアドレスが“M−1”のブロック(p83)がライ
ト済ブロックとして検出され、検出される物理セクタア
ドレスDは“8”となる。
Then, according to the registration order of the physical sector addresses, the first written block detected in the search string, that is, the block having the physical sector address of "8" and the physical block address of "M-1" (p83). ) Is detected as a written block, and the detected physical sector address D becomes "8".

【0094】図16は、前記実施形態に係わるメモリリ
ード処理においてライト済ブロックが存在する物理セク
タアドレスDが検出される例を示す図である。
FIG. 16 is a diagram showing an example in which the physical sector address D in which the written block exists is detected in the memory read processing according to the above embodiment.

【0095】図16で示すように、メモリセクタアドレ
ス群Cの各要素セクタアドレスが登録の古い順から
“3”、“8”および“N”で構成され、仮想ブロック
アドレスBが“1”である場合には、検索列はp91で
示す検索列となり、登録の新しい物理セクタアドレスに
対応したブロックから順番にp92、p93およびp9
4で示す物理ブロックが順番に検索される。この場合、
検索されたブロックが未ライトブロックである、すなわ
ちブロック情報が“1”であるライト済ブロックが検出
されないので、検索列において最初に検出された未ライ
トブロック(p92)が属する物理セクタアドレス、つ
まり検索列のブロックが属する最新の物理セクタアドレ
スつまり物理セクタアドレス“N”が物理セクタアドレ
スDとして検出される。
As shown in FIG. 16, each element sector address of the memory sector address group C is composed of "3", "8", and "N" from the oldest registered one, and the virtual block address B is "1". In some cases, the search string becomes the search string indicated by p91, and p92, p93, and p9 are arranged in order from the block corresponding to the new registered physical sector address.
The physical blocks indicated by 4 are searched in order. in this case,
Since the searched block is an unwritten block, that is, the written block whose block information is “1” is not detected, the physical sector address to which the unwritten block (p92) first detected in the search column belongs, that is, the searched The latest physical sector address to which the block of the column belongs, that is, the physical sector address "N" is detected as the physical sector address D.

【0096】なお、ここで検出される物理セクタアドレ
スDは検索列の物理ブロックが属する最新の物理セクタ
アドレスに限らずに、検出条件を変えることにより、検
索列(p91)に属するいずれかの物理ブロックに属す
る物理セクタアドレスが物理セクタアドレスDとして検
出されてもよい。
The physical sector address D detected here is not limited to the latest physical sector address to which the physical block of the search column belongs, but by changing the detection condition, one of the physical sector addresses belonging to the search column (p91) is changed. The physical sector address belonging to the block may be detected as the physical sector address D.

【0097】一方、ステップB3で「NO」と判断され
る、つまり仮想セクタアドレスAに物理セクタアドレス
群Cが対応付けられていない場合には、仮想セクタアド
レスAに対して物理ブロックが対応付けられていないこ
とになるので、データリードが可能な物理ブロックを新
たに得るためにセクタアドレス変換制御部24からセク
タアドレス変換テーブル23に登録されていない物理セ
クタアドレスがブロック情報テーブル25に追加登録さ
れ、この物理セクタアドレスが物理セクタアドレスDと
して設定される(ステップB5)。
On the other hand, if it is judged "NO" in step B3, that is, if the physical sector address group C is not associated with the virtual sector address A, the physical block is associated with the virtual sector address A. Therefore, in order to newly obtain a physical block from which data can be read, the physical sector address not registered in the sector address conversion table 23 is additionally registered in the block information table 25 from the sector address conversion control unit 24, This physical sector address is set as the physical sector address D (step B5).

【0098】なお、この設定された物理セクタアドレス
Dの各ブロックはライト済であった可能性があるので、
メモリインタフェース3を通じて物理セクタアドレスD
に対する消去処理がなされる(ステップB6)。
Since each block of the set physical sector address D may have been written,
Physical sector address D through memory interface 3
Is erased (step B6).

【0099】そして、この物理セクタアドレスDが、セ
クタアドレス変換制御部24を介してセクタアドレス変
換テーブル23に仮想セクタアドレスAに対応する新規
物理セクタアドレスとして物理メモリセクタアドレス群
Cの末尾の登録順番である物理セクタアドレスの直後の
登録順番で登録され(ステップB7)、この新規物理セ
クタアドレスに属する各物理ブロックが未ライトブロッ
クである物理ブロックとしてブロック情報制御部26を
介してブロック情報テーブル25に登録される(ステッ
プB8)。
The physical sector address D is registered in the sector address conversion table 23 via the sector address conversion control unit 24 as a new physical sector address corresponding to the virtual sector address A at the end of the physical memory sector address group C. Is registered in the registration order immediately after the physical sector address (step B7), and each physical block belonging to this new physical sector address is stored in the block information table 25 via the block information control unit 26 as a physical block that is an unwritten block. It is registered (step B8).

【0100】図17は、前記実施形態に係わるブロック
情報テーブル25に対する新規物理セクタアドレスの登
録処理を示す図である。
FIG. 17 is a diagram showing a process of registering a new physical sector address in the block information table 25 according to the above embodiment.

【0101】つまり、図17に示すように、ステップB
5で追加された新規物理セクタアドレスDの値が“γ”
であった場合には、ステップB6により物理セクタアド
レスD(=“γ”)に属するブロック情報が消去処理さ
れ、p101で示すように物理セクタアドレスD(=
“γ”)の全ブロック情報は未ライトブロックとなり、
ステップB8により、既存のブロック情報テーブル25
(p102)に新規物理セクタアドレスに属する各物理
ブロックが登録される。
That is, as shown in FIG. 17, step B
The value of the new physical sector address D added in 5 is “γ”
If it is, the block information belonging to the physical sector address D (= “γ”) is erased in step B6, and the physical sector address D (=
All block information of "γ") is an unwritten block,
By step B8, the existing block information table 25
Each physical block belonging to the new physical sector address is registered in (p102).

【0102】ステップB4で物理セクタアドレスDが検
出された場合、または、ステップB8により新規物理セ
クタアドレスに属する物理ブロックがブロック情報テー
ブル25に登録された場合には、物理セクタアドレスD
および物理ブロックアドレスBから物理メモリアドレス
Eが計算され、メモリインタフェース3を介して不揮発
性メモリ1にデータリードを指示するメモリアクセスコ
マンドが転送されて物理メモリアドレスEに対してデー
タバッファ22にあるシステム制御部4からのブロック
データが転送される(ステップB9,B10)。
If the physical sector address D is detected in step B4, or if the physical block belonging to the new physical sector address is registered in the block information table 25 in step B8, the physical sector address D
And a physical memory address E is calculated from the physical block address B, a memory access command for instructing data read is transferred to the non-volatile memory 1 via the memory interface 3, and the physical memory address E is stored in the data buffer 22. The block data is transferred from the control unit 4 (steps B9 and B10).

【0103】つまり、このメモリリード処理では、セク
タアドレス変換テーブル23で未だ対応付けられてない
仮想セクタアドレスに全ブロックが未使用の物理セクタ
アドレスを対応付けることにより、同仮想セクタアドレ
スにデータライトを行う場合に、新規物理セクタの対応
付け処理が不要となることから、ライト処理速度が向上
する。
That is, in this memory read process, data writing is performed to the virtual sector address by associating the physical sector address which is not used in all the blocks with the virtual sector address which is not yet associated in the sector address conversion table 23. In this case, the write processing speed is improved because the processing of associating a new physical sector is not necessary.

【0104】図18は、前記実施形態に係わるメモリ制
御装置によるメモリ結合処理(その1)を示すフローチ
ャートである。
FIG. 18 is a flow chart showing the memory connection processing (No. 1) by the memory control device according to the above embodiment.

【0105】図19は、前記実施形態に係わるメモリ制
御装置によるメモリ結合処理(その2)を示すフローチ
ャートである。
FIG. 19 is a flow chart showing the memory connection processing (No. 2) by the memory control device according to the above embodiment.

【0106】図20は、前記実施形態に係わるメモリ制
御装置によるメモリ結合処理(その3)を示すフローチ
ャートである。
FIG. 20 is a flow chart showing a memory connection process (3) by the memory control device according to the above embodiment.

【0107】このメモリ結合処理は、仮想メモリアドレ
スで指定される仮想セクタアドレスがセクタアドレス変
換テーブル23により複数の物理セクタアドレスと対応
付けられる場合、複数の物理セクタアドレスの各有効ブ
ロック(最も新しい物理セクタアドレスに属する物理ブ
ロック)を一つの物理セクタアドレスに属する各物理ブ
ロックに結合する命令である。
In this memory combination process, when the virtual sector address designated by the virtual memory address is associated with a plurality of physical sector addresses by the sector address conversion table 23, each valid block of the plurality of physical sector addresses (latest physical sector address) This is an instruction to combine a physical block belonging to a sector address) with each physical block belonging to one physical sector address.

【0108】なお、結合先の物理セクタアドレスは、新
規物理セクタアドレスと既存の物理セクタアドレスを任
意に選択できるものとする。
It is assumed that the new physical sector address and the existing physical sector address can be arbitrarily selected as the physical sector address of the coupling destination.

【0109】図18〜図20に示すように、まず、シス
テム制御部4よりコマンドバス11を介してメモリ管理
部2のメモリ管理部2にメモリ結合命令が与えられると
ともに、仮想メモリアドレスバス12を介して仮想メモ
リアドレスがメモリ制御部21に転送されると、仮想メ
モリアドレスがメモリ制御部21により仮想セクタアド
レスAと仮想ブロックアドレスBとに分けられる(ステ
ップC1)。
As shown in FIGS. 18 to 20, first of all, a memory coupling instruction is given from the system control unit 4 to the memory management unit 2 of the memory management unit 2 via the command bus 11 and the virtual memory address bus 12 is set. When the virtual memory address is transferred to the memory controller 21 via the memory controller 21, the memory controller 21 divides the virtual memory address into a virtual sector address A and a virtual block address B (step C1).

【0110】次に、セクタアドレス変換制御部24によ
りセクタアドレス変換テーブル23が読み出されて、こ
のセクタアドレス変換テーブル23において、仮想セク
タアドレスAに対応付けられる物理セクタアドレス群H
が検索されて(ステップC2)、この物理セクタアドレ
ス群Hから結合元である結合元物理セクタアドレス群C
が任意決定される(ステップC3)。なお、この結合元
物理セクタアドレス群Cにおける各物理セクタアドレス
の登録順番は連続したものであるとする。
Next, the sector address conversion control unit 24 reads the sector address conversion table 23, and in the sector address conversion table 23, the physical sector address group H associated with the virtual sector address A is read.
Is searched (step C2), and the physical sector address group H from which the physical sector address group C is combined is the original physical sector address group C
Is arbitrarily determined (step C3). It is assumed that the registration order of the physical sector addresses in the combination source physical sector address group C is continuous.

【0111】次に、結合元物理セクタアドレス群Cが二
つ以上の物理セクタアドレスで構成される物理セクタア
ドレス群であるかどうかが判断される(ステップC
4)。
Next, it is judged whether the combined physical sector address group C is a physical sector address group composed of two or more physical sector addresses (step C).
4).

【0112】このステップC4で「NO」と判断されれ
ば、結合すべき物理セクタアドレス群が存在しないので
終了処理がなされるが、「YES」と判断されれば、結
合先となる結合先物理セクタアドレスFが、結合元物理
セクタアドレス群Cのうちの一つであるのか、結合元物
理セクタアドレス群Cに属さない新規の物理セクタアド
レスであるかどうかが判断される(ステップC5)。
If "NO" is determined in this step C4, there is no physical sector address group to be combined, so the termination processing is performed. However, if "YES" is determined, the combination destination physical group to be combined is formed. It is determined whether the sector address F is one of the combination source physical sector address group C or a new physical sector address which does not belong to the combination source physical sector address group C (step C5).

【0113】ステップC5で「YES」と判断される、
すなわち、結合元物理セクタアドレス群Cから一つの物
理セクタアドレスが結合先物理セクタアドレスFとして
使用される場合には、結合元物理セクタアドレス群Cの
中で最新登録の物理セクタアドレス、例えば結合元物理
セクタアドレス群Cを構成する各物理セクタアドレスが
“3”、“8”および“N”である場合には、物理セク
タアドレス“N”が結合先物理セクタアドレスFとして
選択される(ステップC6)。
It is determined "YES" in step C5,
That is, when one physical sector address from the combination source physical sector address group C is used as the combination destination physical sector address F, the latest registered physical sector address in the combination source physical sector address group C, for example, the combination source physical sector address When the physical sector addresses forming the physical sector address group C are "3", "8" and "N", the physical sector address "N" is selected as the coupling destination physical sector address F (step C6). ).

【0114】結合先物理セクタアドレスFの選択方法
は、物理セクタアドレス群Cの直後の物理セクタアドレ
スを選択する方法としてもよく、この場合、仮想メモリ
アドレスに対応する物理セクタアドレス群Hを構成する
各物理セクタアドレスが“3”、“8”、“N”、およ
び“K”であって、この中で結合元物理セクタアドレス
群Cを構成する各物理セクタアドレスが“3”、“8”
および“N”である場合には、物理セクタアドレス
“K”が結合先物理セクタアドレスFとして選択され
る。
The method of selecting the coupling-destination physical sector address F may be a method of selecting the physical sector address immediately after the physical sector address group C. In this case, the physical sector address group H corresponding to the virtual memory address is formed. The physical sector addresses are “3”, “8”, “N”, and “K”, and among them, the physical sector addresses configuring the combined physical sector address group C are “3”, “8”.
And "N", the physical sector address "K" is selected as the coupling-destination physical sector address F.

【0115】なお、物理セクタアドレス群Hの最新物理
セクタアドレスが結合先物理セクタアドレスFそのもの
であった場合、例えば、物理セクタアドレス群Hを構成
する各物理セクタアドレスと、結合元物理セクタアドレ
ス群Cを構成する各物理セクタアドレスがともに
“3”、“8”および“N”である場合には、物理セク
タアドレス“N”が結合先物理セクタアドレスFとして
選択される。
When the latest physical sector address of the physical sector address group H is the joining destination physical sector address F itself, for example, each physical sector address forming the physical sector address group H and the joining source physical sector address group When each physical sector address forming C is "3", "8" and "N", the physical sector address "N" is selected as the coupling-destination physical sector address F.

【0116】ステップC5で「NO」と判断される、つ
まり、結合先物理セクタアドレスFが結合元物理セクタ
アドレス群Cに含まれないと指定された場合には、セク
タアドレス変換テーブル23に登録されていない物理セ
クタアドレスがブロック情報テーブル25に追加登録さ
れて、この物理セクタアドレスが結合先物理セクタアド
レスFとして設定される(ステップC7)。
If it is judged as "NO" in step C5, that is, if it is specified that the joining destination physical sector address F is not included in the joining source physical sector address group C, it is registered in the sector address conversion table 23. The physical sector address that is not registered is additionally registered in the block information table 25, and this physical sector address is set as the binding destination physical sector address F (step C7).

【0117】ここで、結合先物理セクタアドレスFの各
ブロックはライト済であった可能性があるので、メモリ
インタフェース3を通じて結合先物理セクタアドレスF
に対して消去処理がなされる(ステップC8)。
Since each block of the combined physical sector address F may have been already written, the combined physical sector address F can be read through the memory interface 3.
Is erased (step C8).

【0118】そして、この物理セクタアドレスDが、セ
クタアドレス変換制御部24を介してセクタアドレス変
換テーブル23に仮想セクタアドレスAに対応する新規
物理セクタアドレスとして物理メモリセクタアドレス群
Cの末尾の登録順番である物理セクタアドレスの直後の
登録順番で登録され(ステップC9)、この新規物理セ
クタアドレスに属する各物理ブロックが未ライトブロッ
クである物理ブロックとしてブロック情報制御部26を
介してブロック情報テーブル25に登録される(ステッ
プC10)。
Then, this physical sector address D is registered in the sector address conversion table 23 via the sector address conversion controller 24 as a new physical sector address corresponding to the virtual sector address A at the end of the physical memory sector address group C in the registration order. Is registered in the registration order immediately after the physical sector address (step C9), and each physical block belonging to this new physical sector address is a physical block that is an unwritten block and is stored in the block information table 25 via the block information control unit 26. It is registered (step C10).

【0119】図21は、前記実施形態に係わるメモリ結
合処理におけるブロック情報テーブル25での登録処理
および削除処理を示す図である。
FIG. 21 is a diagram showing registration processing and deletion processing in the block information table 25 in the memory combination processing according to the above embodiment.

【0120】つまり、図21に示すように、p111〜
p113に示される結合元物理セクタアドレス“3”、
“8”および“N”に属する各物理ブロックに対して、
p114で示されるように結合先物理セクタアドレス
“α”に属する各物理ブロックが未ライトブロックとし
てブロック情報テーブル25にそれぞれ登録される。
That is, as shown in FIG. 21, p111 to p111
Source physical sector address “3” shown in p113,
For each physical block belonging to “8” and “N”,
As shown in p114, each physical block belonging to the combined physical sector address “α” is registered in the block information table 25 as an unwritten block.

【0121】次に、結合元物理セクタアドレス群Cに属
する各物理ブロックの中から最新のライト済ブロックを
検索する対象となる物理ブロックアドレスの範囲であ
る、物理ブロックアドレス範囲Iが指定されて、物理ブ
ロックアドレス範囲Iの初期値(=“0”)が設定され
る(ステップC11)。なお、任意に選択した物理ブロ
ックアドレスだけを選択することもできる。
Next, a physical block address range I, which is a range of physical block addresses to be searched for the latest written block from each physical block belonging to the combination source physical sector address group C, is designated, The initial value (= “0”) of the physical block address range I is set (step C11). It is also possible to select only the arbitrarily selected physical block address.

【0122】そして、指定された物理ブロックアドレス
範囲Iの先頭の物理ブロックアドレスである各物理セク
タアドレスのブロック情報が未ライトブロックであるか
ライト済ブロックであるかどうかが判別され、最初に判
別されたライト済ブロックに属する物理セクタアドレス
が、物理セクタアドレスDとして検出される(ステップ
C12)。
Then, it is determined whether the block information of each physical sector address, which is the leading physical block address of the specified physical block address range I, is an unwritten block or a written block, and it is determined first. The physical sector address belonging to the written block is detected as the physical sector address D (step C12).

【0123】図22は、前記実施形態に係わるメモリ結
合処理においてライト済ブロックが存在する物理セクタ
アドレスDを検出する例を示す図である。
FIG. 22 is a diagram showing an example of detecting the physical sector address D where the written block exists in the memory connection processing according to the above embodiment.

【0124】つまり、図22に示すように、結合元物理
セクタアドレス群Cに属する各物理セクタアドレスが、
その登録順番の古い順から“3”、“8”および“N”
である場合で、物理ブロックアドレス範囲Iの先頭の物
理ブロックアドレスが“0”である場合には、検索の対
象となるブロックはp121で囲まれた検索列となり、
検索される順番は、物理セクタアドレス群Cに属する各
物理セクタアドレスの登録順番の新しい方から古い方
に、つまり物理セクタアドレスが“N”で物理ブロック
アドレスが“0”で対応付けられる物理ブロック(p1
22)から検索され、次に、物理セクタアドレスが
“8”で、物理ブロックアドレスが“0”で対応付けら
れる物理ブロック(p123)が検索され、最後に物理
セクタアドレスが“3”で、物理ブロックアドレスが
“0”で対応付けられる物理ブロック(p124)が検
索されることになる。
That is, as shown in FIG. 22, each physical sector address belonging to the combination source physical sector address group C is
"3", "8" and "N" from the oldest registration order
And the first physical block address of the physical block address range I is “0”, the block to be searched is the search string surrounded by p121,
The search order is from the newest to the oldest in the registration order of the physical sector addresses belonging to the physical sector address group C, that is, the physical block associated with the physical sector address "N" and the physical block address "0". (P1
22), the physical sector address is “8”, the physical block address is “0”, and the associated physical block (p123) is searched. Finally, the physical sector address is “3”, The physical block (p124) associated with the block address "0" is searched.

【0125】そして、物理セクタアドレスの登録順番に
従って、検索列のなかで最初に検出されたライト済ブロ
ック、つまり、物理セクタアドレスが“8”で、物理ブ
ロックアドレスが“0”である物理ブロックがライト済
ブロックとして検出され、この検索列において検出され
たライト済ブロックが属する物理セクタアドレスである
物理セクタアドレスDは“8”となる。
Then, according to the registration order of the physical sector addresses, the first written block detected in the search string, that is, the physical block having the physical sector address of "8" and the physical block address of "0", is detected. The physical sector address D, which is the physical sector address to which the written block detected in this search string belongs, is “8”.

【0126】図23は、前記実施形態に係わるメモリ結
合処理においてライト済ブロックが存在する物理セクタ
アドレスDが検出されない例を示す図である。
FIG. 23 is a diagram showing an example in which the physical sector address D in which the written block is present is not detected in the memory combination processing according to the above embodiment.

【0127】つまり、図23に示すように、メモリセク
タアドレス群Cの各要素セクタアドレスが登録の古い順
から“3”,”8”および“N”で構成され、物理ブロ
ックアドレスBが“1”である場合には、検索列はp1
31で囲まれた検索列となり、登録順番の新しい物理セ
クタアドレスに対応したブロックから順番に検索され
る。この場合、検索されたブロックが未ライトブロック
である、すなわちライト済ブロックが検出されないの
で、物理セクタアドレスDは検出されない。
That is, as shown in FIG. 23, each element sector address of the memory sector address group C is composed of "3", "8" and "N" from the oldest registered one, and the physical block address B is "1". , The search string is p1
The search sequence is surrounded by 31, and the blocks corresponding to the new physical sector address in the registration order are sequentially searched. In this case, since the searched block is an unwritten block, that is, the written block is not detected, the physical sector address D is not detected.

【0128】そして、ステップC12により物理セクタ
アドレスDが検出されたかどうかが判断され(ステップ
C13)、「YES」と判断された場合には、この物理
セクタアドレスDと、物理ブロックアドレス範囲Iのな
かで現在検索対象となっている各物理ブロックが属する
物理ブロックアドレスから物理メモリアドレスEが計算
されるとともに、結合先物理セクタアドレスFと、物理
ブロックアドレス範囲Iのなかで現在検索対象となって
いる物理ブロックが属する物理ブロックアドレスから物
理メモリアドレスGが計算され、メモリインタフェース
3を介して物理メモリアドレスEから物理メモリアドレ
スGに対してブロックデータが反映(コピー)される。
ただし、物理メモリアドレスEとFが同じアドレスであ
ればデータコピーの必要はない(ステップC14)。
Then, in step C12, it is judged whether or not the physical sector address D is detected (step C13). If it is judged "YES", the physical sector address D and the physical block address range I are determined. In addition to calculating the physical memory address E from the physical block address to which each physical block currently searched for belongs, it is currently searched for in the combined physical sector address F and the physical block address range I. The physical memory address G is calculated from the physical block address to which the physical block belongs, and the block data is reflected (copied) from the physical memory address E to the physical memory address G via the memory interface 3.
However, if the physical memory addresses E and F are the same address, it is not necessary to copy the data (step C14).

【0129】そして、ブロック情報制御部26を介して
ブロック情報テーブル25に登録される物理セクタアド
レスFの物理ブロックアドレス範囲Iに対応するブロッ
ク情報がライト済を示すブロック情報すなわち“1”に
更新される(ステップC15)。
Then, the block information corresponding to the physical block address range I of the physical sector address F registered in the block information table 25 via the block information control unit 26 is updated to block information indicating that the writing has been completed, that is, "1". (Step C15).

【0130】つまり、図21に示すように、物理セクタ
アドレス群Cにおける最新ライト済ブロックのデータが
コピーされる毎に、p114で示された物理セクタアド
レス“α”に属する各物理ブロックの中から、ステップ
Cにより検索された結果ライト済ブロックが存在する物
理ブロックアドレスと同一の物理ブロックのブロック情
報が、p115で示されるブロック情報である“1”に
更新される。
That is, as shown in FIG. 21, every time the data of the latest written block in the physical sector address group C is copied, from among the physical blocks belonging to the physical sector address “α” shown in p114. , The block information of the physical block having the same physical block address as the physical block address where the written block as a result of the search in step C exists is updated to “1” which is the block information indicated by p115.

【0131】次に、物理ブロックアドレスが、物理ブロ
ックアドレス範囲Iにおける最後のブロックアドレスつ
まり物理ブロックアドレスMであるかどうかが判断され
(ステップC16)、このステップCで「NO」と判断
される、すなわち物理ブロックアドレスが物理セクタア
ドレスアドレスMでなく、検索すべき物理ブロックアド
レスに属する物理ブロックが残っている場合には、現在
検索対象となっている物理ブロックアドレスの値に1を
加えた物理ブロックアドレスに属する各物理ブロックの
ブロック情報の判別が引き続きなされる(ステップC1
6→C17→C12)。
Next, it is judged whether or not the physical block address is the last block address in the physical block address range I, that is, the physical block address M (step C16), and it is judged "NO" in this step C. That is, when the physical block address is not the physical sector address address M and there is a physical block belonging to the physical block address to be searched, a physical block obtained by adding 1 to the value of the physical block address currently being searched. The block information of each physical block belonging to the address is continuously determined (step C1).
6 → C17 → C12).

【0132】図24は、前記実施形態に係わるメモリ結
合処理において、最新ライト済ブロックの検出例を示す
図である。
FIG. 24 is a diagram showing an example of detection of the latest written block in the memory combination processing according to the above embodiment.

【0133】図24に示すように、物理ブロックアドレ
ス範囲Iの先頭が“0”で、同じく最後が“M”である
場合で、検索順番が、物理ブロックアドレス“N”、
“8”そして“3”の順番である場合には、p132で
示す物理ブロックが、各物理ブロックアドレスに属する
物理ブロックの中から最新ライト済ブロックとして検出
される物理ブロックとなる。
As shown in FIG. 24, when the start of the physical block address range I is "0" and the end is "M", the search order is the physical block address "N",
When the order is “8” and “3”, the physical block indicated by p132 is the physical block detected as the latest written block from the physical blocks belonging to each physical block address.

【0134】次に、ブロック情報制御部26を介してブ
ロック情報テーブル25に登録される結合元物理セクタ
アドレス群Cに属する物理ブロックの全ブロック情報が
消去すなわち“0”に更新処理される(ステップC1
8)。ただし、結合先物理セクタアドレスFが結合元物
理セクタアドレス群Cに属する物理セクタアドレスの中
で最新の登録アドレスであれば、物理セクタアドレスF
に属する物理ブロック情報の消去はなされない。
Next, all block information of the physical blocks belonging to the combined physical sector address group C registered in the block information table 25 via the block information control unit 26 is erased, that is, updated to "0" (step). C1
8). However, if the joining destination physical sector address F is the latest registered address among the physical sector addresses belonging to the joining source physical sector address group C, the physical sector address F
The physical block information belonging to is not erased.

【0135】そして、結合元物理セクタアドレス群Cに
対する物理ブロックアドレス範囲I毎の最新ライト済ブ
ロックのデータは、全て結合先物理セクタアドレスFの
物理ブロックに存在するので、セクタアドレス変換制御
部24を介してセクタアドレス変換テーブル23から結
合元物理セクタアドレス群Cが削除される(ステップC
19)。
Since all the data of the latest written block for each physical block address range I for the combined physical sector address group C exists in the physical block of the combined physical sector address F, the sector address conversion control unit 24 is set. The merged source physical sector address group C is deleted from the sector address conversion table 23 (step C
19).

【0136】ただし、結合先物理セクタアドレスFが結
合元物理セクタアドレス群Cの中で最新登録の物理セク
タアドレスであれば、物理セクタアドレスFの削除はな
されない。
However, if the combination destination physical sector address F is the latest registered physical sector address in the combination source physical sector address group C, the physical sector address F is not deleted.

【0137】つまり、図21に示すように、物理セクタ
アドレス群Cの各物理セクタアドレスが“3”、“8”
および“N”である場合には、ステップC19により、
p111〜p113で示される物理セクタアドレス、つ
まり“3”、“8”および“N”の全てがブロック情報
テーブル25およびセクタアドレス変換テーブル23か
ら削除されるが、結合先物理セクタアドレスFが結合元
物理セクタアドレス群Cの中の最新登録アドレスである
“N”であれば、p111とp112で示される物理セ
クタアドレスつまり“3”と“8”のみがブロック情報
テーブル25およびセクタアドレス変換テーブル23か
ら削除される。
That is, as shown in FIG. 21, the physical sector addresses of the physical sector address group C are "3" and "8".
And if “N”, then by step C19,
The physical sector addresses indicated by p111 to p113, that is, "3", "8", and "N" are all deleted from the block information table 25 and the sector address conversion table 23, but the merged physical sector address F is the merged source. If it is the latest registered address “N” in the physical sector address group C, only the physical sector addresses indicated by p111 and p112, that is, “3” and “8” are stored in the block information table 25 and the sector address conversion table 23. To be deleted.

【0138】図25は、前記実施形態に係わるメモリ結
合処理においてセクタアドレス変換テーブル23での登
録処理および削除処理を示す図である。
FIG. 25 is a diagram showing a registration process and a deletion process in the sector address conversion table 23 in the memory combination process according to the above embodiment.

【0139】図25に示すように、仮想セクタアドレス
Aが“0”であり、この仮想セクタアドレス“0”がセ
クタアドレス変換テーブル23により物理セクタアドレ
ス群Hに属する物理セクタアドレス“3”、“8”、
“N”および“K”で対応付けられ、結合先物理セクタ
アドレスFが“α”であり、結合元物理セクタアドレス
群Cに属する各物理セクタアドレスの“3”、“8”お
よび“N”が選択された場合、新規物理セクタアドレス
“α”は、p141で示される結合元物理セクタアドレ
ス群Cの末尾の物理セクタアドレス“N”の直後(p1
42)に登録される。
As shown in FIG. 25, the virtual sector address A is "0", and the virtual sector address "0" belongs to the physical sector address group H according to the sector address conversion table 23. 8 ",
“3”, “8”, and “N” of each physical sector address that is associated with “N” and “K”, the coupling destination physical sector address F is “α”, and belongs to the coupling source physical sector address group C. Is selected, the new physical sector address “α” is immediately after the end physical sector address “N” of the combination source physical sector address group C indicated by p141 (p1).
42).

【0140】その結果、仮想セクタアドレス“0”は、
一時的に物理セクタアドレス群“3”、“8”、
“N”、“α”および“K”と対応付けられる。
As a result, the virtual sector address "0" is
Physical sector address groups “3”, “8”,
It is associated with “N”, “α” and “K”.

【0141】この場合には、図20に示すステップC1
9の処理により、p141で示す結合元物理セクタアド
レス群C“3”,”8”および”N”の登録が消去され
ることになり(p143)、その結果、仮想セクタアド
レスAはアドレス変換テーブルで物理セクタアドレス群
Hの物理セクタアドレスの“α”と”K”に対応付けら
れることになる。
In this case, step C1 shown in FIG.
By the processing of 9, the registration of the combination source physical sector address groups C "3", "8" and "N" shown in p141 is erased (p143), and as a result, the virtual sector address A becomes the address conversion table. Then, the physical sector addresses of the physical sector address group H are associated with “α” and “K”.

【0142】また、結合元物理セクタアドレス群Cが
“3”、“8”および“N”であり、結合先物理セクタ
アドレスFが既存物理セクタアドレス“N”であり、仮
想セクタアドレスAが“0”であり、仮想セクタアドレ
スAはアドレス変換テーブルで物理セクタアドレス群H
に属する物理セクタアドレスの“3”、“8”、“N”
および“K”で対応付けられる場合には、図20に示す
ステップC19の処理により結合元物理セクタアドレス
群Cに属する物理セクタアドレスの“3”および“8”
の登録が消去されることになり(p144)、その結
果、仮想セクタアドレスAはアドレス変換テーブルで物
理セクタアドレス群Hに属する物理セクタアドレスの”
N”と“K”に対応付けられることになる。
Further, the combination source physical sector address group C is "3", "8" and "N", the connection destination physical sector address F is the existing physical sector address "N", and the virtual sector address A is " 0 ", and the virtual sector address A is a physical sector address group H in the address conversion table.
Physical sector address "3", "8", "N" belonging to
And "K", the physical sector addresses "3" and "8" belonging to the combined physical sector address group C are processed by the processing of step C19 shown in FIG.
Will be deleted (p144), and as a result, the virtual sector address A will be the physical sector address of the physical sector address group H in the address conversion table.
It will be associated with N "and" K ".

【0143】また、結合元物理セクタアドレス群Cに属
する物理セクタアドレスが“3”、“8”および“N”
であり、結合先物理セクタアドレスFが既存の物理セク
タである“K”であり、仮想セクタアドレスAが“0”
であり、仮想セクタアドレスAはアドレス変換テーブル
で物理セクタアドレス群Hに属する物理セクタアドレス
の“3”、“8”、“N”および“K”に対応付けられ
る場合、図20に示すステップC19の処理により、p
141で示す結合元物理セクタアドレス群Cに属する物
理セクタアドレスの“3”、“8”および“N”の登録
が消去されることになり(p143)、その結果、仮想
セクタアドレスAはアドレス変換テーブルで物理セクタ
アドレス群Hに属する物理セクタアドレスの“K”に対
応付けられることになる。
Further, the physical sector addresses belonging to the combination source physical sector address group C are "3", "8" and "N".
, The coupling-destination physical sector address F is “K”, which is an existing physical sector, and the virtual sector address A is “0”.
If the virtual sector address A is associated with the physical sector addresses “3”, “8”, “N” and “K” belonging to the physical sector address group H in the address conversion table, step C19 shown in FIG. By the processing of p
The registration of physical sector addresses “3”, “8” and “N” belonging to the combination source physical sector address group C indicated by 141 is erased (p143), and as a result, the virtual sector address A is converted into an address. In the table, it is associated with the physical sector address “K” belonging to the physical sector address group H.

【0144】図26は、前期実施形態に係わるメモリ結
合処理において、結合対象となる物理ブロックアドレス
を任意に選択する場合の処理を示すフローチャートであ
る。
FIG. 26 is a flow chart showing a process for arbitrarily selecting a physical block address to be combined in the memory combination process according to the first embodiment.

【0145】なお、図26に示すフローチャートは、図
18〜図20に示すフローチャートの一部を置き換えた
ものである。
The flowchart shown in FIG. 26 is a partial replacement of the flowchart shown in FIGS.

【0146】まず、図26に示すように、まず、結合先
セクタアドレスの選択処理すなわち図19に示すステッ
プC1〜C10と同様の処理がなされると(ステップC
20)、結合の対象とすべき物理ブロックアドレス群J
の範囲が任意に設定される(ステップC21)。ここで
物理ブロックアドレス群Jの設定方法は特に問わない。
例えば、図18に示すステップC1の処理において分け
られる物理ブロックアドレスBが使用されてもよいし、
データバス13を介して物理ブロックアドレス群Jの情
報を得ることで設定がなされてもよい。
First, as shown in FIG. 26, first, when the process of selecting a sector address to be combined, that is, the same process as steps C1 to C10 shown in FIG. 19, is performed (step C).
20), physical block address group J to be combined
Is set arbitrarily (step C21). Here, the method of setting the physical block address group J is not particularly limited.
For example, the physical block address B divided in the process of step C1 shown in FIG. 18 may be used,
The setting may be performed by obtaining the information of the physical block address group J via the data bus 13.

【0147】そして、結合対象となる物理ブロックアド
レスを示す物理ブロックアドレス範囲Iに基づいて物理
ブロックアドレス群Jの先頭要素が設定され(ステップ
C22)、結合処理すなわち図20に示すステップC1
2〜C15と同様の処理がなされる(ステップC2
3)。なお、ステップC23において、最新ライト済の
物理セクタアドレスが検出されたかどうかが判断される
場合、つまり、図20に示すステップC12と同様の処
理により物理セクタアドレスDが検出されないと判断さ
れた場合には、物理ブロックアドレス範囲Jにおいて現
在結合処理がなされている物理ブロックアドレス値に対
して1を加えた物理ブロックアドレスに係る結合処理が
なされる(ステップC13→C17→C12)。
Then, the head element of the physical block address group J is set based on the physical block address range I indicating the physical block address to be combined (step C22), and the combining process, that is, step C1 shown in FIG.
2 to C15 are performed (step C2)
3). Note that in step C23, when it is determined whether or not the latest written physical sector address is detected, that is, when it is determined that the physical sector address D is not detected by the same processing as in step C12 shown in FIG. In the physical block address range J, the joining process for the physical block address obtained by adding 1 to the physical block address value currently being joined is performed (steps C13 → C17 → C12).

【0148】そして、ステップC23までの処理終了後
に、物理ブロックアドレス範囲Iが物理ブロックアドレ
ス群Jの最終要素であるかどうかの判断がなされ(ステ
ップC24)、「YES」と判断されると終了処理がな
され、「NO」と判断される。つまり最終要素で無けれ
ば、物理ブロックアドレス範囲Jにおいて現在結合処理
がなされている物理ブロックアドレス値に対して1を加
えた物理ブロックアドレスに係る結合処理がなされる
(ステップC24→C25→C23)。
After the processing up to step C23, it is judged whether or not the physical block address range I is the last element of the physical block address group J (step C24), and if "YES" is judged, the ending processing is carried out. Is made and it is determined to be “NO”. That is, if it is not the last element, the combining process is performed on the physical block address obtained by adding 1 to the physical block address value currently being combined in the physical block address range J (steps C24 → C25 → C23).

【0149】なお、図20に示すステップC18および
C19の処理はなされない。これは、図18〜図20に
示す結合処理が結合元の物理セクタアドレスに属する全
ブロックに対する処理なのに対して、一部分の物理ブロ
ックアドレスの範囲において結合処理がなされるため、
結合処理が終了しても結合元の物理セクタアドレスに属
する各物理ブロックの中に有効ブロックつまり結合先物
理セクタアドレスに属する物理ブロックに対して結合処
理がなされていない物理ブロックが存在する可能性があ
るためである。
The processing of steps C18 and C19 shown in FIG. 20 is not performed. This is because the combining process shown in FIGS. 18 to 20 is a process for all the blocks belonging to the physical sector address of the combination source, but the combining process is performed in the range of a partial physical block address.
Even if the combining process ends, there is a possibility that a valid block, that is, a physical block that has not been combined with the physical block belonging to the combination destination physical sector address exists in each physical block belonging to the combination source physical sector address. Because there is.

【0150】つまり、このメモリ結合処理により、セク
タアドレス変換テーブル23とブロック情報テーブル2
5により複数の物理セクタアドレスとを対応付けられた
仮想セクタアドレスが、一つの物理セクタアドレスと対
応づけられるので、メモリ資源を状況に応じて有効に使
用することができる。
That is, by this memory combination processing, the sector address conversion table 23 and the block information table 2
Since a virtual sector address associated with a plurality of physical sector addresses by 5 is associated with one physical sector address, memory resources can be effectively used depending on the situation.

【0151】図32は、従来のメモリ制御装置におい
て、全ブロックに対して任意のデータライトを行った仮
想セクタに対してオーバライトする時の例を示した図で
あり、同図(a)は、仮想セクタに対してデータを書き
込む前の状態を示す図であり、同図(b)は、仮想セク
タに対してデータを書き込む際の物理セクタに対する処
理を示す図である。
FIG. 32 is a diagram showing an example of overwriting on a virtual sector in which arbitrary data is written to all blocks in the conventional memory control device. FIG. Is a diagram showing a state before writing data to the virtual sector, and FIG. 6B is a diagram showing a process for the physical sector when writing data to the virtual sector.

【0152】まず、図32(a)において、既に全ブロ
ックに対して任意のデータライトがなされた仮想セクタ
Gは物理セクタXとセクタアドレス変換制御部24によ
り対応付けられる。ここで、仮想セクタGの0番ブロッ
クに任意のブロックデータ(P151)をライトすると
仮定すると、既に実際にライトすべき物理セクタX上の
p152で示す物理ブロックはライト済であるので、ブ
ロックデータ(p151)は、新たに用意された、物理
ブロックが全て未ライトブロックである物理セクタY上
の、0番ブロックつまり物理ブロックアドレスが“0”
である物理ブロック(p153)にライトされ、物理セ
クタX上のライト対象外の全ブロックすなわち仮想セク
タGの1番ブロックからM番ブロックまでのブロック群
に対応付けられていたp154に示す物理ブロック群の
ブロックデータが、新たに対応付けられた物理セクタY
の1番ブロックからM番ブロックである物理ブロック群
(p155)にコピーされ、図32(b)に示すように
セクタアドレス変換制御部24により仮想セクタGと物
理セクタXとの対応付けが無くなり、新しい物理セクタ
Yが仮想セクタと対応付けられる。
First, in FIG. 32A, the virtual sector G for which arbitrary data has already been written to all blocks is associated with the physical sector X by the sector address conversion control unit 24. Here, if it is assumed that arbitrary block data (P151) is written in the 0th block of the virtual sector G, since the physical block indicated by p152 on the physical sector X to be actually written has already been written, the block data ( p151) is a block 0, that is, a physical block address is “0” on the newly prepared physical sector Y in which all physical blocks are unwritten blocks.
Physical block (p153) that is written to all physical blocks that are not write targets on physical sector X, that is, the physical block group shown in p154 that is associated with the block group from the first block to the Mth block of virtual sector G. Block data is newly associated with the physical sector Y
No. 1 block is copied to the physical block group (p155) which is the Mth block, and as shown in FIG. 32B, the sector address conversion control unit 24 loses the correspondence between the virtual sector G and the physical sector X, The new physical sector Y is associated with the virtual sector.

【0153】つまり、物理メモリへの一つのブロックの
ライト時間をx、リード時間をy、一つのセクタがM個
のブロックで構成されていると仮定すると、ブロックデ
ータf0のライト処理に要したメモリアクセス合計時間
T1は、
That is, assuming that the write time of one block to the physical memory is x, the read time is y, and one sector is composed of M blocks, the memory required for the write processing of the block data f0. The total access time T1 is

【数1】 となる。[Equation 1] Becomes

【0154】図27は、本発明の実施形態に係わるメモ
リ制御装置において、全ブロックに対して任意のデータ
ライトを行った仮想セクタに対してオーバライトする時
の例を示した図であり、同図(a)は、仮想セクタに対
して一つ目のデータを書き込む前の状態を示す図であ
り、同図(b)は、仮想セクタに対して一つ目のデータ
を書き込む際の物理セクタに対する処理および二つめの
データを書き込む前の状態を示す図であり、同図(c)
は、仮想セクタに対して二つめのデータを書き込む際の
物理セクタに対する処理を示す図である。
FIG. 27 is a diagram showing an example of overwriting a virtual sector in which arbitrary data is written to all blocks in the memory control device according to the embodiment of the present invention. FIG. 6A is a diagram showing a state before writing the first data to the virtual sector, and FIG. 6B is a physical sector when writing the first data to the virtual sector. FIG. 6C is a diagram showing a state before the processing for and the second data is written, FIG.
FIG. 6 is a diagram showing processing for a physical sector when writing second data to a virtual sector.

【0155】まず、図27(a)において、既に全ブロ
ックに対して任意のデータライトがなされた仮想セクタ
Gは物理セクタXとセクタアドレス変換制御部24によ
り1対1で対応付けられる。ここで、仮想セクタGの0
番ブロックに任意のブロックデータ(p161)をライ
トするものと仮定する。
First, in FIG. 27A, the virtual sector G in which arbitrary data has already been written to all blocks is associated with the physical sector X by the sector address conversion control unit 24 in a one-to-one correspondence. Here, 0 of the virtual sector G
It is assumed that an arbitrary block data (p161) is written in the No. block.

【0156】このとき、既に実際にライトすべき物理メ
モリ上の物理ブロック(p162)はライト済であるの
で、図27(b)に示すように、セクタアドレス変換制
御部24により新しい物理セクタYが用意され、ブロッ
クデータ(p161)が物理セクタY上の0番ブロック
つまり物理ブロックアドレスが“0”である物理ブロッ
ク(p163)にライトされ、セクタアドレス変換制御
部24により仮想セクタGに対して物理セクタYが新た
に対応付けられる。このとき、仮想セクタGと物理セク
タXとの対応付けは残ったままであるので、仮想セクタ
Gが物理セクタXと物理セクタYがともに対応付けられ
ることになる。更に仮想セクタGの0番ブロックに対応
付けられる物理セクタXの0番ブロック(p162)
と、同じく仮想セクタGの0番ブロックに対応付けられ
る物理セクタYの0番ブロック(p163)のどちらの
ブロックに書き込まれたデータが有効すなわち最新ライ
ト済のデータであるかを判別するためにブロック情報制
御部26でブロック情報が管理される。
At this time, since the physical block (p162) on the physical memory to be actually written has already been written, as shown in FIG. 27 (b), the sector address conversion control unit 24 creates a new physical sector Y. The prepared block data (p161) is written to the 0th block on the physical sector Y, that is, the physical block (p163) whose physical block address is “0”, and the sector address conversion control unit 24 physically writes the virtual sector G. The sector Y is newly associated. At this time, since the association between the virtual sector G and the physical sector X remains, the virtual sector G is associated with both the physical sector X and the physical sector Y. Further, block 0 of physical sector X associated with block 0 of virtual sector G (p162)
And a block for determining which block of the 0th block (p163) of the physical sector Y, which is also associated with the 0th block of the virtual sector G, is valid, that is, the latest written data. The block information is managed by the information control unit 26.

【0157】図32と同様に、物理メモリへの一つのブ
ロックのライト時間をx、リード時間をyとし、一つの
セクタがM個のブロックで構成されていると仮定する
と、ブロックデータg0のライト処理終了までに要した
メモリアクセス合計時間T2は、
As in FIG. 32, assuming that the write time of one block to the physical memory is x, the read time is y, and one sector is composed of M blocks, the write of the block data g0 is performed. The total memory access time T2 required to complete the processing is

【数2】 となる。[Equation 2] Becomes

【0158】なお、この場合、物理セクタXの1番ブロ
ックからM番ブロックまでのブロックデータ(p16
7)は仮想セクタGの1番ブロックからM番ブロックま
でに対応付けられることになる。
In this case, the block data from the first block to the Mth block of the physical sector X (p16
7) will be associated with blocks 1 to M of virtual sector G.

【0159】更に、図27(b)において、仮想セクタ
Gの1番ブロックに任意のデータ(p164)をライト
すると仮定する。
Further, in FIG. 27B, it is assumed that arbitrary data (p164) is written in the first block of virtual sector G.

【0160】この場合、実際にライトすべき物理セクタ
Y上の1番ブロック(p165)は空であるので、図2
7(c)で示すように、新規ブロックデータ(p16
4)が物理セクタY上の1番ブロック(p165)にラ
イトされ、物理セクタX上の1番ブロック(p166)
と物理セクタY上の1番ブロック(p165)のどちら
のブロックに書き込まれたデータが有効であるかを判別
するためにブロック情報制御部26でブロック情報が管
理される。
In this case, since the first block (p165) on the physical sector Y to be actually written is empty, FIG.
7 (c), the new block data (p16
4) is written to the first block (p165) on the physical sector Y, and the first block (p166) on the physical sector X
The block information control unit 26 manages the block information in order to determine which block of the first block (p165) on the physical sector Y and the data written therein is valid.

【0161】なお、物理セクタXの2番ブロックからM
番ブロックまでのブロックデータ(p168)は仮想セ
クタGの2番ブロックからM番ブロックまでに対応付け
られることになる。
From the second block of physical sector X, M
The block data (p168) up to the No. block is associated with the No. 2 block to the No. M block of the virtual sector G.

【0162】この場合、新規ブロックデータ(p16
4)のライト処理終了までに要したメモリアクセス合計
時間T3は、
In this case, the new block data (p16
The total memory access time T3 required until the end of the write processing in 4) is

【数3】 となる。[Equation 3] Becomes

【0163】図28は、前記実施形態に係わるポインタ
式ブロック情報テーブル25の構成を示す図である。
FIG. 28 is a diagram showing the structure of the pointer type block information table 25 according to the above embodiment.

【0164】図28に示すように、このポインタ式ブロ
ック情報テーブル25は、図6に示すフラグ式ブロック
情報テーブル25に代わって用いられるものであり、メ
モリ制御装置において、セクタ内のランダムブロックプ
ログラムすなわち物理ブロック毎のブロック情報管理処
理が禁止されている不揮発性メモリ1、および不揮発性
メモリ1に対して自らランダムブロックプログラムが禁
止されている場合に用いられるブロック情報テーブル2
5である。
As shown in FIG. 28, this pointer type block information table 25 is used in place of the flag type block information table 25 shown in FIG. 6, and in the memory control device, a random block program in a sector, that is, Nonvolatile memory 1 for which block information management processing for each physical block is prohibited, and block information table 2 used when a random block program is prohibited for the nonvolatile memory 1 by itself
It is 5.

【0165】このポインタ式ブロック情報テーブル25
では、ブロック情報制御部26からの制御により、物理
セクタアドレスをインデックス値としてこのインデック
スに対応して未ライト、もしくはライト済の連続した物
理ブロックの範囲の情報を、登録(p171)、更新
(p172)および削除(p173)することが可能で
あり、テーブル値すなわち物理ブロックの情報は各物理
セクタに対するライト済の最終物理ブロックアドレス値
もしくは、未ライトの先頭物理ブロックアドレス値であ
る。
This pointer type block information table 25
Then, under the control of the block information control unit 26, information on the range of continuous physical blocks that have not been written or have been written is registered (p171) and updated (p172) using the physical sector address as an index value and corresponding to this index. ) And deletion (p173), and the table value, that is, the information of the physical block, is the written final physical block address value or the unwritten leading physical block address value for each physical sector.

【0166】例えば、ポインタ式のブロック情報テーブ
ル25に未ライトの先頭物理ブロックアドレス値を登録
する場合で、p174で示された物理セクタアドレスと
物理ブロックアドレス値との関係は、物理セクタアドレ
スBが物理ブロックアドレスβから最終ブロックまで未
使用状態なこと示し、p175で示された物理セクタア
ドレスと物理ブロックアドレス値との関係は、物理セク
タアドレスAが物理ブロックアドレスαからセクタの最
終ブロックまで未使用状態なことを示している。
For example, when registering an unwritten head physical block address value in the pointer type block information table 25, the relationship between the physical sector address B and the physical block address value shown in p174 is that the physical sector address B is The physical block address β to the last block indicates that the physical block address is unused, and the relationship between the physical sector address and the physical block address value shown in p175 indicates that the physical sector address A is unused from the physical block address α to the last block of the sector. It shows that it is in a state.

【0167】また、ポインタ式のブロック情報テーブル
25にライト済の最終物理ブロックアドレスを登録する
場合で、p174で示された物理セクタアドレスと物理
ブロックアドレス値との関係は、物理セクタアドレスB
が先頭ブロックから物理ブロックアドレスβまで使用状
態にあることを示し、p175で示された物理セクタア
ドレスと物理ブロックアドレス値との関係は、物理セク
タアドレスAが先頭ブロックから物理ブロックアドレス
αまで使用状態にあることを示している。ただし、全て
の物理ブロックが未使用である場合には、例えば“−
1”などの、使用しない物理ブロックアドレス値を割り
当てるものとする。
When the final physical block address that has been written is registered in the pointer type block information table 25, the relationship between the physical sector address and the physical block address value shown in p174 is the physical sector address B.
Indicates that the physical block address is in use from the first block to the physical block address β, and the relationship between the physical sector address and the physical block address value shown in p175 is that the physical sector address A is in use from the first block to the physical block address α. It is shown in. However, if all physical blocks are unused, for example, "-
An unused physical block address value, such as 1 ", shall be assigned.

【0168】図29は、前記実施形態に係わるポインタ
式ブロック情報テーブル25における仮想セクタと物理
セクタの各物理ブロックとの対応を示す図であり、同図
(a)は、仮想セクタが一つの物理セクタの各物理ブロ
ックと対応付けられた場合を示す図であり、同図(b)
は、仮想セクタが複数の物理セクタの各物理ブロックと
対応付けられた場合を示す図である。
FIG. 29 is a diagram showing the correspondence between the virtual sector and each physical block of the physical sector in the pointer type block information table 25 according to the above-mentioned embodiment. FIG. 29A shows a physical sector having one virtual sector. It is a figure which shows the case where each physical block of a sector was matched, and the figure (b).
FIG. 6 is a diagram showing a case where a virtual sector is associated with each physical block of a plurality of physical sectors.

【0169】この、仮想セクタと物理セクタの各物理ブ
ロックとの対応とは、図28に示すポインタ式のセクタ
アドレス変換テーブル23において、仮想セクタK(p
181)が、それに対する登録順番の古い方から物理セ
クタアドレスA,Bの順番で対応付けられると仮定した
仮想セクタKが、図28のp174、p175で示すよ
うに物理セクタアドレスA,Bと対応付けられる場合
に、仮想セクタの各ブロックと、物理セクタの各物理ブ
ロックとの対応を示している。
The correspondence between the virtual sector and each physical block of the physical sector is as follows. In the pointer type sector address conversion table 23 shown in FIG. 28, the virtual sector K (p
181) is assumed to be associated with the physical sector addresses A and B in the order of registration from the oldest, the virtual sector K corresponds to the physical sector addresses A and B as shown in p174 and p175 of FIG. When attached, it shows the correspondence between each block of the virtual sector and each physical block of the physical sector.

【0170】なお、仮想セクタと物理セクタで共通とな
るブロックアドレス値は、未使用先頭ブロックオフセッ
トアドレス値が登録されているものとし、“α”および
“β”は最大物理ブロックアドレス“M”以外のブロッ
クアドレス値であるものとする。
It should be noted that the block address value common to the virtual sector and the physical sector is an unused start block offset address value registered, and "α" and "β" are other than the maximum physical block address "M". Block address value.

【0171】図29(a)に示すように、“α”>
“β”の場合には、p182で示すように、仮想セクタ
Kの0ブロックからβ−1ブロックまでは物理セクタア
ドレスBの0ブロックからβ−1ブロックが対応し、p
183で示すように、“β”ブロックから“α−1”ブ
ロックまでは物理セクタアドレスAの“β”ブロックか
ら“α−1”ブロックが対応し、p184で示すよう
に、“α”から“M”ブロックまでは未使用ブロックで
対応づけられる。
As shown in FIG. 29A, "α">
In the case of “β”, as shown in p182, blocks 0 to β−1 of virtual sector K correspond to blocks 0 to β−1 of physical sector address B, and p
As indicated by 183, the “β” block through the “α−1” block correspond to the “β” block through the “α−1” block of the physical sector address A, and as indicated by p184, “α” through “α”. Up to M "blocks are associated with unused blocks.

【0172】また、図29(b)に示すように、“α”
≦“β”の場合には、p185で示すように、仮想セク
タKの“0”ブロックから“β−1”ブロックまでは物
理セクタアドレスBの“0”ブロックから“β−1”ま
でが対応し、また、p186で示すように、“β”から
“M”ブロックまでは未使用ブロックで対応づけられ
る。
Further, as shown in FIG. 29B, "α"
When ≦ “β”, as shown in p185, the “0” block to the “β-1” block of the virtual sector K correspond to the “0” block to the “β-1” of the physical sector address B. Also, as shown in p186, the blocks from "β" to "M" are associated with unused blocks.

【0173】つまり、図29(a)に示すような場合に
は、仮想セクタKと対応付けられる物理セクタアドレス
Aのブロックアドレスの範囲が、同じく仮想セクタKと
対応付けられる物理セクタアドレスBの範囲と重複しな
いために、仮想セクタKの各仮想ブロックは物理セクタ
アドレスAおよび物理セクタアドレスBに属する各物理
ブロックと対応付けられるが、図29(b)に示すよう
な場合には、仮想セクタと対応付けられる物理セクタア
ドレスAのブロックアドレスの範囲が、同じく仮想セク
タと対応付けられる物理セクタアドレスBの範囲に含ま
れてしまうために、仮想セクタKの各仮想ブロックは物
理セクタアドレスAの各物理ブロックとは対応付けられ
ずに、物理セクタアドレスBに属する各物理ブロックの
みと対応付けられることになる。
That is, in the case shown in FIG. 29A, the range of the block address of the physical sector address A associated with the virtual sector K is the range of the physical sector address B also associated with the virtual sector K. In this case, each virtual block of the virtual sector K is associated with each physical block belonging to the physical sector address A and the physical sector address B in order to avoid duplication. Since the range of the block address of the physical sector address A associated with each other is included in the range of the physical sector address B also associated with the virtual sector, each virtual block of the virtual sector K corresponds to each physical sector of the physical sector address A. It is associated with only each physical block belonging to the physical sector address B without being associated with a block. It will be.

【0174】図30は、前記実施形態に係わるメモリ制
御装置によるメモリイレーズ処理を示すフローチャート
である。
FIG. 30 is a flow chart showing the memory erase processing by the memory control device according to the above embodiment.

【0175】図30に示すように、まず、システム制御
部4よりコマンドバス11を介してメモリ管理部2のメ
モリ管理部2にメモリイレーズ命令(消去命令)が与え
られるとともに、仮想メモリアドレスバス12を介して
仮想メモリアドレスがメモリ制御部21に転送される
と、仮想メモリアドレスがメモリ制御部21により仮想
セクタアドレスAと仮想ブロックアドレスBとに分けら
れる(ステップD1)。
As shown in FIG. 30, first, a memory erase command (erase command) is given from the system control unit 4 to the memory management unit 2 of the memory management unit 2 via the command bus 11, and the virtual memory address bus 12 is also supplied. When the virtual memory address is transferred to the memory control unit 21 via the, the virtual memory address is divided into the virtual sector address A and the virtual block address B by the memory control unit 21 (step D1).

【0176】次に、セクタアドレス変換制御部24によ
りセクタアドレス変換テーブル23が読み出されて、こ
のセクタアドレス変換テーブル23と仮想セクタアドレ
スAとが照合されて、該仮想セクタアドレスAに対応付
けられる一つまたは複数の物理セクタアドレスで構成さ
れる物理セクタアドレス群Cが存在するかどうかが判断
される(ステップD2,D3)。
Next, the sector address conversion control unit 24 reads the sector address conversion table 23, collates the sector address conversion table 23 with the virtual sector address A, and associates them with the virtual sector address A. It is judged whether or not there is a physical sector address group C composed of one or a plurality of physical sector addresses (steps D2 and D3).

【0177】ステップD3で「NO」と判断される、す
なわち仮想セクタアドレスAに対応付けられる物理セク
タアドレス群Cが存在しない場合には、仮想セクタアド
レスAがどの物理セクタとも対応付けられてなく、つま
りイレーズ対象が無いので終了処理がなされる。
When it is judged "NO" in step D3, that is, when there is no physical sector address group C associated with the virtual sector address A, the virtual sector address A is not associated with any physical sector, That is, since there is no erase target, the termination process is performed.

【0178】一方、ステップD3で「YES」と判断さ
れる、すなわち仮想セクタアドレスAに対応付けられる
物理セクタアドレス群C存在する場合には、ブロック情
報制御部26を介してブロック情報テーブル25に登録
される物理セクタアドレス群Cの全ブロック情報が消去
すなわち“0”に更新処理される(ステップD4)。
On the other hand, if it is judged "YES" in step D3, that is, if there is the physical sector address group C associated with the virtual sector address A, it is registered in the block information table 25 via the block information control unit 26. All block information of the physical sector address group C to be erased is erased, that is, updated to "0" (step D4).

【0179】そして、セクタアドレス変換制御部24を
介してセクタアドレス変換テーブル23から物理セクタ
アドレス群Cが削除される(ステップD5)。
Then, the physical sector address group C is deleted from the sector address conversion table 23 via the sector address conversion control unit 24 (step D5).

【0180】このメモリイレーズ処理により、仮想セク
タアドレスAは全ての物理セクタアドレスとの対応付け
がなされなくなる。この時、仮想セクタアドレスAをリ
ードすると、対応する物理ブロックアドレス群が存在し
ないことになるので、消去処理が行われた適当な物理セ
クタアドレスの各ブロックデータが転送されることにな
る。
By this memory erase processing, the virtual sector address A is not associated with all physical sector addresses. At this time, when the virtual sector address A is read, the corresponding physical block address group does not exist, so that each block data of the appropriate physical sector address that has been erased is transferred.

【0181】つまり、このメモリイレーズ処理により、
セクタアドレス変換テーブル23とブロック情報テーブ
ル25からイレーズすべき仮想セクタアドレスに関する
情報を削除するだけで、対応付けられた物理セクタアド
レス群のメモリ上のデータ消去を行わないことにより、
イレーズ処理速度が向上する。
That is, by this memory erase processing,
By only deleting the information on the virtual sector address to be erased from the sector address conversion table 23 and the block information table 25, and not erasing the data of the associated physical sector address group on the memory,
Erase processing speed is improved.

【0182】図31は、前記実施形態に係わるメモリ制
御装置に備えられるセクタアドレス変換テーブル23に
おけるメモリコピー処理およびメモリ移動処理を示す図
である。
FIG. 31 is a diagram showing a memory copy process and a memory move process in the sector address conversion table 23 provided in the memory control device according to the above embodiment.

【0183】このメモリコピー処理とは、コピー元の仮
想セクタアドレスに対応付けられる物理セクタアドレス
群を、このコピー元の仮想セクタアドレスとの対応付け
を残したままで、コピー先の仮想セクタアドレスにも対
応付ける処理のことであり、このメモリコピー処理によ
りコピー元の仮想セクタアドレスに対応付けられる全て
の物理ブロック情報がコピー先の仮想セクタアドレスに
も対応付けられることになる。
This memory copy processing is also performed on the virtual sector address of the copy destination while keeping the physical sector address group associated with the virtual sector address of the copy source left associating with the virtual sector address of the copy source. This is a process of associating, and by this memory copy process, all physical block information associated with the copy source virtual sector address is also associated with the copy destination virtual sector address.

【0184】また、メモリ移動処理とは、移動元の仮想
セクタアドレスに対応付けられる物理セクタアドレス群
を、移動元の仮想セクタアドレスとの対応付けを無くす
とともにコピー先の仮想セクタアドレスに対応付ける処
理のことであり、このメモリ移動処理により移動元の仮
想セクタアドレスに対応付けられる全ての物理ブロック
情報が移動先の仮想セクタアドレスに対応付けられるこ
とになる。
The memory move process is a process of removing the association of the physical sector address group associated with the source virtual sector address with the source virtual sector address and associating it with the destination virtual sector address. This means that all the physical block information associated with the source virtual sector address is associated with the destination virtual sector address by this memory migration processing.

【0185】なお、ここでは、転送元仮想セクタ、転送
先仮想セクタおよびコピーか移動かの指定手段は問わな
いものとする。
Here, it is assumed that the transfer source virtual sector, the transfer destination virtual sector, and the means for designating copy or move do not matter.

【0186】まず、メモリ制御装置によるメモリコピー
処理について説明する。
First, the memory copy processing by the memory controller will be described.

【0187】図31に示すように、セクタアドレス変換
テーブル23において、転送元仮想セクタアドレスAに
物理セクタアドレス群(p191)の“3”、“8”お
よび“N”と対応付けられ、また、転送先仮想セクタア
ドレスBが別の物理セクタアドレス群(p192)と対
応付けられている場合で、仮想セクタアドレスAに対応
付けられる全ブロックデータを仮想セクタアドレスBに
コピーする場合、つまり、システム制御部4よりコマン
ドバス11を介してメモリ管理部2のメモリ管理部2に
メモリコピー命令が与えられるとともに、仮想メモリア
ドレスバス12を介してコピー元およびコピー先の仮想
メモリアドレスがメモリ制御部21に転送されると、仮
想セクタアドレスBに対応付けられる、つまりp192
に示す物理セクタアドレス群の全物理ブロックのブロッ
ク情報が削除され、p191に示す物理セクタアドレス
群の全データ、すなわち物理セクタアドレス“3”、
“8”、“N”に属しており、かつ、仮想セクタアドレ
スAと対応付けられる全ての物理ブロックアドレスおよ
びそのブロック情報が仮想セクタアドレスBに対応付け
られる。
As shown in FIG. 31, in the sector address conversion table 23, the transfer source virtual sector address A is associated with "3", "8" and "N" of the physical sector address group (p191), and When the transfer destination virtual sector address B is associated with another physical sector address group (p192) and all block data associated with the virtual sector address A is copied to the virtual sector address B, that is, system control The memory copy command is given from the unit 4 to the memory management unit 2 of the memory management unit 2 via the command bus 11, and the virtual memory addresses of the copy source and the copy destination are sent to the memory control unit 21 via the virtual memory address bus 12. When transferred, it is associated with the virtual sector address B, that is, p192
The block information of all the physical blocks of the physical sector address group shown in (1) is deleted, and all the data of the physical sector address group shown in p191, that is, the physical sector address “3”,
All physical block addresses belonging to “8” and “N” and associated with the virtual sector address A and their block information are associated with the virtual sector address B.

【0188】この時、仮想セクタアドレスBは仮想セク
タアドレスAと同じ物理セクタと対応付けられることに
なるので、該物理セクタのブロックデータを変更する場
合には、変更する物理セクタの全ブロックデータをコピ
ーした新規物理セクタを用いて処理され、セクタアドレ
ス変換テーブル23における登録を置き換えることで処
理されるものとする。
At this time, since the virtual sector address B is associated with the same physical sector as the virtual sector address A, when changing the block data of the physical sector, all block data of the physical sector to be changed is changed. It is assumed that the processing is performed using the copied new physical sector and the registration in the sector address conversion table 23 is replaced.

【0189】次に、メモリ制御装置によるメモリ移動処
理について説明する。
Next, the memory move processing by the memory controller will be described.

【0190】同じく、セクタアドレス変換テーブル23
において、セクタアドレス変換テーブル23において、
転送元仮想セクタアドレスCに物理セクタアドレス群
(p193)の“9”、“2”および“5”と対応付け
られ、また、転送先仮想セクタアドレスDが別の物理セ
クタアドレス群(p194)と対応付けられている場合
で、仮想セクタアドレスBに対応付けられる全ブロック
データを仮想セクタアドレスBに移動させる場合、つま
り、システム制御部4よりコマンドバス11を介してメ
モリ管理部2のメモリ管理部2にメモリ移動命令が与え
られるとともに、仮想メモリアドレスバス12を介して
移動元および移動先の仮想メモリアドレスがメモリ制御
部21に転送されると、仮想セクタアドレスDに対応付
けられる、つまりp194に示す物理セクタアドレス群
の全物理ブロックのブロック情報およびが削除され、p
193に示す物理セクタアドレス群の全データ、すなわ
ち物理セクタアドレス“9”、“2”、“5”に属して
おり、かつ、仮想セクタアドレスCと対応付けられる全
ての物理ブロックアドレスおよびそのブロック情報が仮
想セクタアドレスDに対応付けられるとともに、仮想セ
クタアドレスCと物理セクタアドレス群(p193)と
の対応付けがなくなる。
Similarly, the sector address conversion table 23
In the sector address conversion table 23,
The transfer source virtual sector address C is associated with “9”, “2” and “5” of the physical sector address group (p193), and the transfer destination virtual sector address D is different from the physical sector address group (p194). When all the block data associated with the virtual sector address B are moved to the virtual sector address B in the case of being associated with each other, that is, the memory control unit of the memory management unit 2 from the system control unit 4 via the command bus 11. 2 is given a memory move instruction and the source and destination virtual memory addresses are transferred to the memory control unit 21 via the virtual memory address bus 12, they are associated with the virtual sector address D, that is, p194. The block information and of all physical blocks of the physical sector address group shown are deleted and p
All data of the physical sector address group indicated by reference numeral 193, that is, all physical block addresses that belong to the physical sector addresses “9”, “2”, and “5” and that are associated with the virtual sector address C, and their block information. Is associated with the virtual sector address D and the virtual sector address C is not associated with the physical sector address group (p193).

【0191】つまり、これらのメモリコピー処理または
メモリ移動処理により、任意の仮想セクタから任意の仮
想セクタに全ブロックデータをコピーする場合、または
任意の仮想セクタから任意の仮想セクタに全ブロックデ
ータを移動する場合であっても、不揮発性メモリ1上で
のデータコピーまたはデータ移動が発生しないので、処
理を高速化することができる。
That is, when all block data is copied from any virtual sector to any virtual sector by the memory copy process or memory move process, or all block data is moved from any virtual sector to any virtual sector. Even in such a case, data copy or data movement on the non-volatile memory 1 does not occur, so that the processing can be speeded up.

【0192】したがって、前記構成のメモリ制御装置に
よれば、セクタアドレス変換テーブル23およびブロッ
ク情報テーブル25により、一つの仮想セクタが複数の
物理セクタと対応付けられた上で、メモリライト処理に
より、ライトすべき仮想セクタアドレスに対応付けられ
た物理セクタアドレス群中から適当な未ライトブロック
が存在する物理セクタアドレスが検出され、また、メモ
リリード処理により、ライトすべき仮想セクタアドレス
に対応付けられた物理セクタアドレス群中から適当なラ
イト済ブロックが存在する物理セクタアドレスが検出さ
れ、また、メモリ結合処理により、セクタアドレス変換
テーブル23とブロック情報テーブル25で複数の物理
セクタアドレスとを対応付けられた仮想セクタアドレス
が、一つの物理セクタアドレスと対応づけられ、また、
メモリイレーズ処理により、イレーズすべき仮想セクタ
アドレスに対する物理セクタアドレス群が削除され、ま
た、メモリコピー処理及びメモリ移動処理により、セク
タアドレス変換テーブル23上の仮想セクタアドレスと
物理セクタアドレスの対応付けの情報が書き換えられる
ので、メモリの読み書きに係る処理時間を短縮し、ま
た、メモリ資源を効率よく使うことが可能になる。
Therefore, according to the memory control device having the above-mentioned configuration, one virtual sector is associated with a plurality of physical sectors by the sector address conversion table 23 and the block information table 25, and the write operation is performed by the memory write process. The physical sector address in which an appropriate unwritten block exists is detected from the physical sector address group associated with the virtual sector address to be written, and the physical read operation is performed by the memory read process. A physical sector address in which an appropriate written block exists is detected from the sector address group, and a virtual address in which a plurality of physical sector addresses are associated with each other in the sector address conversion table 23 and the block information table 25 by memory combination processing. Sector address is one physical Data address and the associated, also,
The memory erase process deletes the physical sector address group corresponding to the virtual sector address to be erased, and the memory copy process and the memory move process associate information between the virtual sector address and the physical sector address on the sector address conversion table 23. Is rewritten, the processing time for reading and writing the memory can be shortened and the memory resources can be efficiently used.

【0193】[0193]

【発明の効果】以上のように、本発明の請求項1に係わ
るメモリ管理方式によれば、セクタアドレス管理手段に
より、仮想セクタのアドレスと前記単一または複数の物
理セクタのアドレスとを対応付けられ、ブロック情報管
理手段により、セクタアドレス管理手段により対応付け
られた物理セクタに属する物理ブロックの使用状態を示
すブロック情報が管理され、セクタアドレス検出手段に
より、セクタアドレス管理手段により管理される物理セ
クタのアドレスとブロック情報管理手段により管理され
る物理ブロックに基づいて必要な物理ブロックのアドレ
スが検出され、アドレス生成手段により、セクタアドレ
ス検出手段により検出された物理セクタのアドレスおよ
びブロック情報管理手段により管理される物理ブロック
のアドレスに基づいて物理メモリアドレスが生成され
て、メモリに対するデータ処理がなされるようになる。
As described above, according to the memory management system of the first aspect of the present invention, the sector address management means associates the address of the virtual sector with the address of the single or a plurality of physical sectors. The block information management means manages the block information indicating the usage status of the physical blocks belonging to the physical sector associated by the sector address management means, and the sector address detection means manages the physical sector managed by the sector address management means. Of the physical sector detected by the sector address detecting means and the address of the physical sector detected by the sector address detecting means, and the address of the physical sector detected by the sector address detecting means is managed by the address generating means and the block information managing means. Based on the address of the physical block Physical memory addresses Te is generated, so that the data processing to the memory is carried out.

【0194】また、本発明の請求項2に係わるメモリ管
理方式によれば、セクタアドレス管理手段により、仮想
セクタのアドレスと前記単一または複数の物理セクタの
アドレスとを対応付けられ、ブロック情報管理手段によ
り、セクタアドレス管理手段により対応付けられた物理
セクタに属する物理ブロックの使用状態を示すブロック
情報が使用の有無を示す情報に基づいて管理され、セク
タアドレス検出手段によりセクタアドレス管理手段によ
り管理される物理セクタのアドレスとブロック情報管理
手段により管理される物理ブロックに基づいて必要な物
理セクタのアドレスが検出され、アドレス生成手段によ
り、セクタアドレス検出手段により検出された物理セク
タのアドレスおよびブロック情報管理手段により管理さ
れる物理ブロックのアドレスに基づいて物理メモリアド
レスが生成されて、メモリに対するデータ処理がなされ
るようになる。
According to the memory management method of the second aspect of the present invention, the sector address management means associates the address of the virtual sector with the address of the single or a plurality of physical sectors to manage the block information. Means manages block information indicating a use state of a physical block belonging to a physical sector associated by the sector address management means, based on information indicating presence / absence of use, and manages the sector address management means by the sector address management means. Address of the physical sector detected by the sector address detection means by the address generation means, and the address of the physical sector detected by the sector address detection means is managed based on the address of the physical sector and the physical block managed by the block information management means. Physical block managed by means Physical memory address is generated based on the address, so that data processing for the memory is made.

【0195】また、本発明の請求項3に係わるメモリ管
理方式によれば、セクタアドレス管理手段により、仮想
セクタのアドレスと前記単一または複数の物理セクタの
アドレスとを対応付けられ、ブロック情報管理手段によ
り、セクタアドレス管理手段により対応付けられた物理
セクタに属する各物理ブロックの使用状態を示すブロッ
ク情報が物理セクタにおける物理ブロックのアドレス範
囲に基づいて管理され、セクタアドレス検出手段により
セクタアドレス管理手段により管理される物理セクタの
アドレスとブロック情報管理手段により管理される物理
ブロックに基づいて必要な物理セクタのアドレスが検出
され、アドレス生成手段により、セクタアドレス検出手
段により検出された物理セクタのアドレスおよびブロッ
ク情報管理手段により管理される物理ブロックのアドレ
スに基づいて物理メモリアドレスが生成されて、メモリ
に対するデータ処理がなされるようになる。
According to the memory management system of claim 3 of the present invention, the sector address management means associates the address of the virtual sector with the address of the single or a plurality of physical sectors to manage the block information. Means manages the block information indicating the use state of each physical block belonging to the physical sector associated by the sector address management means, based on the address range of the physical block in the physical sector, and the sector address detection means performs the sector address management means. The address of the required physical sector is detected based on the address of the physical sector managed by the block information management means and the address of the physical sector detected by the sector address detection means, and the address of the physical sector detected by the sector address detection means. To block information management means Ri and physical memory address is generated based on the address of the managed physical blocks, so that data processing for the memory is made.

【0196】また、本発明の請求項4に係わるメモリ管
理方式によれば、セクタアドレス管理手段により、任意
の仮想セクタに対応付けられた物理セクタが検索され、
ブロック情報管理手段により、セクタアドレス管理手段
により検索された物理セクタに属する任意の物理ブロッ
クのブロック情報が検索され、セクタアドレス検出手段
により、前記ブロック情報管理手段により検索されたブ
ロックに基づき未使用状態の物理ブロックが検索され、
この検索された未使用状態ブロックが属する物理セクタ
アドレスが検出されアドレス生成手段により、セクタア
ドレス検出手段により検出された物理セクタのアドレス
およびブロック情報管理手段により管理される物理ブロ
ックのアドレスに基づいて物理メモリアドレスが生成さ
れて、メモリに対するメモリライト処理がなされるよう
になる。
Further, according to the memory management system of the fourth aspect of the present invention, the sector address management means searches for a physical sector associated with an arbitrary virtual sector,
The block information management means searches for block information of an arbitrary physical block belonging to the physical sector searched by the sector address management means, and the sector address detection means searches for an unused state based on the block searched by the block information management means. The physical blocks of
The physical sector address to which the searched unused state block belongs is detected, and the physical address is generated based on the address of the physical sector detected by the sector address detecting means and the address of the physical block managed by the block information managing means. The memory address is generated, and the memory write process for the memory is performed.

【0197】また、本発明の請求項5に係わるメモリ管
理方式によれば、セクタアドレス管理手段により、任意
の仮想セクタに対応付けられた物理セクタが検索され、
ブロック情報管理手段により、セクタアドレス管理手段
により検索された物理セクタに属する任意の物理ブロッ
クのブロック情報が検索され、セクタアドレス検出手段
により、前記ブロック情報管理手段により検索されたブ
ロックに基づき未使用状態の物理ブロックが検索され、
この検索された未使用状態ブロックが属する物理セクタ
アドレスが検出されない場合に、セクタアドレス設定手
段により、属する全ての物理ブロックが未使用状態にあ
る物理セクタを仮想セクタに対応付けられ、アドレス生
成手段により、セクタアドレス設定手段により設定され
た物理セクタのアドレスおよびブロック情報管理手段に
より管理される物理ブロックのアドレスに基づいて物理
メモリアドレスが生成されて、メモリに対するメモリラ
イト処理がなされるようになる。
According to the memory management method of the fifth aspect of the present invention, the sector address management means searches for a physical sector associated with an arbitrary virtual sector,
The block information management means searches for block information of an arbitrary physical block belonging to the physical sector searched by the sector address management means, and the sector address detection means searches for an unused state based on the block searched by the block information management means. The physical blocks of
When the physical sector address to which the searched unused state block belongs is not detected, the sector address setting means associates the physical sectors in which all the physical blocks to which they belong to the unused state with the virtual sector, and the address generating means. The physical memory address is generated based on the address of the physical sector set by the sector address setting means and the address of the physical block managed by the block information management means, and the memory write process for the memory is performed.

【0198】したがって、本発明は不揮発性メモリの読
み書きに係る処理時間を短縮し、また、メモリ資源を効
率よく使うことが可能になる
Therefore, according to the present invention, it becomes possible to shorten the processing time for reading and writing the non-volatile memory and to efficiently use the memory resources.

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

【図1】本発明の実施形態に係わるメモリ制御装置の構
成を示す図。
FIG. 1 is a diagram showing a configuration of a memory control device according to an embodiment of the present invention.

【図2】前記実施形態に係わるメモリ制御装置に備えら
れるメモリ管理部の構成を示す図。
FIG. 2 is a diagram showing a configuration of a memory management unit provided in the memory control device according to the embodiment.

【図3】前記実施形態に係わるメモリ制御装置に備えら
れるセクタアドレス変換テーブルの構成を示す図。
FIG. 3 is a diagram showing a configuration of a sector address conversion table provided in the memory control device according to the embodiment.

【図4】前記実施形態に係わるメモリ制御装置に備えら
れるセクタアドレス変換テーブルによる仮想メモリと物
理メモリの対応付けの例を示す図。
FIG. 4 is a diagram showing an example of associating a virtual memory and a physical memory with a sector address conversion table provided in the memory control device according to the embodiment.

【図5】前記実施形態に係わる仮想セクタと物理セクタ
との対応付けの例を示す図。
FIG. 5 is a diagram showing an example of correspondence between virtual sectors and physical sectors according to the embodiment.

【図6】前記実施形態に係わるメモリ制御装置に備えら
れるブロック情報テーブルの構成を示す図。
FIG. 6 is a diagram showing a configuration of a block information table provided in the memory control device according to the embodiment.

【図7】前記実施形態に係わるメモリ制御装置によるメ
モリライト処理(その1)を示すフローチャート。
FIG. 7 is a flowchart showing a memory write process (No. 1) by the memory control device according to the embodiment.

【図8】前記実施形態に係わるメモリ制御装置によるメ
モリライト処理(その2)を示すフローチャート。
FIG. 8 is a flowchart showing a memory write process (No. 2) by the memory control device according to the embodiment.

【図9】前記実施形態に係わるメモリライト処理におい
て未ライトブロックが存在する物理セクタアドレスDが
検出される例を示す図。
FIG. 9 is a diagram showing an example in which a physical sector address D in which an unwritten block exists is detected in the memory write process according to the embodiment.

【図10】前記実施形態に係わるリード処理において未
ライトブロックが存在する物理セクタアドレスDを検出
できない例を示す図。
FIG. 10 is a diagram showing an example in which a physical sector address D including an unwritten block cannot be detected in the read processing according to the embodiment.

【図11】前記実施形態に係わるブロック情報テーブル
内のブロック情報の更新処理を示す図。
FIG. 11 is a diagram showing a process of updating block information in the block information table according to the embodiment.

【図12】前記実施形態に係わるブロック情報テーブル
に対する新規物理セクタアドレスの登録処理と、この登
録処理に伴うブロック情報の更新処理を示す図。
FIG. 12 is a diagram showing a process of registering a new physical sector address in the block information table according to the embodiment and a process of updating block information accompanying this registration process.

【図13】前記実施形態に係わるメモリ制御装置による
メモリリード処理(その1)を示すフローチャート。
FIG. 13 is a flowchart showing a memory read process (No. 1) by the memory control device according to the embodiment.

【図14】前記実施形態に係わるメモリ制御装置による
メモリリード処理(その2)を示すフローチャート。
FIG. 14 is a flowchart showing a memory read process (No. 2) by the memory control device according to the embodiment.

【図15】前記実施形態に係わるメモリリード処理にお
いてライト済ブロックが存在する物理セクタアドレスD
が検出される例を示す図。
FIG. 15 is a physical sector address D in which a written block exists in the memory read process according to the embodiment.
The figure which shows the example which is detected.

【図16】前記実施形態に係わるメモリリード処理にお
いてライト済ブロックが存在する物理セクタアドレスD
が検出される例を示す図。
FIG. 16 is a physical sector address D in which a written block exists in the memory read process according to the embodiment.
The figure which shows the example which is detected.

【図17】前記実施形態に係わるブロック情報テーブル
に対する新規物理セクタアドレスの登録処理を示す図。
FIG. 17 is a diagram showing a registration process of a new physical sector address in the block information table according to the embodiment.

【図18】前記実施形態に係わるメモリ制御装置による
メモリ結合処理(その1)を示すフローチャート。
FIG. 18 is a flowchart showing a memory coupling process (No. 1) by the memory control device according to the embodiment.

【図19】前記実施形態に係わるメモリ制御装置による
メモリ結合処理(その2)を示すフローチャート。
FIG. 19 is a flowchart showing a memory coupling process (No. 2) by the memory control device according to the embodiment.

【図20】前記実施形態に係わるメモリ制御装置による
メモリ結合処理(その3)を示すフローチャート。
FIG. 20 is a flowchart showing a memory coupling process (No. 3) by the memory control device according to the embodiment.

【図21】前記実施形態に係わるメモリ結合処理におけ
るブロック情報テーブルでの登録処理および削除処理を
示す図。
FIG. 21 is a diagram showing a registration process and a deletion process in the block information table in the memory combination process according to the embodiment.

【図22】前記実施形態に係わるメモリ結合処理におい
てライト済ブロックが存在する物理セクタアドレスDを
検出する例を示す図。
FIG. 22 is a diagram showing an example of detecting a physical sector address D in which a written block exists in the memory combination processing according to the embodiment.

【図23】前記実施形態に係わるメモリ結合処理におい
てライト済ブロックが存在する物理セクタアドレスDが
検出されない例を示す図。
FIG. 23 is a diagram showing an example in which a physical sector address D in which a written block is present is not detected in the memory combination processing according to the embodiment.

【図24】前記実施形態に係わるメモリ結合処理におい
て、最新ライト済ブロックの検出例を示す図。
FIG. 24 is a diagram showing an example of detection of the latest written block in the memory combination process according to the embodiment.

【図25】前記実施形態に係わるメモリ結合処理におい
てセクタアドレス変換テーブルでの登録処理および削除
処理を示す図である。
FIG. 25 is a diagram showing a registration process and a deletion process in the sector address conversion table in the memory combination process according to the embodiment.

【図26】前期実施形態に係わるメモリ結合処理におい
て、結合対象となる物理ブロックアドレスを任意に選択
する場合の処理を示すフローチャートである。
FIG. 26 is a flow chart showing processing in the case of arbitrarily selecting a physical block address to be combined in the memory combination processing according to the first embodiment.

【図27】本発明の実施形態に係わるメモリ制御装置に
おいて、全ブロックに対して任意のデータライトを行っ
た仮想セクタに対してオーバライトする時の例を示した
図であり、同図(a)は、仮想セクタに対して一つ目の
データを書き込む前の状態を示す図であり、同図(b)
は、仮想セクタに対して一つ目のデータを書き込む際の
物理セクタに対する処理および二つめのデータを書き込
む前の状態を示す図であり、同図(c)は、仮想セクタ
に対して二つめのデータを書き込む際の物理セクタに対
する処理を示す図である。
FIG. 27 is a diagram showing an example when overwriting is performed on a virtual sector in which arbitrary data is written to all blocks in the memory control device according to the embodiment of the present invention. ) Is a diagram showing a state before writing the first data to the virtual sector, and FIG.
FIG. 4 is a diagram showing a process before writing the second data to the physical sector when writing the first data to the virtual sector, and FIG. FIG. 6 is a diagram showing a process for a physical sector when writing the data of FIG.

【図28】前記実施形態に係わるポインタ式ブロック情
報テーブルの構成を示す図。
FIG. 28 is a diagram showing the configuration of a pointer type block information table according to the embodiment.

【図29】前記実施形態に係わるポインタ式のブロック
情報テーブルにおける仮想セクタと物理セクタの各物理
ブロックとの対応を示す図であり、同図(a)は、仮想
セクタが一つの物理セクタの各物理ブロックと対応付け
られた場合を示す図であり、同図(b)は、仮想セクタ
が複数の物理セクタの各物理ブロックと対応付けられた
場合を示す図。
FIG. 29 is a diagram showing a correspondence between virtual sectors and physical blocks of a physical sector in the pointer type block information table according to the embodiment. FIG. 29A shows each physical sector having one virtual sector. It is a figure showing the case where it is matched with a physical block, and the figure (b) is a figure showing the case where a virtual sector is matched with each physical block of a plurality of physical sectors.

【図30】前記実施形態に係わるメモリ制御装置による
メモリイレーズ処理を示すフローチャート。
FIG. 30 is a flowchart showing a memory erase process by the memory control device according to the embodiment.

【図31】前記実施形態に係わるメモリ制御装置に備え
られるセクタアドレス変換テーブルにおけるメモリコピ
ー処理およびメモリ移動処理を示す図。
FIG. 31 is a diagram showing a memory copy process and a memory move process in the sector address conversion table provided in the memory control device according to the embodiment.

【図32】従来のメモリ制御装置において、全ブロック
に対して任意のデータライトを行った仮想セクタに対し
てオーバライトする時の例を示した図であり、同図
(a)は、仮想セクタに対してデータを書き込む前の状
態を示す図であり、同図(b)は、仮想セクタに対して
データを書き込む際の物理セクタに対する処理を示す図
である。
FIG. 32 is a diagram showing an example of overwriting a virtual sector in which arbitrary data is written to all blocks in the conventional memory control device. FIG. 3B is a diagram showing a state before writing data to, and FIG. 3B is a diagram showing a process for a physical sector when writing data to a virtual sector.

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

1・・・不揮発性メモリ 2・・・メモリ管理部 3・・・メモリインタフェース 4・・・システム制御部 11・・・コマンドバス 12・・・仮想メモリアドレスバス 13・・・データバス 14・・・メモリアクセスコマンドバス 15・・・物理メモリアドレスバス 16・・・メモリデータバス 17・・・メモリバス 21・・・メモリ制御部 22・・・データバッファ 23・・・セクタアドレス変換テーブル 24・・・セクタアドレス変換制御部 25・・・ブロック情報テーブル 26・・・ブロック情報制御部 1 ... Non-volatile memory 2 ... Memory management unit 3 ... Memory interface 4 ... System control unit 11 ... Command bus 12 ... Virtual memory address bus 13 ... Data bus 14 ... Memory access command bus 15 ... Physical memory address bus 16 ... Memory data bus 17 ... Memory bus 21 ... Memory control unit 22 ... Data buffer 23 ... Sector address conversion table 24 ... Sector address conversion control unit 25 ... Block information table 26 ... Block information control unit

Claims (11)

【特許請求の範囲】[Claims] 【請求項1】各々が複数の書き込み単位の物理ブロック
を有してなる複数の消去単位の物理セクタで構成される
物理メモリに対して、当該物理メモリの物理セクタに対
応付けられた複数の仮想セクタを有してなる仮想メモリ
を用いてデータの読み書きを管理するメモリ管理方式で
あって、 仮想セクタのアドレスと前記単一または複数の物理セク
タのアドレスとを対応付けるセクタアドレス管理手段
と、 このセクタアドレス管理手段により対応付けられた物理
セクタに属する物理ブロックの使用状態を示すブロック
情報を管理するブロック情報管理手段と、 前記セクタアドレス管理手段により管理される物理セク
タと前記ブロック情報管理手段により管理される物理ブ
ロックに基づいて必要な物理セクタのアドレスを検出す
るセクタアドレス検出手段と、 前記セクタアドレス検出手段により検出された物理セク
タのアドレスおよび前記ブロック情報管理手段により管
理される物理ブロックのアドレスに基づいて物理メモリ
アドレスを生成するアドレス生成手段と、を有すること
を特徴とするメモリ管理方式。
1. A physical memory composed of a plurality of physical sectors of erase units each having a plurality of physical blocks of write units, and a plurality of virtual sectors associated with the physical sectors of the physical memory. A memory management method for managing reading and writing of data using a virtual memory having a sector, comprising sector address management means for associating an address of a virtual sector with an address of the single or a plurality of physical sectors, A block information management unit that manages block information indicating a use state of a physical block belonging to a physical sector associated by the address management unit, a physical sector managed by the sector address management unit, and a block information management unit managed by the block information management unit. Sector address that detects the address of the required physical sector based on the physical block Output means, and address generation means for generating a physical memory address based on the address of the physical sector detected by the sector address detection means and the address of the physical block managed by the block information management means. Memory management method.
【請求項2】請求項1に記載のメモリ管理方式であっ
て、 前記ブロック情報管理手段は、各々の物理ブロックの使
用状態を、使用の有無を示す情報に基づいて管理するこ
とを特徴とするメモリ管理方式。
2. The memory management system according to claim 1, wherein the block information management unit manages a usage state of each physical block based on information indicating whether or not the physical block is used. Memory management method.
【請求項3】請求項1に記載のメモリ管理方式であっ
て、 前記ブロック情報管理手段は、各々のブロックの使用状
態を、物理セクタにおける物理ブロックのアドレス範囲
に基づいて管理することを特徴とするメモリ管理方式。
3. The memory management system according to claim 1, wherein the block information management unit manages a usage state of each block based on an address range of a physical block in a physical sector. Memory management method.
【請求項4】請求項1に記載のメモリ管理方式であっ
て、 前記セクタアドレス管理手段は、さらに、任意の仮想セ
クタに対応付けられた物理セクタを検索し、 前記ブロック情報管理手段は、さらに、このセクタアド
レス管理手段により検索された物理セクタに属する任意
の物理ブロックのブロック情報を検索し、 前記セクタアドレス検出手段は、前記ブロック情報管理
手段により検索された物理ブロックに基づき未使用状態
の物理ブロックを検索して、この検索された未使用状態
の物理ブロックが属する物理セクタアドレスを検出する
ことを特徴とするメモリ管理方式。
4. The memory management system according to claim 1, wherein the sector address management means further searches for a physical sector associated with an arbitrary virtual sector, and the block information management means further comprises: The sector information management unit searches the block information of an arbitrary physical block belonging to the physical sector searched by the sector address management unit, and the sector address detection unit determines an unused physical block based on the physical block searched by the block information management unit. A memory management method characterized by searching a block and detecting a physical sector address to which the searched unused physical block belongs.
【請求項5】請求項4に記載のメモリ管理方式であっ
て、 さらに、前記セクタアドレス検出手段により、未使用状
態の物理ブロックが検出されない場合に、属する全ての
物理ブロックが未使用状態にある物理セクタを仮想セク
タに対応付けるセクタ設定手段を有することを特徴とす
るメモリ管理方式。
5. The memory management system according to claim 4, wherein when the sector address detecting means does not detect an unused physical block, all physical blocks to which the physical block belongs are in an unused state. A memory management system comprising sector setting means for associating a physical sector with a virtual sector.
【請求項6】請求項1に記載のメモリ管理方式であっ
て、 前記セクタアドレス管理手段は、さらに、仮想セクタと
物理セクタとの対応付けを消去し、 前記ブロック情報管理手段は、さらに、仮想セクタのア
ドレスに対応付けられた物理セクタのアドレスの全ブロ
ック情報を、未使用状態を示すブロック情報に変換する
ことを特徴とするメモリ管理方式。
6. The memory management system according to claim 1, wherein the sector address management means further erases a correspondence between a virtual sector and a physical sector, and the block information management means further comprises a virtual A memory management method characterized by converting all block information of an address of a physical sector associated with an address of a sector into block information indicating an unused state.
【請求項7】請求項1に記載のメモリ管理方式であっ
て、 前記セクタアドレス管理手段は、さらに、任意の仮想セ
クタのアドレスに対応付けられる物理セクタのアドレス
を別の仮想セクタのアドレスにも対応付けることを特徴
とするメモリ管理方式。
7. The memory management system according to claim 1, wherein the sector address management unit further assigns an address of a physical sector associated with an address of an arbitrary virtual sector to an address of another virtual sector. A memory management method characterized by associating.
【請求項8】請求項1に記載のメモリ管理方式であっ
て、 前記セクタアドレス管理手段は、さらに、任意の仮想セ
クタのアドレスに対応付けられる物理セクタのアドレス
を別の仮想セクタのアドレスに対応付けし直すことを特
徴とするメモリ管理方式。
8. The memory management system according to claim 1, wherein the sector address management unit further associates an address of a physical sector associated with an address of an arbitrary virtual sector with an address of another virtual sector. Memory management method characterized by reattaching.
【請求項9】請求項1に記載のメモリ管理方式であっ
て、 前記セクタアドレス管理手段は、さらに、仮想セクタに
対応付けられた物理セクタを検索し、 前記ブロック情報管理手段は、さらに、このセクタアド
レス管理手段により検索された物理セクタに属する任意
の物理ブロックのブロック情報を検索し、 前記セクタアドレス検出手段は、前記ブロック情報管理
手段により検索された物理ブロックに基づき使用状態に
ある物理ブロックを検索して、この検索された使用状態
にある物理ブロックが属する物理セクタアドレスを検出
することを特徴とするメモリ管理方式。
9. The memory management system according to claim 1, wherein the sector address management means further searches for a physical sector associated with a virtual sector, and the block information management means further comprises: The block information of an arbitrary physical block belonging to the physical sector searched by the sector address management unit is searched, and the sector address detection unit finds a physical block in use based on the physical block searched by the block information management unit. A memory management method characterized by performing a search and detecting a physical sector address to which the searched physical block in the used state belongs.
【請求項10】請求項1に記載のメモリ管理方式であっ
て、 さらに、属する全ての物理ブロックが未使用状態にある
物理セクタを仮想セクタに対応付けるセクタ設定手段を
有し、 前記ブロック情報管理手段は、前記セクタアドレス管理
手段により仮想セクタに対応付けられる複数の物理セク
タに属する物理ブロックのブロック情報を、前記セクタ
設定手段により仮想セクタに対応付けられた新たな物理
セクタに属する物理ブロックに反映させ、反映元の物理
セクタに属する物理ブロックのブロック情報を、未使用
状態を示すブロック情報に書き換え、 前記セクタアドレス管理手段は、さらに、仮想セクタと
反映元の物理セクタとの対応付けを消去することを特徴
とするメモリ管理方式。
10. The memory management system according to claim 1, further comprising sector setting means for associating a physical sector in which all physical blocks to which the physical block belongs belong to a virtual sector, the block information management means. Reflects the block information of the physical blocks belonging to a plurality of physical sectors associated with the virtual sector by the sector address management means on the physical block belonging to the new physical sector associated with the virtual sector by the sector setting means. Rewriting the block information of the physical block belonging to the reflection source physical sector to block information indicating an unused state, and further, the sector address management means further erases the association between the virtual sector and the reflection source physical sector. Memory management method characterized by.
【請求項11】請求項1に記載のメモリ管理方式であっ
て、 さらに、仮想セクタに対応付けられる複数の物理セクタ
のなかから、最後に対応付けられた物理セクタを検索す
るセクタ検索手段を有し、 前記ブロック情報管理手段は、前記セクタアドレス管理
手段により仮想セクタに対応付けられる複数の物理セク
タに属する物理ブロックのブロック情報を、前記セクタ
検索手段により検索された物理セクタに属する物理ブロ
ックに反映させ、反映元の物理セクタのうち前記セクタ
検索手段により検索された物理セクタを除いた物理セク
タに属する物理ブロックのブロック情報を、未使用状態
を示すブロック情報に書き換え、 前記セクタアドレス管理手段は、さらに、仮想セクタと
反映元の物理セクタのうち前記セクタ検索手段により検
索された物理セクタを除いた物理セクタとの対応付けを
消去することを特徴とするメモリ管理方式。
11. The memory management system according to claim 1, further comprising sector search means for searching a physical sector associated last among a plurality of physical sectors associated with a virtual sector. Then, the block information management means reflects the block information of the physical blocks belonging to a plurality of physical sectors associated with the virtual sector by the sector address management means in the physical blocks belonging to the physical sector searched by the sector search means. Rewriting the block information of the physical block belonging to the physical sector excluding the physical sector searched by the sector search unit in the physical sector of the reflection source to block information indicating an unused state, the sector address management unit, Further, the sector search means searches the virtual sector and the physical sector of the reflection source. Memory management method, characterized by erasing the correspondence between physical sector excluding the physical sector.
JP2002084322A 2002-03-25 2002-03-25 Memory management method and memory management device Expired - Fee Related JP3699942B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002084322A JP3699942B2 (en) 2002-03-25 2002-03-25 Memory management method and memory management device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002084322A JP3699942B2 (en) 2002-03-25 2002-03-25 Memory management method and memory management device

Publications (2)

Publication Number Publication Date
JP2003280822A true JP2003280822A (en) 2003-10-02
JP3699942B2 JP3699942B2 (en) 2005-09-28

Family

ID=29231732

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002084322A Expired - Fee Related JP3699942B2 (en) 2002-03-25 2002-03-25 Memory management method and memory management device

Country Status (1)

Country Link
JP (1) JP3699942B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7057942B2 (en) 2004-09-13 2006-06-06 Kabushiki Kaisha Toshiba Memory management device and memory device
US7239547B2 (en) 2005-05-30 2007-07-03 Kabushiki Kaisha Toshiba Memory device
US7872922B2 (en) 2005-09-29 2011-01-18 Kabushiki Kaisha Toshiba Memory system and method of writing into nonvolatile semiconductor memory
JP2014203405A (en) * 2013-04-09 2014-10-27 富士通株式会社 Information processing device, memory control device, data transfer control method, and data transfer control program

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7057942B2 (en) 2004-09-13 2006-06-06 Kabushiki Kaisha Toshiba Memory management device and memory device
US7227788B2 (en) 2004-09-13 2007-06-05 Kabushiki Kaisha Toshiba Memory management device and memory device
US7388792B2 (en) 2004-09-13 2008-06-17 Kabushiki Kaisha Toshiba Memory management device and memory device
US7239547B2 (en) 2005-05-30 2007-07-03 Kabushiki Kaisha Toshiba Memory device
US7872922B2 (en) 2005-09-29 2011-01-18 Kabushiki Kaisha Toshiba Memory system and method of writing into nonvolatile semiconductor memory
US8130557B2 (en) 2005-09-29 2012-03-06 Kabushiki Kaisha Toshiba Memory system and method of writing into nonvolatile semiconductor memory
US8310896B2 (en) 2005-09-29 2012-11-13 Kabushiki Kaisha Toshiba Memory system and method of writing into nonvolatile semiconductor memory
JP2014203405A (en) * 2013-04-09 2014-10-27 富士通株式会社 Information processing device, memory control device, data transfer control method, and data transfer control program

Also Published As

Publication number Publication date
JP3699942B2 (en) 2005-09-28

Similar Documents

Publication Publication Date Title
USRE42263E1 (en) Address conversion unit for memory device
US7606990B2 (en) Snapshot system
US20080120488A1 (en) Apparatus and method of managing nonvolatile memory
US8386746B2 (en) Storage unit management methods and systems
TWI424316B (en) Controller, data storage device, and program product
US20100199024A1 (en) Method and apparatus for managing data of flash memory via address mapping
KR20130051032A (en) Apparatus and method for controlling flash memory storing mapping table of block to erase
EP1729218A1 (en) Nonvolatile storage system
WO2014157817A1 (en) Method for mapping page address based on flash memory and system therefor
JP5313600B2 (en) Storage system and storage system operation method
JP6398102B2 (en) Memory system
JP2007041859A (en) File management program, file management apparatus and file management method
JP2008070975A (en) Data storage device and data storage method
JP2005174279A (en) Flash memory, mapping control apparatus and method for flash memory
JP2004303238A (en) Flash memory access device and method
JP2013235531A (en) Control device, storage device, and storage control method
JP3184630B2 (en) Image processing device
JP2003280822A (en) Memory management system
JP5012016B2 (en) Cache memory device, arithmetic processing device, and control method for cache memory device
JP2016038648A (en) Storage control device, copy control program, and copy control method
JP2005115561A (en) Flash rom controller
JP2010237907A (en) Storage device and recording method
US20070035769A1 (en) Image forming apparatus
CN103383664B (en) Control device, storage device and storage controlling method
CN1604046A (en) Method, system for managing information on relationships between target volumes

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050124

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050301

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050428

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20050705

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050711

R151 Written notification of patent or utility model registration

Ref document number: 3699942

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

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

Free format text: PAYMENT UNTIL: 20090715

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090715

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100715

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110715

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120715

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20130715

Year of fee payment: 8

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees