JPH07281992A - Dma controller - Google Patents

Dma controller

Info

Publication number
JPH07281992A
JPH07281992A JP9922294A JP9922294A JPH07281992A JP H07281992 A JPH07281992 A JP H07281992A JP 9922294 A JP9922294 A JP 9922294A JP 9922294 A JP9922294 A JP 9922294A JP H07281992 A JPH07281992 A JP H07281992A
Authority
JP
Japan
Prior art keywords
memory
address
signal
output
transfer
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.)
Granted
Application number
JP9922294A
Other languages
Japanese (ja)
Other versions
JP2580999B2 (en
Inventor
Shinichi Kono
伸一 河野
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 JP6099222A priority Critical patent/JP2580999B2/en
Publication of JPH07281992A publication Critical patent/JPH07281992A/en
Application granted granted Critical
Publication of JP2580999B2 publication Critical patent/JP2580999B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To provide the DMA controller which can more accelerate data transfer speed by simultaneously executing both continuous access and simultaneous read/write execution. CONSTITUTION:According to a data transfer starting instruction from a CPU 30, a timing signal generator 23 latches a row address by using latches 213 and 223 and afterwards, MUs 212 and 222 are switched to the side to output a column address. The timing signal generator 24 lets an output CAS signal fall and outputs data from a transfer source DRAM. A CAS signal delayed for prescribed time by a delayer 25 is inputted through a switcher 26 to a transfer destination DRAM and with the fall of that CAS signal, the data are written. Since the CAS signal is repeatedly turned to L and H levels while holding a RAS signal at the L level, page mode access is performed.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はDMAコントローラに係
り、特に複数のダイナミック・ランダム・アクセス・メ
モリ(DRAM)間のデータ転送を、マイクロプロセッ
サを介さずハードウェアによって高速に行うDMAコン
トローラに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a DMA controller, and more particularly to a DMA controller which transfers data between a plurality of dynamic random access memories (DRAMs) at high speed by hardware without passing through a microprocessor.

【0002】[0002]

【従来の技術】複数のDRAMの間、あるいはDRAM
と入出力ポートとの間のデータ転送を、マイクロプロセ
ッサを介さずにハードウェアによって行うダイレクト・
メモリ・アクセス(DMA)転送を実現するDMAコン
トローラ(DMAC)は、近年益々高速なDMA転送速
度が要求されるようになった。そのため、従来より、D
RAMのページモードあるいはスタティックコラムモー
ドを使用しての連続アクセスを実現するDMACが知ら
れている(例えば、特開平4−199450号、特開平
3−223948号)。
2. Description of the Related Art Between a plurality of DRAMs or DRAMs
Direct data transfer between the I / O port and the I / O port by hardware, not through a microprocessor
In recent years, a DMA controller (DMAC) that realizes a memory access (DMA) transfer has been required to have a higher DMA transfer speed. Therefore, D
A DMAC that realizes continuous access using the page mode or static column mode of RAM is known (for example, Japanese Patent Laid-Open Nos. 4-199450 and 3-223948).

【0003】図7は特開平4−199450号公報記載
の従来のDMACの一例の構成図を示す。同図に示すよ
うに、DMACは中央処理装置(CPU)バス1に接続
された第1の記憶手段2、読取手段3、第2の記憶手段
5及び書込手段6と、読取手段3と書込手段6の間に接
続されたレジスタファイル4とより構成されている。
FIG. 7 is a block diagram showing an example of a conventional DMAC disclosed in Japanese Patent Laid-Open No. 4-199450. As shown in the figure, the DMAC includes a first storage unit 2, a reading unit 3, a second storage unit 5, a writing unit 6, and a reading unit 3 which are connected to a central processing unit (CPU) bus 1. The register file 4 is connected between the plug-in means 6.

【0004】この従来のDMACでは、CPUなどから
のデータ転送要求に対し、CPUがCPUバス1を開放
し、読取手段3により第1の記憶手段2に格納されてい
る転送すべきデータのうちのNワード分を読み取らせ、
これをレジスタファイル4に格納させる。書込手段6は
レジスタファイル4に格納された1ページ分のデータを
第2の記憶手段5に格納する。
In this conventional DMAC, in response to a data transfer request from a CPU or the like, the CPU releases the CPU bus 1 and the reading means 3 stores the data to be transferred stored in the first storage means 2. Read N words,
This is stored in the register file 4. The writing unit 6 stores the data for one page stored in the register file 4 in the second storage unit 5.

【0005】すなわち、この従来のDMACによれば、
第1及び第2の記憶手段2及び5がDRAMである場
合、DRAMのページモードあるいはスタティックコラ
ムモードを使用し、ロウ・アドレスを固定とし、コラム
・アドレスを変化させて第1の記憶手段2から1ページ
分連続して読み出してレジスタファイル4に書き込み、
その後に書き込んだ1ページ分のデータをロウ・アドレ
スを固定とし、コラム・アドレスを変化させて連続して
第2の記憶手段5に書き込むので、ロウ・アドレスの1
回の指定のみで1ページ分のデータを転送することがで
き、これによりDMA転送を高速化できる。
That is, according to this conventional DMAC,
When the first and second storage means 2 and 5 are DRAMs, the page mode or static column mode of the DRAM is used, the row address is fixed, and the column address is changed to change the first storage means 2 from the first storage means 2. Read one page continuously and write to register file 4,
Since the row address of the data for one page written thereafter is fixed and the column address is changed and continuously written in the second storage means 5, the row address of 1
Data for one page can be transferred only by specifying the number of times, and thus DMA transfer can be speeded up.

【0006】また、従来より図8に示す構成により、1
サイクルでのデータ転送を実現したDMACも知られて
いる(特開平3−204753号公報)。同図におい
て、メモリ13からメモリ15へのデータ転送を行う場
合は、転送元を示すアドレス信号がDMAコントローラ
11からアドレスバス12を介してメモリ13へ出力さ
れると共に、転送先を示すアドレス信号がアドレスバス
14を介してメモリ15へ出力される。
Further, according to the conventional configuration shown in FIG.
A DMAC that realizes cycle-based data transfer is also known (JP-A-3-204753). In the figure, when data is transferred from the memory 13 to the memory 15, an address signal indicating the transfer source is output from the DMA controller 11 to the memory 13 via the address bus 12, and an address signal indicating the transfer destination is output. It is output to the memory 15 via the address bus 14.

【0007】そして、DMAコントローラ11から信号
線16を介してメモリ13に供給されるリード信号がア
クティブとなると、メモリ13の記憶内容がデータバス
17に読み出され、これと同時にDMAコントローラ1
1から信号線18を介してメモリ15に供給されるライ
ト信号がアクティブとなるため、データバス17に読み
出されたデータがメモリ15に書き込まれる。このよう
にして、メモリ13からメモリ15へのデータの転送が
1サイクルで完了する。
When the read signal supplied from the DMA controller 11 to the memory 13 via the signal line 16 becomes active, the stored contents of the memory 13 are read out to the data bus 17, and at the same time, the DMA controller 1
Since the write signal supplied from 1 to the memory 15 via the signal line 18 becomes active, the data read to the data bus 17 is written in the memory 15. In this way, the data transfer from the memory 13 to the memory 15 is completed in one cycle.

【0008】[0008]

【発明が解決しようとする課題】しかるに、上記の図7
に示した従来のDMAコントローラは、連続アクセスに
よるデータ転送の高速化を図っており、また、図8に示
した従来のDMAコントローラは、読み出しと書き込み
の同時実行による1サイクルでのデータ転送による高速
化が図られているが、これらはいずれも高速化が不十分
である。
However, the above-mentioned FIG.
The conventional DMA controller shown in FIG. 8 is intended for speeding up data transfer by continuous access, and the conventional DMA controller shown in FIG. 8 is high speed for data transfer in one cycle by simultaneous execution of read and write. However, the speed of these is insufficient.

【0009】本発明は以上の点に鑑みなされたもので、
連続アクセスと読み出し、書き込み同時実行との両方を
同時に実行することにより、よりデータ転送速度を高速
化し得るDMAコントローラを提供することを目的とす
る。
The present invention has been made in view of the above points,
An object of the present invention is to provide a DMA controller capable of further increasing the data transfer rate by simultaneously executing both continuous access and simultaneous reading and writing.

【0010】[0010]

【課題を解決するための手段】本発明は上記の目的を達
成するため、転送元の連続アクセス可能な第1のメモリ
に対するアドレス信号を生成出力する第1のメモリ制御
部と、転送先の連続アクセス可能な第2のメモリに対す
るアドレス信号を生成出力する第2のメモリ制御部と、
第1及び第2のメモリ制御部の出力制御信号に基づいて
第1及び第2のアドレスストローブ信号をそれぞれ生成
し、第1のアドレスストローブ信号は第1及び第2のメ
モリにそれぞれ出力し、第2のアドレスストローブ信号
は第1のメモリに出力するタイミング信号生成器と、第
2のアドレスストローブ信号を第1のメモリのアクセス
時間と第2のメモリのデータセットアップ時間とを加算
した時間遅延して第2のメモリに供給する遅延器と、第
1及び第2のメモリをそれぞれ独立して連続アクセスす
るように、第1及び第2のアドレスストローブ信号の生
成動作を制御するための制御信号を第1及び第2のタイ
ミング信号生成器へ別々に出力する、第1及び第2のメ
モリ制御部内にそれぞれ設けられた第1及び第2の制御
手段とを有する構成としたものである。
In order to achieve the above-mentioned object, the present invention provides a first memory control unit for generating and outputting an address signal for a continuously accessible first memory of a transfer source, and a continuous memory of a transfer destination. A second memory controller for generating and outputting an address signal for the accessible second memory;
First and second address strobe signals are generated based on the output control signals of the first and second memory control units, and the first address strobe signals are output to the first and second memories, respectively. The second address strobe signal is delayed by a timing signal generator for outputting to the first memory, and the second address strobe signal is delayed by a time obtained by adding the access time of the first memory and the data setup time of the second memory. A delay device supplied to the second memory and a control signal for controlling the generation operation of the first and second address strobe signals so as to independently and continuously access the first and second memories, respectively. A structure having first and second control means respectively provided in the first and second memory control units for separately outputting to the first and second timing signal generators. It is obtained by the.

【0011】また、本発明は二つのメモリのうち転送元
となる第1のメモリを読み出し制御し、転送先となる第
2のメモリを書込み制御する転送方向制御手段と、転送
方向制御手段の出力信号に基づき前記タイミング信号生
成器の出力第2のアドレスストローブ信号を第1のメモ
リに供給し、かつ、前記遅延器の出力アドレスストロー
ブ信号を第2のメモリに供給するように切替えを行う切
替器とを更に有することが、二つのメモリの間のデータ
転送方向を上位装置の指示に応じて切替設定することが
できる点で、好ましい。
Further, according to the present invention, of the two memories, the first memory which is the transfer source is read out and the second memory which is the transfer destination is write-controlled, and the output of the transfer direction control means. A switch for switching between supplying the output second address strobe signal of the timing signal generator to the first memory and supplying the output address strobe signal of the delay unit to the second memory based on the signal. It is preferable to further have the following because the data transfer direction between the two memories can be switched and set according to an instruction from the host device.

【0012】また、本発明では前記第1及び第2のメモ
リの一方又は両方は、ページモードで動作可能な、ある
いはスタティック・コラム・モードで動作可能なダイナ
ミック・ランダム・アクセス・メモリであり、第1及び
第2の制御手段は、それぞれデータ転送開始時の前記タ
イミング信号生成器の出力第1のアドレスストローブ信
号のアクティブ状態への遷移時に前記第1及び第2のア
ドレス生成器の出力アドレス信号のうちのロウ・アドレ
スを保持するラッチと、ラッチの出力と第1及び第2の
アドレス生成器の出力アドレス信号のうちのロウ・アド
レスとが一致するか比較する比較器とよりなり、比較器
が一致信号を出力している間、前記タイミング信号生成
器を前記第1のアドレス信号はアクティブに固定したま
ま、前記第2のアドレスストローブ信号をアクティブと
非アクティブの状態を交互に繰り返すように制御するこ
とが、連続アクセスができる点で好ましい。
Further, in the present invention, one or both of the first and second memories is a dynamic random access memory capable of operating in a page mode or a static column mode. The first and second control means output the output address signals of the first and second address generators at the transition of the output first address strobe signal of the timing signal generator at the start of data transfer to the active state, respectively. It comprises a latch for holding the row address, and a comparator for comparing whether or not the output of the latch and the row address of the output address signals of the first and second address generators match. While outputting the coincidence signal, the timing signal generator keeps the first address signal active and keeps the second address signal active. It is preferred in that it is continuous access to control to repeat less strobe signal the status of the active and inactive alternately.

【0013】[0013]

【作用】本発明では、第1のメモリが前記タイミング信
号生成器よりの第2のアドレスストローブ信号に同期し
て出力したデータを、前記遅延器により遅延された前記
第2のアドレスストローブ信号に同期して第2のメモリ
に書込むことを繰り返すことにより、第1及び第2のメ
モリを連続アクセスすると同時に、第1のメモリからの
データ読み出しと、第2のメモリへのデータ書込みとを
1サイクルで行うことができる。
In the present invention, the data output from the first memory in synchronization with the second address strobe signal from the timing signal generator is synchronized with the second address strobe signal delayed by the delay device. Then, the first memory and the second memory are continuously accessed, and at the same time, the data read from the first memory and the data write to the second memory are repeated for one cycle. Can be done at.

【0014】[0014]

【実施例】次に、本発明の実施例について説明する。図
1は本発明の一実施例のブロック図を示す。同図におい
て、DMAC20は第1のDRAM制御部21、第2の
DRAM制御部22、転送方向制御器23、タイミング
信号生成器24、遅延器25、切替器26及びインバー
タ27より構成されており、中央処理装置(CPU)3
0により初期設定され、また、DRAM31及び32の
うちの一方をデータ転送元、他方をデータ転送先として
データ転送制御する。
EXAMPLES Next, examples of the present invention will be described. FIG. 1 shows a block diagram of an embodiment of the present invention. In the figure, the DMAC 20 is composed of a first DRAM controller 21, a second DRAM controller 22, a transfer direction controller 23, a timing signal generator 24, a delay device 25, a switch 26 and an inverter 27. Central processing unit (CPU) 3
It is initialized by 0, and data transfer is controlled by using one of the DRAMs 31 and 32 as a data transfer source and the other as a data transfer destination.

【0015】DMAC20内のDRAM制御部21は、
アドレス生成器211、合成器(MUX)212、ラッ
チ213、比較器214とより構成されており、DRA
M制御部22はアドレス生成器221、合成器(MU
X)222、ラッチ223、比較器224とより構成さ
れている。DRAM制御部21はDRAM31のアドレ
ス端子に接続され、DRAM制御部22はDRAM32
のアドレス端子に接続される。
The DRAM controller 21 in the DMAC 20 is
The DRA is composed of an address generator 211, a combiner (MUX) 212, a latch 213, and a comparator 214.
The M control unit 22 includes an address generator 221 and a combiner (MU).
X) 222, a latch 223, and a comparator 224. The DRAM control unit 21 is connected to the address terminal of the DRAM 31, and the DRAM control unit 22 is connected to the DRAM 32.
Connected to the address terminal of.

【0016】アドレス生成器211及び221は転送元
及び転送先のDRAMの転送データのアドレスを出力す
る。転送データの先頭アドレス並びに終了アドレス又は
転送データ数はCPU30により初期設定される。ま
た、アドレス生成器211及び221からのDMA実行
中の転送アドレスの更新は、タイミング信号生成器24
よりのCAS(列アドレス・ストローブ)信号により行
われる。更に、アドレス生成器211及び221は、転
送アドレスをロウ・アドレス(行アドレス)と、コラム
・アドレス(列アドレス)とで別々に出力すると共に、
転送終了かどうかの情報をタイミング信号生成器24に
対して出力する。
The address generators 211 and 221 output the addresses of the transfer data of the transfer source and transfer destination DRAMs. The start address and end address of the transfer data or the number of transfer data is initialized by the CPU 30. The timing signal generator 24 updates the transfer addresses from the address generators 211 and 221 during DMA execution.
By a CAS (column address strobe) signal. Further, the address generators 211 and 221 separately output the transfer address as a row address (row address) and a column address (column address), and
Information on whether the transfer is completed is output to the timing signal generator 24.

【0017】MUX212及び222はアドレス生成器
211、221が出力するロウ・アドレスとコラム・ア
ドレスとを合成する。ラッチ213及び223はアドレ
ス生成器211及び221が出力するロウ・アドレスを
タイミング信号生成器24の出力RAS(行アドレス・
ストローブ)信号の立ち下がりでラッチする。比較器2
14及び224はアドレス生成器211、221が出力
するロウ・アドレスとラッチ213、223が出力する
ロウ・アドレスとを比較し、その比較結果をタイミング
信号生成器24に対して一致しているかどうかの情報と
して出力する。
The MUXs 212 and 222 combine the row address and the column address output from the address generators 211 and 221. The latches 213 and 223 output the row address output from the address generators 211 and 221 to the output RAS (row address
Latch at the falling edge of the strobe signal. Comparator 2
14 and 224 compare the row address output from the address generators 211 and 221 with the row address output from the latches 213 and 223, and determine whether the comparison result matches the timing signal generator 24. Output as information.

【0018】転送方向制御器23はDRAM31及び3
2間でのデータ転送方向を制御する回路で、CPU30
により設定される。タイミング信号生成器24は、DR
AM制御部21、22内の比較器214、224の出力
とアドレス生成器211、221の出力とに基づいて、
MUX212、222に対してDRAM31、32のロ
ウ・アドレスとコラム・アドレスとの切替タイミング信
号を供給し、また、DRAM31、32とラッチ21
3、223とに対して、RAS信号を供給し、更に、D
RAM31、32やアドレス生成器211、221など
に対してCAS信号を供給する。
The transfer direction controller 23 includes DRAMs 31 and 3
A circuit for controlling the data transfer direction between two CPUs 30
Set by. The timing signal generator 24 uses the DR
Based on the outputs of the comparators 214 and 224 in the AM control units 21 and 22 and the outputs of the address generators 211 and 221,
A switching timing signal between the row address and column address of the DRAMs 31, 32 is supplied to the MUXs 212, 222, and the DRAMs 31, 32 and the latch 21 are supplied.
3 and 223, RAS signal is supplied, and D
The CAS signal is supplied to the RAMs 31 and 32 and the address generators 211 and 221.

【0019】遅延器25はタイミング信号生成器24の
出力CAS信号を、DRAM31及び32のうち転送元
DRAMのアクセス時間と転送先DRAMのデータセッ
トアップ時間とを加算した時間遅延する。切替器26は
タイミング信号生成器24の出力CAS信号と遅延器2
5の出力CAS信号の一方を、転送方向制御器23より
の制御信号に基づいて選択する。更に、インバータ27
は転送方向制御器23の出力制御信号を反転してDRA
M32のライト端子に入力する。
The delay device 25 delays the output CAS signal of the timing signal generator 24 by the sum of the access time of the transfer source DRAM and the data setup time of the transfer destination DRAM of the DRAMs 31 and 32. The switching device 26 outputs the CAS signal output from the timing signal generator 24 and the delay device 2.
One of the 5 output CAS signals is selected based on the control signal from the transfer direction controller 23. Furthermore, the inverter 27
Inverts the output control signal of the transfer direction controller 23 to DRA
Input to the write terminal of M32.

【0020】上記の構成の本実施例において、DRAM
31及び32は本実施例ではそれぞれページモードをサ
ポートするメモリ回路であるものとする。このページモ
ード自体は一般的に知られており、図3にこのページモ
ードのリードサイクルのタイミングチャートを示し、図
4にページモードのライトサイクルのタイミングチャー
トを示す。
In this embodiment having the above structure, the DRAM
In this embodiment, 31 and 32 are memory circuits that support the page mode. This page mode itself is generally known. FIG. 3 shows a timing chart of a read cycle in this page mode, and FIG. 4 shows a timing chart of a write cycle in the page mode.

【0021】すなわち、ページモードのリードサイクル
時には、図3に示すようにRAS信号をアクティブ状態
(Lレベル状態)を保ったまま、一度CAS信号を非ア
クティブ(Hレベル)にしてロウ・アドレス(行アドレ
ス)を入力後、ライトイネーブル信号Wは非アクティブ
状態として、CAS信号をアクティブ(Lレベル)と非
アクティブを交互に繰り返すことにより同じ行のコラム
・アドレス(列アドレス)を次々に入力し、出力に対応
する記憶データを読み出す。なお、図3において、OE
バーは、出力イネーブル信号を示す。
That is, during the page mode read cycle, the CAS signal is once made inactive (H level) while the RAS signal is kept active (L level) as shown in FIG. Address), the write enable signal W is deactivated, and the CAS signal is alternately activated (L level) and deactivated to alternately input column addresses (column addresses) of the same row and output. The stored data corresponding to is read. In FIG. 3, OE
The bar indicates the output enable signal.

【0022】一方、ページモードのライトサイクル(ア
ーリーライト)時には、図4に示すようにRAS信号を
アクティブ状態を保ったまま、一度CAS信号を非アク
ティブにしてロウ・アドレスを入力後、再びCAS信号
をアクティブにする前にライトイネーブル信号Wをアク
ティブ(Lレベル)とし、また、CAS信号をアクティ
ブと非アクティブを交互に繰り返すことにより同じ行の
コラム・アドレスを次々に入力し、入力データDQ1〜
DQ4を次々と書き込む。このとき、出力イネーブル信
号OEはアクティブ、非アクティブのどちらでもよい。
On the other hand, during the page mode write cycle (early write), the CAS signal is once made inactive and the row address is input again while keeping the RAS signal active as shown in FIG. The write enable signal W is made active (L level) before being made active, and the CAS signal is alternately made active and inactive to alternately input column addresses in the same row, and input data DQ1 to
Write DQ4 one after another. At this time, the output enable signal OE may be active or inactive.

【0023】次に、本実施例の動作について図2を併せ
参照して説明する。まず、データ転送開始前にCPU3
0により転送方向制御器23に対してDRAM31及び
32間でのデータ転送方向が設定され、また、アドレス
生成器211及び221に対して、転送開始アドレス並
びに転送終了アドレス又は転送データ数が設定される。
DRAM31からDRAM32の方向へデータ転送する
ときは、CPU30は転送方向制御器23の出力信号を
Hレベルとするように制御する。
Next, the operation of this embodiment will be described with reference to FIG. First, before starting data transfer, the CPU 3
The data transfer direction between the DRAMs 31 and 32 is set to the transfer direction controller 23 by 0, and the transfer start address and the transfer end address or the number of transfer data are set to the address generators 211 and 221. .
When data is transferred from the DRAM 31 to the DRAM 32, the CPU 30 controls the output signal of the transfer direction controller 23 to be H level.

【0024】転送方向制御器23の出力信号はDRAM
31の書き込み制御端子に供給されるから、転送方向制
御器23の出力信号がHレベルのときはDRAM31が
読み出し制御されるので転送元DRAMとなり、またこ
のときは転送方向制御器23の出力信号はインバータ2
7によりLレベルに反転されてDRAM32の書き込み
制御端子に供給されるから、DRAM32が書き込み制
御されるためにDRAM32が転送先DRAMとなる。
転送方向制御器23の出力信号がLレベルのときは上記
と逆の転送方向となる。
The output signal of the transfer direction controller 23 is a DRAM.
When the output signal of the transfer direction controller 23 is at the H level, the DRAM 31 is read-controlled so that it becomes the transfer source DRAM. At this time, the output signal of the transfer direction controller 23 is Inverter 2
Since it is inverted to L level by 7 and supplied to the write control terminal of the DRAM 32, since the DRAM 32 is write-controlled, the DRAM 32 becomes the transfer destination DRAM.
When the output signal of the transfer direction controller 23 is at L level, the transfer direction is opposite to the above.

【0025】次に、CPU30はタイミング信号生成器
24に対してデータ転送開始を指示する。タイミング信
号生成器24はCPU30からのデータ転送開始指示に
従い、まずロウ・アドレスが出力されるようにMUX2
12及び222を切り替える。続いて、タイミング信号
生成器24は出力RAS信号を図2(A)に示すように
時刻t1で立ち下げ、これによりラッチ213及び22
3により上記のロウ・アドレスをラッチさせた後、MU
X212及び222をコラム・アドレスが出力される側
に切り替える。
Next, the CPU 30 instructs the timing signal generator 24 to start data transfer. The timing signal generator 24 follows the data transfer start instruction from the CPU 30 so that the row address is output first.
Switch 12 and 222. Subsequently, the timing signal generator 24 causes the output RAS signal to fall at time t1 as shown in FIG.
After the above row address is latched by 3, the MU
X212 and 222 are switched to the side where the column address is output.

【0026】次に、タイミング信号生成器24は出力C
AS信号を時刻t2で立ち下げる。このCAS信号はD
RAM31及び32のうち転送元のDRAMには切替器
26を介してそのまま入力されるので、このCAS信号
の立ち下がりにより転送元DRAMからデータ出力が行
われる。図2(B)はこのCAS信号を示し、時刻t2
の立ち下がり時点からアクセスタイム経過した時刻t3
から図2(E)に示す如く有効データが出力される。
Next, the timing signal generator 24 outputs the output C.
The AS signal falls at time t2. This CAS signal is D
Since the data is directly input to the transfer source DRAM of the RAMs 31 and 32 via the switch 26, data is output from the transfer source DRAM at the fall of the CAS signal. FIG. 2B shows this CAS signal at time t2.
T3 when the access time has elapsed from the fall of
To output valid data as shown in FIG.

【0027】一方、DRAM31及び32のうち転送先
のDRAMには、遅延器25により所定時間遅延された
CAS信号が切替器26を介して入力されるので、この
遅延CAS信号の立ち下がりにより転送先DRAMに転
送元のDRAMから出力されているデータが書き込まれ
る。この遅延CAS信号は図2(C)に示され、上記の
遅延器25による遅延により、転送先DRAMは時刻t
3直後の有効データを書き込む。図2(F)はこの転送
先DRAMに入力されるデータを示す。
On the other hand, since the CAS signal delayed by the delay device 25 for a predetermined time is input to the transfer destination DRAM of the DRAMs 31 and 32 through the switch 26, the transfer destination is caused by the fall of the delayed CAS signal. The data output from the transfer source DRAM is written in the DRAM. This delayed CAS signal is shown in FIG. 2 (C). Due to the delay caused by the delay device 25, the transfer destination DRAM has the time t.
3. Write the valid data immediately after. FIG. 2F shows the data input to this transfer destination DRAM.

【0028】図2(C)に示した遅延CAS信号が立ち
下がり、転送先のDRAMにデータが書き込まれるのに
十分な時間が経過してからタイミング信号生成器24は
図2(B)に示すように出力CAS信号を立ち上げる。
この時点でアドレス生成器211及び221がCPU3
0に設定された転送終了アドレス又は転送データ数に達
していたときには、タイミング信号生成器24はRAS
信号を立ち上げDRAM31及び32間の連続アクセス
を終了する。
The timing signal generator 24 is shown in FIG. 2B after the delayed CAS signal shown in FIG. 2C has fallen and a time sufficient for writing data to the transfer destination DRAM has elapsed. As described above, the output CAS signal is raised.
At this point, the address generators 211 and 221 have the CPU 3
When the transfer end address or the transfer data number set to 0 has been reached, the timing signal generator 24
A signal is raised to end the continuous access between the DRAMs 31 and 32.

【0029】しかし、CAS信号の立ち上げ時点でアド
レス生成器211及び221がCPU30に設定された
転送終了アドレス又は転送データ数に達していないとき
には、このCAS信号の立ち上がりでアドレス生成器2
11及び221は、DRAM31及び32のアドレス端
子に供給するアドレスを更新する。このアドレス更新後
比較器214、224のそれぞれがロウ・アドレスの一
致検出信号を出力したときには、タイミング信号生成器
24は出力CAS信号を立ち下げ、次のデータ転送を上
記と同様にして実行する。図2(D)はDRAM31及
び32にそれぞれMUX212及び222を介して入力
されるアドレスを示す。
However, when the address generators 211 and 221 do not reach the transfer end address or the number of transfer data set in the CPU 30 at the time of the rise of the CAS signal, the address generator 2 rises at the rise of the CAS signal.
11 and 221 update the address supplied to the address terminals of the DRAMs 31 and 32. When each of the post-address update comparators 214 and 224 outputs a row address coincidence detection signal, the timing signal generator 24 causes the output CAS signal to fall, and the next data transfer is executed in the same manner as described above. FIG. 2D shows addresses input to the DRAMs 31 and 32 via the MUXs 212 and 222, respectively.

【0030】このようにして、RAS信号をLレベルに
保持したままCAS信号をLレベルとHレベルを繰り返
すことにより前記ページモードアクセスするという動作
をアドレス生成器211及び221のアドレス更新後、
比較器214又は比較器224の出力が不一致を示す、
あるいは、アドレス生成器211又はアドレス生成器2
21が転送終了アドレス又は転送データ数に達するまで
繰り返す。
In this way, the page mode access is performed by repeating the CAS signal at the L level and the H level while keeping the RAS signal at the L level, after the address updating of the address generators 211 and 221 is performed.
The output of the comparator 214 or the comparator 224 indicates a mismatch,
Alternatively, the address generator 211 or the address generator 2
This is repeated until 21 reaches the transfer end address or the number of transfer data.

【0031】比較器214又は比較器224のどちらか
の出力が不一致を示したとき、タイミング信号生成器2
4はRAS信号を立ち上げ、DRAM31及び32への
連続アクセスを中断し、CPU30から転送開始指示を
受けたときと同様にMUX212及び222を出力をロ
ウ・アドレスに切り替えるところから上記の動作を繰り
返す。
When the output of either the comparator 214 or the comparator 224 indicates a mismatch, the timing signal generator 2
4 raises the RAS signal, interrupts the continuous access to the DRAMs 31 and 32, and repeats the above operation from the point where the outputs of the MUXs 212 and 222 are switched to the row address in the same manner as when receiving the transfer start instruction from the CPU 30.

【0032】このように、本実施例によれば、DRAM
31及び32のページモードによる連続アクセスと、転
送元DRAMからの読み出しと転送先DRAMへの書込
みとを同時に1サイクルで行うようにしたため、連続ア
クセスによる転送時間短縮・高速化と、二つのDRAM
の読み出しと書込みを1サイクルで行うことによる転送
時間短縮・高速化との相乗効果により、従来に比し大幅
に高速なデータ転送を実現することができる。
As described above, according to this embodiment, the DRAM
Since continuous access in 31 and 32 page modes, reading from the transfer source DRAM, and writing to the transfer destination DRAM are performed simultaneously in one cycle, the transfer time is shortened and speeded up by continuous access, and two DRAMs are used.
Due to the synergistic effect of shortening and speeding up the transfer time by reading and writing data in one cycle, it is possible to realize data transfer at a significantly higher speed than in the past.

【0033】なお、本発明は上記の実施例に限定される
ものではなく、例えばDRAM31及び32の一方又は
両方はスタティックコラムモードをサポートするメモリ
回路でも良い。このスタティックコラムモードのリード
サイクル時は、図5に示すように、RAS信号をアクテ
ィブ状態にした後、CAS信号に相当するチップセレク
ト(CS)信号をアクティブと非アクティブの状態を交
互に繰り返すことにより、同じ行の異なるコラム・アド
レスを順次に指定して連続してアクセスし、かつ、ライ
トイネーブル信号Wを非アクティブとして出力端子Qよ
り記憶データを順次に読み出す。
The present invention is not limited to the above embodiment, and for example, one or both of the DRAMs 31 and 32 may be a memory circuit supporting the static column mode. During the read cycle in the static column mode, as shown in FIG. 5, after the RAS signal is activated, the chip select (CS) signal corresponding to the CAS signal is alternately activated and deactivated. , The different column addresses of the same row are sequentially specified to access continuously, and the write enable signal W is made inactive to sequentially read the storage data from the output terminal Q.

【0034】また、スタティックコラムモードのライト
サイクル時は、図6に示すように、RAS信号をアクテ
ィブ状態にした後、CS信号をアクティブする前にライ
トイネーブル信号Wをアクティブとし、その後CS信号
をアクティブと非アクティブの状態を交互に繰り返すこ
とにより、同じ行の異なるコラム・アドレスを順次に指
定して連続してアクセスし、入力データを順次に書き込
むものである。このときはDRAMの出力端子Qは高イ
ンピーダンス状態に保持される。
In the write cycle of the static column mode, as shown in FIG. 6, after the RAS signal is activated, the write enable signal W is activated before the CS signal is activated, and then the CS signal is activated. By alternately repeating the inactive state and the inactive state, different column addresses of the same row are sequentially specified and continuously accessed, and the input data is sequentially written. At this time, the output terminal Q of the DRAM is kept in a high impedance state.

【0035】また、DRAM31及び32のうちの一方
は、ページモードあるいはスタティックコラムモード可
能なDRAMとインタフェースするために構成したレジ
スタなど(本発明ではこれらも含めてメモリと称するも
のとする)も使用可能である。更に、転送方向が一義的
に決められている二つのメモリ間のDMA転送に用いる
場合には、転送方向制御器23及び切替器26は設けな
くともよい。
Further, one of the DRAMs 31 and 32 can also use a register or the like configured to interface with a DRAM capable of page mode or static column mode (these are collectively referred to as a memory in the present invention). Is. Furthermore, when used for DMA transfer between two memories whose transfer directions are uniquely determined, the transfer direction controller 23 and the switch 26 need not be provided.

【0036】[0036]

【発明の効果】以上説明したように、本発明によれば、
第1及び第2のメモリをページモードあるいはスタティ
ック・コラム・モードを用いて連続アクセスすると同時
に、第1のメモリからのデータ読み出しと、第2のメモ
リへのデータ書込みとを1サイクルで行うことができる
ため、両者のデータ転送時間短縮・高速化による相乗効
果で、二つのメモリ間のDMA転送を従来に比べて大幅
に転送時間短縮・高速化することができる。
As described above, according to the present invention,
Continuously accessing the first and second memories by using the page mode or the static column mode, and at the same time, reading data from the first memory and writing data to the second memory can be performed in one cycle. Therefore, by the synergistic effect of shortening and speeding up the data transfer time of both, DMA transfer between the two memories can be significantly shortened and speeded up as compared with the conventional case.

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

【図1】本発明の一実施例の構成図である。FIG. 1 is a configuration diagram of an embodiment of the present invention.

【図2】図1の動作説明用タイミングチャートである。FIG. 2 is a timing chart for explaining the operation of FIG.

【図3】ページモードリードサイクルの動作説明用タイ
ミングチャートである。
FIG. 3 is a timing chart for explaining an operation of a page mode read cycle.

【図4】ページモードライトサイクルの動作説明用タイ
ミングチャートである。
FIG. 4 is a timing chart for explaining the operation of a page mode write cycle.

【図5】スタティックコラムモードリードサイクルの動
作説明用タイミングチャートである。
FIG. 5 is a timing chart for explaining the operation of a static column mode read cycle.

【図6】スタティックコラムモードライトサイクルの動
作説明用タイミングチャートである。
FIG. 6 is a timing chart for explaining the operation of a static column mode write cycle.

【図7】従来の一例の構成図である。FIG. 7 is a configuration diagram of a conventional example.

【図8】従来の他の例の構成図である。FIG. 8 is a configuration diagram of another conventional example.

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

20 DMAコントローラ(DMAC) 21、22 DRAM制御部 23 転送方向制御器 24 タイミング信号生成器 25 遅延器 26 切替器 27 インバータ 30 中央処理装置(CPU) 31、32 ダイナミック・ランダム・アクセス・メモ
リ(DRAM) 211、221 アドレス生成器 212、222 合成器(MUX) 213、223 ラッチ 214、224 比較器
20 DMA controller (DMAC) 21, 22 DRAM control unit 23 Transfer direction controller 24 Timing signal generator 25 Delay device 26 Switcher 27 Inverter 30 Central processing unit (CPU) 31, 32 Dynamic random access memory (DRAM) 211, 221 Address generator 212, 222 Combiner (MUX) 213, 223 Latch 214, 224 Comparator

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 転送元の連続アクセス可能な第1のメモ
リに対するアドレス信号を生成出力する第1のメモリ制
御部と、 転送先の連続アクセス可能な第2のメモリに対するアド
レス信号を生成出力する第2のメモリ制御部と、 前記第1及び第2のメモリ制御部の出力制御信号に基づ
いて第1及び第2のアドレスストローブ信号をそれぞれ
生成し、該第1のアドレスストローブ信号は前記第1及
び第2のメモリにそれぞれ出力し、該第2のアドレスス
トローブ信号は前記第1のメモリに出力するタイミング
信号生成器と、 該第2のアドレスストローブ信号を前記第1のメモリの
アクセス時間と前記第2のメモリのデータセットアップ
時間とを加算した時間遅延して前記第2のメモリに供給
する遅延器と、 前記第1及び第2のメモリをそれぞれ独立して連続アク
セスするように、前記第1及び第2のアドレスストロー
ブ信号の生成動作を制御するための制御信号を前記第1
及び第2のタイミング信号生成器へ別々に出力する、第
1及び第2のメモリ制御部内にそれぞれ設けられた第1
及び第2の制御手段とを有し、前記第1のメモリが前記
タイミング信号生成器よりの前記第2のアドレスストロ
ーブ信号に同期して出力したデータを、前記遅延器によ
り遅延された前記第2のアドレスストローブ信号に同期
して前記第2のメモリに書込むことを繰り返すことを特
徴とするDMAコントローラ。
1. A first memory control unit for generating and outputting an address signal for a first memory of a transfer source that can be continuously accessed, and a first memory control unit for generating and outputting an address signal for a second memory of a transfer destination that is continuously accessible. Two memory control units, and first and second address strobe signals are respectively generated based on output control signals of the first and second memory control units, and the first address strobe signal is the first and second address strobe signals. A timing signal generator that outputs the second address strobe signal to the first memory, and outputs the second address strobe signal to the first memory; and a second address strobe signal for the access time of the first memory and the first memory. And a delayer for supplying the second memory with a time delay obtained by adding the data setup time of the second memory, and the first and second memories, respectively. As stand to be continuous access, the control signal for controlling the operation of generating said first and second address strobe signal first
And a first timing controller provided in the first and second memory control units, respectively for separately outputting to the first and second timing signal generators.
And second control means, wherein the data output from the first memory in synchronization with the second address strobe signal from the timing signal generator is delayed by the second delay device. The DMA controller is characterized in that writing to the second memory is repeated in synchronization with the address strobe signal of.
【請求項2】 二つのメモリのうち転送元となる第1の
メモリを読み出し制御し、転送先となる第2のメモリを
書込み制御する転送方向制御手段と、該転送方向制御手
段の出力信号に基づき前記タイミング信号生成器の出力
第2のアドレスストローブ信号を前記第1のメモリに供
給し、かつ、前記遅延器の出力アドレスストローブ信号
を前記第2のメモリに供給するように切替えを行う切替
器とを更に有することを特徴とする請求項1記載のDM
Aコントローラ。
2. A transfer direction control means for controlling a read operation of a first memory which is a transfer source of the two memories and a write control of a second memory which is a transfer destination, and an output signal of the transfer direction control means. Based on the above, a switch for switching the output second address strobe signal of the timing signal generator to the first memory and the output address strobe signal of the delay unit to the second memory The DM according to claim 1, further comprising:
A controller.
【請求項3】 前記第1及び第2のメモリは、それぞれ
ページモードで動作可能なダイナミック・ランダム・ア
クセス・メモリであり、 前記第1及び第2の制御手段は、それぞれデータ転送開
始時の前記タイミング信号生成器の出力第1のアドレス
ストローブ信号のアクティブ状態への遷移時に前記第1
及び第2のアドレス生成器の出力アドレス信号のうちの
ロウ・アドレスを保持するラッチと、該ラッチの出力と
該第1及び第2のアドレス生成器の出力アドレス信号の
うちのロウ・アドレスとが一致するか比較する比較器と
よりなり、該比較器が一致信号を出力している間、前記
タイミング信号生成器を前記第1のアドレス信号はアク
ティブに固定したまま、前記第2のアドレスストローブ
信号をアクティブと非アクティブの状態を交互に繰り返
すように制御することを特徴とする請求項1又は2記載
のDMAコントローラ。
3. The first and second memories are dynamic random access memories capable of operating in a page mode, respectively, and the first and second control means are respectively the ones at the start of data transfer. The output of the timing signal generator outputs the first address strobe signal when the first address strobe signal transitions to the active state.
And a latch for holding a row address of the output address signals of the second address generator, and an output of the latch and a row address of the output address signals of the first and second address generators. A comparator for matching or comparing, and while the comparator is outputting a match signal, the timing signal generator keeps the first address signal active and the second address strobe signal 3. The DMA controller according to claim 1, wherein the DMA controller is controlled so as to alternately repeat an active state and an inactive state.
【請求項4】 前記第1及び第2のメモリの一方又は両
方は、スタティック・コラム・モードで動作可能なダイ
ナミック・ランダム・アクセス・メモリであることを特
徴とする請求項3記載のDMAコントローラ。
4. The DMA controller according to claim 3, wherein one or both of the first and second memories is a dynamic random access memory operable in a static column mode.
JP6099222A 1994-04-12 1994-04-12 DMA controller Expired - Fee Related JP2580999B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6099222A JP2580999B2 (en) 1994-04-12 1994-04-12 DMA controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6099222A JP2580999B2 (en) 1994-04-12 1994-04-12 DMA controller

Publications (2)

Publication Number Publication Date
JPH07281992A true JPH07281992A (en) 1995-10-27
JP2580999B2 JP2580999B2 (en) 1997-02-12

Family

ID=14241642

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6099222A Expired - Fee Related JP2580999B2 (en) 1994-04-12 1994-04-12 DMA controller

Country Status (1)

Country Link
JP (1) JP2580999B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0735491A3 (en) * 1995-03-31 1997-02-05 Nec Corp DMA controller
US6032238A (en) * 1998-02-06 2000-02-29 Interantional Business Machines Corporation Overlapped DMA line transfers
WO2003069486A1 (en) * 2002-02-11 2003-08-21 Micron Technology, Inc. A memory and an adaptive timing system for controlling access to the memory

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0735491A3 (en) * 1995-03-31 1997-02-05 Nec Corp DMA controller
US6032238A (en) * 1998-02-06 2000-02-29 Interantional Business Machines Corporation Overlapped DMA line transfers
WO2003069486A1 (en) * 2002-02-11 2003-08-21 Micron Technology, Inc. A memory and an adaptive timing system for controlling access to the memory
US7076678B2 (en) 2002-02-11 2006-07-11 Micron Technology, Inc. Method and apparatus for data transfer
CN100350402C (en) * 2002-02-11 2007-11-21 米克罗恩技术公司 memory and an adaptive timing system for controlling access to the memory
US7356723B2 (en) 2002-02-11 2008-04-08 Micron Technology, Inc. Method and apparatus for data transfer
US7818601B2 (en) 2002-02-11 2010-10-19 Micron Technology, Inc. Method and apparatus for data transfer

Also Published As

Publication number Publication date
JP2580999B2 (en) 1997-02-12

Similar Documents

Publication Publication Date Title
US6381684B1 (en) Quad data rate RAM
US20020147898A1 (en) Memory controller with support for memory modules comprised of non-homogeneous data width RAM devices
EP0479428A1 (en) Data processing apparatus for dynamically setting timings in a dynamic memory system
JPH0660640A (en) Semiconductor memory device
JPS5943786B2 (en) Storage device access method
JP2658958B2 (en) DMA controller
JPH10207760A (en) Variable queuing time memory circuit
JPS5847741B2 (en) pattern generator
US6292867B1 (en) Data processing system
JP2580999B2 (en) DMA controller
JPH02177190A (en) Memory device
JPH07140207A (en) Semiconductor device and test method thereof
JP4377567B2 (en) Semiconductor memory device and apparatus and method for setting burst mode in memory device
JPH05282859A (en) Memory integrated circuit
JP3746811B2 (en) Semiconductor integrated circuit
JPS63259744A (en) Dynamic ram controller
JP2570271B2 (en) Semiconductor memory controller
JPH04276378A (en) Control signal generator for dynamic memory
JPH11133121A (en) Serial pattern generating device
JP2000148657A (en) DMA controller
JP2002215454A (en) Semiconductor device
JP2000268600A (en) Semiconductor device
JPH10105457A (en) Memory control system and memory control circuitt
JPH03134750A (en) DMA data transfer device
JPH05241939A (en) Access controller for dram

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071121

Year of fee payment: 11

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 12

Free format text: PAYMENT UNTIL: 20081121

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 12

Free format text: PAYMENT UNTIL: 20081121

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091121

Year of fee payment: 13

LAPS Cancellation because of no payment of annual fees