JPH0636579A - Method and device for controlling memory access - Google Patents

Method and device for controlling memory access

Info

Publication number
JPH0636579A
JPH0636579A JP21342892A JP21342892A JPH0636579A JP H0636579 A JPH0636579 A JP H0636579A JP 21342892 A JP21342892 A JP 21342892A JP 21342892 A JP21342892 A JP 21342892A JP H0636579 A JPH0636579 A JP H0636579A
Authority
JP
Japan
Prior art keywords
memory
area
memory chip
flash memory
writing
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
JP21342892A
Other languages
Japanese (ja)
Inventor
Masataka Imai
雅隆 今井
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.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
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 Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP21342892A priority Critical patent/JPH0636579A/en
Publication of JPH0636579A publication Critical patent/JPH0636579A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To effectively utilize one piece of memory chip of a flash ROM, etc., and to improve its availability. CONSTITUTION:The memory chip M1 is capable of forming a write unit in an optional size by dividing it to plural areas at every prescribed address range. When the cumulative value of the number of write times of the memory chip M1 for the area 5 arrives at a limit value, other area 6 in the empty area as the object of access by a CPU 1 is set and switched, and thereafter, information is written in the area 6.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、フラッシュROMや
EPROMのような書込回数に制限のあるメモリ(以下
「フラッシュメモリ」と総称する)のアクセスを制御す
るためのメモリアクセス制御方法およびその装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory access control method and apparatus for controlling access to a memory such as a flash ROM or EPROM having a limited number of times of writing (hereinafter collectively referred to as "flash memory"). Regarding

【0002】[0002]

【従来の技術】近年、電源を切っても記憶内容が保持さ
れるフラッシュメモリを外部記憶装置として用いること
が検討されている。このフラッシュメモリは書込回数に
制限があるため、情報の書込に際し、常に書込回数の累
積値をチェックし、その累積値が制限値に達したとき、
アクセスの対象を現在のメモリチップから他のメモリチ
ップへ切り換えて、そのメモリチップへ情報を書き込む
ようにしている。
2. Description of the Related Art In recent years, it has been considered to use a flash memory, which retains stored contents even when the power is turned off, as an external storage device. Since this flash memory has a limited number of writes, the cumulative value of the number of writes is always checked when writing information, and when the cumulative value reaches the limit value,
The target of access is switched from the current memory chip to another memory chip, and information is written to that memory chip.

【0003】図4は、特開平2−27596号公報に記
載されたこの種メモリアクセス制御装置の具体例を示
す。図中、M1〜Mnは予め用意されたn個のメモリチ
ップであり、このうち太線で示す1番目のメモリチップ
M1がCPU1によるアクセスの対象となっている。選
択回路2はアクセスの対象を切り換えて選択するための
ものである。
FIG. 4 shows a concrete example of this type of memory access control device disclosed in Japanese Patent Laid-Open No. 2-27596. In the figure, M1 to Mn are n memory chips prepared in advance, and the first memory chip M1 shown by the thick line among these is the target of access by the CPU 1. The selection circuit 2 is for switching and selecting an access target.

【0004】いま情報の書込に際し、1番目のメモリチ
ップM1に対する書込回数の累積値が制限値に達する
と、選択回路2により1番目のメモリチップM1のアク
セスが禁止され、アクセスの対象が2番目のメモリチッ
プM2に切り換えられ、情報がそのメモリチップM2に
書き込まれる。以下同様に、各メモリチップM2〜Mn
につき書込回数が制限値に達する毎に、アクセスの対象
が順次切り換えられてゆく。各メモリチップM1〜Mn
に対する書込回数の制限値がxであれば、書込可能回数
は(n×x)回となる。なおCPU1からみたアドレス
はメモリチップが1個の場合と同じである。
At the time of writing information, when the cumulative value of the number of times of writing to the first memory chip M1 reaches the limit value, the selection circuit 2 prohibits the access of the first memory chip M1 and the access target is Switching to the second memory chip M2, the information is written to that memory chip M2. Similarly, the following memory chips M2 to Mn
Every time the number of writings reaches the limit value, the access target is sequentially switched. Each memory chip M1 to Mn
If the limit value of the number of times of writing for x is x, the number of writable times is (n × x). The address viewed from the CPU 1 is the same as that when there is one memory chip.

【0005】[0005]

【発明が解決しようとする課題】フラッシュメモリを外
部記憶に用いるために、メモリチップのメモリ容量を大
きくした場合、上記のようにチップ単位で書込回数が制
限されると、1個のメモリチップを有効に活用できず、
その利用率はきわめて低いものとなる。
When the memory capacity of the memory chip is increased in order to use the flash memory for external storage, if the number of writes is limited on a chip-by-chip basis as described above, one memory chip is used. Cannot be used effectively,
Its utilization rate is extremely low.

【0006】この発明は、上記問題に着目してなされた
もので、1個のメモリチップを所定のアドレス範囲毎に
区分して用いることにより、1個のメモリチップを有効
に活用してその利用率を向上させたメモリアクセス制御
方法およびその装置を提供することを目的とする。
The present invention has been made in view of the above problems, and by effectively using one memory chip by dividing one memory chip for each predetermined address range and using it. An object of the present invention is to provide a memory access control method and a device therefor with improved rate.

【0007】[0007]

【課題を解決するための手段】請求項1の発明は、書込
回数が制限されたフラッシュメモリのアクセスを制御す
るためのメモリアクセス制御方法であって、前記フラッ
シュメモリを所定のアドレス範囲毎に区分し、ある区分
に対する書込回数の累積値が制限値に達したとき、アク
セスの対象を他の区分へ切り換えてその区分へ情報を書
き込むことを特徴とする。
According to a first aspect of the present invention, there is provided a memory access control method for controlling access to a flash memory having a limited number of writing operations. It is characterized in that when the cumulative value of the number of times of writing for a certain section reaches a limit value, the access target is switched to another section and information is written to that section.

【0008】また請求項2の発明は、書込回数が制限さ
れたフラッシュメモリのアクセスを制御するためのメモ
リアクセス制御装置であって、前記フラッシュメモリを
所定のアドレス範囲毎に区分して各区分毎に書込回数の
制限値と書込回数の累積値とを記憶させる記憶手段と、
前記記憶手段の記憶内容を参照してフラッシュメモリの
各区分に対する情報の書込可否を判断する判断手段と、
前記判断手段による情報の書込可否の判断に応じてアク
セスの対象とするフラッシュメモリの区分を決定し切り
換える切換手段とを備えたものである。
According to a second aspect of the present invention, there is provided a memory access control device for controlling access to a flash memory having a limited number of writing operations, wherein the flash memory is divided into predetermined address ranges. Storage means for storing the limit value of the number of times of writing and the cumulative value of the number of times of writing for each;
Determination means for determining whether or not information can be written in each section of the flash memory by referring to the stored contents of the storage means;
And a switching unit that determines and switches the section of the flash memory to be accessed in accordance with the determination whether the information can be written by the determination unit.

【0009】[0009]

【作用】フラッシュメモリを所定のアドレス範囲毎に区
分し、ある区分に対する書込回数が制限値に達したと
き、それ以後、アクセスの対象を他の区分へ切り換えて
その区分へ情報を書き込むようにしたので、1個のメモ
リチップにつき任意の大きさの書込単位が形成され、1
個のメモリチップが有効に活用されてその利用率が向上
する。
The flash memory is divided into predetermined address ranges, and when the number of times of writing to a certain section reaches the limit value, thereafter, the access target is switched to another section and the information is written to that section. As a result, a write unit of any size is formed for one memory chip, and
The individual memory chips are effectively used and the utilization rate is improved.

【0010】請求項2に記載されたメモリアクセス制御
装置では、情報の書込に際し、記憶手段に記憶された書
込回数の累積値がもし制限値より小さければ、アクセス
の対象として現在の区分が選択され、またもし累積値が
制限値に達していれば、他の区分に切り換えられ、それ
ぞれ情報の書込が行われる。
According to another aspect of the memory access control device of the present invention, when the information is written, if the cumulative value of the number of times of writing stored in the storage means is smaller than the limit value, the current classification as the access target is determined. If it is selected and the cumulative value has reached the limit value, it is switched to another section and the information is written respectively.

【0011】[0011]

【実施例】図1は、この発明が実施されたメモリアクセ
ス制御装置の回路構成例を示す。同図中、M1〜Mnは
予め用意されたフラッシュROMなどのn個のメモリチ
ップであり、CPU1により各メモリチップM1〜Mn
のアクセスが可能であることは従来と同様である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows an example of the circuit configuration of a memory access control device embodying the present invention. In the figure, M1 to Mn are n memory chips such as a flash ROM prepared in advance, and the CPU1 makes each of the memory chips M1 to Mn.
Is accessible as in the past.

【0012】各メモリチップM1〜Mnは、所定のアド
レス範囲毎に複数のエリアに区分して任意の大きさの書
込単位を形成することが可能であって、各エリアをファ
イルとして管理するためのファイル管理データがRAM
3に記憶させてある。図1において、斜線で示すメモリ
チップM1のエリア5は現在のアクセスの対象エリアで
あって、このエリア5に対する書込回数の累積値が制限
値に達したとき、アクセスの対象として空きエリア内の
他のエリア6を設定して切り換えられる。
Each memory chip M1 to Mn can be divided into a plurality of areas for each predetermined address range to form a writing unit of an arbitrary size, and each area is managed as a file. File management data of RAM
It is stored in 3. In FIG. 1, an area 5 of the memory chip M1 indicated by diagonal lines is a current access target area, and when the cumulative value of the number of writings to this area 5 reaches a limit value, the area 5 in the empty area is targeted for access. Other areas 6 can be set and switched.

【0013】前記RAM3は、バッテリ4によりバック
アップされており、このRAM3に記憶されるファイル
管理データの構成が図2に例示してある。このファイル
管理データには、書込回数の制限値a、書込回数の累積
値b、アクセスの対象エリアのアドレス先頭値c、その
エリアに確保されたデータ量d、その他の属性eなどの
各データが含まれる。なおその他の属性eには、このフ
ァイルに対する情報の書込可否を表す情報などが含まれ
る。
The RAM 3 is backed up by a battery 4, and the structure of the file management data stored in the RAM 3 is illustrated in FIG. This file management data includes a limit value a of the number of times of writing, a cumulative value b of the number of times of writing, an address start value c of the area to be accessed, a data amount d secured in the area, and other attributes e. Contains data. The other attribute e includes information indicating whether or not information can be written in this file.

【0014】CPU1は、情報の書込に際し、図3に示
す制御手順に従って、アクセスの対象となっているエリ
ア5に対する情報の書込可否を判断し、その判断に応じ
てアクセスの対象とするエリアの選定や切換えを行って
情報を書き込む。
When writing information, the CPU 1 determines whether or not information can be written in the area 5 to be accessed according to the control procedure shown in FIG. 3, and the area to be accessed according to the determination. Select and switch to write information.

【0015】まずCPU1は、図3のステップ1(図
中、「ST1」で示す)において、書込回数の累積値b
が書込回数の制限値aと一致するか否かを判断する。も
しその判定が「NO」、すなわち書込回数の累積値bが
いまだ制限値aに達していなければ、ステップ1からス
テップ5へ進み、アクセスの対象のエリア5に書込デー
タを転送し、つぎのステップ6で書込回数の累積値bを
インクリメントする。
First, in step 1 of FIG. 3 (indicated by "ST1" in the figure), the CPU 1 cumulatively writes the number of times of writing b.
Is determined to be equal to or less than the write count limit value a. If the determination is “NO”, that is, if the cumulative value b of the number of times of writing has not reached the limit value a, the process proceeds from step 1 to step 5 to transfer the write data to the area 5 to be accessed, At step 6, the cumulative value b of the number of writings is incremented.

【0016】もし書込回数の累積値bが制限値aと一致
していれば、ステップ1の判定が「YES」となり、つ
ぎのステップ2で同じメモリチップM1に空きエリアが
存在するか否かを、図示しない空きエリアの管理ファイ
ルを参照して探索する。
If the cumulative value b of the number of times of writing agrees with the limit value a, the determination in step 1 becomes "YES", and in the next step 2, whether or not there is an empty area in the same memory chip M1. Is searched by referring to a management file in an empty area (not shown).

【0017】もし空きエリアが存在していれば、ステッ
プ2の判定が「YES」となり、情報の書込に必要な大
きさのエリア6を空きエリア内に確保して、ファイル管
理データのデータ量dを設定し、アドレス先頭値cをエ
リア6の先頭アドレスに書き換えた後、書込データが転
送され、書込回数の累積値bがインクリメントされる
(ステップ5,6)。これにより前のエリア5のアクセ
スが禁止される。
If there is a free area, the determination in step 2 becomes "YES", and the area 6 of a size necessary for writing information is secured in the free area, and the data amount of the file management data is increased. After setting d and rewriting the address head value c to the head address of the area 6, the write data is transferred and the cumulative value b of the number of times of writing is incremented (steps 5 and 6). This prohibits access to the previous area 5.

【0018】もしステップ2において、同じメモリチッ
プM1に空きエリアが存在しないと判断されたとき、ス
テップ2からステップ7へ移行し、ディスプレイ上にそ
のメモリチップM1がオーバーフローしている旨を表示
して、メモリチップの交換を促す。
If it is determined in step 2 that there is no free area in the same memory chip M1, the process proceeds from step 2 to step 7 and the display indicates that the memory chip M1 has overflowed. , Prompt replacement of memory chip.

【0019】なお上記実施例では、ファイル管理データ
はRAM3に記憶させているが、電源が切られる都度、
その記憶内容をメモリチップの所定エリアに移すことも
可能である。
Although the file management data is stored in the RAM 3 in the above embodiment, each time the power is turned off,
It is also possible to transfer the stored contents to a predetermined area of the memory chip.

【0020】[0020]

【発明の効果】この発明は上記の如く、フラッシュメモ
リを所定のアドレス範囲毎に区分し、ある区分に対する
書込回数が制限値に達したとき、それ以後、アクセスの
対象を別の区分へ切り換えてその区分へ情報を書き込む
ようにしたから、1個のメモリチップにつき任意の大き
さの書込単位が形成され、1個のメモリチップが有効に
活用されてその利用率が向上するという効果を奏する。
As described above, according to the present invention, the flash memory is divided into predetermined address ranges, and when the number of times of writing to a certain section reaches the limit value, thereafter, the access target is switched to another section. Since the information is written to that section, a write unit of an arbitrary size is formed for one memory chip, and one memory chip is effectively used, and its utilization rate is improved. Play.

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

【図1】この発明が実施されたメモリアクセス制御装置
の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a memory access control device embodying the present invention.

【図2】ファイル管理データの構成を示す説明図であ
る。
FIG. 2 is an explanatory diagram showing a structure of file management data.

【図3】CPUによる制御手順を示すフローチャートで
ある。
FIG. 3 is a flowchart showing a control procedure by a CPU.

【図4】従来例の構成を示すブロック図である。FIG. 4 is a block diagram showing a configuration of a conventional example.

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

M1〜Mn メモリチップ 1 CPU 3 RAM M1 to Mn memory chip 1 CPU 3 RAM

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】書込回数が制限されたフラッシュメモリの
アクセスを制御するためのメモリアクセス制御方法であ
って、 前記フラッシュメモリを所定のアドレス範囲毎に区分
し、ある区分に対する書込回数の累積値が制限値に達し
たとき、アクセスの対象を他の区分へ切り換えてその区
分へ情報を書き込むことを特徴とするメモリアクセス制
御方法。
1. A memory access control method for controlling access to a flash memory with a limited number of writes, wherein the flash memory is divided into predetermined address ranges, and the number of writes is accumulated in a certain section. A memory access control method, wherein when a value reaches a limit value, an access target is switched to another section and information is written to the section.
【請求項2】書込回数が制限されたフラッシュメモリの
アクセスを制御するためのメモリアクセス制御装置であ
って、 前記フラッシュメモリを所定のアドレス範囲毎に区分し
て各区分毎に書込回数の制限値と書込回数の累積値とを
記憶させる記憶手段と、 前記記憶手段の記憶内容を参照してフラッシュメモリの
各区分に対する情報の書込可否を判断する判断手段と、 前記判断手段による情報の書込可否の判断に応じてアク
セスの対象とするフラッシュメモリの区分を決定し切り
換える切換手段とを備えたメモリアクセス制御装置。
2. A memory access control device for controlling access to a flash memory having a limited number of write operations, wherein the flash memory is divided into predetermined address ranges and the number of write operations is divided into each division. Storage means for storing the limit value and the cumulative value of the number of times of writing, judgment means for judging whether or not information can be written in each section of the flash memory by referring to the stored contents of the storage means, and information by the judgment means Memory access control device, which determines and switches the section of the flash memory to be accessed according to the determination of whether the writing is possible or not.
JP21342892A 1992-07-17 1992-07-17 Method and device for controlling memory access Pending JPH0636579A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21342892A JPH0636579A (en) 1992-07-17 1992-07-17 Method and device for controlling memory access

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21342892A JPH0636579A (en) 1992-07-17 1992-07-17 Method and device for controlling memory access

Publications (1)

Publication Number Publication Date
JPH0636579A true JPH0636579A (en) 1994-02-10

Family

ID=16639068

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21342892A Pending JPH0636579A (en) 1992-07-17 1992-07-17 Method and device for controlling memory access

Country Status (1)

Country Link
JP (1) JPH0636579A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08314807A (en) * 1995-05-19 1996-11-29 Fuji Xerox Co Ltd Control method for eeprom
US6771879B1 (en) 1999-10-27 2004-08-03 Nec Corporation Video processor for producing stored video key signals to be used for superimposing text or the like on background images
JP2006260981A (en) * 2005-03-17 2006-09-28 Shin Kobe Electric Mach Co Ltd Battery controller

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08314807A (en) * 1995-05-19 1996-11-29 Fuji Xerox Co Ltd Control method for eeprom
US6771879B1 (en) 1999-10-27 2004-08-03 Nec Corporation Video processor for producing stored video key signals to be used for superimposing text or the like on background images
JP2006260981A (en) * 2005-03-17 2006-09-28 Shin Kobe Electric Mach Co Ltd Battery controller

Similar Documents

Publication Publication Date Title
JPH06324937A (en) Memory card
JP4227106B2 (en) Data recovery apparatus and method for flash memory
JP2006302255A (en) Data storage device with nonvolatile memory of different kind and method for driving thereof
EP1330715B1 (en) Storing device, storing control method and program
JPH05204725A (en) File managing device
JPH0636579A (en) Method and device for controlling memory access
JPH07114500A (en) Nonvolatile memory device
US20030041213A1 (en) Method and apparatus for using a cache memory
US6831798B2 (en) Apparatus and method for reproducing first partial information and reading second partial information, which permit continuous reproduction of information, information recording medium, and reproduction program
JPH05274219A (en) Storage device
JPS5925307B2 (en) Storage device
JPH05258585A (en) Filing device
JPS5947381B2 (en) magnetic bubble storage device
JPH0254346A (en) File switching processing method
JP2000322894A (en) Semiconductor memory device
JPH06208502A (en) Memory control method
JPH08115263A (en) Memory unit
JPH0774543A (en) Waveform editing method
JPH01112600A (en) Service life decision device for storage element
JP2002132548A (en) Storage device and method
KR0168973B1 (en) Rom accessing method and its apparatus
JPH0660645A (en) Power saving storage device
JPS63123140A (en) History information storage device
JPH10228787A (en) Input/output module
JPS61100853A (en) Data processing system