JPH04236649A - Data transfer device - Google Patents

Data transfer device

Info

Publication number
JPH04236649A
JPH04236649A JP479791A JP479791A JPH04236649A JP H04236649 A JPH04236649 A JP H04236649A JP 479791 A JP479791 A JP 479791A JP 479791 A JP479791 A JP 479791A JP H04236649 A JPH04236649 A JP H04236649A
Authority
JP
Japan
Prior art keywords
memory
transfer
address
offset
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.)
Pending
Application number
JP479791A
Other languages
Japanese (ja)
Inventor
Atsushi Doi
淳 土井
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP479791A priority Critical patent/JPH04236649A/en
Publication of JPH04236649A publication Critical patent/JPH04236649A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To transfer data at a high speed even at the time of requiring memory-memory transfer plural times and to effectively use a memory. CONSTITUTION:A transfer source reference address 27, a transfer destination base address Z, an offset X, and a frequency (n) in memory-memory transfer are given from a CPU 21 to a DMAC 26 and are held. The first memory- memory transfer with an offset Xn is executed based on the transfer destination base address Z. Next, an operation part 30 adds the offset Xn to the transfer destination base address Z at each time of the end of memory-memory transfer. The next memory-memory transfer is executed based on the addition result (transfer destination base address Z)+(offset Xn), and hereafter, memory-memory transfer is repeatedly executed n times to continuously fill up the memory space. A counter 29 counts down the frequency (n) in memory-memory transfer at each time of the end of memory-memory transfer, and transfer is terminated when the counter reaches 0.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、ダイレクト・メモリ・
アクセス・コントローラ(以下DMACという)を用い
たコンピュータシステムにおけるメモリ−メモリ間など
のデータ転送をするデータ転送装置に関するものである
[Industrial Application Field] The present invention relates to direct memory
The present invention relates to a data transfer device that transfers data between memories in a computer system using an access controller (hereinafter referred to as DMAC).

【0002】0002

【従来の技術】コンピュータシステムにおいて、中央処
理装置(以下CPUという)の処理能力以上のため最も
時間のかかるメモリアクセス関連処理をDMACに代行
させる場合が多い。
2. Description of the Related Art In computer systems, the most time-consuming memory access-related processing is often performed on behalf of the DMAC because it exceeds the processing capacity of the central processing unit (hereinafter referred to as CPU).

【0003】以下、図面を参照しながら上述した従来の
DMACによるデータ転送について説明する。図5は従
来のDMACを持つコンピュータシステムであるデータ
転送装置の構成を示すブロック図である。図5において
、CPU1、メモリ2およびDMAC3の各間を、デー
タバス4、アドレスバス5およびコマンドバス6でそれ
ぞれ結んでいる。
[0003] Data transfer by the above-mentioned conventional DMAC will be explained below with reference to the drawings. FIG. 5 is a block diagram showing the configuration of a data transfer device which is a conventional computer system having a DMAC. In FIG. 5, a data bus 4, an address bus 5, and a command bus 6 connect a CPU 1, a memory 2, and a DMAC 3, respectively.

【0004】図6は、図5の構成でDMACを用いてメ
モリ−メモリ転送を行う場合のメモリ空間の様子を示す
概念図である。図6において、7はメモリ空間全体、A
は転送元基準アドレス、Bは転送先基準アドレス、Xは
転送するアドレス幅を示すオフセットである。
FIG. 6 is a conceptual diagram showing the state of the memory space when memory-to-memory transfer is performed using DMAC in the configuration shown in FIG. In FIG. 6, 7 is the entire memory space, A
is a transfer source reference address, B is a transfer destination reference address, and X is an offset indicating the address width to be transferred.

【0005】上記構成により、以下、その動作を説明す
る。まず、CPU1はDMAC3に対して、転送元基準
アドレスA、転送先基準アドレスBおよびオフセットX
を、データバス4、アドレスバス5およびコマンドバス
6を用いてパラメータとして与える。DMAC3に対し
てデータ転送要求があると、DMAC3はCPU1に対
してコマンドバス6を用いてバス制御権を要求し、続い
て、CPU1はDMAC3に対してバス制御権を渡す。 以上のパラメータ書込み、ハンドシェイクな通信による
バス制御権獲得後、DMAC3はメモリ2に対して、転
送元基準アドレスAからX回の加算または減算されたア
ドレス間のメモリブロックを、転送先基準アドレスBか
らX回の加算または減算されたアドレス間のメモリブロ
ックにデータを転送する。1回の転送終了後、DMAC
3はバス制御権をCPU1に返してデータ転送を終了す
る。
The operation of the above configuration will be explained below. First, the CPU 1 sends the DMAC 3 a transfer source reference address A, a transfer destination reference address B, and an offset X.
are given as parameters using the data bus 4, address bus 5 and command bus 6. When a data transfer request is made to the DMAC3, the DMAC3 requests the bus control right from the CPU1 using the command bus 6, and then the CPU1 passes the bus control right to the DMAC3. After writing the parameters and acquiring bus control through handshake communication, the DMAC 3 transfers the memory block between the addresses added or subtracted X times from the source reference address A to the memory 2 to the destination reference address B. Data is transferred to the memory block between the addresses added or subtracted from X times. After one transfer, DMAC
3 returns the bus control right to the CPU 1 and ends the data transfer.

【0006】[0006]

【発明が解決しようとする課題】しかしながら上記従来
の構成では、1回のメモリ−メモリ転送毎にCPU1と
DMAC3の通信を繰り返すため任意の複数回のメモリ
−メモリ転送が必要な場合、通信に時間がかかって高速
なデータ転送を行うことができないという問題を有して
いた。また同時に、転送先基準アドレスBがメモリ−メ
モリ転送毎に異なるため、メモリブロック間が生じてメ
モリ空間を無駄にするという問題を有していた。
[Problems to be Solved by the Invention] However, in the conventional configuration described above, communication between the CPU 1 and the DMAC 3 is repeated for each memory-to-memory transfer. However, there was a problem in that high-speed data transfer could not be performed due to the high-speed data transfer. At the same time, since the transfer destination reference address B is different for each memory-to-memory transfer, there is a problem in that memory blocks are spaced and memory space is wasted.

【0007】本発明は上記従来の問題を解決するもので
、復数回のメモリ−メモリ転送が必要な場合でも高速な
データ転送を行うことができ、また、メモリを有効に使
用することができるデータ転送装置を提供することを目
的とするものである。
The present invention solves the above-mentioned conventional problems, and allows high-speed data transfer even when memory-to-memory transfer is required several times, and also makes it possible to use memory effectively. The purpose is to provide a data transfer device.

【0008】[0008]

【課題を解決するための手段】上記課題を解決するため
に本発明のデータ転送装置は、CPUと、前記CPUに
対してデータバス、アドレスバスおよびコマンドバスで
結ばれるメモリと、前記CPUおよびメモリに対してデ
ータバス、アドレスバスおよびコマンドバスで結ばれ前
記CPUに依存せず前記メモリに対して任意のアドレス
にアクセス可能であって、前記メモリの持つ全メモリ空
間に対して所定基準アドレスAからX回(オフセット)
の加算または減算されたアドレス間のメモリブロックを
他の所定基準アドレスBからX回の加算または減算され
たアドレス間のメモリブロックにデータを転送するメモ
リ−メモリ転送において、前記所定基準アドレスA、B
、オフセットX、加算か減算かのパラメータ以外に前記
メモリ−メモリ転送をn回行う回数パラメータが与えら
れて、前記メモリに対して異なる複数基準アドレスと異
なるオフセットを持つメモリ−メモリ転送をn回連続し
てメモリ−メモリ転送可能なDMACとを備えたもので
ある。
[Means for Solving the Problems] In order to solve the above problems, a data transfer device of the present invention includes a CPU, a memory connected to the CPU by a data bus, an address bus, and a command bus, and is connected to the memory by a data bus, an address bus, and a command bus, and can access any address in the memory independently of the CPU, and the entire memory space of the memory can be accessed from a predetermined reference address A. X times (offset)
In memory-to-memory transfer in which data is transferred from a memory block between addresses that have been added to or subtracted from another predetermined reference address B to a memory block between addresses that have been added to or subtracted from X times, the predetermined reference addresses A, B
, offset and a DMAC capable of memory-to-memory transfer.

【0009】また、本発明のデータ転送装置は、CPU
と、前記CPUに対してデータバス、アドレスバスおよ
びコマンドバスで結ばれるメモリと、前記CPUおよび
メモリに対してデータバス、アドレスバスおよびコマン
ドバスで結ばれ前記CPUに依存せず前記メモリに対し
て任意のアドレスにアクセス可能であって、前記メモリ
の持つ全メモリ空間に対して所定基準アドレスAからX
回(オフセット)の加算または減算されたアドレス間の
メモリブロックを他の所定基準アドレスBからX回の加
算または減算されたアドレス間のメモリブロックにデー
タを転送するメモリ−メモリ転送において、基準アドレ
スBの代わりに転送先ベースアドレスZが与えられて、
この転送先ベースアドレスZを基準としてオフセットX
の最初のメモリ−メモリ転送を実行し、続いて、(前記
転送先ベースアドレスZ)+(前記オフセットX)の加
算結果を基準として次のメモリ−メモリ転送を実行し、
以下前記加算結果にオフセットXを順次加算した加算結
果を基準にしn回のメモリ−メモリ転送を順次実行して
メモリ空間を連続して埋めるように制御可能なDMAC
とを備えたものである。
[0009] Furthermore, the data transfer device of the present invention has a CPU
and a memory connected to the CPU by a data bus, an address bus, and a command bus, and a memory connected to the CPU and memory by a data bus, an address bus, and a command bus and independent of the CPU and connected to the memory. Any address can be accessed, and predetermined reference addresses A to X can be accessed for the entire memory space of the memory.
In memory-to-memory transfer in which data is transferred from a memory block between addresses that have been added or subtracted X times (offset) to a memory block between addresses that have been added or subtracted X times from another predetermined reference address B, reference address B The forwarding base address Z is given instead of
Offset X based on this forwarding destination base address Z
execute the first memory-to-memory transfer, and then execute the next memory-to-memory transfer based on the addition result of (the transfer destination base address Z) + (the offset X),
A DMAC that can be controlled to successively fill the memory space by sequentially executing n memory-to-memory transfers based on the addition result obtained by sequentially adding an offset X to the addition result.
It is equipped with the following.

【0010】0010

【作用】上記請求項1の構成により、DMACにセット
されたn回分の所定基準アドレスA、B、およびオフセ
ットXとメモリ−メモリ転送回数パラメータnを用いて
、異なる複数基準アドレスと異なるオフセットを持つメ
モリ−メモリ転送をn回連続して行うので、n回のメモ
リ−メモリ転送が一度に連続して行えて高速なメモリ−
メモリ転送が可能となる。
[Operation] According to the structure of claim 1, a plurality of different reference addresses and different offsets are obtained by using n times of predetermined reference addresses A and B set in the DMAC, offset X, and memory-to-memory transfer number parameter n. Since memory-to-memory transfers are performed n times in succession, n times of memory-to-memory transfers can be performed in succession at once, resulting in high-speed memory.
Memory transfer becomes possible.

【0011】上記請求項2の構成により、DMACに転
送先の基準アドレスBの代わりに転送先ベースアドレス
Zが与えられて、この転送先ベースアドレスZを基準と
してオフセットXの最初のメモリ−メモリ転送を実行し
、続いて、(前記転送先ベースアドレスZ)+(前記オ
フセットX)の加算結果を基準として次のメモリ−メモ
リ転送を実行し、以下前記加算結果にオフセットXを順
次加算した加算結果を基準にしてn回のメモリ−メモリ
転送を実行しメモリ空間を連続して順次埋めて行くので
、メモリが有効に利用され,かつ、高速なメモリ−メモ
リ転送が可能となる。
According to the configuration of claim 2, the DMAC is given a transfer destination base address Z instead of the transfer destination reference address B, and the first memory-to-memory transfer of offset X is performed using this transfer destination base address Z as a reference. Then, the next memory-to-memory transfer is performed based on the addition result of (the transfer destination base address Z) + (the offset Since the memory space is successively filled in by performing n-time memory-to-memory transfers based on , the memory is used effectively and high-speed memory-to-memory transfer is possible.

【0012】0012

【実施例】以下、本発明の実施例について図面を参照し
ながら説明する。図1は本発明の第1の実施例のデータ
転送装置の構成を示すブロック図である。図1において
、CPU11とメモリ12の間はデータバス13、アド
レスバス14およびコマンドバス15で結ばれている。 また、DMAC16は,CPU11およびメモリ12に
対してデータバス13、アドレスバス14およびコマン
ドバス15で結ばれCPU11に依存せずメモリ12に
対して任意のアドレスにアクセス可能である。DMAC
16を用いてメモリ12の持つ全メモリ空間に対して転
送元基準アドレス17からX回の加算または減算された
アドレス間のメモリブロックを他の転送先基準アドレス
18からX回の加算または減算されたアドレス間のメモ
リブロックにデータを転送するメモリ−メモリ転送に際
して、これら転送元基準アドレス17、転送先基準アド
レス18、オフセットX、加算か減算かのパラメータ以
外にメモリ−メモリ転送をn回行う回数パラメータがD
MAC16にCPU11から与えられて保持される。こ
の場合、DMAC16は、転送元基準アドレス17、転
送先基準アドイレス18およびオフセットもそれぞれn
回分セット可能な構成とする。そして、メモリ12に対
してDMAC16は、異なる複数の基準アドレスと異な
る複数のオフセットを持つメモリ−メモリ転送をn回連
続して行う構成としている。ここで、DMAC16には
カウンタ19が設けられ、カウンタ19は、DMAC1
6に保持されたメモリ−メモリ転送の回数nをメモリ−
メモリ転送が1回終了する毎にデクリメント、すなわち
減算して行き、n=0 になったときに転送終了とする
ように構成されている。
Embodiments Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing the configuration of a data transfer device according to a first embodiment of the present invention. In FIG. 1, a data bus 13, an address bus 14, and a command bus 15 connect a CPU 11 and a memory 12. Further, the DMAC 16 is connected to the CPU 11 and the memory 12 by a data bus 13, an address bus 14, and a command bus 15, and can access any address in the memory 12 without depending on the CPU 11. DMAC
16 is used to add or subtract the memory blocks between the addresses that have been added or subtracted X times from the transfer source reference address 17 to the entire memory space of the memory 12 and the memory blocks that have been added or subtracted X times from the other transfer destination reference address 18. When performing a memory-to-memory transfer that transfers data to a memory block between addresses, in addition to the parameters of the source reference address 17, destination reference address 18, offset is D
It is given to the MAC 16 from the CPU 11 and is held there. In this case, the DMAC 16 also sets the transfer source reference address 17, the transfer destination reference address 18, and the offset n.
It has a configuration that can be set in batches. The DMAC 16 is configured to perform memory-to-memory transfer n times in succession with a plurality of different reference addresses and a plurality of different offsets with respect to the memory 12. Here, the DMAC 16 is provided with a counter 19, and the counter 19
The number of memory transfers held in memory 6 is expressed as
Each time a memory transfer is completed, it is decremented, that is, subtracted, and the transfer is completed when n=0.

【0013】上記構成により、以下、その動作を説明す
る。まず、DMAC16に対してCPU11は転送元基
準アドレス17n,転送先基準アドレス18nおよびオ
フセットXn、転送元基準アドレス17n−1 ,転送
先基準アドレス18n−1 およびオフセットXn−1
 ・・・をn=1まで設定し、また、メモリ−メモリ転
送回数nを設定する。続いて、DMAC16に対してデ
ータ転送要求があると、DMAC16はCPU11に対
してコマンドバス15を介してバス制御権を要求し、そ
の後CPU11はDMAC16に対してバス制御権を渡
す。以上の各パラメータ書込み、ハンドシェイクな通信
の後にDMAC16はデータバス13、アドレスバス1
4およびコマンドバス15を介してメモリ空間に対して
1回目の転送元基準アドレス18nからデータを読み出
して転送先基準アドレス19nへデータを書込み、以上
の読出/書込み動作をオフセット数Xnだけ行い、1回
目のメモリ−メモリ転送を終了する。続いて、カウンタ
19の値を1回減算して、次のメモリ−メモリ転送に移
る。つまり、転送元基準アドレス18n−1 からデー
タを読出し、転送先基準アドレス19n−1 へデータ
を書込み、以上の読出/書込み動作をオフセット数Xn
−1だけ行い、2回目のメモリ−メモリ転送を終了する
。以上の動作をn=0 となるまで実行した時点でバス
制御権をCPU11に返してデータ転送を終了する。図
2はこの様子を示したもので、1回目に転送元基準アド
レス17nから転送先基準アドレス18nへオフセット
Xn回分、データを転送しており、さらに、2回目に転
送元基準アドレス17n−1から転送先基準アドレス1
8n−1へオフセットXn−1回分、データを転送して
いる。このように、DMAC16にn回分の転送元基準
アドレス,転送先基準アドレスおよびオフセットと、転
送回数nを与えることにより、複数回のメモリ−メモリ
転送を連続して高速にデータ転送することが可能になる
The operation of the above configuration will be explained below. First, for the DMAC 16, the CPU 11 sends a transfer source reference address 17n, a transfer destination reference address 18n, and an offset Xn, a transfer source reference address 17n-1, a transfer destination reference address 18n-1, and an offset Xn-1.
. . . are set up to n=1, and the number of memory-to-memory transfers n is set. Subsequently, when a data transfer request is made to the DMAC 16, the DMAC 16 requests the CPU 11 for bus control rights via the command bus 15, and then the CPU 11 hands over the bus control rights to the DMAC 16. After each parameter write and handshake communication described above, the DMAC 16 transfers data bus 13 and address bus 1.
4 and the command bus 15 to the memory space from the first transfer source reference address 18n and write the data to the transfer destination reference address 19n, perform the above read/write operation for the offset number Xn, and 1 The second memory-to-memory transfer is completed. Subsequently, the value of the counter 19 is subtracted once and the process moves to the next memory-to-memory transfer. In other words, data is read from the transfer source reference address 18n-1, data is written to the transfer destination reference address 19n-1, and the above read/write operation is performed with an offset number of Xn.
-1 is performed, and the second memory-to-memory transfer is completed. When the above operations are executed until n=0, the bus control right is returned to the CPU 11 and the data transfer is completed. Figure 2 shows this situation, in which data is transferred from the source reference address 17n to the destination reference address 18n by offset Xn times in the first transfer, and then from the transfer source reference address 17n-1 in the second transfer. Transfer destination standard address 1
Data is transferred to 8n-1 by offset Xn-1 times. In this way, by providing the DMAC 16 with the transfer source reference address, transfer destination reference address, and offset for n times, and the number of transfers n, it is possible to perform multiple memory-to-memory transfers in succession at high speed. Become.

【0014】図3は本発明の第2の実施例のデータ転送
装置の構成を示すブロック図である。図3において、C
PU21とメモリ22の間はデータバス23、アドレス
バス24およびコマンドバス25で結ばれている。また
、DMAC26は,CPU21およびメモリ22に対し
てデータバス23、アドレスバス24およびコマンドバ
ス25で結ばれCPU21に依存せずメモリ22に対し
て任意のアドレスにアクセス可能である。メモリ22の
持つ全メモリ空間に対して転送元基準アドレス27から
X回の加算または減算されたアドレス間のメモリブロッ
クを上述の転送先基準アドレス28からX回の加算また
は減算されたアドレス間のメモリブロックにデータを転
送するメモリ−メモリ転送に際して、CPU21からD
MAC26に対して転送先基準アドレス28の代わりに
転送先ベースアドレスZが与えられて保持される。すな
わち、転送先ベースアドレスZを設定することにより全
ての転送先基準アドレス28は無効となる。この転送先
ベースアドレスZを基準としてオフセットXnの最初の
メモリ−メモリ転送を実行する。DMAC26には演算
部30が設けられ、続いて演算部30は、転送先ベース
アドレスZを保持しており、転送先ベースアドレスZに
対してメモリ−メモリ転送終了毎にオフセットXnを順
次加算して行く。この加算された(転送先ベースアドレ
スZ)+(オフセットXn)を基準として次のメモリ−
メモリ転送を実行し以下n回のメモリ−メモリ転送を繰
り返し実行してメモリ空間を連続して埋める。 ここで、DMAC26に設けられたカウンタ29は、D
MAC26に保持されたメモリ−メモリ転送の回数nを
メモリ−メモリ転送が1回終了する毎に減算して行き、
n=0 で転送終了とするように構成されている。
FIG. 3 is a block diagram showing the configuration of a data transfer device according to a second embodiment of the present invention. In Figure 3, C
The PU 21 and the memory 22 are connected by a data bus 23, an address bus 24, and a command bus 25. Further, the DMAC 26 is connected to the CPU 21 and the memory 22 by a data bus 23, an address bus 24, and a command bus 25, and can access any address in the memory 22 without depending on the CPU 21. The memory block between the addresses added or subtracted X times from the transfer source reference address 27 to the entire memory space of the memory 22 is used as the memory block between the addresses added or subtracted X times from the transfer destination reference address 28 mentioned above. When transferring data from the CPU 21 to the memory that transfers data to the block,
A transfer destination base address Z is given to the MAC 26 instead of the transfer destination reference address 28 and is held. That is, by setting the transfer destination base address Z, all the transfer destination reference addresses 28 become invalid. The first memory-to-memory transfer of offset Xn is performed using this transfer destination base address Z as a reference. The DMAC 26 is provided with an arithmetic unit 30, which holds a transfer destination base address Z, and sequentially adds an offset go. Based on this added (transfer destination base address Z) + (offset Xn), the next memory
Memory transfer is executed, and then memory-to-memory transfer is repeatedly executed n times to fill the memory space continuously. Here, the counter 29 provided in the DMAC 26 is
The number n of memory-to-memory transfers held in the MAC 26 is subtracted each time a memory-to-memory transfer is completed,
The configuration is such that the transfer ends when n=0.

【0015】上記構成により、以下、その動作を説明す
る。まず、n回のメモリ−メモリ転送の内、第1回目は
、転送先ベースアドレスZを基準として転送元ベースア
ドレス27nからオフセットXnだけ転送を行い、第2
回目は、演算部30で(転送先ベースアドレスZ)+(
オフセット数Xn)を演算して、(転送先ベースアドレ
スZ)+(オフセット数Xn)だけ先のアドレスへ転送
を開始して行く。また、カウンタ29によりメモリ−メ
モリ転送の回数nをメモリ−メモリ転送が1回終了する
毎に減算して行く。このようにして、n回のメモリ−メ
モリ転送を行って終了する。図4はこの様子を示したも
ので、転送元アドレス27nから始まるメモリ−メモリ
転送は、転送先ベースアドレスZから始まるメモリアド
レスに対してオフセットXn回分のデータが転送され、
さらに、転送元アドレス27n−1から始まるメモリ−
メモリ転送は、(転送先ベースアドレスZ)+(前回の
オフセット数Xn)から始まるメモリアドレスに対して
オフセットXn−1回分のデータが転送される。以下同
様にして、(Z+Xn+Xn−1 ),(Z+Xn+X
n−1 +・・),・・・と順次n回繰り返される。こ
れにより、連続したメモリ空間に必要なデータを一度に
集めることができ、メモリの有効利用が可能となる。
The operation of the above configuration will be explained below. First, among the n memory-to-memory transfers, the first transfer is performed by an offset Xn from the transfer source base address 27n with reference to the transfer destination base address Z, and the second
The calculation unit 30 calculates (transfer destination base address Z) + (
The offset number Xn) is calculated, and transfer is started to an address that is (transfer destination base address Z)+(offset number Xn) ahead. Further, the counter 29 subtracts the number n of memory-to-memory transfers every time one memory-to-memory transfer is completed. In this way, memory-to-memory transfer is performed n times and the process ends. FIG. 4 shows this situation. In the memory-to-memory transfer starting from the transfer source address 27n, data for offset Xn times is transferred to the memory address starting from the transfer destination base address Z.
Furthermore, the memory starting from the transfer source address 27n-1
In the memory transfer, data for offset Xn-1 times is transferred to the memory address starting from (transfer destination base address Z) + (previous offset number Xn). Similarly, (Z+Xn+Xn-1), (Z+Xn+X
n-1 +...),... is repeated n times in sequence. As a result, necessary data can be collected in a continuous memory space at once, and memory can be used effectively.

【0016】[0016]

【発明の効果】以上のように本発明によれば、所定基準
アドレスA、B、オフセットX、加算か減算かのパラメ
ータ以外にメモリ−メモリ転送をn回行う回数パラメー
タが与えられて、メモリに対して異なる複数基準アドレ
スと異なるオフセットを持つメモリ−メモリ転送をn回
連続してメモリ−メモリ転送することにより、n回のメ
モリ−メモリ転送を一度に連続して行うことができ、メ
モリ−メモリ転送を高速にすることができるものである
As described above, according to the present invention, in addition to the predetermined reference addresses A, B, offset By performing n consecutive memory-to-memory transfers with different reference addresses and different offsets, n times of memory-to-memory transfers can be performed consecutively at once. This allows high-speed transfer.

【0017】基準アドレスBの代わりに転送先ベースア
ドレスZが与えられて、この転送先ベースアドレスZを
基準としてオフセットXの最初のメモリ−メモリ転送を
実行し、続いて、(前記転送先ベースアドレスZ)+(
前記オフセットX)の加算結果を基準として次のメモリ
−メモリ転送を実行し、以下前記加算結果にオフセット
を順次加算した加算結果を基準にしn回のメモリ−メモ
リ転送を実行してメモリ空間を連続して埋めるように制
御することにより、メモリ−メモリ転送を高速にするこ
とができ、かつメモリを有効に利用することができるも
のである。
A transfer destination base address Z is given instead of the reference address B, and the first memory-to-memory transfer of offset X is executed using this transfer destination base address Z as a reference, and then (the transfer destination base address Z) + (
The next memory-to-memory transfer is executed based on the addition result of the offset By controlling the data to be filled with the data, memory-to-memory transfer can be made faster and the memory can be used more effectively.

【図面の簡単な説明】[Brief explanation of the drawing]

【図1】本発明の第1の実施例におけるデータ転送装置
の構成を示すブロック図である。
FIG. 1 is a block diagram showing the configuration of a data transfer device in a first embodiment of the present invention.

【図2】図1におけるメモリ空間のメモリ−メモリ転送
の様子を示す概念図である。
FIG. 2 is a conceptual diagram showing a state of memory-to-memory transfer of the memory space in FIG. 1;

【図3】本発明の第2の実施例におけるデータ転送装置
の構成を示すブロック図である。
FIG. 3 is a block diagram showing the configuration of a data transfer device in a second embodiment of the present invention.

【図4】図3におけるメモリ空間のメモリ−メモリ転送
の様子を示す概念図である。
FIG. 4 is a conceptual diagram showing a state of memory-to-memory transfer of the memory space in FIG. 3;

【図5】従来のデータ転送装置の構成を示すブロック図
である。
FIG. 5 is a block diagram showing the configuration of a conventional data transfer device.

【図6】図5におけるメモリ空間のメモリ−メモリ転送
の様子を示す概念図である。
FIG. 6 is a conceptual diagram showing a state of memory-to-memory transfer of the memory space in FIG. 5;

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

11、21    CPU 12、22    メモリ 13、23    データバス 14、24    アドレスバス 15、25    コマンドバス 16、26    DMAC 17、17n、17n−1 、・・    転送元基準
アドレス18、18n、18n−1、・・    転送
先基準アドレス19、29    カウンタ 27、27n、27n−1 、・・    転送元基準
アドレス28、28n、28n−1、・・    転送
先基準アドレス30        演算部
11, 21 CPU 12, 22 Memory 13, 23 Data bus 14, 24 Address bus 15, 25 Command bus 16, 26 DMAC 17, 17n, 17n-1,... Transfer source reference address 18, 18n, 18n-1,... - Transfer destination reference address 19, 29 Counter 27, 27n, 27n-1,... Transfer source reference address 28, 28n, 28n-1,... Transfer destination reference address 30 Arithmetic unit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】  中央処理装置と、前記中央処理装置に
対してデータバス、アドレスバスおよびコマンドバスで
結ばれるメモリと、前記中央処理装置およびメモリに対
してデータバス、アドレスバスおよびコマンドバスで結
ばれ前記中央処理装置に依存せず前記メモリに対して任
意のアドレスにアクセス可能であって、前記メモリの持
つ全メモリ空間に対して所定基準アドレスAからX回(
オフセット)の加算または減算されたアドレス間のメモ
リブロックを他の所定基準アドレスBからX回の加算ま
たは減算されたアドレス間のメモリブロックにデータを
転送するメモリ−メモリ転送において、前記所定基準ア
ドレスA、B、オフセットX、加算か減算かのパラメー
タ以外に前記メモリ−メモリ転送をn回行う回数パラメ
ータが与えられて、前記メモリに対して異なる複数基準
アドレスと異なるオフセットを持つメモリ−メモリ転送
をn回連続してメモリ−メモリ転送可能なダイレクト・
メモリ・アクセス・コントローラとを備えたデータ転送
装置。
1. A central processing unit, a memory connected to the central processing unit by a data bus, an address bus, and a command bus; and a memory connected to the central processing unit and the memory by a data bus, an address bus, and a command bus. It is possible to access any address in the memory without depending on the central processing unit, and X times (
In memory-to-memory transfer in which data is transferred from a memory block between addresses to which X offsets have been added or subtracted from another predetermined reference address B to a memory block between addresses to which X times have been added or subtracted, the predetermined reference address A ,B, Offset Direct memory-to-memory transfer possible
A data transfer device comprising a memory access controller.
【請求項2】  中央処理装置と、前記中央処理装置に
対してデータバス、アドレスバスおよびコマンドバスで
結ばれるメモリと、前記中央処理装置およびメモリに対
してデータバス、アドレスバスおよびコマンドバスで結
ばれ前記中央処理装置に依存せず前記メモリに対して任
意のアドレスにアクセス可能であって、前記メモリの持
つ全メモリ空間に対して所定基準アドレスAからX回(
オフセット)の加算または減算されたアドレス間のメモ
リブロックを他の所定基準アドレスBからX回の加算ま
たは減算されたアドレス間のメモリブロックにデータを
転送するメモリ−メモリ転送において、基準アドレスB
の代わりに転送先ベースアドレスZが与えられて、この
転送先ベースアドレスZを基準としてオフセットXの最
初のメモリ−メモリ転送を実行し、続いて、(前記転送
先ベースアドレスZ)+(前記オフセットX)の加算結
果を基準として次のメモリ−メモリ転送を実行し、以下
前記加算結果にオフセットXを順次加算した加算結果を
基準にしn回のメモリ−メモリ転送を順次実行してメモ
リ空間を連続して埋めるように制御可能なダイレクト・
メモリ・アクセス・コントローラとを備えたデータ転送
装置。
2. A central processing unit, a memory connected to the central processing unit by a data bus, an address bus, and a command bus; and a memory connected to the central processing unit and the memory by a data bus, an address bus, and a command bus. It is possible to access any address in the memory without depending on the central processing unit, and X times (
In a memory-to-memory transfer in which data is transferred from a memory block between addresses to which an offset (offset) has been added or subtracted from another predetermined reference address B to a memory block between addresses to which an offset has been added or subtracted X times, the reference address B
A transfer destination base address Z is given instead of , and the first memory-to-memory transfer of offset X is performed using this transfer destination base address Z as a reference, and then Execute the next memory-to-memory transfer based on the addition result of X), and then sequentially execute n memory-to-memory transfers based on the addition result obtained by sequentially adding offset X to the above addition result to make the memory space continuous. Controllable direct filling
A data transfer device comprising a memory access controller.
JP479791A 1991-01-21 1991-01-21 Data transfer device Pending JPH04236649A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP479791A JPH04236649A (en) 1991-01-21 1991-01-21 Data transfer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP479791A JPH04236649A (en) 1991-01-21 1991-01-21 Data transfer device

Publications (1)

Publication Number Publication Date
JPH04236649A true JPH04236649A (en) 1992-08-25

Family

ID=11593766

Family Applications (1)

Application Number Title Priority Date Filing Date
JP479791A Pending JPH04236649A (en) 1991-01-21 1991-01-21 Data transfer device

Country Status (1)

Country Link
JP (1) JPH04236649A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002183080A (en) * 2000-12-15 2002-06-28 Mega Chips Corp Data transfer controlling device and data transferring method
US7752349B2 (en) 2006-02-28 2010-07-06 Fujitsu Limited Apparatus and method for performing DMA data transfer
JP2011103129A (en) * 2010-11-29 2011-05-26 Mega Chips Corp Data transfer controller and data transfer method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002183080A (en) * 2000-12-15 2002-06-28 Mega Chips Corp Data transfer controlling device and data transferring method
US7752349B2 (en) 2006-02-28 2010-07-06 Fujitsu Limited Apparatus and method for performing DMA data transfer
JP2011103129A (en) * 2010-11-29 2011-05-26 Mega Chips Corp Data transfer controller and data transfer method

Similar Documents

Publication Publication Date Title
JPH04246745A (en) Memory access system
US4691280A (en) High performance multi-processor system
JP4531223B2 (en) Data processing apparatus having a plurality of processors sharing a collective memory
JPH04236649A (en) Data transfer device
JPH01125644A (en) Data transfer equipment
EP0114839B1 (en) A high performance multi-processor system
JPH04333952A (en) Dma control lsi
JP2972557B2 (en) Data transfer control device and control method
JP2687716B2 (en) Information processing device
JP2002024157A (en) Method and device for processing dma
JPH0351943A (en) Sharing system for high/low speed bus lines
JPS6336021B2 (en)
JPH01150952A (en) Method and device for controlling access to multi-dimensional address memory
JPS60253083A (en) Storage device controlling system
JPH04138554A (en) Parallel type digital signal processor
JPH04274546A (en) Cycle steal control system
JPS6378260A (en) Input-output device controlling system
JPH04133540A (en) Cyclic communication system
JPS62138940A (en) Register access control system
JPH0193855A (en) Memory control system in information processor
JPS63206855A (en) Data transmission equipment
JPS6383854A (en) Data transfer circuit
JPH05158859A (en) Information processor
JPH0395662A (en) Multiprocessor system
JPH01261763A (en) Dma transfer control device