[go: up one dir, main page]

JPH04317149A - Management system for eeprom - Google Patents

Management system for eeprom

Info

Publication number
JPH04317149A
JPH04317149A JP3084947A JP8494791A JPH04317149A JP H04317149 A JPH04317149 A JP H04317149A JP 3084947 A JP3084947 A JP 3084947A JP 8494791 A JP8494791 A JP 8494791A JP H04317149 A JPH04317149 A JP H04317149A
Authority
JP
Japan
Prior art keywords
data
block
management table
management
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.)
Pending
Application number
JP3084947A
Other languages
Japanese (ja)
Inventor
Haruo Suzuki
晴雄 鈴木
Kanji Suzuki
寛治 鈴木
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.)
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Original Assignee
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Meidensha Corp, Meidensha Electric Manufacturing Co Ltd filed Critical Meidensha Corp
Priority to JP3084947A priority Critical patent/JPH04317149A/en
Publication of JPH04317149A publication Critical patent/JPH04317149A/en
Pending legal-status Critical Current

Links

Landscapes

  • For Increasing The Reliability Of Semiconductor Memories (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Read Only Memory (AREA)

Abstract

PURPOSE:To manage EEPROM as consumption articles, to pay attention to the use limit of data writing, to automatically allocate other areas even if a part of a memory is destroyed and to effectively use the area. CONSTITUTION:The areas of the memory are made into blocks. The number of access times and the areas of link destination are mentioned in a minute management table (DBMT) 2 for respective blocks, and a block management table (BMT) 1 manages the use situation. A storage content is automatically moved to the link destination if need. Data is made to correspond to area management. A head block number, a data head pointer and a data size are provided for prescribed positions.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、ワンチップマイコン等
に使用される電気的消去可能プログラマブル不揮発性メ
モリ(Electrically Erasable 
and Programmable Read Onl
y Memory;以下、E2PROMと略称する)の
管理方式に関し、特に、ソフト的に管理して使用するE
2PROMの管理方式に関する。
[Industrial Application Field] The present invention relates to electrically erasable programmable nonvolatile memory used in one-chip microcomputers, etc.
and Programmable Read Onl
Regarding the management method of E2Memory (hereinafter abbreviated as E2PROM), in particular,
This relates to a 2PROM management method.

【0002】0002

【従来の技術】E2PROMは、いわゆるEPROMが
紫外線の照射によりデータを消去していたのに対して、
電気的にデータを消去することができ、ワンチップマイ
コンやICカードの記憶素子として注目されている。E
2PROMは、消耗品なので、フロッピーディスクやハ
ードディスクと同様な管理を行う必要があるが、従来は
それほど注意を払われていない。フロッピーディスクや
ハードディスクではディレクトリ管理やファイルアロケ
ーションテーブル管理が行われているので、これと同様
にアクセスする方法が考慮されている程度である。
[Prior Art] E2PROM erases data by irradiating it with ultraviolet light, whereas so-called EPROM erases data by irradiating it with ultraviolet light.
Data can be erased electrically, and it is attracting attention as a memory element for one-chip microcomputers and IC cards. E
Since 2PROM is a consumable item, it needs to be managed in the same way as floppy disks and hard disks, but so far it has not been given much attention. Directory management and file allocation table management are performed on floppy disks and hard disks, so the same access methods are only considered.

【0003】0003

【発明が解決しようとする課題】ところで、リアルタイ
ムOSやUNIX上でE2PROMをアクセスする場合
は、メモリマップ化された入出力部によって、通常のメ
モリと同様なアクセスを行わなければならないが、従来
の方法でE2PROMをアクセスすると、下記の課題が
生じる。即ち、(1)E2PROMがアクセスできなく
なったとき、他の領域へアサインできず、E2PROM
を消耗品として扱えない。
[Problem to be Solved by the Invention] By the way, when accessing E2PROM on a real-time OS or UNIX, access must be performed in the same way as normal memory using a memory-mapped input/output section. Accessing the E2PROM using this method poses the following problems. That is, (1) when the E2PROM becomes inaccessible, it cannot be assigned to another area, and the E2PROM
cannot be treated as consumables.

【0004】(2)メモリアクセスの使用状況を追跡し
て、耐久度数を管理することが不可能である。
(2) It is impossible to track the usage status of memory access and manage the durability.

【0005】(3)E2PROMの領域はサイズに制限
を受けるので通常メモリのアクセス方法よりも有効に活
用する必要があり、各領域を自由に登録できなければな
らないが、従来の方法では固定的にアサインされてしま
っている。
(3) Since the E2PROM area is limited in size, it must be used more effectively than normal memory access methods, and each area must be able to be registered freely, but in conventional methods, it is not fixed. It has been assigned.

【0006】本発明は、このような課題に鑑みて創案さ
れたもので、データ書込みの回数をカウントし、消耗品
としての使用限度を注意でき、メモリの一部が破壊され
ても自動的に他領域を割当てられ、領域を有効に活用す
ることが可能なE2PROMの管理方式を提供すること
を目的としている。
The present invention was devised in view of these problems, and it is possible to count the number of data writes, to take note of the usage limit as a consumable item, and to automatically restore memory even if part of the memory is destroyed. It is an object of the present invention to provide a management method for an E2PROM that can allocate other areas and make effective use of the areas.

【0007】[0007]

【課題を解決するための手段】本発明における上記の課
題を解決するための手段は、電気的消去可能なプログラ
マブル不揮発性メモリ(EEPROM)の管理方式にお
いて、メモリの領域をブロック化し、それらの使用状況
を管理するブロック管理テーブルとブロック毎にアクセ
ス回数及び領域をリンクし、必要な際は記憶内容を移す
相手先を記載した詳細ブロック管理テーブルとを備えた
領域管理と、各データ毎に先頭ブロック番号及びデータ
サイズを含むジェネラル管理テーブルとデータ先頭ポイ
ンタ及びチェック用データを含むディテール管理テーブ
ルとを備えたデータ管理とで成るメモリ管理方式による
ものである。
[Means for Solving the Problems] A means for solving the above problems in the present invention is to block memory areas and use them in a management system for electrically erasable programmable non-volatile memory (EEPROM). Area management includes a block management table that manages the status, a detailed block management table that links the number of accesses and areas for each block, and describes the destination to which the memory contents will be transferred when necessary, and the first block for each data. This is based on a memory management system that includes data management that includes a general management table that includes numbers and data sizes, and a detail management table that includes data header pointers and check data.

【0008】[0008]

【作用】本発明は、従来は普通のROMやPROMと同
様に扱われていたE2PROMの管理方式をむしろフロ
ッピーディスクやハードディスクに近いものに変更し、
各種のアクセスに対応させるものである。そのために、
本発明ではメモリの領域をブロック化し、それに伴う領
域管理とデータ管理とを行う。本発明の領域管理は、ブ
ロック管理テーブルと詳細ブロック管理テーブルとで成
り、ブロック管理テーブルには各ブロックの使用状況が
記載され、詳細ブロック管理テーブルにはブロック毎に
アクセス回数とリンクする相手先が記載されている。こ
れにより、領域は連結され、必要な際は記憶内容をその
相手先に移す。データ管理もこれに対応させて、ジェネ
ラル管理テーブルに各データの先頭ブロック番号及びデ
ータサイズを記載し、ディテール管理テーブルにデータ
先頭ポインタ及びチェック用データを記憶して、アクセ
スやブロックの獲得及び移動に備えている。
[Operation] The present invention changes the management method of E2PROM, which was conventionally treated in the same way as ordinary ROM and PROM, to one that is more similar to that of a floppy disk or hard disk.
This is to accommodate various types of access. for that,
In the present invention, a memory area is divided into blocks, and the associated area management and data management are performed. The area management of the present invention consists of a block management table and a detailed block management table.The block management table describes the usage status of each block, and the detailed block management table shows the number of accesses and linked destinations for each block. Are listed. This connects the areas and transfers the stored contents to the other party when necessary. Data management also corresponds to this, by recording the first block number and data size of each data in the general management table, and storing the data start pointer and check data in the detail management table, so that access, block acquisition, and movement can be easily performed. We are prepared.

【0009】[0009]

【実施例】以下、図面を参照して、本発明の実施例を詳
細に説明する。図1は、本発明の領域管理の説明図であ
る。本発明では、メモリを固定サイズのブロック化し、
その使用状況を管理するブロック管理テーブル(以下、
BMTと呼称する)1を図示の如く設ける。BMT1は
、ブロック1〜ブロックnに対して「使用中」,「シス
テム使用」又は「空領域」,「障害発生(使用不可)」
等の各状況を設定される。BMT1の各ブロックは、詳
細ブロック管理テーブル(以下、DBMTと呼称する)
2によって管理される。DBMT2は、各ブロックの先
頭に配置され、図中(1)には該ブロックに連結される
次のブロックの番号が設定され、(2)には該ブロック
に連結される前のブロックの番号が設定され、(3)に
は当該ブロックのアクセス回数が設定される。 本実施例では、上記の(1)及び(2)によりE2PR
OMの所望の領域を獲得し、ブロックが複数の場合は、
(2)でリンクを設定することにより領域の獲得を可能
にする。また、1つのブロック内で障害が発生したとき
は空ブロックを獲得して、障害が発生したブロックのリ
ンクを新規獲得ブロックに移す。領域を開放する場合は
、ブロックを空領域にし、リンクを外す。ブロックをア
クセスする場合は、ブロックアクセス回数をUPし、耐
久度数を越えるときエラー通知を行う。
Embodiments Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 is an explanatory diagram of area management according to the present invention. In the present invention, memory is made into fixed-sized blocks,
Block management table (hereinafter referred to as
(referred to as BMT) 1 is provided as shown in the figure. BMT1 indicates "in use", "system use", "empty area", or "fault has occurred (unusable)" for blocks 1 to block n.
etc. are set for each situation. Each block of BMT1 has a detailed block management table (hereinafter referred to as DBMT).
Managed by 2. DBMT2 is placed at the beginning of each block, and in (1) in the figure, the number of the next block to be connected to the block is set, and (2) is the number of the block before being connected to the block. The number of accesses to the block is set in (3). In this example, E2PR is
Acquire the desired area of OM and if there are multiple blocks,
By setting a link in (2), it is possible to acquire an area. Furthermore, when a failure occurs within one block, an empty block is acquired and the link of the block where the failure occurs is transferred to the newly acquired block. To release the area, make the block an empty area and remove the link. When accessing a block, the block access count is increased and an error notification is issued when the durability count is exceeded.

【0010】図2は、本発明のデータ管理の説明図であ
る。本発明では、図1に示した方式で領域を管理するが
、そのためには、各データが下記の如く設定される必要
がある。本実施例では、データの管理はジェネラル管理
とディテール管理とで成り、ジェネラル管理テーブル(
以下、GDMTと呼称する)21には図(a)に示すよ
うに設定状態(設定の有無),先頭ブロックの番号,デ
ータサイズ(獲得ブロック数),ディテール項目数(m
)等を設定される。ディテール管理テーブル(以下、D
DMTと呼称する)22には図(b)に示すように、デ
ータ先頭ポインタ,ディテールデータサイズ及びブロッ
クチェックコード(BCC)等が設定される。E2PR
OMにデータを書込む場合は、GDMTの番号とディテ
ール項目数とデータサイズを登録した後データ書込みを
行い、更に、BCCデータを作成して書込みデータのチ
ェックを行う。データ読み出しの場合にも、BCCデー
タによるチェックを行う。
FIG. 2 is an explanatory diagram of data management according to the present invention. In the present invention, the area is managed using the method shown in FIG. 1, but in order to do so, each data needs to be set as shown below. In this embodiment, data management consists of general management and detail management, and the general management table (
(hereinafter referred to as GDMT) 21, as shown in Figure (a), the setting status (setting or not), the number of the first block, the data size (number of acquired blocks), the number of detail items (m
) etc. are set. Detail management table (hereinafter referred to as D
As shown in Figure (b), the data head pointer, detail data size, block check code (BCC), etc. are set in the DMT 22 (referred to as DMT). E2PR
When writing data to OM, data is written after registering the GDMT number, number of detail items, and data size, and furthermore, BCC data is created and the written data is checked. Also in the case of data reading, a check is performed using BCC data.

【0011】本実施例は下記の効果が明らかである。The following effects are evident in this embodiment.

【0012】(1)E2PROMのアクセス回数をカウ
ントし、データ書込みの回数を管理することが可能にな
るので、消耗品としての使用限度を越える場合に注意し
、交換等に準備することができる。
(1) Since it is possible to count the number of accesses to the E2PROM and manage the number of times data is written, it is possible to be careful when the usage limit as a consumable item is exceeded and prepare for replacement.

【0013】(2)E2PROMが破壊されて書込みが
不可能になった場合、自動的に他領域を割当てられ、E
2PROMの一部が破壊されても、全体が使用不能にな
ることはなく、正常な動作が可能である。
(2) If the E2PROM is destroyed and writing becomes impossible, another area is automatically allocated and the E2PROM is
Even if a part of the 2PROM is destroyed, the entire 2PROM does not become unusable and normal operation is possible.

【0014】(3)領域をデータによって固定的にアサ
インせず、自由に使用できるので、領域を有効に利用で
きる。
(3) Since the area is not fixedly assigned by data and can be used freely, the area can be used effectively.

【0015】(4)他プログラムへの移植性に優れ、E
2PROMに限らず各種消耗品デバイスに応用できる。
(4) Excellent portability to other programs, E
It can be applied not only to 2PROM but also to various consumable devices.

【0016】[0016]

【発明の効果】以上、説明したとおり、本発明によれば
、データ書込みの回数をカウントし、消耗品としての使
用限度を注意でき、メモリの一部が破壊されても自動的
に他領域を割当てられ、領域を有効に活用することが可
能なE2PROMの管理方式を提供することができる。
[Effects of the Invention] As explained above, according to the present invention, the number of data writes can be counted, the usage limit as a consumable item can be taken into account, and even if part of the memory is destroyed, other areas can be automatically restored. It is possible to provide an E2PROM management method that can effectively utilize allocated areas.

【図面の簡単な説明】[Brief explanation of the drawing]

【図1】本発明の領域管理の説明図。FIG. 1 is an explanatory diagram of area management of the present invention.

【図2】本発明のデータ管理の説明図。FIG. 2 is an explanatory diagram of data management of the present invention.

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

1…BMT、2…DBMT、21…GDMT、22…D
DMT。
1...BMT, 2...DBMT, 21...GDMT, 22...D
DMT.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  電気的消去可能なプログラマブル不揮
発性メモリ(EEPROM)の管理方式において、メモ
リの領域をブロック化し、それらの使用状況を管理する
ブロック管理テーブルとブロック毎にアクセス回数及び
領域をリンクし、必要な際は記憶内容を移す相手先を記
載した詳細ブロック管理テーブルとを備えた領域管理と
、各データ毎に先頭ブロック番号及びデータサイズを含
むジェネラル管理テーブルとデータ先頭ポインタ及びチ
ェック用データを含むディテール管理テーブルとを備え
たデータ管理とで成ることを特徴とするEEPROMの
管理方式。
Claim 1: In a management system for electrically erasable programmable non-volatile memory (EEPROM), memory areas are divided into blocks, and access counts and areas are linked for each block to a block management table that manages their usage status. , an area management table that includes a detailed block management table that describes the destination to which the memory contents are transferred when necessary, a general management table that includes the first block number and data size for each data, a data start pointer, and check data. 1. A management method for an EEPROM, comprising: a detail management table including a data management table;
JP3084947A 1991-04-17 1991-04-17 Management system for eeprom Pending JPH04317149A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3084947A JPH04317149A (en) 1991-04-17 1991-04-17 Management system for eeprom

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3084947A JPH04317149A (en) 1991-04-17 1991-04-17 Management system for eeprom

Publications (1)

Publication Number Publication Date
JPH04317149A true JPH04317149A (en) 1992-11-09

Family

ID=13844838

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3084947A Pending JPH04317149A (en) 1991-04-17 1991-04-17 Management system for eeprom

Country Status (1)

Country Link
JP (1) JPH04317149A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08212311A (en) * 1995-02-03 1996-08-20 Olympus Optical Co Ltd Information reproduction system and information recording system, and their recording medium
JPH11110263A (en) * 1997-09-30 1999-04-23 Sony Corp Storage and data processing device and method
JP2007011536A (en) * 2005-06-29 2007-01-18 Victor Co Of Japan Ltd Recording apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08212311A (en) * 1995-02-03 1996-08-20 Olympus Optical Co Ltd Information reproduction system and information recording system, and their recording medium
JPH11110263A (en) * 1997-09-30 1999-04-23 Sony Corp Storage and data processing device and method
JP2007011536A (en) * 2005-06-29 2007-01-18 Victor Co Of Japan Ltd Recording apparatus

Similar Documents

Publication Publication Date Title
TWI297893B (en) Method and apparatus for managing an erase count block
US7571176B2 (en) Selective file erasure using metadata modifications
US8200893B2 (en) Storage system and storage management method for controlling off-line mode and on-line of flash memory
KR0130008B1 (en) Filesystems Used in Multiple Storage Systems
JP4596715B2 (en) An array for storing various versions of a data set in separate memory areas and a method for updating a data set in memory
US20020026566A1 (en) Data backup in non-volatile memory
US7219169B2 (en) Composite DMA disk controller for efficient hardware-assisted data transfer operations
CN102047234A (en) Ranking and prioritizing point in time snapshots
US9087009B2 (en) Systems and methods for replication of data utilizing delta volumes
JPH117505A (en) Card type storage media
DE202008018573U1 (en) storage system
TW200413916A (en) Method and apparatus for grouping pages within a block
JP2004021811A5 (en)
DE69023770T2 (en) METHOD FOR OPERATING A DATA PROCESSING SYSTEM.
US7162602B2 (en) More granular and more efficient write protection for disk volumes
JPH04317149A (en) Management system for eeprom
JPH04321128A (en) Method for containing defective disk page in electronic printing system
JPH04157699A (en) Preliminary writing method for flash erasure-type e2 prom
CN108920386B (en) Wear leveling and access method, equipment and storage medium for nonvolatile memory
JP4577300B2 (en) Storage device, storage device access control method, and storage device access control program
EP1808769B1 (en) Method for manipulating state machine storage in a small memory space
JPH0969028A (en) Magnetic tape cartridge control system
JPH10188584A (en) Memory control device
JPH03132819A (en) Medium controller
JPH02299037A (en) File allocation processing system