JPH05334234A - High speed dma transferring device - Google Patents

High speed dma transferring device

Info

Publication number
JPH05334234A
JPH05334234A JP15890492A JP15890492A JPH05334234A JP H05334234 A JPH05334234 A JP H05334234A JP 15890492 A JP15890492 A JP 15890492A JP 15890492 A JP15890492 A JP 15890492A JP H05334234 A JPH05334234 A JP H05334234A
Authority
JP
Japan
Prior art keywords
memory
signal
transfer
dma
gate
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
JP15890492A
Other languages
Japanese (ja)
Inventor
Naoharu Ishigami
直晴 石上
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP15890492A priority Critical patent/JPH05334234A/en
Publication of JPH05334234A publication Critical patent/JPH05334234A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain speed up of a DMA transfer by simultaneously operating a memory read and a memory write in one time of cycle, at the time of the inter-memory transfer of a DMA. CONSTITUTION:At the time of a DMA trasfer, a DMA controller 2 and a decoder 3 simultaneously select arbitrary memory 7 at the origin of transfer and memory 8 at the destination of transfer which carry out the DMA transfer. The DMA controller 2 outputs a memory write (MWR) signal 20 and a memory write (MRO) signal 21 in one cycle, and the decoder 3 outputs a first gate signal 24 and a second gate signal 25 by a DMA trasfer direction control signal 19. Thus, the DMA transfer data are transferred from the memory 7 at the original of transfer through a data bus 11 to the memory 8 of the destination of transfer.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、DMA(Direct
Memory Access)転送に関し、特にメモ
リとメモリ間のDMA転送を高速に行うことができる高
速DMA転送装置に関するものである。
BACKGROUND OF THE INVENTION The present invention relates to a DMA (Direct).
The present invention relates to a memory access transfer, and more particularly to a high-speed DMA transfer device capable of performing high-speed DMA transfer between memories.

【0002】[0002]

【従来の技術】従来、この種のメモリ−メモリ間のDM
A転送は、DMAコントローラから転送元メモリに対し
て、アドレスおよび制御信号を出力することにより、転
送元メモリから転送データが出力され、転送データをラ
ッチする。
2. Description of the Related Art Conventionally, this type of memory-to-memory DM is used.
In the A transfer, the DMA controller outputs an address and a control signal to the transfer source memory to output the transfer data from the transfer source memory and latch the transfer data.

【0003】次に、DMAコントローラから転送先メモ
リに対してアドレスおよび制御信号を出力することによ
り、転送先メモリに転送データが書き込まれるといった
2回のサイクルを必要としていた。
Next, the DMA controller outputs the address and the control signal to the transfer destination memory to write the transfer data to the transfer destination memory, which requires two cycles.

【0004】[0004]

【発明が解決しようとする課題】上述した従来のDMA
転送は、転送元メモリから転送データを読み出すサイク
ルと、転送先メモリに転送データを書き込むという2回
のサイクルを必要とするので、より速くDMA転送を行
いたい場合には、転送の効率が悪くなるという問題点が
ある。
DISCLOSURE OF THE INVENTION Conventional DMA described above
The transfer requires two cycles of reading the transfer data from the transfer source memory and writing the transfer data to the transfer destination memory, so that the transfer efficiency becomes worse if a faster DMA transfer is desired. There is a problem.

【0005】[0005]

【課題を解決するための手段】本発明に係る高速DMA
転送装置は、DMA転送時に同時に転送元メモリおよび
転送先メモリを選択する手段と、1サイクル内で、転送
元メモリにメモリリード信号を出力し、転送先メモリに
メモリライト信号を出力する手段と、DMA転送データ
を転送元メモリからデータバスを介して転送先メモリに
転送する手段とを有している。
High-speed DMA according to the present invention
The transfer device selects a transfer source memory and a transfer destination memory at the same time during DMA transfer, and a means for outputting a memory read signal to the transfer source memory and a memory write signal to the transfer destination memory within one cycle. And means for transferring the DMA transfer data from the transfer source memory to the transfer destination memory via the data bus.

【0006】[0006]

【作用】本発明はメモリ−メモリ間のDMA転送を1サ
イクルで行うことができるので、DMA転送を高速に行
うことができる。
According to the present invention, since the DMA transfer between the memories can be performed in one cycle, the DMA transfer can be performed at high speed.

【0007】[0007]

【実施例】図1は本発明に係る高速DMA転送装置の一
実施例を示すブロック図である。同図において、1は入
出力命令を行うCPUであり、HLDRO信号13が入
力し、HLDAK信号14、I/Oライト信号15、I
/Oリード信号16、CPUメモリリード信号17、C
PUメモリライト信号18がそれぞれ出力する。
1 is a block diagram showing an embodiment of a high speed DMA transfer device according to the present invention. In the figure, reference numeral 1 is a CPU for executing an input / output command, which receives an HLDRO signal 13, an HLDAK signal 14, an I / O write signal 15, I
/ O read signal 16, CPU memory read signal 17, C
The PU memory write signal 18 is output.

【0008】2はDMAコントローラ(DMAC)であ
り、HLDAK信号14、I/Oライト信号15、I/
Oリード信号16がそれぞれ入力し、HLDRO信号1
3、DMA転送方向制御信号19、図2(E)に示すメ
モリライト(MWR)信号20、図2(D)に示すメモ
リリード(MRD)信号21をそれぞれ出力する。
A DMA controller (DMAC) 2 includes an HLDAK signal 14, an I / O write signal 15, and an I / O write signal.
O lead signal 16 is input respectively, and HLDRO signal 1
3, the DMA transfer direction control signal 19, the memory write (MWR) signal 20 shown in FIG. 2E, and the memory read (MRD) signal 21 shown in FIG.

【0009】3はデコーダ(DEC)であり、HLDA
K信号14、DMA転送方向制御信号19が入力し、第
1チップイネーブル信号22、第2チップイネーブル信
号23、第1ゲート信号24、第2ゲート信号25をそ
れぞれ出力する。
Reference numeral 3 is a decoder (DEC), which is an HLDA.
The K signal 14 and the DMA transfer direction control signal 19 are input, and the first chip enable signal 22, the second chip enable signal 23, the first gate signal 24, and the second gate signal 25 are output, respectively.

【0010】このデコーダ(DEC)3は、CPU1か
らの上位アドレスをデコードするときに、下記の第1メ
モリまたは第2メモリの一方を選択するが、DMA転送
時には、HLDAK信号14でモードを切り替えること
により、DMA転送を行う第1メモリおよび第2メモリ
の2つのメモリが同時に選択するように構成されてい
る。
The decoder (DEC) 3 selects either the first memory or the second memory described below when decoding the upper address from the CPU 1, but the mode is switched by the HLDAK signal 14 at the time of DMA transfer. Thus, the two memories of the first memory and the second memory for performing the DMA transfer are simultaneously selected.

【0011】4はゲート回路4A、4Bを備えた第1ゲ
ートであり、メモリライト(MWR)信号20、メモリ
リード(MRD)信号21および第1ゲート信号24が
入力する。5はゲート回路5A、5Bを備えた第2ゲー
トであり、メモリライト(MWR)信号20、メモリリ
ード(MRD)信号21および第2ゲート信号が入力す
る。
Reference numeral 4 denotes a first gate having gate circuits 4A and 4B, to which a memory write (MWR) signal 20, a memory read (MRD) signal 21 and a first gate signal 24 are input. Reference numeral 5 is a second gate having gate circuits 5A and 5B, to which a memory write (MWR) signal 20, a memory read (MRD) signal 21 and a second gate signal are input.

【0012】6A〜6Eは論理オアゲートであり、下記
の第1メモリおよび第2メモリに対して、CPU1から
メモリリード/メモリライトを実行するときに必要とな
るCPUメモリリード信号17およびCPUメモリライ
ト信号18を有効にする。
Reference numerals 6A to 6E are logic OR gates, which are CPU memory read signals 17 and CPU memory write signals required when the CPU 1 executes memory read / memory write to the following first memory and second memory. Enable 18

【0013】7は第1メモリ、8は第2メモリ、9はC
PU1、DMAコントローラ(DMAC)2、デコーダ
(DEC)3間に接続された上位アドレスバス、10は
CPU1、DMAコントローラ(DMAC)2、第1メ
モリ7、第2メモリ8間に接続された下位アドレスバ
ス、11はCPU1、DMAコントローラ(DMAC)
2、第1メモリ7、第2メモリ8間に接続されたデータ
バスである。
7 is the first memory, 8 is the second memory, and 9 is C.
A high-order address bus connected between PU1, DMA controller (DMAC) 2 and decoder (DEC) 3, 10 is a low-order address connected between CPU 1, DMA controller (DMAC) 2, first memory 7 and second memory 8. Bus, 11 is CPU1, DMA controller (DMAC)
2, a data bus connected between the first memory 7 and the second memory 8.

【0014】なお、図2は高速DMA転送の各部の信号
の1サイクルのタイミングの概略図である。この1サイ
クルは、4つのステート26(S1、S2、S3、S
4)からなり、1ステート当たり図2(A)に示すクロ
ック信号の1クロックに相当する。また、図2(B)は
アドレス、図2(C)はデータ、図2(D)はメモリリ
ード(MRD)信号、図2(E)はメモリライト(MW
R)信号であり、1サイクル間で実行することを示す。
FIG. 2 is a schematic diagram of the timing of one cycle of the signal of each part of the high speed DMA transfer. This one cycle consists of four states 26 (S1, S2, S3, S
4), and each state corresponds to one clock of the clock signal shown in FIG. 2B is an address, FIG. 2C is data, FIG. 2D is a memory read (MRD) signal, and FIG. 2E is a memory write (MW).
R) signal, which indicates to execute during one cycle.

【0015】次に、上記構成による高速DMAの動作に
ついて説明する。まず、DMAのリクエストが発生する
と、DMAコントローラ(DMAC)2はCPU1にH
LDRO信号13を出力する。そして、CPU1はこの
HLDRO信号13を受けて、バスを開放した状態を示
すHLDAK信号14をDMAコントローラ(DMA
C)2に出力する。
Next, the operation of the high speed DMA having the above configuration will be described. First, when a DMA request is generated, the DMA controller (DMAC) 2 sends an H
The LDRO signal 13 is output. Then, the CPU 1 receives the HLDRO signal 13 and outputs the HLDAK signal 14 indicating the state where the bus is released to the DMA controller (DMA).
C) Output to 2.

【0016】このDMAコントローラ(DMAC)2は
このHLDAK信号14を受けて、CPU1がバスを開
放した状態になったと判断して、DMAの動作を開始す
る。ここで、第1メモリ7から第2メモリ8へDMA転
送する場合について説明する。
Upon receiving the HLDAK signal 14, the DMA controller (DMAC) 2 determines that the CPU 1 has released the bus, and starts the DMA operation. Here, a case of performing DMA transfer from the first memory 7 to the second memory 8 will be described.

【0017】DMA転送状態にはいると、DMAコント
ローラ(DMAC)2はDMA転送前に、予めCPU1
からI/Oライト信号15、I/Oリード信号16、ア
ドレスバス、データバスを通して設定された転送アドレ
スにより、上位アドレスバス9に送られる上位アドレス
をデコーダ(DEC)3に出力する。
When in the DMA transfer state, the DMA controller (DMAC) 2 is in advance in advance of the CPU 1 before the DMA transfer.
From the I / O write signal 15, the I / O read signal 16, the address bus and the data bus, the upper address sent to the upper address bus 9 is output to the decoder (DEC) 3.

【0018】そこで、デコーダ(DEC)3は上位アド
レスをデコードして、第1チップイネーブル信号22、
第2チップイネーブル信号23を出力して、第1メモリ
7と第2メモリ8を同時に選択する。このように、DM
A転送時には第1メモリ7および第2メモリ8が同時に
選択される。
Therefore, the decoder (DEC) 3 decodes the upper address and outputs the first chip enable signal 22,
The second chip enable signal 23 is output to simultaneously select the first memory 7 and the second memory 8. Thus, DM
At the time of A transfer, the first memory 7 and the second memory 8 are simultaneously selected.

【0019】また、デコーダ(DEC)3はDMAコン
トローラ(DMAC)2から出力するDMA転送方向制
御信号19が入力することにより、第1ゲート信号24
を第1ゲート4に出力し、第2ゲート信号25を第2ゲ
ート5に出力する。
The decoder (DEC) 3 receives the DMA transfer direction control signal 19 output from the DMA controller (DMAC) 2 to input the first gate signal 24.
To the first gate 4 and the second gate signal 25 to the second gate 5.

【0020】このため、第1ゲート4の第1ゲート回路
4Aが閉じ、第2ゲート回路4Bが開く。一方、第2ゲ
ート5の第1ゲート回路5Aが開き、第2ゲート回路5
Bが閉じる。そこで、DMAコントローラ(DMAC)
2から出力するメモリリード(MRD)信号21(図2
(D)参照)は、第1ゲート4の開放状態のゲート回路
4B→論理オアゲート6Bを介して第1メモリ7に入力
し、メモリリード(MRD)を実行する。
Therefore, the first gate circuit 4A of the first gate 4 is closed and the second gate circuit 4B is opened. On the other hand, the first gate circuit 5A of the second gate 5 opens and the second gate circuit 5A
B closes. Therefore, DMA controller (DMAC)
2 is a memory read (MRD) signal 21 (FIG. 2).
(See (D)) is input to the first memory 7 via the gate circuit 4B in the open state of the first gate 4 → the logical OR gate 6B to execute the memory read (MRD).

【0021】また、DMAコントローラ(DMAC)2
から出力するメモリライト(MWR)信号20(図2
(E)参照)は第2ゲート5の開放状態のゲート回路5
A→論理オアゲート6Cを介して第2メモリ8に入力
し、メモリライト(MWR)を実行する。
The DMA controller (DMAC) 2
Memory write (MWR) signal 20 output from
(See (E)) is the gate circuit 5 with the second gate 5 opened.
A → input to the second memory 8 via the logical OR gate 6C to execute a memory write (MWR).

【0022】また、DMAコントローラ(DMAC)2
はCPU1から予め設定された転送方向により、下位ア
ドレスバス10を介して下位アドレスを第1メモリ7お
よび第2メモリ8に送出する。このように、同時に、第
1メモリ7および第2メモリ8の選択、同じ下位アドレ
スの送出、メモリリード(MRD)信号21の第1メモ
リ7への送出、メモリライト(MWR)信号20の第2
メモリ8への送出を1サイクル内で実行することによ
り、DMA転送データはデータバス11を通してデータ
を第1メモリ7から第2メモリ8へ高速にDMA転送す
ることができる。
The DMA controller (DMAC) 2
Sends the lower address to the first memory 7 and the second memory 8 via the lower address bus 10 from the CPU 1 in a preset transfer direction. In this way, at the same time, the first memory 7 and the second memory 8 are selected, the same lower address is transmitted, the memory read (MRD) signal 21 is transmitted to the first memory 7, and the second memory write (MWR) signal 20 is transmitted.
By executing the sending to the memory 8 within one cycle, the DMA transfer data can be DMA-transferred at high speed from the first memory 7 to the second memory 8 through the data bus 11.

【0023】[0023]

【発明の効果】以上詳細に説明したように、本発明に係
る高速DMA転送装置によれば、DMA転送時に同時に
転送元メモリおよび転送先メモリを選択する手段と、1
サイクル内で、転送元メモリにメモリリード信号を出力
し、転送先メモリにメモリライト信号を出力する手段を
設けることにより、メモリとメモリ間のDMA転送を1
サイクルで行うことができるので、DMA転送を高速に
行うことができる効果がある。
As described in detail above, according to the high speed DMA transfer apparatus of the present invention, means for simultaneously selecting the transfer source memory and the transfer destination memory at the time of DMA transfer, and 1
By providing means for outputting a memory read signal to the transfer source memory and outputting a memory write signal to the transfer destination memory within the cycle, DMA transfer between the memories can be reduced to 1
Since it can be performed in cycles, there is an effect that the DMA transfer can be performed at high speed.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明に係る高速DMA転送装置の一実施例を
示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a high speed DMA transfer device according to the present invention.

【図2】図1の高速DMA転送装置の各部の信号の1サ
イクルのタイミングの概略図である。
2 is a schematic diagram of the timing of one cycle of a signal of each unit of the high speed DMA transfer device of FIG.

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

1 CPU 2 DMAコントローラ(DMAC) 3 デコーダ(DEC) 4 第1ゲート 5 第2ゲート 6A〜6E 論理オアゲート 7 第1メモリ 8 第2メモリ 9 上位アドレスバス 10 下位アドレスバス 11 データバス 1 CPU 2 DMA controller (DMAC) 3 Decoder (DEC) 4 First gate 5 Second gate 6A to 6E Logical OR gate 7 First memory 8 Second memory 9 Upper address bus 10 Lower address bus 11 Data bus 11 Data bus

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 入出力命令をDMAコントローラに出力
するCPUと、DMA転送時に転送方向制御信号を出力
し1サイクル内でメモリライト信号およびメモリリード
信号を出力するDMAコントローラと、DMA転送を行
う複数のメモリと、DMA転送時に転送を行う任意の2
つのメモリを同時にイネーブルするイネーブル信号を出
力すると共に、転送方向制御信号を受けて第1ゲート信
号および第2ゲート信号を出力するデコード回路と、前
記第1ゲート信号を受けて前記メモリリード信号が転送
元メモリに出力するように開放される第1ゲートと、前
記第2ゲート信号を受けて前記メモリライト信号を転送
先メモリに出力するように開放される第2メモリとを備
えたことを特徴とする高速DMA転送装置。
1. A CPU that outputs an input / output instruction to a DMA controller, a DMA controller that outputs a transfer direction control signal during DMA transfer and outputs a memory write signal and a memory read signal within one cycle, and a plurality of DMA controllers that perform DMA transfer. Memory and arbitrary 2 that transfers at the time of DMA transfer
A decode circuit that outputs an enable signal for simultaneously enabling two memories, receives a transfer direction control signal, and outputs a first gate signal and a second gate signal, and transfers the memory read signal by receiving the first gate signal A first gate opened to output to the original memory, and a second memory opened to receive the second gate signal and output the memory write signal to the transfer destination memory. High-speed DMA transfer device.
JP15890492A 1992-05-27 1992-05-27 High speed dma transferring device Pending JPH05334234A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15890492A JPH05334234A (en) 1992-05-27 1992-05-27 High speed dma transferring device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15890492A JPH05334234A (en) 1992-05-27 1992-05-27 High speed dma transferring device

Publications (1)

Publication Number Publication Date
JPH05334234A true JPH05334234A (en) 1993-12-17

Family

ID=15681903

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15890492A Pending JPH05334234A (en) 1992-05-27 1992-05-27 High speed dma transferring device

Country Status (1)

Country Link
JP (1) JPH05334234A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6032238A (en) * 1998-02-06 2000-02-29 Interantional Business Machines Corporation Overlapped DMA line transfers
JP2015181043A (en) * 2015-06-09 2015-10-15 株式会社東芝 Memory, data processing method and memory system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6032238A (en) * 1998-02-06 2000-02-29 Interantional Business Machines Corporation Overlapped DMA line transfers
JP2015181043A (en) * 2015-06-09 2015-10-15 株式会社東芝 Memory, data processing method and memory system

Similar Documents

Publication Publication Date Title
EP0426329A1 (en) Combined synchronous and asynchronous memory controller
KR100609623B1 (en) Multi memory chip capable of directly data transferring between internal memories and data transferring method
JPS6035696B2 (en) Bus control device in data processing equipment
JPS5960658A (en) Semiconductor storage device provided with logical function
US6327508B1 (en) Programmable state machine
JPH04363746A (en) Microcomputer system having dma function
JPH05334234A (en) High speed dma transferring device
JPH0353363A (en) Bus architecture converting circuit
JP4838458B2 (en) Semiconductor device
JPH02207363A (en) Data transfer system, device controller, and memory controller
JPH0628307A (en) Bus controller
KR100606698B1 (en) Interfacing apparatus
JPH10198524A (en) Hard disk controller
JP2003308289A (en) Data processor
KR930011426B1 (en) I.c. device having microprogram
KR930000670B1 (en) Interface circuit of common ram between main cpu and sub-cpu
JPH06301641A (en) Electronic computer
KR19980083459A (en) Databus Sizing Device
JPH07121483A (en) Shared memory access control circuit
JPS59133629A (en) Dma transfer control system
JPH01140302A (en) I/o module for programmable controller
JPH04241622A (en) Microprocessor
JPS61292739A (en) Memory device
JPH05120201A (en) Data processor
JPH08339680A (en) Memory access device