JPH0535693A - Data transfer device - Google Patents
Data transfer deviceInfo
- Publication number
- JPH0535693A JPH0535693A JP21437891A JP21437891A JPH0535693A JP H0535693 A JPH0535693 A JP H0535693A JP 21437891 A JP21437891 A JP 21437891A JP 21437891 A JP21437891 A JP 21437891A JP H0535693 A JPH0535693 A JP H0535693A
- Authority
- JP
- Japan
- Prior art keywords
- data transfer
- cpu
- shared memory
- data
- central processing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Multi Processors (AREA)
- Information Transfer Systems (AREA)
Abstract
Description
【0001】[0001]
【技術分野】本発明はデータ転送装置に関し、特に3台
以上のCPU(中央処理装置)間のデータ転送方法に関
する。TECHNICAL FIELD The present invention relates to a data transfer device, and more particularly to a data transfer method between three or more CPUs (central processing units).
【0002】[0002]
【従来技術】従来、CPU間のデータ転送方法において
は、CPU間毎に共有メモリ(DPM:Dual Port Memor
y)を設け、この共有メモリを用いてCPU間のデータ
転送を行っている。2. Description of the Related Art Conventionally, in a data transfer method between CPUs, a shared memory (DPM: Dual Port Memory) is provided for each CPU.
y) is provided, and data transfer between CPUs is performed using this shared memory.
【0003】このような従来のデータ転送方法では、C
PU間でデータ転送が必要な区間毎に共有メモリを必要
とするので、部品と配線とが増加するという欠点があ
る。In such a conventional data transfer method, C
Since a shared memory is required for each section where data transfer is required between PUs, there is a drawback in that the number of parts and wiring is increased.
【0004】[0004]
【発明の目的】本発明は上記のような従来のものの欠点
を除去すべくなされたもので、部品と配線とを増加する
ことなく、CPU間のデータ転送を可能とすることがで
きるデータ転送装置の提供を目的とする。SUMMARY OF THE INVENTION The present invention has been made to eliminate the above-mentioned drawbacks of the prior art, and is a data transfer device capable of transferring data between CPUs without increasing the number of parts and wiring. For the purpose of providing.
【0005】[0005]
【発明の構成】本発明によるデータ転送装置は、第1の
中央処理装置に各々接続された第1および第2の共有メ
モリと、第1の共有メモリに接続された第2の中央処理
装置と、第2の共有メモリに接続された第3の中央処理
装置と、前記第2の中央処理装置から他の中央処理装置
にデータを転送するときに前記第1の共有メモリに書込
まれた転送先を読出す読出し手段と、前記読出し手段に
よって読出された前記転送先が前記第3の中央処理装置
のときに前記第1の共有メモリのデータを前記第2の共
有メモリに転送する転送手段とを有することを特徴とす
る。A data transfer apparatus according to the present invention comprises first and second shared memories connected to a first central processing unit, and a second central processing unit connected to the first shared memory. A third central processing unit connected to the second shared memory, and a transfer written in the first shared memory when transferring data from the second central processing unit to another central processing unit Read means for reading the destination, and transfer means for transferring the data of the first shared memory to the second shared memory when the transfer destination read by the read means is the third central processing unit. It is characterized by having.
【0006】[0006]
【実施例】次に、本発明の一実施例について図面を参照
して説明する。An embodiment of the present invention will be described with reference to the drawings.
【0007】図1は本発明の一実施例の構成を示すブロ
ック図である。図において、CPU2はCPUバス100
を介して共有メモリ(DPM)間データ転送回路(以下
データ転送回路とする)1および共有メモリ5,6に接
続され、CPU3はCPUバス101 を介して共有メモリ
5に接続され、CPU4はCPUバス102 を介して共有
メモリ6に接続されている。FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. In the figure, CPU2 is a CPU bus 100
To a shared memory (DPM) data transfer circuit (hereinafter referred to as a data transfer circuit) 1 and shared memories 5 and 6, a CPU 3 is connected to a shared memory 5 via a CPU bus 101, and a CPU 4 is a CPU bus. It is connected to the shared memory 6 via 102.
【0008】すなわち、CPU2〜4は共有メモリ5,
6にポイント・トウ・マルチで接続され、ポイント側に
あたるCPU2とマルチ側にあたるCPU3,4とが夫
々共有メモリ5,6に接続されている。That is, the CPUs 2 to 4 share the shared memory 5,
The point-to-multi is connected to the CPU 6, and the CPU 2 on the point side and the CPUs 3 and 4 on the multi side are connected to the shared memories 5 and 6, respectively.
【0009】図2は図1のデータ転送回路1の構成を示
すブロック図である。図において、データ転送回路1は
CPUバス100 の使用状況を監視するバス管理部10
と、CPU3,4からのデータ転送要求信号131 ,141
を受付けるデータ転送要求受付部11と、共有メモリ
5,6から転送先およびデータ転送数を読出す転送命令
読出し部12と、共有メモリ5,6間のデータ転送を行
うデータ転送部13とから構成されている。FIG. 2 is a block diagram showing the configuration of the data transfer circuit 1 of FIG. In the figure, a data transfer circuit 1 is a bus management unit 10 that monitors the usage status of the CPU bus 100.
And data transfer request signals 131, 141 from the CPUs 3, 4
And a data transfer request receiving unit 11 for receiving the transfer destination and the number of data transfers from the shared memories 5 and 6, and a data transfer unit 13 for transferring data between the shared memories 5 and 6. Has been done.
【0010】これら図1および図2を用いて本発明の一
実施例の動作について説明する。CPU2がCPU3,
4に対してデータ転送を行う場合、CPUバス100 を介
してCPU2から共有メモリ5,6にデータが書込まれ
る。その後に、CPU3,4が共有メモリ5,6から該
データを読出すことによって、CPU2とCPU3,4
との間のデータ転送が行われる。The operation of the embodiment of the present invention will be described with reference to FIGS. 1 and 2. CPU2 is CPU3
4 is written in the shared memories 5 and 6 from the CPU 2 via the CPU bus 100. After that, the CPUs 3 and 4 read out the data from the shared memories 5 and 6, and the CPUs 2 and 3 and 4
Data transfer between the two.
【0011】また、CPU3,4がCPU2に対してデ
ータ転送を行う場合、CPU3,4は夫々CPUバス10
1 ,102 を介して共有メモリ5,6にデータを書込むと
ともに、共有メモリ5,6の特定アドレスに転送先のC
PU2の識別子を書込み、データ転送要求信号131 ,14
1 をデータ転送回路1に出力する。When the CPUs 3 and 4 transfer data to the CPU 2, the CPUs 3 and 4 are connected to the CPU bus 10 respectively.
The data is written to the shared memories 5 and 6 via 1 and 102, and the transfer destination C is written to a specific address of the shared memories 5 and 6.
Write the identifier of PU2, and send the data transfer request signals 131, 14
1 is output to the data transfer circuit 1.
【0012】データ転送回路1ではデータ転送要求受付
け部11がCPU3,4からのデータ転送要求信号131
,141 を受付けると、データ転送要求のあったCPU
3,4を転送命令読出し部12に通知する。転送命令読
出し部12はバス管理部10がCPUバス100 が使用さ
れていないことを検出すると、データ転送要求受付け部
11から通知されたCPU3,4に対応する共有メモリ
5,6の特定アドレスからその内容を読出す。転送命令
読出し部12はその内容によってCPU3,4からのデ
ータ転送要求がCPU2に対するものであることを検出
すると、その旨をCPUバス100 を介してCPU2に通
知する。In the data transfer circuit 1, the data transfer request receiving section 11 causes the data transfer request signal 131 from the CPUs 3 and 4 to be sent.
, 141 is received, the CPU requesting data transfer
3 and 4 are notified to the transfer instruction reading unit 12. When the bus management unit 10 detects that the CPU bus 100 is not used, the transfer instruction reading unit 12 detects the CPU address from the specific addresses of the shared memories 5 and 6 corresponding to the CPUs 3 and 4 notified by the data transfer request receiving unit 11. Read the contents. When the transfer command reading unit 12 detects that the data transfer request from the CPUs 3 and 4 is to the CPU 2 according to the content, it notifies the CPU 2 via the CPU bus 100.
【0013】CPU2はデータ転送回路1からの通知に
よって共有メモリ5,6に書込まれたデータが自装置に
対するものであることを認識すると、CPUバス100 を
介して共有メモリ5,6から該データを読出す。これに
よって、CPU3,4からCPU2へのデータ転送が行
われる。When the CPU 2 recognizes from the notification from the data transfer circuit 1 that the data written in the shared memories 5 and 6 is for its own device, the data is transferred from the shared memories 5 and 6 via the CPU bus 100. Read. As a result, data transfer from the CPUs 3, 4 to the CPU 2 is performed.
【0014】一方、例えばCPU3がCPU4に対して
データ転送を行う場合、CPU3はCPUバス101 を介
して共有メモリ5にデータを書込むとともに、共有メモ
リ5の特定アドレスに転送先の共有メモリ6の識別子と
データ転送数とを書込み、データ転送要求信号131 をデ
ータ転送回路1に出力する。このとき、CPU3はデー
タ転送要求信号131 を出力した後、そのデータ転送が終
了するまで待つことなく他の処理に移ることができる。On the other hand, for example, when the CPU 3 transfers data to the CPU 4, the CPU 3 writes the data to the shared memory 5 via the CPU bus 101, and the shared memory 6 of the transfer destination is written to a specific address of the shared memory 5. The identifier and the data transfer number are written, and the data transfer request signal 131 is output to the data transfer circuit 1. At this time, after outputting the data transfer request signal 131, the CPU 3 can move to another process without waiting until the data transfer is completed.
【0015】データ転送回路1ではデータ転送要求受付
け部11がCPU3からのデータ転送要求信号131 を受
付けると、データ転送要求のあったCPU3を転送命令
読出し部12に通知する。転送命令読出し部12はバス
管理部10がCPUバス100が使用されていないことを
検出すると、データ転送要求受付け部11から通知され
たCPU3に対応する共有メモリ5の特定アドレスから
その内容を読出す。転送命令読出し部12はその内容に
基づいてCPU3から共有メモリ6に対してデータ転送
要求があったことをデータ転送部13に通知する。In the data transfer circuit 1, when the data transfer request accepting section 11 accepts the data transfer request signal 131 from the CPU 3, the transfer instruction reading section 12 is notified of the CPU 3 which has made the data transfer request. When the bus management unit 10 detects that the CPU bus 100 is not used, the transfer command reading unit 12 reads the content from the specific address of the shared memory 5 corresponding to the CPU 3 notified from the data transfer request receiving unit 11. .. The transfer instruction reading unit 12 notifies the data transfer unit 13 that there is a data transfer request from the CPU 3 to the shared memory 6 based on the content.
【0016】データ転送部13は転送命令読出し部12
からの通知にしたがって共有メモリ5,6間でデータ転
送を行う。CPU4は共有メモリ6に共有メモリ5から
のデータが書込まれると、CPUバス102 を介して共有
メモリ6から該データを読出す。これによって、CPU
3からCPU4へのデータ転送が行われる。この間、デ
ータ転送回路1とCPU2との間でCPUバス100 の競
合が起こらないように、データ転送部13によってCP
Uバス100 が使用されている間、バス管理部10からC
PU2にウェイト信号111 が出力される。尚、CPU4
からCPU3にデータ転送を行う場合にも、上述と同様
の処理によって、共有メモリ6から共有メモリ5にデー
タを転送することによって行われる。The data transfer unit 13 includes a transfer command reading unit 12
Data is transferred between the shared memories 5 and 6 in accordance with the notification from. When the data from the shared memory 5 is written in the shared memory 6, the CPU 4 reads the data from the shared memory 6 via the CPU bus 102. This allows the CPU
Data transfer from 3 to the CPU 4 is performed. During this period, the data transfer unit 13 controls the CP by the data transfer unit 13 so that the CPU bus 100 does not conflict between the data transfer circuit 1 and the CPU 2.
While the U-bus 100 is in use, the bus management unit 10 to C
The wait signal 111 is output to PU2. Incidentally, CPU4
When data is transferred from the shared memory 6 to the CPU 3, the data is transferred from the shared memory 6 to the shared memory 5 by the same process as described above.
【0017】このように、CPU3からCPU4にデー
タ転送を行う場合、CPU3に対応する共有メモリ5の
特定アドレスに転送先であるCPU4に対応する共有メ
モリ6の識別子を書込んでおき、その共有メモリ5の特
定アドレスの内容にしたがって共有メモリ5,6間での
データ転送を行うようにすることによって、CPU3,
4間に共有メモリを設けることなく、つまり共有メモリ
を増やすことなくCPU3,4間のデータ転送を行うこ
とができる。よって、部品と配線とを増加することな
く、CPU3,4間のデータ転送を可能とすることがで
きる。In this way, when data is transferred from the CPU 3 to the CPU 4, the identifier of the shared memory 6 corresponding to the transfer destination CPU 4 is written in a specific address of the shared memory 5 corresponding to the CPU 3 and the shared memory is written. By performing data transfer between the shared memories 5 and 6 according to the contents of the specific address 5
Data can be transferred between the CPUs 3 and 4 without providing a shared memory between the CPUs 4, that is, without increasing the shared memory. Therefore, data can be transferred between the CPUs 3 and 4 without increasing the number of parts and wiring.
【0018】[0018]
【発明の効果】以上説明したように本発明によれば、第
1の中央処理装置に各々接続された第1および第2の共
有メモリに各々独立して接続された第2および第3の中
央処理装置において、第2の中央処理装置から他の中央
処理装置にデータを転送するときに第1の共有メモリに
転送先を書込んでおき、その転送先が第3の中央処理装
置のときに第1の共有メモリのデータを第2の共有メモ
リに転送するようにすることによって、部品と配線とを
増加することなく、CPU間のデータ転送を可能とする
ことができるという効果がある。As described above, according to the present invention, the second and third central units independently connected to the first and second shared memories respectively connected to the first central processing unit. In the processing device, when data is transferred from the second central processing device to another central processing device, a transfer destination is written in the first shared memory, and when the transfer destination is the third central processing device. By transferring the data in the first shared memory to the second shared memory, it is possible to transfer data between the CPUs without increasing the number of parts and wiring.
【図1】本発明の一実施例の構成を示すブロック図であ
る。FIG. 1 is a block diagram showing a configuration of an exemplary embodiment of the present invention.
【図2】図1の共有メモリ間データ転送回路の構成を示
すブロック図である。2 is a block diagram showing a configuration of a data transfer circuit between shared memories of FIG. 1. FIG.
1 共有メモリ間データ転送回路 2〜4 CPU 5,6 共有メモリ 10 バス管理部 11 データ転送要求受付け部 12 転送命令読出し部 13 データ転送部 1 shared memory data transfer circuit 2 to 4 CPU 5, 6 shared memory 10 bus management unit 11 data transfer request acceptance unit 12 transfer instruction read unit 13 data transfer unit
Claims (1)
1および第2の共有メモリと、第1の共有メモリに接続
された第2の中央処理装置と、第2の共有メモリに接続
された第3の中央処理装置と、前記第2の中央処理装置
から他の中央処理装置にデータを転送するときに前記第
1の共有メモリに書込まれた転送先を読出す読出し手段
と、前記読出し手段によって読出された前記転送先が前
記第3の中央処理装置のときに前記第1の共有メモリの
データを前記第2の共有メモリに転送する転送手段とを
有することを特徴とするデータ転送装置。Claims: What is claimed is: 1. A first and a second shared memory respectively connected to a first central processing unit, a second central processing unit connected to the first shared memory, and A third central processing unit connected to the second shared memory; and a transfer destination written in the first shared memory when data is transferred from the second central processing unit to another central processing unit. Read means for reading, and transfer means for transferring the data of the first shared memory to the second shared memory when the transfer destination read by the read means is the third central processing unit. A data transfer device characterized by the above.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP21437891A JPH0535693A (en) | 1991-07-31 | 1991-07-31 | Data transfer device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP21437891A JPH0535693A (en) | 1991-07-31 | 1991-07-31 | Data transfer device |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0535693A true JPH0535693A (en) | 1993-02-12 |
Family
ID=16654797
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP21437891A Pending JPH0535693A (en) | 1991-07-31 | 1991-07-31 | Data transfer device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0535693A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002351850A (en) * | 2001-03-22 | 2002-12-06 | Sony Computer Entertainment Inc | Data processing method on processor and data processing system |
JP2011511334A (en) * | 2007-12-12 | 2011-04-07 | エヌエックスピー ビー ヴィ | Processing architecture |
-
1991
- 1991-07-31 JP JP21437891A patent/JPH0535693A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002351850A (en) * | 2001-03-22 | 2002-12-06 | Sony Computer Entertainment Inc | Data processing method on processor and data processing system |
JP2011511334A (en) * | 2007-12-12 | 2011-04-07 | エヌエックスピー ビー ヴィ | Processing architecture |
US8635382B2 (en) | 2007-12-12 | 2014-01-21 | St-Ericsson Sa | Processing architecture |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS5853379B2 (en) | Multiprocessing device microcomputer | |
JP3952226B2 (en) | Bus communication system | |
JPS63175962A (en) | Direct memory access controller | |
JP2000207348A (en) | Device and method for processing data | |
JPH0535693A (en) | Data transfer device | |
JPH11232213A (en) | Data transfer system for input/output device | |
JPH1118122A (en) | Data transfer system | |
JPH10307788A (en) | Bus bridge | |
JPH07271654A (en) | Controller | |
US6505276B1 (en) | Processing-function-provided packet-type memory system and method for controlling the same | |
JP2000155738A (en) | Data processor | |
JPH0561839A (en) | Data transfer device | |
JPS6347867A (en) | Inter-dual cpu communication system | |
JPH02211571A (en) | Information processor | |
JP2687716B2 (en) | Information processing device | |
JPH01175056A (en) | Program transfer system | |
JPS61271555A (en) | Transferring system for direct memory access | |
JPS6240565A (en) | Memory control system | |
JPH11328102A (en) | Bus control system and bus control method | |
JP2821176B2 (en) | Information processing device | |
JPH07109599B2 (en) | Information transfer device for processing system | |
JPH02133856A (en) | Data transfer device | |
JPH01133444A (en) | System bus controller | |
JPS5975354A (en) | Processor device | |
JPS62143158A (en) | Control method for data transfer by dma controller |