JPH05108493A - Memory control system - Google Patents

Memory control system

Info

Publication number
JPH05108493A
JPH05108493A JP3268006A JP26800691A JPH05108493A JP H05108493 A JPH05108493 A JP H05108493A JP 3268006 A JP3268006 A JP 3268006A JP 26800691 A JP26800691 A JP 26800691A JP H05108493 A JPH05108493 A JP H05108493A
Authority
JP
Japan
Prior art keywords
memory
area
error
cpu
register
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
JP3268006A
Other languages
Japanese (ja)
Inventor
Hirohiko Nakafuji
浩彦 仲藤
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.)
NEC Software Shikoku Ltd
Original Assignee
NEC Software Shikoku 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 NEC Software Shikoku Ltd filed Critical NEC Software Shikoku Ltd
Priority to JP3268006A priority Critical patent/JPH05108493A/en
Publication of JPH05108493A publication Critical patent/JPH05108493A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent system down by providing the configuration in which duplexing is attainable by arbitrarily specifying specific memory area so as to duplex important memory area. CONSTITUTION:The hardware of a memory system is constituted with the same amount of memories 21 and 22. Each memory area is further divided into (n) numbers of area. The each area divided into by n number is assigned to each bit in a register 10 consisting of n bits, and its correspondence is stared in OS. OS can specify each area as duplexing area. When a CPU 1 executes memory accessing, a selector means 11 decides whether an accessing object is duplexing area or not by referring to the register 10. If it is found to be duplexing area, a memory control device 30 permits data output from a memory 21. At this time, when the error signal coming from an error detecting device 41 is detected, the memory control device 30 puts the data from the memory 22 on a memory bus 5. Then, an acknowledge signal generating device 70 outputs an anknowledge signal 8 at data confirmation timing.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はメモリ制御方式に関し、
特に信頼性を重視するシステムにおけるメモリ制御方式
に関する。
BACKGROUND OF THE INVENTION The present invention relates to a memory control system,
In particular, the present invention relates to a memory control method in a system that places importance on reliability.

【0002】[0002]

【従来の技術】従来のメモリ制御方式を、図2によって
説明する。図2において、1は中央処理装置(以下CP
Uと記す)であり、ソフトウェアはCPU1上で動作す
る。2はメモリであり、CPU1が使用する命令および
データが格納される。3はメモリ制御装置であり、メモ
リ2に制御信号(RAS/CAS等)を与える。4はエ
ラー検出装置であり、メモリ2のデータ読み出し時にそ
のデータの内容をチェックし、エラーを検出するとエラ
ー信号6をCPU1に送出する。5はメモリ2とCPU
1とを接続するメモリバス、7はアクノレッジ信号作成
装置であり、データの獲得タイミングをCPU1に知ら
せるアクノレッジ信号8を出力する。
2. Description of the Related Art A conventional memory control system will be described with reference to FIG. In FIG. 2, 1 is a central processing unit (hereinafter referred to as CP
U), and the software runs on the CPU 1. A memory 2 stores instructions and data used by the CPU 1. Reference numeral 3 denotes a memory control device, which gives a control signal (RAS / CAS, etc.) to the memory 2. An error detection device 4 checks the content of the data when reading the data from the memory 2 and sends an error signal 6 to the CPU 1 when an error is detected. 5 is a memory 2 and a CPU
A memory bus for connecting 1 and 7 is an acknowledge signal generating device, which outputs an acknowledge signal 8 for notifying the CPU 1 of the data acquisition timing.

【0003】図2におけるメモリアクセス動作は次のよ
うに行われる。CPU1がメモリ2をリードする場合、
メモリ制御装置3にメモリアクセス要求を出し、メモリ
制御装置3が対応する物理アドレスに対して制御信号を
出力する。制御信号を受けたメモリ2は、メモリバス5
にデータを出力する。その際にエラー検出装置4がメモ
リ2から出力されたデータをチェックし、データ確定範
囲内にエラーが検出された場合は、エラー信号6をCP
U1に対して出力し、CPU1の動作を停止させる。エ
ラーが検出されなかった場合は、エラー信号6は出力さ
れずCPU1は処理を継続する。なお、エラー検出の有
無にかかわらず、アクノレッジ信号作成装置7はCPU
1にアクノレッジ信号8を出力し、CPU1はそのタイ
ミングでデータを獲得し、メモリアクセスサイクルを終
了する。
The memory access operation in FIG. 2 is performed as follows. When the CPU 1 reads the memory 2,
A memory access request is issued to the memory control device 3, and the memory control device 3 outputs a control signal to the corresponding physical address. The memory 2 receiving the control signal is connected to the memory bus 5
Output the data to. At that time, the error detection device 4 checks the data output from the memory 2, and if an error is detected within the data fixed range, the error signal 6 is set to CP.
Output to U1 to stop the operation of CPU1. When no error is detected, the error signal 6 is not output and the CPU 1 continues the process. It should be noted that regardless of whether or not an error is detected, the acknowledge signal generation device 7 is a CPU.
An acknowledge signal 8 is output to 1 and the CPU 1 acquires data at that timing and ends the memory access cycle.

【0004】[0004]

【発明が解決しようとする課題】上述した従来のメモリ
制御方式では、メモリに障害が発生した場合、無条件に
CPUの動作を停止させるため、いかなる場合において
もシステムダウンとなり再立ち上げが必要となる欠点が
ある。
In the above-mentioned conventional memory control method, when a memory failure occurs, the operation of the CPU is unconditionally stopped. Therefore, in any case, the system is down and it is necessary to restart the system. There is a drawback.

【0005】本発明の目的は、メモリの重要な部分に対
しては2重化することができ、システムダウンの発生を
防止できるメモリ制御方式を提供することにある。
It is an object of the present invention to provide a memory control system which can duplicate an important part of a memory and prevent the occurrence of a system down.

【0006】[0006]

【課題を解決するための手段】本発明のメモリ制御方式
は、それぞれがn個の領域に分割されており対応する各
領域同士を2重化して使用できる2個のメモリと、前記
メモリのおのおのに接続されているエラー検出装置と、
各ビットの値により前記各メモリのn分割された各領域
が2重化領域であるか否かを示すnビット構成のレジス
タと、制御信号を送出して前記各メモリの動作を制御し
2重化領域の片方でエラーが検出された場合には他方の
内容を出力させるメモリ制御装置と、データ獲得許可の
タイミングを示すアクノレッジ信号をCPUに出力する
アクノレッジ信号作成装置と、前記エラー検出装置の出
力のCPUへの転送を制御するエラー信号出力装置と、
前記レジスタを参照して現在アクセス中のアドレスが2
重化領域か否かを判定し前記メモリ制御装置,エラー信
号出力装置およびアクノレッジ信号作成装置を制御する
セレクタ手段とを備えて構成されている。
According to the memory control method of the present invention, each of the memories is divided into n areas and two corresponding memories can be used by duplicating each area. An error detection device connected to
A register having an n-bit structure that indicates whether or not each n-divided area of each memory is a duplicated area according to the value of each bit, and a control signal is sent to control the operation of each memory to duplicate. A memory control device that outputs the contents of the other when an error is detected in one of the activation areas, an acknowledge signal generation device that outputs an acknowledge signal indicating the timing of data acquisition permission to the CPU, and an output of the error detection device. An error signal output device for controlling the transfer to the CPU,
If the address currently being accessed is 2 by referring to the register
It comprises selector means for judging whether or not it is an overlap area and controlling the memory control device, the error signal output device and the acknowledge signal generation device.

【0007】[0007]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0008】図1は本発明の一実施例の構成を示すブロ
ック図である。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.

【0009】図1において、1はCPU、21及び22
はメモリ、30はメモリ制御装置、41及び42はそれ
ぞれメモリ21,22に対応したエラー検出装置であ
る。5はメモリバス、70はアクノレッジ信号8をCP
U1に送出するアクノレッジ信号作成装置、9はエラー
検出装置41,42の出力をエラー信号6としてCPU
1に出力するか否を制御するエラー信号出力装置であ
る。10はメモリ21及び22の領域分割数に対応した
ビット数を有し、各ビットの状態により対応するメモリ
領域を2重化するかどうかを決定するレジスタで、ソフ
トウェアにより設定可能である。11はCPU1からア
クセス要求のあった対象がメモリ2重化領域であるか否
かをレジスタ10を参照して判定し、メモリ制御装置3
0,エラー信号出力装置9及びアクノレッジ信号作成装
置70に指示を与える機能を有するセレクタ手段であ
る。
In FIG. 1, 1 is a CPU, 21 and 22.
Is a memory, 30 is a memory control device, and 41 and 42 are error detection devices corresponding to the memories 21 and 22, respectively. 5 is a memory bus, 70 is a CP for acknowledge signal 8
An acknowledge signal creating device for sending to U1, 9 is a CPU for outputting the output of the error detecting devices 41, 42 as an error signal 6
It is an error signal output device for controlling whether to output to 1. A register 10 has a bit number corresponding to the number of divided areas of the memories 21 and 22, and is a register that determines whether or not to duplicate the corresponding memory area depending on the state of each bit, and can be set by software. Reference numeral 11 refers to the register 10 to determine whether or not the target of the access request from the CPU 1 is the memory duplication area.
0, the error signal output device 9 and the acknowledge signal generation device 70 are selector means having a function of giving an instruction.

【0010】メモリシステムのハードウェア(以下H/
Wと記す)は、図1のように同容量のメモリ21とメモ
リ22とに2分割されており、メモリ21,22の各メ
モリ領域は、それぞれ更にn個の物理アドレス領域に分
割されている。分割された各物理アドレス領域は、それ
ぞれ何の目的で使用するかがオペレーティングシステム
(以下OSと記す)の仮想メモリ管理によって決められ
ている。
Memory system hardware (hereinafter H /
W) is divided into two, as shown in FIG. 1, into a memory 21 and a memory 22 having the same capacity, and each memory area of the memories 21 and 22 is further divided into n physical address areas. .. The purpose of each divided physical address area is determined by virtual memory management of an operating system (hereinafter referred to as OS).

【0011】又、H/Wの構成としては、n分割された
各物理アドレス領域はレジスタ10の各ビットに割り当
てられており、その対応はOSに記憶されている。
In the H / W configuration, each physical address area divided into n is assigned to each bit of the register 10, and the correspondence is stored in the OS.

【0012】そしてOSは、これらn分割された任意の
物理アドレス領域をメモリ2重化領域(OS常駐エリア
等)に指定できるようになっており(この指定はダイナ
ミックに変更できる)、このとき、レジスタ10の指定
した物理アドレス領域に対応するビットを“1”に設定
する。
Then, the OS can designate any of these n-divided physical address areas as a memory duplication area (OS resident area, etc.) (this designation can be dynamically changed). The bit corresponding to the specified physical address area of the register 10 is set to "1".

【0013】以上のようにしてメモリ2重化領域が設定
れた状況で、CPU1がメモリをアクセスした場合の動
作説明を以下に行う。ここで、メモリ2重化領域をアク
セスした場合、エラーが発生しなかった正常の場合には
メモリ21からデータが出力されるように構成されてい
るものとする。
The operation when the CPU 1 accesses the memory in the situation where the memory duplication area is set as described above will be described below. Here, it is assumed that when the memory duplicated area is accessed, the data is output from the memory 21 in the normal case where no error has occurred.

【0014】まず、CPU1がメモリ2重化領域をアク
セスした場合を説明する。
First, the case where the CPU 1 accesses the memory duplicated area will be described.

【0015】CPU1がメモリへのライトアクセス起動
を行うと、アクセス対象の物理アドレスをセレクタ手段
11が判断してレジスタ10の内容と比較し、アクセス
対象の物理アドレスがメモリ2重化領域であれば、メモ
リ制御装置30から制御信号をメモリ21,22の双方
に対して同じように出力させる。これによって、メモリ
21,22には同一データが書き込まれることになる。
When the CPU 1 activates the write access to the memory, the selector means 11 judges the physical address to be accessed and compares it with the contents of the register 10, and if the physical address to be accessed is the memory duplication area. , The control signal is output from the memory control device 30 to both the memories 21 and 22 in the same manner. As a result, the same data is written in the memories 21 and 22.

【0016】次に、CPU1がメモリへのリード動作を
行った場合には、同様にしてメモリ2重化領域であるこ
とをセレクタ手段11が判断すると、アドレス指定の制
御信号をメモリ21,22の双方へ出力する。ここで、
エラー検出装置41,42のいずれからもエラー信号が
検出されなかった場合は、メモリ21からデータが出力
されるように、メモリ制御装置30はメモリ21に対し
てのみメモリバス5への出力をイネーブル状態とする制
御信号を送出する。そして、データ確定タイミングにお
いて、アクノレッジ信号作成装置70がCPU1に対し
アクノレッジ信号8を出力してメモリリードサイクルは
終了する。
Next, when the CPU 1 performs a read operation to the memory, when the selector means 11 similarly determines that the area is a memory duplicated area, it sends an addressing control signal to the memories 21 and 22. Output to both sides. here,
When no error signal is detected from any of the error detection devices 41 and 42, the memory control device 30 enables the output to the memory bus 5 only for the memory 21 so that the data is output from the memory 21. Send the control signal to set the status. Then, at the data confirmation timing, acknowledge signal generating device 70 outputs acknowledge signal 8 to CPU 1 and the memory read cycle ends.

【0017】一方、エラー検出装置41のみがエラーを
検出した場合には、現在アクセス中のアドレスがメモリ
2重化領域であれば、エラー信号出力装置9はセレクタ
手段11からの指令により遮断状態となっており、CP
U1に対してエラー信号6は出力されない。エラー検出
装置41からのエラー信号を検出すると、メモリ制御装
置30はメモリ21の出力をディスエーブル状態とし、
代わりにメモリ22の出力をイネーブル状態にしてメモ
リ22のデータをメモリバス5に乗せる。そして、メモ
リ22からのデータが確定するタイミングを見計らい、
アクノレッジ信号作成装置70がアクノレッジ信号8を
CPU1に返してメモリリードサイクルが終了する。
On the other hand, when only the error detection device 41 detects an error, if the currently accessed address is the memory duplication area, the error signal output device 9 is set to the cutoff state by the instruction from the selector means 11. Has become CP
The error signal 6 is not output to U1. When the error signal from the error detection device 41 is detected, the memory control device 30 disables the output of the memory 21,
Instead, the output of the memory 22 is enabled and the data in the memory 22 is loaded on the memory bus 5. Then, in consideration of the timing when the data from the memory 22 is fixed,
The acknowledge signal generating device 70 returns the acknowledge signal 8 to the CPU 1 to end the memory read cycle.

【0018】その後OSは、メモリ21の壊れたデータ
の復旧のために、レジスタ10の内容をすべて“0”に
して、2重化されていたメモリ22の物理アドレス領域
の内容をメモリ21の対応する物理アドレス領域にコピ
ーし、レジスタ10を元の状態に復旧し処理を終了す
る。
After that, the OS sets all the contents of the register 10 to "0" and restores the contents of the duplicated physical address area of the memory 22 to the memory 21 in order to recover the damaged data in the memory 21. Copy to the physical address area, restore the register 10 to the original state, and finish the processing.

【0019】エラー検出装置42のみがエラーを検出し
た場合には、メモリ21からデータが正常に読み出され
メモリリードサイクルが終了した後、OSはメモリ22
の壊れたデータの復旧のために、メモリ21からメモリ
22に対して上記と同様なコピー処理を行う。
If only the error detection device 42 detects an error, the OS reads the data from the memory 21 after the data is normally read from the memory 21 and the memory read cycle ends.
In order to recover the broken data of the above, the copy processing similar to the above is performed from the memory 21 to the memory 22.

【0020】エラー検出装置41,42の双方でエラー
が検出された場合は、エラー信号出力装置9は直ちにエ
ラー信号6をCPU1に出力してCPU1を停止させ
る。
When an error is detected by both the error detecting devices 41 and 42, the error signal output device 9 immediately outputs the error signal 6 to the CPU 1 to stop the CPU 1.

【0021】なお、アクセス対象の物理アドレスがメモ
リ2重化領域でない場合には、メモリ21とメモリ22
とはそれぞれ独立のメモリとして動作し、従来の技術で
説明した場合と同様の動作を行う。すなわち、エラー信
号出力装置9はエラー検出装置41,42のエラー信号
をそのままエラー信号6としてCPU1に出力するの
で、エラーが検出されるとCPU1は直ちに停止する。
If the physical address to be accessed is not the memory duplication area, the memory 21 and the memory 22 are
And operate as memories independent of each other and perform the same operation as the case described in the related art. That is, since the error signal output device 9 outputs the error signals of the error detection devices 41 and 42 as they are to the CPU 1 as the error signal 6, the CPU 1 immediately stops when an error is detected.

【0022】[0022]

【発明の効果】以上説明したように、本発明のメモリ制
御方式は、特定のメモリ領域を任意に指定して2重化で
き、他の領域は通常の単一のメモリとして使用できるの
で、重要なプログラムやデータをメモリ2重化領域にマ
ッピングすることにより、メモリの間欠故障が発生した
場合、直ちにシステムダウンにつながらずデータの破壊
を防止でき、信頼性の高いシステムが構成できる効果が
ある。
As described above, according to the memory control method of the present invention, a specific memory area can be arbitrarily designated and duplicated, and the other area can be used as a normal single memory. By mapping different programs and data to the memory duplication area, when an intermittent failure of the memory occurs, it is possible to prevent the data from being destroyed without immediately leading to the system down, and to construct a highly reliable system.

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

【図1】本発明の一実施例の構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.

【図2】従来のメモリ制御方式の構成の一例を示すブロ
ック図である。
FIG. 2 is a block diagram showing an example of a configuration of a conventional memory control system.

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

1 CPU 2,21,22 メモリ 3,30 メモリ制御装置 4,41,42 エラー検出装置 5 メモリバス 6 エラー信号 7,70 アクノレッジ信号作成装置 8 アクノレッジ信号 9 エラー信号出力装置 10 レジスタ 11 セレクタ手段 1 CPU 2, 21, 22 Memory 3,30 Memory Control Device 4, 41, 42 Error Detection Device 5 Memory Bus 6 Error Signal 7, 70 Acknowledge Signal Creating Device 8 Acknowledge Signal 9 Error Signal Output Device 10 Register 11 Selector Means

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 それぞれがn個の領域に分割されており
対応する各領域同士を2重化して使用できる2個のメモ
リと、前記メモリのおのおのに接続されているエラー検
出装置と、各ビットの値により前記各メモリのn分割さ
れた各領域が2重化領域であるか否かを示すnビット構
成のレジスタと、制御信号を送出して前記各メモリの動
作を制御し2重化領域の片方でエラーが検出された場合
には他方の内容を出力させるメモリ制御装置と、データ
獲得許可のタイミングを示すアクノレッジ信号をCPU
に出力するアクノレッジ信号作成装置と、前記エラー検
出装置の出力のCPUへの転送を制御するエラー信号出
力装置と、前記レジスタを参照して現在アクセス中のア
ドレスが2重化領域か否かを判定し前記メモリ制御装
置,エラー信号出力装置およびアクノレッジ信号作成装
置を制御するセレクタ手段とを備えたことを特徴とする
メモリ制御方式。
1. Two memories, each of which is divided into n areas and can be used by duplicating corresponding areas, an error detection device connected to each of the memories, and each bit. A register having an n-bit structure indicating whether or not each of the n-divided areas of each memory is a duplicated area, and a control signal is sent to control the operation of each memory to duplicate the duplicated area. If an error is detected in one of the two, the memory controller that outputs the contents of the other and an acknowledge signal indicating the timing of data acquisition permission to the CPU
To the CPU, an error signal output device for controlling the transfer of the output of the error detection device to the CPU, and the register to determine whether or not the currently accessed address is a duplex region. A memory control system comprising: a memory control device, an error signal output device, and selector means for controlling an acknowledge signal generation device.
JP3268006A 1991-10-17 1991-10-17 Memory control system Pending JPH05108493A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3268006A JPH05108493A (en) 1991-10-17 1991-10-17 Memory control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3268006A JPH05108493A (en) 1991-10-17 1991-10-17 Memory control system

Publications (1)

Publication Number Publication Date
JPH05108493A true JPH05108493A (en) 1993-04-30

Family

ID=17452601

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3268006A Pending JPH05108493A (en) 1991-10-17 1991-10-17 Memory control system

Country Status (1)

Country Link
JP (1) JPH05108493A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008090542A (en) * 2006-09-29 2008-04-17 Fujitsu Ltd Error processing method and information processor
WO2012131884A1 (en) * 2011-03-28 2012-10-04 富士通株式会社 Multicore processor system
JP2015133148A (en) * 2015-03-19 2015-07-23 富士通株式会社 Control program for controller, and control method for controller

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008090542A (en) * 2006-09-29 2008-04-17 Fujitsu Ltd Error processing method and information processor
WO2012131884A1 (en) * 2011-03-28 2012-10-04 富士通株式会社 Multicore processor system
JP5716824B2 (en) * 2011-03-28 2015-05-13 富士通株式会社 Multi-core processor system
JP2015133148A (en) * 2015-03-19 2015-07-23 富士通株式会社 Control program for controller, and control method for controller

Similar Documents

Publication Publication Date Title
JP3748117B2 (en) Error detection system for mirrored memory
US20020065986A1 (en) Enhanced protection for memory modification tracking
US6785777B2 (en) Control logic for memory modification tracking with hierarchical dirty indicators
US6981172B2 (en) Protection for memory modification tracking
JPH05108493A (en) Memory control system
JP2002536718A (en) Address remapping assurance apparatus and method
JPH08263328A (en) Bus trace device and method
JP3239935B2 (en) Tightly-coupled multiprocessor system control method, tightly-coupled multiprocessor system, and recording medium therefor
JPS6159557A (en) Virtual memory controlling device
JPS6057091B2 (en) Common memory storage protection method
JP2679440B2 (en) Information processing device
JPH0863406A (en) Memory access controller
JPH0341538A (en) Main storage device
JPH11120087A (en) Dual-memory processor
JP3106448B2 (en) Processor unit
JPS6040057B2 (en) Memory address check method
JP3220060B2 (en) Memory test method
JP3012402B2 (en) Information processing system
JP2825589B2 (en) Bus control method
JPH01237734A (en) Duplexing device
JPH05189997A (en) Memory fault detecting mechanism
JPS6367669A (en) Control system for storage controller
JPH01258054A (en) Access control system for storage device
JPH01270157A (en) Multiplex memory device
JPS6046462B2 (en) Redundant bus monitoring method