JPH0395653A - Address error detecting method for data storage device - Google Patents

Address error detecting method for data storage device

Info

Publication number
JPH0395653A
JPH0395653A JP1231699A JP23169989A JPH0395653A JP H0395653 A JPH0395653 A JP H0395653A JP 1231699 A JP1231699 A JP 1231699A JP 23169989 A JP23169989 A JP 23169989A JP H0395653 A JPH0395653 A JP H0395653A
Authority
JP
Japan
Prior art keywords
address
storage device
location
writing
unused
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
JP1231699A
Other languages
Japanese (ja)
Other versions
JP2759824B2 (en
Inventor
Takashi Nakajima
隆 中島
Nobuyuki Tokura
戸倉 信之
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP1231699A priority Critical patent/JP2759824B2/en
Publication of JPH0395653A publication Critical patent/JPH0395653A/en
Application granted granted Critical
Publication of JP2759824B2 publication Critical patent/JP2759824B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To detect an address error by providing a correspondence storage device to show the place where a circulating address is written and checking whether the address is read out of the same place or not by reference to the storage device. CONSTITUTION:When the data are read out of a main storage device 1, a controller 4 reads a busy address a2 out of a busy address storage device 3. An error detecting device 6 compares an address writing place with an address reading place obtained by the controller 4 to check whether the address is read out the same place as its written place or not by reference to an identifier which shows the writing place stored in the position of an address b2 of a corresponding correspondence storage device 5. Then a normal state is decided if the reading place is identical with the writing place. Then the data are read out of the position of the address a2, and the device 6 updates the identifier stored in the position of the address b2 of the storage device 5 corresponding to the address a2. When the writing place is not identical with the reading place, an error of the address a2 or the storage device 5 is decided and displayed. Thus the occurrence of the error can be recognized.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、主記憶装置のアドレスを、不使用アドレス記
憶装置かよび使用中アドレス記憶装置の間で巡回させて
、アドレス管理を行うデータ記憶装置において、アドレ
スに誤りが生じた場合に、そのアドレスを検出する方法
に関する。
Detailed Description of the Invention [Field of Industrial Application] The present invention relates to a data storage device in which addresses in a main storage device are rotated between an unused address storage device and a used address storage device to perform address management. The present invention relates to a method for detecting an address when an error occurs in a device.

〔従来の技術〕[Conventional technology]

従来、この種のデータ記憶装置に釦いては、アドレスの
誤bを検出するために誤り検出符号が使用されていた。
Conventionally, in buttons of this type of data storage device, error detection codes have been used to detect address errors b.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

前記の従来の誤り検出符号による誤り検出方法では、演
算を必要とし、検出漏れの発生確率を低くするためには
演算が複雑になシハード量が増加するという欠点がある
。また、検出漏れの発生確率をOにすることは不可能で
あり、一度誤り検出漏れが生じた場合には、その誤った
アドレスが永久に巡回し、データを破壊したシ多重に読
み出しを行うという欠点があった。
The above-mentioned conventional error detection method using an error detection code requires computation, and has the disadvantage that the computation is complicated and the amount of shihad increases in order to reduce the probability of occurrence of detection failure. Furthermore, it is impossible to reduce the probability of false detection to O, and once a false detection occurs, the erroneous address will circulate forever and data will be read multiple times with corrupted data. There were drawbacks.

本発明は、アドレスとそのアドレスが書き込1れている
場所の対応を示す対応記憶装置を設け、アドレス記憶装
置からアドレスを読み出す場合に、この対応記憶装置を
参照し、そのアドレスが書き込1れた場所と同一の場所
から読み出されたかどうかを検査することにより誤りを
検出し、前記の問題点を解決することを目的とする。
The present invention provides a correspondence storage device that indicates the correspondence between an address and a location where the address is written, and when an address is read from the address storage device, this correspondence storage device is referred to and the address is The purpose of this invention is to detect errors by checking whether the data has been read from the same location as the location where the data was read, and to solve the above-mentioned problem.

〔課題を解決するための手段〕[Means to solve the problem]

前記の目的を達成するために、本発明は、データを記憶
する主記憶装置と少なくとも同じアドレス空間を持つ対
応記憶装置を設け、主記憶装置のアドレスaをアドレス
記憶装置に書き込む場合に、アドレスaに対応する対応
記憶装置のアドレスをの位置にアドレスaの書き込み場
所を示す識別子を記憶し、アドレスaを主記憶装置から
読み出す場合にアドレスaに対応する対応記憶装置のア
ドレスをの位置に記憶されている場所を示す識別子を参
照し、アドレスaが書き込渣れた場所と同一の場所から
読み出されたかどうかを検査することによりアドレスの
誤りを検出するようにしたものである。
In order to achieve the above object, the present invention provides a corresponding storage device having at least the same address space as the main storage device for storing data, and when writing an address a of the main storage device to the address storage device, the address a The address of the corresponding storage device corresponding to address a is stored in the location , and when address a is read from the main memory, the address of the corresponding storage device corresponding to address a is stored in the location . An error in an address is detected by referring to an identifier indicating the location where the address a is written and checking whether the address a is read from the same location as the location where it was written.

〔作用〕[Effect]

本発明では、主記憶装置のアドレスを不使用アドレス記
憶装置訃よび使用中アドレス記憶装置の間で巡回させて
アドレス管理を行うデータ記憶装置にふ・いて、巡回し
ているアドレスが書き込壕れている場所を示す対応記憶
装置を設け、アドレス読み出し時にこの対応記憶装置を
参照することによりアドレスが書き込1れた場所と同一
の場所から読み出されたかどうかを検査することにより
アドレスの誤りを検出することができるのである。
In the present invention, addresses in the main memory are circulated between an unused address memory device and a used address memory device to perform address management, and the circulating addresses are stored in a write hole. A corresponding storage device is provided that indicates the location where the address is written, and by referring to this corresponding storage device when reading an address, it is checked whether the address is read from the same location as the location where the address was written. It can be detected.

〔実施例〕〔Example〕

以下図面を参照して本発明の実施例を説明する。 Embodiments of the present invention will be described below with reference to the drawings.

第1図は、本発明の実施例の構成図である。FIG. 1 is a configuration diagram of an embodiment of the present invention.

第1図において、1はデータを記憶する主記憶装置、2
は主記憶装置1の不使用アドレスを記憶する不使用アド
レス記憶装置、3は主記憶装置1の使用中のアドレスを
記憶する使用中アドレス記憶装置、4は不使用アドレス
記憶装置2$−よび使用中アドレス記憶装置3の書き込
み・読み出しを管理する管理装置、5はアドレスとその
アドレスが書き込筐れている場所の対応を示す対応記憶
装置、6はアドレス誤りを検出する誤9検出装置、13
はデータ記憶装置の入出力データ信号線である。
In FIG. 1, 1 is a main storage device that stores data; 2 is a main storage device that stores data;
is an unused address storage device that stores unused addresses in the main storage device 1; 3 is an in-use address storage device that stores used addresses in the main storage device 1; and 4 is an unused address storage device that stores unused addresses in the main storage device 1. A management device that manages writing and reading of the medium address storage device 3; 5, a correspondence storage device that indicates the correspondence between an address and a location where the address is written; 6, an error detection device 13 that detects an address error;
is an input/output data signal line of the data storage device.

記憶装置をランダムアクセスメモリ( RAM )で構
成した場合、以下の説明において、アドレスan 主記
憶装置1のある1つのアドレス、アドレスalHアドレ
スaのうち不使用中のアドレス、アドレスa2はアドレ
スaのうち使用中のアドレス、アドレスbは対応記憶装
置5のある1つのアドレス、アドレスb1はアドレスを
のうちアドレスa1に対応するアドレス、アドレスb2
ぱアドレスをのうちアドレスa2に対応するアドレス、
アドレスCぱ不使用アドレス記憶装置2lたは使用中ア
ドレス記憶装置3のある1つのアドレスを示す。
When the storage device is configured with random access memory (RAM), in the following explanation, address an is one address in main storage device 1, address alH is an unused address among addresses a, and address a2 is an unused address among addresses a. Address in use, address b is one address in the corresponding storage device 5, address b1 is the address corresponding to address a1 among the addresses, address b2
The address corresponding to address a2,
Address C indicates one address in the unused address storage device 2l or in the used address storage device 3.

本発明は従来の誤り検出符号を使用してアドレス自身の
持つ情報により誤りの検出を行う方法と異なり、アドレ
スが書き込1れている場所というアドレス自身が持つ情
報とは無関係の情報を利用して、誤り検出を行なう方法
であるため、一度検出漏れが生じても、アドレスを読み
出す度に誤9検出を行うことになるので、ほぼ検出漏れ
の発生確率をOにすることができる。
Unlike the conventional method of detecting errors based on the information possessed by the address itself using error detection codes, the present invention uses information unrelated to the information possessed by the address itself, which is the location where the address is written. Since this is a method of performing error detection, even if a detection error occurs once, false 9 detection will be performed every time an address is read, so the probability of occurrence of a detection error can be reduced to approximately zero.

以下、本発明のアドレス誤り検出方法の第1の方法につ
いて動作を説明する。第2図は前記誤り検出方法の誤り
検出手順の流を示す図で、第2図fa)は主記憶装置1
にデータを書き込む場合の流れ図、第2図(b)は主記
憶装置1からデータを読み出す場合の流れ図である。
The operation of the first method of the address error detection method of the present invention will be described below. FIG. 2 is a diagram showing the flow of the error detection procedure of the error detection method, and FIG.
FIG. 2B is a flowchart for reading data from the main storage device 1. FIG.

以下、第1図kよび第2図(a)を用いてデータを書き
込む場合について説明する。入出力データ信13 号線を介して主記憶装置1にデータを書き込む場へ 合は管理装置4により不使用アドレス記憶装置2から、
不使用のアドレスalを読み出し、アドレスa1に対応
する対応記憶装置5のアドレスb1の位置に記憶されて
いる書き込み場所を示す識別子を参照し、誤り検出装置
6により書き込み場所と、管理装置4から得られる読み
出し場所とを比較して、書き込み場所と同一の場所から
読み出しが行われたかどうかを検査し、同一であれば正
常と判断し、主記憶装置1のアドレスa1の位置にデー
タを書き込み、管理装置4により使用アドレス記憶装置
3にアドレスa1を書き込み、誤り検出装置6によりア
ドレスa1に対応する対応記憶装置5のアドレスb1の
位置に記憶されている書き込み場所を示す識別子を更新
する。書き込み場所と読み出し場所が同一でない場合は
アドレスa1あるいは対応記憶装置5に誤りが生じてい
ると判断し、誤り発生を人間あるいは装置等が認識でき
るように表示する。
The case of writing data will be described below using FIG. 1k and FIG. 2(a). When writing data to the main storage device 1 via the input/output data signal line 13, the management device 4 writes unused addresses from the storage device 2,
The unused address al is read out, the identifier indicating the write location stored in the address b1 position of the corresponding storage device 5 corresponding to the address a1 is referred to, and the error detection device 6 determines the write location and the information obtained from the management device 4. It compares the reading location with the writing location and checks whether the reading was performed from the same location as the writing location. If it is the same, it is determined to be normal, and the data is written to address a1 of the main storage device 1 and managed. The device 4 writes the address a1 in the used address storage device 3, and the error detection device 6 updates the identifier indicating the write location stored at the address b1 position of the corresponding storage device 5 corresponding to the address a1. If the writing location and the reading location are not the same, it is determined that an error has occurred in the address a1 or the corresponding storage device 5, and the occurrence of the error is displayed so that a person or a device can recognize it.

つき゛に第2図(b)を用いてデータを読み出す場合に
ついて説明する。
First, the case of reading data will be explained using FIG. 2(b).

主記憶装置1からデータを読み出す場合は、管理装置4
によ9使用中アドレス記憶装置3から使用中のアドレス
a2を読み出し、アドレスa2に対応する対応記憶装置
5のアドレスb2の位置に記憶されている書き込み場所
を示す識別子を参照し、誤9検出装置6により書き込み
場所と、管理装置4から得られる読み出し場所を比較し
て書き込み場所と同一の場所から読み出しが行われたか
どうかを検査し、同一であれば正常と判断し、主記憶装
置1のアドレスa2の位置からデータを読み出し、管理
装置4により、不使用アドレス記憶装置2にアドレスa
2を書き込み、誤り検出装置6によりアドレスa2に対
応する対応記憶装置5のアドレスb2の位置に記憶され
ている書き込み場所を示す識別子を更新する。書き込み
場所と読み出し場所が同一でない場合はアドレスa2あ
るいは、対応記憶装置5に誤りが生じていると判断し、
誤り発生を人間あるいは装置等が認識できるように表示
する。
When reading data from the main storage device 1, the management device 4
According to 9, the currently used address a2 is read from the currently used address storage device 3, and the error 9 detection device 6, the write location is compared with the read location obtained from the management device 4 to check whether reading was performed from the same location as the write location. If they are the same, it is determined to be normal and the address of the main storage device 1 The data is read from the location a2, and the management device 4 stores the address a in the unused address storage device 2.
2 is written, and the error detection device 6 updates the identifier indicating the write location stored in the address b2 position of the corresponding storage device 5 corresponding to the address a2. If the writing location and reading location are not the same, it is determined that an error has occurred in address a2 or the corresponding storage device 5,
The occurrence of an error is displayed so that a person or a device can recognize it.

前記主記憶装置1および対応記憶装置5は、それぞれ少
なくとも1つのランダムアクセスメモリ( RAM )
で実現できる。複数のRAMで実現する場合には、アド
レスa>よびアドレスbは複数RAMの内、どのRAM
であるかということと、そのRAM内のアドレスの両方
をあわせて表現するものである。
The main storage device 1 and the corresponding storage device 5 each include at least one random access memory (RAM).
This can be achieved with When implemented with multiple RAMs, address a> and address b are in which RAM among the multiple RAMs.
It expresses both the fact that the address is in RAM and the address in the RAM.

第3図は不使用アドレス記憶装置2訃よび使用中アドレ
ス記憶装置3のアドレス記憶方法を示す図である。第3
図にかいて、7ぱメモリ、8はアドレスaを1つ記憶す
る領域、9はアドレスaの記憶領域、10は別情報dの
記憶領域を示す。メモリ7の横の1列は1アドレスに対
応する。メモリ7の左横の数字はアドレスを示す。
FIG. 3 is a diagram showing a method of storing addresses in the unused address storage device 2 and the used address storage device 3. Third
In the figure, 7 is a memory, 8 is an area for storing one address a, 9 is a storage area for address a, and 10 is a storage area for separate information d. One horizontal column of the memory 7 corresponds to one address. The numbers on the left side of the memory 7 indicate addresses.

第3図(a)はアドレス記憶装置の1アドレスCに主記
憶装置1のアドレスaを1つのみ記憶する方法で6D、
メモリとしてはファーストインファーストアウト( F
IFO )メモリあるいはRAMが使用可能である。F
IFOメモリを使用する場合、不使用アドレス記憶装置
2および使用中アドレス記憶装置3はそれぞれ少なくと
も1つのFIFOメモリにより構成する。複数FIFO
メモリにより構或する場合は管理装置4はFIFOメモ
リを選択する機能を有する。
FIG. 3(a) shows a method of storing only one address a of the main memory device 1 in one address C of the address memory device 6D,
As a memory, first-in first-out (F
IFO) memory or RAM can be used. F
When an IFO memory is used, each of the unused address storage device 2 and the used address storage device 3 is constituted by at least one FIFO memory. Multiple FIFOs
If a memory is used, the management device 4 has a function of selecting FIFO memory.

アト゛レスaの書き込み場所はアドレスaが書き込1れ
ているFIFOメモリを示す識別子で表わす。
The writing location of address a is represented by an identifier indicating the FIFO memory to which address a is written.

RAMを使用する場合、不使用アドレス記憶装置2およ
び使用中アドレス記憶装置3は両方をあわせて少なくと
も1つのRAJtlIにより構成する。管理装置4は不
使用アドレスと使用アドレスの書き込み・読み出しを行
うためのアドレスポインタ制御回路( RAMにふ・い
て書き込むアト゛レス位置と読み出すアドレス位置を示
す一対のポインタを管理し、書き込み順や読み出し順、
書き込み位置と読み出し位置の同時指定の回避等の制御
を行う回路)を未使用アドレス用と使用アドレス用とし
て少なくとも2つ有する。さらに、複数RAMにより構
成する場合はメモリを選択する機能を有する。アドレス
aの書き込み場所はアドレスaが書き込1れてbるRA
Mを示す識別子あるいは書き込み場所に対応するアドレ
スポインタ制御回路を示す識別子の少なくとも一方によ
り表わす。
When a RAM is used, both the unused address storage device 2 and the used address storage device 3 are constituted by at least one RAJtlI. The management device 4 is an address pointer control circuit for writing and reading unused addresses and used addresses (it manages a pair of pointers indicating address positions to be written into RAM and address positions to be read), and controls writing order, reading order, etc.
There are at least two circuits for controlling unused addresses and for used addresses. Furthermore, when configured with a plurality of RAMs, it has a memory selection function. The writing location of address a is RA where address a is written as 1 and b.
It is represented by at least one of an identifier indicating M or an identifier indicating an address pointer control circuit corresponding to the write location.

第3図fb)はアドレス記憶装置の1アドレスCに主記
憶装置1のアドレスaを複数記憶可能とした方法であう
、メモリとしてはRAMが使用可能である。不使用アド
レス記憶装置2>よび使用中アドレス記憶装置3は両方
をあわせて少なくとも1つのRAMにより構成し、管理
装置4はメモリ7の縦1列毎に対応するアドレスポイン
タ制御回路を有する。さらに、複数RAMにより構成す
る場合はメモリを選択する機能を有する。アドレスaの
書き込み場所はアドレスaが書1き込!れているRAM
を示す識別子あるいは書き込み場所に対応するアト゛レ
スポインタ制御回路を示す識別子あるいは、アドレスa
が書き込1れているアドレスCのビット位置の少なくと
も1つにより表現する。
FIG. 3 fb) is a method in which a plurality of addresses a of the main memory device 1 can be stored in one address C of the address storage device, and a RAM can be used as the memory. Both the unused address storage device 2> and the used address storage device 3 are constituted by at least one RAM, and the management device 4 has an address pointer control circuit corresponding to each vertical column of the memory 7. Furthermore, when configured with a plurality of RAMs, it has a memory selection function. Address a writes 1 to the write location of address a! RAM
or an identifier indicating the address pointer control circuit corresponding to the writing location, or an address a
is expressed by at least one bit position of address C where 1 is written.

第3図(c)はアドレス記憶装置の1アドレスCに主記
憶装置1のアドレスaを1つと、書き込み時にアドレス
aと対応づけられた別情報dを記憶する方法であり、メ
モリとしてはFIFOメそりあるいは、RAMが使用可
能である。FIFOメモリを使用する場合、不使用アド
レス記憶装置2および、使用中アドレス記憶装置3は、
それぞれ少なくとも1つのFIFOメモリにより構成す
る。複数FIFOメモリにより構成する場合は管理装置
4はメモリを選択する機能を有する。アドレスaの書き
込み場所は、アドレスaが書き込すれているFZFOメ
そりを示す識別子あるいは、書き込み時にアドレスaと
対応づけられた別情報dの少なくとも一方で表現する。
FIG. 3(c) shows a method of storing one address a of the main memory 1 in one address C of the address storage device and separate information d associated with the address a at the time of writing, and the memory is a FIFO memory. Sled or RAM can be used. When using FIFO memory, the unused address storage device 2 and the used address storage device 3 are
Each of them is configured with at least one FIFO memory. When configured with multiple FIFO memories, the management device 4 has a memory selection function. The writing location of address a is expressed by at least one of an identifier indicating the FZFO memory to which address a is written, or separate information d associated with address a at the time of writing.

RAMを使用する場合、不使用アドレス記憶装置2およ
び、使用中アドレス記憶装置3は、両方をあわせて少な
くとも1つのRAMにより構或する。管理装置4ぱ未使
用アドレスと使用アドレスの書き込み・読み出しを行う
ためのアドレスポインタ制御回路を少なくとも2つ有す
る。さらに、複数RAMにより構或する場合はメモリを
選択する機能を有する。アドレスaの書き込み場所はア
ドレスaが書き込1れているRAMを示す識別子あるい
は書き込み場所に対応するアドレスポインタ制御回路を
示す識別子あるいは書き込み時にアドレスaと対応づけ
られた別情報dの少なくとも1つにより表現する。壕た
、アドレスaと別情報dを1組として、第3図(b)に
示した方法に釦いてアドレスaをこの1組に置き換えた
方法も可能である。
When RAM is used, both the unused address storage device 2 and the used address storage device 3 are constituted by at least one RAM. The management device 4 has at least two address pointer control circuits for writing and reading unused addresses and used addresses. Furthermore, if a plurality of RAMs are used, it has a memory selection function. The writing location of address a is determined by at least one of an identifier indicating the RAM to which address a is written, an identifier indicating the address pointer control circuit corresponding to the writing location, or separate information d associated with address a at the time of writing. express. Alternatively, it is also possible to use the method shown in FIG. 3(b) by setting the address a and the separate information d as one set and replacing the address a with this one set.

第4図は対応記憶装置5へのアドレス書き込み場所を示
す識別子の記憶方法を示す図である。
FIG. 4 is a diagram showing a method of storing an identifier indicating a location where an address is written into the corresponding storage device 5.

例として、場所を”ア”イ”ク”工” ”オ″という識別子により表わす。第4図(a)ぱ対応
記憶装置5のアドレスをのビット位置により場所を示す
識別子を記憶する方法、第4図(b)は対応記憶装置5
のアドレスをの位置に場所を示す識別子そのものを記憶
する方法を示す図である。
As an example, a location is represented by an identifier such as "A", "I", "K", "O". 4(b) shows the corresponding storage device 5
FIG. 4 is a diagram showing a method of storing an identifier indicating a location at a location of an address.

第4図(a)では一例としてアドレスをのビットヲ左か
ら右へ順に場所を示す識別子“ア”イ″”ウ″ “工″
 ”オ″に対応させ、記憶する場所を示す識別子に対応
するビットに″′1”、それ以外に″0#を書き込んで
いる。lつの場所を示す識別子に対して複数ビット対応
させてもよい。
In FIG. 4(a), as an example, the bits of the address are sequentially indicated from left to right by the identifier "A", "I", "U", "Work".
"'1" is written in the bit corresponding to the identifier indicating the storage location, and "0#" is written in the other bits.Multiple bits may be made to correspond to the identifier indicating one location. .

第4図(a)の場合、アドレスb=oには場所を示す識
別子”ウ”が記憶されていることになる。この場合、第
1に、アドレスa′!f−読み出した場所を示す識別子
に対応するビットに゛1″が記憶されているか検査する
方法と、第2にアドレスaを読み出した場所を示す識別
子に対応するビット以外のビットすべてに”0″が記憶
されているか検査する方法と第3に前記、第1と第2の
状態の両方を検査する方法がある。第4図(b)の場合
はアドレスをの位置に場所を示す識別子そのものを書き
込んでいる。したがって、アドレスb=oには場所を示
す識別子“ウ“が記憶されているこ・とになる。
In the case of FIG. 4(a), an identifier "u" indicating a location is stored at address b=o. In this case, firstly, the address a'! f - A method of checking whether "1" is stored in the bit corresponding to the identifier indicating the read location, and secondly, checking whether "0" is stored in all bits other than the bit corresponding to the identifier indicating the read location of address a. There is a method of checking whether the address is stored, and a third method of checking both the first and second states.In the case of Fig. 4(b), the identifier itself indicating the location is inserted at the address position. Therefore, the identifier "U" indicating the location is stored at address b=o.

第5図は主記憶装置1と対応記憶装置5を同一のメモリ
で実現する方法を示す図である。対応記憶装置5id主
記憶装置1とアドレス空間が同一であれば十分であるか
ら一つのメモリで両方を実現することができる。第5図
において11はデータを記憶する主記憶領域、12ぱア
ドレスaの書き込み場所を示す識別子を記憶する対応記
憶領域を示す。対応記憶領域12へのアドレスaの書き
込み場所を示す識別子の記憶方法としては第4図に示し
た2つの方法が可能である。
FIG. 5 is a diagram showing a method of realizing the main storage device 1 and the corresponding storage device 5 using the same memory. It is sufficient if the corresponding storage device 5id has the same address space as the main storage device 1, so both can be realized with one memory. In FIG. 5, reference numeral 11 indicates a main memory area for storing data, and 12 indicates a corresponding memory area for storing an identifier indicating the write location of address a. As a method of storing an identifier indicating the writing location of address a in the corresponding storage area 12, two methods shown in FIG. 4 are possible.

上記アドレス記憶装置内にはアドレス書き込み場所とし
て定義されていない領域αが存在してもよい。ただし、
領域αが存在する場合にかいて、領域 α にアドレス
を書き込んだ場合には、対応記憶装置5に、定義されて
いる場所に書き込!なかったことを示す識別子を記憶し
、領域αからアドレスを読み出した場合には、定義され
ている場所に書き込壕なかったことを示す識別子が記憶
されているか検査する。1たぱ、領域αにアドレスを書
き込んだ場合、あるいは領域αからアドレスを読み出し
た場合は、対応記憶装置5の記憶内容の更新あるいは誤
り検査は行わない。
There may be an area α that is not defined as an address write location in the address storage device. however,
When area α exists and an address is written to area α, it is written to the defined location in the corresponding storage device 5! When an identifier indicating that there was no write trench is stored and an address is read from area α, it is checked whether an identifier indicating that there was no write trench is stored at the defined location. If an address is written in the area α or if an address is read from the area α, the storage contents of the corresponding storage device 5 are not updated or an error check is performed.

次に、本発明のアドレス誤り検出方法の第2の方法につ
いて説明する。装置の構成は前記実施例と同一であシ、
対応記憶装置5の記憶内容の更新はアドレスaをアドレ
ス記憶装置に書き込むたびに行うが、アドレスaが書き
込んだ場所と同一の場所から読み出されたかどうかの検
査をアドレスaをアドレス記憶装置から読み出す度に毎
回行うのではなく、特定の規則にしたがってあるいはラ
ンダムに間欠的に行う。
Next, a second method of the address error detection method of the present invention will be explained. The configuration of the device is the same as that of the previous embodiment,
The storage contents of the corresponding storage device 5 are updated each time address a is written to the address storage device, but address a is read from the address storage device to check whether it has been read from the same location as the address a was written to. Rather than doing it all at once, it is done intermittently according to specific rules or randomly.

この方法では、アドレスが誤ってから検出する渣での時
間は前記の第1の方法の場合よ9長くなる可能性がある
が、検出漏れの発生確率は同様にほぼOにできる。
In this method, the time required for detection after an erroneous address may be 9 times longer than in the first method, but the probability of detection failure can similarly be reduced to approximately zero.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明は主記憶装置のアドレスを
不使用アドレス記憶装置訃よび使用中アドレス記憶装置
の間で巡回させてアドレス管理を行うデータ記憶装置に
かいて、アドレスとそのアドレスが書き込捷れている場
所の対応を示す対応記憶装置を設け、アドレスを読み出
す場合にこの対応記憶装置を参照し、書き込み場所と同
一の場所から読み出しが行われたか検査することにより
アドレス誤りを検出するための、誤り検出漏れの発生確
率をほぼOにできるという効果が期待できる。
As explained above, the present invention is a data storage device that performs address management by circulating addresses in a main memory device between an unused address storage device and a used address storage device. An address error is detected by providing a correspondence storage device that indicates the correspondence between the mixed locations, and referring to this correspondence storage device when reading an address, and checking whether reading is performed from the same location as the write location. Therefore, it can be expected that the probability of occurrence of false detection failure can be reduced to almost zero.

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

第1図は本発明の一実施例の構成図、第2図(a)ぱ記
憶装置1ヘデータを書き込む時の流れ図、第2図(b)
は記憶装置1からデータを読み出す時の流れ図、第3図
はアドレス記憶装置へのアドレス記憶方法を示す図、第
4図は対応記憶装置5へのアドレスの書き込み場所を示
す識別子の記憶方法を示す図、第5図は主記憶装置1と
対応記憶装置5とを同一メモリにより実現する方法を示
す図でろる。 1・・・主記憶装置、2・・・不使用アドレス記憶装置
、市 3・・・使用アドレス記憶装置、4・・・管理装置、5
・・・へ 対応記憶装置、6・・・誤り検出装置、7・・・メモリ
、8・・・アドレスを1つ記憶する領域、9・・・アド
レスの記憶領域、10・・・別情報の記憶領域、11・
・・主記憶領域、 1 2・・・対応記憶領域、 1 3・・・入出力デ −タ信号線 第 2 図(a) 本発明の一実施f!iI1の構成図 第 1 図 弟 2 図(1)) (a) (b) 8 (C) アト9レス記憶装置へのアドレス記憶方法を示す図第 3 図 7 (a) 7 (b)
Figure 1 is a configuration diagram of an embodiment of the present invention, Figure 2 (a) is a flowchart when writing data to the storage device 1, Figure 2 (b)
3 is a flowchart when reading data from the storage device 1, FIG. 3 is a diagram showing a method of storing an address in the address storage device, and FIG. FIG. 5 is a diagram showing a method of realizing the main storage device 1 and the corresponding storage device 5 using the same memory. 1... Main storage device, 2... Unused address storage device, City 3... Used address storage device, 4... Management device, 5
... Corresponding storage device, 6... Error detection device, 7... Memory, 8... Area for storing one address, 9... Address storage area, 10... Other information Storage area, 11.
. . . Main storage area, 1 2 . . . Corresponding storage area, 1 3 . . . Input/output data signal line FIG. 2 (a) One implementation of the present invention f! Configuration diagram of iI1 Figure 1 Figure 2 Figure (1)) (a) (b) 8 (C) Figure 3 showing the method of storing addresses in the At9 address storage device Figure 7 (a) 7 (b)

Claims (1)

【特許請求の範囲】 1 アドレスaを指定することによりデータの書き込み
あるいは、読み出しを行う主記憶装置(1)と、該主記
憶装置(1)の不使用のアドレスa1を記憶する不使用
アドレス記憶装置(2)と、前記主記憶装置(1)の使
用中アドレスa2を記憶する使用中アドレス記憶装置(
3)と、前記不使用アドレス記憶装置(2)および使用
中アドレス記憶装置(3)の書き込みおよび読み出しを
管理する管理装置(4)を備え、前記主記憶装置(1)
にデータを書き込む場合には、該管理装置(4)により
前記不使用アドレス記憶装置(2)から不使用のアドレ
スa1を読み出し、前記主記憶装置(1)のアドレスa
1の位置にデータを書き込み、前記管理装置(4)によ
り前記使用中アドレス記憶装置(3)にアドレスa1を
書き込み、前記主記憶装置(1)からデータを読み出す
場合には、前記管理装置(4)により前記使用中アドレ
ス記憶装置(3)から使用中アドレスa2を読み出し、
前記主記憶装置(1)のアドレスa2の位置からデータ
を読み出し、前記管理装置(4)により前記不使用アド
レス記憶装置(2)にアドレスa2を書き込むようにし
たデータ記憶装置において、 アドレスaが前記不使用アドレス記憶装置(2)および
使用中アドレス記憶装置(3)のうちの少なくとも一方
のどの場所に書き込まれているかを、アドレスaに対応
するアドレスをの位置に記憶する対応記憶装置(5)を
設け、不使用アドレス記憶装置(2)および使用中アド
レス記憶装置(3)のうちの少なくとも一方にアドレス
aを書き込む場合に、アドレスaに対応する前記対応記
憶装置(5)のアドレスbの位置にアドレスaの書き込
み場所を示す識別子を記憶し、不使用アドレス記憶装置
(2)および使用中アドレス記憶装置(3)のうちの少
なくとも一方からアドレスaを読み出す場合に、アドレ
スaに対応する前記対応記憶装置(5)のアドレスをの
位置に記憶されている場所を示す識別子を参照してアド
レスaが書き込まれた場所と同一の場所から読み出され
たかどうかを誤り検出装置(6)により検査することに
より、アドレスaの誤りを検出するようにしたことを特
徴とするデータ記憶装置のアドレス誤り検出方法。 2 請求項1の対応記憶装置(5)において、アドレス
aの書き込み場所を示す識別子をアドレスaに対応する
アドレスbのビット位置で表わすことにより、書き込み
場所と同一の場所から読みだされたか、あるいは、書き
込み場所以外の場所から読み出さなかったか、あるいは
、前記両読み出し場所を検査することによりアドレスa
の誤りを誤り検出装置(6)により検出するようにした
ことを特徴とするデータ記憶装置のアドレス誤り検出方
法。
[Claims] 1. A main memory device (1) in which data is written or read by specifying an address a, and an unused address memory that stores an unused address a1 of the main memory device (1). a device (2), and a busy address storage device (2) that stores the busy address a2 of the main storage device (1).
3), and a management device (4) that manages writing and reading of the unused address storage device (2) and the used address storage device (3), the main storage device (1)
When writing data to the main storage device (1), the management device (4) reads the unused address a1 from the unused address storage device (2) and stores the address a1 in the main storage device (1).
1, the management device (4) writes address a1 to the in-use address storage device (3), and when reading data from the main storage device (1), the management device (4) ) reads the in-use address a2 from the in-use address storage device (3),
In the data storage device, data is read from the location of address a2 of the main storage device (1), and address a2 is written to the unused address storage device (2) by the management device (4), A corresponding storage device (5) that stores the address corresponding to address a in the location of at least one of the unused address storage device (2) and the used address storage device (3). and when writing address a to at least one of the unused address storage device (2) and the used address storage device (3), the position of address b of the corresponding storage device (5) corresponding to address a. stores an identifier indicating the writing location of address a, and when reading address a from at least one of the unused address storage device (2) and the used address storage device (3), the above-mentioned correspondence corresponding to address a is stored. The error detection device (6) checks whether the address a is read from the same location where it was written by referring to the identifier indicating the location where the address a is stored in the storage device (5). A method for detecting an address error in a data storage device, characterized in that an error in an address a is detected by: 2. In the compatible storage device (5) of claim 1, by representing the identifier indicating the writing location of address a by the bit position of address b corresponding to address a, it is possible to determine whether the identifier is read from the same location as the writing location, or , address a is not read from a location other than the write location, or by checking both read locations.
1. A method for detecting an address error in a data storage device, characterized in that an error in the address error is detected by an error detection device (6).
JP1231699A 1989-09-08 1989-09-08 Address error detection method for data storage device Expired - Fee Related JP2759824B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1231699A JP2759824B2 (en) 1989-09-08 1989-09-08 Address error detection method for data storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1231699A JP2759824B2 (en) 1989-09-08 1989-09-08 Address error detection method for data storage device

Publications (2)

Publication Number Publication Date
JPH0395653A true JPH0395653A (en) 1991-04-22
JP2759824B2 JP2759824B2 (en) 1998-05-28

Family

ID=16927616

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1231699A Expired - Fee Related JP2759824B2 (en) 1989-09-08 1989-09-08 Address error detection method for data storage device

Country Status (1)

Country Link
JP (1) JP2759824B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6098555A (en) * 1998-09-22 2000-08-08 Suzuki Manufacturing Co., Ltd. Chain-off forming apparatus for cover stitch sewing machines
JP2011113404A (en) * 2009-11-27 2011-06-09 Fujitsu Ltd Buffer memory device and buffering method
CN112148201A (en) * 2019-06-26 2020-12-29 龙芯中科技术有限公司 Data writing method, device and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6098555A (en) * 1998-09-22 2000-08-08 Suzuki Manufacturing Co., Ltd. Chain-off forming apparatus for cover stitch sewing machines
JP2011113404A (en) * 2009-11-27 2011-06-09 Fujitsu Ltd Buffer memory device and buffering method
CN112148201A (en) * 2019-06-26 2020-12-29 龙芯中科技术有限公司 Data writing method, device and storage medium

Also Published As

Publication number Publication date
JP2759824B2 (en) 1998-05-28

Similar Documents

Publication Publication Date Title
GB1495332A (en) Memory having non-fixed relationships between addresses and storage locations
EP0862761A2 (en) Data error detection and correction for a shared sram
JPS6141028B2 (en)
JPH0395653A (en) Address error detecting method for data storage device
JPH10260909A (en) Shared memory controller
JPS6035694B2 (en) Main memory protection method
JP2600376B2 (en) Memory controller
US4916703A (en) Handling errors in the C bit of a storage key
JPH04156641A (en) Register access device
JPS6329859A (en) Memory protection circuit
JPS6020779B2 (en) Composite computer system
JPH0528056A (en) Memory device
JPS63129440A (en) Store through buffer device
JPH02143352A (en) Memory error detection and correction system
JPH1063577A (en) Memory control method and its device
JPH038040A (en) 1-bit error information storage device
JPS62219390A (en) Fifo memory
JPH0535443A (en) Buffer control system
JPH0325646A (en) Parity error discriminating system
JPS62166449A (en) History storage device for logical unit
JPH04120938A (en) Self diagnostic circuit for address control memory
JPS63153655A (en) Memory access control system
JPH05165658A (en) Information processing system
JPH0296257A (en) Diagnostic system for main storage
JPS63697A (en) Status variation-wise information setting system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees