JP2000105753A - Two-way data transfer method - Google Patents

Two-way data transfer method

Info

Publication number
JP2000105753A
JP2000105753A JP10275172A JP27517298A JP2000105753A JP 2000105753 A JP2000105753 A JP 2000105753A JP 10275172 A JP10275172 A JP 10275172A JP 27517298 A JP27517298 A JP 27517298A JP 2000105753 A JP2000105753 A JP 2000105753A
Authority
JP
Japan
Prior art keywords
data
bank
processor
transfer
processors
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
JP10275172A
Other languages
Japanese (ja)
Inventor
Yuji Tomioka
祐至 冨岡
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.)
Hitachi Information Technology Co Ltd
Original Assignee
Hitachi Communication Systems Inc
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 Hitachi Communication Systems Inc filed Critical Hitachi Communication Systems Inc
Priority to JP10275172A priority Critical patent/JP2000105753A/en
Publication of JP2000105753A publication Critical patent/JP2000105753A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a two-way data transfer method by which a data reception side processor successively fetches transfer data from a transmission side processor without necessity to synchronize fetching with that transfer while allowing the execution of data transfer mutually between processors without lowering the throughput because of a collision or bus occupancy on a processor bus. SOLUTION: In the case of transferring data from respective processors 1 and 2 to the opposite processors 2 and 1, after empty banks on a RAM 3 are captured by the respective processors 1 and 2 and data to be transferred to the opposite processors 2 and 1 are temporarily stored, in the case of reporting a data transfer request to the opposite processors 2 and 1 as an interruption, at the opposite processors 2 and 1, after waiting that interruption, the transfer data can be successively extracted from the relevant banks as quickly as possible.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、相互に独立とされ
た2つのプロセッサ間で双方向にデータが転送される際
でのデータ双方向転送方法、更には、内部にプロセッサ
が具備されてなる制御装置が2重化として構成された
上、現用系装置が運用状態におかれている際に、現用系
装置から予備系装置にデータが転送される際でのデータ
双方向転送方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a bidirectional data transfer method when data is transferred bidirectionally between two mutually independent processors, and further comprises a processor inside. The present invention relates to a two-way data transfer method in which data is transferred from an active device to a standby device when an active device is in an operation state after a control device is configured as duplex. is there.

【0002】[0002]

【従来の技術】これまでにも、既にプロセッサ間でデー
タ転送が双方向に行われているが、その際でのデータ転
送方法としては、複数のプロセッサ各々から共通メモリ
をアクセスする方法や、プロセッサ自体が機能として有
しているシリアル通信ポートを介し相手方プロセッサと
接続されることにより行う方法等が考えられているのが
実情である。
2. Description of the Related Art Hitherto, data transfer has been performed bidirectionally between processors. In this case, a data transfer method includes a method of accessing a common memory from each of a plurality of processors, a method of accessing a processor, and the like. The reality is that a method of connecting to a counterpart processor via a serial communication port which itself has a function has been considered.

【0003】なお、この種の技術に関するものとして
は、例えば特開平09−160883号公報が挙げられ
るが、これによる場合、プロセッサ間でのデータ送受信
が通信ボードを介し行われたものとなっている。
[0003] Japanese Patent Application Laid-Open No. 09-160883, for example, relates to this type of technology. In this case, data is transmitted and received between processors via a communication board. .

【0004】[0004]

【発明が解決しようとする課題】しかしながら、これま
でのデータ双方向転送方法による場合には、プロセッサ
相互間で同時に相手方に対しデータ転送を行うことは不
可とされていたり、データ受信側プロセッサではまた、
転送データの紛失防止上、送信側プロセッサからのデー
タ転送に同期して転送データを取り込まざるを得なかっ
たりし、更には、プロセッサバス上での衝突やバス占有
による処理能力低下といった不具合があったものであ
る。
However, in the case of the conventional data bidirectional transfer method, it is impossible to simultaneously transfer data between the processors to the other party, or the data receiving processor does not. ,
In order to prevent loss of the transfer data, the transfer data must be fetched in synchronization with the data transfer from the transmitting processor, and further, there is a problem such as a collision on the processor bus or a reduction in processing capability due to bus occupation. Things.

【0005】一方、特開平09−160883号公報に
よる場合にはまた、送信ドライバ、受信ドライバ各々が
通信ボード上の資源(データバッファ等)をアクセスす
るに際して、同時アクセスが不可とされるべく、処理キ
ューによる排他制御処理が必要とされたものとなってい
る。
On the other hand, in the case of Japanese Patent Application Laid-Open No. 09-160883, processing is performed so that simultaneous access is disabled when each of a transmission driver and a reception driver accesses resources (data buffers and the like) on a communication board. Exclusive control processing by a queue is required.

【0006】本発明の目的は、プロセッサバス上での衝
突やバス占有による処理能力低下を伴うことなく、プロ
セッサ相互間で同時に相手方に対しデータ転送を行うこ
とが許容されつつ、データ受信側プロセッサでは、送信
側プロセッサからの転送データが、その転送に同期して
取り込むこと不要として随時取り込まれ得るデータ双方
向転送方法を供するにある。
SUMMARY OF THE INVENTION An object of the present invention is to allow a data receiving processor to simultaneously transfer data to a partner without causing a reduction in processing performance due to collision on the processor bus or bus occupation. Another object of the present invention is to provide a data bidirectional transfer method in which transfer data from a transmitting processor can be fetched at any time as it is unnecessary to fetch the data in synchronization with the transfer.

【0007】[0007]

【課題を解決するための手段】上記目的は、プロセッサ
間に共通資源として介在されているデュアルポートRA
Mが少なくとも2以上にバンク分けされた状態で、プロ
セッサ各々から相手方プロセッサにデータ転送が行われ
るに際しては、該プロセッサによりデュアルポートRA
M上の空きバンクが捕捉された上、該バンク上に相手方
プロセッサへの転送データが一時記憶された後、相手方
プロセッサに対してはデータ転送要求が該バンクに係る
割込みとして通知される一方、相手方プロセッサでは、
該割込みを待って、デュアルポートRAM上の該当バン
クから転送データが随時取り出された上、該転送データ
の取出し終了を待って、該当バンクを空き状態に復旧せ
しめることで達成される。また、制御装置が2重化とし
て構成されている場合には、現用系装置、予備系装置そ
れぞれに具備されているデュアルポートRAMが少なく
とも2以上にバンク分けされた状態で、現用系装置から
予備系装置にデータ転送が行われるに際しては、現用系
デュアルポートRAM上の空きバンクが捕捉された上、
該バンク上に予備系装置への転送データが一時記憶され
た後、予備系装置に対してはデータ転送要求が該バンク
に係る割込みとして通知される一方、予備系装置では、
該割込みを待って、現用系デュアルポートRAM上の該
当バンクから転送データが随時取り出された上、該転送
データの取出し終了を待って、現用系デュアルポートR
AM上の該当バンクを空き状態に復旧せしめることで達
成される。
SUMMARY OF THE INVENTION The object of the present invention is to provide a dual port RA interposed as a common resource between processors.
When data is transferred from each processor to the other processor in a state where M is divided into at least two banks, the dual port RA is used by the processor.
After the empty bank on M is captured and the transfer data to the partner processor is temporarily stored on the bank, a data transfer request is notified to the partner processor as an interrupt related to the bank, In the processor,
This is achieved by waiting for the interrupt, fetching the transfer data from the corresponding bank on the dual port RAM as needed, waiting for the end of the transfer data fetching, and restoring the corresponding bank to an empty state. In the case where the control device is configured to be duplicated, the dual port RAM provided in each of the active system device and the standby system device is divided into at least two banks. When data is transferred to the system device, an empty bank on the active dual port RAM is captured,
After the transfer data to the standby device is temporarily stored on the bank, a data transfer request is notified to the standby device as an interrupt related to the bank, while the standby device is
After waiting for the interrupt, transfer data is fetched from the corresponding bank on the active dual port RAM at any time, and after the transfer data is completely fetched, the active dual port R
This is achieved by restoring the corresponding bank on the AM to an empty state.

【0008】[0008]

【発明の実施の形態】以下、本発明の一実施形態につい
て図1,図2により説明する。先ず相互に独立とされた
2つのプロセッサがともに運用状態におかれた上、それ
らプロセッサ間で双方向にデータ転送が行われる場合に
ついて説明すれば、図1はそれらプロセッサを含むシス
テム概要構成を示したものである。図示のように、相互
に独立とされた2つのプロセッサ(CPU、あるいはM
PU)1,2がともに運用状態におかれた状態で、それ
らプロセッサ1,2間で双方向にデータが転送されるべ
く、それらプロセッサ1,2間には共通資源としてのデ
ュアルポートRAM(以下、単にRAMと称す)3が介
在配置されたものとなっている。これにより原則とし
て、プロセッサ1,2各々からは、同一アドレスへのデ
ータの同時記憶が禁止された条件下で、CPUバスを介
しRAM3が随時任意に読出し/書込みアクセス可とさ
れているものである。
DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below with reference to FIGS. First, a description will be given of a case where two mutually independent processors are put into an operating state and data transfer is performed bidirectionally between the processors. FIG. 1 shows a schematic configuration of a system including these processors. It is a thing. As shown, two mutually independent processors (CPU or M
PU) 1 and 2 are both in an operating state, and a dual-port RAM (hereinafter referred to as a common resource) is provided between the processors 1 and 2 so that data can be transferred bidirectionally between the processors 1 and 2. , Simply referred to as a RAM) 3. As a result, in principle, the RAM 3 can be arbitrarily read / written via the CPU bus at any time from the processors 1 and 2 under the condition that simultaneous storage of data at the same address is prohibited. .

【0009】さて、本例でのRAM3は連続アドレス空
間を有するものとされているが、そのアドレス空間は少
なくとも2等分割された上(2バンク構成)、プロセッ
サ1,2各々からの転送データがRAM3上に一時記憶
されるに際しては、例えばプロセッサ1からの転送デー
タは下位アドレス空間上に優先的に一時記憶された上、
随時プロセッサ2により読み出される一方では、プロセ
ッサ2からの転送データはまた、上位アドレス空間上に
優先的に一時記憶された上、随時プロセッサ1により読
み出されるものとなっている。これによりプロセッサ
1,2各々からデータ転送が散発的に行われる場合は、
2バンク構成でも必要十分とされているものである。し
かしながら、プロセッサ1,2各々からデータ転送が頻
度大にして行われる場合には、2バンク構成だけではそ
のようなデータ転送態様には対処し得ないことは明らか
である。したがって、一般的に、RAM3は4バンク以
上として構成されるべく、RAM3のアドレス空間は4
等分以上として等分割されればよいものである。例えば
RAM3を4バンク構成とし、それら4バンク各々に対
しプロセッサ1,2各々からの転送データ記憶順序上で
の優先度が付与された上(例えばプロセッサ1にとって
優先度が最も大きいバンクは、プロセッサ2にとっては
優先度が最も小さくなるべく優先度を付与)、現に空き
状態にあるバンクのうち、プロセッサ1にとって最も優
先度が大きいバンクに対してはプロセッサ1からの転送
データが一時記憶される一方では、プロセッサ2にとっ
て最も優先度が大きいバンクに対してはプロセッサ2か
らの転送データが一時記憶されるようにすればよいもの
である。
The RAM 3 in this embodiment has a continuous address space. The address space is divided into at least two equal parts (two banks), and transfer data from the processors 1 and 2 is stored in the RAM 3. When temporarily storing data in the RAM 3, for example, transfer data from the processor 1 is preferentially temporarily stored in a lower address space, and
While being read by the processor 2 at any time, the transfer data from the processor 2 is also temporarily stored in the upper address space preferentially and read by the processor 1 as needed. As a result, when data transfer is sporadically performed from each of the processors 1 and 2,
Even a two-bank configuration is required and sufficient. However, when data transfer is performed from each of the processors 1 and 2 at a high frequency, it is apparent that such a data transfer mode cannot be dealt with only by the two-bank configuration. Therefore, in general, the RAM 3 has an address space of 4
What is necessary is just to divide equally as equal or more. For example, the RAM 3 is composed of four banks, and the four banks are given priority in the order of storing the transfer data from the processors 1 and 2 (for example, the bank having the highest priority for the processor 1 is the processor 2 Priority is assigned to minimize the priority), and among the banks that are currently empty, the transfer data from the processor 1 is temporarily stored in the bank having the highest priority for the processor 1, while The transfer data from the processor 2 may be temporarily stored in the bank having the highest priority for the processor 2.

【0010】ここで、プロセッサ1からの転送データが
RAM3に一時記憶された後、プロセッサ2により随時
読み出される場合について具体的に説明すれば以下のよ
うである。即ち、プロセッサ1にとってはバンク#1が
優先度が最も大きく、しかもそのバンク#1が空き状態
にある状態で、プロセッサ1からデータ転送が行われる
場合を想定すれば、そのバンク#1が捕捉された上、そ
のバンク#1上にはプロセッサ2への転送データが一時
記憶された後、バンク制御レジスタ部1ー1上のバンク
#1対応部分には転送要求フラグがセットされるものと
なっている。これによりプロセッサ2に対しては、デー
タ転送要求がバンク#1に係る割込みとして割込み制御
部2ー3に通知されているものである。プロセッサ2で
は、その割込みからバンク#1上に自プロセッサ宛ての
転送データが存在していることが知れるものであり、そ
の割込みを待って、可及的速やかにバンク#1からは転
送データが取り出された上、その転送データの取出し終
了を待って、バンク制御レジスタクリア部2ー2上のバ
ンク#1対応部分によりバンク制御レジスタ部1ー1上
のバンク#1対応部分での転送要求フラグがリセットさ
れることによって、バンク#1が空き状態に復旧せしめ
られているものである。プロセッサ1では、バンク#1
の空き状態への復旧から、自プロセッサからの転送デー
タがプロセッサ2に取り込まれたことが知れるものであ
る。また、もしも、プロセッサ2へのデータ転送が引続
き行われる場合に、もしも、その時点でバンク#1が既
に復旧状態にあれば、そのバンク#1が捕捉されればよ
く、もしもまた、その時点でバンク#1がまだ復旧状態
になければ、バンク#2が空き状態にあることを確認の
上、バンク#2が捕捉されるようにすればよく、そのバ
ンク#2もまだ復旧状態になければ、バンク#3が空き
状態にあることを確認の上、バンク#3が捕捉されるよ
うにすればよいものである。
Here, the case where the transfer data from the processor 1 is temporarily stored in the RAM 3 and subsequently read out by the processor 2 as needed will be specifically described as follows. That is, assuming that data is transferred from the processor 1 in a state where the bank # 1 has the highest priority for the processor 1 and the bank # 1 is in an empty state, the bank # 1 is captured. After the transfer data to the processor 2 is temporarily stored in the bank # 1, a transfer request flag is set in a portion corresponding to the bank # 1 in the bank control register 1-1. I have. As a result, the processor 2 is notified of the data transfer request to the interrupt controller 2-3 as an interrupt related to the bank # 1. In the processor 2, it is known that transfer data addressed to the own processor exists on the bank # 1 from the interrupt, and the transfer data is taken out of the bank # 1 as soon as possible after waiting for the interrupt. After the transfer data has been fetched, the transfer request flag in the bank # 1 corresponding section on the bank control register section 1-1 is set by the bank # 1 corresponding section on the bank control register clear section 2-2. As a result of the reset, the bank # 1 is restored to an empty state. In processor 1, bank # 1
It is known that the transfer data from the own processor has been taken into the processor 2 from the recovery to the empty state. Also, if the data transfer to the processor 2 continues, if the bank # 1 is already in the recovery state at that time, the bank # 1 only needs to be captured. If bank # 1 is not yet in a recovery state, it is sufficient to confirm that bank # 2 is in an empty state and then to acquire bank # 2. If bank # 2 is not in a recovery state yet, After confirming that the bank # 3 is empty, the bank # 3 may be captured.

【0011】一方、プロセッサ2にとってはバンク#4
が優先度が最も大きく、しかもそのバンク#4が空き状
態にある状態で、プロセッサ2からデータ転送が行われ
る場合を想定すれば、そのバンク#4が捕捉された上、
そのバンク#4上にはプロセッサ1への転送データが一
時記憶された後、バンク制御レジスタ部2ー1上のバン
ク#4対応部分には転送要求フラグがセットされるもの
となっている。これによりプロセッサ1に対しては、デ
ータ転送要求がバンク#4に係る割込みとして割込み制
御部1ー3に通知されているものである。プロセッサ1
では、その割込みからバンク#4上に自プロセッサ宛て
の転送データが存在していることが知れるものであり、
その割込みを待って、バンク#4からは転送データが随
時取り出された上、その転送データの取出し終了を待っ
て、バンク制御レジスタクリア部1ー2上のバンク#1
対応部分によりバンク制御レジスタ部2ー1上のバンク
#4対応部分での転送要求フラグがリセットされること
によって、バンク#4が空き状態に復旧せしめられてい
るものである。プロセッサ1へのデータ転送が引続き行
われる場合での事情は、プロセッサ2へのデータ転送が
引続き行われる場合と同様とされているものである。
On the other hand, for processor 2, bank # 4
Is the highest priority, and furthermore, assuming that data is transferred from the processor 2 in a state where the bank # 4 is in an empty state, the bank # 4 is captured and
After the transfer data to the processor 1 is temporarily stored in the bank # 4, a transfer request flag is set in a portion corresponding to the bank # 4 in the bank control register unit 2-1. As a result, the data transfer request is notified to the interrupt control unit 1-3 as an interrupt related to the bank # 4 to the processor 1. Processor 1
Then, it is known from the interrupt that transfer data addressed to the own processor exists on bank # 4.
After the interruption, the transfer data is taken out from the bank # 4 as needed, and after the transfer data is taken out, the bank # 1 on the bank control register clear unit 1-2 is read.
The bank # 4 is restored to an empty state by resetting the transfer request flag in the bank # 4 corresponding section on the bank control register section 2-1 by the corresponding section. The situation where the data transfer to the processor 1 is continued is the same as the situation where the data transfer to the processor 2 is continued.

【0012】ところで、RAM3が4バンク構成とされ
ている場合、プロセッサ1からプロセッサ2へのデータ
転送にバンク#1,#2だけが使用され、また、プロセ
ッサ2からプロセッサ1へのデータ転送にバンク#4,
#3だけが使用されている場合には特に問題は生じない
と考えられる。ただ、プロセッサ1からプロセッサ2へ
のデータ転送にバンク#3,#4までもが、また、プロ
セッサ2からプロセッサ1へのデータ転送にバンク#
2,#1までもが使用される場合には問題である。とい
うのは、例えばプロセッサ1により空きバンク#3が捕
捉された時点から、データ転送要求がそのバンク#3に
係る割込みとしてプロセッサ2に通知されるまでの間
に、プロセッサ2によりバンク#3が捕捉される虞があ
るというものである。このような空きバンク捕捉上での
競合は、プロセッサ1,2各々での空きバンク捕捉状況
が相互に相手方に通知された上、空きバンク捕捉の際に
参照されることによって回避可能となっている。
When the RAM 3 has a 4-bank configuration, only the banks # 1 and # 2 are used for data transfer from the processor 1 to the processor 2, and the banks 3 are used for data transfer from the processor 2 to the processor 1. # 4
If only # 3 is used, no problem is considered to occur. However, banks # 3 and # 4 are used for data transfer from processor 1 to processor 2, and banks # 3 and # 4 are used for data transfer from processor 2 to processor 1.
This is a problem when 2 and up to # 1 are used. That is, for example, from the time when the empty bank # 3 is captured by the processor 1 to the time when the data transfer request is notified to the processor 2 as an interrupt related to the bank # 3, the bank 2 is captured by the processor 2. That is, there is a risk of being performed. Such a contention in capturing an empty bank can be avoided by notifying the other party of the status of capturing the empty bank in each of the processors 1 and 2 and referring to the situation when capturing the empty bank. .

【0013】以上の説明からも明らかなように、プロセ
ッサ1,2各々からの転送データのRAM3への同時記
憶が可能とされているものであり、一方のプロセッサか
らのデータ転送によって、他方のプロセッサでの動作が
即、制限されることはないものである。因みに、バンク
#1〜#4各々はプロセッサ1,2に共通なものとされ
ていることから、何れか一方のプロセッサから一方的
に、かつ連続的にデータ転送が行われる場合には、それ
らバンク#1〜#4の全てがそれらデータ転送のために
捕捉される場合があり得るものとなっている。
As is clear from the above description, the transfer data from each of the processors 1 and 2 can be simultaneously stored in the RAM 3, and the data transfer from one processor causes the other processor to transfer the data. Is not immediately restricted. Incidentally, since each of the banks # 1 to # 4 is common to the processors 1 and 2, when data transfer is performed unilaterally and continuously from one of the processors, the banks # 1 to # 4 are not used. It is possible that all of # 1 through # 4 may be captured for those data transfers.

【0014】図2はまた、内部にプロセッサが具備され
てなる制御装置が2重化として構成された上、現用系装
置が運用状態におかれている際に、現用系装置から予備
系装置にデータが転送される場合について説明すれば、
図2はそれらプロセッサを含むシステム概要構成を示し
たものである。図示のように、図1に示すものとの実質
的な相違点としては、プロセッサ1,2それぞれには現
用系RAM1ー4、予備系RAM2ー4が具備せしめら
れた上、現用系RAM1ー4、予備系RAM2ー4はC
PUバスを介しプロセッサ1,2各々からともにアクセ
ス可とされていることが挙げられ、これ以外は図1に示
すものに事情はほぼ同様となっている。但し、データの
転送方向に関しては、一方的に現用系から現用系RAM
を介し予備系にデータ転送が行われるものとなってい
る。これは、現用系に何等かの障害が発生した際に、制
御処理上での連続性が維持された状態として予備系が新
たな現用系として速やかに立上げされるべく、両系間で
内部データの同一性が常時一致せしめておく必要がある
からである。例えばプロセッサ1が現用系制御装置とし
て運用状態に置かれている場合には、その現用系制御装
置での内部データがRAM1ー4を介しプロセッサ2と
しての予備系制御装置に一方的に転送され、そのプロセ
ッサ1での何等かの障害発生により、プロセッサ2が現
用系制御装置として新たに運用状態におかれる場合に
は、その現用系制御装置での内部データはRAM2ー4
を介しプロセッサ1としての予備系制御装置に一方的に
転送されているものである。
FIG. 2 also shows that the control device including the processor therein is configured to be redundant, and that the active device is switched from the active device to the standby device when the active device is in operation. Describing when data is transferred,
FIG. 2 shows a schematic system configuration including these processors. As shown in the drawing, the substantial difference from the one shown in FIG. 1 is that each of the processors 1 and 2 is provided with an active RAM 1-4 and a spare RAM 2-4, and furthermore, has an active RAM 1-4. , The spare RAM2-4 is C
It is mentioned that both of the processors 1 and 2 can be accessed via the PU bus, and other than that, the situation is almost the same as that shown in FIG. However, regarding the data transfer direction, unilaterally from the active system to the active RAM
, Data is transferred to the standby system. This is because, when any failure occurs in the active system, the standby system is immediately started up as a new active system while maintaining continuity in control processing. This is because it is necessary to always make the data identical. For example, when the processor 1 is placed in the operating state as the active control device, the internal data in the active control device is unilaterally transferred to the standby control device as the processor 2 via the RAM 1-4. When the processor 2 is newly put into operation as an active controller due to the occurrence of some failure in the processor 1, the internal data in the active controller is stored in the RAM2-4.
Is unilaterally transferred to the standby system control device as the processor 1 via the.

【0015】[0015]

【発明の効果】以上、説明したように、請求項1,2に
よる場合には、プロセッサバス上での衝突やバス占有に
よる処理能力低下を伴うことなく、プロセッサ相互間で
同時に相手方に対しデータ転送を行うことが許容されつ
つ、データ受信側プロセッサでは、送信側プロセッサか
らの転送データが、その転送に同期して取り込むこと不
要として随時取り込まれ得るものとなっている。
As described above, according to the first and second aspects of the present invention, the data transfer between the processors to the other party can be performed simultaneously without causing a collision on the processor bus or a decrease in the processing capacity due to the bus occupation. Is allowed, the transfer data from the transmitting processor can be fetched at any time in the data receiving processor as it is unnecessary to fetch the data in synchronization with the transfer.

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

【図1】図1は、相互に独立とされた2つのプロセッサ
間で双方向にデータ転送が行われる場合での、それらプ
ロセッサを含むシステム概要構成を示す図
FIG. 1 is a diagram illustrating a schematic configuration of a system including two independent processors in a case where data transfer is performed bidirectionally between the processors;

【図2】図2は、内部にプロセッサが具備されてなる制
御装置が2重化として構成された上、現用系装置が運用
状態におかれている際に、現用系装置から予備系装置に
データが転送される場合での、それらプロセッサを含む
システム概要構成を示す図
FIG. 2 is a diagram illustrating a configuration in which a control device including a processor therein is configured as a duplex device, and when an active system device is in an operation state, the active system device is switched to a standby system device; Diagram showing a system outline configuration including these processors when data is transferred

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

1,2…プロセッサ、1ー1,2ー1…バンク制御レジ
スタ部、1ー2,2ー2…バンク制御レジスタクリア
部、1ー3,2ー3…割込み制御部、3、1ー4,2ー
4…デュアルポートRAM
1, 2, processor, 1-1, 2-1, bank control register section, 1-2, 2-2 bank control register clear section, 1-3, 2-3 ... interrupt control section, 3, 1-4 , 2-4 ... Dual port RAM

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 相互に独立とされた2つのプロセッサ間
で双方向にデータが転送される際でのデータ双方向転送
方法であって、プロセッサ間に共通資源として介在され
ているデュアルポートRAMが少なくとも2以上にバン
ク分けされた状態で、プロセッサ各々から相互に相手方
プロセッサにデータ転送が行われるに際しては、該プロ
セッサによりデュアルポートRAM上の空きバンクが捕
捉された上、該バンク上に相手方プロセッサへの転送デ
ータが一時記憶された後、相手方プロセッサに対しては
データ転送要求が該バンクに係る割込みとして通知され
る一方、相手方プロセッサでは、該割込みを待って、デ
ュアルポートRAM上の該当バンクから転送データが随
時取り出された上、該転送データの取出し終了を待っ
て、該当バンクを空き状態に復旧せしめるようにしたデ
ータ双方向転送方法。
1. A data bidirectional transfer method in which data is transferred bidirectionally between two mutually independent processors, wherein a dual port RAM interposed as a common resource between the processors is provided. When data is mutually transferred from the processors to the partner processor in a state where the banks are divided into at least two or more banks, an empty bank on the dual port RAM is captured by the processor, and then the partner processor is placed on the bank. After the transfer data is temporarily stored, the other processor is notified of the data transfer request as an interrupt related to the bank, while the other processor waits for the interrupt and transfers data from the corresponding bank on the dual port RAM. After the data is taken out at any time and the transfer data is taken out, the corresponding bank is vacated. A data bidirectional transfer method that restores the state.
【請求項2】 内部にプロセッサが具備されてなる制御
装置が2重化として構成された上、現用系装置が運用状
態におかれている際に、現用系装置から予備系装置にデ
ータが転送される際でのデータ双方向転送方法であっ
て、現用系装置、予備系装置それぞれに具備されている
デュアルポートRAMが少なくとも2以上にバンク分け
された状態で、現用系装置から予備系装置にデータ転送
が行われるに際しては、現用系デュアルポートRAM上
の空きバンクが捕捉された上、該バンク上に予備系装置
への転送データが一時記憶された後、予備系装置に対し
てはデータ転送要求が該バンクに係る割込みとして通知
される一方、予備系装置では、該割込みを待って、現用
系デュアルポートRAM上の該当バンクから転送データ
が随時取り出された上、該転送データの取出し終了を待
って、現用系デュアルポートRAM上の該当バンクを空
き状態に復旧せしめるようにしたデータ双方向転送方
法。
2. A control device having a processor therein is configured to be redundant, and data is transferred from the active device to the standby device when the active device is in operation. In this method, a dual port RAM provided in each of an active device and a standby device is divided into at least two banks. When data transfer is performed, an empty bank in the active dual port RAM is captured, and data to be transferred to the standby device is temporarily stored in the bank. While the request is notified as an interrupt related to the bank, the standby device waits for the interrupt and fetches transfer data from the corresponding bank on the active dual port RAM as needed. And a data bidirectional transfer method in which the corresponding bank on the active dual port RAM is restored to an empty state after the completion of the transfer data extraction.
JP10275172A 1998-09-29 1998-09-29 Two-way data transfer method Pending JP2000105753A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10275172A JP2000105753A (en) 1998-09-29 1998-09-29 Two-way data transfer method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10275172A JP2000105753A (en) 1998-09-29 1998-09-29 Two-way data transfer method

Publications (1)

Publication Number Publication Date
JP2000105753A true JP2000105753A (en) 2000-04-11

Family

ID=17551681

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10275172A Pending JP2000105753A (en) 1998-09-29 1998-09-29 Two-way data transfer method

Country Status (1)

Country Link
JP (1) JP2000105753A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7155550B2 (en) 2001-05-30 2006-12-26 Omron Corporation Program-executing apparatus and portable information processing apparatus
US7599998B2 (en) 2003-12-18 2009-10-06 Arm Limited Message handling communication between a source processor core and destination processor cores

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7155550B2 (en) 2001-05-30 2006-12-26 Omron Corporation Program-executing apparatus and portable information processing apparatus
US7599998B2 (en) 2003-12-18 2009-10-06 Arm Limited Message handling communication between a source processor core and destination processor cores

Similar Documents

Publication Publication Date Title
US5758157A (en) Method and system for providing service processor capability in a data processing by transmitting service processor requests between processing complexes
US7797458B2 (en) Data synchronous system for synchronizing updated data in a redundant system
JP2008165269A (en) Data relay device, storage device, and response delay monitoring method
JP2000105753A (en) Two-way data transfer method
US20020089940A1 (en) Duplexing apparatus and method in large scale system
JP2004070642A (en) Communication system for performing data transfer through shared memory
US20060129714A1 (en) Method and apparatus for transferring data
JP2007334668A (en) Memory dumping method, cluster system, node constituting the system, and program
JP2001022718A (en) Parallel processor
JP2000148523A (en) Duplex memory device and method for switching memory
JPH054040Y2 (en)
JP2000155738A (en) Data processor
KR100735435B1 (en) Data processing method in duplicated boards
KR100377931B1 (en) Control apparatus and method of duplex system
JP4411138B2 (en) Data flow control system, circuit thereof, and method thereof
KR100395452B1 (en) Arbitrating Apparatus Of Peripheral Processor And Device In Switching System
JP2723245B2 (en) Facsimile storage and switching equipment
JPH05314061A (en) Bus interface control system
JP2000339181A (en) Inter-process communication method and inter-process communication equipment
JPS6154556A (en) Inter-memory data transfer system
JP2573790B2 (en) Transfer control device
JPH0628407A (en) Data base system
JP2583169B2 (en) Operation program switching method for communication processing device
JPH10320351A (en) Buffer system
JP2006165642A (en) Control unit and control method in dual system