JPH03189755A - Inter-memory transfer device - Google Patents
Inter-memory transfer deviceInfo
- Publication number
- JPH03189755A JPH03189755A JP32728289A JP32728289A JPH03189755A JP H03189755 A JPH03189755 A JP H03189755A JP 32728289 A JP32728289 A JP 32728289A JP 32728289 A JP32728289 A JP 32728289A JP H03189755 A JPH03189755 A JP H03189755A
- Authority
- JP
- Japan
- Prior art keywords
- memory
- transfer
- dma controller
- signal
- counter
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000015654 memory Effects 0.000 claims abstract description 47
- 230000006870 function Effects 0.000 claims abstract description 11
- 238000010586 diagram Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 1
- 238000000034 method Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Abstract
Description
【発明の詳細な説明】
(産業上の利用分野)
本発明は、コンピュータやワードプロセッサ等に使用す
る。 DMA(Direct Memory Acce
ss)チャンネルによるメモリーメモリ間データ転送装
置に関する。DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention is used in computers, word processors, and the like. DMA (Direct Memory Access)
ss) relates to an inter-memory data transfer device using a channel.
(従来の技術)
近年、コンピュータやワードプロセッサ等の内部の、フ
ロッピディスクドライブ、ハードディスクドライブ等に
おけるデータ転送は、一般に、CPU(中央処理装置)
を使用しないでデータの高速転送が可能なりMAコント
ローラが用いられている。DMAコントローラは入出力
ポート(以下、Iloと記す)−メモリ間、あるいはメ
モリーメモリ間のデータ転送を高速に可能とするもので
あり、□転送先メモリのアドレスを初期設定すると、後
は自動的にアドレスがインクリメントされて、設定した
回数のデータ転送ができ、終了時には、それを通知する
機能を有し高速転送に重宝がられている。なお、上記で
メモリーメモリ間の転送は転送元メモリのアドレスも指
定する必要がある。(Prior Art) In recent years, data transfer in floppy disk drives, hard disk drives, etc. inside computers, word processors, etc. is generally performed by a CPU (Central Processing Unit).
The MA controller is used because it allows high-speed data transfer without using the MA controller. The DMA controller enables high-speed data transfer between an input/output port (hereinafter referred to as Ilo) and memory, or between memory. □Once the transfer destination memory address is initialized, the rest is automatically performed. The address is incremented, data can be transferred a set number of times, and it has a function to notify you when it is finished, making it useful for high-speed transfer. Note that in the above transfer between memories, it is necessary to also specify the address of the transfer source memory.
(発明が解決しようとする課題)
しかしながら、高速転送が可能なりMAコントローラも
、第2図にDMAコントローラのメモリーメモリ間転送
のタイミングを示したように、メモリーメモリ間転送は
、第3図のようなl/O−メモリ間転送と比較すると、
DMAコントローラを2チヤンネル必要とする不合理が
あり、しかも転送元のメモリのアドレスと転送先のメモ
リのアドレスを、ともに共通のバスに出力する必要があ
るため、転送サイクルが2回になり、したがって転送時
間が2倍になる欠点があった。(Problem to be Solved by the Invention) However, since high-speed transfer is possible, the MA controller can also perform memory-to-memory transfer as shown in FIG. 3, as shown in FIG. Compared to the normal l/O-memory transfer,
It is unreasonable to require two channels of DMA controller, and since it is necessary to output both the transfer source memory address and the transfer destination memory address to a common bus, the transfer cycle becomes two, and therefore There was a drawback that the transfer time was doubled.
本発明は上記従来のメモリ間転送の問題点を排除して、
DMAコントローラの1チヤンネルを使用するメモリ間
転送装置の提供を目的とする。The present invention eliminates the problems of the conventional memory-to-memory transfer described above, and
An object of the present invention is to provide a memory-to-memory transfer device using one channel of a DMA controller.
(課題を解決するための手段)
本発明は上記の目的を、転送するメモリ、または転送さ
れるメモリの何れか一方に、CPUによる任意のアドレ
スを初期値として設定可能な、ロード機能付きカウンタ
と、そのカウンタ出力とシステムのアドレスの何れかを
ローカルアドレスとして出力するセレクタを備えたメモ
リ間転送装置によって達成する。(Means for Solving the Problems) The present invention has achieved the above object by providing a counter with a load function that can set an arbitrary address as an initial value by the CPU to either the memory to be transferred or the memory to be transferred. This is achieved by an inter-memory transfer device equipped with a selector that outputs either the counter output or the system address as a local address.
(作 用)
本発明によれば、一方のメモリをIloとして捉えるこ
とによって、メモリーメモリ間の転送をl/O−メモリ
間転送として行なうことができ、したがって効率のよい
メモリーメモリ間のメモリ転送を極めて高速に行なうこ
とが可能になる。(Function) According to the present invention, by regarding one memory as Ilo, transfer between memories can be performed as an I/O-memory transfer, and therefore efficient memory transfer between memories can be performed. This can be done extremely quickly.
(実施例) 以下、本発明を図面を用いて詳細に説明する。(Example) Hereinafter, the present invention will be explained in detail using the drawings.
第1図は本発明の一実施例の構成を示すブロック図であ
り、1は他の装置から送られたデータaが書込まれた転
送元メモリ、2はデータバスbに接続されている転送先
メモリ、3はDMAコントローラ、4はロード機能付き
カウンタで、任意のアドレス初期値がCPU5により設
定可能であり。FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, where 1 is a transfer source memory in which data a sent from another device is written, and 2 is a transfer source memory connected to a data bus b. 3 is a DMA controller; 4 is a counter with a load function; an arbitrary address initial value can be set by the CPU 5;
許可信号Cによりカウントされる。6はセレクタで、シ
ステムのアドレスバスdとロード機能付きカウンタ4の
カウンタ出力eの2種類の入力切換えを、DMAコント
ローラ3からの許可信号Cにより行ない、ローカルアド
レスfを出力する。7はコマンドコントロール回路で、
DMAコントローラ3から出力されるI/Oコマンドg
を転送元メモリ1のローカルコマンドhに変換し、かつ
DMAコントローラ3に転送要求信号iを出力する。It is counted by the permission signal C. A selector 6 switches between two types of inputs, the address bus d of the system and the counter output e of the counter 4 with a load function, in response to a permission signal C from the DMA controller 3, and outputs a local address f. 7 is a command control circuit,
I/O command g output from DMA controller 3
is converted into a local command h of the transfer source memory 1, and outputs a transfer request signal i to the DMA controller 3.
本発明は上記のような構成を有し、以下、そのデータ転
送動作を、転送元メモリ1から転送先メモリ2への転送
例によって説明する。The present invention has the above configuration, and its data transfer operation will be explained below using an example of transfer from the transfer source memory 1 to the transfer destination memory 2.
一般に外部から、たとえばスキャナ等の入力装置から入
力されるデータは1通常、ラインメモリのような小規模
メモリに格納される。そのメモリデータをシステムメモ
リに転送する場合、前者の小規模メモリを転送元メモリ
1とし、後者のシステムメモリを転送先メモリ2とする
と、読出す転送メモリの開始アドレスをロード機能付き
カウンタ4に、CPU5から初期値として設定する。Generally, data input from the outside, for example from an input device such as a scanner, is typically stored in a small scale memory such as a line memory. When transferring the memory data to the system memory, if the former small-scale memory is used as the transfer source memory 1 and the latter system memory is used as the transfer destination memory 2, the start address of the transfer memory to be read is set in the counter 4 with a load function. Set as an initial value from the CPU 5.
DMAコントローラ3にはl/O−メモリ間転送モード
の指定と転送先アドレスを、同じ<CPU5から設定す
る。このとき、転送元メモリ1はIloとして扱われ、
コマンドコントロール回路7から転送要求信号iが1つ
のDMAチャンネルを使用して出力されると、DMAコ
ントローラ3はバスを獲得して、許可信号Cが返されて
くる。The designation of the l/O-memory transfer mode and the transfer destination address are set in the DMA controller 3 from the same <CPU 5. At this time, the transfer source memory 1 is treated as Ilo,
When the command control circuit 7 outputs the transfer request signal i using one DMA channel, the DMA controller 3 acquires the bus and the permission signal C is returned.
その信号Cによりセレクタ6を切換え、転送元メモリ1
のローカルアドレスfにロード機能付きカウンタ4の初
期値が出力される。アドレスバスdにはDMAコントロ
ーラ3から転送先アドレスが出力されている。また、D
MAコントローラ3から出力されたI/Oコマンドgは
、コマンドコントロール回路7により転送先メモリ2用
の、リード、ライト、アウトプットコントロール等のロ
ーカルコマンドhとして転送元メモリ1に出力され、デ
ータがデータバスbに出力される。The selector 6 is switched by the signal C, and the transfer source memory 1
The initial value of the counter 4 with load function is output to the local address f. A transfer destination address is output from the DMA controller 3 to the address bus d. Also, D
The I/O command g output from the MA controller 3 is output by the command control circuit 7 to the source memory 1 as a local command h such as read, write, output control, etc. for the destination memory 2, and the data is transferred to the source memory 1. It is output to bus b.
一方、転送先メモリ2は通常のDMA動作でデータを取
込み、1回目の転送サイクルが終了し、許可信号Cが無
効化されると、その信号エツジでロード機能付きカウン
タ4が、1カウント繰上げられ、カウンタ出力eは、前
記のカウンタ値に1を加えた値になる。転送要求信号i
がコマンドコントロール回路7から出力され、2回目の
転送が開始されると、前記1回目の転送と同じ手順で口
−カルアドレスfには、転送開始アドレスに1を加えた
アドレスが、アドレスバスdにはDMAコントローラ3
により+1されたアドレスが出力され、2回目の転送サ
イクルが行なわれる。On the other hand, the transfer destination memory 2 takes in data through normal DMA operation, and when the first transfer cycle is completed and the permission signal C is invalidated, the counter 4 with a load function is incremented by one count at the edge of the signal. , the counter output e is a value obtained by adding 1 to the above-mentioned counter value. Transfer request signal i
is output from the command control circuit 7 and the second transfer is started. In the same procedure as the first transfer, an address obtained by adding 1 to the transfer start address is set to the local address f and the address bus d is has DMA controller 3
The address incremented by +1 is output, and the second transfer cycle is performed.
以下、同様にして転送サイクルと共に、アドレスバスd
、ローカルアドレスバスfが繰上げられ、目的のメモリ
ーメモリ間のデータ転送が終了する。Thereafter, in the same way, along with the transfer cycle, the address bus d
, the local address bus f is raised, and the data transfer between the target memories is completed.
(発明の効果)
以上説明して明らかなように本発明は、DMAコントロ
ーラによるメモリーメモリ間のデータ転送が、従来の半
分の時間で行なうことが可能になり、DMAコントロー
ラの使用チャンネルも1チヤンネルで済むから、システ
ム全体のスループットの向上が図れる効果がある。(Effects of the Invention) As is clear from the above explanation, the present invention enables the DMA controller to transfer data between memories in half the time compared to the conventional method, and the DMA controller uses only one channel. This has the effect of improving the throughput of the entire system.
第1図は本発明の構成を示すブロック図、第2図はDM
Aコントローラのメモリーメモリ間データ転送のタイミ
ング図、第3図はDMAコントローラのl/O−メモリ
間のデータ転送のタイミング図である。
1 ・・・転送元メモリ、 2・・・転送先メモリ、
3 ・・・ DMAコントローラ、 4 ・・・ロード
機能付きカウンタ、 5 ・・・CPU、6 ・・・セ
レクタ、 7 ・・・コマンドコントロール回路。Figure 1 is a block diagram showing the configuration of the present invention, Figure 2 is a DM
FIG. 3 is a timing diagram of data transfer between memories of the A controller. FIG. 3 is a timing diagram of data transfer between I/O and memories of the DMA controller. 1...Transfer source memory, 2...Transfer destination memory,
3... DMA controller, 4... Counter with load function, 5... CPU, 6... Selector, 7... Command control circuit.
Claims (1)
先メモリと、DMAチャンネルを利用してデータ転送を
行なうDMAコントローラと、中央処理装置により任意
の初期値が設定され、上記DMAコントローラの許可信
号によりカウントアップされるロード機能付きカウンタ
と、そのカウンタ出力とシステムのアドレスバスの何れ
か一方を、前記DMAコントローラからの許可信号によ
り切換え出力するセレクタと、上記DMAコントローラ
のI/Oコマンドを、上記転送元メモリにローカルコマ
ンドとして出力し、かつ前記DMAコントローラに対し
てデータ転送要求信号を送出するコマンドコントロール
回路から構成されていることを特徴とするメモリ間転送
装置。An arbitrary initial value is set by a transfer source memory and a transfer destination memory connected to the same data bus, a DMA controller that transfers data using a DMA channel, and a central processing unit, and counting is performed by a permission signal from the DMA controller. A counter with a load function to be uploaded, a selector that outputs either the counter output or the address bus of the system by switching the output according to a permission signal from the DMA controller, and an I/O command of the DMA controller to the transfer source. An inter-memory transfer device comprising a command control circuit that outputs a local command to a memory and sends a data transfer request signal to the DMA controller.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP32728289A JPH03189755A (en) | 1989-12-19 | 1989-12-19 | Inter-memory transfer device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP32728289A JPH03189755A (en) | 1989-12-19 | 1989-12-19 | Inter-memory transfer device |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH03189755A true JPH03189755A (en) | 1991-08-19 |
Family
ID=18197385
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP32728289A Pending JPH03189755A (en) | 1989-12-19 | 1989-12-19 | Inter-memory transfer device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH03189755A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101582936B1 (en) * | 2015-03-27 | 2016-01-08 | (주)성창스크랩 | Machine for casting |
-
1989
- 1989-12-19 JP JP32728289A patent/JPH03189755A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101582936B1 (en) * | 2015-03-27 | 2016-01-08 | (주)성창스크랩 | Machine for casting |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5455915A (en) | Computer system with bridge circuitry having input/output multiplexers and third direct unidirectional path for data transfer between buses operating at different rates | |
EP0587370A1 (en) | Method and apparatus for software sharing between multiple controllers | |
JPH03189755A (en) | Inter-memory transfer device | |
JPH04367058A (en) | Information device | |
JP3096382B2 (en) | DMA circuit | |
JP2574821B2 (en) | Direct memory access controller | |
JP2882202B2 (en) | Multi-port access control circuit | |
JPH07160655A (en) | Memory access system | |
JP2884620B2 (en) | Digital image processing device | |
JPH02211571A (en) | Information processor | |
JP2642087B2 (en) | Data transfer processing mechanism between main storage devices | |
JPS62272352A (en) | Memory control circuit | |
JPS58181134A (en) | Data transfer circuit | |
JPS6217873A (en) | Image processing system | |
JPH03214275A (en) | Semiconductor integrated circuit | |
JPH02267654A (en) | Direct memory access device | |
JPH036762A (en) | Direct access method for image memory | |
JPH04116750A (en) | Dma memory transfer device | |
JPH02222052A (en) | Direct memory access controller | |
JPS63201810A (en) | Time system for information processing system | |
JPH02171949A (en) | Dma transfer system | |
JPS63142446A (en) | Address generating system | |
JPH04154346A (en) | Circuit controller | |
JPH01120661A (en) | Memory control circuit | |
JPH01125621A (en) | Register setting system |