[go: up one dir, main page]

JP2001067881A - Content addressable storage device and storage medium - Google Patents

Content addressable storage device and storage medium

Info

Publication number
JP2001067881A
JP2001067881A JP24357099A JP24357099A JP2001067881A JP 2001067881 A JP2001067881 A JP 2001067881A JP 24357099 A JP24357099 A JP 24357099A JP 24357099 A JP24357099 A JP 24357099A JP 2001067881 A JP2001067881 A JP 2001067881A
Authority
JP
Japan
Prior art keywords
eeprom
associative
rewrites
data
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
JP24357099A
Other languages
Japanese (ja)
Inventor
Daisuke Igawa
大介 井川
Atsuko Eguchi
敦子 江口
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 JP24357099A priority Critical patent/JP2001067881A/en
Publication of JP2001067881A publication Critical patent/JP2001067881A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C15/00Digital stores in which information comprising one or more characteristic parts is written into the store and in which information is read-out by searching for one or more of these characteristic parts, i.e. associative or content-addressed stores
    • G11C15/04Digital stores in which information comprising one or more characteristic parts is written into the store and in which information is read-out by searching for one or more of these characteristic parts, i.e. associative or content-addressed stores using semiconductor elements
    • G11C15/046Digital stores in which information comprising one or more characteristic parts is written into the store and in which information is read-out by searching for one or more of these characteristic parts, i.e. associative or content-addressed stores using semiconductor elements using non-volatile storage elements
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C15/00Digital stores in which information comprising one or more characteristic parts is written into the store and in which information is read-out by searching for one or more of these characteristic parts, i.e. associative or content-addressed stores

Landscapes

  • For Increasing The Reliability Of Semiconductor Memories (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Memory System (AREA)

Abstract

(57)【要約】 【課題】 本発明は、EEPROMとNVRAMとを選
択的に用い、価格の上昇を抑制しつつ、EEPROMの
過剰な書換を防いで長寿命化を図る。 【解決手段】 EEPROM13とは異なるNVRAM
12を設け、ユーザインタフェース部14から書換回数
に関するヒント情報を入力し、連想配列サブシステム1
5が、このヒント情報に基づいて書換回数が多いか否か
を判定し、書換回数の多いときにはNVRAM12に書
込を行い、書換回数の少ないときにはEEPROM13
に書込を行う連想記憶装置及び記憶媒体。
An object of the present invention is to selectively use an EEPROM and an NVRAM to suppress an increase in the price and prevent an excessive rewriting of the EEPROM, thereby extending the life of the EEPROM. SOLUTION: NVRAM different from EEPROM 13
12 is provided, and hint information on the number of rewrites is input from the user interface unit 14, and the associative array subsystem 1
5 determines whether or not the number of rewrites is large based on the hint information. If the number of rewrites is large, write to the NVRAM 12;
Storage device and storage medium for writing data to a storage device.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、連想配列方式を用
いた連想記憶装置に係り、特に、過度の書換による寿命
の短縮化を阻止でき、長寿命化を図り得る連想記憶装置
及び記憶媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an associative memory device using an associative array system, and more particularly to an associative memory device and a storage medium which can prevent the life from being shortened due to excessive rewriting and extend the life. .

【0002】[0002]

【従来の技術】従来、計算機システムでは、アドレスの
代わりに見出し語を検索用として与え、その見出し語と
対になってデータが格納される連想配列方式が知られて
いる。
2. Description of the Related Art Conventionally, in computer systems, an associative array system is known in which a headword is provided instead of an address for search, and data is stored in pairs with the headword.

【0003】連想配列方式は、文字列などをキーとして
データを読出/書込可能な配列を用いた記憶方式であ
る。この方式は、キーの空間が非常に広いという利点に
対し、有効なキーが少ない(疎)という欠点をもつ。こ
の種の連想配列方式は、例えばプログラミング言語aw
k、pealや、キャッシュ機構として普通に用いられ
ている。
The associative array system is a storage system using an array in which data can be read / written using a character string or the like as a key. This method has the advantage that the key space is very large, but has the disadvantage that there are few (sparse) effective keys. This type of associative array method is, for example, a programming language aw
It is commonly used as k, peal or cache mechanism.

【0004】図7はハッシュ式の連想配列方式を説明す
るためのフローチャートであり、図8はこの連想配列方
式における書込動作を示す模式図である。この連想配列
方式は、キー(鍵;見出し語)と、値V1〜Vp(デー
タ)との組が連想配列としてRAM1に記憶されてい
る。この連想配列方式では、書込のとき、キーと値が入
力されると、このキーがハッシュ関数により配列オフセ
ットに変換され(ST1)、配列オフセットで規定され
るRAM内の領域に値が書込まれる(ST2)。これに
より、RAM1は、キーと、キーに結合した値との組を
保持する。
FIG. 7 is a flowchart for explaining a hash type associative array system, and FIG. 8 is a schematic diagram showing a write operation in the associative array system. In this associative array system, a set of a key (key; headword) and values V1 to Vp (data) is stored in the RAM 1 as an associative array. In this associative array method, when a key and a value are input at the time of writing, the key is converted into an array offset by a hash function (ST1), and the value is written to an area in the RAM defined by the array offset. (ST2). As a result, the RAM 1 holds a set of a key and a value combined with the key.

【0005】一方、読出のときには、入力されたキーに
基づいてRAM1内の各領域が検索され、キーに結合し
た値が読出される。
On the other hand, at the time of reading, each area in the RAM 1 is searched based on the input key, and the value linked to the key is read.

【0006】このような連想配列方式を用いた連想記憶
装置について述べる。連想記憶装置において、連想配列
の内容はRAMに保存されるため、電源断の時点で消滅
する。
An associative memory device using such an associative array system will be described. In the associative storage device, the contents of the associative array are stored in the RAM, and thus disappear when the power is turned off.

【0007】しかしながら、組込用計算機などのよう
に、電源断の後でも連想配列の内容を保存したい場合が
ある。この場合、主な方式としては、連想配列をRAM
上に有してファイルにバックアップする方式と、連想配
列のデータベースをファイル上に構築する方式とがあ
る。
However, there are cases where it is desired to preserve the contents of the associative array even after the power is turned off, as in an embedded computer. In this case, the main method is to store the associative array in RAM
There is a method of backing it up to a file with it, and a method of building a database of associative arrays on a file.

【0008】いずれの方式にしても、組込用計算機で
は、書換回数に制限を有する消去可能なROM(以下、
EEPROMという)を用いたファイルシステムが主流
となっている。
In either case, the embedded computer uses an erasable ROM (hereinafter, referred to as a ROM) having a limit on the number of rewrites.
A file system using an EEPROM is mainly used.

【0009】[0009]

【発明が解決しようとする課題】しかしながら、以上の
ような連想記憶装置では、データベースが頻繁に書換え
られる場合、EEPROMの書換回数が過度になり、E
EPROMの書換回数に制限があることから、データベ
ースの寿命が短縮されてしまう。
However, in the associative memory device described above, when the database is frequently rewritten, the number of times of rewriting the EEPROM becomes excessive,
Since the number of times of rewriting of the EPROM is limited, the life of the database is shortened.

【0010】一方、EEPROMを過度に書換えず、電
源断の後にもデータを保存可能なデータベースを作成す
る観点から、電池バックアップされたRAM(以下、N
VRAM(不揮発性RAM)という)を使用することが
考えられる。しかしながら、NVRAMは、ベンダが少
なく、高価となるため、大きなデータベースの構築が困
難となっている。
On the other hand, from the viewpoint of creating a database capable of storing data even after the power is turned off without excessively rewriting the EEPROM, a battery-backed RAM (hereinafter referred to as N
It is conceivable to use VRAM (referred to as non-volatile RAM). However, NVRAM has few vendors and is expensive, so it is difficult to construct a large database.

【0011】本発明は上記実情を考慮してなされたもの
で、EEPROMとNVRAMとを選択的に用いる構成
により、価格の上昇を抑制しつつ、EEPROMの過剰
な書換を防いで長寿命化を図り得る連想記憶装置及び記
憶媒体を提供することを目的とする。
The present invention has been made in consideration of the above circumstances, and has a structure in which an EEPROM and an NVRAM are selectively used, thereby suppressing an increase in the price and preventing an excessive rewrite of the EEPROM to extend the life. It is an object of the present invention to provide an associative storage device and a storage medium that can be obtained.

【0012】[0012]

【課題を解決するための手段】請求項1に対応する発明
は、連想配列をRAM上に構築し、書込のときにEEP
ROMに対して連想記憶を実行可能な連想記憶装置であ
って、前記EEPROMとは異なり、書換回数に制限の
ない不揮発性記憶手段と、書換回数に関するヒント情報
を入力するためのヒント情報入力手段と、前記ヒント情
報入力手段により入力されたヒント情報に基づいて書換
回数が多いか否かを判定し、前記書換回数の多いときに
は前記不揮発性記憶手段に書込を行い、前記書換回数の
少ないときには前記EEPROMに書込を行う書込手段
とを備えた連想記憶装置である。
According to a first aspect of the present invention, an associative array is constructed on a RAM, and EEP is written at the time of writing.
What is claimed is: 1. An associative memory device capable of executing associative memory on a ROM, which is different from the EEPROM in that the nonvolatile memory means has no limit on the number of rewrites, and the hint information input means inputs hint information on the number of rewrites. Determining whether or not the number of rewrites is large based on the hint information input by the hint information input means, writing the nonvolatile storage means when the number of rewrites is large, and The content addressable memory device includes a writing unit that writes data to the EEPROM.

【0013】また、請求項2に対応する発明は、請求項
1に対応する連想記憶装置において、前記不揮発性記憶
手段が満杯のとき、当該不揮発性記憶手段内の所定量の
データを前記EEPROMに移動させるデータ移動手段
を備えた連想記憶装置である。
According to a second aspect of the present invention, in the associative memory device according to the first aspect, when the nonvolatile storage means is full, a predetermined amount of data in the nonvolatile storage means is stored in the EEPROM. It is an associative storage device provided with a data moving means for moving.

【0014】さらに、請求項3に対応する発明は、請求
項2に対応する連想記憶装置において、前記データ移動
手段としては、最終書換時刻の古い順にデータを前記E
EPROMに移動させる連想記憶装置である。
According to a third aspect of the present invention, in the content addressable storage device according to the second aspect, the data moving means stores the data in the chronological order of the last rewriting time from the oldest one.
This is an associative storage device that is moved to an EPROM.

【0015】また、請求項4に対応する発明は、連想配
列をRAM上に構築し、書込のときにEEPROMに対
して連想記憶を実行可能であり、且つ前記EEPROM
とは異なって書換回数に制限のない不揮発性記憶手段を
備えた連想記憶装置に使用されるコンピュータ読み取り
可能な記憶媒体であって、前記連想記憶装置のコンピュ
ータを、書換回数に関するヒント情報が入力されたと
き、このヒント情報に基づいて書換回数が多いか否かを
判定し、前記書換回数の多いときには前記不揮発性記憶
手段に書込を行い、前記書換回数の少ないときには前記
EEPROMに書込を行う書込手段として機能させるた
めのプログラムを記憶したコンピュータ読み取り可能な
記憶媒体である。
According to a fourth aspect of the present invention, an associative array is constructed on a RAM, and the associative memory can be executed in an EEPROM at the time of writing.
A computer-readable storage medium used for an associative storage device having a non-volatile storage unit that has no limitation on the number of rewrites unlike the computer of the associative storage device. When the number of rewrites is large, it is determined whether the number of rewrites is large based on the hint information. When the number of rewrites is large, writing is performed on the non-volatile storage means, and when the number of rewrites is small, writing is performed on the EEPROM. It is a computer-readable storage medium that stores a program for causing it to function as a writing unit.

【0016】さらに、請求項5に対応する発明は、請求
項4に対応するコンピュータ読み取り可能な記憶媒体に
おいて、前記連想記憶装置のコンピュータを、前記不揮
発性記憶手段が満杯のとき、当該不揮発性記憶手段内の
所定量のデータを前記EEPROMに移動させるデータ
移動手段として機能させるためのプログラムを記録した
コンピュータ読み取り可能な記憶媒体である。
Further, according to a fifth aspect of the present invention, in the computer readable storage medium according to the fourth aspect, the computer of the associative storage device stores the non-volatile storage when the non-volatile storage is full. A computer-readable storage medium storing a program for causing a predetermined amount of data in the means to function as data moving means for moving the data to the EEPROM.

【0017】また、請求項6に対応する発明は、請求項
5に対応するコンピュータ読み取り可能な記憶媒体にお
いて、前記データ移動手段として、最終書換時刻の古い
順にデータを前記EEPROMに移動させるためのプロ
グラムを記憶したコンピュータ読み取り可能な記憶媒体
である。
According to a sixth aspect of the present invention, in the computer readable storage medium according to the fifth aspect, a program for moving data to the EEPROM in an order of oldest last rewriting time as the data moving means. Is a computer-readable storage medium having stored therein.

【0018】(作用)従って、請求項1,4に対応する
発明は以上のような手段を講じたことにより、EEPR
OMとは異なり、書換回数に制限のない不揮発性記憶手
段を設け、ヒント情報入力手段が、書換回数に関するヒ
ント情報を入力し、書込手段が、ヒント情報入力手段に
より入力されたヒント情報に基づいて書換回数が多いか
否かを判定し、書換回数の多いときには不揮発性記憶手
段に書込を行い、書換回数の少ないときにはEEPRO
Mに書込を行うので、EEPROMとNVRAMとを選
択的に用いる構成により、価格を抑制しつつ、EEPR
OMの過剰な書換を防いで長寿命化を図ることができ
る。
(Operation) Accordingly, the invention corresponding to the first and fourth aspects has the above-described means, and thus the EEPR
Unlike the OM, a non-volatile storage unit having no limit on the number of rewrites is provided, the hint information input unit inputs hint information on the number of rewrites, and the writing unit sets the hint information based on the hint information input by the hint information input unit. To determine whether the number of rewrites is large. If the number of rewrites is large, write to the non-volatile storage means.
Since data is written to M, the EEPROM and the NVRAM are selectively used.
Excessive rewriting of the OM can be prevented to extend the life.

【0019】また、請求項2,5に対応する発明は、デ
ータ移動手段が、不揮発性記憶手段が満杯のとき、この
不揮発性記憶手段内の所定量のデータをEEPROMに
移動させるので、請求項1,4に対応する作用に加え、
不揮発性記憶手段が満杯になっても、書込処理を継続す
ることができる。
According to a second aspect of the present invention, when the non-volatile storage means is full, the data moving means moves a predetermined amount of data in the non-volatile storage means to the EEPROM. In addition to the actions corresponding to 1, 4
The writing process can be continued even when the non-volatile storage means is full.

【0020】さらに、請求項3,6に対応する発明は、
データ移動手段としては、最終書換時刻の古い順にデー
タをEEPROMに移動させるので、請求項1,4に対
応する作用を容易且つ確実に奏することができる。
Further, the invention corresponding to claims 3 and 6 is:
Since the data moving means moves the data to the EEPROM in the order of the oldest rewriting time, the action corresponding to the first and fourth aspects can be achieved easily and reliably.

【0021】[0021]

【発明の実施の形態】以下、本発明の各実施形態につい
て図面を参照して説明する。 (第1の実施形態)図1は本発明の第1の実施形態に係
る連想記憶装置の構成を示すブロック図である。この連
想記憶装置10は、RAM11、NVRAM12、EE
PROM13、ユーザインタフェース部14、連想配列
サブシステム15及びキュー16を備えている。
Embodiments of the present invention will be described below with reference to the drawings. (First Embodiment) FIG. 1 is a block diagram showing a configuration of an associative memory device according to a first embodiment of the present invention. The associative storage device 10 includes a RAM 11, an NVRAM 12, an EE
It includes a PROM 13, a user interface unit 14, an associative array subsystem 15, and a queue 16.

【0022】ここで、RAM11は、連想配列サブシス
テム15により読出/書込可能に連想配列が記憶される
ものである。この連想配列としては、図2に示すよう
に、キー、キーに結合された値、EEPROM13上の
領域を示すポインタ及びNVRAM12上の領域を示す
ポインタという4つの要素を少なくとも備えている。
Here, the RAM 11 stores an associative array so that the associative array can be read / written by the associative array subsystem 15. As shown in FIG. 2, the associative array includes at least four elements: a key, a value linked to the key, a pointer indicating an area on the EEPROM 13, and a pointer indicating an area on the NVRAM 12.

【0023】NVRAM12は、電池バックアップによ
る不揮発性を有し、無制限の書換回数をもつメモリであ
り、連想配列サブシステム15により読出/書込可能に
連想配列が記憶される。
The NVRAM 12 is a nonvolatile memory having a battery backup and has an unlimited number of rewrites. The associative array is stored in the associative array subsystem 15 in a readable / writable manner.

【0024】EEPROM13は、不揮発性を有し、書
換回数に制限をもつメモリであり、連想配列サブシステ
ム15により読出/書込可能に連想配列が記憶される。
The EEPROM 13 is non-volatile and has a limit on the number of rewrites. The associative array is stored in the associative array subsystem 15 in a readable / writable manner.

【0025】ユーザインタフェース部14は、ユーザ
(又は他の計算機)と、連想記憶装置10内部との間で
データを入出力するものであり、例えば入力装置として
のキーボード及び出力装置としての表示装置(あるいは
他の計算機に対するインターフェイス)とが使用可能と
なっている。
The user interface unit 14 inputs and outputs data between a user (or another computer) and the inside of the associative storage device 10. For example, a keyboard as an input device and a display device as an output device ( Or an interface to another computer).

【0026】連想配列サブシステム15は、図示しない
記憶媒体から読出されたプログラムにより動作するCP
Uの一機能からなり、ユーザインタフェース部14から
の読出要求に基づいて、RAM11から読出を実行し、
ユーザインタフェース部14からの書込要求とヒント情
報とに基づき、EEPROM13又はNVRAM12に
書込を実行する機能をもっている。ヒント情報は、EE
PROM13又はNVRAM12のいずれかを選択する
ための情報であり、例えば書換回数が多数になると予想
される際の「書換多数」がある。
The associative array subsystem 15 operates according to a program read from a storage medium (not shown).
U, which performs reading from the RAM 11 based on a reading request from the user interface unit 14,
It has a function of executing writing to the EEPROM 13 or the NVRAM 12 based on a write request from the user interface unit 14 and hint information. The hint information is EE
This is information for selecting either the PROM 13 or the NVRAM 12, and includes, for example, “many rewrites” when the number of rewrites is expected to be large.

【0027】また、連想配列サブシステム15は、EE
PROM13への書込処理においてキュー16を用い、
キュー16に最先に保存された値をキーと共にEEPR
OM13に書込む機能と、書込終了毎に、次の書込要求
を発行してキュー16に保存する機能とを有する。な
お、キュー16は、先入れ先出し(FIFO)の性質を
もつ記憶領域により構成された書込待ち行列であり、例
えばRAM11内において連想配列の記憶領域とは別の
領域に形成可能となっている。
The associative array subsystem 15 has an EE
Using the queue 16 in the writing process to the PROM 13,
The value stored first in the queue 16 together with the key in the EEPR
It has a function of writing to the OM 13 and a function of issuing the next write request and storing it in the queue 16 every time the writing is completed. The queue 16 is a write queue constituted by a storage area having a first-in first-out (FIFO) property, and can be formed in, for example, the RAM 11 in a different area from the associative array storage area.

【0028】次に、以上のように構成された連想記憶装
置の動作を説明する。いま、ユーザインターフェース部
14は、操作者の操作により、キーを指定した読出要求
を連想配列サブシステム15に入力したとする。
Next, the operation of the associative memory configured as described above will be described. It is assumed that the user interface unit 14 has input a read request specifying a key to the associative array subsystem 15 by an operation of the operator.

【0029】連想配列サブシステム15は、読出要求に
対し、RAM11の連想配列内において、キーに該当す
る値を返信する。これにより、連想記憶装置10の読出
動作が完了する。
The associative array subsystem 15 returns a value corresponding to a key in the associative array of the RAM 11 in response to the read request. Thus, the read operation of the content addressable memory device 10 is completed.

【0030】続いて、書込動作を述べる。いま、ユーザ
インタフェース部14は、操作者の操作により、キーと
値との組を指定した書込要求と、ヒント情報とを連想配
列サブシステム15に入力したとする。
Next, the write operation will be described. Now, it is assumed that the user interface unit 14 inputs a write request specifying a pair of a key and a value and hint information to the associative array subsystem 15 by an operation of the operator.

【0031】連想配列サブシステム15は、前述したス
テップST1〜ST2と同様にキーに対応するメモリ領
域に値を書込むが、従来とは異なり、ステップST2に
おいて、NVRAM12又はEEPROM13のいずれ
かを選択する。
The associative array subsystem 15 writes a value to the memory area corresponding to the key in the same manner as in steps ST1 and ST2 described above. However, unlike the conventional case, in step ST2, either the NVRAM 12 or the EEPROM 13 is selected. .

【0032】すなわち、連想配列サブシステム15は、
図3に示すように、書込要求に対し、ヒント情報に基づ
いて、書換回数が多いか否かを判定し(ST11)、書
換回数が多いときには、NVRAM12の記憶領域の確
保を試み(ST12)、記憶領域を確保できたとき、N
VRAM12にキーと値を書込む(ST13)。
That is, the associative array subsystem 15
As shown in FIG. 3, in response to a write request, it is determined whether or not the number of rewrites is large based on hint information (ST11). If the number of rewrites is large, an attempt is made to secure a storage area of the NVRAM 12 (ST12). , When the storage area can be secured, N
The key and the value are written to the VRAM 12 (ST13).

【0033】また、連想配列サブシステム15は、ステ
ップST11の結果、書換回数が少ないとき、あるいは
ステップST12においてNVRAM12の記憶領域が
確保できなかったとき、EEPROM13の記憶領域の
確保を試み(ST14)、記憶領域を確保できないとき
にはエラーを出力して(ST15)処理を終了するが、
記憶領域を確保できたとき、EEPROM13にキーと
値を書込む(ST16)。
When the associative array subsystem 15 finds that the number of rewrites is small as a result of step ST11, or when the storage area of the NVRAM 12 cannot be ensured in step ST12, it attempts to secure the storage area of the EEPROM 13 (ST14). If the storage area cannot be secured, an error is output (ST15) and the process ends.
When the storage area is secured, the key and the value are written to the EEPROM 13 (ST16).

【0034】ここで、EEPROM13への書込処理に
ついて図4を用いて説明する。連想配列サブシステム1
5は、キュー16の先頭の書込要求を実行可能か否かを
判定し(ST16a)、実行不可能のときには所定時間
だけ待機してステップST16aを再試行するが、実行
可能なときにはEEPROM13にキーと値を書込む
(ST16b)。
Here, the process of writing to the EEPROM 13 will be described with reference to FIG. Associative array subsystem 1
5 judges whether or not the first write request of the queue 16 can be executed (ST16a). If the request cannot be executed, the process waits for a predetermined time and re-executes step ST16a. Is written (ST16b).

【0035】続いて、ステップST16b又はST13
による書込完了後、連想配列サブシステム15は、RA
M11に連想配列を書込む。上述したように本実施形態
によれば、NVRAM12を設け、ユーザインタフェー
ス部14から書換回数に関するヒント情報を入力し、連
想配列サブシステム15が、ヒント情報に基づいて書換
回数が多いか否かを判定し、書換回数の多いときにはN
VRAM12に書込を行い、書換回数の少ないときには
EEPROM13に書込を行う。
Subsequently, step ST16b or ST13
After completion of the writing by the associative array subsystem 15, the RA
Write an associative array to M11. As described above, according to the present embodiment, the NVRAM 12 is provided, hint information on the number of rewrites is input from the user interface unit 14, and the associative array subsystem 15 determines whether the number of rewrites is large based on the hint information. If the number of rewrites is large, N
Writing to the VRAM 12 is performed, and when the number of times of rewriting is small, writing to the EEPROM 13 is performed.

【0036】このように、適切な価格であるが書換回数
に制限のあるEEPROM13と、高価であるが書換回
数に制限のないNVRAM12とを選択的に用いる構成
により、電源断でも内容を保存できることに加え、価格
の上昇を抑制しつつ、EEPROM13の過剰な書換を
防いで長寿命化を図ることができる。
As described above, by selectively using the EEPROM 13 which is appropriate in price but has a limited number of rewrites and the NVRAM 12 which is expensive but has no limit in the number of rewrites, the contents can be saved even when the power is turned off. In addition, it is possible to extend the life of the EEPROM 13 by preventing excessive rewriting of the EEPROM 13 while suppressing an increase in price.

【0037】また、RAM11より遙かに遅いEEPR
OM13に毎回アクセスせずに連想配列を使用すること
で、高速化を図ることができる。さらに、EEPROM
13の書込中でも、RAM11及びNVRAM12にア
クセスすることができる。
EEPR, which is much slower than RAM 11
By using the associative array without accessing the OM 13 every time, the speed can be increased. In addition, EEPROM
The RAM 11 and the NVRAM 12 can be accessed even while the data 13 is being written.

【0038】また、EEPROM13又はNVRAM1
2の書込完了後、RAM11内のデータを書換えるの
で、書込未完了のデータを「書換前のデータ」として扱
うことができる。また、以上の動作を連想配列サブシス
テム15が実行するので、内部構造に無関心な操作者で
あっても、取り扱うことができる。
The EEPROM 13 or the NVRAM 1
After the writing of No. 2 is completed, the data in the RAM 11 is rewritten, so that the unwritten data can be treated as “data before rewriting”. Further, since the associative array subsystem 15 performs the above operation, even an operator who is not interested in the internal structure can handle it.

【0039】(第2の実施形態)図5は本発明の第2の
実施形態に係る連想記憶装置の構成を示すブロック図で
あり、図1と同一部分には同一符号を付してその詳しい
説明を省略し、ここでは異なる部分についてのみ述べ
る。すなわち、本実施形態は、第1の実施形態の変形例
であり、NVRAM12が満杯の時の動作の円滑化を図
るものである。具体的には、連想配列内に最終書換時刻
を付加し、且つこの最終書換時刻に基づいて、NVRA
M12が満杯のときにはNVRAM12内の所定量のデ
ータをEEPROM13に移すLRU(Least Recently
Used :最長時間未使用)処理部17を備えている。
(Second Embodiment) FIG. 5 is a block diagram showing a configuration of an associative memory device according to a second embodiment of the present invention. The same parts as those in FIG. The description will be omitted, and only different portions will be described here. That is, the present embodiment is a modification of the first embodiment, and aims at smoothing the operation when the NVRAM 12 is full. Specifically, the last rewriting time is added to the associative array, and NVRA is executed based on the last rewriting time.
When M12 is full, LRU (Least Recently Recently) transfers a predetermined amount of data in NVRAM 12 to EEPROM 13.
Used: the longest unused) processing unit 17 is provided.

【0040】また、RAM11内の連想配列は、図6に
示すように、前述した4つの要素に加え、最終書換時刻
という要素が付加されている。
As shown in FIG. 6, the associative array in the RAM 11 has an element called last rewrite time added to the above four elements.

【0041】ここで、LRU処理部17は、局所的なア
クセスに有効な周知のLRUアルゴリズムが使用されて
おり、最終書換時刻に基づいて、最も古い最終書換時刻
をもつデータから順に、EEPROM13に移動させる
機能をもっている。この移動機能は、EEPROM13
又はNVRAM12の選択用の「ヒント情報」による選
択よりも優先される。すなわち、NVRAM12が満杯
のとき、NVRAM12が選択されたとしても、NVR
AM12への書込前に、NVRAM12内のデータをE
EPRAM13に移動させる。
Here, the LRU processing unit 17 uses a known LRU algorithm effective for local access, and moves to the EEPROM 13 in order from the data having the oldest last rewriting time based on the last rewriting time. It has the function to make it. This movement function is performed by the EEPROM 13
Alternatively, priority is given to selection based on “hint information” for selecting the NVRAM 12. That is, when the NVRAM 12 is full, even if the NVRAM 12 is selected, the NVR
Before writing to AM12, the data in NVRAM12 is
Move to EPRAM13.

【0042】以上のような構成によれば、LRU処理部
17が、NVRAM12が満杯のとき、このNVRAM
12内の所定量のデータをEEPROM13に移動させ
る。従って、書換によりNVRAM12の容量を越える
場合、EEPROM13の書換が増大するものの、「満
杯につきサービス停止」という事態に陥る可能性を減少
させ、書込処理を継続することができる。また、アクセ
ス頻度に応じた最適化配置が可能になり、アクセスの高
速化を実現できる。
According to the above-described configuration, when the NVRAM 12 is full, the LRU processing unit 17
A predetermined amount of data in 12 is moved to EEPROM 13. Therefore, when the capacity of the NVRAM 12 is exceeded by rewriting, the rewriting of the EEPROM 13 increases, but the possibility of falling into a “service stoppage when full” state is reduced, and the writing process can be continued. In addition, it is possible to optimize the arrangement according to the access frequency, and to achieve high-speed access.

【0043】(第3の実施形態)次に、本発明の第3の
実施形態に係る連想記憶装置について説明する。連想配
列は、ソフトウェアだけで構築されず、ハードウェアで
構築されてもよい。具体的には、本実施形態は、連想記
憶方式の実メモリとしてEEPROM13又はNVRA
M12を仮想ページ単位で指定して貼付けた構成となっ
ている。また、各仮想ページは、LRU用に書込済を示
す一般的なビットを用い、書込の有無が参照可能となっ
ている。従って、以上のような構成によれば、予め指定
した貼付け内容に基づいて、仮想ページに対する実メモ
リを入替えることができるので、第1の実施形態と同様
に、電源断でも内容を保存できることに加え、価格の上
昇を抑制しつつ、EEPROMの過剰な書換を防いで長
寿命化を図ることができる。
(Third Embodiment) Next, an associative storage device according to a third embodiment of the present invention will be described. The associative array may not be constructed only by software but may be constructed by hardware. More specifically, in the present embodiment, the EEPROM 13 or the NVRA
M12 is specified and pasted in units of virtual pages. Each virtual page uses a general bit indicating that writing has been completed for the LRU, and whether or not writing has been performed can be referred to. Therefore, according to the above-described configuration, the real memory for the virtual page can be replaced based on the pasting content specified in advance, so that the content can be saved even when the power is turned off, as in the first embodiment. In addition, it is possible to prevent the EEPROM from being excessively rewritten and prolong the life thereof while suppressing the increase in the price.

【0044】尚、本発明における記憶媒体としては、磁
気ディスク、フロッピー(登録商標)ディスク、ハード
ディスク、光ディスク(CD−ROM、CD−R、DV
D(登録商標)等)、光磁気ディスク(MO等)、半導
体メモリ等、プログラムを記憶でき、かつコンピュータ
が読み取り可能な記憶媒体であれば、その記憶形式は何
れの形態であっても良い。
The storage medium in the present invention includes a magnetic disk, a floppy (registered trademark) disk, a hard disk, and an optical disk (CD-ROM, CD-R, DV).
D (registered trademark)), a magneto-optical disk (MO or the like), a semiconductor memory, or any other storage medium that can store programs and that can be read by a computer.

【0045】また、記憶媒体からコンピュータにインス
トールされたプログラムの指示に基づきコンピュータ上
で稼働しているOS(オペレーティングシステム)や、
データベース管理ソフト、ネットワークソフト等のMW
(ミドルウェア)等が本実施形態を実現するための各処
理の一部を実行しても良い。
An OS (Operating System) running on the computer based on instructions of a program installed in the computer from the storage medium,
MW for database management software, network software, etc.
(Middleware) or the like may execute a part of each process for realizing the present embodiment.

【0046】さらに、本発明における記憶媒体は、コン
ピュータと独立した媒体に限らず、LANやインターネ
ット等により伝送されたプログラムをダウンロードして
記憶または一時記憶した記憶媒体も含まれる。
Further, the storage medium of the present invention is not limited to a medium independent of a computer, but also includes a storage medium in which a program transmitted via a LAN, the Internet, or the like is downloaded and stored or temporarily stored.

【0047】また、記憶媒体は1つに限らず、複数の媒
体から本実施形態における処理が実行される場合も本発
明における記憶媒体に含まれ、媒体構成は何れの構成で
あっても良い。
Further, the number of storage media is not limited to one, and the case where the processing in the present embodiment is executed from a plurality of media is also included in the storage medium of the present invention, and any media configuration may be used.

【0048】尚、本発明におけるコンピュータは、記憶
媒体に記憶されたプログラムに基づき、本実施形態にお
ける各処理を実行するものであって、パソコン等の1つ
からなる装置、複数の装置がネットワーク接続されたシ
ステム等の何れの構成であっても良い。
The computer according to the present invention executes each processing in the present embodiment based on a program stored in a storage medium. An apparatus such as a personal computer and a plurality of apparatuses are connected to a network. Any configuration such as a system described above may be used.

【0049】また、本発明におけるコンピュータとは、
パソコンに限らず、情報処理機器に含まれる演算処理装
置、マイコン等も含み、プログラムによって本発明の機
能を実現することが可能な機器、装置を総称している。
The computer in the present invention is
It is not limited to a personal computer, but also includes a processing device, a microcomputer, and the like included in an information processing device, and generically refers to a device and a device capable of implementing the functions of the present invention by a program.

【0050】その他、本発明はその要旨を逸脱しない範
囲で種々変形して実施できる。
In addition, the present invention can be variously modified and implemented without departing from the gist thereof.

【0051】[0051]

【発明の効果】以上説明したように本発明によれば、E
EPROMとNVRAMとを選択的に用いる構成によ
り、価格の上昇を抑制しつつ、EEPROMの過剰な書
換を防いで長寿命化を図り得る連想記憶装置及び記憶媒
体を提供できる。
As described above, according to the present invention, E
With the configuration in which the EPROM and the NVRAM are selectively used, it is possible to provide an associative storage device and a storage medium that can prevent the EEPROM from being overwritten and extend the life thereof while suppressing an increase in price.

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

【図1】本発明の第1の実施形態に係る連想記憶装置の
構成を示すブロック図
FIG. 1 is a block diagram showing a configuration of an associative storage device according to a first embodiment of the present invention;

【図2】同実施形態におけるRAM内の連想配列を示す
模式図
FIG. 2 is a schematic diagram showing an associative array in a RAM according to the embodiment;

【図3】同実施形態における書込動作を説明するための
フローチャート
FIG. 3 is a flowchart for explaining a write operation in the embodiment;

【図4】同実施形態における書込動作を説明するための
フローチャート
FIG. 4 is a flowchart for explaining a write operation in the embodiment;

【図5】本発明の第2の実施形態に係る連想記憶装置の
構成を示すブロック図
FIG. 5 is a block diagram illustrating a configuration of an associative storage device according to a second embodiment of the present invention.

【図6】同実施形態におけるRAM内の連想配列を示す
模式図
FIG. 6 is a schematic diagram showing an associative array in a RAM according to the embodiment;

【図7】従来の連想配列方式を説明するためのフローチ
ャート
FIG. 7 is a flowchart for explaining a conventional associative array method.

【図8】従来の連想配列方式における書込動作を示す模
式図
FIG. 8 is a schematic diagram showing a write operation in a conventional associative array system.

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

10,10a…連想記憶装置 11…RAM 12…NVRAM 13…EEPROM 14…ユーザインタフェース部 15…連想配列サブシステム 16…キュー 17…LRU処理部 10, 10a: associative storage device 11: RAM 12, NVRAM 13, EEPROM 14, user interface unit 15, associative array subsystem 16, queue 17, LRU processing unit

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 連想配列をRAM上に構築し、書込のと
きにEEPROMに対して連想記憶を実行可能な連想記
憶装置であって、 前記EEPROMとは異なり、書換回数に制限のない不
揮発性記憶手段と、 書換回数に関するヒント情報を入力するためのヒント情
報入力手段と、 前記ヒント情報入力手段により入力されたヒント情報に
基づいて書換回数が多いか否かを判定し、前記書換回数
の多いときには前記不揮発性記憶手段に書込を行い、前
記書換回数の少ないときには前記EEPROMに書込を
行う書込手段とを備えたことを特徴とする連想記憶装
置。
1. An associative memory device capable of constructing an associative array on a RAM and executing associative storage in an EEPROM at the time of writing, wherein the nonvolatile memory has no limit on the number of rewrites unlike the EEPROM. Storage means; hint information input means for inputting hint information relating to the number of rewrites; and determining whether or not the number of rewrites is large based on the hint information input by the hint information input means; Writing means for writing to the non-volatile storage means at times, and writing to the EEPROM when the number of times of rewriting is small is provided.
【請求項2】 請求項1に記載の連想記憶装置におい
て、 前記不揮発性記憶手段が満杯のとき、当該不揮発性記憶
手段内の所定量のデータを前記EEPROMに移動させ
るデータ移動手段を備えたことを特徴とする連想記憶装
置。
2. The associative storage device according to claim 1, further comprising: a data moving unit that moves a predetermined amount of data in the nonvolatile storage unit to the EEPROM when the nonvolatile storage unit is full. An associative memory device characterized by the above-mentioned.
【請求項3】 請求項2に記載の連想記憶装置におい
て、 前記データ移動手段は、最終書換時刻の古い順にデータ
を前記EEPROMに移動させることを特徴とする連想
記憶装置。
3. The associative memory device according to claim 2, wherein said data moving means moves the data to said EEPROM in the order of older last rewriting time.
【請求項4】 連想配列をRAM上に構築し、書込のと
きにEEPROMに対して連想記憶を実行可能であり、
且つ前記EEPROMとは異なって書換回数に制限のな
い不揮発性記憶手段を備えた連想記憶装置に使用される
コンピュータ読み取り可能な記憶媒体であって、 前記連想記憶装置のコンピュータを、 書換回数に関するヒント情報が入力されたとき、このヒ
ント情報に基づいて書換回数が多いか否かを判定し、前
記書換回数の多いときには前記不揮発性記憶手段に書込
を行い、前記書換回数の少ないときには前記EEPRO
Mに書込を行う書込手段として機能させるためのプログ
ラムを記憶したコンピュータ読み取り可能な記憶媒体。
4. An associative array is constructed on a RAM, and associative memory can be executed on an EEPROM at the time of writing.
And a computer-readable storage medium used for an associative storage device provided with a nonvolatile storage unit having an unlimited number of rewrites unlike the EEPROM, wherein a computer of the associative storage device is provided with hint information on the number of rewrites. Is input, it is determined whether or not the number of rewrites is large based on the hint information. When the number of rewrites is large, writing is performed in the nonvolatile storage means. When the number of rewrites is small, the EEPRO
A computer-readable storage medium storing a program for causing M to function as a writing unit that writes to M.
【請求項5】 請求項4に記載のコンピュータ読み取り
可能な記憶媒体において、 前記連想記憶装置のコンピュータを、 前記不揮発性記憶手段が満杯のとき、当該不揮発性記憶
手段内の所定量のデータを前記EEPROMに移動させ
るデータ移動手段として機能させるためのプログラムを
記録したコンピュータ読み取り可能な記憶媒体。
5. The computer-readable storage medium according to claim 4, wherein the computer of the associative storage device stores a predetermined amount of data in the nonvolatile storage unit when the nonvolatile storage unit is full. A computer-readable storage medium on which a program for functioning as a data transfer means for transferring data to an EEPROM is recorded.
【請求項6】 請求項5に記載のコンピュータ読み取り
可能な記憶媒体において、 前記データ移動手段として、最終書換時刻の古い順にデ
ータを前記EEPROMに移動させるためのプログラム
を記憶したコンピュータ読み取り可能な記憶媒体。
6. The computer-readable storage medium according to claim 5, wherein the data transfer means stores a program for moving data to the EEPROM in the order of oldest last rewriting time. .
JP24357099A 1999-08-30 1999-08-30 Content addressable storage device and storage medium Pending JP2001067881A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24357099A JP2001067881A (en) 1999-08-30 1999-08-30 Content addressable storage device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24357099A JP2001067881A (en) 1999-08-30 1999-08-30 Content addressable storage device and storage medium

Publications (1)

Publication Number Publication Date
JP2001067881A true JP2001067881A (en) 2001-03-16

Family

ID=17105809

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24357099A Pending JP2001067881A (en) 1999-08-30 1999-08-30 Content addressable storage device and storage medium

Country Status (1)

Country Link
JP (1) JP2001067881A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009064394A (en) * 2007-09-10 2009-03-26 Ricoh Co Ltd ACCESS CONTROL DEVICE, ACCESS CONTROL METHOD, ACCESS CONTROL PROGRAM, RECORDING MEDIUM, STORAGE DEVICE, AND IMAGE PROCESSING DEVICE
JP2009134733A (en) * 2003-12-09 2009-06-18 Emc Corp Method and apparatus for generating content address indicating data unit written in storage system in close proximity in time
JP2010512569A (en) * 2006-12-11 2010-04-22 マーベル ワールド トレード リミテッド Hybrid nonvolatile solid-state memory system
JP2011503768A (en) * 2007-11-19 2011-01-27 サンドフォース インコーポレイテッド Writing data to different storage devices based on write frequency
US9153337B2 (en) 2006-12-11 2015-10-06 Marvell World Trade Ltd. Fatigue management system and method for hybrid nonvolatile solid state memory system
KR20160096173A (en) * 2013-12-09 2016-08-12 자일링크스 인코포레이티드 Memory arrangement for implementation of high-throughput key-value stores
JP2022522048A (en) * 2019-04-12 2022-04-13 マイクロン テクノロジー,インク. Write and query execution operations in an associative memory system with an associative memory buffer

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009134733A (en) * 2003-12-09 2009-06-18 Emc Corp Method and apparatus for generating content address indicating data unit written in storage system in close proximity in time
JP2010512569A (en) * 2006-12-11 2010-04-22 マーベル ワールド トレード リミテッド Hybrid nonvolatile solid-state memory system
US9153337B2 (en) 2006-12-11 2015-10-06 Marvell World Trade Ltd. Fatigue management system and method for hybrid nonvolatile solid state memory system
US9727455B2 (en) 2006-12-11 2017-08-08 Marvell World Trade Ltd. Method and apparatus for mapping a logical address between memories of a storage drive based on write frequency rankings
US10067866B2 (en) 2006-12-11 2018-09-04 Marvell World Trade Ltd. Method and apparatus for mapping logical addresses between memories of a solid-state disk based on write frequency rankings
JP2009064394A (en) * 2007-09-10 2009-03-26 Ricoh Co Ltd ACCESS CONTROL DEVICE, ACCESS CONTROL METHOD, ACCESS CONTROL PROGRAM, RECORDING MEDIUM, STORAGE DEVICE, AND IMAGE PROCESSING DEVICE
JP2011503768A (en) * 2007-11-19 2011-01-27 サンドフォース インコーポレイテッド Writing data to different storage devices based on write frequency
KR101576575B1 (en) 2008-02-29 2015-12-10 마벨 월드 트레이드 리미티드 Fatigue management system and method for hybrid nonvolatile solid state memory system
KR20160096173A (en) * 2013-12-09 2016-08-12 자일링크스 인코포레이티드 Memory arrangement for implementation of high-throughput key-value stores
JP2017502402A (en) * 2013-12-09 2017-01-19 ザイリンクス インコーポレイテッドXilinx Incorporated Memory configuration for realizing a high-throughput key-value store
KR102261805B1 (en) 2013-12-09 2021-06-04 자일링크스 인코포레이티드 Memory arrangement for implementation of high-throughput key-value stores
JP2022522048A (en) * 2019-04-12 2022-04-13 マイクロン テクノロジー,インク. Write and query execution operations in an associative memory system with an associative memory buffer

Similar Documents

Publication Publication Date Title
KR100771519B1 (en) Memory system including flash memory and its merge method
KR100684887B1 (en) Data storage device including flash memory and its merge method
US20100088459A1 (en) Improved Hybrid Drive
JPH0527924A (en) External storage system using semiconductor memory and control method thereof
JP2004062869A (en) Method and apparatus for selective caching of transactions in computer system
JP2001166993A (en) Storage control device and cache memory control method
JPH09237225A (en) Computer having cache function and cache memory control method
JP5071798B2 (en) Computer system, memory management method, and program thereof
CN104937562B (en) Nonvolatile memory writing mechanism
KR20100132244A (en) Memory system and how to manage it
JP5007485B2 (en) Semiconductor memory device, its access method, and memory control system
US8850148B2 (en) Data copy management for faster reads
CN100403279C (en) Data area management method of information recording medium, information processing device using data area management method
KR101392062B1 (en) Fast speed computer system power-on & power-off method
JP2010152747A (en) Storage system, cache control method and cache control program for storage
JP2001067881A (en) Content addressable storage device and storage medium
JPH1063551A (en) Information processing device
JP7132491B2 (en) MEMORY CONTROL DEVICE, MEMORY CONTROL PROGRAM AND MEMORY CONTROL METHOD
JP2000122929A (en) Information processing device
JP5025670B2 (en) Information processing apparatus and data storage apparatus
JP3335919B2 (en) Disk cache controller
CN102023930B (en) Dual-scope directory for a non-volatile memory storage system
JP4140750B2 (en) IC card memory access control method and apparatus, and program storage medium
JP2838988B2 (en) File storage system in external storage device
US20070226479A1 (en) Determining coherency between a non-volatile memory and a system