JPH0449459A - Dma transfer method - Google Patents

Dma transfer method

Info

Publication number
JPH0449459A
JPH0449459A JP15881090A JP15881090A JPH0449459A JP H0449459 A JPH0449459 A JP H0449459A JP 15881090 A JP15881090 A JP 15881090A JP 15881090 A JP15881090 A JP 15881090A JP H0449459 A JPH0449459 A JP H0449459A
Authority
JP
Japan
Prior art keywords
data
register
dma controller
ram
memory
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
JP15881090A
Other languages
Japanese (ja)
Inventor
Tomoyuki Mizuta
智之 水田
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP15881090A priority Critical patent/JPH0449459A/en
Publication of JPH0449459A publication Critical patent/JPH0449459A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To rapidly execute data writing in a RAM by a direct memory access (DMA) controller by providing the DMA controller with a register capable of storing data. CONSTITUTION:The DMA controller 4 is provided with the register 4b for storing data and the data are stored in the register 4b under the control of a CPU 1. A write instruction for writing the data stored in the register 4b in a memory continuously writes and stores the data read out from the register 4b in the memory 3 under the control of the DMA controller 4 access by the CPU 1. Consequently, data writing in the RAM by the DMA controller 4 can rapidly be executed.

Description

【発明の詳細な説明】 概要 D M A (Direct Memory Acce
ss) :]ントローラによって、RA M(Rand
om Access Memory)にデータをアクセ
スし、RAMの初期化等を行うDMA転送方法に関し、 DMAコントローラによるRAMへのデータの書き込み
を高速に行うことができるDMA転送方法を提供するこ
とを目的とし、 DMAコントローラによってメモリにデータを転送する
DMA転送方法において、前記DMAコントローラに、
データを記憶保持するレジスタを設けて、該レジスタに
CPUの制御によってデータを記憶させ、該レジスタに
記憶されたデータをメモリに書き込む命令を、該CPU
から該DMAコントローラにアクセスし、該書き込み命
令がアクセスされた該DMAコントローラの制御によっ
て、前記レジスタに記憶されたデータを前記メモリに連
続的に書き込んで記憶させる。
[Detailed Description of the Invention] Overview DMA (Direct Memory Access
ss) :] RAM (Rand
The purpose of this paper is to provide a DMA transfer method that allows a DMA controller to write data to RAM at high speed. In a DMA transfer method for transferring data to a memory by a controller, the DMA controller includes:
A register that stores and holds data is provided, the data is stored in the register under the control of the CPU, and an instruction to write the data stored in the register to the memory is sent to the CPU.
The data stored in the register is continuously written and stored in the memory under the control of the DMA controller accessed by the write command.

産業上の利用分野 本発明は、D M A (Direct Memory
 Access) ml 7トローラによって、RA 
M(Random Access Memory)にデ
ータをアクセスし、RAMの初期化等を行うDMA転送
方式に関する。
Industrial Field of Application The present invention is directed to DMA (Direct Memory).
Access) ml 7 troller by RA
The present invention relates to a DMA transfer method that accesses data in M (Random Access Memory) and initializes RAM.

近年、コンピュータシステムの著しい発展に伴い、膨大
な量のデータを取り扱う端末機が増えてきている。この
ように膨大な量のデータを取り扱う端末機においては、
その端末機のRAM等のメモリ領域が大きいので、DM
A転送によって、メモリにデータを転送したとしても、
その転送にかなりの時間を要する。例えばデータをメモ
リに転送して行うRAMの初期化等にかなりの時間を要
することになる。従って、その転送時間を短縮すること
が要望されている。
In recent years, with the remarkable development of computer systems, the number of terminals that handle huge amounts of data has increased. In terminals that handle huge amounts of data,
Since the memory area such as RAM of the terminal is large, DM
Even if data is transferred to memory using A transfer,
The transfer takes a considerable amount of time. For example, it takes a considerable amount of time to initialize the RAM by transferring data to the memory. Therefore, it is desired to shorten the transfer time.

従来の技術 第3図は従来のDMA転送方法を説明するための図であ
り、この図を参照して、DMAコントローラによるRA
Mの初期化方法を説明する。
BACKGROUND ART FIG. 3 is a diagram for explaining a conventional DMA transfer method.
The initialization method of M will be explained.

この図において、1はCP U(Central Pr
ocessrB [Jnit)  、2はROM(Re
ad 0nly Memory)、3はRAM、4はバ
ッファレジスタ4aを有するDMAコントローラ、5は
データが伝送されるパスラインであり、このパスライン
5によって、CPUlSROM2、RAM3、DMAコ
ントローラ4がそれぞれ接続されている。
In this figure, 1 is CPU (Central Pr
ocessrB [Jnit), 2 is ROM (Re
3 is a RAM, 4 is a DMA controller having a buffer register 4a, 5 is a pass line through which data is transmitted, and the CPU SROM 2, RAM 3, and DMA controller 4 are connected to each other by this pass line 5. .

このような構成において、RAMの初期化を行う場合を
、その実行のステップ毎に説明する。
In such a configuration, the case where the RAM is initialized will be explained step by step.

■CPUIがROM2にアクセスして、ROM2に記憶
された初期化実行の命令コードを読み取る。
(2) The CPU accesses the ROM2 and reads the initialization execution instruction code stored in the ROM2.

■命令コードを読み取ったCPU 1が、RAM3にア
クセスして、RAM3のn番目のアドレスnのメモリ領
域に初期データを書き込んで記憶させる。
(2) Having read the instruction code, the CPU 1 accesses the RAM 3 and writes and stores the initial data in the memory area of the nth address n of the RAM 3.

■CPU 1がDMAコントローラ4に、リード/ライ
ト命令をアクセスする。
(2) The CPU 1 accesses the DMA controller 4 with a read/write command.

このリード/ライト命令は、DMAコントローラ4が、
RAM3のアドレスのメモリ領域に記憶された初期デー
タを読み取ってバッファレジスタ4aに一旦記憶させ、
更に、このバッファレジスタ4aに記憶された初期デー
タを、RAM3の他のアドレスのメモリ領域に書き込ん
で記憶させる制御を実行させるもである。
This read/write command is issued by the DMA controller 4.
The initial data stored in the memory area of the address of RAM 3 is read and temporarily stored in the buffer register 4a,
Furthermore, it is used to execute control for writing and storing the initial data stored in the buffer register 4a in a memory area at another address in the RAM 3.

■リード/ライト命令がアクセスされたDMAコントロ
ーラ4は、RAM3のn番目のアドレスのメモリ領域に
記憶された初期データを読み取り、バッファレジスタ4
aに一旦記憶させ、更に、このバッファレジスタ4aに
記憶された初期データを、RAM3のn+1番目のアド
レスのメモリ領域に書き込んで記憶させる。
■The DMA controller 4 accessed by the read/write command reads the initial data stored in the memory area of the n-th address of the RAM 3, and reads the initial data from the buffer register 4.
The initial data stored in the buffer register 4a is written and stored in the memory area of the (n+1)th address of the RAM 3.

以降、■と■の動作が繰り返され、これによって、RA
M3の全てのアドレスのメモリ領域に、初期データが記
憶されると、RAM3の初期化が完了する。
After that, the operations of ■ and ■ are repeated, and as a result, RA
When the initial data is stored in the memory areas of all addresses of M3, the initialization of RAM3 is completed.

発明が解決しようとする課題 ところで、上述したように、DMAコントローラによっ
てRAMの初期化を行う場合、DMAコントローラ4に
設けられたバッファレジスタ4aが、−時的にしかデー
タを記憶することができないため、DMAコントローラ
4は、バッファレジスタ4aから初期データをRAM3
に転送した後、再びCPUIのリード/ライト命令によ
って、RAM3から初期データを読み込んでバッファレ
ジスタ4aに記憶させなければならない。このため、R
AM3に初期データを書き込む都度、CPU1の命令を
必要すると共に、RAM3からバッファレジスタ4aに
初期データを読み込んで記憶させなければならないので
、その分、RAM3の初期化が遅くなる。つまり、RA
M3に初期データを書き込む速度が遅くなる問題があっ
た。
Problem to be Solved by the Invention By the way, as mentioned above, when the RAM is initialized by the DMA controller, the buffer register 4a provided in the DMA controller 4 can only temporarily store data. , the DMA controller 4 transfers the initial data from the buffer register 4a to the RAM 3.
After the initial data is transferred to the RAM 3, it is necessary to read the initial data from the RAM 3 and store it in the buffer register 4a again using a read/write command from the CPUI. For this reason, R
Each time initial data is written to AM3, a command from the CPU 1 is required, and the initial data must be read from RAM 3 into buffer register 4a and stored, so initialization of RAM 3 is delayed accordingly. In other words, R.A.
There was a problem that the speed of writing initial data to M3 was slow.

本発明は、このような点に鑑みてなされたものであり、
DMAコントローラによるRAMへのデータの書き込み
を高速に行うことができるDMA転送方法を提供するこ
とを目的としている。
The present invention has been made in view of these points,
It is an object of the present invention to provide a DMA transfer method that allows a DMA controller to write data to a RAM at high speed.

本発明によれば、まず、DMAコントローラ4に、デー
タを記憶保持するレジスタ4bを設けて、該レジスタ4
bにCPU 1の制御によってデータを記憶させる。
According to the present invention, first, the DMA controller 4 is provided with a register 4b for storing and holding data, and the register 4b is
b stores data under the control of the CPU 1.

そして、該レジスタ4bに記憶されたデータをメモリ3
に書き込む命令を、該CPU 1から該DMAコントロ
ーラ4にアクセスして、そのライト命令がアクセスされ
た該DMAコントローラ4の制御によって、該レジスタ
4bに記憶されたデータを該メモリ3に連続的に書き込
んで記憶させる。
Then, the data stored in the register 4b is transferred to the memory 3.
The DMA controller 4 is accessed from the CPU 1, and the data stored in the register 4b is continuously written to the memory 3 under the control of the DMA controller 4 to which the write instruction is accessed. Let me remember it.

作   用 上述したように、DMAコントローラ4の制御によって
、そのレジスタ4bに記憶されたデータを、メモリ3に
連続的に書き込んで記憶させるので、DMAコントロー
ラ4のレジスタ4bからメモリ3にデータを高速転送す
ることができる。
Function As described above, the data stored in the register 4b is continuously written and stored in the memory 3 under the control of the DMA controller 4, so data can be transferred from the register 4b of the DMA controller 4 to the memory 3 at high speed. can do.

実  施  例 以下、図面を参照して本発明の一実施例について説明す
る。
Embodiment Hereinafter, an embodiment of the present invention will be described with reference to the drawings.

第2図は本発明の一実施例によるDMA転送方法を説明
するた必の図であり、この図において第3図に示す従来
例の各部に対応する部分には同一の符号を付し、その説
明を省略する。
FIG. 2 is an indispensable diagram for explaining a DMA transfer method according to an embodiment of the present invention. In this diagram, parts corresponding to those of the conventional example shown in FIG. The explanation will be omitted.

本発明の実施例の構成が、第3図に示す従来例の構成と
異なる点は、DMAコントローラ4に、データを記憶保
持することのできるレジスタ4bを設けたことである。
The configuration of the embodiment of the present invention differs from the configuration of the conventional example shown in FIG. 3 in that the DMA controller 4 is provided with a register 4b that can store and hold data.

このような構成において、RAMの初期化を行う場合を
、その実行のステップ毎に説明する。
In such a configuration, the case where the RAM is initialized will be explained step by step.

■CPU 1がROM2にアクセスして、ROM2に記
憶された初期化実行の命令コードを読み取る。
(2) The CPU 1 accesses the ROM 2 and reads the initialization execution instruction code stored in the ROM 2.

■命令コードを読み取ったCPU 1が、DMAコント
ローラ4のレジスタ4bに初期データ「0」又は「1」
を書き込むと共に、ライト命令を行う。
■The CPU 1 that read the instruction code sets the initial data “0” or “1” to the register 4b of the DMA controller 4.
At the same time, perform a write command.

このライト命令は、DMAコントローラ4が、そのレジ
スタ4bに記憶された初期データを、RAM3のメモリ
領域に書き込んで記憶させる制御を実行させるもである
This write command causes the DMA controller 4 to write and store the initial data stored in the register 4b in the memory area of the RAM 3.

■ライト命令が行われたDMAコントローラ4は、RA
M3のn番目のアドレスのメモリ領域から順番に、かつ
連続的に初期データを書き込んで記憶させる。ここで、
RAM3の全てのアドレスのメモリ領域に、初期データ
が記憶されると、RAM3の初期化が完了する。
■The DMA controller 4 where the write command was executed is the RA
Initial data is sequentially and continuously written and stored starting from the memory area of the n-th address of M3. here,
When the initial data is stored in the memory areas of all addresses of the RAM 3, the initialization of the RAM 3 is completed.

■RΔM3の初期化が完了すると、RAM3はD )、
4 Aコントローラ4に、その完了を知らせるデータを
送り、このデータを受けたDMAコントローラ4は、C
PU 1に初期化完了を知らせ、これによって、RAM
3の初期化が終了する。
■When the initialization of RΔM3 is completed, RAM3 is D),
4 Sends data informing the completion to the A controller 4, and upon receiving this data, the DMA controller 4
Informs PU 1 that initialization is complete, and thereby
3 initialization is completed.

以上説明したように、本発明の実施例によれば、CPU
1からDMAコントローラ4にライト命令を行うだけで
、レジスタ4bの初期データをRAM3に一方的に書き
込んで初期化を行うことができる。
As explained above, according to the embodiment of the present invention, the CPU
By simply issuing a write command from 1 to the DMA controller 4, the initial data of the register 4b can be unilaterally written to the RAM 3 for initialization.

これは、従来のDMA転送方法では、RAM3に初期デ
ータを書き込む都度、CPU 1の命令を必要すると共
に、RAM3からバッファレジスタ4aに初期データを
読み込んで記憶させなければならなかったのに対して、
初期データを書き込む都度行われるCPUIの命令動作
と、バッファレジスタ4aに初期データを読み込む動作
とが無くなったことである。従って、それらの動作が無
くなった分、RAM3に初期データを書き込む速度が速
くなり、RAM3の初期化を速く行うことができる。
This is because the conventional DMA transfer method requires a command from the CPU 1 every time initial data is written to the RAM 3, and also requires reading and storing the initial data from the RAM 3 into the buffer register 4a.
This eliminates the CPUI command operation that is performed each time initial data is written, and the operation that reads initial data into the buffer register 4a. Therefore, since these operations are eliminated, the speed at which initial data is written to the RAM 3 becomes faster, and the RAM 3 can be initialized more quickly.

また、CPUIからDMAコントローラ4にライト命令
を行った後は、初期化をDMAコントローラ4が行うの
で、その間、cpu iを他の用途に用いることができ
る。
Further, after a write command is issued from the CPUI to the DMA controller 4, the DMA controller 4 performs initialization, so the CPU i can be used for other purposes during that time.

また、このDMAコントローラ4によるデータの転送は
、初期化以外に、同一のデータ「0」・・・「O」或い
は「1」・・・「1」を書き込む場合に適用することが
できる。
In addition to initialization, this data transfer by the DMA controller 4 can be applied to writing the same data "0"..."O" or "1"..."1".

発明の詳細 な説明したように、本発明によれば、DMAコントロー
ラによるRAMへのデータの書き込み(データの転送)
を高速に行うことができる効果がある。
DETAILED DESCRIPTION OF THE INVENTION According to the present invention, writing of data to RAM (transfer of data) by a DMA controller
This has the effect of allowing the process to be carried out at high speed.

また、DMAコントローラによりRAMにデータの書き
込みを行っている時に、CPUを他の用途に用いること
ができる効果がある。
Furthermore, while data is being written to the RAM by the DMA controller, the CPU can be used for other purposes.

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

第1図は本発明の原理図、 第2図は本発明の一実施例によるDMA転送方法を説明
するための図、 第3図は従来のDMA転送方法を説明するための図であ
る。 1・・・CPU。 3・・・メモリ、 4・・・DMAコントローラ、 4b・・・レジスタ。 4派 裟
FIG. 1 is a diagram showing the principle of the present invention, FIG. 2 is a diagram for explaining a DMA transfer method according to an embodiment of the present invention, and FIG. 3 is a diagram for explaining a conventional DMA transfer method. 1...CPU. 3...Memory, 4...DMA controller, 4b...Register. 4 sects

Claims (1)

【特許請求の範囲】 DMAコントローラ(4)によってメモリ(3)にデー
タを転送するDMA転送方法において、前記DMAコン
トローラ(4)に、データを記憶保持するレジスタ(4
b)を設けて、該レジスタ(4b)にCPU(1)の制
御によってデータを記憶させ、該レジスタ(4b)に記
憶されたデータをメモリ(3)に書き込む命令を、該C
PU(1)から該DMAコントローラ(4)にアクセス
し、 該書き込み命令がアクセスされた該DMAコントローラ
(4)の制御によって、前記レジスタ(4b)に記憶さ
れたデータを前記メモリ(1)に連続的に書き込んで記
憶させることを特徴とするDMA転送方法。
[Claims] In a DMA transfer method in which a DMA controller (4) transfers data to a memory (3), the DMA controller (4) includes a register (4) for storing and holding data.
b) to store data in the register (4b) under the control of the CPU (1), and to write the data stored in the register (4b) to the memory (3).
The DMA controller (4) is accessed from the PU (1), and the data stored in the register (4b) is continuously stored in the memory (1) under the control of the DMA controller (4) accessed by the write command. A DMA transfer method characterized by writing and storing data.
JP15881090A 1990-06-19 1990-06-19 Dma transfer method Pending JPH0449459A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15881090A JPH0449459A (en) 1990-06-19 1990-06-19 Dma transfer method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15881090A JPH0449459A (en) 1990-06-19 1990-06-19 Dma transfer method

Publications (1)

Publication Number Publication Date
JPH0449459A true JPH0449459A (en) 1992-02-18

Family

ID=15679857

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15881090A Pending JPH0449459A (en) 1990-06-19 1990-06-19 Dma transfer method

Country Status (1)

Country Link
JP (1) JPH0449459A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008299793A (en) * 2007-06-04 2008-12-11 Ricoh Co Ltd Information processor and image processor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008299793A (en) * 2007-06-04 2008-12-11 Ricoh Co Ltd Information processor and image processor

Similar Documents

Publication Publication Date Title
US5581720A (en) Apparatus and method for updating information in a microcode instruction
JPH0449459A (en) Dma transfer method
JPH06103225A (en) Chain type dma system and dma controller therefor
US5121351A (en) Floating point arithmetic system
KR900005306A (en) Computer system and method for setting recovery time
JPH1091593A (en) Data processor provided with microprocessor and optional calculation unit
JPH05242009A (en) Direct memory access device
JPH05257698A (en) Electronic computer
JPS62219399A (en) Read system for read-only memory
JPH0355646A (en) Data storage circuit
JPH02205949A (en) Memory initializing system
JPH01102664A (en) Initial program loading system
JPH06161945A (en) Memory data transfer device
JPH06214939A (en) Dma controller
JPH03259491A (en) Memory controller
JPH0385626A (en) Bit block transfer control device
JPH01219930A (en) Interrupt control circuit device for indirect address system
JPS63198141A (en) Memory bank control system
JPH0261749A (en) Data transfer device
JPH0353318A (en) Two-port memory
JPS63178320A (en) Multiwindow display device
JPS62168246A (en) Memory writing control system
JPS6170651A (en) Movement system of data array
JPS61128342A (en) Serial scan control system
JPH03276344A (en) Data writing system to memory