JPH0362145A - Memory controller - Google Patents
Memory controllerInfo
- Publication number
- JPH0362145A JPH0362145A JP1196821A JP19682189A JPH0362145A JP H0362145 A JPH0362145 A JP H0362145A JP 1196821 A JP1196821 A JP 1196821A JP 19682189 A JP19682189 A JP 19682189A JP H0362145 A JPH0362145 A JP H0362145A
- Authority
- JP
- Japan
- Prior art keywords
- memory
- side memory
- address
- master side
- master
- 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
Links
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
- For Increasing The Reliability Of Semiconductor Memories (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
[発明の目的]
(産業上の利用分野)
本発明は、特にフォールト・トレランス方式の計算機シ
ステムに使用されるメモリ制御装置に関する。DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Industrial Application Field) The present invention particularly relates to a memory control device used in a fault-tolerant computer system.
(従来の技術)
従来、フォールト・トレランス方式の計算機システムで
は、システムの信頼性を高めるために、システムの一部
が故障しても、外部からは正常に機能しているような状
態を保持するために各種の方法が採用されている。(Prior art) Conventionally, in fault-tolerant computer systems, in order to increase the reliability of the system, even if a part of the system fails, it maintains a state that appears to be functioning normally from the outside. Various methods have been adopted for this purpose.
このようなシステムにおいて、メモリモジュールに故障
が発生した場合に、システムのフォールト・トレランス
機能を得るために、メモリモジュールを冗長構成する方
法が考えられる。しかしながら、メモリモジュールを冗
長構成した場合に、複数のメモリモジュールの同一アド
レスをアクセスする必要があるが、メモリバスが1本の
場合には同一アドレスのアクセスは不可能である。In such a system, a method of configuring the memory modules redundantly may be considered in order to obtain a fault tolerance function of the system when a failure occurs in the memory module. However, when memory modules are configured redundantly, it is necessary to access the same address of a plurality of memory modules, but when there is only one memory bus, accessing the same address is impossible.
(発明が解決しようとする課題)
フォールト・トレランス方式の計算機システムにおいて
、メモリバスが1本の場合には、単にメモリモジュール
を冗長構成すると、各メモリの同一アドレスをアクセス
することが不可能になる。(Problem to be solved by the invention) In a fault-tolerant computer system, if there is only one memory bus, simply configuring memory modules redundantly makes it impossible to access the same address in each memory. .
このため、メモリモジュールに対するフォールト・トレ
ランス8!&能を11メることは困難であった。This provides a fault tolerance of 8! for memory modules. & It was difficult to play Noh to the 11th level.
本発明の目的は、メモリバスが1本の場合でも、メモリ
モジュールの冗長構成を可能にして、メモリモジュール
に対するフォールト・トレランス機能を大曳することが
できるメモリ制御装置を提供することにある。SUMMARY OF THE INVENTION An object of the present invention is to provide a memory control device that enables a redundant configuration of memory modules even when there is only one memory bus, and can provide a large fault tolerance function for the memory modules.
[発明の構成]
(課題を解決するための手段と作111)本発明は、フ
ォールト・トレランスh“式の3.1算機システムに使
用されるメモリ制御装置において、マスタ側メモリ及び
スレーブ側メモリをfloするデュアル構成のメモリ手
段に対して、1本のメモリバスの場合に、データのコピ
ー機能を可能にした装置である。本装置は、マスタ側メ
モリに格納された同一データをスレーブ側メモリヘコピ
ーするコピーモード時に、マスタ側メモリのアドレスと
同一アドレスのスレーブ側メモリへ同一データを書き込
む第1のコピー手段及びコピーモード時の期間中であっ
て、マスタ側メモリに新たなデータを書き込むライトモ
ード時に、マスタ側メモリに書き込みした新たなデータ
をその同一アドレスのスレーブ側メモリにコピーする第
2のコピー手段とを備えている。[Structure of the Invention] (Means and Works for Solving the Problems 111) The present invention provides a memory control device used in a 3.1 computer system with a fault tolerance This device enables a data copy function using a single memory bus in contrast to a dual-configuration memory means that floats data.This device transfers the same data stored in the master side memory to the slave side memory. A first copy means that writes the same data to the slave memory at the same address as the address of the master memory during the copy mode, and a write that writes new data to the master memory during the copy mode. and second copying means for copying new data written in the master side memory to the slave side memory at the same address in the mode.
(大箱fF1) 以下図面を参照して本発明の詳細な説明する。(Large box fF1) The present invention will be described in detail below with reference to the drawings.
第1図は同実施例に係わるメモリシステムの構成を示す
ブロック図である。昂1図に示すように、一方をマスタ
側メモリ、他方をスレーブ側メモリとして使用する複数
の第1及び第2のメモリモジュール10a 、 10b
が設けられている。各メモリモジュールIOa 、 l
Obには、マスタ側メモリ又はスレーブ側メモリである
かを指示するための情報を格納するためのエリアlla
、 llbが設けられている。各メモリモジュールl
Oa 、 lObには共通のメモリバス12を通じて、
データ及びアドレスの転送がなされる。FIG. 1 is a block diagram showing the configuration of a memory system according to the same embodiment. As shown in FIG. 1, a plurality of first and second memory modules 10a and 10b, one of which is used as a master side memory and the other used as a slave side memory.
is provided. Each memory module IOa, l
Ob is an area lla for storing information indicating whether the memory is a master side memory or a slave side memory.
, llb are provided. Each memory module
Oa and lOb are connected to each other through a common memory bus 12.
Transfer of data and addresses takes place.
メモリ制御部13は、各メモリモジュールl0alOb
に対してデータのり−ド/ライトを行なうためのデータ
レジスタ14及びアドレスレジスタ15を備えている。The memory control unit 13 controls each memory module l0alOb.
A data register 14 and an address register 15 are provided for reading/writing data to/from the memory.
さらに、メモリ制御部13は各メモリモジュールIOa
、 lObの同一アドレスに同一データを書き込む
コピー動作に必要なフラグをセットするためのフリップ
フロップ16.17を備えている。Furthermore, the memory control unit 13 controls each memory module IOa.
, lOb are provided with flip-flops 16 and 17 for setting flags necessary for a copy operation of writing the same data to the same address.
フリップフロップ(F/F)1(iは、アクセスχ1安
のメモリモジュール(10a又は10b)がマスタ側メ
モリ(“0”)又はスレーブ側メモリ(“1″)である
かを指示するフラグをセットするためのfi”J路であ
る。フリップフロップ17は、各メモリモジュールIO
a 、 IObに対して、デュアルライトモードかセル
又は許可状態であるかを指示するフラグをセットするた
めの回路である。Flip-flop (F/F) 1 (i sets a flag indicating whether the memory module (10a or 10b) with access χ1 is master side memory (“0”) or slave side memory (“1”) The flip-flop 17 is connected to each memory module IO.
This is a circuit for setting a flag indicating whether the IOb is in dual write mode, cell or permission state.
CPU20は所定のプログラムに基づいて動作する中央
処理装置であり、システムバス18を通じて各メモリモ
ジュール!Oa 、 lObに対するデータのり一ド/
ライトを実行させる。DMA21はダイレクトメモリア
クセス装置であり、システムバス18を通じて各メモリ
モジュール10a 、 10bに対するデータのリード
/ライトを実行させる。The CPU 20 is a central processing unit that operates based on a predetermined program, and communicates with each memory module through the system bus 18! Oa, data ratio for lOb/
Run the light. The DMA 21 is a direct memory access device, and reads/writes data to/from each memory module 10a, 10b via the system bus 18.
次に、同実施例の動作を説明する。Next, the operation of this embodiment will be explained.
先ず、第2図のステップS1に示すように、CPU20
からコピーモードを実行するためのコピーコマンドがメ
モリ制御部13へ出力される。メモリ制御部13では、
マスタ側メモリであるメモリモジュールlOaをアクセ
スするために、F/FIBにはフラグ′O″がセットさ
れる(ステップS2)。First, as shown in step S1 of FIG.
A copy command for executing the copy mode is output to the memory control unit 13 from. In the memory control unit 13,
In order to access the memory module lOa, which is the master side memory, a flag 'O'' is set in the F/FIB (step S2).
メモリ制御部13は、マスタ側のメモリモジュールtO
aの所定のアドレスをアクセスし、そのアドレスに対応
するデータを読出す。メモリ制御部13は読出したデー
タをデータレジスタ14に格納し、そのときのアドレス
をアドレスレジスタ15に格納する(ステップS3)。The memory control unit 13 controls the master side memory module tO.
A predetermined address of a is accessed and data corresponding to that address is read. The memory control unit 13 stores the read data in the data register 14, and stores the address at that time in the address register 15 (step S3).
次に、メモリ制御部13は、読出したデータをスレーブ
側メモリであるメモリモジュールlObに書き込むコピ
ー動作を実行する。メモリ制御部13はF / F 1
Bにフラグ11をセットし、アドレスレジスタ15に格
納されたアドレスにそのフラグ1″を付加したアドレス
データをメモリバス12に出力する(ステップS4)。Next, the memory control unit 13 executes a copy operation to write the read data to the memory module lOb, which is the slave side memory. The memory control unit 13 is F/F1
A flag 11 is set in B, and address data obtained by adding the flag 1'' to the address stored in the address register 15 is output to the memory bus 12 (step S4).
これにより、スレーブ側のメモリモジュールIObがア
クセスされ、かつマスタ側のメモリモジュールloaと
同一アドレスがアクセスされることになる。メモリ制御
部13は、アクセスしたスレーブ側のメモリモジュール
lobの同一アドレスに、データレジスタ14に格納さ
れたデータを転送して格納する(ステップS5)。As a result, the memory module IOb on the slave side is accessed, and the same address as the memory module loa on the master side is accessed. The memory control unit 13 transfers and stores the data stored in the data register 14 to the same address of the accessed slave-side memory module lob (step S5).
即ち、スレーブ側のメモリモジュール10bには、マス
タ側のメモリモジュール10aと同一アドレスに、向−
データがコピーされたことになる。That is, the memory module 10b on the slave side has the same address as the memory module 10a on the master side.
The data will be copied.
ここで、前記のようなコピーモード時に、マスタ側のメ
モリモジュールloaに対してデータを書き込むライト
モードの割り込みが、CPU2Gからなされたとする(
ステップS6.S7)。CPU20はシステムバス18
を通じて、ライトデータをメモリ制御部13に転送する
。メモリ制御部13は、転送されたライトデータをデー
タレジスタ14に格納する(ステップS8)。さらに、
メモリ制御部13は、マスタ側のメモリモジュールlQ
aをアクセスするために、F/FIBにフラグ0”をセ
ットする(ステップS9)。メモリ制御部13は、アド
レスレジスタ15に格納された所定のアドレスにフラグ
O”を付加したアドレスデータをメモリバス12に出力
し、マスタ側のメモリモジュールIOaの所定のアドレ
スをアクセスする。このアクセスしたマスタ側のメモリ
モジュールlOaの所定のアドレスに、データレジスタ
14に格納されたライトデータを転送して書き込むこと
になる(ステップ510)。Now, suppose that a write mode interrupt to write data to the master side memory module loa is made from the CPU 2G during the copy mode as described above (
Step S6. S7). CPU 20 is system bus 18
The write data is transferred to the memory control unit 13 through the memory control unit 13. The memory control unit 13 stores the transferred write data in the data register 14 (step S8). moreover,
The memory control unit 13 controls the master side memory module lQ.
In order to access a, the flag 0'' is set in the F/FIB (step S9). 12, and accesses a predetermined address of the memory module IOa on the master side. The write data stored in the data register 14 is transferred and written to the predetermined address of the accessed master-side memory module lOa (step 510).
一方、ライトモードがコピーモードの完了前(即ち、コ
ピーモード中)であるため、メモリ制御部13はマスタ
側のメモリモジュールIOaに書き込みした新たなデー
タ(ライトデータ)をスレーブ側のメモリモジュールl
Obにコピーする動作を実行する。即ち、メモリ制御部
13は、スレーブ側のメモリモジュールtabをアクセ
スするために、F / F 16にフラグ1”をセット
する(ステップ512)。メモリ制御部13は、アドレ
スレジスタ15に格納された所定のアドレスにフラグ1
”を付加したアドレスデータをメモリバス12に出力し
、マスタ側のメモリモジュールlOaの所定のアドレス
と同一アドレスをアクセスする。このアクセスしたスレ
ーブ側のメモリモジュールtabの所定のアドレスに、
データレジスタ14に格納された新たなデータを転送し
て書き込むことになる(ステップ513)。このとき、
メモリ制御部13は、各メモリモジュールlOa 、
10bに対してデュアルライトモードが許可状態である
かを指示するフラグ(例えば“1″)をフリップフロッ
プ17にセットする(ステップ514)。この場合、c
ptr2oからデュアルライトモードの禁止コマンドが
転送されると、メモリ制御部13は禁止状態であるかを
指示するフラグ(例えば“0′)をフリップフロップ1
7にセットする。割り込みのライトモードが終了すると
、再度コピー動作が開始されて、完了するまでステップ
82〜S5の処理が続行される。On the other hand, since the write mode is before the completion of the copy mode (that is, in the copy mode), the memory control unit 13 transfers the new data (write data) written to the memory module IOa on the master side to the memory module IOa on the slave side.
Execute the operation to copy to Ob. That is, the memory control unit 13 sets a flag 1” in the F/F 16 in order to access the memory module tab on the slave side (step 512). flag 1 for the address of
" is added to the address data is output to the memory bus 12, and the same address as the predetermined address of the memory module lOa on the master side is accessed.The predetermined address of the accessed memory module tab on the slave side is
The new data stored in the data register 14 is transferred and written (step 513). At this time,
The memory control unit 13 controls each memory module lOa,
A flag (for example, "1") indicating whether the dual write mode is permitted for the flip-flop 10b is set in the flip-flop 17 (step 514). In this case, c
When a dual write mode prohibition command is transferred from ptr2o, the memory control unit 13 sets a flag (for example, "0') indicating whether the dual write mode is in a prohibited state to the flip-flop 1.
Set to 7. When the interrupt write mode ends, the copy operation is started again, and the processing of steps 82 to S5 is continued until the copy operation is completed.
このようにして、マスタ側のメモリモジュール10aか
らスレーブ側のメモリモジュールlObに対して、同一
アドレスに同一データをコピーすることができる。した
がって、複数の同一機能をHするメモリモジュールの冗
長構成を実現することができる。これにより、マスタ側
のメモリモジュールIOaが故障した場合に、スレーブ
側のメモリモジュールtabをマスタ側のメモリとして
使用し、同一アドレスから同一データをアクセスするこ
とができる。言替えれば、メモリモジュールに対するフ
ォールト・トレランス機能を実現することができる。In this way, the same data can be copied from the master side memory module 10a to the slave side memory module lOb at the same address. Therefore, it is possible to realize a redundant configuration of a plurality of memory modules that perform the same function. Thereby, if the master side memory module IOa fails, the slave side memory module tab can be used as the master side memory, and the same data can be accessed from the same address. In other words, it is possible to implement a fault tolerance function for the memory module.
この場合、本発明では、マスタ側とスレーブ側とを識別
するためのフリップフロップ16を利用することにより
、1本のメモリバス12により、マスタ側とスレーブ側
の各メモリの同一アドレスをアクセスすることができる
。言替えれば、1本のメモリバス12を使用して、デュ
アル構成のメモリシステムを実現することができる。In this case, in the present invention, by using the flip-flop 16 for identifying the master side and the slave side, it is possible to access the same address of each memory on the master side and slave side using one memory bus 12. I can do it. In other words, a dual configuration memory system can be realized using one memory bus 12.
[発明の効果]
以上詳述したように本発明に−よれば、1本のメモリバ
スを使用して、デュアル構成で冗長構成のメモリシステ
ムを実現することがi+i能となる。したがって、本発
明をフォールト・トレランス方式の計算機システムに適
用すれば、メモリシステムに対するフォールト・トレラ
ンス機能を&f大に実現し、システム全体の信頼性を向
上することができるものである。[Effects of the Invention] As detailed above, according to the present invention, it is possible to realize a memory system with a dual configuration and a redundant configuration using one memory bus. Therefore, if the present invention is applied to a fault-tolerant computer system, the fault-tolerant function for the memory system can be greatly realized, and the reliability of the entire system can be improved.
第1図は本発明の実施例に係わるメモリシステムの構成
を示すブロック図、第2図は同実施例の動作を説明する
ためのフローチャートである。
10a 、 IOb・・・メモリモジュール、13・・
・メモリ制御部、14・・・データレジスタ、1B・・
・フリップフロップ、20・・・CPU。FIG. 1 is a block diagram showing the configuration of a memory system according to an embodiment of the present invention, and FIG. 2 is a flowchart for explaining the operation of the embodiment. 10a, IOb... memory module, 13...
・Memory control unit, 14...Data register, 1B...
・Flip-flop, 20...CPU.
Claims (2)
ーブ側メモリとして使用するデュアル構成のメモリ手段
と、 前記マスタ側メモリに格納された同一データを前記スレ
ーブ側メモリへコピーするコピーモード時に、前記マス
タ側メモリのアドレスと同一アドレスの前記スレーブ側
メモリへ前記同一データを書き込む第1のコピー手段と
、 前記コピーモード時の期間中であって、前記マスタ側メ
モリに新たなデータを書き込むライトモード時に、前記
マスタ側メモリに書き込みした前記新たなデータをその
同一アドレスの前記スレーブ側メモリにコピーする第2
のコピー手段とを具備したことを特徴とするメモリ制御
装置。(1) A dual configuration memory means in which one side is used as a master side memory and the other side is used as a slave side memory, and in a copy mode in which the same data stored in the master side memory is copied to the slave side memory, the above a first copying means for writing the same data to the slave side memory at the same address as the address of the master side memory, and during a write mode during the period of the copy mode and writing new data to the master side memory; , a second one for copying the new data written to the master side memory to the slave side memory at the same address.
What is claimed is: 1. A memory control device comprising a copying means.
ーブ側メモリとして使用するデュアル構成のメモリ手段
と、 前記マスタ側メモリ及び前記スレーブ側メモリの各同一
アドレスをアクセスする際に、その同一アドレスに該当
するメモリを識別するための識別手段と、 この識別手段の識別結果に基づいて、前記マスタ側メモ
リに格納された同一データを前記スレーブ側メモリへコ
ピーするコピーモード時に、前記マスタ側メモリのアド
レスと同一アドレスの前記スレーブ側メモリへ前記同一
データを書き込む第1のコピー手段と、 前記コピーモード時の期間中であって、前記マスタ側メ
モリに新たなデータを書き込むライトモード時に、前記
新たなデータを一時格納するレジスタ手段と、 このレジスタ手段に格納された前記新たなデータをマス
タ側メモリに書き込みし、この新たなデータを前記レジ
スタ手段から読出して、前記マスタ側メモリと同一アド
レスの前記スレーブ側メモリにコピーする第2のコピー
手段とを具備したことを特徴とするメモリ制御装置。(2) A dual configuration memory means in which one side is used as a master side memory and the other side is used as a slave side memory, and when accessing the same address of the master side memory and the slave side memory, the same address is used. an identification means for identifying the relevant memory; and an address of the master side memory in a copy mode for copying the same data stored in the master side memory to the slave side memory based on the identification result of the identification means; a first copying means for writing the same data to the slave side memory at the same address as the master side memory; and a first copying means for writing the same data to the slave side memory at the same address as the first copying means; register means for temporarily storing the data; and writing the new data stored in the register means into a master side memory, reading this new data from the register means, and writing the new data stored in the register means to the slave side at the same address as the master side memory. A memory control device comprising: second copying means for copying to memory.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1196821A JPH0362145A (en) | 1989-07-31 | 1989-07-31 | Memory controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1196821A JPH0362145A (en) | 1989-07-31 | 1989-07-31 | Memory controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0362145A true JPH0362145A (en) | 1991-03-18 |
Family
ID=16364224
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1196821A Pending JPH0362145A (en) | 1989-07-31 | 1989-07-31 | Memory controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0362145A (en) |
-
1989
- 1989-07-31 JP JP1196821A patent/JPH0362145A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110765032A (en) | Method for reading and writing I2C memory based on system management bus interface | |
| US7536694B2 (en) | Exception handling in a multiprocessor system | |
| TWI245222B (en) | Accessing configuration registers by automatically changing an index | |
| JPS588018B2 (en) | multiprocessor system | |
| CA1222326A (en) | Fault protection flip-flop | |
| JPS6319058A (en) | Memory device | |
| JPH0362145A (en) | Memory controller | |
| JPS63231652A (en) | Memory copy system for control system | |
| JP2600376B2 (en) | Memory controller | |
| TWI715294B (en) | Method for performing reading and writing operation to i2c memory based on system management bus interface | |
| JP2552287B2 (en) | System bus method | |
| JP3130798B2 (en) | Bus transfer device | |
| JP3012402B2 (en) | Information processing system | |
| JPS62276663A (en) | Program transfer method | |
| JPH01261759A (en) | Computer system | |
| JPH0414147A (en) | central processing unit | |
| JPH0516635B2 (en) | ||
| JPH04117697A (en) | Multiport memory circuit | |
| JPH0457287A (en) | Multiport memory | |
| JPH044455A (en) | Memory access arbitration circuit | |
| JPS5921062B2 (en) | Memory contention control method | |
| JPH05324541A (en) | Bus interface device | |
| JPH06124242A (en) | Redundant shared memory equivalence guarantee method | |
| JPS63156262A (en) | Memory protection system | |
| JPH04330549A (en) | Controller |