JPH03167648A - Direct memory access controller - Google Patents

Direct memory access controller

Info

Publication number
JPH03167648A
JPH03167648A JP30670889A JP30670889A JPH03167648A JP H03167648 A JPH03167648 A JP H03167648A JP 30670889 A JP30670889 A JP 30670889A JP 30670889 A JP30670889 A JP 30670889A JP H03167648 A JPH03167648 A JP H03167648A
Authority
JP
Japan
Prior art keywords
input
address
memory
counter
output
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
JP30670889A
Other languages
Japanese (ja)
Inventor
Aya Tanaka
綾 田中
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP30670889A priority Critical patent/JPH03167648A/en
Publication of JPH03167648A publication Critical patent/JPH03167648A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To extend an input/output device without increasing the number of control signal lines by providing an address storage register, a decoder, and a direct memory access DMA device. CONSTITUTION:A CPU 1 sends the addresses of a memory 2 and an input/output device 3 of the transfer destination to an address storage register 13. At the same time, the CPU 1 sends the information to a counter 10 of a DMA controller 9A and sets the information number to an address counter 11 of the memory 2. The controller 9A actuates a buffer 14 with a command of the CPU 1 to cut off an address bus 6 and transmits the memory read and input/output write signals to transfer the DMA data on the memory 2 and the register 13 to the device 3. A decoder 15 transmits a chip selection signal CS1 to the device 3, and the memory 2 sends the data designated by a bus 6A and the read signal to a data bus 5. Then the device 3 reads the data and updates the counter 10 with both inputs to repetitively subtract the counter 11 down to zero. In such a constitution, the device 3 can be extended without increasing the number of control signal lines.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、DMA (ダイレクトメモリアクセス)コ
ントローラを使用し、メモリと入出力装置との間でデー
タ転送を行うダイレクトメモリアクセス制御装置に関す
るものである。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a direct memory access control device that uses a DMA (direct memory access) controller and transfers data between a memory and an input/output device. be.

[従来の技術] 従来例の構成を第3図を参照しながら説明する。[Conventional technology] The configuration of a conventional example will be explained with reference to FIG.

第3図は、例えば特開平1−114960号公報に示さ
れた従来のダイレクトメモリアクセス制御装置を示すブ
ロック図である。
FIG. 3 is a block diagram showing a conventional direct memory access control device disclosed in, for example, Japanese Unexamined Patent Publication No. 1-114960.

第3図において、従来のダイレクトメモリアクセス制御
装置は、CPU(1)と、メモリ(2)と、入出力装置
(3)と、入出力装置(4)と、これらのCPU(1)
、メモリ(2)、入出力装置〈3〉及び(4)に接続さ
れたデータバス(5〉と、CPU(1)及びメモリ(2
〉に接続されたアドレスバス(6)と、CPU及びメモ
リ〈2〉に接続されたメモリREAD/WRITE線(
7)と、CPU(1)、入出力装置(3)及び(4)に
接続された入出力READ/WRITE&! (8)と
、CPU(1)、入出力装置(3)及び(4)には制御
信号線を介して接続され、がつアドレスバス(6)、メ
モリREAD/WRITE線(7)及び入出力READ
/WRITE線(8〉に接続されたDMAコントローラ
(9)とがら楕戒されている。
In FIG. 3, the conventional direct memory access control device includes a CPU (1), a memory (2), an input/output device (3), an input/output device (4), and these CPUs (1).
, memory (2), data bus (5) connected to input/output devices (3) and (4), CPU (1) and memory (2).
The address bus (6) connected to the CPU and the memory READ/WRITE line (2) connected to the
7) and the input/output READ/WRITE &! connected to the CPU (1), input/output devices (3) and (4). (8) is connected to the CPU (1), input/output devices (3) and (4) via control signal lines, and is connected to the address bus (6), memory READ/WRITE line (7) and input/output READ
The DMA controller (9) connected to the /WRITE line (8>) is also connected.

また、DMAコントローラ(9)は、アドレスバス(6
)に接続されたカウンタ{10}と、このカウンタ(1
0)に接続されたカウンタ(11)と、カウンタ(10
)に接続された信号発生器(12)とから構成されてい
る. つぎに、上述した従来例の動作を説明する。
The DMA controller (9) also has an address bus (6
) connected to counter {10} and this counter (1
counter (11) connected to counter (0) and counter (10
) is connected to a signal generator (12). Next, the operation of the above-mentioned conventional example will be explained.

DMAコントローラ(9)を用いたデータ転送は、入出
力装置(3〉とメモリく2)との間や、メモリ(2)内
部の領域,間などで行われる.DMAコントローラ(9
〉は、データ転送に適した回路構成のため、CPU(1
)のプログラムで行うより高速なデータ転送が可能であ
る.入出力装置(3)からメモリ(2〉へデータを送る
場合は、DMAコントローラ(9〉の一番百のカウンタ
(IO)にデータの書き込まれるメモリ(2)のアドレ
スを設定し、二番目のカウンタ(11)に転送データ数
を設定する. この状態で、入出力装置(3)からDMA動作を要求す
るDMAREQ1信号が入力されると、DMAコントロ
ーラ〈9〉はCPU(1)に、アドレスバス(6)の使
用を要求するHOLDREQ信号を出力する. CPU(1)は、この要求を受け付けると、HOLDA
CK信号を返して停止する。すると、DMAコントロー
ラ(9)はDMAACKI信号を入出力装置(3)に出
力し、DMAデータ転送状態になる. ここで、DMAコントローラ(9〉の信号発生器(12
〉が出力する読出し信号によって、入出力装置(3)か
らデータがデータバスく5)上に読み出される。このデ
ータは、カウンタ(11)の指定するメモリ(2〉のア
ドレスに、信号発生器(12)の出力する書き込み信号
によって書き込まれる. これら読出し書き込み信号に同調して、一番目のカウン
タ(10)は更新され、新しいアドレスを出力する。二
番目のカウンタ(l1)も同時に減算される.これが零
になると、設定されていた回数のデータ転送が終了した
ことを示す信号が出力され、DMAデータ転送が終了す
る. [発明が解決しようとする課題] 上述したような従来のダイレクトメモリアクセス制御装
置では、メモリと、データ転送をする入出力装置を増設
しようとすると、DMAREQ信号、DMAACK信号
などを伝送する制御信号線の数が多くなるという問題点
があった.この発明は、上述した問題点を解決するため
になされたもので、制御信号線を増やさずに、入出力装
置を増設することが,できるダイレクトメモリアクセス
制御装置を得ることを目的とする.[課題を解決するた
めの手段] この発明に係るダイレクトメモリアクセス制御装置は、
以下に述べるような手段を備えたものである. (i).入出力装置のアドレスを記憶するアドレス記憶
レジスタ. ( ii ) .上記アドレス記憶レジスタから出力さ
れたアドレスをデコードし上記入出力装置を指定するア
ドレスデコーダ。
Data transfer using the DMA controller (9) is performed between the input/output device (3) and the memory 2, or between areas within the memory (2). DMA controller (9
> has a circuit configuration suitable for data transfer, so the CPU (1
) allows for faster data transfer than with the program. When sending data from the input/output device (3) to the memory (2>), set the address of the memory (2) where the data will be written in the first hundred counter (IO) of the DMA controller (9>), and Set the number of transfer data in the counter (11). In this state, when the DMAREQ1 signal requesting DMA operation is input from the input/output device (3), the DMA controller <9> sends the address bus to the CPU (1). (6) outputs a HOLDREQ signal requesting the use of HOLDA.
Returns the CK signal and stops. Then, the DMA controller (9) outputs the DMAACKI signal to the input/output device (3) and enters the DMA data transfer state. Here, the signal generator (12) of the DMA controller (9)
Data is read out from the input/output device (3) onto the data bus (5) by the read signal outputted by the input/output device (3). This data is written to the address of the memory (2>) specified by the counter (11) by the write signal output from the signal generator (12).Synchronized with these read/write signals, the first counter (10) is updated and outputs a new address.The second counter (l1) is also decremented at the same time.When this counter reaches zero, a signal indicating that the set number of data transfers has been completed is output, and the DMA data transfer starts. [Problems to be Solved by the Invention] In the conventional direct memory access control device as described above, when adding memory and input/output devices for data transfer, it is difficult to transmit DMAREQ signals, DMAACK signals, etc. This invention was made to solve the above-mentioned problem, and it is possible to add input/output devices without increasing the number of control signal lines. , it is an object of the present invention to obtain a direct memory access control device that can perform the following:
It is equipped with the means described below. (i). Address storage register that stores the address of the input/output device. (ii). An address decoder that decodes the address output from the address storage register and specifies the input/output device.

(ii).メモリと上記入出力装置とのデータ転送を制
御するDMAコントローラ。
(ii). A DMA controller that controls data transfer between the memory and the above input/output device.

[作用] この発明においては、アドレス記憶レジスタによって、
入出力装置のアドレスが記憶される。
[Operation] In this invention, the address storage register allows
The address of the input/output device is stored.

また、アドレスデコーダによって、上記アドレス記憶レ
ジスタから出力されたアドレスがデコードされて上記入
出力装置が指定される。
Further, the address output from the address storage register is decoded by the address decoder to designate the input/output device.

そして、DMAコントローラによって、メモリと上記入
出力装置とのデータ転送が制御される。
The DMA controller controls data transfer between the memory and the input/output device.

[実施例] この発明の実施例の構成を第1図を参照しながら説明す
る。
[Embodiment] The configuration of an embodiment of the present invention will be described with reference to FIG.

第1図は、この発明の一実施例を示すブロック図であり
、CPU(1)〜データパス〈5)、メモリREAD/
WRITE線(7)及び入出力READ/WRITE&
! (8)は上記従来装置のものと全く同一である。
FIG. 1 is a block diagram showing an embodiment of the present invention, including a CPU (1) to a data path (5), a memory READ/
WRITE line (7) and input/output READ/WRITE &
! (8) is exactly the same as that of the conventional device described above.

第1図において、この発明の一実施例は、上述した従来
装置のものと全く同一のものと、CPU(1)及びメモ
リ〈2冫に接続されたアドレスバス(6^)と、CPU
(1)に制御信号線を介して接続され、かつデータパス
(5)、アドレスバス(6^)、メモリREAD/WR
 ITEtl ( 7)及び入出力READ/WRIT
E線(8)に接続されたDMAコントローラ(9^)と
、このDMAコントローラ(9^)に接続されたアドレ
スバス(6B)と、アドレスバス(6^)とアドレスバ
ス〈6B〉とを接続しかつDMAコントローラ(9^)
に接続されたバッファ(l4)と、入力側がアドレスバ
ス(6B〉に接続されかつ出力側が入出力装置(3〉に
接続されたアドレスデコーダ(15)と、入力側がアド
レスバス〈6B)に接続されかつ出力側が入出力装置《
4)に接続されたアドレスデコーダ(16)とから構戒
されている. また、DMAコントローラ(9八)は、カウンタ(lO
〉及び(11)と、信号発生器(12)と、入出力装置
アドレス記憶レジスタ(13)とから構成されている。
In FIG. 1, one embodiment of the present invention has exactly the same components as those of the conventional device described above, a CPU (1), an address bus (6^) connected to a memory (2), and a CPU
(1) via a control signal line, and is connected to the data path (5), address bus (6^), and memory READ/WR.
ITEtl (7) and input/output READ/WRIT
Connect the DMA controller (9^) connected to the E line (8), the address bus (6B) connected to this DMA controller (9^), and the address bus (6^) and the address bus <6B>. Shikatsu DMA controller (9^)
an address decoder (15) whose input side is connected to the address bus (6B) and whose output side is connected to the input/output device (3); and an address decoder (15) whose input side is connected to the address bus (6B). And the output side is an input/output device《
4) and the address decoder (16) connected to the address decoder (16). In addition, the DMA controller (98) has a counter (lO
> and (11), a signal generator (12), and an input/output device address storage register (13).

つぎに、上述した実施例の動作を説明する.例えば、メ
モリ(2)から入出力装置(3〉へのDMAデータ転送
は、次のようにして行われる。
Next, the operation of the above-mentioned embodiment will be explained. For example, DMA data transfer from the memory (2) to the input/output device (3>) is performed as follows.

CPU(1)から入出力装置アドレス記憶レジスタ〈1
3)へメモリ(2)とDMAデータ転送をする人出力装
置(3〉のアドレスを、また、DMAコントローラ(9
^)のカウンタ(io)にデータ転送を行う。メモリ〈
2〉のアドレスを、カウンタ(11〉に転送するデータ
の数を設定する.ここで、CPU(1)からDMAコン
トローラ(9^〉へDMAデータ転送を要求するDMA
REQ信号を出力すると、DMAコントローラ(9^〉
はDMAACK信号を出力し、バッファ(14〉はDM
AACK信号が入力されるとアドレスバス(6^)及び
(6B)を遮断する. DMAコントローラ(9^)はメモリREAD信号と入
出力WRITE信号を出力し、またアドレスハス(6^
)へDMAデータ転送を行うメモリ(2)のアドレスを
、アドレスバス(6B)へ入出力装置アドレス記憶レジ
スタ(13)の内容である入出力装置(3〉のアドレス
を出力する.アドレスバス(6B)をデコードしたアド
レスデコーダ(15)は、入出力装置(3)へチップセ
レクト信号CSIを出力する. メモリ〈2)はアドレスバス(6^〉とメモリREAD
信号の入力により指定されたアドレスのデータをデータ
バス(5)へ出力し、この時、入出力装置(3〉はチッ
プセレクト信号CSIと入出力WR ITE信号の入力
によりデータを取り込む。
From CPU (1) to input/output device address storage register <1
3) to the memory (2) and the address of the output device (3) that transfers DMA data, and also to the DMA controller (9).
Data is transferred to the counter (io) of ^). memory<
Set the address of 2> to the counter (11>) to set the number of data to be transferred.
When the REQ signal is output, the DMA controller (9^>
outputs the DMAACK signal, and the buffer (14> is the DM
When the AACK signal is input, address buses (6^) and (6B) are cut off. The DMA controller (9^) outputs the memory READ signal and the input/output WRITE signal, and also outputs the address hash (6^
), and the address of the input/output device (3), which is the content of the input/output device address storage register (13), is output to the address bus (6B). ), the address decoder (15) outputs a chip select signal CSI to the input/output device (3).The memory (2) is connected to the address bus (6^) and the memory READ.
The data at the address specified by the signal input is output to the data bus (5), and at this time, the input/output device (3>) takes in the data by inputting the chip select signal CSI and the input/output WR ITE signal.

これらREAD/WRITE信号に同期して、カウンタ
(lO)は更新され、カウンタ(11〉は減算され、こ
れが零になるまでDMAデータ転送は繰り返される。
In synchronization with these READ/WRITE signals, the counter (lO) is updated, the counter (11>) is decremented, and the DMA data transfer is repeated until it becomes zero.

この発明の一実施例は、上述したように、メモリ(2)
とデータ転送を行う入出力装置(3)、(4)のアドレ
スをアドレスバス〈5〉へ出力することにより入出力装
置をセレクトできるように楕戒したので、制御信号線を
増やすことなく、入出力装置を増設することができ、拡
張性の高いシステムを安価に構築することができるとい
う効果を奏する。
One embodiment of the present invention, as described above, includes a memory (2)
By outputting the addresses of the input/output devices (3) and (4) that perform data transfer to the address bus <5>, the input/output devices can be selected, so the input/output devices can be selected without increasing the number of control signal lines. This has the effect that output devices can be added and a highly expandable system can be constructed at low cost.

なお、上記実施例では入出力装置(3)及び(4)、ア
ドレスデコーダ(15〉及び〈16〉を、同じ基板上に
設けたものを示したが、システムバスを経由して他の基
板上に設けたとしても同様の動作を期待できる. また、第2図で示すように、1個のアドレスデコーダ(
15^)が全ての入出力装置へのセレクト信号を出力で
きるものであっても所期の目的を達成し得ることはいう
までもない。
In the above embodiment, the input/output devices (3) and (4) and the address decoders (15> and <16>) are provided on the same board, but they can be installed on another board via the system bus. Similar operation can be expected even if the address decoder (
It goes without saying that even if 15^) is capable of outputting select signals to all input/output devices, the intended purpose can be achieved.

[発明の効果] この発明は、以上説明したとおり、入出力装置のアドレ
スを記憶するアドレス記憶レジスタと、上記アドレス記
憶レジスタから出力されたアドレスをデコードし上記入
出力装置を指定するアドレスデコーダと、メモリと上記
入出力装置とのデータ転送を制御するDMAコントロー
ラとを備えたので、制御信号線を増やさずに、入出力装
置を増設することができるという効果を奏する。
[Effects of the Invention] As explained above, the present invention includes an address storage register that stores the address of an input/output device, an address decoder that decodes the address output from the address storage register and specifies the input/output device, Since it includes a DMA controller that controls data transfer between the memory and the input/output device, it is possible to add more input/output devices without increasing the number of control signal lines.

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

第1図はこの発明の一実施例を示すブロック図、第2図
はこの発明の第2実施例を示すブロック図、第3図は従
来のダイレクトメモリアクセス制御装置を示すブロック
図である。 図において、 〈]−)  ・・・ CPLJ、 (2) ・・・ メモリ、 (3) ・・・ 入出力装置、 (4〉 ・・・ 入出力装置、 (5〉 ・・・ データパス、 〈6^)、(6B)  ・・・ ア・ドレスバス、(7
) ・・・ メモリREAD/WRITE線、(8) 
・・・ 入出力READ/WR ITE線、(9^) 
・・・ DMAコントローラ、〈10)  ・・・ カ
ウンタ、 (11)  ・・・ カウンタ、 (12〉  ・・・ 信号発生器、 (13)  ・・・ 入出力装置アドレス記憶レジスタ
、(14)  ・・・ バッファ、 (15)  ・・・ アドレスデコーダ、(16)  
・・・ アドレスデコーダである.なお、各図中、同一
符号は同一、又は相当部分を示す.
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a block diagram showing a second embodiment of the invention, and FIG. 3 is a block diagram showing a conventional direct memory access control device. In the figure, 〈]-)... CPLJ, (2)... Memory, (3)... Input/output device, (4>... Input/output device, (5>... Data path, < 6^), (6B) ... A dress bus, (7
) ... Memory READ/WRITE line, (8)
... Input/output READ/WR ITE line, (9^)
... DMA controller, <10) ... Counter, (11) ... Counter, (12> ... Signal generator, (13) ... I/O device address storage register, (14) ...・Buffer, (15) ...Address decoder, (16)
... It is an address decoder. In each figure, the same reference numerals indicate the same or equivalent parts.

Claims (1)

【特許請求の範囲】[Claims] 入出力装置のアドレスを記憶するアドレス記憶レジスタ
、上記アドレス記憶レジスタから出力されたアドレスを
デコードし上記入出力装置を指定するアドレスデコーダ
、及びメモリと上記入出力装置とのデータ転送を制御す
るDMAコントローラを備えたことを特徴とするダイレ
クトメモリアクセス制御装置。
An address storage register that stores the address of the input/output device, an address decoder that decodes the address output from the address storage register and specifies the input/output device, and a DMA controller that controls data transfer between the memory and the input/output device. A direct memory access control device comprising:
JP30670889A 1989-11-28 1989-11-28 Direct memory access controller Pending JPH03167648A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30670889A JPH03167648A (en) 1989-11-28 1989-11-28 Direct memory access controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30670889A JPH03167648A (en) 1989-11-28 1989-11-28 Direct memory access controller

Publications (1)

Publication Number Publication Date
JPH03167648A true JPH03167648A (en) 1991-07-19

Family

ID=17960352

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30670889A Pending JPH03167648A (en) 1989-11-28 1989-11-28 Direct memory access controller

Country Status (1)

Country Link
JP (1) JPH03167648A (en)

Similar Documents

Publication Publication Date Title
JPH03167648A (en) Direct memory access controller
US5566350A (en) Information device for providing fast data transfer with minimum overhead
JP2565916B2 (en) Memory access controller
JPS6217879Y2 (en)
JP2821176B2 (en) Information processing device
JP2612715B2 (en) Address bus controller
JP2968636B2 (en) Microcomputer
JPH03121545A (en) Ic memory card
JPH039453A (en) Data transfer controller
JPS5999522A (en) Input and output control system
JPH04177452A (en) Information processor
JPH02211571A (en) Information processor
JPH01261768A (en) Data communication system
JPH0194455A (en) System for accessing storage device
JP2002007362A (en) Information processor and extension method for arithmetic processor to be used therefor
JPH02228755A (en) Direct memory access transfer system
JPS63253446A (en) Memory preference switching system
JPH07121483A (en) Shared memory access control circuit
JPH02307149A (en) Direct memory access control system
JPH04120648A (en) Common bus connecting device
JPS6383854A (en) Data transfer circuit
JPS63127361A (en) Data processor
JPS62214452A (en) Memory control system
JPS5979334A (en) Register access device
JPS6160163A (en) Data transfer system