JP3336623B2 - Data transfer method - Google Patents
Data transfer methodInfo
- Publication number
- JP3336623B2 JP3336623B2 JP35948391A JP35948391A JP3336623B2 JP 3336623 B2 JP3336623 B2 JP 3336623B2 JP 35948391 A JP35948391 A JP 35948391A JP 35948391 A JP35948391 A JP 35948391A JP 3336623 B2 JP3336623 B2 JP 3336623B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- transfer
- port
- burst
- shared 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims description 33
- 239000000872 buffer Substances 0.000 claims description 54
- 239000011159 matrix material Substances 0.000 claims description 8
- 238000010586 diagram Methods 0.000 description 23
- 238000002360 preparation method Methods 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 2
- 238000004513 sizing Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Landscapes
- Bus Control (AREA)
- Information Transfer Systems (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、共有バスを介してデー
タをバースト転送するデータ転送方式に関するものであ
る。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data transfer system for burst-transferring data through a shared bus.
【0002】[0002]
【従来の技術】複数のマスター装置と複数のスレーブ装
置との個々の間で、相互にデータ転送を行う場合、それ
らの装置を共有バスに接続し、その共有バスを時分割多
重で使用して行う、いわゆる共有バス方式が採用されて
いる。図11に、そのような共有バス方式の構成を示
す。図11において、1はマスター装置、2はスレーブ
装置、3は共有バスである。2. Description of the Related Art When data is mutually transferred between a plurality of master devices and a plurality of slave devices, those devices are connected to a shared bus, and the shared bus is used by time division multiplexing. A so-called shared bus method is employed. FIG. 11 shows a configuration of such a shared bus system. In FIG. 11, 1 is a master device, 2 is a slave device, and 3 is a shared bus.
【0003】近年では、画像処理におけるように、大量
のデータを高速で転送してリアルタイムで処理すること
が要求される用途が多くなって来ているが、そのような
要求に対応するための1つの方策として、共有バス3の
バス幅を広げることが考えられる。共有バス3のバス幅
を広げれば、言うまでもなく、単位時間に運び得るデー
タ量を大とする。In recent years, as in image processing, there has been an increasing number of applications that require a large amount of data to be transferred at high speed and processed in real time. One measure is to increase the bus width of the shared bus 3. If the bus width of the shared bus 3 is increased, it goes without saying that the amount of data that can be carried per unit time is increased.
【0004】しかし、プリント基板上で共有バス3のみ
があまり広い面積を占めることは出来ないから、まず面
積の点で制約を受ける。また、共有バス3にはASIC
(Application Specific IC )によって接続するのであ
るが、それに設け得るピンの数は、ASICのパッケー
ジの形式および大きさから、やはり制約を受ける。この
ような事情により、共有バス3のバス幅を広げることに
は限界がある。However, since only the shared bus 3 cannot occupy a very large area on the printed circuit board, the area is restricted first in terms of area. The shared bus 3 has an ASIC
(Application Specific IC), but the number of pins that can be provided there is still limited by the type and size of the ASIC package. Due to such circumstances, there is a limit in increasing the bus width of the shared bus 3.
【0005】そこで、他の方策として、データの転送
を、シングル転送ではなくバースト転送で行うことが考
えられている。図12は、シングル転送およびバースト
転送を説明する図である。図12において、Tは時間
軸、5はアドレス指定時間、6はデータ転送時間、7は
アービトレーション時間である。Therefore, as another measure, it has been considered that data transfer is performed by burst transfer instead of single transfer. FIG. 12 illustrates single transfer and burst transfer. In FIG. 12, T is a time axis, 5 is an address designation time, 6 is a data transfer time, and 7 is an arbitration time.
【0006】図12(イ)はシングル転送を説明する図
であるが、シングル転送では、バス幅に相当するビット
数のデータを一回転送するに先立ち、そのデータの送り
先であるアドレスを指定する。そして、送り終えた後、
バスのアービトレーションが行われ、再びバスを確保し
た後、次のデータ転送が行われる。従って、バス幅に相
当するビット数のデータを一回転送するのに要する時間
は、アドレス指定時間5とデータ転送時間6とアービト
レーション時間7を合計したものとなる。FIG. 12A is a diagram for explaining the single transfer. In the single transfer, prior to once transferring data of the number of bits corresponding to the bus width, an address which is a destination of the data is designated. . And after sending,
After the bus is arbitrated and the bus is secured again, the next data transfer is performed. Therefore, the time required to transfer data of the number of bits corresponding to the bus width once is the sum of the address designation time 5, the data transfer time 6, and the arbitration time 7.
【0007】図12(ロ)はバースト転送を説明する図
である。バースト転送では、アドレスを指定した後、そ
のアドレスを先頭位置にして、バス幅に相当するビット
数のデータを何回か連続して転送してしまう。その回数
(バーストサイクル数)は、予め1つに定められていた
り(例、4サイクルでのみ)、あるいは幾つか定められ
ているものの中から1つを選択するようにされていたり
する(例、4サイクル,8サイクル,16サイクルと3
つ定められていて、その中から8サイクルを選択)。図
12(ロ)は、4回連続して転送する場合(4サイクル
の場合)の例を示している。次の転送の為のアービトレ
ーションは、その後に行われる。バースト転送では、ア
ドレス指定およびアービトレーションの回数が少なくな
るから、それらに費やす時間が少なくなり、データが高
速に送られることになる。FIG. 12B is a diagram for explaining the burst transfer. In the burst transfer, after an address is specified, data of the number of bits corresponding to the bus width is continuously transferred several times with the address as a head position. The number of times (burst cycle number) is predetermined to one (eg, only in four cycles), or one is selected from several predetermined ones (eg, 4 cycles, 8 cycles, 16 cycles and 3
One of them, and select 8 cycles from them). FIG. 12B shows an example of a case where data is transferred four times consecutively (four cycles). Arbitration for the next transfer is performed after that. In the burst transfer, the number of times of addressing and arbitration is reduced, so that the time spent for the addressing and arbitration is reduced, and data is transmitted at high speed.
【0008】図13は、共有バスを介して行う従来のデ
ータ転送方式を示す図である。符号は図11のものに対
応し、1−1はマスターデバイス、1−2は転送制御回
路、2−1はスレーブデバイス、2−2は転送制御回
路、4は矢印、H1 〜H4 は転送ブロックである。マス
ターデバイス1−1は例えばCPUとかDMA(ダイレ
クトメモリアクセス)コントローラであり、スレーブデ
バイス2−1は例えばメモリである。マスターデバイス
1−1,スレーブデバイス2−1内に記してある
「0」,「1」,…「F」は、それぞれ1バイトのデー
タのアドレスを表している。FIG. 13 is a diagram showing a conventional data transfer method performed via a shared bus. Reference numerals correspond to those in FIG. 11, 1-1 is a master device, 1-2 is a transfer control circuit, 2-1 is a slave device, 2-2 is a transfer control circuit, 4 is an arrow, and H 1 to H 4 are transfer. It is a block. The master device 1-1 is, for example, a CPU or a DMA (Direct Memory Access) controller, and the slave device 2-1 is, for example, a memory. "0", "1",... "F" described in the master device 1-1 and the slave device 2-1 each represent a 1-byte data address.
【0009】従来のバースト転送では、データ幅が共有
バス3のデータ幅(つまり共有バス3の物理的信号線
数)に固定されており、マスター装置1のポート幅もス
レーブ装置2のポート幅も、共有バス3のデータ幅に等
しいものでなければならなかった。図13の場合、共有
バス3は4バイトのデータ幅(32ビット)を有するも
のとしているので、マスター装置1,スレーブ装置2と
しては、ポート幅が4バイトのものを使用している。In the conventional burst transfer, the data width is fixed to the data width of the shared bus 3 (that is, the number of physical signal lines of the shared bus 3), and both the port width of the master device 1 and the port width of the slave device 2 are set. Must be equal to the data width of the shared bus 3. In the case of FIG. 13, since the shared bus 3 has a data width of 4 bytes (32 bits), the master device 1 and the slave device 2 have a port width of 4 bytes.
【0010】バーストサイクル数を4とすると、バース
ト転送時には、指定した転送開始アドレス(図12
(ロ)のアドレス指定時間5で指定したアドレス)か
ら、連続する4バイトを1つの転送ブロックとして、つ
づけて4回の転送が行われる。図13では、転送開始ア
ドレスを「0」番地とし、そこから4バイトづつの転送
ブロックH1 〜H4 が、矢印4のようにスレーブ装置2
へ向かって転送される(書き込み動作)。スレーブデバ
イス2−1に記した「0」〜「F」は、転送された結果
を示している。なお、転送制御回路1−2,2−2は、
バースト転送時に必要とされる種々の制御信号(例、バ
ーストサイクル信号,アクノリッジ信号)をやり取りす
る回路である。Assuming that the number of burst cycles is 4, at the time of burst transfer, a designated transfer start address (FIG. 12)
From the address specified by the address specification time 5 in (b)), four consecutive bytes are continuously transferred as one transfer block. In FIG. 13, the transfer start address is “0”, and the transfer blocks H 1 to H 4 each having 4 bytes are transferred from the slave device 2 as indicated by an arrow 4.
(Write operation). “0” to “F” described in the slave device 2-1 indicate the transferred result. Note that the transfer control circuits 1-2 and 2-2
This is a circuit for exchanging various control signals (eg, a burst cycle signal, an acknowledge signal) required at the time of burst transfer.
【0011】なお、以上のようなデータ転送方式に関す
る従来の文献としては、例えば特開昭56−110125号公
報, 特開昭57− 64834号公報, 特開昭64− 36147号公
報, 特開平2−253362号公報,特開平3−135647号公報
等がある。Conventional documents relating to the above-described data transfer method include, for example, Japanese Patent Application Laid-Open Nos. 56-110125, 57-64834, 64-36147, and 2 -253362, JP-A-3-135647 and the like.
【0012】[0012]
(問題点)しかしながら、従来のデータ転送方式では、
マスター装置のポート幅,スレーブ装置のポート幅およ
び共有バスのバス幅とが、全て等しいという条件が満た
されている場合にのみしか、バースト転送は行えないと
いう問題点があった。(Problem) However, in the conventional data transfer method,
There is a problem that burst transfer can be performed only when the condition that the port width of the master device, the port width of the slave device, and the bus width of the shared bus are all equal is satisfied.
【0013】(問題点の説明)共有バスに接続されるマ
スター装置やスレーブ装置の数が多くなるにつれ、ポー
ト幅が共有バスのバス幅に等しくないものも接続できれ
ば、非常に好都合であるというような要望が出されるよ
うになった。しかしながら、従来のデータ転送方式で
は、このような要望に応えることが出来ない。(Explanation of Problems) As the number of master devices and slave devices connected to the shared bus increases, it would be very convenient if a device whose port width is not equal to the bus width of the shared bus can be connected. Requests have been issued. However, the conventional data transfer method cannot meet such a demand.
【0014】本発明は、マスター装置およびスレーブ装
置のポート幅が、共有バスのバス幅以下でありさえすれ
ば、たとえポート幅が互いに異なっていようとも、バー
スト転送が出来るようにすることを課題とするものであ
る。An object of the present invention is to enable burst transfer even if the port widths of the master device and the slave device are different from each other, as long as the port width is smaller than the bus width of the shared bus. Is what you do.
【0015】[0015]
【課題を解決するための手段】前記課題を解決するた
め、本発明では、共有バスを介して接続されたマスター
装置とスレーブ装置との間でバースト転送によりデータ
を転送するデータ転送方式において、レジスタセルが行
列形式に構成され、該レジスタセルに書き込まれたデー
タは行方向および列方向へシフト自在にされると共に、
行方向の端部はマスターデバイスとの間でデータの授受
を行うマスターポートに接続され、列方向の端部は共有
バスポートに接続された第1の転送用インターフェース
バッファを有するマスター装置と、レジスタセルが行列
に構成され、該レジスタセルに書き込まれたデータは行
方向および列方向へシフト自在にされると共に、行方向
の端部はスレーブデバイスとの間でデータの授受を行う
スレーブポートに接続され、列方向の端部は共有バスポ
ートに接続された第2の転送用インターフェースバッフ
ァを有するスレーブ装置とを具え、第1の転送用インタ
ーフェースバッファが前記マスターデバイスとの間でデ
ータを授受する際、または第2の転送用インターフェー
スバッファが前記スレーブデバイスとの間でデータを授
受する際には、行方向のシフトを行いつつ授受し、前記
共有バスポートを介して共有バスとの間でデータを授受
する際には、バーストサイクル毎に列方向のシフトを行
いつつ授受することとした。 According to the present invention, there is provided a master unit connected via a shared bus.
Data between the device and the slave device by burst transfer
In the data transfer method for transferring
The data written to the register cell is arranged in a column format.
Data can be shifted in the row and column directions,
The end in the row direction exchanges data with the master device
Connected to the master port, and the column ends are shared
First transfer interface connected to a bus port
Master device with buffer and register cells in a matrix
And the data written in the register cell is
It is possible to shift freely in the direction
End exchanges data with the slave device
It is connected to the slave port, and the end in the column direction is the shared bus port.
Second transfer interface buffer connected to the
And a slave device having a first transfer interface.
Interface buffer between the master device
Data transfer or the second transfer interface
Buffer transfers data with the slave device.
When receiving, give and receive while shifting in the row direction,
Transfer data to / from the shared bus via the shared bus port
When performing a shift in the column direction every burst cycle.
I decided to give and receive.
【0016】[0016]
【0017】なお、前記転送用インターフェースバッフ
ァの共有バスポート幅が共有バスのバス幅より小である
場合には、該共有バスポートを共有バスのアドレス下位
側またはアドレス上位側のいずれか一方に詰めて接続す
ることとする。When the width of the shared bus port of the transfer interface buffer is smaller than the bus width of the shared bus, the shared bus port is packed into one of the lower address side and the upper address side of the shared bus. Connected.
【0018】[0018]
【作 用】マスター装置やスレーブ装置を共有バスに
接続し、バースト転送によりデータを転送するデータ転
送方式において、マスター装置やスレーブ装置内に、レ
ジスタセルを行列形式に構成した転送用インターフェー
スバッファを具え、そのレジスタセルに書き込まれたデ
ータは、行方向および列方向にシフト自在とする。共有
バスとの間でデータの授受を行う際には、バーストサイ
クル毎に列方向のシフトを行う。そして、マスターデバ
イスやスレーブデバイスとの間でデータの授受を行う際
には、行方向のシフトを行う。これにより、連続する番
地のデータを、転送先のポート幅と等しい任意のバイト
幅で、転送用インターフェースバッファの列方向に配列
させることが出来る。そのため、ポート幅が異なる相手
との間でも、バースト転送をすることが出来るようにな
る。[Operation] In a data transfer method in which a master device or a slave device is connected to a shared bus and data is transferred by burst transfer, a transfer interface buffer in which register cells are arranged in a matrix is provided in the master device or the slave device. The data written in the register cell can be freely shifted in the row direction and the column direction. When exchanging data with the shared bus, a shift in the column direction is performed every burst cycle. When data is exchanged with a master device or a slave device, a shift in the row direction is performed. As a result, data at consecutive addresses can be arranged in the column direction of the transfer interface buffer with an arbitrary byte width equal to the transfer destination port width. Therefore, it is possible to perform burst transfer even with a partner having a different port width.
【0019】[0019]
【実施例】以下、本発明の実施例を図面に基づいて詳細
に説明する。図1は、本発明のデータ転送方式の実施例
を示す図である。符号は図13のものに対応し、1−
3,2−3は転送用インターフェースバッファ、8はマ
スターポート、9,10は共有バスポート、11はスレ
ーブポート、12,13は矢印、H5 〜H8 は転送ブロ
ックである。Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 1 is a diagram showing an embodiment of the data transfer system of the present invention. Reference numerals correspond to those in FIG.
3,2-3 transfer interface buffer, 8 master port, 9, 10 shared bus port, 11 slave ports, 12 and 13 arrows, H 5 to H 8 is a transfer block.
【0020】本発明では、マスター装置1の内部に転送
用インターフェースバッファ1−3を設ける。そして、
マスターデバイス1−1とのデータのやり取りは、マス
ターポート8を介して行い、共有バス3とのデータのや
り取りは、共有バスポート9を介して行う。同様に、ス
レーブ装置2の内部にも転送用インターフェースバッフ
ァ2−3を設け、スレーブデバイス2−1とのデータの
やり取りはスレーブポート11を介して行い、共有バス
3とのデータのやり取りは、共有バスポート10を介し
て行う。In the present invention, the transfer interface buffer 1-3 is provided inside the master device 1. And
Data exchange with the master device 1-1 is performed via the master port 8, and data exchange with the shared bus 3 is performed via the shared bus port 9. Similarly, a transfer interface buffer 2-3 is provided inside the slave device 2, and data exchange with the slave device 2-1 is performed via the slave port 11, and data exchange with the shared bus 3 is shared. This is performed via the bus port 10.
【0021】マスターポート8のポート幅と、スレーブ
ポート11のポート幅とは等しくされ、図1の例では4
バイトである。しかし、共有バスポート9のポート幅
(これがマスター装置1のポート幅)と、共有バスポー
ト10のポート幅(これがスレーブ装置2のポート幅)
とは、相違している。図1の例では、マスター装置1の
ポート幅は4バイトであり、スレーブ装置2のポート幅
は2バイトである。なお、共有バス3のバス幅は、大な
る方のポート幅である4バイト以上あるものとし、各共
有バスポート9,10は、共有バス3のバス幅のいずれ
か一方の側(例、アドレス下位側)に詰めて接続する。The port width of the master port 8 is made equal to the port width of the slave port 11, and in the example of FIG.
Bytes. However, the port width of the shared bus port 9 (this is the port width of the master device 1) and the port width of the shared bus port 10 (this is the port width of the slave device 2)
Is different. In the example of FIG. 1, the port width of the master device 1 is 4 bytes, and the port width of the slave device 2 is 2 bytes. The bus width of the shared bus 3 is 4 bytes or more, which is the larger port width. Each of the shared bus ports 9 and 10 is connected to one of the bus widths of the shared bus 3 (for example, an address). (Lower side).
【0022】図2は、転送用インターフェースバッファ
1−3の構成を示す図である。符号は図1のものに対応
し、14−1〜14−16はレジスタセル、15は右方
データパス、16は上方データパス、17は左方データ
パス、18は下方データパスである。各レジスタセル
は、1バイトのデータを記録することが出来るものであ
り、各データパスは1バイトのデータを転送し得るもの
である。この例は、4×4の行列になるよう構成されて
おり、行列構成の行方向の端部はマスターポート8に接
続され、列方向の端部は共有バスポート9に接続されて
いる。FIG. 2 is a diagram showing the configuration of the transfer interface buffer 1-3. The reference numerals correspond to those in FIG. 1; 14-1 to 14-16 are register cells, 15 is a right data path, 16 is an upper data path, 17 is a left data path, and 18 is a lower data path. Each register cell can record one byte of data, and each data path can transfer one byte of data. In this example, the matrix is configured to be a 4 × 4 matrix, and an end in the row direction of the matrix configuration is connected to the master port 8, and an end in the column direction is connected to the shared bus port 9.
【0023】この転送用インターフェースバッファ1−
3では、同時に4バイトのデータを、上下または左右に
シフトできる(転送用インターフェースバッファ2−3
の場合なら、2×4に構成される)。そのシフトは、ク
ロック信号でタイミングを取りつつ、図1の転送制御回
路1−2からの指令に従って行われる。This transfer interface buffer 1-
3, the 4-byte data can be simultaneously shifted vertically or horizontally (transfer interface buffer 2-3).
Is configured as 2 × 4). The shift is performed in accordance with a command from the transfer control circuit 1-2 in FIG. 1 while taking timing with a clock signal.
【0024】例えば、或るクロックでマスターポート8
からレジスタセル14−1〜14−4に送られて来た4
バイトのデータは、次のクロックでレジスタセル14−
5〜14−8へシフトされ、以後クロックの度に1段づ
つ右へシフトされて行く。逆に、転送用インターフェー
スバッファ1−3からマスターポート8へデータを送り
出す場合には、シフト方向が右→左にされ、レジスタセ
ル14−1〜14−4からマスターポート8へ送られ
る。また、シフト方向を左→右にして、レジスタセル1
4−13〜14−16から、それぞれの右方データパス
15を通ってマスターポート8へ送ることも出来る。転
送用インターフェースバッファ1−3内での上下方向の
シフト、および共有バスポート9との間のデータの授受
も、同様にして行われる。For example, the master port 8
4 sent to register cells 14-1 to 14-4 from
The byte data is transferred to the register cell 14- at the next clock.
It is shifted to 5-14-8, and thereafter shifted right by one step at every clock. Conversely, when sending data from the transfer interface buffer 1-3 to the master port 8, the shift direction is changed from right to left, and sent from the register cells 14-1 to 14-4 to the master port 8. Also, the shift direction is changed from left to right, and the register cell 1
From 4-13 to 14-16, the data can be sent to the master port 8 through the respective right data paths 15. Up-down shifting in the transfer interface buffer 1-3 and transfer of data with the shared bus port 9 are performed in the same manner.
【0025】図3は、転送用インターフェースバッファ
の構成要素であるレジスタセルの構成を示す図である。
符号は図2のものに対応し、14はレジスタセル、19
〜22はイネーブル制御信号、24はフリップフロッ
プ、25はセレクタ、26,28,29,30は制御ゲ
ート、Sはセレクト信号である。イネーブル制御信号や
セレクト信号等は、図1の転送制御回路1−2(2−
2)から供給される。各制御ゲートは、イネーブル制御
信号がロー(L)の時にオンとなり、データを通過させ
る。セレクタ25は、複数の入力端子(0,1,2)の
データの中から1つだけを選択して、フリップフロップ
24へ送る。フリップフロップ24は、1バイトのデー
タを記録することができるフリップフロップである。FIG. 3 is a diagram showing a configuration of a register cell which is a component of the transfer interface buffer.
Reference numerals correspond to those in FIG. 2, 14 is a register cell, 19
22 is an enable control signal, 24 is a flip-flop, 25 is a selector, 26, 28, 29, and 30 are control gates, and S is a select signal. The enable control signal and the select signal are transmitted to the transfer control circuit 1-2 (2-
Supplied from 2). Each control gate is turned on when the enable control signal is low (L), and passes data. The selector 25 selects only one of the data of the plurality of input terminals (0, 1, 2) and sends it to the flip-flop 24. The flip-flop 24 is a flip-flop capable of recording 1-byte data.
【0026】図4は、レジスタセル14でのデータの流
れと制御信号との関係を示す図である。イ〜ニは、レジ
スタセル14で行い得るデータの流し方を種類分けした
ものである。例えば「イ」の場合は、データを上→下
(つまり上方データパス16→下方データパス18)へ
流そうとする場合である。この時には、セレクタ25で
は上方データパス16に接続されている「1」の入力端
子が選択され、上方データパス16からのデータは、ま
ずフリップフロップ24に送られる。そして、「イ」の
場合、イネーブル制御信号の中ではイネーブル制御信号
21のみがロー(L)であるので、制御ゲートの中では
制御ゲート29のみがオンとなる。その結果、フリップ
フロップ24のデータは、制御ゲート29を通って下方
データパス18へと送り出され、首尾よく上→下へのデ
ータの伝達が達成される。FIG. 4 is a diagram showing a relationship between a data flow in the register cell 14 and a control signal. The items (a) to (d) show the types of data flow that can be performed by the register cell 14. For example, in the case of “A”, it is a case where data is to flow from upper to lower (that is, upper data path 16 → lower data path 18). At this time, the selector 25 selects the input terminal of “1” connected to the upper data path 16, and data from the upper data path 16 is first sent to the flip-flop 24. In the case of “A”, only the enable control signal 21 is low (L) among the enable control signals, so that only the control gate 29 is turned on among the control gates. As a result, the data of the flip-flop 24 is sent out to the lower data path 18 through the control gate 29, and the transmission of the data from the upper side to the lower side is successfully achieved.
【0027】次に図4の「ニ」の場合(右→左)につい
て説明すると、セレクタ25で「2」の入力端子が選択
されるから、それに接続されている右方データパス15
からのデータが、フリップフロップ24へ送られる。一
方、イネーブル制御信号19,21がローとされるか
ら、フリップフロップ24のデータは、制御ゲート29
→制御ゲート28→左方データパス17へと送られ、右
→左へのデータの伝達が達成される。Next, the case of “d” (right → left) in FIG. 4 will be described. Since the input terminal of “2” is selected by the selector 25, the right data path 15 connected thereto is selected.
Is sent to the flip-flop 24. On the other hand, since the enable control signals 19 and 21 are made low, the data of the flip-flop 24 is
→ Control gate 28 → Sent to left data path 17, and data transmission from right to left is achieved.
【0028】なお、制御ゲート28は場合によっては省
略して、ただの配線だけにしてもよい。これを省略した
時に心配されるのは、左方データパス17からデータが
入力される図4「ハ」の場合に、データが下方データパ
ス18を経て、下方のレジスタセル(図示せず)にも伝
達されてしまわないかということである。しかし、次に
述べるように、そのような心配はない。左方データパス
17からデータが入力されると、セレクタ25に伝えら
れる(「0」の入力端子へ)と共に、下方データパス1
8にも伝えられる。下方データパス18は下段のレジス
タセルにとって見れば上方データパス16であるから、
データは下段のレジスタセルのセレクタ25(図示せ
ず)の入力端子「1」に伝えられる。ところが、「ハ」
の場合、セレクタ25では一斉に「0」が選択されるか
ら、下段に伝えられたデータが選択されることはなく、
そこで消滅する。従って、上記のような心配はない。It is to be noted that the control gate 28 may be omitted in some cases and only the wiring may be used. When this is omitted, it is worried that, in the case of "c" in FIG. 4 where data is input from the left data path 17, the data is transferred to the lower register cell (not shown) via the lower data path 18. Is not transmitted. However, there is no such concern, as described below. When data is input from the left data path 17, the data is transmitted to the selector 25 (to the “0” input terminal) and the lower data path 1
8 is also told. Since the lower data path 18 is the upper data path 16 for the lower register cell,
The data is transmitted to the input terminal “1” of the selector 25 (not shown) of the lower register cell. However, "C"
In the case of, "0" is simultaneously selected in the selector 25, so that the data transmitted to the lower stage is not selected,
It disappears there. Therefore, there is no such concern.
【0029】(転送の具体的動作例)次に、図1の如く
4バイトのポート幅を持つマスター装置1から、2バイ
トのポート幅を持つスレーブ装置2へデータを転送する
場合の具体的動作例を説明する。なお、各共有バスポー
トは、共有バス3のバス幅のアドレス下位側に詰めて接
続されているものとする。バーストサイクル数が4のバ
ースト転送を採用するとすれば、転送用インターフェー
スバッファ1−3は、レジスタセルを4(ポート幅)×
4(バーストサイクル数)の行列となるよう配置した構
成とされる。一方、転送用インターフェースバッファ2
−3は、レジスタセルを2(ポート幅)×4(バースト
サイクル数)のレジスタセルの行列となるよう配置した
構成とされる。今、マスターデバイス1−1の0からF
までの連続した番地にあるデータを、スレーブ装置2へ
転送しようとしている。(Specific operation example of transfer) Next, specific operation when data is transferred from the master device 1 having a 4-byte port width to the slave device 2 having a 2-byte port width as shown in FIG. An example will be described. It is assumed that each of the shared bus ports is connected to the lower portion of the address of the bus width of the shared bus 3. Assuming that burst transfer with a burst cycle number of 4 is adopted, the transfer interface buffer 1-3 sets the register cell to 4 (port width) ×
4 (the number of burst cycles). On the other hand, the transfer interface buffer 2
Reference numeral -3 denotes a configuration in which register cells are arranged in a matrix of register cells of 2 (port width) × 4 (burst cycle number). Now, from 0 to F of the master device 1-1,
The data at the consecutive addresses up to this point is to be transferred to the slave device 2.
【0030】ポート幅の大なる装置からポート幅が小な
る装置へ転送する場合には、転送元の転送用インターフ
ェースバッファにある全部のデータは、1回のバースト
転送では転送先の転送用インターフェースバッファに入
りきらないから、何回かのバースト転送を行わねばなら
ない。図1の例では、転送元のポート幅が転送先のポー
ト幅の2倍であるので、転送用インターフェースバッフ
ァ1−3にある全部のデータを転送するには、2回のバ
ースト転送を行わねばならない。その転送過程を、図5
によって説明する。When data is transferred from a device having a large port width to a device having a small port width, all data in the transfer interface buffer of the transfer source is transferred in one burst transfer. It has to do some burst transfers because it can't fit. In the example of FIG. 1, since the port width of the transfer source is twice the port width of the transfer destination, in order to transfer all the data in the transfer interface buffer 1-3, two burst transfers must be performed. No. The transfer process is shown in FIG.
It will be explained by.
【0031】図5は、ポート幅が大なる装置(4バイ
ト)から、小なる装置(2バイト)への転送過程を示す
図である。図5(イ)は前半の過程を示し、図5(ハ)
は後半の過程を示す。図5(ロ)は、後半の過程を実行
するに際しての準備過程を示す。なお、図1中に記され
ているデータの状況は、前半の転送過程での状況である
ので、これも併せて参照しつつ、まず前半の転送過程を
説明する。FIG. 5 is a diagram showing a transfer process from a device having a large port width (4 bytes) to a device having a small port width (2 bytes). FIG. 5A shows the first half of the process, and FIG.
Indicates the latter half of the process. FIG. 5B shows a preparation process for executing the latter half of the process. It should be noted that the situation of the data shown in FIG. 1 is the situation in the first half of the transfer process, and the first half of the transfer process will be described with reference to this.
【0032】〔前半の転送過程〕 マスターデバイス1−1→転送用インターフェースバ
ッファ1−3へ まず、マスターデバイス1−1から、0〜3番地の連続
する4バイトのデータが、転送用インターフェースバッ
ファ1−3へ送られる。転送用インターフェースバッフ
ァ1−3は、次のデータを受け取る毎に、前に受け取っ
た4バイトのデータを右方へシフトして行く(図4の
「ハ」の動作)。やがて、0番地からF番地までのデー
タが、図1(または図5(イ))の転送用インターフェ
ースバッファ1−3に示すように格納される。マスター
デバイス1−1と転送用インターフェースバッファ1−
3との間でのデータやり取りは、共有バス3とは関係な
く行うことが出来るから、この場合の動作クロックは、
共有バス3の動作クロックと同期したものでなくともよ
い(周波数が異なってもよい)。後で述べるの場合
も、事情は同じであるので同様である。[First Half Transfer Process] From the master device 1-1 to the transfer interface buffer 1-3 First, four bytes of continuous data of addresses 0 to 3 are transferred from the master device 1-1 to the transfer interface buffer 1-3. Sent to Each time the transfer interface buffer 1-3 receives the next data, it shifts the previously received 4-byte data to the right (operation "c" in FIG. 4). Eventually, the data from address 0 to address F is stored as shown in the transfer interface buffer 1-3 in FIG. 1 (or FIG. 5A). Master device 1-1 and transfer interface buffer 1
3 can be performed independently of the shared bus 3, the operation clock in this case is:
It does not have to be synchronized with the operation clock of the shared bus 3 (the frequency may be different). In the case described later, the situation is the same, so the situation is the same.
【0033】転送用インターフェースバッファ1−3
→共有バス3へ 次にバースト転送により共有バス3へ送出するが、その
送出の仕方は、マスターデバイス1−1よりデータを受
け取った際のシフト方向(左右方向)に対して、直角の
方向(上下方向)にシフトさせ、共有バスポート9から
4バイトを1つの転送ブロックとして送出する。その結
果、最初に送出されるデータの転送ブロックH5 は、0
番地,4番地,8番地,C番地のデータであり、連続す
る番地のデータとはなっていない。その理由は、左右方
向にシフトして受け取ったものを、上下方向にシフトし
て送出するからである。バーストサイクル数は4サイク
ルとしているから、以後、それに続いて3回、図1に示
すような内容のデータの転送ブロックH6 〜H8 が送出
され、矢印12の方向に転送される。転送用インターフ
ェースバッファ1−3と共有バス3との間でのデータの
やり取りは、共有バス3の動作クロックと同期して行わ
れる。次に述べるの場合も、事情は同じであるので同
様である。Transfer interface buffer 1-3
→ To the shared bus 3 Next, the data is transmitted to the shared bus 3 by burst transfer. The data is transmitted in a direction (vertical direction) perpendicular to the shift direction (lateral direction) when data is received from the master device 1-1. ), And 4 bytes are transmitted from the shared bus port 9 as one transfer block. As a result, the transfer block H 5 of the data initially transmitted, the 0
It is data of addresses 4, 4, 8, and C, and is not data of continuous addresses. The reason is that what is received after shifting in the left-right direction is sent out after shifting in the vertical direction. Since the number of burst cycles is four, the data transfer blocks H 6 to H 8 having the contents shown in FIG. 1 are transmitted three times thereafter, and are transferred in the direction of arrow 12. Data exchange between the transfer interface buffer 1-3 and the shared bus 3 is performed in synchronization with the operation clock of the shared bus 3. In the following case, the situation is the same, so that it is the same.
【0034】共有バス3→転送用インターフェースバ
ッファ2−3へ 共有バス3から図1の矢印13のように転送されて来た
転送ブロックH5 〜H8 の内、まず転送ブロックH
5 が、共有バスポート10を経て転送用インターフェー
スバッファ2−3に取り込まれる。しかし、共有バスポ
ート10のポート幅は2バイトしかなく、しかも共有バ
ス3のバス幅のアドレス下位側に詰めて接続されている
としているから、0番地,4番地のデータのみが取り込
まれる。次の転送ブロックH6 が取り込まれる時には、
先程取り込まれた0番地,4番地のデータは上方へシフ
トされる。以後も同様である。その結果、4サイクルか
ら成る最初のバースト転送を終えた段階では、図1(ま
たは図5(イ))の転送用インターフェースバッファ2
−3に示すような各番地のデータが取り込まれている。From the shared bus 3 to the transfer interface buffer 2-3 Of the transfer blocks H 5 to H 8 transferred from the shared bus 3 as shown by the arrow 13 in FIG.
5 is taken into the transfer interface buffer 2-3 via the shared bus port 10. However, since the shared bus port 10 has a port width of only 2 bytes and is connected to the lower portion of the bus width of the shared bus 3 and is connected, only the data of addresses 0 and 4 are fetched. When the next transfer block H 6 is fetched,
The data of addresses 0 and 4 that have been fetched earlier are shifted upward. The same applies to the following. As a result, at the stage where the first burst transfer consisting of four cycles is completed, the transfer interface buffer 2 shown in FIG. 1 (or FIG.
Data of each address as shown in FIG.
【0035】転送用インターフェースバッファ2−3
→スレーブデバイス2−1へ 転送用インターフェースバッファ2−3では、共有バス
3からデータを受け取る度にシフトした方向に対して、
直角の方向にデータをシフトして、スレーブポート11
より送出する。バーストサイクル数が4であったから4
バイトが送出されるが、これは、マスターデバイス1−
1にあった当初の連続する4バイト(例、0番地〜3番
地)となる。これらが、スレーブデバイス2−1内の指
定された番地へ格納される。ついで、転送用インターフ
ェースバッファ2−3内の4番地〜7番地のデータが右
方(スレーブポート11側)へシフトされ、同様にして
スレーブデバイス2−1に格納される。かくして、転送
しようとしている全データの半分である0番地〜7番地
のデータの転送が完了する。Transfer interface buffer 2-3
→ To the slave device 2-1 In the transfer interface buffer 2-3, each time data is received from the shared bus 3,
The data is shifted in the direction perpendicular to the slave port 11
Send more. 4 because the number of burst cycles was 4
A byte is sent out, which is the master device 1-
It becomes the initial continuous 4 bytes (eg, addresses 0 to 3) that were at 1. These are stored in designated addresses in the slave device 2-1. Next, the data at addresses 4 to 7 in the transfer interface buffer 2-3 is shifted rightward (to the slave port 11 side) and stored in the slave device 2-1 in the same manner. Thus, the transfer of data at addresses 0 to 7, which is half of all data to be transferred, is completed.
【0036】〔後半の転送のための準備過程〕前記項
での転送を終えた段階で、転送先であるスレーブ装置2
の転送制御回路2−2より、転送元であるマスター装置
1の転送制御回路1−2へ、自らのポート幅(2バイ
ト)を示すアクノリッジ信号を送る。これを受けた転送
元は、今回送り込めなかった8番地〜F番地のデータを
転送するため、図5(ロ)に示すように、転送用インタ
ーフェースバッファ1−3の中で、共有バスポート9の
アドレス下位側に向かって2クロックだけシフトされ
る。[Preparation process for transfer in the latter half] When the transfer in the above section is completed, the slave device 2 as the transfer destination
The transfer control circuit 2-2 sends an acknowledge signal indicating its own port width (2 bytes) to the transfer control circuit 1-2 of the master device 1 which is the transfer source. The transfer source receiving this transfers the data at addresses 8 to F, which could not be transmitted this time, and therefore, as shown in FIG. Is shifted by two clocks toward the lower side of the address.
【0037】〔後半の転送過程〕そのようにしておい
て、図5(ハ)に示すように、前半の転送時と同様に
〜の過程を経て、第2回目のバースト転送を行う。こ
のようにして、スレーブデバイス2−1には、転送しよ
うとしていたマスター装置1の全データが転送される。[Second half transfer process] In this way, as shown in FIG. 5C, the second burst transfer is performed through the same processes as in the first half transfer. In this way, all data of the master device 1 to be transferred is transferred to the slave device 2-1.
【0038】以上説明したように、本発明では、バス幅
の内、小さいポート幅(上例では2バイト)に対応する
分を実質的に使って、それより大なるポート幅を持つ装
置より、データをバースト転送し得る。図7は、ポート
幅の小なる装置への最初のバースト転送で、転送先のデ
バイス(例、スレーブデバイス)に送られた状態の一般
表現を示している。As described above, according to the present invention, the device corresponding to a small port width (2 bytes in the above example) of the bus width is substantially used, and a device having a larger port width is used. Data can be burst transferred. FIG. 7 shows a general expression of a state transmitted to a transfer destination device (eg, a slave device) in the first burst transfer to a device having a small port width.
【0039】図7において、aは転送開始アドレス、N
はバーストサイクル数、Mは転送元のポート幅、M1 は
転送先のポート幅、nは任意の回数目のバーストサイク
ル(1≦n≦N)、m1 はポート幅M1 のアドレス下位
側から数えた任意番目のバイト(1≦m1 ≦M1 )であ
る。バースト転送の各バーストサイクルで送られて来る
M1 バイトのデータは、次の通りである。 1回目→a,a+N,…,a+(m1 −1)N,…,a
+(M1 −1)N 2回目→a+1,a+N+1,…,a+(m1 −1)N
+1,…,a+(M1 −1)N+1 n回目→a+(n−1),a+N+(n−1),…,a
+(m1 −1)N+(n−1),…,a+(M1 −1)
N+(n−1) N回目→a+(N−1),a+N+(N−1),…,a
+(m1 −1)N+(N−1),…,a+(M1 −1)
N+(N−1) 最初のバースト転送が終わった段階では、転送先のポー
ト幅がM1 バイトしかないので、ポート幅Mとポート幅
M1 との差のデータ(図7の斜線部に格納されるべきデ
ータ)は、最初のバースト転送では送られて来ない。In FIG. 7, a is a transfer start address, N
Is the number of burst cycles, M is the transfer source port width, M 1 is the transfer destination port width, n is an arbitrary number of burst cycles (1 ≦ n ≦ N), and m 1 is the lower address of the port width M 1. Is an arbitrary number byte (1 ≦ m 1 ≦ M 1 ) counted from ( 1 ). Data M 1 byte sent in each burst cycle of the burst transfer is as follows. First time → a, a + N,..., A + (m 1 -1) N,.
+ (M 1 −1) N 2nd time → a + 1, a + N + 1,..., A + (m 1 −1) N
+1,..., A + (M 1 −1) N + 1 nth → a + (n−1), a + N + (n−1),.
+ (M 1 -1) N + (n-1), ..., a + (M 1 -1)
N + (n−1) Nth time → a + (N−1), a + N + (N−1),.
+ (M 1 -1) N + (N-1), ..., a + (M 1 -1)
The N + (N-1) first step burst transfer is completed, stored since the destination port width has only M 1 byte, the hatched portion of the data (FIG. 7 of the difference between the port width M and the port width M 1 Is not sent in the first burst transfer.
【0040】図6は、ポート幅が小なる装置(2バイ
ト)から大なる装置(4バイト)への転送過程を示す図
である。但し、共有バス3は、大なるポート幅(4バイ
ト)以上のバス幅を有しているものとする。各ポート
は、共有バス3のバス幅の一方の側(例、アドレス下位
側)に詰めて接続される。また、バースト転送のバース
トサイクルは、4であるとする。図6の例は、図1の例
で、スレーブデバイス2−1のデータを、マスターデバ
イス1−1にバースト転送する場合に相当している。図
6(イ)は前半の過程を示し、図6(ハ)は後半の過程
を示す。図6(ロ)は、後半の過程を実行するに際して
の準備過程を示す。FIG. 6 is a diagram showing a transfer process from a device having a small port width (2 bytes) to a device having a large port width (4 bytes). However, it is assumed that the shared bus 3 has a bus width larger than a large port width (4 bytes). Each port is connected to one side (eg, lower address side) of the bus width of the shared bus 3. The burst cycle of the burst transfer is assumed to be 4. The example of FIG. 6 corresponds to the example of FIG. 1 in which data of the slave device 2-1 is burst-transferred to the master device 1-1. FIG. 6A shows the first half of the process, and FIG. 6C shows the second half of the process. FIG. 6B shows a preparation process for executing the latter half of the process.
【0041】図6(イ)では、スレーブデバイス2−1
から、連続する番地のデータがバーストサイクル数4に
相当する4バイトだけ(0番地〜3番地のデータ)、転
送用インターフェースバッファ2−3にまず送られる。
次に、転送用インターフェースバッファ2−3に送られ
たデータが左方へシフトされると同時に、その跡へ次の
連続する4つの番地(4番地〜7番地)のデータが送ら
れる。これでポート幅2バイトの転送用インターフェー
スバッファ2−3は満杯になるので、転送用インターフ
ェースバッファ1−3へ向けてバースト転送を行う。そ
の場合、スレーブデバイス2−1からデータを受け取る
時に行ったシフト方向に対して、直角の方向にシフトし
つつ送出する。H10は、そのようにして送出される転送
ブロックの例である。転送先である転送用インターフェ
ースバッファ1−3では、ポート幅のアドレス下位側の
2バイト分のところで受け取る。そして、転送ブロック
を受け取る毎に、上方へシフトして行く。In FIG. 6A, the slave device 2-1
After that, data of consecutive addresses are first sent to the transfer interface buffer 2-3 by 4 bytes (data of addresses 0 to 3) corresponding to the burst cycle number 4.
Next, the data sent to the transfer interface buffer 2-3 is shifted to the left, and at the same time, data of the next four consecutive addresses (addresses 4 to 7) are sent to the trace. As a result, the transfer interface buffer 2-3 having a port width of 2 bytes becomes full, and burst transfer is performed to the transfer interface buffer 1-3. In this case, the data is transmitted while being shifted in a direction perpendicular to the shift direction in which the data was received from the slave device 2-1. H 10 is an example of a transport block sent in that way. The transfer interface buffer 1-3, which is the transfer destination, receives the data at the lower 2 bytes of the address of the port width. Each time a transfer block is received, it shifts upward.
【0042】図6(ロ)は、最初のバースト転送で受け
取ったデータを、受け取る際に行ったシフトの方向に対
して直角の方向に2バイト分シフトする過程を示す。こ
れにより、ポート幅2バイトの転送元からのバースト転
送を受け入れる準備が整ったことになる。このような状
態で、残っているデータ(8番地〜F番地のデータ)
を、同様の手順によってバースト転送する後半の過程が
行われる。図6(ハ)は、それを示している。かくし
て、スレーブデバイス2−1の全データは、転送用イン
ターフェースバッファ1−3に転送されたことなるが、
転送用インターフェースバッファ1−3では、データを
受け取る時に行なったシフトの方向に対して直角の方向
(太い矢印の方向)にシフトしながら、マスターデバイ
ス1−1(図1参照)の指定された位置に格納する。FIG. 6B shows the process of shifting the data received in the first burst transfer by two bytes in a direction perpendicular to the direction of the shift performed when receiving the data. As a result, preparations for receiving a burst transfer from a transfer source having a port width of 2 bytes are completed. In such a state, the remaining data (data of addresses 8 to F)
In the second half of burst transfer by the same procedure. FIG. 6C shows this. Thus, all data of the slave device 2-1 has been transferred to the transfer interface buffer 1-3.
The transfer interface buffer 1-3 shifts in the direction perpendicular to the direction of the shift performed when data is received (in the direction of the thick arrow), and moves to the designated position of the master device 1-1 (see FIG. 1). Store.
【0043】以上は、バス幅の一部を使い、ポート幅の
異なる装置間でバースト転送を行う場合についてである
が、ポート幅が同じ装置間で、しかもバス幅全体を使っ
て行うと、最も高効率でバースト転送が行われる。図8
は、ポート幅が等しい装置へのバースト転送の1例を示
す図であり、ポート幅4バイトの転送用インターフェー
スバッファ間で、4サイクルのバースト転送を行った状
態を示している。The above description relates to the case where burst transfer is performed between devices having different port widths by using a part of the bus width. However, when performing the burst transfer between devices having the same port width and using the entire bus width, it is most difficult. Burst transfer is performed with high efficiency. FIG.
FIG. 3 is a diagram showing an example of burst transfer to a device having the same port width, and shows a state in which burst transfer of four cycles is performed between transfer interface buffers having a port width of 4 bytes.
【0044】図9は、ポート幅が等しい装置へのバース
ト転送で、転送先のデバイスに送られた状態の一般表現
の図である。符号は図7のものに対応している。N回の
バーストサイクルの内、 1回目→a,a+N,…,a+(m−1)N,…,a+
(M−1)N 2回目→a+1,a+N+1,…,a+(m−1)N+
1,…,a+(M−1)×N+1 n回目→a+(n−1),a+N+(n−1),…,a
+(m−1)N+(n−1),…,a+(M−1)N+
(n−1) N回目→a+(N−1),a+N+(N−1),…,a
+(m−1)N+(N−1),…,a+(M−1)N+
(N−1) というような各番地のデータが転送されて来る。但し、
1≦n≦N,1≦m≦Mである。FIG. 9 is a diagram showing a general expression of a state where data is sent to a transfer destination device in a burst transfer to a device having the same port width. The reference numerals correspond to those in FIG. Among the N burst cycles, the first burst → a, a + N,..., A + (m−1) N,.
(M−1) N 2nd → a + 1, a + N + 1,..., A + (m−1) N +
1,..., A + (M−1) × N + 1 nth → a + (n−1), a + N + (n−1),.
+ (M-1) N + (n-1), ..., a + (M-1) N +
(N-1) N-th → a + (N-1), a + N + (N-1),..., A
+ (M-1) N + (N-1), ..., a + (M-1) N +
Data of each address such as (N-1) is transferred. However,
1 ≦ n ≦ N and 1 ≦ m ≦ M.
【0045】図10は、ポート幅がバーストサイクル数
と一致しない場合の転送過程を示す図である。符号は図
1のものに対応し、H12〜H15は転送ブロックである。
マスターデバイス1−1のポート幅は2バイトなのに、
バースト転送はバーストサイクル数4で行われていると
いうように、ポート幅とバーストサイクル数とが一致し
なくとも、次に述べるように、本発明ではバースト転送
をすることが出来る。ここでは、転送用インターフェー
スバッファ1−3として、4×4の行列に構成されたも
のを用いている。FIG. 10 is a diagram showing a transfer process when the port width does not match the number of burst cycles. Numerals correspond to those of FIG. 1, H 12 ~H 15 is a transfer block.
Although the port width of the master device 1-1 is 2 bytes,
Even if the port width does not match the burst cycle number, as in the case where the burst transfer is performed with a burst cycle number of 4, the present invention can perform the burst transfer as described below. Here, as the transfer interface buffer 1-3, one configured in a 4 × 4 matrix is used.
【0046】図10(イ)で、まずマスターデバイス1
−1より、2バイトのデータを4回に渡って転送用イン
ターフェースバッファ1−3に送出する。ドットが付さ
れた部分がそれを示す。次に図10(ロ)に示すよう
に、転送用インターフェースバッファ1−3に転送され
て来たデータを、下方へ(データを受け取った時に行っ
たシフト方向に対して直角の方向へ)2バイトだけシフ
トする。このシフトにより空いた領域に、再びマスター
デバイス1−1よりデータを送り込む(図10
(ハ))。これで、バーストサイクル数である4サイク
ル分のデータが揃ったから、図10(ニ)のように、そ
れらを転送ブロックH12〜H15に分けてバースト転送す
る。転送ブロックは、転送用インターフェースバッファ
1−3がマスターデバイス1−1からデータを受け取っ
た時に行ったシフト方向に対して、直角の方向へシフト
することによって得られる。In FIG. 10A, first, the master device 1
From -1, two-byte data is transmitted to the transfer interface buffer 1-3 four times. The portion with a dot indicates it. Next, as shown in FIG. 10 (b), the data transferred to the transfer interface buffer 1-3 is reduced by 2 bytes (in a direction perpendicular to the shift direction performed when the data was received). Shift only. Data is sent again from the master device 1-1 to the area vacated by this shift (FIG. 10).
(C)). This, because the data of the four cycles the number of burst cycles are aligned, as shown in FIG. 10 (d), they are divided into transport blocks H 12 to H 15 to the burst transfer. The transfer block is obtained by shifting in a direction perpendicular to the shift direction performed when the transfer interface buffer 1-3 receives data from the master device 1-1.
【0047】[0047]
【発明の効果】以上述べた如く、本発明のデータ転送方
式によれば、次のような効果を奏する。 共有バスを介して接続されているマスター装置および
スレーブ装置間でバースト転送をするに際し、共有バス
のバス幅以下であれば、任意幅のポート幅を有する装置
間や、あるいは互いに異なるポート幅を有する装置間で
あっても、バースト転送をすることが出来る。 共有バスのバス幅と異なるポート幅であってもバース
ト転送が可能となるので、共有バスと接続するためのバ
スインターフェース回路をASIC(Application Spec
ific IC)等で設計する場合、バス幅に対応したピン数に
しなければならないといった制約を受けることがなくな
り、それより少ないピン数にすることが出来る。 転送用インターフェースバッファでは、バースト転送
で送出するデータ幅を、データを送出するために行うシ
フトの方向(列方向)に対して直角の方向(行方向)へ
のシフトにより、任意のバイト幅にすることが出来るの
で、ポート幅の異なる装置間でバースト転送をする際、
転送するデータ幅を容易に小さい方のポート幅に合わせ
ることが出来る。即ち、バスサイジング機能を果たして
いる。そのため、いわゆるバスサイジング機構を、特別
に設ける必要がない。As described above, according to the data transfer method of the present invention, the following effects can be obtained. When performing burst transfer between a master device and a slave device connected via a shared bus, if the bus width is equal to or less than the bus width of the shared bus, the devices have arbitrary port widths or have different port widths from each other. Burst transfer can be performed even between devices. Burst transfer can be performed even if the port width is different from the bus width of the shared bus. Therefore, an ASIC (Application Spec)
In the case of designing with ICs, the number of pins corresponding to the bus width is not restricted, and the number of pins can be reduced. In the transfer interface buffer, the data width transmitted in burst transfer is set to an arbitrary byte width by shifting in the direction (row direction) perpendicular to the shift direction (column direction) for transmitting data. When performing burst transfer between devices with different port widths,
The data width to be transferred can be easily adjusted to the smaller port width. That is, the bus sizing function is performed. Therefore, it is not necessary to provide a so-called bus sizing mechanism.
【図1】 本発明のデータ転送方式の実施例を示す図FIG. 1 is a diagram showing an embodiment of a data transfer method according to the present invention.
【図2】 転送用インターフェースバッファ1−3の構
成を示す図FIG. 2 is a diagram showing a configuration of a transfer interface buffer 1-3.
【図3】 転送用インターフェースバッファの構成要素
であるレジスタセルの構成を示す図FIG. 3 is a diagram showing a configuration of a register cell which is a component of a transfer interface buffer;
【図4】 レジスタセルでのデータの流れと制御信号と
の関係を示す図FIG. 4 is a diagram showing a relationship between a data flow in a register cell and a control signal.
【図5】 ポート幅が大なる装置(4バイト)から小な
る装置(2バイト)への転送過程を示す図FIG. 5 is a diagram showing a transfer process from a device having a large port width (4 bytes) to a device having a small port width (2 bytes).
【図6】 ポート幅が小なる装置(2バイト)から大な
る装置(4バイト)への転送過程を示す図FIG. 6 is a diagram showing a transfer process from a device having a small port width (2 bytes) to a device having a large port width (4 bytes).
【図7】 ポート幅が小なる装置への最初のバースト転
送で、転送先のデバイスに送られた状態の一般表現の図FIG. 7 is a diagram of a general expression of a state transmitted to a destination device in an initial burst transfer to a device having a small port width.
【図8】 ポート幅が等しい装置へのバースト転送の1
例を示す図FIG. 8 shows one example of burst transfer to a device having the same port width.
Figure showing an example
【図9】 ポート幅が等しい装置へのバースト転送で、
転送先のデバイスに送られた状態の一般表現の図FIG. 9 shows a burst transfer to a device having the same port width;
Diagram of the general representation of the state sent to the destination device
【図10】 ポート幅がバーストサイクル数と一致しな
い場合の転送過程を示す図FIG. 10 is a diagram showing a transfer process when the port width does not match the number of burst cycles.
【図11】 共有バス方式の構成図FIG. 11 is a configuration diagram of a shared bus system.
【図12】 シングル転送およびバースト転送を説明す
る図FIG. 12 illustrates single transfer and burst transfer.
【図13】共有バスを介して行う従来のデータ転送方式
を示す図FIG. 13 is a diagram showing a conventional data transfer method performed via a shared bus.
1…マスター装置、1−1…マスターデバイス、1−2
…転送制御回路、1−3…転送用インターフェースバッ
ファ、2…スレーブ装置、2−1…スレーブデバイス、
2−2…転送制御回路、2−3…転送用インターフェー
スバッファ、3…共有バス、4…矢印、5…アドレス指
定時間、6…データ転送時間、7…アービトレーション
時間、8…マスターポート、9,10…共有バスポー
ト、11…スレーブポート、12,13…矢印、14…
レジスタセル、15…右方データパス、16…上方デー
タパス、17…左方データパス、18…下方データパ
ス、19〜22…イネーブル制御信号、24…フリップ
フロップ、25…セレクタ、26〜30…制御ゲート、
H1 〜H15…転送ブロック1: Master device 1-1: Master device 1-2
... Transfer control circuit, 1-3 ... Transfer interface buffer, 2 ... Slave device, 2-1 ... Slave device,
2-2 transfer control circuit 2-3 transfer interface buffer 3 shared bus 4 arrow 5 address designation time 6 data transfer time 7 arbitration time 8 master port 9, 10: Shared bus port, 11: Slave port, 12, 13: Arrow, 14 ...
Register cell, 15: right data path, 16: upper data path, 17: left data path, 18: lower data path, 19-22: enable control signal, 24: flip-flop, 25: selector, 26-30 ... Control gate,
H 1 ~H 15 ... transfer block
Claims (1)
置とスレーブ装置との間でバースト転送によりデータを
転送するデータ転送方式において、レジスタセルが行列
形式に構成され、該レジスタセルに書き込まれたデータ
は行方向および列方向へシフト自在にされると共に、行
方向の端部はマスターデバイスとの間でデータの授受を
行うマスターポートに接続され、列方向の端部は共有バ
スポートに接続された第1の転送用インターフェースバ
ッファを有するマスター装置と、レジスタセルが行列に
構成され、該レジスタセルに書き込まれたデータは行方
向および列方向へシフト自在にされると共に、行方向の
端部はスレーブデバイスとの間でデータの授受を行うス
レーブポートに接続され、列方向の端部は共有バスポー
トに接続された第2の転送用インターフェースバッファ
を有するスレーブ装置とを具え、第1の転送用インター
フェースバッファが前記マスターデバイスとの間でデー
タを授受する際、または第2の転送用インターフェース
バッファが前記スレーブデバイスとの間でデータを授受
する際には、行方向のシフトを行いつつ授受し、前記共
有バスポートを介して共有バスとの間でデータを授受す
る際には、バーストサイクル毎に列方向のシフトを行い
つつ授受することを特徴とするデータ転送方式。 A master device connected via a shared bus.
Data between the device and the slave device by burst transfer.
In the data transfer method for transfer, the register cells are
Data written in the register cell
Can be freely shifted in the row and column directions, and
The end of the direction transmits and receives data to and from the master device.
Connected to the master port for
The first transfer interface bar connected to the
Master device with buffer and register cells in a matrix
And the data written to the register cell
In the row and column directions,
The end is a switch that exchanges data with slave devices.
Connected to the slave port, and the end in the row direction is shared bus port.
Transfer interface buffer connected to the
And a first transfer interface.
The face buffer transfers data to and from the master device.
Data transfer or second transfer interface
Buffer exchanges data with the slave device
When performing the transfer, the transfer is performed while shifting in the row direction.
Transfers data to / from the shared bus via the existing bus port
When performing a shift in the column direction every burst cycle.
A data transfer method characterized by exchanging data while transmitting.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP35948391A JP3336623B2 (en) | 1991-12-27 | 1991-12-27 | Data transfer method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP35948391A JP3336623B2 (en) | 1991-12-27 | 1991-12-27 | Data transfer method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH05181785A JPH05181785A (en) | 1993-07-23 |
| JP3336623B2 true JP3336623B2 (en) | 2002-10-21 |
Family
ID=18464736
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP35948391A Expired - Fee Related JP3336623B2 (en) | 1991-12-27 | 1991-12-27 | Data transfer method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3336623B2 (en) |
-
1991
- 1991-12-27 JP JP35948391A patent/JP3336623B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH05181785A (en) | 1993-07-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3241045B2 (en) | Multiport shared memory interface and related methods | |
| KR100288177B1 (en) | Memory access control circuit | |
| US5155807A (en) | Multi-processor communications channel utilizing random access/sequential access memories | |
| KR100218265B1 (en) | A priority request and bypass bus | |
| JPH0792779B2 (en) | Data transfer controller | |
| JP3336623B2 (en) | Data transfer method | |
| US6701407B1 (en) | Multiprocessor system with system modules each having processors, and a data transfer method therefor | |
| KR100438736B1 (en) | Memory control apparatus of performing data writing on address line | |
| EP0269370B1 (en) | Memory access controller | |
| JP3328246B2 (en) | DMA transfer method and system | |
| JPS61217858A (en) | Data transmitting device | |
| JPH10307787A (en) | Buffer memory device | |
| JP3659345B2 (en) | Bus system and signal transmission method | |
| JP4134371B2 (en) | I/O bus bridge device | |
| JPS6367702B2 (en) | ||
| JPH0642227B2 (en) | Data transfer device | |
| JPS62182857A (en) | Input and output controller | |
| JP2976700B2 (en) | Synchronous control method between processors | |
| JP2820054B2 (en) | Bus interface device | |
| JPH02211571A (en) | Information processor | |
| JP2976254B2 (en) | Information processing device | |
| JP2645462B2 (en) | Data processing system | |
| JPH0750950B2 (en) | Time division switch | |
| KR20000069732A (en) | Data interface and high-speed communication system using the same | |
| JP2001084171A (en) | Image processing device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20070809 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080809 Year of fee payment: 6 |
|
| LAPS | Cancellation because of no payment of annual fees |