JPH0619633A - Signal processing system in duplex system - Google Patents
Signal processing system in duplex systemInfo
- Publication number
- JPH0619633A JPH0619633A JP4175568A JP17556892A JPH0619633A JP H0619633 A JPH0619633 A JP H0619633A JP 4175568 A JP4175568 A JP 4175568A JP 17556892 A JP17556892 A JP 17556892A JP H0619633 A JPH0619633 A JP H0619633A
- Authority
- JP
- Japan
- Prior art keywords
- channel
- cpu
- data
- command
- system bus
- 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.)
- Withdrawn
Links
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
- Hardware Redundancy (AREA)
- Bus Control (AREA)
Abstract
(57)【要約】 (修正有)
【目的】 二重化システムにおける信号方式に関し、C
PUから各チャネルへのコマンド発信・データ転送を1
回ずつで済むようにし、システムバスの占有率を小さく
して全体の性能向上を図る。
【構成】 CPU10にDMA手段101を設け、シス
テムバス2を介して接続され、二重化されたチャネル3
0,40に現用/待機モードを設定する手段301,4
01とチャネル識別子設定手段302,402を設け、
チャネル毎にアドレス設定手段303,403を設け
る。CPUからの書き込みにはチャネル30,40で同
一アドレスに設定し、読出し時のアドレスは異ったアド
レスに設定。コマンドやデータ書込み後のバス2への確
認応答は現用チャネルのみが行い、コマンドまたはデー
タの受信完了時におけるCPU10への確認応答は現用
及び待機用の両方のチャネルが自己の識別子を使用して
行う構成とする。
(57) [Summary] (Modified) [Purpose] C
1 command transmission and data transfer from PU to each channel
The system bus occupancy rate will be reduced to improve overall performance. [Structure] A CPU 10 is provided with a DMA means 101, is connected via a system bus 2, and is a dual channel 3.
Means 301, 4 for setting active / standby mode to 0, 40
01 and channel identifier setting means 302 and 402 are provided,
Address setting means 303 and 403 are provided for each channel. When writing from the CPU, set the same address on channels 30 and 40, and set different addresses when reading. Only the working channel performs the confirmation response to the bus 2 after writing the command or data, and the confirmation response to the CPU 10 at the completion of reception of the command or data is performed by both the working and standby channels using their own identifiers. The configuration.
Description
【0001】[0001]
【産業上の利用分野】本発明は、例えばCPUとチャネ
ルがシステムバスで接続され、上記チャネルを二重化し
て電子計算機の高信頼化を図る二重化システムにおける
信号処理方式に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a signal processing system in a dual system in which, for example, a CPU and a channel are connected by a system bus, and the channel is duplicated to improve reliability of an electronic computer.
【0002】[0002]
【従来の技術】電子計算機の信頼性向上を図る手段の1
つとして二重化システムがある。これは例えばCPUに
対してファイルチャネルなどを二重化して、通常は一方
のファイルチャネルを使用し、そのファイルチャネルの
異常時に他方のファイルチャネルを使用するというもの
である。2. Description of the Related Art One of the means for improving the reliability of electronic computers
One is the duplication system. In this method, for example, a file channel is duplicated with respect to the CPU, and normally one file channel is used, and when the file channel is abnormal, the other file channel is used.
【0003】図7はファイルチャネルを二重化した従来
の具体例を示すものである。同図は電子計算機システム
において、ファイルチャネルとハードディスクを二重化
した例を示すものであり、1はCPU、2はシステムバ
ス、3,4はファイルチャネル、5,6はハードディス
クである。FIG. 7 shows a specific example of the prior art in which the file channels are duplicated. This figure shows an example in which a file channel and a hard disk are duplicated in an electronic computer system. 1 is a CPU, 2 is a system bus, 3 and 4 are file channels, and 5 and 6 are hard disks.
【0004】上記CPU1において、11はプロセッ
サ、12は内部バス、13は主記憶部、14はシステム
バスインタフェースである。また、ファイルチャネル
3,4は同一構成となっており、ファイルチャネル3は
プロセッサ31、内部バス32、バッファメモリ33、
システムバスインタフェース34、DMA(Direct Mem
ory Access) コントローラ35、プロセッサ31の動作
プログラム格納用のROM36、SCSI(Small Comp
uter System Interface)などのI/Oインタフェース3
7で構成され、ファイルチャネル4も同様に、プロセッ
サ41、内部バス42、バッファメモリ43、システム
バスインタフェース44、DMAコントローラ45、R
OM46、I/Oインタフェース47から構成されてい
る。In the CPU 1, 11 is a processor, 12 is an internal bus, 13 is a main memory, and 14 is a system bus interface. Further, the file channels 3 and 4 have the same configuration, and the file channel 3 includes a processor 31, an internal bus 32, a buffer memory 33,
System bus interface 34, DMA (Direct Mem
ory Access) controller 35, ROM 36 for storing operation program of processor 31, SCSI (Small Comp
I / O interface 3 such as computer system interface)
Similarly, the file channel 4 is also composed of a processor 41, an internal bus 42, a buffer memory 43, a system bus interface 44, a DMA controller 45, and an R.
It is composed of an OM 46 and an I / O interface 47.
【0005】このような構成において、主記憶部13内
のデータをハードディスク5,6に書き込む場合は、ハ
ードディスク5,6の双方への書き込みを行い、これら
ハードディスク5,6に書き込まれた内容は、常時一致
させておく。一方、ハードディスク5,6に書き込まれ
た内容をCPU1の主記憶部13に読み出す場合は、ハ
ードディスク5,6のいずれか一方を現用側、他方を待
機側とし、通常時は現用側のハードディスクからデータ
の読み出しを行い、現用側に異常があったときは待機側
のハードディスクからデータを読み出すようにしてい
る。2つのハードディスク5,6が同時に異常発生とな
る確率はきわめて小さいので、このような方式を採用す
ることで信頼性の向上が図れる。In such a configuration, when the data in the main memory 13 is written to the hard disks 5 and 6, both the hard disks 5 and 6 are written, and the contents written to these hard disks 5 and 6 are Always match. On the other hand, when the contents written in the hard disks 5 and 6 are read out to the main storage unit 13 of the CPU 1, one of the hard disks 5 and 6 is set as the active side and the other is set as the standby side. The data is read from the hard disk on the standby side when there is an abnormality on the active side. Since the probability that the two hard disks 5, 6 will become abnormal at the same time is extremely small, the reliability can be improved by adopting such a method.
【0006】上記主記憶部13の内容をハードディスク
5,6に書き込む操作は具体的には次のように行われ
る。まず、CPU1はファイルチャネル3,4に対し
て、主記憶部13からハードディスク5,6への書き込
みを指令する。具体的には、プロセッサ11がコマンド
を送出するが、このコマンドはシステムバスインタフェ
ース14からシステムバス2を経由してファイルチャネ
ル3,4に送られ、ファイルチャネル3側においては、
上記コマンドはシステムバスインタフェース34を介し
てバッファメモリ33に書き込まれる。また、ファイル
チャネル4側においては、システムバスインタフェース
44を介してバッファメモリ43に書き込まれる。The operation of writing the contents of the main memory 13 into the hard disks 5 and 6 is specifically performed as follows. First, the CPU 1 commands the file channels 3 and 4 to write from the main storage unit 13 to the hard disks 5 and 6. Specifically, the processor 11 sends a command, and this command is sent from the system bus interface 14 to the file channels 3 and 4 via the system bus 2, and on the file channel 3 side,
The above command is written in the buffer memory 33 via the system bus interface 34. On the file channel 4 side, the data is written in the buffer memory 43 via the system bus interface 44.
【0007】これによりファイルチャネル3側のプロセ
ッサ31はバッファメモリ33に書き込まれたコマンド
を解読し、それが主記憶部13からハードディスク5へ
の書き込み指令であることを知ると、DMAコントロー
ラ35を起動して、主記憶部13内のデータをバッファ
メモリ33に転送する。そして次に、プロセッサ31は
I/Oインタフェース37のDMAを起動して、バッフ
ァメモリ33からハードディスク5へのデータ転送を行
う。As a result, the processor 31 on the file channel 3 side decodes the command written in the buffer memory 33, and when it knows that the command is a write command from the main memory 13 to the hard disk 5, it activates the DMA controller 35. Then, the data in the main memory 13 is transferred to the buffer memory 33. Then, the processor 31 activates the DMA of the I / O interface 37 to transfer the data from the buffer memory 33 to the hard disk 5.
【0008】このデータ転送が終了すると、プロセッサ
31はコマンドの終了情報をバッファメモリ33に格納
し、DMAコントローラ35を起動してそのコマンドの
終了情報を主記憶部13へ転送する。Upon completion of this data transfer, the processor 31 stores the command end information in the buffer memory 33, activates the DMA controller 35, and transfers the command end information to the main memory unit 13.
【0009】一方、ファイルチャネル4側においても、
上記ファイルチャネル3側と同様、プロセッサ41は、
主記憶部13からバッファメモリ43にデータ転送を行
ったのち、バッファメモリ43からハードディスク6へ
データを転送する。このデータ転送終了後、プロセッサ
41はコマンドの終了情報をバッファメモリ43に格納
し、DMAコントローラ45を起動して、そのコマンド
終了情報を主記憶部13へ転送する。On the other hand, also on the side of the file channel 4,
Similar to the file channel 3 side, the processor 41
After the data is transferred from the main memory 13 to the buffer memory 43, the data is transferred from the buffer memory 43 to the hard disk 6. After the data transfer is completed, the processor 41 stores the command end information in the buffer memory 43, activates the DMA controller 45, and transfers the command end information to the main storage unit 13.
【0010】CPU1はファイルチャネル3,4の両方
からの終了情報を受信して初めて、主記憶部13からハ
ードディスク5,6へのデータ書き込みが終了したもの
と判断する。The CPU 1 judges that the data writing from the main memory 13 to the hard disks 5, 6 is completed only after receiving the completion information from both the file channels 3, 4.
【0011】以上がCPU1の主記憶部13からハード
ディスク5,6へのデータ書き込み操作手順であるが、
ハードディスク5,6から主記憶部13へのデータ読み
出し操作手順は、次のようにして行われる。The above is the procedure for writing data from the main storage unit 13 of the CPU 1 to the hard disks 5, 6.
The procedure for reading data from the hard disks 5, 6 to the main storage unit 13 is performed as follows.
【0012】ここではファイルチャネル3とハードディ
スク5を現用側、ファイルチャネル4とハードディスク
6を待機側とすると、CPU1は現用側にのみコマンド
を発信し、待機側には発信しない。しかし、現用側から
の終了情報が異常終了であった場合、あるいは現用側の
終了情報を受信できなかった場合は、直ちに待機側にも
同様の読みだしコマンドを発信し、現用に代えて待機側
に読み出し処理を代替させる。Here, assuming that the file channel 3 and the hard disk 5 are on the active side and the file channel 4 and the hard disk 6 are on the standby side, the CPU 1 sends a command only to the active side and does not send to the standby side. However, if the termination information from the working side is abnormally terminated, or if the termination information of the working side cannot be received, a similar read command is immediately issued to the standby side, and the standby side replaces the working side. To substitute the reading process.
【0013】[0013]
【発明が解決しようとする課題】このような二重化シス
テムは、信頼性の向上を図れる利点があるが、上記した
従来の二重化システムにおける信号処理方式では、次の
ような問題点がある。Although such a duplex system has an advantage that reliability can be improved, the signal processing method in the above-mentioned conventional duplex system has the following problems.
【0014】すなわち、従来方式では、CPU1からフ
ァイルチャネル3,4へのコマンド発信と、CPU1の
主記憶部13からファイルチャネル3,4の各バッファ
メモリ33,43へのデータ転送がそれぞれ2回行われ
るので、二重化しない場合に比べて、ディスクアクセス
の性能が低下するとともに、システムバス2の占有率が
増大することから、計算機システム全体の性能の低下に
つながる問題がある。That is, in the conventional method, the command transmission from the CPU 1 to the file channels 3 and 4 and the data transfer from the main storage unit 13 of the CPU 1 to the buffer memories 33 and 43 of the file channels 3 and 4 are performed twice respectively. Since the disk access performance is reduced and the occupancy rate of the system bus 2 is increased as compared with the case where the redundancy is not provided, there is a problem that the performance of the entire computer system is reduced.
【0015】本発明は、二重化を行う場合であっても、
CPUから各チャネルへのコマンド発信と、CPU内の
主記憶部から各チャネルのバッファメモリへのデータ転
送を1回づつで済むようにし、システムバスの占有率を
小さくしてシステム全体の性能の向上を図れる二重化シ
ステムにおける信号処理方式を実現することを目的とす
る。In the present invention, even when duplexing is performed,
Command transmission from the CPU to each channel and data transfer from the main memory in the CPU to the buffer memory of each channel only have to be done once, and the system bus occupancy rate is reduced to improve overall system performance. It is an object of the present invention to realize a signal processing method in a duplex system capable of achieving the above.
【0016】[0016]
【課題を解決するための手段】図1は、本発明原理を説
明するブロック図であり、CPU10とチャネル30,
40がシステムバス2で接続され、CPU10に対して
チャネル30,40が二重化された構成となっている。FIG. 1 is a block diagram for explaining the principle of the present invention.
40 is connected by the system bus 2, and channels 30 and 40 are duplicated with respect to the CPU 10.
【0017】上記、CPU10はDMA手段101を有
し、また、チャネル30,40は現用側モードと待機側
モードを設定するモード設定手段301,401と、そ
れぞれのチャネルを識別するための識別子(IDentifir
e, 以下IDという)を設定するID設定手段302,
402とを設け、さらにチャネル30,40に設けられ
たバッファメモリ(図示せず)に対して書き込み時と読
み出し時の2つの異なるアドレスを設定するアドレス設
定手段303,403を設ける。The CPU 10 has the DMA means 101, the channels 30 and 40 are mode setting means 301 and 401 for setting the active mode and the standby mode, and an identifier (IDentifir) for identifying each channel.
e, hereinafter referred to as ID), ID setting means 302 for setting
402, and address setting means 303, 403 for setting two different addresses for writing and reading to a buffer memory (not shown) provided in the channels 30, 40.
【0018】そして、上記チャネル30,40はモード
設定手段301,401により、現用側であるか待機側
であるかのモード設定を行い、ここではチャネル30を
現用側、チャネル40を待機側とする。また、チャネル
30,40はID設定手段302,402によりチャネ
ル識別用のIDをそれぞれ設定するとともに、アドレス
設定手段303,403により、書き込み時のアドレス
を、チャネル30,40が同一アドレスとなるように設
定し、読み出し時のアドレスを、チャネル30,40で
異なるように設定しておく。Then, the channels 30 and 40 are set by the mode setting means 301 and 401 to determine whether they are the active side or the standby side. Here, the channel 30 is the active side and the channel 40 is the standby side. . In addition, the channels 30 and 40 set IDs for channel identification by the ID setting means 302 and 402, respectively, and the address setting means 303 and 403 set the writing addresses so that the channels 30 and 40 have the same address. The address for reading is set to be different for the channels 30 and 40.
【0019】[0019]
【作用】このような設定を行ったのち、CPU10の主
記憶部(図1においては図示せず)に格納されているデ
ータをチャネル30,40に接続されたデータ格納手段
(図1においては図示せず)に書き込む動作は次のよう
に行われる。After the above setting, the data stored in the main storage unit (not shown in FIG. 1) of the CPU 10 is connected to the channels 30 and 40 by the data storage means (see FIG. 1). The operation of writing to (not shown) is performed as follows.
【0020】CPU10からのコマンド発信は、システ
ムバス2を経由してチャネル30に対して行われ、その
コマンドはチャネル30に書き込まれるが、書き込み時
のアドレスはチャネル30,40がともに同一アドレス
となっているため、上記コマンドはチャネル40にも同
時に書き込まれる。このとき、チャネル40は待機側で
あり、CPU10の書き込みに対するシステムバス2上
の確認応答はこのチャネル40からは出力されないよう
になっており、現用側のチャネル30のみがシステムバ
ス2上の確認応答を行う。そして、コマンド受信後、チ
ャネル30,40からのCPU10に対するデータ受信
可の応答は、チャネル30,40が自己のIDを使用し
て通知する。A command is sent from the CPU 10 to the channel 30 via the system bus 2, and the command is written to the channel 30. The writing addresses are the same for both channels 30 and 40. Therefore, the above command is simultaneously written to the channel 40. At this time, the channel 40 is on the standby side, and the acknowledgment on the system bus 2 for writing by the CPU 10 is not output from this channel 40, and only the channel 30 on the active side acknowledges on the system bus 2. I do. Then, after receiving the command, the channels 30 and 40 notify the CPU 10 of the response that data reception is possible from the channels 30 and 40 by using their own IDs.
【0021】これにより、CPU10はDMA手段10
1を使用して、主記憶部からデータをチャネル30に送
出し、チャネル30のバッファメモリに書き込むが、そ
のデータは上記コマンド同様、チャネル40のバッファ
メモリにも書き込まれる。その後、チャネル30,40
は書き込まれたデータをそれぞれのチャネルに接続され
たデータ格納手段に転送する。そして、チャネル30,
40は処理完了のメッセージを、自己のIDを使用して
CPU10に通知する。As a result, the CPU 10 causes the DMA means 10 to operate.
1 is used to send data from the main storage unit to the channel 30 and write it in the buffer memory of the channel 30. The data is also written in the buffer memory of the channel 40 in the same manner as the above command. Then channels 30, 40
Transfers the written data to the data storage means connected to each channel. And channel 30,
40 notifies the CPU 10 of the processing completion message using its own ID.
【0022】一方、CPU10が上記データを読み出す
場合、CPU10からの読み出しのコマンドは、チャネ
ル30,40の両方に同時に書き込まれる。そして、各
チャネル30,40に接続されたデータ格納手段内のデ
ータは、対応するチャネルに転送されるが、チャネルか
らCPU10へのデータ転送は、現用側のチャネル30
のみが行う。なお、現用側チャネル30に異常があった
場合は、待機側チャネル40からの読み出しを行う。On the other hand, when the CPU 10 reads the above data, the read command from the CPU 10 is simultaneously written to both the channels 30 and 40. Then, the data in the data storage means connected to each of the channels 30 and 40 is transferred to the corresponding channel, but the data transfer from the channel to the CPU 10 is performed on the working channel 30.
Only do. If there is an abnormality in the active channel 30, the standby channel 40 is read.
【0023】したがって、二重化の場合であっても、C
PUから各チャネルへのコマンド発信とデータ転送が1
回づつで済む。Therefore, even in the case of duplexing, C
1 command transmission and data transfer from PU to each channel
It only needs to be turned.
【0024】[0024]
【実施例】次に本発明の実施例を説明する。図2は本発
明の第1の実施例を示すブロック図であり、図1と同一
部分には同一符号を付してある。またこの実施例では、
チャネルとしてファイルチャネルを用いた例を示してお
り、基本的な構成としては、前記従来方式の説明を行っ
た図7と同じであるが、図7と異なるのは、CPU10
(図7ではCPU1に対応)にDMAコントローラ15
を設けたことと、チャネル(実施例ではファイルチャネ
ルとして説明する)30,40(図7ではファイルチャ
ネル3,4に対応)のシステムバスインタフェース3
4,44を図3で示すような構成としたことであり、他
の構成要素は図7と同一であるため、同一部分には同一
符号を付すことにより、機能などの説明は省略する。な
お、図2におけるファイルチャネル30,40の各シス
テムバスインタフェースは以降、システムバスインタフ
ェース341,441として説明する。EXAMPLES Examples of the present invention will be described below. FIG. 2 is a block diagram showing a first embodiment of the present invention, and the same parts as those in FIG. 1 are designated by the same reference numerals. Also in this example,
An example in which a file channel is used as a channel is shown. The basic configuration is the same as that in FIG. 7 in which the conventional method is described, but the difference from FIG.
DMA controller 15 (corresponding to CPU 1 in FIG. 7)
And the system bus interface 3 of channels (which will be described as file channels in the embodiment) 30 and 40 (corresponding to the file channels 3 and 4 in FIG. 7).
4 and 44 are configured as shown in FIG. 3, and the other components are the same as those in FIG. 7, and therefore, the same parts are denoted by the same reference numerals, and the description of the functions and the like is omitted. The system bus interfaces of the file channels 30 and 40 in FIG. 2 will be described below as system bus interfaces 341 and 441.
【0025】上記システムバスインタフェース341,
441は、図3に示すように、システムバス2のレシー
バ51,52,53、システムバス2のドライバ(ナン
ドゲート)54、モード/ID設定レジスタ55、イン
バータ56、アドレスコンパレータ57、ナンドゲート
58、セレクタ59、アドレス設定器60,61で構成
されている。このような構成において、上記システムバ
スインタフェース341、441は、従来のシステムバ
スインタフェース34,44に対して、図3における点
線で囲った部分、すなわちモード/ID設定レジスタ5
5,インバータ56,ナンドゲート58,セレクタ5
9,アドレス設定器60を追加した構成となっている。The system bus interface 341,
As shown in FIG. 3, 441 is a receiver 51, 52, 53 of the system bus 2, a driver (nand gate) 54 of the system bus 2, a mode / ID setting register 55, an inverter 56, an address comparator 57, a NAND gate 58, a selector 59. , Address setting devices 60 and 61. In such a configuration, the system bus interfaces 341, 441 are different from the conventional system bus interfaces 34, 44 in a portion surrounded by a dotted line in FIG. 3, that is, the mode / ID setting register 5
5, inverter 56, NAND gate 58, selector 5
9. The configuration is such that an address setter 60 is added.
【0026】なお、図3において、S1はシステムバス
2のデータ信号、S2はシステムバス2のアドレス信
号、S3はシステムバス2のライト信号、S4,S7は
システムバス2の応答信号、S5はID信号、S6はバ
ッファメモリ選択信号である。In FIG. 3, S1 is a data signal of the system bus 2, S2 is an address signal of the system bus 2, S3 is a write signal of the system bus 2, S4 and S7 are response signals of the system bus 2, and S5 is an ID. A signal, S6, is a buffer memory selection signal.
【0027】このような構成において、CPU10のプ
ロセッサ11は、まずイニシャル処理において、ファイ
ルチャネル30,40のモード/ID設定レジスタ55
の設定を行う。ここで、上記モード/ID設定レジスタ
55は具体的には図4のような、構成となっている。す
なわち、0ビット目から7ビット目までの8ビットを、
IDを構成するID設定ビットとし、15ビット目の1
ビットをモード設定ビットMとしている。In such a configuration, the processor 11 of the CPU 10 first sets the mode / ID setting register 55 of the file channels 30 and 40 in the initial processing.
Set. Here, the mode / ID setting register 55 is specifically configured as shown in FIG. That is, the 8 bits from the 0th bit to the 7th bit are
As the ID setting bit that constitutes the ID, the 1st of the 15th bit
The bit is the mode setting bit M.
【0028】このモード設定ビットMは、現用側のファ
イルチャネルであるか待機側のファイルチャネルである
かを設定するもので、このモード設定ビットMが“1”
のときは現用側、“0”のときは待機側とする。The mode setting bit M sets whether the file channel is the active file channel or the standby file channel. The mode setting bit M is "1".
When it is "0", it is the active side, and when it is "0", it is the standby side.
【0029】ここでは、ファイルチャネル30を現用側
としているので、システムバスインタフェース341
(ファイルチャネル30側)におけるモード/ID設定
レジスタ55のモード設定ビットMを“1”とし、バス
インタフェース441(ファイルチャネル40側)にお
けるモード/ID設定レジスタ55のモード設定ビット
Mを“0”としておく。このモード/ID設定はCPU
10がプログラムで設定することにより行う。Here, since the file channel 30 is on the active side, the system bus interface 341 is used.
The mode setting bit M of the mode / ID setting register 55 on the (file channel 30 side) is set to "1", and the mode setting bit M of the mode / ID setting register 55 on the bus interface 441 (file channel 40 side) is set to "0". deep. This mode / ID setting is CPU
This is done by setting 10 in the program.
【0030】また、上記モード/ID設定の他にシステ
ムバスインタフェース341,441のアドレス設定器
60,61のアドレスも予め設定しておく。図3では、
アドレス設定器60,61はマニュアルによる切り換え
設定を想定しているが、これは上記モード/ID設定レ
ジスタ55と同様にシステムバス上のレジスタであって
も良い。このシステムバス上のレジスタである場合は、
モード/ID設定レジスタ55と同様にCPU10がプ
ログラムで設定することになる。このアドレス設定器6
0,61は、ファイルチャネル30,40のバッファメ
モリ33,43に対するシステムバスアドレスを決定す
るためのものであり、それぞれのファイルチャネル3
0,40に2つずつ設けられている理由は、コマンドま
たはデータをバッファメモリ33,43に書き込む場合
と、バッファメモリ33,43から読み出す場合とでア
ドレスを変えるためである。ここで今アドレス設定器6
0を書き込み用のアドレス設定器、アドレス設定器61
を読み出し用のアドレス設定器とすれば、アドレス設定
器60による設定アドレスは、ファイルチャネル30と
ファイルチャネル40とで同一アドレスに設定し、アド
レス設定器61による設定アドレスは、ファイルチャネ
ル30とファイルチャネル40とで異なったアドレスに
設定しておく。In addition to the above mode / ID setting, the addresses of the address setters 60 and 61 of the system bus interfaces 341 and 441 are also set in advance. In Figure 3,
The address setters 60 and 61 are supposed to be manually switched, but this may be a register on the system bus like the mode / ID setting register 55. If it is a register on this system bus,
Similar to the mode / ID setting register 55, the CPU 10 sets it by a program. This address setter 6
0 and 61 are for determining the system bus address for the buffer memories 33 and 43 of the file channels 30 and 40, respectively.
The reason why two addresses are provided for each of 0 and 40 is that the address is changed when writing the command or data in the buffer memories 33 and 43 and when reading the commands or data from the buffer memories 33 and 43. Now address setter 6
Address setter for writing 0, address setter 61
Is an address setter for reading, the set address by the address setter 60 is set to the same address in the file channel 30 and the file channel 40, and the set address by the address setter 61 is set in the file channel 30 and the file channel 30. 40 and different addresses are set.
【0031】上記のようにモード/ID設定レジスタ5
5及びアドレス設定器60,61を設定したものとし
て、次にCPU10の主記憶部13のデータをハードデ
ィスク5,6へ書き込む場合の動作を説明する。As described above, the mode / ID setting register 5
5 and the address setters 60 and 61 are set, the operation of writing the data in the main storage unit 13 of the CPU 10 to the hard disks 5 and 6 will be described next.
【0032】CPU10のプロセッサ11は、現用側で
あるファイルチャネル30のバッファメモリ33へコマ
ンドの書き込みを行う。このとき、書き込み時のアドレ
スは前記したようにアドレス設定器60により、ファイ
ルチャネル30,40が同一に設定されており、また、
ライト信号S3によりセレクタ59はアドレス設定器6
0をセレクトするようになっている。このため、上記コ
マンドはファイルチャネル40のバッファメモリ43に
も同時に書き込まれる。ただしこの時、ファイルチャネ
ル40はそのモード/ID設定レジスタ55のモード設
定ビットMが“0”(待機側)に設定されているので、
ナンドゲート58によって、システムバス2上への確認
応答信号がシステムバス2に出力されるのを阻止されて
いる。したがって、このシステムバス2上への確認応答
は現用側のファイルチャネル30のみが行う。なお、2
つのバッファメモリ33,43への同時書き込みは、シ
ステムバス2が同期バスであれば容易に実現できるが、
バッファメモリ33への書き込みに対するシステムバス
2への応答は、バッファメモリ43がプロセッサ41に
よってアクセスされている場合を考慮したタイミングと
する必要がある。またシステムバス2への転送時間を短
くするために、バッファメモリ33,43に対するプロ
セッサ31,41のアクセスより、システムバスインタ
フェース341,441のバッファメモリ33,34に
対するアクセスを優先させる必要がある。The processor 11 of the CPU 10 writes a command in the buffer memory 33 of the file channel 30 on the active side. At this time, the address at the time of writing is set to the same for the file channels 30 and 40 by the address setter 60 as described above.
The selector 59 causes the address setter 6 to operate in response to the write signal S3.
It is designed to select 0. Therefore, the above command is simultaneously written in the buffer memory 43 of the file channel 40. However, at this time, since the mode setting bit M of the mode / ID setting register 55 of the file channel 40 is set to "0" (standby side),
The NAND gate 58 prevents the acknowledgment signal on the system bus 2 from being output to the system bus 2. Therefore, the confirmation response to the system bus 2 is performed only by the file channel 30 on the active side. 2
Simultaneous writing to one buffer memory 33, 43 can be easily realized if the system bus 2 is a synchronous bus.
The response to the system bus 2 with respect to the writing to the buffer memory 33 needs to be performed at a timing considering the case where the buffer memory 43 is being accessed by the processor 41. In order to shorten the transfer time to the system bus 2, it is necessary to give priority to the access to the buffer memories 33 and 34 of the system bus interfaces 341 and 441 over the access of the processors 31 and 41 to the buffer memories 33 and 43.
【0033】ところで、上記ファイルチャネル30は、
上記コマンドを受信すると、データ受信が可能であるこ
とを示す応答削除をCPU10に対してメッセージで通
知する。このCPU10に対するデータ受信可を示す応
答は待機側のファイルチャネル40も同様に行う。この
とき、CPU10が受信する上記ファイルチャネル3
0,40からの各々のメッセージが、いずれのファイル
チャネルからのものかを区別するために前記IDを用い
る。このIDは前記したように、モード/ID設定レジ
スタ55におけるID設定ビットの8ビットで構成され
るチャネル識別符号であり、ファイルチャネル30,4
0に対応して予め定めておく。By the way, the file channel 30 is
When the above command is received, the CPU 10 notifies the CPU 10 of the response deletion indicating that the data can be received by a message. The file channel 40 on the standby side similarly makes a response to the CPU 10 indicating that data can be received. At this time, the file channel 3 received by the CPU 10
The ID is used to distinguish which file channel each message from 0, 40 is from. As described above, this ID is a channel identification code composed of 8 bits of ID setting bits in the mode / ID setting register 55, and the file channels 30, 4
It is set in advance corresponding to 0.
【0034】CPU10はファイルチャネル30,40
の両方からのメッセージを受信すると、DMAコントロ
ーラ15を起動して、主記憶部13からバッファメモリ
33に対してデータの書き込みを行うが、この場合も前
記コマンド送出時と同様に、待機側ファイルチャネル4
0のバッファメモリ43にも同一のデータの書き込みを
行う。The CPU 10 uses the file channels 30, 40
When the message is received from both of the above, the DMA controller 15 is activated to write the data from the main storage unit 13 to the buffer memory 33. In this case as well, as in the case of the command transmission, the standby side file channel Four
The same data is written in the buffer memory 43 of 0.
【0035】これによりファイルチャネル30,40
は、その後、それぞれのバッファメモリ33,43から
ハードディスク5,6に対してディスク転送を行い、コ
マンド処理完了のメッセージをCPU10に対してそれ
ぞれ通知する。CPU10はファイルチャネル30,4
0の両方のコマンド処理完了メッセージを受信すること
により、ハードディスク5,6へのデータの書き込みが
完了したとみなす。As a result, the file channels 30, 40
After that, disk transfer is performed from the respective buffer memories 33 and 43 to the hard disks 5 and 6, and a command processing completion message is notified to the CPU 10, respectively. CPU 10 has file channels 30, 4
By receiving both command processing completion messages of 0, it is considered that the writing of data to the hard disks 5 and 6 is completed.
【0036】一方、ハードディスク5,6のデータを主
記憶部13へ読み出す場合、データ読み出しのコマンド
は、ファイルチャネル30,40の両方に書き込まれ
る。そして、ハードディスク5,6からのバッファメモ
リ33,43へのデータの読み出しは、ファイルチャネ
ル30,40の両方が行うが、バッファメモリから主記
憶部13へのデータ転送は現用側のファイルチャネル3
0のみが行い、待機側のファイルチャネル40は行わな
い。On the other hand, when reading the data in the hard disks 5 and 6 to the main memory 13, the data read command is written in both the file channels 30 and 40. Data is read from the hard disks 5, 6 to the buffer memories 33, 43 by both the file channels 30, 40, but data is transferred from the buffer memories to the main memory 13 by the file channel 3 on the active side.
0 only, not the file channel 40 on the standby side.
【0037】ここで現用側のファイルチャネル30に故
障が発生した場合は、CPU10は待機側のファイルチ
ャネル40を現用側に設定変更し、ファイルチャネル4
0に処理続行のコマンドを発信する。この現用/待機の
モード設定は前記したように、モード/ID設定レジス
タ55において、モード設定ビットMを“1”から
“0”あるいは“0”から“1”と書き換えることによ
り行う。If a failure occurs in the file channel 30 on the active side, the CPU 10 changes the setting of the file channel 40 on the standby side to the active side, and the file channel 4
A command to continue processing is sent to 0. This active / standby mode setting is performed by rewriting the mode setting bit M from "1" to "0" or "0" to "1" in the mode / ID setting register 55 as described above.
【0038】以上のようにこの実施例によれば、CPU
10からファイルチャネル30,40へのコマンド発信
時、あるいは主記憶部13から各ファイルチャネル3
0,40のバッファメモリ33,43へのデータ書き込
み時、コマンドあるいはデータを2つのファイルチャネ
ル30,40に同時に書き込むようにし、この時のシス
テムバス上への確認応答は現用側のファイルチャネル3
0のみが行い、またコマンドあるいはデータの受信完了
時点でのCPU10に対するメッセージによる確認応答
は、それぞれのファイルチャネル30,40が自己のI
Dを使用して行うようにしている。したがって、ファイ
ルチャネルを二重化した場合でも、コマンド発行とデー
タ転送は1回づつで済む。As described above, according to this embodiment, the CPU
10 when a command is sent to the file channels 30 and 40, or from the main storage unit 13 to each file channel 3
When writing data to the buffer memories 33 and 43 of 0 and 40, a command or data is written to the two file channels 30 and 40 at the same time, and the confirmation response on the system bus at this time is the file channel 3 of the active side.
0, and a confirmation response by a message to the CPU 10 at the time when the reception of the command or data is completed, the respective file channels 30 and 40 perform their own I / O.
I am trying to use D. Therefore, even if the file channels are duplicated, the command issuance and the data transfer only have to be performed once.
【0039】図5は本発明の第2の実施例を示すもの
で、図5が図2と異なる部分は、ファイルチャネル3
0,40の内部バス32,42をトランシーバ38,4
8で分離したバス上に、もう1つのバッファメモリ3
9,49を設けたことである。この第2の実施例では、
ファイルチャネル30,40のそれぞれのバッファメモ
リ39,49は書き込み時におけるアドレスが同一に設
定されている。また、このバッファメモリ39,49
は、データバッファ専用とし、システムバス2との間で
のデータ転送中は、プロセッサ31,41はデータバッ
ファ39,49をアクセスしないものとする。FIG. 5 shows a second embodiment of the present invention. The difference between FIG. 5 and FIG.
0, 40 internal buses 32, 42 to transceivers 38, 4
Another buffer memory 3 on the bus separated in 8.
That is, 9,49 are provided. In this second embodiment,
The buffer memories 39 and 49 of the file channels 30 and 40 have the same address at the time of writing. In addition, the buffer memories 39 and 49
Is dedicated to the data buffer, and the processors 31 and 41 do not access the data buffers 39 and 49 during the data transfer with the system bus 2.
【0040】この第2の実施例によれば、ファイルチャ
ネル30がシステムバス2への確認応答信号を帰すタイ
ミングは、2つのファイルチャネル30,40のそれぞ
れのバッファメモリ39,49のアクセスタイムのバラ
ツキだけを考慮すれば良く、システムバス2への転送を
高速化できる。According to the second embodiment, the timing at which the file channel 30 returns the acknowledgment signal to the system bus 2 varies depending on the access times of the buffer memories 39 and 49 of the two file channels 30 and 40, respectively. Only the above need be considered, and the transfer to the system bus 2 can be speeded up.
【0041】図6は本発明の第3の実施例を示すもの
で、上記第2の実施例(図5)において、ファイルチャ
ネル30,40のDMAコントローラ35,45を除去
したものである。前記第1の実施例では、コマンドやデ
ータの受信完了時にファイルチャネル30,40がDM
Aコントローラ35,45を使用してメッセージをCP
U10に通知していたが、この第3の実施例では、ファ
イルチャネル30,40はバッファメモリ上にステータ
スを表示するだけとし、CPU10がそのステータスを
システムバス2より検知するという方式としている。FIG. 6 shows a third embodiment of the present invention, in which the DMA controllers 35 and 45 of the file channels 30 and 40 are removed from the second embodiment (FIG. 5). In the first embodiment, when the reception of the command or data is completed, the file channels 30 and 40 are DMed.
CP message using A controller 35, 45
Although the U10 is notified, in the third embodiment, the file channels 30 and 40 only display the status on the buffer memory, and the CPU 10 detects the status from the system bus 2.
【0042】また、この第3の実施例では、ハードディ
スク5,6から主記憶部13へのデータ読み込みの場合
も、バッファメモリから主記憶部13への転送は、CP
U10上のDMAコントローラ15が行う。In the third embodiment, when data is read from the hard disks 5, 6 to the main memory 13, the transfer from the buffer memory to the main memory 13 is CP.
The DMA controller 15 on U10 performs this.
【0043】このようにすることで、ファイルチャネル
30,40からDMAコントローラ35,45を除去で
きるもので、これによりコストダウンを図ることができ
る。また、現用側に故障があった場合、待機側に新たな
コマンドを発信することなく、直ちに待機側のバッファ
メモリを読み出すことができるので、現用側の故障時に
おける待機側の読み出しを高速に行うことができる。By doing so, the DMA controllers 35 and 45 can be removed from the file channels 30 and 40, thereby reducing the cost. Also, when there is a failure on the active side, the buffer memory on the standby side can be read immediately without sending a new command to the standby side, so the standby side can be read at high speed when the active side fails. be able to.
【0044】なお、上記各実施例においては、チャネル
としてファイルチャネルを用いた側について説明した
が、本発明はファイルチャネルに限定されるものではな
く、例えば通信制御チャネルや画像処理チャネルなどに
も適用できる。また、CPUを二重化するような場合で
も、データ転送に関しては本発明を適用することが可能
である。In each of the above embodiments, the side using the file channel as the channel has been described, but the present invention is not limited to the file channel, and is applied to, for example, a communication control channel or an image processing channel. it can. Further, even when the CPU is duplicated, the present invention can be applied to data transfer.
【0045】[0045]
【発明の効果】本発明によれば、例えばCPUとチャネ
ルがシステムバス接続され、上記チャネルを二重化した
電子計算機の二重化システムにおいて、CPUから各チ
ャネルに対するシステムバス経由のコマンド発行及びデ
ータ転送が1回づつで済むので、システムバスの占有率
を小さくでき、システム全体の処理性能の向上を図るこ
とができる。According to the present invention, for example, in a dual computer system in which a CPU and a channel are connected to the system bus and the above channel is duplicated, the command issuance and the data transfer from the CPU to each channel via the system bus are performed once. Since it is possible to reduce the system bus occupancy rate, the system bus occupancy rate can be reduced, and the processing performance of the entire system can be improved.
【図1】本発明の原理を説明するブロック図である。FIG. 1 is a block diagram illustrating the principle of the present invention.
【図2】本発明の第1の実施例を示すブロック図であ
る。FIG. 2 is a block diagram showing a first embodiment of the present invention.
【図3】図2におけるシステムバスインタフェース34
1,441の構成図である。FIG. 3 is a system bus interface 34 in FIG.
It is a block diagram of 1,441.
【図4】図2におけるモード/ID設定レジスタの具体
例を示す図である。4 is a diagram showing a specific example of a mode / ID setting register in FIG.
【図5】本発明の第2の実施例を示すブロック図であ
る。FIG. 5 is a block diagram showing a second embodiment of the present invention.
【図6】本発明の第3の実施例を示すブロック図であ
る。FIG. 6 is a block diagram showing a third embodiment of the present invention.
【図7】従来の二重化システムにおける信号処理方式を
説明するブロック図である。FIG. 7 is a block diagram illustrating a signal processing method in a conventional duplex system.
10 CPU 30,40 チャネル 101 DMA手段 301,401 モード設定手段 302,402 ID設定手段 303,403 アドレス設定手段 10 CPU 30, 40 channel 101 DMA means 301, 401 Mode setting means 302, 402 ID setting means 303, 403 Address setting means
Claims (2)
二重化されたチャネル(30,40)がシステムバス
(2)で接続され、一方のチャネルを現用側、他方のチ
ャネルを待機側とした二重化システムにおける信号処理
方式において、 前記CPU(10)にDMA(Direct Memory Access)
手段(101)を設けるとともに、前記各チャネル(3
0,40)に現用側モードと待機側モードを設定するモ
ード設定手段(301,401)及びチャネル識別用の
識別子設定手段(302,402)を設け、さらに各チ
ャネル(30,40)に対する前記CPU(10)から
のコマンドまたはデータの書き込み時と読み出し時のそ
れぞれのアドレスを各チャネル毎に設定できるアドレス
設定手段(303,403)を設け、 前記CPU(10)から各チャネル(30,40)への
コマンド書き込み時及びCPU(10)がDMA手段
(101)を用いて各チャネル(30,40)内のそれ
ぞれのバッファメモリへのデータ書き込み時における書
き込みアドレスを、各チャネルとも同一アドレスに設定
するとともに、上記各チャネルからのデータ読み出し時
における読み出しアドレスは、各チャネルで異なったア
ドレスに設定し、 CPU(10)からのコマンド及びデータが各チャネル
(30,40)に同時に書き込まれたのち、チャネル側
からCPUへのシステムバス(2)上の確認応答は、現
用側に設定されたチャネルが行い、コマンドあるいはデ
ータの受信完了時点でのメッセージによるCPU(1
0)への確認応答は、前記チャネル識別子を用いて両方
のチャネルが共に行うようにしたことを特徴とする二重
化システムにおける信号処理方式。1. A CPU (10) and a dual channel (30, 40) for the CPU are connected by a system bus (2), one channel being a working side and the other channel being a standby side. In a signal processing method in a duplex system, a DMA (Direct Memory Access) is provided to the CPU (10).
Means (101) are provided and each of the channels (3
0, 40) is provided with mode setting means (301, 401) for setting the active mode and the standby mode and identifier setting means (302, 402) for channel identification, and further, the CPU for each channel (30, 40) Address setting means (303, 403) for setting respective addresses at the time of writing and reading a command or data from (10) is provided for each channel, and from the CPU (10) to each channel (30, 40). Of the command writing time and when the CPU (10) uses the DMA means (101) to write data to each buffer memory in each channel (30, 40), the write address is set to the same address for each channel. , Read address when reading data from each channel is After the command and data from the CPU (10) are written to each channel (30, 40) at the same time, the confirmation response from the channel side to the CPU on the system bus (2) is The channel set on the active side performs the message (CPU (1
The signal processing method in the duplex system is characterized in that both channels perform the confirmation response to 0) together with the channel identifier.
認を、各チャネル(30,40)が、これらチャネル内
のバッファメモリ上にステータス表示を行い、CPU
(10)がシステムバス(2)により、そのステータス
を検知することにより行うことを特徴とする請求項1記
載の二重化システムにおける信号処理方式。2. Each channel (30, 40) confirms the reception completion of the command or data by displaying a status on a buffer memory in these channels, and the CPU
2. The signal processing method according to claim 1, wherein the step (10) is performed by detecting the status of the system bus (2).
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4175568A JPH0619633A (en) | 1992-07-02 | 1992-07-02 | Signal processing system in duplex system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4175568A JPH0619633A (en) | 1992-07-02 | 1992-07-02 | Signal processing system in duplex system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0619633A true JPH0619633A (en) | 1994-01-28 |
Family
ID=15998360
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP4175568A Withdrawn JPH0619633A (en) | 1992-07-02 | 1992-07-02 | Signal processing system in duplex system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0619633A (en) |
-
1992
- 1992-07-02 JP JP4175568A patent/JPH0619633A/en not_active Withdrawn
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR100290944B1 (en) | An apparatus and method for providing an interface to a compound universal serial bus controller | |
| US5159671A (en) | Data transfer unit for small computer system with simultaneous transfer to two memories and error detection and rewrite to substitute address | |
| US6052795A (en) | Recovery method and system for continued I/O processing upon a controller failure | |
| JP2846837B2 (en) | Software-controlled data processing method for early detection of faults | |
| JP2996440B2 (en) | Diagnosis method of data processing system | |
| US5935204A (en) | System for a multi-processor system wherein each processor transfers a data block from cache if a cache hit and from main memory only if cache miss | |
| JPH07281840A (en) | Dual disk recording device | |
| US7062593B2 (en) | Circuit system and method for data transmission between LPC devices | |
| JP2988443B2 (en) | Data transfer method | |
| KR100324279B1 (en) | System and Method of Coherencing Memory between Two Duplication Processors in the Switching System | |
| US5603057A (en) | System for initiating data transfer between input/output devices having separate address spaces in accordance with initializing information in two address packages | |
| JP2892429B2 (en) | Input/Output Control Unit | |
| JP2522412B2 (en) | Communication method between programmable controller and input / output device | |
| US5692218A (en) | System for transferring data between input/output devices having separate address spaces in accordance with initializing information in address packages | |
| JPH0520107A (en) | Redundant control device | |
| JPH10198524A (en) | Hard disk controller | |
| JP3012402B2 (en) | Information processing system | |
| JP2671743B2 (en) | Microcomputer | |
| JPS61165160A (en) | Bus controlling system | |
| JPH0934726A (en) | Interrupt control method | |
| JP3036449B2 (en) | Memory diagnostic device | |
| JPH07109599B2 (en) | Information transfer device for processing system | |
| JPH01175656A (en) | High speed data transferring system | |
| JPS63223946A (en) | Data memory system | |
| JPH03131953A (en) | Inter-processor communication equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 19991005 |