JPH0512182A - Direct memory access controller - Google Patents
Direct memory access controllerInfo
- Publication number
- JPH0512182A JPH0512182A JP18826491A JP18826491A JPH0512182A JP H0512182 A JPH0512182 A JP H0512182A JP 18826491 A JP18826491 A JP 18826491A JP 18826491 A JP18826491 A JP 18826491A JP H0512182 A JPH0512182 A JP H0512182A
- Authority
- JP
- Japan
- Prior art keywords
- data
- memory
- address
- read
- 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.)
- Withdrawn
Links
Landscapes
- Bus Control (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、共通のアドレス、デー
タバスを持つメモリ対メモリのダイレクトメモリアクセ
ス(以下、DMAと略称する)を制御するDMA制御装
置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a DMA controller for controlling memory-to-memory direct memory access (hereinafter abbreviated as DMA) having a common address and data bus.
【0002】[0002]
【従来の技術】従来のDMA制御装置では、次のように
DMAを行っている。すなわち、1つのデータ(所定ビ
ット長のデータ)を一方のメモリ(転送元)からリード
し、そのリードされたデータを保持し、その保持された
データを他方のメモリ(転送先)へライトしている。こ
れを1つのサイクルとしている。したがって、転送すべ
きデータが複数個ある場合、その必要な転送数に等しい
数のサイクルを繰り返すことにより、DMAを行ってい
る。2. Description of the Related Art A conventional DMA control device performs DMA as follows. That is, one data (data of a predetermined bit length) is read from one memory (transfer source), the read data is held, and the held data is written to the other memory (transfer destination). There is. This is one cycle. Therefore, when there is a plurality of data to be transferred, the DMA is performed by repeating the number of cycles equal to the required number of transfers.
【0003】[0003]
【発明が解決しようとする課題】従って、従来のDMA
制御装置では、転送すべきデータが複数個ある場合、D
MAに要する時間が長くなるという欠点がある。Therefore, the conventional DMA is used.
In the control device, if there are a plurality of data to be transferred, D
There is a drawback that the time required for MA becomes long.
【0004】本発明の目的は、転送すべきデータが複数
個ある場合でも、DMAに要する時間を短縮できるDM
A制御装置を提供することにある。An object of the present invention is to reduce the time required for DMA even when there are a plurality of data to be transferred.
It is to provide an A control device.
【0005】[0005]
【課題を解決するための手段】本発明によれば、少なく
ともアドレスバス及びデータバスが共通に転送元および
転送先に接続されており、前記転送元から前記転送先へ
中央処理装置を介することなくデータを転送するDMA
制御装置において、前記中央処理装置がホールド状態の
ときに、前記転送元から複数のデータを順次リードする
手段と、該リードされた複数のデータを保持する手段
と、該保持された複数のデータを前記転送先へ順次ライ
トする手段と、を有することを特徴とするDMA制御装
置が得られる。前記中央処理装置の動作中に、該転送ア
ドレスに前記中央処理装置のアクセスがあれば、前記中
央処理装置をウエイトさせる手段を含んでも良い。ま
た、順次データ数を可変とする手段を含んでも良い。According to the present invention, at least the address bus and the data bus are commonly connected to the transfer source and the transfer destination, and from the transfer source to the transfer destination without going through the central processing unit. DMA to transfer data
In the control device, when the central processing unit is in the hold state, a unit that sequentially reads a plurality of data from the transfer source, a unit that holds the read plurality of data, and a unit that stores the held data. A means for sequentially writing to the transfer destination is provided, and a DMA control device is obtained. Means may be included for causing the central processing unit to wait if the transfer address is accessed by the central processing unit during operation of the central processing unit. It may also include means for sequentially varying the number of data.
【0006】[0006]
【作用】転送元から複数のデータを順次リードし、リー
ドされた複数のデータを保持し、保持された複数のデー
タを転送先へ順次ライトする。A plurality of data is sequentially read from a transfer source, a plurality of read data are held, and a plurality of held data are sequentially written to a transfer destination.
【0007】[0007]
【実施例】以下、本発明の実施例について図面を参照し
て説明する。図1に本発明の一実施例によるDMA制御
装置を示す。図示のDMA制御装置11は、少なくとも
第1のアドレスバスAB1、第1のデータバスDB1が
共通に転送元および転送先に接続されており、転送元か
ら転送先へ中央処理装置(以下、CPUと略称する)1
2を介することなくデータを転送する。本実施例では、
転送元および転送先として第1および第2のメモリ16
および17を有する。すなわち、第1および第2のメモ
リ16および17の一方が転送元で、他方が転送先とな
る。本実施例では、第1および第2のメモリ16および
17は第1の制御バスCB1にも共通に接続されてい
る。Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 shows a DMA controller according to an embodiment of the present invention. In the illustrated DMA control device 11, at least a first address bus AB1 and a first data bus DB1 are commonly connected to a transfer source and a transfer destination, and a central processing unit (hereinafter referred to as CPU Abbreviated) 1
Transfer data without going through 2. In this embodiment,
First and second memories 16 as a transfer source and a transfer destination
And 17. That is, one of the first and second memories 16 and 17 is the transfer source, and the other is the transfer destination. In this embodiment, the first and second memories 16 and 17 are also commonly connected to the first control bus CB1.
【0008】本実施例において、第1および第2のメモ
リ16および17の各々は、ランダム・アクセス・メモ
リ(RAM)である。第1および第2のメモリ16およ
び17の両方がダイナミックRAM(DRAM)である
か、または、一方がDRAMで他方がスタティックRA
M(SRAM)である。しかしながら、第1および第2
のメモリ16および17の両方がSRAMである場合に
は、本実施例のDMA制御装置11は適用できない。In this embodiment, each of the first and second memories 16 and 17 is a random access memory (RAM). Both the first and second memories 16 and 17 are dynamic RAM (DRAM), or one is DRAM and the other is static RA
M (SRAM). However, the first and second
If both of the memories 16 and 17 are SRAMs, the DMA control device 11 of this embodiment cannot be applied.
【0009】本実施例のDMA制御装置11は入出力
(I/O)制御部18を有する。I/O制御部18は、
第2のアドレスバスAB2、第2のデータバスDB2、
および第2の制御バスCB2を介してCPU12に接続
されている。I/O制御部18はI/O装置19に接続
され、I/O装置19の制御を行う。I/O制御部18
はCPU12へバス要求信号とレディ信号とを出力し、
CPU12からバス確認信号を受ける。The DMA controller 11 of this embodiment has an input / output (I / O) controller 18. The I / O control unit 18
A second address bus AB2, a second data bus DB2,
And is connected to the CPU 12 via the second control bus CB2. The I / O control unit 18 is connected to the I / O device 19 and controls the I / O device 19. I / O control unit 18
Outputs a bus request signal and a ready signal to the CPU 12,
A bus confirmation signal is received from the CPU 12.
【0010】本実施例のDMA制御装置11は、リード
アドレスカウンタ21とライトアドレスカウンタ22と
を有する。リードアドレスカウンタ21およびライトア
ドレスカウンタ22は、第2のデータバスDB2を介し
てCPU12に接続されている。リードアドレスカウン
タ21およびライトアドレスカウンタ22の各々のカウ
ント動作は、I/O制御部18によって、後述するよう
に、制御される。リードアドレスカウンタ21はリード
アドレスを出力し、ライトアドレスカウンタ22はライ
トアドレスを出力する。The DMA controller 11 of this embodiment has a read address counter 21 and a write address counter 22. The read address counter 21 and the write address counter 22 are connected to the CPU 12 via the second data bus DB2. The count operation of each of the read address counter 21 and the write address counter 22 is controlled by the I / O control unit 18, as described later. The read address counter 21 outputs a read address, and the write address counter 22 outputs a write address.
【0011】DMA制御装置11はリードモードとライ
トモードのどちらか一方で動作可能である。リードモー
ドであるかライトモードであるかは、第2の制御バスC
B2を介してCPU12から送出されてくるモード制御
信号によって設定される。The DMA controller 11 can operate in either the read mode or the write mode. Whether the read mode or the write mode is used is determined by the second control bus C.
It is set by a mode control signal sent from the CPU 12 via B2.
【0012】DMA制御装置11はクロック発生回路2
3を有する。クロック発生回路23から発生したクロッ
ク信号は、CPU12へ供給されると共に、カウントク
ロック制御回路24およびメモリリード/ライト(R/
W)制御回路25へも供給される。The DMA controller 11 includes a clock generation circuit 2
Have three. The clock signal generated from the clock generation circuit 23 is supplied to the CPU 12, and the count clock control circuit 24 and the memory read / write (R /
W) It is also supplied to the control circuit 25.
【0013】カウントクロック制御回路24は、後述す
るように、I/O制御部18およびメモリR/W制御回
路25によってその動作が制御される。カウントクロッ
ク制御回路24は、リード制御クロック信号およびライ
ト制御クロック信号を、それぞれ、リードアドレスカウ
ンタ21およびライトアドレスカウンタ22へ出力す
る。また、カウントクロック制御回路24は、ターミナ
ル制御クロック信号をターミナルカウンタ26へ出力す
る。ターミナルカウンタ26は、I/O制御部18の制
御下でターミナル制御クロック信号のクロックをカウン
トする。ターミナルカウンタ26はカウント値を出力す
る。The operation of the count clock control circuit 24 is controlled by the I / O control unit 18 and the memory R / W control circuit 25, as will be described later. The count clock control circuit 24 outputs the read control clock signal and the write control clock signal to the read address counter 21 and the write address counter 22, respectively. The count clock control circuit 24 also outputs a terminal control clock signal to the terminal counter 26. The terminal counter 26 counts the clock of the terminal control clock signal under the control of the I / O control unit 18. The terminal counter 26 outputs the count value.
【0014】カウントクロック制御回路24は双方向レ
ジスタ27へシフトクロック信号を送出する。双方向レ
ジスタ27はN段のシフトレジスタである。レジスタ段
数レジスタ28には、双方向レジスタ27の使用するレ
ジスタ段数n(nはN以下の整数)がセットされる。す
なわち、I/O制御部18の制御により、レジスタ段数
レジスタ28には第2のデータバスDB2を介してレジ
スタ段数nがセットされる。The count clock control circuit 24 sends a shift clock signal to the bidirectional register 27. The bidirectional register 27 is an N-stage shift register. The number of register stages n used by the bidirectional register 27 (n is an integer equal to or less than N) is set in the register stage number register 28. That is, under the control of the I / O control unit 18, the register stage number register 28 is set to the register stage number n via the second data bus DB2.
【0015】レジスタ段数レジスタ28に保持されたレ
ジスタ段数nは比較器29の一方の入力に供給される。
比較器29の他方の入力にはターミナルカウンタ26の
カウント値が供給される。レジスタ段数nとカウント値
と一致したとき、比較器29は一致信号を双方向レジス
タ27へ出力する。The register stage number n held in the register stage number register 28 is supplied to one input of the comparator 29.
The count value of the terminal counter 26 is supplied to the other input of the comparator 29. When the register number n and the count value match, the comparator 29 outputs a match signal to the bidirectional register 27.
【0016】メモリR/W制御回路25は、I/O制御
部18によって、後述するように、制御される。メモリ
R/W制御回路25は第1のアドレスバスAB1および
第1の制御バスCB1を介して第1および第2のメモリ
16および17に接続されている。メモリR/W制御回
路25は第2のアドレスバスAB2および第2の制御バ
スCB2を介してCPU12に接続されている。The memory R / W control circuit 25 is controlled by the I / O control unit 18 as described later. The memory R / W control circuit 25 is connected to the first and second memories 16 and 17 via the first address bus AB1 and the first control bus CB1. The memory R / W control circuit 25 is connected to the CPU 12 via the second address bus AB2 and the second control bus CB2.
【0017】リードアドレスカウンタ21の出力(リー
ドアドレス)およびライトアドレスカウンタ22の出力
(ライトアドレス)はセレクタ30に供給されている。
セレクタ30は、メモリR/W制御回路25からの選択
信号に応答して、リードアドレスかライトアドレスの一
方を選択し、選択されたアドレスを出力する。もっと詳
細に述べると、I/O制御部18からリードモードであ
ることが伝えられると、メモリR/W制御回路25はセ
レクタ30に対してリードアドレスを選択させる。逆
に、I/O制御部18からライトモードであることが伝
えられると、メモリR/W制御回路25はセレクタ30
に対してライトアドレスを選択させる。セレクタ30で
選択されたアドレスはメモリR/W制御回路25に供給
される。メモリR/W制御回路25は供給されたこの選
択されたアドレスを列アドレスとして、後述するよう
に、第2のアドレスバスAD2を介して第1および第2
のメモリ16および17へ供給される。The output (read address) of the read address counter 21 and the output (write address) of the write address counter 22 are supplied to the selector 30.
The selector 30 selects one of the read address and the write address in response to the selection signal from the memory R / W control circuit 25 and outputs the selected address. More specifically, when the I / O control unit 18 reports that the read mode is set, the memory R / W control circuit 25 causes the selector 30 to select a read address. On the contrary, when the I / O control unit 18 informs that the write mode is set, the memory R / W control circuit 25 causes the selector 30 to operate.
Select the write address for. The address selected by the selector 30 is supplied to the memory R / W control circuit 25. The memory R / W control circuit 25 uses the supplied selected address as a column address, as will be described later, via the second address bus AD2 to generate the first and second signals.
To the memories 16 and 17 of the.
【0018】第1のデータバスDB1と第2のデータバ
スDB2とは、第1の双方向バス31に接続されてい
る。第1のデータバスDB1は第2の双方向バス32に
接続されている。第2の双方向バス32は内部データバ
スDB3を介して双方向レジスタ26に接続されてい
る。The first data bus DB1 and the second data bus DB2 are connected to the first bidirectional bus 31. The first data bus DB1 is connected to the second bidirectional bus 32. The second bidirectional bus 32 is connected to the bidirectional register 26 via the internal data bus DB3.
【0019】本実施例のDMA制御装置は、この分野で
周知の、DRAMのページモード(ニブルモード)を利
用して、後で詳細に説明するように、データのDMA転
送を行う。このページモードを利用することにより、複
数のデータリード、複数のデータ保持、および複数のデ
ータライトを1つのサイクルとしてDMAを行う。The DMA controller of the present embodiment utilizes the page mode (nibble mode) of DRAM, which is well known in the art, to perform DMA transfer of data as will be described in detail later. By using this page mode, DMA is performed with a plurality of data reads, a plurality of data retentions, and a plurality of data writes as one cycle.
【0020】次に、ページモードについて、簡単に説明
する。周知のように、DRAMは行アドレスと列アドレ
スとによって記憶位置(メモリセル)が指定される。ペ
ージモードでは、一度、行アドレスを指定すると、以
下、列アドレスを繰り返し入力することにより、同一行
内のメモリセルを連続してアクセスすることができる。
従って、最初を除いて行アドレスの入力を省略でき、高
速アクセスが可能である。Next, the page mode will be briefly described. As is well known, in DRAM, a storage location (memory cell) is designated by a row address and a column address. In the page mode, once a row address is designated, memory cells in the same row can be successively accessed by repeatedly inputting a column address.
Therefore, the input of the row address can be omitted except at the beginning, and high-speed access is possible.
【0021】以下、図1に示されたDMA制御装置の動
作について説明する。先ず、I.リードモードについて
説明し、その後にII.ライトモードについて説明する。
また、以下では、第1のメモリ16が転送元であると
し、第2のメモリ17が転送先であるとして説明する。The operation of the DMA controller shown in FIG. 1 will be described below. First, I. The read mode will be explained, and then II. The write mode will be described.
In the following description, the first memory 16 is the transfer source and the second memory 17 is the transfer destination.
【0022】I.リードモード
転送すべきデータ数nを設定するために、CPU12は
レジスタ段数nを第2のデータバスDB2へ、保持制御
信号を第2の制御バスCB2へ出力する。この保持制御
信号に応答して、レジスタ段数レジスタ28はレジスタ
段数nを保持する。引き続いて、CPU12は、第1の
メモリ16からデータを読み出すことを指示するアクセ
ス指示信号を第2の制御バスCB2へ出力する。このア
クセス指示信号に応答して、メモリR/W制御回路25
は、第1の制御バスCB1を介して第1のメモリ16を
読み出し可能状態する。これにより、第1のメモリ16
は転送元として指定される。I. In order to set the number of data n to be transferred in the read mode, the CPU 12 outputs the number of register stages n to the second data bus DB2 and the hold control signal to the second control bus CB2. In response to this hold control signal, the register stage number register 28 holds the register stage number n. Subsequently, the CPU 12 outputs an access instruction signal instructing to read the data from the first memory 16 to the second control bus CB2. In response to this access instruction signal, the memory R / W control circuit 25
Sets the first memory 16 in a readable state via the first control bus CB1. As a result, the first memory 16
Is designated as the transfer source.
【0023】次に、CPU12は第2の制御バスCB2
を介してリードモードを指示するモード制御信号を、第
2のデータバスDB2を介して列アドレスの初期値を、
第2のアドレスバスAB2を介して行アドレスを出力す
る。このモード制御信号に応答して、I/O制御部18
はリードアドレスカウンタ21へ初期値を設定し、カウ
ントクロック制御回路24、メモリR/W制御回路2
5、および双方向レジスタ27へその旨を伝える。Next, the CPU 12 uses the second control bus CB2.
A mode control signal for instructing a read mode via the second data bus DB2, and an initial value of the column address via the second data bus DB2.
The row address is output via the second address bus AB2. In response to this mode control signal, the I / O controller 18
Sets an initial value to the read address counter 21, count clock control circuit 24, memory R / W control circuit 2
5 and the so-called bidirectional register 27.
【0024】これによって、カウントクロック制御回路
24は、リード制御クロック信号およびターミナル制御
クロック信号を、それぞれ、リードアドレスカウンタ2
1およびターミナルカウンタ26へ出力する。また、メ
モリR/W制御回路25は、セレクタ30にリードアド
レスを選択されたアドレスとして選択させる。また、双
方向レジスタ27は内部データバスDB3上のデータを
書き込むモードとなる。さらに、メモリR/W制御回路
25は第1の双方向バッファ31を第2のデータバスD
B2と第1のデータバスDB1との間を遮断するよう
に、第2の双方向バッファ32を第1のデータバスDB
1と内部データバスDB3との間を接続するように制御
する。これにより、CPU12はホールド状態となる。As a result, the count clock control circuit 24 supplies the read control clock signal and the terminal control clock signal to the read address counter 2 respectively.
1 and output to the terminal counter 26. Further, the memory R / W control circuit 25 causes the selector 30 to select the read address as the selected address. The bidirectional register 27 is in a mode for writing data on the internal data bus DB3. Further, the memory R / W control circuit 25 sets the first bidirectional buffer 31 to the second data bus D.
The second bidirectional buffer 32 is connected to the first data bus DB so as to cut off the connection between B2 and the first data bus DB1.
1 and the internal data bus DB3 are controlled to be connected. As a result, the CPU 12 enters the hold state.
【0025】リード制御クロック信号に応答して、リー
ドアドレスカウンタ21は初期値からカウントアップ
し、リードアドレスを出力する。このリードアドレスは
セレクタ30を介して選択されたアドレスとしてメモリ
R/W制御回路25に供給される。メモリR/W制御回
路25は選択されたアドレスを列アドレスとし、この列
アドレスとCPU12から供給される行アドレスとを時
分割に第1のアドレスバスAB1へ出力する。これによ
り、第1のメモリ16からデータが順次に読み出され
る。従って、I/O制御部18、リードアドレスカウン
タ21、カウントクロック制御回路24、メモリR/W
制御回路25、およびセレクタ30とによって、転送元
から複数のデータを順次にリードする手段が構成され
る。In response to the read control clock signal, the read address counter 21 counts up from the initial value and outputs the read address. This read address is supplied to the memory R / W control circuit 25 as an address selected via the selector 30. The memory R / W control circuit 25 uses the selected address as a column address, and outputs the column address and the row address supplied from the CPU 12 to the first address bus AB1 in a time division manner. As a result, the data is sequentially read from the first memory 16. Therefore, the I / O control unit 18, the read address counter 21, the count clock control circuit 24, the memory R / W
The control circuit 25 and the selector 30 constitute a unit for sequentially reading a plurality of data from the transfer source.
【0026】このリードされた複数のデータは、双方向
バッファ32を介して双方向レジスタ27に供給され
る。双方向レジスタ27は、この供給される複数のデー
タをカウントクロック制御回路24からのシフトクロッ
ク信号に応答して保持する。従って、この双方向レジス
タ27はリードされた複数のデータを保持する手段とし
て働く。The plurality of read data are supplied to the bidirectional register 27 via the bidirectional buffer 32. The bidirectional register 27 holds the supplied plurality of data in response to the shift clock signal from the count clock control circuit 24. Therefore, the bidirectional register 27 functions as a means for holding a plurality of read data.
【0027】一方、ターミナル制御クロック信号に応答
して、ターミナルカウンタ26はカウントアップし、カ
ウント値を出力する。このカウント値は、第1のメモリ
16から双方向レジスタ27へ転送されたデータ数に等
しい。比較器29は、レジスタ段数レジスタ28にセッ
トされたレジスタ段数nとカウント値とを比較し、これ
らが一致したとき、一致信号を双方向レジスタ27へ出
力する。この一致信号に応答して、双方向レジスタ27
はデータの書込みを終了する。したがって、レジスタ段
数レジスタ28にセットするレジスタ段数nを変えるこ
とにより、順次データ数を可変とすることができる。換
言すれば、ターミナルカウンタ26とレジスタ段数レジ
スタ28と比較器29との組合わせは、順次データ数を
可変とする手段として働く。On the other hand, in response to the terminal control clock signal, the terminal counter 26 counts up and outputs the count value. This count value is equal to the number of data transferred from the first memory 16 to the bidirectional register 27. The comparator 29 compares the register stage number n set in the register stage number register 28 with the count value, and when they match, outputs a coincidence signal to the bidirectional register 27. In response to this match signal, the bidirectional register 27
Ends the writing of data. Therefore, the number of data can be sequentially changed by changing the number of register stages n set in the register stage number register 28. In other words, the combination of the terminal counter 26, the register stage number register 28, and the comparator 29 works as a means for sequentially varying the number of data.
【0028】II.ライトモード
CPU12は、第2のメモリへデータを書き込むことを
指示するアクセス指示信号を第2の制御バスCB2へ出
力する。このアクセス指示信号に応答して、メモリR/
W制御回路25は、第1の制御バスCB1を介して第2
のメモリ17を書き込み可能状態する。これにより、第
2のメモリ17は転送先として指定される。II. The write mode CPU 12 outputs an access instruction signal for instructing writing of data to the second memory to the second control bus CB2. In response to this access instruction signal, the memory R /
The W control circuit 25 receives the second control signal via the first control bus CB1.
The memory 17 is set to the writable state. As a result, the second memory 17 is designated as the transfer destination.
【0029】次に、CPU12は第2の制御バスCB2
を介してライトモードを指示するモード制御信号を、第
2のデータバスDB2を介して列アドレスの初期値を、
第2のアドレスバスAB2を介して行アドレスを出力す
る。このモード制御信号に応答して、I/O制御部18
はライトアドレスカウンタ22へ初期値を設定し、カウ
ントクロック制御回路24、メモリR/W制御回路2
5、および双方向レジスタ27へその旨を伝える。Next, the CPU 12 uses the second control bus CB2.
A mode control signal for instructing the write mode via the second data bus DB2, and an initial value of the column address via the second data bus DB2.
The row address is output via the second address bus AB2. In response to this mode control signal, the I / O controller 18
Sets an initial value to the write address counter 22, and count clock control circuit 24 and memory R / W control circuit 2
5 and the so-called bidirectional register 27.
【0030】これによって、カウントクロック制御回路
24は、ライト制御クロック信号およびターミナル制御
クロック信号を、それぞれ、ライトアドレスカウンタ2
2およびターミナルカウンタ26へ出力する。また、メ
モリR/W制御回路25は、セレクタ30にライトアド
レスを選択されたアドレスとして選択させる。また、双
方向レジスタ27は内部データバスDB3上へデータを
読み出すモードとなる。さらに、メモリR/W制御回路
25は第1の双方向バッファ31を第2のデータバスD
B2と第1のデータバスDB1との間を遮断するよう
に、第2の双方向バッファ32を第1のデータバスDB
1と内部データバスDB3との間を接続するように制御
する。これにより、CPU12はホールド状態となる。As a result, the count clock control circuit 24 supplies the write control clock signal and the terminal control clock signal to the write address counter 2 respectively.
2 and the terminal counter 26. Further, the memory R / W control circuit 25 causes the selector 30 to select the write address as the selected address. In addition, the bidirectional register 27 is in a mode for reading data onto the internal data bus DB3. Further, the memory R / W control circuit 25 sets the first bidirectional buffer 31 to the second data bus D.
The second bidirectional buffer 32 is connected to the first data bus DB so as to cut off the connection between B2 and the first data bus DB1.
1 and the internal data bus DB3 are controlled to be connected. As a result, the CPU 12 enters the hold state.
【0031】ライト制御クロック信号に応答して、ライ
トアドレスカウンタ22は初期値からカウントアップ
し、ライトアドレスを出力する。このライトアドレスは
セレクタ30を介して選択されたアドレスとしてメモリ
R/W制御回路25に供給される。メモリR/W制御回
路25は選択されたアドレスを列アドレスとし、この列
アドレスとCPU12から供給される行アドレスとを時
分割に第1のアドレスバスAB1へ出力する。一方、こ
れと同期して、双方向レジスタ27からは、これに保持
された複数のデータがカウントクロック制御回路24か
らのシフトクロック信号に応答して読み出され、第2の
双方向バッファ32を介して第1のデータバスDB1上
へ送出される。これにより、第1のデータバスDB1上
のデータが第2のメモリ17へ順次に書き込まれる。従
って、I/O制御部18、ライトアドレスカウンタ2
2、カウントクロック制御回路24、メモリR/W制御
回路25、およびセレクタ30とによって、複数のデー
タを順次に転送先へライトする手段が構成される。In response to the write control clock signal, the write address counter 22 counts up from the initial value and outputs the write address. This write address is supplied to the memory R / W control circuit 25 as an address selected via the selector 30. The memory R / W control circuit 25 uses the selected address as a column address, and outputs the column address and the row address supplied from the CPU 12 to the first address bus AB1 in a time division manner. On the other hand, in synchronization with this, the plurality of data held therein are read from the bidirectional register 27 in response to the shift clock signal from the count clock control circuit 24, and the second bidirectional buffer 32 is read. Via the first data bus DB1. As a result, the data on the first data bus DB1 is sequentially written to the second memory 17. Therefore, the I / O controller 18 and the write address counter 2
2, the count clock control circuit 24, the memory R / W control circuit 25, and the selector 30 constitute a unit for sequentially writing a plurality of data to the transfer destination.
【0032】以上により、DMAの1サイクルが終了す
る。従って、一度に、複数のデータを転送元から転送先
へDMA転送できる。これにより、DMAに要する時間
を短縮できる。With the above, one cycle of DMA is completed. Therefore, a plurality of data can be DMA-transferred from the transfer source to the transfer destination at one time. As a result, the time required for DMA can be shortened.
【0033】尚、上記DMA転送中に、CPUが転送ア
ドレスにアクセスしたとする。この場合、I/O制御部
18はCPU12へDMA転送が終了するまではレディ
信号を送出しない。このため、CPU12はウエイト状
態となる。It is assumed that the CPU accesses the transfer address during the DMA transfer. In this case, the I / O controller 18 does not send the ready signal to the CPU 12 until the DMA transfer is completed. Therefore, the CPU 12 is in a wait state.
【0034】[0034]
【発明の効果】以上説明したように本発明によれば、複
数のデータを一度にDMA転送できるので、DMAに要
する時間を短縮できるという効果がある。As described above, according to the present invention, a plurality of data can be DMA-transferred at one time, so that the time required for DMA can be shortened.
【図1】本発明の一実施例によるDMA制御装置を示す
ブロック図である。FIG. 1 is a block diagram showing a DMA controller according to an embodiment of the present invention.
【符号の説明】 11 DMA制御装置 12 CPU 16,17 メモリ 18 I/O制御部 19 I/O装置 21 リードアドレスカウンタ 22 ライトアドレスカウンタ 23 クロック発生回路 24 カウントクロック制御回路 25 メモリR/W制御回路 26 ターミナルカウンタ 27 双方向レジスタ 28 レジスタ段数レジスタ 29 比較器 30 セレクタ 31,32 双方向バッファ[Explanation of symbols] 11 DMA controller 12 CPU 16,17 memory 18 I / O controller 19 I / O device 21 Read address counter 22 Write address counter 23 Clock generation circuit 24 count clock control circuit 25 Memory R / W control circuit 26 Terminal Counter 27 Bidirectional register 28-register stage number register 29 comparator 30 selector 31,32 bidirectional buffer
Claims (3)
が共通に転送元および転送先に接続されており、前記転
送元から前記転送先へ中央処理装置を介することなくデ
ータを転送するダイレクトメモリアクセス制御装置にお
いて、 前記中央処理装置がホールド状態のときに、前記転送元
から複数のデータを順次リードする手段と、 該リードされた複数のデータを保持する手段と、 該保持された複数のデータを前記転送先へ順次ライトす
る手段とを有することを特徴とするダイレクトメモリア
クセス制御装置。1. A direct memory access control device, wherein at least an address bus and a data bus are commonly connected to a transfer source and a transfer destination, and data is transferred from the transfer source to the transfer destination without going through a central processing unit. , A means for sequentially reading a plurality of data from the transfer source when the central processing unit is in a hold state, a means for holding the plurality of read data, and a means for holding the plurality of held data And a means for sequentially writing to the direct memory access control device.
ドレスに前記中央処理装置のアクセスがあれば、前記中
央処理装置をウエイトさせる手段を含む請求項1記載の
ダイレクトメモリアクセス制御装置。2. The direct memory access control device according to claim 1, further comprising means for waiting said central processing unit if said transfer address is accessed by said central processing unit during operation of said central processing unit.
求項1もしくは2記載のダイレクトメモリアクセス制御
装置。3. The direct memory access control device according to claim 1, further comprising means for varying the number of data sequentially.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP18826491A JPH0512182A (en) | 1991-07-03 | 1991-07-03 | Direct memory access controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP18826491A JPH0512182A (en) | 1991-07-03 | 1991-07-03 | Direct memory access controller |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0512182A true JPH0512182A (en) | 1993-01-22 |
Family
ID=16220634
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP18826491A Withdrawn JPH0512182A (en) | 1991-07-03 | 1991-07-03 | Direct memory access controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0512182A (en) |
-
1991
- 1991-07-03 JP JP18826491A patent/JPH0512182A/en not_active Withdrawn
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7907469B2 (en) | Multi-port memory device for buffering between hosts and non-volatile memory devices | |
US4866603A (en) | Memory control system using a single access request for doubleword data transfers from both odd and even memory banks | |
JPH0684351A (en) | Clock synchronized type semiconductor memory device and access method thereof | |
JPH1031886A (en) | Random access memory | |
US6931483B2 (en) | Memory device having different burst order addressing for read and write operations | |
JPH06195967A (en) | Plurality of array-type memory devices using alternate read/write for high-speed data access | |
KR19980702386A (en) | Synchronous SRM with logic for memory expansion | |
US6091667A (en) | Semiconductor memory device and a data reading method and a data writing method therefor | |
JPH05134973A (en) | Data transfer equipment | |
US6469940B1 (en) | Memory access method and system for writing and reading SDRAM | |
JPH0146946B2 (en) | ||
JPH03189843A (en) | System and method for processing data | |
US7117307B2 (en) | Memory controlling apparatus performing the writing of data using address line | |
KR100648292B1 (en) | Auto Dual Buffering Memory Device | |
JPH0512182A (en) | Direct memory access controller | |
JP2606824Y2 (en) | Multiport memory device | |
JPH08235855A (en) | Clock synchronization type semiconductor storage device and its access method | |
JPH05210981A (en) | Semiconductor memory | |
JP2912090B2 (en) | Time slot interchange circuit | |
KR101285883B1 (en) | signal processing method and apparatus for transmitting multiful processor signals to a shared memory | |
JPH07121438A (en) | Semiconductor memory | |
JPH06301629A (en) | Main storage device | |
JPH10105457A (en) | Memory control system and memory control circuitt | |
JPS63220352A (en) | Data transfer circuit for inter-cpu | |
JPH039453A (en) | Data transfer controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 19981008 |