JP2003271463A - Doubling memory device - Google Patents

Doubling memory device

Info

Publication number
JP2003271463A
JP2003271463A JP2002067907A JP2002067907A JP2003271463A JP 2003271463 A JP2003271463 A JP 2003271463A JP 2002067907 A JP2002067907 A JP 2002067907A JP 2002067907 A JP2002067907 A JP 2002067907A JP 2003271463 A JP2003271463 A JP 2003271463A
Authority
JP
Japan
Prior art keywords
memory
data
address
processor
comparator
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
JP2002067907A
Other languages
Japanese (ja)
Inventor
Yasuyuki Ono
保幸 大野
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.)
Fujitsu Telecom Networks Ltd
Original Assignee
Fujitsu Telecom Networks Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Telecom Networks Ltd filed Critical Fujitsu Telecom Networks Ltd
Priority to JP2002067907A priority Critical patent/JP2003271463A/en
Publication of JP2003271463A publication Critical patent/JP2003271463A/en
Pending legal-status Critical Current

Links

Abstract

<P>PROBLEM TO BE SOLVED: To protect important data, and to easily detect the occurrence of abnormality in a doubling memory device for doubling a memory accessible from a processor. <P>SOLUTION: This doubling memory device has doubled memories 3 and 4 accessible by the processor 1, and a memory switching device 2. This memory switching device 2 has the constitution connected in a switching system to write the same data in the same address of the memories 3 and 4 of doubled one and the other at data writing time when imparting a memory protective condition, connected in a switching system to transfer the data read out of one memory 3 to the processor 1 at data reading-out time, connected in a switching system to write the data only to the doubled other memory 4 at data writing time when imparting no memory protective condition, and connected in a switching system to transfer the data read out of the other memory 4 to the processor 1 at data reading-out time. <P>COPYRIGHT: (C)2003,JPO

Description

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

【0001】[0001]

【発明の実施の形態】本発明は、コンピュータ・システ
ムに於けるメモリ保護とメモリ異常検出とを可能とした
二重化メモリ装置に関する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention relates to a dual memory device capable of memory protection and memory abnormality detection in a computer system.

【0002】[0002]

【従来の技術】各種のデータやプログラムをメモリに格
納してプロセッサが各種の情報処理を行うコンピュータ
・システムに於いて、リードオンリメモリROMは、書
込んだデータを読出すだけであるから、書換えは通常の
ROMは不可能となっている。しかし、ランダムアクセ
スメモリRAMは、データの書換えが容易であり、その
為、重要なデータの書込領域を予め設定し、他のプログ
ラムによって書換えができないようにする構成が知られ
ている。
2. Description of the Related Art In a computer system in which various kinds of data and programs are stored in a memory and a processor performs various kinds of information processing, a read-only memory ROM only reads the written data. A normal ROM is impossible. However, in the random access memory RAM, it is easy to rewrite data. Therefore, there is known a configuration in which a writing area of important data is set in advance so that it cannot be rewritten by another program.

【0003】又コンピュータ・システムを二重化して情
報処理の信頼性を向上させることも知られており、その
場合に、メモリを一方のシステムと他方のシステムとに
対して共用化する場合と、一方と他方とのシステムにそ
れぞれメモリを設けて、完全な二重化構成とする場合と
があり、この完全な二重化構成のホットスタンバイ方式
に於いては、一方と他方とのシステムのメモリに同一の
データを書込むことにより、現用と予備との切替えを可
能としている。
It is also known to improve the reliability of information processing by duplicating a computer system. In that case, there is a case where a memory is shared by one system and the other system. There is a case where a memory is provided in each of the system of the other side and a complete duplex configuration, and in the hot standby method of this complete duplex configuration, the same data is stored in the memory of the system of one side and the other side. By writing, it is possible to switch between the active and standby.

【0004】[0004]

【発明が解決しようとする課題】従来のコンピュータ・
システムに於いて、重要なデータの書込領域を設定した
場合に於いても、他のプログラムが使用する領域を超え
てデータの書込みを行った場合、重要なデータの書込領
域の一部を使用する場合がある。それにより、重要なデ
ータは破壊されることになる。このような状態が発生
し、重要なデータがシステム管理のプログラムを含む場
合、システムダウンを引き起こす要因となる問題があ
る。又その要因を解析することも容易でない問題があっ
た。本発明は、重要なデータを保護し、且つその重要な
データの信頼性を維持することを目的とする。
[Problems to be Solved by the Invention]
In the system, even if the important data write area is set, if the data is written beyond the area used by other programs, a part of the important data write area will be May be used. This will destroy important data. When such a situation occurs and important data includes a system management program, there is a problem that causes a system down. Moreover, there is a problem that it is not easy to analyze the factor. The present invention aims to protect important data and maintain the reliability of the important data.

【0005】[0005]

【課題を解決するための手段】本発明の二重化メモリ装
置は、図1を参照して説明すると、プロセッサ1により
アクセスされる二重化したメモリ3,4と、プロセッサ
1と二重化したメモリ3,4との間のアドレスバスとデ
ータバスとの切替接続を行うメモリ切替装置2とを有
し、このメモリ切替装置2は、メモリ保護の条件を与え
た時のデータの書込時は、二重化した一方と他方とのメ
モリ3,4の同一アドレスに同一のデータを書込むよう
に切替接続し、且つデータの読出時は、一方のメモリ3
から読出したデータをプロセッサ1に転送するように切
替接続し、メモリ保護の条件を与えない時のデータの書
込時は、二重化した他方のメモリ4に対してデータを書
込むように切替接続し、且つデータの読出時は、他方の
メモリ4から読出したデータをプロセッサ1に転送する
ように切替接続する構成を有するものである。
The dual memory device of the present invention will be described with reference to FIG. 1. The dual memory 3, 4 accessed by the processor 1 and the dual memory 3, 4 with the processor 1. Between the address bus and the data bus, the memory switching device 2 is provided, and the memory switching device 2 has a dual structure when writing data when a memory protection condition is given. Switching connection is made so that the same data is written to the same address in the memories 3 and 4 as the other memory, and one memory 3 is used when reading data.
The data read from the memory is switched and connected so as to be transferred to the processor 1, and when the data is written when the memory protection condition is not given, the data is read and written to the other memory 4 which is duplicated. In addition, when data is read, the data read from the other memory 4 is switched and connected so as to be transferred to the processor 1.

【0006】又二重化した一方と他方とのメモリ3,4
の同一アドレスから読出したデータを比較するデータ比
較器を有するものである。又一方のメモリ3に対するデ
ータ書込時のアドレスを記憶するアドレス記憶装置と、
このアドレス記憶装置に記憶されたアドレスと他方のメ
モリ4に対するデータ書込時のアドレスとを比較するア
ドレス比較器とを有するものである。又一方のメモリ3
に対するデータ書込時のアドレスを記憶するアドレス記
憶装置と、このアドレス記憶装置に記憶されたアドレス
と他方のメモリ4に対するデータ書込時のアドレスとを
比較するアドレス比較器と、このアドレス比較器による
比較一致により、一方と他方とのメモリ3,4の同一ア
ドレスから読出したデータを比較するデータ比較器とを
有するものである。
[0006] In addition, the memory 3 and 4 of one and the other which are duplicated
It has a data comparator for comparing the data read from the same address. An address storage device that stores an address at the time of writing data to one of the memories 3,
It has an address comparator for comparing the address stored in this address storage device with the address at the time of writing data to the other memory 4. Another memory 3
By an address storage device for storing the address at the time of writing data to the memory, an address comparator for comparing the address stored in the address storage device with the address at the time of writing data to the other memory 4, and the address comparator. It has a data comparator which compares data read from the same address of the memories 3 and 4 of one side and the other side by comparison and coincidence.

【0007】又アドレス比較器による比較一致時と、デ
ータ比較器による比較不一致時とを異常発生とし、その
時点のアドレスとデータとを含む情報を蓄積する異常情
報蓄積装置を有するものである。又メモリ切替装置2
は、プロセッサ1と二重化した一方と他方とのメモリ
3,4に対して切替接続を制御する為のメモリ保護の条
件を、プログラムによる要求に従って設定するメモリ保
護設定レジスタを有するものである。
Further, the present invention has an abnormality information storage device for storing information including address and data at the time when an abnormality occurs when the address comparator compares and compares and when the data comparator does not compare. Memory switching device 2
Has a memory protection setting register for setting memory protection conditions for controlling the switching connection to the one and the other memories 3 and 4 that are duplicated with the processor 1 in accordance with a program request.

【0008】[0008]

【発明の実施の形態】図1は本発明の第1の実施の形態
の説明図であり、1はプロセッサ(CPU)、2はメモ
リ切替装置、3,4は二重化した一方と他方とのメモ
リ、5はリードオンリメモリ(ROM)等によるプログ
ラム格納領域を示す。メモリ切替装置2は、プロセッサ
1に接続したアドレスバス(一重線で示す)とデータバ
ス(二重線で示す)と、二重化したメモリ3,4に対す
るアドレスバス(一重線で示す)とデータバス(二重線
で示す)との切替接続を行うものである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is an explanatory view of a first embodiment of the present invention, in which 1 is a processor (CPU), 2 is a memory switching device, and 3 and 4 are dual memories of one and the other. Reference numeral 5 denotes a program storage area such as a read only memory (ROM). The memory switching device 2 includes an address bus (shown by a single line) and a data bus (shown by a double line) connected to the processor 1, an address bus (shown by a single line) and a data bus (shown by a single line) for the duplicated memories 3 and 4. (Shown by a double line) is for switching connection.

【0009】プロセッサ1から例えばプログラムAによ
る重要なデータをメモリに書込む場合、メモリ保護の条
件を設定することにより、メモリ切替装置2は、プロセ
ッサ1のアドレスバスとデータバスとを、二重化したメ
モリ3,4のアドレスバスとデータバスとをそれぞれ接
続するように切替えて、プロセッサ1からの書込アドレ
スと書込データとを一方と他方とのメモリ3,4に加え
て、同一のアドレスに同一のデータを書込むものであ
る。
When writing important data from the processor 1 into the memory, for example, by the program A, the memory switching device 2 sets the memory protection condition so that the address bus and the data bus of the processor 1 are duplicated. The address bus and the data bus of 3 and 4 are switched so as to be connected to each other, and the write address and the write data from the processor 1 are added to the memories 3 and 4 of one and the other, and the same address is used. The data of is written.

【0010】又プログラムAによるデータ読出時は、メ
モリ切替装置2により、プロセッサ1のアドレスバスと
メモリ3,4のアドレスバスとを切替接続し、プロセッ
サ1のデータバスとメモリ3のデータバスとを切替接続
し、一方のメモリ3から読出したデータをプロセッサ1
に転送する。又例えばプログラムBによる重要でないデ
ータをメモリに書込む場合及び読出す場合は、メモリ保
護の条件が設定されていないので、メモリ切替装置2
は、プロセッサ1のアドレスバスと他方のメモリ4のア
ドレスバスとを切替接続し、プロセッサ1のデータバス
と他方のメモリ4のデータバスとを切替接続して、他方
のメモリ4に対してのみデータの書込み及び読出しを行
う。それにより、重要なデータを書込んだ一方のメモリ
3の内容を保護することができる。
When data is read by the program A, the memory switching device 2 switches and connects the address bus of the processor 1 and the address buses of the memories 3 and 4 to connect the data bus of the processor 1 and the data bus of the memory 3. The data read from one of the memories 3 by switching connection is read by the processor 1
Transfer to. In addition, for example, when writing or reading unimportant data by the program B to or from the memory, the memory switching condition is not set because the memory protection condition is not set.
Switch-connects the address bus of the processor 1 and the address bus of the other memory 4, and switches and connects the data bus of the processor 1 and the data bus of the other memory 4 so that only the other memory 4 receives data. Write and read. As a result, the content of the memory 3 on which the important data has been written can be protected.

【0011】この場合のメモリ切替装置2は、メモリ保
護の条件の設定の有無による切替接続を内部の制御手段
により行う構成とすることができる。或いは、プロセッ
サ1の処理判断に基づいて制御する構成とすることがで
きる。
In this case, the memory switching device 2 can be configured to perform switching connection by the internal control means depending on whether or not a memory protection condition is set. Alternatively, the control may be performed based on the processing judgment of the processor 1.

【0012】図2は本発明の第2の実施の形態の説明図
であり、図1と同一符号は同一部分を示し、6はデータ
比較器を示す。二重化したメモリ3,4の書込みの制御
は、図1に示す場合と同様であるが、例えば、メモリ保
護の条件を設定したプログラムAにより重要なデータを
読出す場合、メモリ切替装置2は、重要なデータの書込
時と同様に、アドレスバスとデータバスとをメモリ3,
4に切替接続し、メモリ3,4から同一のアドレスで同
一のデータを読出し、データ比較器6により比較し、比
較一致の場合は正常であるから、読出データをプロセッ
サ1に於いて処理し、比較不一致の場合は、データの書
換えやメモリ素子の損傷等によるデータの変更が行われ
たことを示すので、プロセッサ1に対して割込みを行
う。それにより、重要なデータの信頼性を向上すること
ができる。
FIG. 2 is an explanatory diagram of the second embodiment of the present invention. The same reference numerals as those in FIG. 1 indicate the same parts, and 6 indicates a data comparator. The control of writing in the duplicated memories 3 and 4 is the same as that shown in FIG. 1, but for example, when important data is read by the program A in which the memory protection condition is set, the memory switching device 2 is important. The address bus and data bus in the memory 3,
4, the same data is read out from the memories 3 and 4 at the same address and compared by the data comparator 6, and when the comparison and coincidence is normal, the read data is processed in the processor 1. If the comparison does not match, it indicates that the data has been rewritten or the data has been changed due to the damage of the memory element, and therefore the processor 1 is interrupted. Thereby, the reliability of important data can be improved.

【0013】図3は本発明の第3の実施の形態の説明図
であり、図1と同一符号は同一部分を示し、7はアドレ
ス比較器、8はアドレス記憶装置を示す。アドレス記憶
装置8は、例えば、メモリ保護の条件を設定したプログ
ラムAによる重要なデータを二重化した一方と他方との
メモリ3,4に書込む時のアドレスを記憶するものであ
る。そして、例えば、メモリ保護の条件を設定していな
いプログラムBによるデータ書込時のアドレスと、アド
レス記憶装置8に記憶しておいたアドレスとを、アドレ
ス比較器7により比較し、比較一致の場合は、メモリ4
の重要なデータが書換えられることを示すので、プロセ
ッサ1に対して割込みを行って重要なデータを保護す
る。
FIG. 3 is an explanatory view of the third embodiment of the present invention. The same reference numerals as those in FIG. 1 indicate the same parts, 7 is an address comparator, and 8 is an address storage device. The address storage device 8 stores, for example, an address when writing important data by the program A in which the memory protection condition is set to the duplicated one and the other memories 3 and 4. Then, for example, the address at the time of writing data by the program B in which the memory protection condition is not set and the address stored in the address storage device 8 are compared by the address comparator 7, and in the case of comparison match. Is memory 4
Important data is rewritten, an interrupt is made to the processor 1 to protect the important data.

【0014】図4は本発明の第4の実施の形態の説明図
であり、図1,図2及び図3と同一符号は同一部分を示
す。この実施の形態は、図2と図3とに示す実施の形態
を組合せたもので、例えば、メモリ保護の条件を設定し
たプログラムAによる重要なデータの書込時のアドレス
をアドレス記憶装置8に記憶し、又メモリ3,4からの
データの読出時はデータ比較器6により比較してデータ
が書換えられたか否かを検出し、又メモリ保護の条件が
設定されていないプログラムBによる重要でないデータ
の書込時のアドレスとアドレス記憶装置8に記憶したア
ドレスとをアドレス比較器7により比較して、比較一致
の場合は、メモリ4の重要なデータの書換えが行われる
ことを示すので、プロセッサ1に対して割込みを行う。
FIG. 4 is an explanatory view of the fourth embodiment of the present invention, in which the same reference numerals as those in FIGS. 1, 2 and 3 indicate the same parts. This embodiment is a combination of the embodiments shown in FIG. 2 and FIG. 3. For example, the address at the time of writing important data by the program A that sets the memory protection condition is stored in the address storage device 8. When the data is stored and read from the memories 3 and 4, the data comparator 6 compares the data to detect whether or not the data has been rewritten, and the non-important data by the program B in which the memory protection condition is not set. The address comparator 7 compares the address at the time of writing with the address stored in the address storage device 8, and in the case of a comparison match, it indicates that important data in the memory 4 is rewritten. Interrupt to.

【0015】図5は本発明の第5の実施の形態の説明図
であり、前述の各図の符号と同一符号は同一部分を示
し、9は異常情報蓄積装置を示す。この異常情報蓄積装
置9には、データ比較器7に於ける比較不一致時のアド
レスとデータとリード/ライトとを含む情報を蓄積し、
又アドレス比較器7に於ける比較一致時のアドレスとデ
ータとリード/ライトとを含む情報を蓄積する。従っ
て、異常情報蓄積装置9の蓄積情報を参照することによ
り、異常発生の状況を認識することができるから、異常
発生要因の探索が容易となる。
FIG. 5 is an explanatory view of the fifth embodiment of the present invention, in which the same reference numerals as those in the above-mentioned drawings indicate the same parts, and 9 indicates an abnormality information storage device. The abnormal information storage device 9 stores information including an address, data, and read / write at the time of comparison disagreement in the data comparator 7,
In addition, the address comparator 7 stores information including address, data and read / write at the time of comparison match. Therefore, by referring to the accumulated information of the abnormality information accumulating device 9, the situation of the abnormality occurrence can be recognized, which facilitates the search for the cause of the abnormality occurrence.

【0016】図6は本発明の第6の実施の形態の説明図
であり、前述の各図の符号と同一符号は同一部分を示
し、10は異常発生通報装置を示す。データ比較器6に
於ける比較不一致時と、アドレス比較器7に於ける比較
一致時との検出信号を基に、異常発生通報装置10はプ
ロセッサ1に対して割込みを行い、且つその時のアドレ
スとデータとリード/ライトとを含む情報を、異常情報
蓄積装置9に加えて蓄積する。
FIG. 6 is an explanatory view of a sixth embodiment of the present invention, in which the same reference numerals as those in the above-mentioned drawings indicate the same parts, and 10 indicates an abnormality occurrence reporting device. On the basis of the detection signals when the data comparator 6 does not compare and when the address comparator 7 compares, the abnormality occurrence reporting device 10 interrupts the processor 1 and determines the address at that time. Information including data and read / write is stored in addition to the abnormality information storage device 9.

【0017】図7は本発明の第7の実施の形態の説明図
であり、前述の各図の符号と同一符号は同一部分を示
し、11はダイレクト・メモリ・アクセス制御部(DM
A)、2−1はメモリ保護設定レジスタを示す。又点線
経路は制御信号の経路を示し、一点鎖線の経路は検出信
号の経路を示す。又プログラム格納領域5にプログラム
A,Bを格納した状態を示す。
FIG. 7 is an explanatory diagram of a seventh embodiment of the present invention, in which the same reference numerals as those in the above-mentioned respective drawings indicate the same parts, and 11 indicates a direct memory access control unit (DM).
A) 2-1 is a memory protection setting register. The dotted line path indicates the control signal path, and the alternate long and short dash line path indicates the detection signal path. Further, a state in which the programs A and B are stored in the program storage area 5 is shown.

【0018】メモリ切替装置2のメモリ保護設定レジス
タ2−1は、前述のメモリ保護の条件を設定するもので
あり、例えば、プログラムAから重要なデータを保存す
る為のメモリ保護要求に従ってメモリ保護設定レジスタ
2−1にメモリ保護を設定する。そして、プログラムA
によるアクセスに対しては、メモリ保護機能を発揮する
ように、メモリ切替装置2は切替接続を行う。即ち、プ
ログラムAからのアクセスに対して、プロセッサ1のア
ドレスバスとデータバスとに対して、二重化したメモリ
3,4のアドレスバスとデータとの切替接続を行い、二
重化したメモリ3,4に同一のアドレスを加える。即
ち、メモリ切替装置2は、リード/ライト制御信号に従
ってメモリ保護設定レジスタ2−1を参照し、メモリ保
護の条件の設定の有無に従って、プロセッサ1側とメモ
リ3,4側との接続制御を行う構成を有するものであ
り、比較的簡単な論理回路或いはソフトウェアによって
実現することができる。
The memory protection setting register 2-1 of the memory switching device 2 sets the above-mentioned memory protection conditions. For example, the memory protection setting is performed according to the memory protection request for storing important data from the program A. Set memory protection in register 2-1. And program A
The memory switching device 2 performs switching connection so as to exert the memory protection function. That is, in response to the access from the program A, the address bus and the data bus of the processor 1 are switched and connected to the address buses and the data of the duplicated memories 3 and 4, and the same connection is made to the duplicated memories 3 and 4. Add the address of. That is, the memory switching device 2 refers to the memory protection setting register 2-1 according to the read / write control signal, and controls the connection between the processor 1 side and the memories 3 and 4 according to the presence / absence of the memory protection condition setting. It has a configuration and can be realized by a relatively simple logic circuit or software.

【0019】又ダイレクト・メモリ・アクセス制御部1
1は、メモリ4に対してのみ直接的にアクセスしてデー
タの書込み及び読出しを行うものである。この場合のア
ドレスについても、アドレス比較器7に於いて比較し、
比較一致の場合に、一方のメモリ3から読出したデータ
と、他方のメモリ4から読出したデータとをデータ比較
器6に於いて比較し、重要なデータが変更されたか否か
を判定する。
Direct memory access controller 1
1 directly writes and reads data by directly accessing only the memory 4. The address in this case is also compared in the address comparator 7,
In the case of comparison and coincidence, the data read from one memory 3 and the data read from the other memory 4 are compared in the data comparator 6 to determine whether important data has been changed.

【0020】又データ比較部6に於ける比較不一致の検
出信号又はアドレス比較器7に於ける比較一致の検出信
号により、異常発生通報装置10からプロセッサ1に対
して割込(NMI:Non−Maskable Int
errupt)を行い、且つ異常情報蓄積装置9に通知
する。異常情報蓄積装置9は、この通知に従って、その
時点のアドレスと、データとリード/ライトとを含む情
報を蓄積する。又プロセッサ1は、その割込みにより優
先的に割込処理を開始する。
Further, in response to a comparison mismatch detection signal in the data comparison section 6 or a comparison match detection signal in the address comparator 7, the abnormality occurrence reporting device 10 interrupts the processor 1 (NMI: Non-Maskable). Int
The error information storage device 9 is notified. In accordance with this notification, the abnormality information storage device 9 stores information including the address at that time, data, and read / write. Further, the processor 1 preferentially starts the interrupt processing by the interrupt.

【0021】図8はメモリ切替装置の切替接続状態の説
明図であり、(a)はメモリ保護の条件を設定したプロ
グラムAによるデータ読出時の状態を示し、RDはリー
ド制御信号を示す。メモリ切替装置2は、プロセッサ1
のアドレスバスと、二重化したメモリ3,4のアドレス
バスとを接続し、プロセッサ1のデータバスと、一方の
メモリ3のデータバスとを接続し、両方のメモリ3,4
の同一のアドレスから同一のデータを読出し、メモリ3
から読出したデータをプロセッサ1に転送する。又図示
を省略したデータ比較器により読出したデータを比較す
る。
FIG. 8 is an explanatory diagram of a switching connection state of the memory switching device, (a) shows a state at the time of reading data by the program A in which a memory protection condition is set, and RD shows a read control signal. The memory switching device 2 is the processor 1
Is connected to the address buses of the duplicated memories 3 and 4, and the data bus of the processor 1 and the data bus of one memory 3 are connected to both the memories 3 and 4.
The same data is read from the same address of
The data read from is transferred to the processor 1. Further, the data read by a data comparator (not shown) is compared.

【0022】又図8の(b)は、メモリ保護の条件を設
定したプログラムAによるデータ書込時の状態を示し、
WTはライト制御信号を示す。メモリ切替装置2は、プ
ロセッサ1のアドレスバスと、二重化したメモリ3,4
のアドレスバスとを接続し、プロセッサ1のデータバス
と、二重化したメモリ3,4のデータバスとを接続す
る。それにより、二重化した両方のメモリ3,4の同一
アドレスに同一データが書込まれる。
Further, FIG. 8B shows a state at the time of data writing by the program A in which the memory protection condition is set,
WT indicates a write control signal. The memory switching device 2 includes an address bus of the processor 1 and duplicated memories 3 and 4.
, And the data bus of the processor 1 and the data buses of the duplicated memories 3 and 4 are connected. As a result, the same data is written at the same address in both of the duplicated memories 3 and 4.

【0023】又図8の(c)は、メモリ保護の条件を設
定しないプログラムBによるデータの読出時の状態を示
し、メモリ切替装置2は、プロセッサ1のアドレスバス
と、二重化したメモリ3,4のアドレスとを接続し、プ
ロセッサ1のデータバスと、一方のメモリ4のデータバ
スとを接続し、リード制御信号により一方と他方とのメ
モリ3,4の同一のアドレスからデータを読出すが、他
方のメモリ4からのデータのみをプロセッサ1に転送す
る。この場合、例えば、プログラムAによるデータを、
プログラムBが参照する為の読出しを行うことも可能と
なる。
Further, FIG. 8C shows a state at the time of reading data by the program B in which the memory protection condition is not set, and the memory switching device 2 includes the address bus of the processor 1 and the duplicated memories 3 and 4. The data bus of the processor 1 and the data bus of the memory 4 on one side are connected, and data is read from the same address of the memories 3 and 4 on one side and the other side by the read control signal. Only the data from the other memory 4 is transferred to the processor 1. In this case, for example, the data by the program A is
It is also possible to read the program B for reference.

【0024】又図8の(d)は、メモリ保護の条件を設
定しないプログラムBによるデータの書込時の状態を示
し、メモリ切替装置2は、プロセッサ1のアドレスバス
と他方のメモリ4のアドレスバスとを接続し、プロセッ
サ1のデータバスと他方のメモリ4のデータバスとを接
続し、そのメモリ4に対してのみデータの書込みを行
う。それにより、重要なデータを格納した一方のメモリ
3に対する書込アクセスを禁止するから、重要なデータ
を保護することができる。
Further, FIG. 8D shows a state at the time of writing data by the program B in which the memory protection condition is not set, and the memory switching device 2 includes the address bus of the processor 1 and the address of the other memory 4. The data bus of the processor 1 and the data bus of the other memory 4 are connected to each other, and data is written only to the memory 4. As a result, the write access to the one memory 3 storing the important data is prohibited, so that the important data can be protected.

【0025】図9は図6に示す実施の形態に於けるメモ
リ保護設定を行ったプログラム、例えば、プログラムA
によるデータ読出時の説明図であり、リード制御信号に
より、メモリ切替装置2はメモリ保護設定レジスタ2−
1にプログラムAによるメモリ保護要求が設定されてい
ることにより、プロセッサ1のアドレスバスと、二重化
したメモリ3,4のアドレスバスとを接続し、プロセッ
サ1のデータバスと、メモリ3のデータバスとを接続
し、両方のメモリ3,4にリード制御信号RDを加え
る。それにより、両方のメモリ3,4の同一アドレスか
らそれぞれデータを読出す。
FIG. 9 shows a program for which memory protection is set in the embodiment shown in FIG. 6, for example, program A.
FIG. 7 is an explanatory diagram at the time of reading data by the memory switching device 2 according to a read control signal.
Since the memory protection request by the program A is set to 1, the address bus of the processor 1 and the address buses of the duplicated memories 3 and 4 are connected, and the data bus of the processor 1 and the data bus of the memory 3 are connected. And the read control signal RD is applied to both memories 3 and 4. As a result, data is read from the same address in both memories 3 and 4, respectively.

【0026】そして、両方のメモリ3,4から読出した
データを、データ比較器6により比較し、比較一致の場
合は、プロセッサ1に於いてメモリ3から読出したデー
タを処理し、比較不一致の場合は、その検出信号を異常
発生通知装置10に加え、異常発生通知装置10は、プ
ロセッサ1に対して割込(NMI)を行い、且つ異常情
報蓄積装置9に通知し、異常情報蓄積装置9は、その時
のアドレスとデータとリード/ライトとを含む情報を蓄
積する。
Then, the data read from both memories 3 and 4 are compared by the data comparator 6, and in the case of comparison match, the data read from the memory 3 is processed in the processor 1 and in the case of comparison mismatch. Applies the detection signal to the abnormality occurrence notifying apparatus 10, and the abnormality occurrence notifying apparatus 10 interrupts (NMI) the processor 1 and notifies the abnormality information accumulating apparatus 9, and the abnormality information accumulating apparatus 9 , And stores information including the address, data, and read / write at that time.

【0027】図10は図6に示す実施の形態に於けるメ
モリ保護設定を行ったプログラム、例えば、プログラム
Aによるデータ書込時の説明図であり、ライト制御信号
WTにより、メモリ切替装置2は、メモリ保護設定レジ
スタ2−1にプログラムAによるメモリ保護の条件が設
定されているから、プロセッサ1のアドレスバスと、二
重化したメモリ3,4のアドレスバスとを接続し、プロ
セッサ1のデータバスと、二重化したメモリ3,4のデ
ータバスとを接続して、両方のメモリ3,4にライト制
御信号WTを加える。それにより、両方のメモリ3,4
の同一アドレスに同一のデータを書込むことになる。又
その時のアドレスを、アドレス記憶装置8に記憶する。
FIG. 10 is an explanatory diagram at the time of writing data by the program for which the memory protection is set in the embodiment shown in FIG. 6, for example, the program A, and the memory switching device 2 is controlled by the write control signal WT. Since the memory protection condition by the program A is set in the memory protection setting register 2-1, the address bus of the processor 1 and the address buses of the duplicated memories 3 and 4 are connected to each other, and the data bus of the processor 1 is connected. , The data buses of the duplicated memories 3 and 4 are connected, and the write control signal WT is applied to both memories 3 and 4. As a result, both memories 3, 4
The same data will be written to the same address. The address at that time is stored in the address storage device 8.

【0028】図11は図6に示す実施の形態に於けるメ
モリ保護設定を行わないプログラム、例えば、プログラ
ムBによるデータの読出時の説明図であり、リード制御
信号RDにより、メモリ切替装置2は、メモリ保護設定
レジスタ2−1にメモリ保護の条件が設定されていない
ので、プロセッサ1のアドレスバスとメモリ3,4のア
ドレスバスとを接続し、プロセッサ1のデータバスとメ
モリ3のデータバスとを接続し、各部にリード制御信号
RDを加える。
FIG. 11 is an explanatory diagram at the time of reading the data by the program without the memory protection setting, for example, the program B in the embodiment shown in FIG. 6, in which the memory switching device 2 is controlled by the read control signal RD. Since the memory protection condition is not set in the memory protection setting register 2-1, the address bus of the processor 1 and the address buses of the memories 3 and 4 are connected to connect the data bus of the processor 1 and the data bus of the memory 3. Are connected, and the read control signal RD is added to each part.

【0029】それにより、アドレス記憶装置8に記憶さ
れたアドレス(メモリ3にデータを書込んだ時のアドレ
ス)と、アドレスバス上のアドレスとをアドレス比較器
7により比較し、不一致の場合は、今回のメモリ4に対
するアドレスは、メモリ3に書込んだデータのアドレス
とは異なるので、メモリ4から読出したデータをプロセ
ッサ1に転送する。又アドレス比較器7に於いて比較一
致の場合、メモリ3,4に対して同一のアドレスでアク
セスする場合であるから、メモリ3,4から読出したデ
ータを、データ比較器6により比較する。比較一致の場
合は、二重化したメモリ3,4に書込んだデータは正常
と判定し、メモリ4から読出したデータをプロセッサ1
に転送する。又比較不一致の場合は、メモリ保護を設定
したデータが変更されていることを示すので、異常発生
通知装置10は、プロセッサ1に対して割込(NMI)
を行い、異常情報蓄積装置9に、その時のアドレスとデ
ータとリード/ライトを含む情報を蓄積する。
As a result, the address stored in the address storage device 8 (the address when the data is written in the memory 3) and the address on the address bus are compared by the address comparator 7, and if they do not match, Since the address for the memory 4 this time is different from the address of the data written in the memory 3, the data read from the memory 4 is transferred to the processor 1. In the case of comparison match in the address comparator 7, since the memories 3 and 4 are accessed with the same address, the data comparator 6 compares the data read from the memories 3 and 4. In the case of comparison match, it is determined that the data written in the duplicated memories 3 and 4 is normal, and the data read from the memory 4 is processed by the processor 1.
Transfer to. If the comparison does not match, it indicates that the data for which the memory protection is set has been changed, and therefore the abnormality occurrence notification device 10 interrupts (NMI) the processor 1.
Then, the information including the address, data, and read / write at that time is stored in the abnormality information storage device 9.

【0030】図12は図6に示す実施の形態に於けるメ
モリ保護設定を行わないプログラム、例えば、プログラ
ムBによるデータの書込時の説明図であり、ライト制御
信号WTにより、メモリ切替装置2は、メモリ保護設定
メモリ2−1にメモリ保護の条件が設定されていないの
で、プロセッサ1のアドレスバスとデータバスとを、メ
モリ4のアドレスバスとデータバスとに接続し、ライト
制御信号WTを各部に加える。
FIG. 12 is an explanatory diagram at the time of writing data by a program, for example, program B, in which the memory protection is not set in the embodiment shown in FIG. 6, and the memory switching device 2 is operated by the write control signal WT. Since the memory protection setting memory 2-1 has no memory protection condition set, the address bus and the data bus of the processor 1 are connected to the address bus and the data bus of the memory 4, and the write control signal WT is set. Add to each part.

【0031】アドレス比較器7は、アドレス記憶装置8
に記憶されているアドレスと、今回のアドレスとを比較
し、比較不一致の場合は、一方のメモリ3に書込んだデ
ータのアドレスとは異なるので、他方のメモリ4にデー
タを書込む。又アドレス比較器7によるアドレス比較の
結果、比較一致となると、一方のメモリ3に書込んだデ
ータのアドレスと同一であるから、他方のメモリ4に書
込んだデータを書換えることになる。そこで、比較一致
の検出信号を異常発生通報装置10に加え、プロセッサ
1に対して割込(NMI)を行うことにより、この場合
の書込みを中止する。それによって、他方のメモリ4に
書込んだ重要なデータを書換えることを阻止することが
できる。又その時のアドレスとデータとリード/ライト
とを含む情報を異常情報蓄積装置9に蓄積する。
The address comparator 7 includes an address storage device 8
The address stored in 1 is compared with the address of this time. If there is no comparison, the address of the data written in one memory 3 is different, so the data is written in the other memory 4. When the address comparison by the address comparator 7 indicates a comparison match, the address of the data written in the one memory 3 is the same, so the data written in the other memory 4 is rewritten. Therefore, the comparison coincidence detection signal is applied to the abnormality occurrence notification device 10 and an interrupt (NMI) is performed to the processor 1 to stop the writing in this case. As a result, it is possible to prevent the important data written in the other memory 4 from being rewritten. Further, information including the address, data, and read / write at that time is stored in the abnormality information storage device 9.

【0032】プロセッサ1は、異常情報蓄積装置9に蓄
積された異常発生時の情報を基に、異常発生要因を探索
することが可能となる。従って、その要因を除去して安
定な情報処理を行うことができる。又アドレス記憶装置
8や異常情報蓄積装置9は、レジスタ構成とすることも
可能であり、又異常発生通知装置10は、プロセッサに
対する割込信号生成手段とすることができる。又二重化
したメモリ3,4は、半導体集積メモリのみでなく、既
に知られている各種の構成のメモリを適用することがで
きる。
The processor 1 can search for the cause of the abnormality on the basis of the information on the occurrence of the abnormality stored in the abnormality information storage device 9. Therefore, the factor can be removed and stable information processing can be performed. Further, the address storage device 8 and the abnormality information storage device 9 may have a register configuration, and the abnormality occurrence notification device 10 may be an interrupt signal generation means for the processor. Further, as the duplicated memories 3 and 4, not only the semiconductor integrated memory, but also known memories of various configurations can be applied.

【0033】[0033]

【発明の効果】以上説明したように、本発明は、プロセ
ッサ1によりアクセスされる二重化した一方と他方との
メモリ3,4をメモリ切替装置2によって切替えるもの
で、重要なデータは、メモリ保護の条件を設定すること
により、一方と他方とのメモリ3,4の同一アドレスに
書込み、又同一アドレスから読出したデータを比較する
ことにより、データの変更の有無を判定することが容易
となり、又メモリ保護の条件を設定していない場合は、
他方のメモリ4に対してのみデータの書込み及び読出し
を行うことにより、重要なデータを保護することができ
る。従って、プログラム毎に利用するデータについて、
他のプログラムからの変更を禁止するデータを確実に保
護することができる。
As described above, according to the present invention, the one and the other memories 3 and 4 which are duplicated to be accessed by the processor 1 are switched by the memory switching device 2, and important data are protected by the memory. By setting the conditions, it becomes easy to determine whether or not the data has been changed by writing data to the same address in the memories 3 and 4 on one side and comparing data read from the same address. If you have not set the protection conditions,
By writing and reading data only to the other memory 4, important data can be protected. Therefore, regarding the data used for each program,
Data that is prohibited from being changed by other programs can be securely protected.

【0034】又メモリ保護の条件を設定していないプロ
グラムからのデータ書込時に、その時のアドレスと、メ
モリ保護の条件を設定したプログラムによるデータの書
込アドレスとを比較して、比較一致の時に、重要なデー
タが書換えられることになるから、それを回避するよう
にプロセッサに対して割込みを行うことができる。又異
常発生時のアドレスやデータ等を蓄積することにより、
異常発生の要因の探索が容易となる利点がある。
When data is written from a program in which the memory protection condition is not set, the address at that time is compared with the data write address by the program in which the memory protection condition is set, and when a comparison is made, Since important data is rewritten, it is possible to interrupt the processor to avoid it. In addition, by accumulating addresses and data when an error occurs,
There is an advantage that it is easy to search the cause of the abnormality.

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

【図1】本発明の第1の実施の形態の説明図である。FIG. 1 is an explanatory diagram of a first embodiment of the present invention.

【図2】本発明の第2の実施の形態の説明図である。FIG. 2 is an explanatory diagram of a second embodiment of the present invention.

【図3】本発明の第3の実施の形態の説明図である。FIG. 3 is an explanatory diagram of a third embodiment of the present invention.

【図4】本発明の第4の実施の形態の説明図である。FIG. 4 is an explanatory diagram of a fourth embodiment of the present invention.

【図5】本発明の第5の実施の形態の説明図である。FIG. 5 is an explanatory diagram of a fifth embodiment of the present invention.

【図6】本発明の第6の実施の形態の説明図である。FIG. 6 is an explanatory diagram of a sixth embodiment of the present invention.

【図7】本発明の第7の実施の形態の説明図である。FIG. 7 is an explanatory diagram of a seventh embodiment of the present invention.

【図8】メモリ切替装置の切替接続状態の説明図であ
る。
FIG. 8 is an explanatory diagram of a switching connection state of the memory switching device.

【図9】メモリ保護設定を行ったプログラムによるデー
タ読出時の説明図である。
FIG. 9 is an explanatory diagram at the time of reading data by a program for which memory protection is set.

【図10】メモリ保護設定を行ったプログラムによるデ
ータ書込時の説明図である。
FIG. 10 is an explanatory diagram at the time of writing data by a program for which memory protection is set.

【図11】メモリ保護設定を行わないプログラムによる
データの読出時の説明図である。
FIG. 11 is an explanatory diagram at the time of reading data by a program that does not perform memory protection setting.

【図12】メモリ保護設定を行わないプログラムによる
データの書込時の説明図である。
FIG. 12 is an explanatory diagram at the time of writing data by a program that does not perform memory protection setting.

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

1 プロセッサ(CPU) 2 メモリ切替装置 3,4 メモリ 5 プログラム格納領域 1 processor (CPU) 2 Memory switching device 3,4 memory 5 Program storage area

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 プロセッサによりアクセスされる二重化
したメモリと、前記プロセッサと前記二重化したメモリ
との間のアドレスバスとデータバスとの切替接続を行う
メモリ切替装置とを有し、 前記メモリ切替装置は、メモリ保護の条件を与えた時の
データの書込時は、前記二重化した一方と他方とのメモ
リの同一アドレスに同一のデータを書込むように切替接
続し、且つデータの読出時は、一方のメモリから読出し
たデータを前記プロセッサに転送するように切替接続
し、メモリ保護の条件を与えない時のデータの書込時
は、前記二重化した他方のメモリに対してデータを書込
むように切替接続し、且つデータの読出時は、前記他方
のメモリから読出したデータを前記プロセッサに転送す
るように切替接続する構成を有することを特徴とする二
重化メモリ装置。
1. A dual memory that is accessed by a processor, and a memory switching device that performs switching connection between an address bus and a data bus between the processor and the dual memory, the memory switching device comprising: When data is written when a memory protection condition is given, switching connection is made so that the same data is written to the same address of the duplicated one and the other memories, and one is read when reading the data. Switched to transfer the data read from the above memory to the processor, and when writing the data when the memory protection condition is not given, switch to write the data to the other memory which is duplicated. When the data is read out and connected, the data read from the other memory is switched and connected so as to be transferred to the processor. Dual memory device.
【請求項2】 前記二重化した一方と他方とのメモリの
同一アドレスから読出したデータを比較するデータ比較
器を有することを特徴とする請求項1記載の二重化メモ
リ装置。
2. The dual memory device according to claim 1, further comprising a data comparator for comparing data read from the same address of the one memory and the other memory of the dual memory.
【請求項3】 前記一方のメモリに対するデータ書込時
のアドレスを記憶するアドレス記憶装置と、該アドレス
記憶装置に記憶されたアドレスと前記他方のメモリに対
するデータ書込時のアドレスとを比較するアドレス比較
器とを有することを特徴とする請求項1又は2記載の二
重化メモリ装置。
3. An address storage device that stores an address when writing data to the one memory, and an address that compares the address stored in the address storage device with an address when writing data to the other memory. The dual memory device according to claim 1 or 2, further comprising a comparator.
【請求項4】 前記一方のメモリに対するデータ書込時
のアドレスを記憶するアドレス記憶装置と、該アドレス
記憶装置に記憶されたアドレスと前記他方のメモリに対
するデータ書込時のアドレスとを比較するアドレス比較
器と、該アドレス比較器による比較一致により、前記一
方と他方とのメモリの同一アドレスから読出したデータ
を比較するデータ比較器とを有することを特徴とする請
求項1記載の二重化メモリ装置。
4. An address storage device that stores an address when writing data to the one memory, and an address that compares the address stored in the address storage device with an address when writing data to the other memory. 2. The dual memory device according to claim 1, further comprising a comparator and a data comparator for comparing data read from the same address of the one memory and the other memory by comparing and matching by the address comparator.
【請求項5】 前記アドレス比較器による比較一致時
と、前記データ比較器による比較不一致時とを異常発生
とし、その時点のアドレスとデータとを含む情報を蓄積
する異常情報蓄積装置を有することを特徴とする請求項
4記載の二重化メモリ装置。
5. An abnormality information accumulating device for accumulating information including an address and data at that time is defined as an abnormal occurrence when a comparison match by the address comparator and a comparison mismatch by the data comparator. The dual memory device of claim 4, wherein the dual memory device is a memory device.
【請求項6】 前記メモリ切替装置は、プロセッサと二
重化した一方と他方とのメモリに対して切替接続を制御
する為のメモリ保護の条件を、プログラムによる要求に
従って設定するメモリ保護設定レジスタを有することを
特徴とする請求項1記載の二重化メモリ装置。
6. The memory switching device has a memory protection setting register that sets a memory protection condition for controlling switching connection between one and the other of the memories duplicated with a processor according to a request from a program. The dual memory device according to claim 1, wherein the dual memory device comprises:
JP2002067907A 2002-03-13 2002-03-13 Doubling memory device Pending JP2003271463A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002067907A JP2003271463A (en) 2002-03-13 2002-03-13 Doubling memory device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002067907A JP2003271463A (en) 2002-03-13 2002-03-13 Doubling memory device

Publications (1)

Publication Number Publication Date
JP2003271463A true JP2003271463A (en) 2003-09-26

Family

ID=29199140

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002067907A Pending JP2003271463A (en) 2002-03-13 2002-03-13 Doubling memory device

Country Status (1)

Country Link
JP (1) JP2003271463A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011014011A (en) * 2009-07-03 2011-01-20 Hitachi Ltd Highly reliable controller of multiple system
JP2012027570A (en) * 2010-07-21 2012-02-09 Keet Seisakusho:Kk Data storage system for field equipment
US11884254B2 (en) 2018-04-27 2024-01-30 Robert Bosch Gmbh Vehicle brake system and method for increasing brake pressure in a first wheel brake cylinder and limiting brake pressure in a second wheel brake cylinder of a vehicle brake system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011014011A (en) * 2009-07-03 2011-01-20 Hitachi Ltd Highly reliable controller of multiple system
JP2012027570A (en) * 2010-07-21 2012-02-09 Keet Seisakusho:Kk Data storage system for field equipment
US11884254B2 (en) 2018-04-27 2024-01-30 Robert Bosch Gmbh Vehicle brake system and method for increasing brake pressure in a first wheel brake cylinder and limiting brake pressure in a second wheel brake cylinder of a vehicle brake system

Similar Documents

Publication Publication Date Title
JP3447404B2 (en) Multiprocessor system
JPH08137763A (en) Flash memory controller
TW201222254A (en) Method for protecting data in damaged memory cells by dynamically switching memory mode
JP2003271463A (en) Doubling memory device
JPH11338833A (en) Multiprocessor type controller and scalable controller system
JPH1078919A (en) Device for preventing illegal access
JPH05100847A (en) Memory protection system for information processor
JP3239935B2 (en) Tightly-coupled multiprocessor system control method, tightly-coupled multiprocessor system, and recording medium therefor
JPS6057091B2 (en) Common memory storage protection method
JP3862777B2 (en) Duplex data matching method and duplex control device
JP2002032239A (en) Multiplexing system
JP2006260393A (en) Cpu system
JPH09293020A (en) Interface circuit
JPS6250863B2 (en)
KR100238175B1 (en) Bus control logic apparatus
JPS59112494A (en) Memory testing system
JP3340284B2 (en) Redundant system
JPH0635747A (en) Debug supporting device
JPH03252831A (en) Method for collecting ras information by dma transfer
JPH08220198A (en) Battery backup memory unit and backup function testing method
JPH05265790A (en) Microprocessor device
JP2002082820A (en) Computer system for processor runaway pervention
JP3033640B2 (en) CPU operation monitoring circuit
JPH0581059A (en) Multiprocessor system
JPH0336650A (en) Memory protecting system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041215

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070327

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070717