JPH03230249A - Data transfer system using shared memory - Google Patents
Data transfer system using shared memoryInfo
- Publication number
- JPH03230249A JPH03230249A JP2668590A JP2668590A JPH03230249A JP H03230249 A JPH03230249 A JP H03230249A JP 2668590 A JP2668590 A JP 2668590A JP 2668590 A JP2668590 A JP 2668590A JP H03230249 A JPH03230249 A JP H03230249A
- Authority
- JP
- Japan
- Prior art keywords
- information processing
- shared memory
- data
- station
- processing part
- 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
- 230000015654 memory Effects 0.000 title claims abstract description 39
- 230000010365 information processing Effects 0.000 claims abstract description 37
- 238000000034 method Methods 0.000 claims description 14
- 238000004891 communication Methods 0.000 claims description 8
- 238000010586 diagram Methods 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 230000007717 exclusion Effects 0.000 description 1
- 238000005728 strengthening Methods 0.000 description 1
Landscapes
- Multi Processors (AREA)
- Information Transfer Systems (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は共有メモリを用いたデータ転送方式に関し、特
にデータ転送を行なう主局と従局が共有メモリを介して
データ転送を行なう共有メモリを用いたデータ転送方式
に関する。[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a data transfer method using a shared memory, and particularly to a data transfer system using a shared memory in which a master station and a slave station that transfer data transfer data via a shared memory. Regarding the data transfer method used.
従来、主局から従局ヘデータを送信する場合、第2図に
示すように、主局2oの情報処理部2はステータス線1
4を使用し、従局21へ送信データありの通知を行なう
。これに対し、従局21がらの受信可の応答が得られる
と、メモリ1に記憶していたデータをデータバス12a
、情報処理部2およびデータバス12bを介して従局2
1へ1バイトずつ送出する。この場合、主局2o及び従
局21の各情報処理部2,3はステータス線14を使用
し、互いに他の情報処理部の状態を確認したのちデータ
の送信、受信を行なう。従局21では主局20から受信
したデータを情報処理部3゜データバス12Cを介して
メモリ4に格納するようになっている。なお、13a、
13bはそれぞれアドレスバスとして利用される。Conventionally, when transmitting data from a master station to a slave station, as shown in FIG.
4 to notify the slave station 21 that there is data to be transmitted. In response, when a response indicating that reception is possible is obtained from the slave station 21, the data stored in the memory 1 is transferred to the data bus 12a.
, the slave station 2 via the information processing section 2 and the data bus 12b.
Send one byte at a time to 1. In this case, each of the information processing units 2 and 3 of the main station 2o and the slave station 21 uses the status line 14 to mutually check the status of the other information processing units, and then transmits and receives data. The slave station 21 stores data received from the master station 20 in the memory 4 via the information processing section 3.degree. data bus 12C. Furthermore, 13a,
13b are each used as an address bus.
上述した従来のデータ転送方式は、主、従両局の情報処
理部がステータス線を用いて互いに他の情報処理部の状
態を確認しながら1バイトずつ送受信を行なっているた
め、1回のデータ転送におけるオーバーヘッドが大きく
、情報処理部の処理効率が悪いという欠点がある。In the conventional data transfer method described above, the information processing units of both the main and slave stations use the status line to check the status of the other information processing units while transmitting and receiving one byte at a time. The drawbacks are that the overhead in transfer is large and the processing efficiency of the information processing section is poor.
本発明の目的はこのような欠点を解決し、情報処理部の
処理効率を著しく向上したデータ転送方式を提供するこ
とにある。SUMMARY OF THE INVENTION An object of the present invention is to provide a data transfer method that solves these drawbacks and significantly improves the processing efficiency of an information processing section.
本発明の方式は、それぞれ転送データに関する情報処理
を行なう情報処理部とデータ記憶のためのメモリ部とを
備え、通信開始を指示するステータス線とデータ転送用
のデータバスを介してデータを転送する主局と従局間で
共有メモリを介してデータ転送を行なう共有メモリを用
いたデータ転送方式であって、前記主局から前記従局に
送信するデータを記憶する共有メモリと、前記主局およ
び従局の情報処理部の制御のもとに前記共有メモリに前
記主局および従局の情報処理部を互いに排他的にアクセ
スさせるカスケード接続した2個一対のセレクタとを備
えて構成される。The method of the present invention includes an information processing section that processes information regarding transfer data and a memory section for storing data, and transfers data via a status line that instructs to start communication and a data bus for data transfer. A data transfer method using a shared memory in which data is transferred between a master station and a slave station via a shared memory. It is configured to include a pair of cascade-connected selectors that allow the information processing units of the master station and the slave station to mutually exclusively access the shared memory under the control of the information processing unit.
次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.
第1図は本発明によるデータ転送方式の一実施例の構成
図である。第1図において、1は主局20のメモリ、2
は主局20の情報処理部、3は従局21の情報処理部、
4は従局21のメモリ、5は主局と従局のデータバスの
切り替えを行なうセレクタ、6は主局と従局のアドレス
バスの切り替えを行なうセレクタ、7は主局と従局の共
有メモリ、8は通信用ステータス線、9.9a、9bは
データバス、10.10a、10bはアドレスバス、1
1は通信線である。 ′
主局20が共有メモリ7を占有している状態を考えてみ
る。この状態は、主局20から特定の命令をデータバス
9aを介して送出することによってデータバス9a、9
bを共有メモリ7と接続させ、またセレクタ5から通信
線11を介してセレクタ6を制御し、アドレスバス10
aとアドレスバス10を共有メモリ7に接続させること
によって行なう。FIG. 1 is a block diagram of an embodiment of a data transfer system according to the present invention. In FIG. 1, 1 is the memory of the main station 20, 2
3 is the information processing section of the master station 20, 3 is the information processing section of the slave station 21,
4 is the memory of the slave station 21, 5 is a selector for switching the data bus between the master station and the slave station, 6 is a selector for switching the address bus between the master station and the slave station, 7 is a shared memory between the master station and the slave station, 8 is communication 9.9a, 9b are data buses, 10.10a, 10b are address buses, 1
1 is a communication line. ' Consider a situation where the main station 20 occupies the shared memory 7. This state can be established by sending a specific command from the main station 20 via the data bus 9a.
b is connected to the shared memory 7, and the selector 6 is controlled via the communication line 11 from the selector 5, and the address bus 10
This is done by connecting the address bus 10 to the shared memory 7.
この状態で主局20の情報処理部2は、従局21に処理
してもらいたいデータを共有メモリ7に書き込む。書込
み終了後、情報処理部2はステータス線8を利用して従
局21の情報処理部3の状態を調べ、情報処理部3から
受信可の応答があり次第、情報処理部3に対して共有メ
モリ7の使用許可通知及び処理依頼通知を行なう。In this state, the information processing unit 2 of the master station 20 writes data that it wants the slave station 21 to process into the shared memory 7. After the writing is completed, the information processing unit 2 checks the status of the information processing unit 3 of the slave station 21 using the status line 8, and as soon as there is a response from the information processing unit 3 indicating that the data can be received, the information processing unit 2 transfers the information to the shared memory to the information processing unit 3. 7, notification of permission to use and notification of processing request will be sent.
処理依頼通知を受取った情報処理部3は、特定の命令を
データバス9bに送出することによってセレクタ5にス
イッチ切替を通知する。The information processing unit 3 that has received the processing request notification notifies the selector 5 of the switch change by sending a specific command to the data bus 9b.
セレクタ5は、スイッチ切替を通知されると通信線11
を介してセレクタ6にスイッチ切替を通知し、こうして
共有メモリ7は従局21によって占有された状態となる
。すなわちセレクタ5とセレクタ6は、主局20と従局
21の情報処理部2゜3からの共有メモリ7に対する同
時アクセスの相互排除を実現する。When the selector 5 is notified of the switch change, the selector 5 connects the communication line 11 to the communication line 11.
The switch change is notified to the selector 6 via the slave station 21, and the shared memory 7 becomes occupied by the slave station 21. That is, the selector 5 and the selector 6 realize mutual exclusion of simultaneous accesses to the shared memory 7 from the information processing units 2.3 of the master station 20 and slave station 21.
このあと、従局21の情報処理部3は、共有メモリ7に
格納されたデータに対する処理を行ない、その結果をデ
ータバス9を介して主局20に供給する。Thereafter, the information processing unit 3 of the slave station 21 processes the data stored in the shared memory 7 and supplies the results to the master station 20 via the data bus 9.
なお、従局1の処理が完了した共有メモリ内のデータを
再度主局20に返送する場合にも上述した処理によって
セレクタ5.6を主局側に接続させ、データ転送すれば
よい。Note that even when the data in the shared memory that has been processed by the slave station 1 is to be sent back to the master station 20 again, the selector 5.6 may be connected to the master station side by the above-described process and the data can be transferred.
また、上述した実施例は、2局接続、1共有メモリの場
合を例としたが、任意個の局、任意個の共有メモリが接
続されている場合にも容易に実施しうろことは明らかで
ある。Furthermore, although the above-mentioned embodiment is based on the case where two stations are connected and one shared memory is connected, it is clear that it can be easily implemented when any number of stations and any number of shared memories are connected. be.
こうして、主局と従局のデータ転送時の拘束時間を処理
依頼のための通知時間のみとして情報処理部の独立性を
強化して処理効率を著しく向上させることができる。ま
た、独立性の強化によってパイプライン処理などの並列
処理への応用性も著しく増大する。In this way, the constraint time during data transfer between the master station and the slave station is limited to the notification time for processing requests, thereby strengthening the independence of the information processing section and significantly improving processing efficiency. Furthermore, the increased independence significantly increases the applicability to parallel processing such as pipeline processing.
以上説明したように本発明は、主局と従局間で共有メモ
リを使用してデータ転送を行なう場合に、データ転送時
の情報処理部の拘束時間を処理依頼のため通知時間のみ
とすることにより、主局と従局との情報処理部の処理効
率を著しく向上させ、処理の高速化、及びコストダウン
が図れる効果がある。As explained above, the present invention, when transferring data between a master station and a slave station using a shared memory, reduces the constraint time of the information processing unit at the time of data transfer to only the notification time for processing requests. This has the effect of significantly improving the processing efficiency of the information processing units of the master station and the slave station, speeding up processing, and reducing costs.
第1図は本発明によるデータ転送方式の一実施例を示す
構成図、第2図は従来のデータ転送方式を示す構成図で
ある。
1.4・・・メモリ、2,3・・・情報処理部、5.6
・・・セレクタ、7・・・共有メモリ、8・・・ステー
タス線、9.9a、9b=・・データバス、10.10
a、lOb・・・アドレスバス、11・・・通信線、1
2a〜12c・・・データバス、13a、13b・・・
アドレスバス、14・・・ステータス線、20・・・主
局、21・・・従0°
代理人4T8!士内原 晋)[囚FIG. 1 is a block diagram showing an embodiment of a data transfer method according to the present invention, and FIG. 2 is a block diagram showing a conventional data transfer method. 1.4...Memory, 2,3...Information processing unit, 5.6
...Selector, 7...Shared memory, 8...Status line, 9.9a, 9b=...Data bus, 10.10
a, lOb...Address bus, 11...Communication line, 1
2a to 12c...data bus, 13a, 13b...
Address bus, 14...Status line, 20...Main station, 21...Slave 0°
Agent 4T8! Susumu Shiuchihara) [Prisoner
Claims (1)
部とデータ記憶のためのメモリ部とを備え、通信開始を
指示するステータス線とデータ転送用のデータバスを介
してデータを転送する主局と従局間で共有メモリを介し
てデータ転送を行なう共有メモリを用いたデータ転送方
式であって、前記主局から前記従局に送信するデータを
記憶する共有メモリと、前記主局および従局の情報処理
部の制御のもとに前記共有メモリに前記主局および従局
の情報処理部を互いに排他的にアクセスさせるカスケー
ド接続した2個一対のセレクタとを備えて成ることを特
徴とする共有メモリを用いたデータ転送方式。Each station is equipped with an information processing section for processing information related to transferred data and a memory section for storing data, and is used to transfer data between a master station and a slave station via a status line for instructing the start of communication and a data bus for data transfer. A data transfer method using a shared memory in which data is transferred via a shared memory, which includes a shared memory for storing data to be transmitted from the master station to the slave stations, and a shared memory for controlling the information processing units of the master station and the slave stations. A data transfer method using a shared memory, characterized in that the shared memory is provided with a pair of cascade-connected selectors that allow the information processing units of the master station and the slave station to mutually exclusively access the shared memory.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2668590A JPH03230249A (en) | 1990-02-05 | 1990-02-05 | Data transfer system using shared memory |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2668590A JPH03230249A (en) | 1990-02-05 | 1990-02-05 | Data transfer system using shared memory |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH03230249A true JPH03230249A (en) | 1991-10-14 |
Family
ID=12200251
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2668590A Pending JPH03230249A (en) | 1990-02-05 | 1990-02-05 | Data transfer system using shared memory |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH03230249A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007310897A (en) * | 2007-06-18 | 2007-11-29 | Hitachi Ltd | Computer system, computer control method, and storage medium storing control program |
| JP2009032241A (en) * | 2008-06-05 | 2009-02-12 | Hitachi Ltd | Computer system, computer control method, and storage medium storing control program |
-
1990
- 1990-02-05 JP JP2668590A patent/JPH03230249A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007310897A (en) * | 2007-06-18 | 2007-11-29 | Hitachi Ltd | Computer system, computer control method, and storage medium storing control program |
| JP2009032241A (en) * | 2008-06-05 | 2009-02-12 | Hitachi Ltd | Computer system, computer control method, and storage medium storing control program |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS6194433A (en) | Serial bus control method | |
| JPH114279A (en) | Advanced intersystem transmission method and mechanism | |
| JPH04346151A (en) | Data processor | |
| JPH03230249A (en) | Data transfer system using shared memory | |
| JP3564380B2 (en) | Two-way communication system | |
| JPH054040Y2 (en) | ||
| JP2002101433A (en) | Method for taking over data at updating file | |
| KR19990047721A (en) | Data redundancy processing unit | |
| KR20000003010A (en) | Duplication device of processor using two common memorys and method thereof | |
| JPH05244225A (en) | Non-disruptive system switching method | |
| JPS6146550A (en) | Connecting device between busses | |
| JPH11127179A (en) | Redundant communication controller | |
| JPH0236016B2 (en) | ||
| JPS592942B2 (en) | Multi data processing device | |
| JP2705955B2 (en) | Parallel information processing device | |
| JPH10341257A (en) | Packet processing unit | |
| JP2616010B2 (en) | Packet network | |
| JPS62133555A (en) | Dma address control system | |
| JPH0991222A (en) | Multiprotocol communication controller | |
| JPH04278732A (en) | Device switching system | |
| JPH0441857B2 (en) | ||
| JPH047938A (en) | Electronic equipment with exclusive control communication function and communication system using the same | |
| JPH0129465B2 (en) | ||
| JPH01251267A (en) | Data transfer system | |
| JPH022256A (en) | Data communication system |