JPH05274248A - Direct memory access device - Google Patents

Direct memory access device

Info

Publication number
JPH05274248A
JPH05274248A JP6881492A JP6881492A JPH05274248A JP H05274248 A JPH05274248 A JP H05274248A JP 6881492 A JP6881492 A JP 6881492A JP 6881492 A JP6881492 A JP 6881492A JP H05274248 A JPH05274248 A JP H05274248A
Authority
JP
Japan
Prior art keywords
data
processing
dma
block
information
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
JP6881492A
Other languages
Japanese (ja)
Other versions
JP2501393B2 (en
Inventor
Hiroshi Miura
浩 三浦
Sachio Yamato
佐知男 山戸
Daisaku Yamane
大作 山根
Masaji Ishikawa
正司 石川
Yuuki Sudou
雄基 須藤
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.)
Japan Radio Co Ltd
Original Assignee
Japan Radio Co 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 Japan Radio Co Ltd filed Critical Japan Radio Co Ltd
Priority to JP6881492A priority Critical patent/JP2501393B2/en
Publication of JPH05274248A publication Critical patent/JPH05274248A/en
Application granted granted Critical
Publication of JP2501393B2 publication Critical patent/JP2501393B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To save the trouble of the temporary stoppage of DMA transfer, the reset of a processing content and the restarting of DMA in the case of transferring DMA while switching the processing content in accordance with data. CONSTITUTION:A data monitoring block 203 is provided for DMA 201. The data monitoring block 203 discriminates whether information read out from a memory by a data reading block 202 is data or information showing the processing content. In the case of data, the piece of data is outputted to a data write-in block 205 after processing by a data processing block 204. In the case of information showing the processing content, the processing procedure on a program memory 206 is started by setting the piece of information to be a command so as to program-control the data processing block 204. Thus, since the processing content in DMA 201 can be switched in accordance with data, troubles of the temporary stoppage of DMA operation, the reset of the processing content and the restarting of DMA 201 are removed, and since program control is executed, comparatively advanced processing is possible.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、メモリを直接アクセス
し得られたデータを転送先装置に転送する直接メモリア
クセス装置(DMA)の改良に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an improvement of a direct memory access device (DMA) which directly accesses a memory and transfers the obtained data to a transfer destination device.

【0002】[0002]

【従来の技術】従来から、コンピュータ等のデータ処理
装置においてDMAが用いられている。図3には、一般
的なデータ処理装置の構成が示されている。
2. Description of the Related Art Conventionally, DMA has been used in a data processing device such as a computer. FIG. 3 shows the configuration of a general data processing device.

【0003】この図に示されるデータ処理装置は、メモ
リ101、I/O102、CPU103及びDMA10
5をバス104によって接続した構成である。メモリ1
01上に記憶されているデータをI/O102に書き込
むことにより転送先装置に転送しようとする場合、CP
U103はDMA105に対しDMA転送指令を発す
る。DMA105は、この指令に応じてメモリ101を
直接アクセスし、メモリ101上のデータをI/O10
2に書き込む。従って、DMA105は、メモリ101
対I/O102のデータの転送、及び複数のメモリ10
1を用いている場合にはメモリ101同士の間でのデー
タの転送を司るものであり、CPU103を補助するこ
とによりその負担を低減し処理速度を向上させるもので
ある。
The data processing apparatus shown in this figure comprises a memory 101, an I / O 102, a CPU 103 and a DMA 10.
5 is connected by a bus 104. Memory 1
When the data stored in 01 is to be transferred to the transfer destination device by writing to the I / O 102, the CP
U 103 issues a DMA transfer command to DMA 105. The DMA 105 directly accesses the memory 101 in response to this instruction and transfers the data on the memory 101 to the I / O 10
Write to 2. Therefore, the DMA 105 is the memory 101
Data transfer to / from I / O 102 and a plurality of memories 10
When 1 is used, it controls the transfer of data between the memories 101, and assists the CPU 103 to reduce the load and improve the processing speed.

【0004】[0004]

【発明が解決しようとする課題】このように、従来の方
法ではDMA転送により処理速度の高速化とCPU10
3の負荷低減が実現されていた。しかし、その他の処理
についてはCPU103が実行していたため、処理速度
の向上のためにはCPU103の動作速度を決定するク
ロック周波数を高めねばならなかった。しかし、CPU
103のクロック周波数を高めるとメモリ101がこれ
に追従できなくなる。
As described above, in the conventional method, the processing speed is increased by the DMA transfer and the CPU 10
The load reduction of 3 was realized. However, since the CPU 103 was executing the other processing, the clock frequency for determining the operating speed of the CPU 103 had to be increased in order to improve the processing speed. But the CPU
If the clock frequency of 103 is increased, the memory 101 cannot follow this.

【0005】特に問題となるのは、メモリ101上のデ
ータをDMA転送するにあたって所定の処理を施さねば
ならない場合である。すなわち、転送先装置がメモリ1
01上のデータをそのままで受け取ることができず、所
定の処理を施すことが必要である場合である。この場
合、CPU103は、メモリ101上のデータを読み込
み所定の処理を施した上で再びメモリ101に書き込
む。この後、CPU103は、DMA105に対しDM
A転送指令を与え、DMA105によるDMA転送が行
われる。従って、このような場合には、メモリ101の
速度が全体の処理速度に大きな影響を与えてしまう。
A particular problem arises when the data in the memory 101 has to be subjected to a predetermined process in DMA transfer. That is, the transfer destination device is the memory 1
This is a case where the data on 01 cannot be received as it is and it is necessary to perform a predetermined process. In this case, the CPU 103 reads the data in the memory 101, performs a predetermined process, and then writes the data in the memory 101 again. Thereafter, the CPU 103 sends DM to the DMA 105.
A transfer command is given, and DMA transfer by the DMA 105 is performed. Therefore, in such a case, the speed of the memory 101 greatly affects the overall processing speed.

【0006】また、このような問題点を解決するため
に、本願出願人は先にDMAにデータ処理機能を持たせ
た構成を提案している(特願平4−45397号)。こ
の提案では、DMAにデータ処理機能を持たせることに
より、CPU103におけるデータ処理の必要をなく
し、従ってメモリ101への処理結果の書込みを行わな
いようにしている。しかし、この場合でも、DMAにお
けるデータ処理の内容をデータ毎に切り替えるために
は、DMA動作を一旦停止し、再起動を行わねばならな
いという問題点があった。
In order to solve such a problem, the applicant of the present application has previously proposed a configuration in which a DMA has a data processing function (Japanese Patent Application No. 4-45397). In this proposal, by providing the DMA with a data processing function, the need for data processing in the CPU 103 is eliminated, so that the processing result is not written in the memory 101. However, even in this case, there is a problem that the DMA operation must be temporarily stopped and restarted in order to switch the content of the data processing in the DMA for each data.

【0007】本発明は、このような問題点を解決するこ
とを課題としてなされたものであり、データに応じてD
MAにおける処理内容を変える場合にDMAの動作の一
旦停止及び処理内容の設定後の再起動の手間をなくすこ
とを目的とする。
The present invention has been made to solve the above problems, and D
An object of the present invention is to eliminate the trouble of temporarily stopping the operation of the DMA and restarting after setting the processing content when changing the processing content in the MA.

【0008】[0008]

【課題を解決するための手段】このような目的を達成す
るために、本発明のDMAは、プロセッサからの指令に
応じメモリから直接情報を読み込むブロックと、読み込
まれた情報のうちデータに係る情報に所定の処理を施す
ブロックと、処理が施されたデータを転送先装置に書き
込むブロックと、読み込まれる情報を監視し、読み込ま
れた情報がデータに係る情報であった場合には前記処理
に供し、処理内容に係る情報であった場合にはこれを指
令として前記処理をプログラム制御するブロックと、を
備えることを特徴とする。
In order to achieve such an object, the DMA of the present invention is a block for directly reading information from a memory in response to a command from a processor and an information related to data of the read information. A block to which a predetermined process is applied, a block to write the processed data to the transfer destination device, and the information to be read, and if the read information is the information related to the data, it is provided to the above process. If the information is related to the processing content, a block for program-controlling the processing by using the information as a command is provided.

【0009】また、本発明のデータ処理装置は、データ
が処理内容に係る情報と共に記憶されるメモリと、メモ
リ上のデータを転送先装置に転送させる旨の指令を発生
させるプロセッサと、この指令に応じてメモリから直接
データを読み込み転送先装置に転送する本発明のDMA
と、を備えることを特徴とする。
Further, the data processing apparatus of the present invention includes a memory in which data is stored together with information relating to processing contents, a processor for issuing a command to transfer the data in the memory to a transfer destination device, and the command. According to the present invention, which directly reads data from the memory and transfers it to the transfer destination device.
And are provided.

【0010】[0010]

【作用】本発明のDMAにおいては、メモリからDMA
に読み込まれる情報がデータ及び指令(コマンド)から
構成される。データであった場合には、監視ブロックに
より、このデータが所定の処理に供され、また、コマン
ドであった場合にはこれに応じて処理がプログラム制御
される。従って、本発明においては、処理内容をデータ
に応じて切り替える場合にDMA動作を一旦停止し処理
内容再設定後の再起動を行うという手間が不要となり、
さらに、処理をプログラム制御しているため比較的高度
な処理を施すことが可能になる。
In the DMA of the present invention, the DMA from the memory
The information read in is composed of data and commands. If it is data, the monitoring block provides this data for a predetermined process, and if it is a command, the process is program-controlled accordingly. Therefore, in the present invention, when the processing contents are switched according to the data, the trouble of temporarily stopping the DMA operation and restarting after resetting the processing contents becomes unnecessary,
Further, since the processing is program-controlled, it is possible to perform comparatively advanced processing.

【0011】さらに、本発明のデータ処理装置において
も、同様の作用が得られる。
Furthermore, the same operation can be obtained in the data processing device of the present invention.

【0012】[0012]

【実施例】以下、本発明の好適な実施例について図面に
基づき説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT A preferred embodiment of the present invention will be described below with reference to the drawings.

【0013】図1には、本発明の一実施例に係るDMA
の構成が、図2にはこの実施例において扱われる情報の
構造が、それぞれ示されている。
FIG. 1 shows a DMA according to an embodiment of the present invention.
2 shows the structure of information handled in this embodiment.

【0014】まず、図1に示されるDMA201は、デ
ータ読み込みブロック202、データ監視ブロック20
3、データ処理ブロック204、データ書き込みブロッ
ク205及びプログラムメモリ206から構成されてい
る。このDMA201は、例えば図3に示されるデータ
処理装置において用い得るものである。
First, the DMA 201 shown in FIG. 1 includes a data reading block 202 and a data monitoring block 20.
3, a data processing block 204, a data writing block 205, and a program memory 206. The DMA 201 can be used, for example, in the data processing device shown in FIG.

【0015】データ読み込みブロック202は、メモリ
101に記憶されている情報を読み込み、データ監視ブ
ロック203及びデータ処理ブロック204に与える。
データ監視ブロック203は、データ読み込みブロック
202によって読み込まれた情報がデータに係る情報で
ある場合にはこれをデータ処理ブロック204における
処理に供し、また処理内容を示す情報であった場合に
は、この情報をコマンドとしてプログラムメモリ206
に格納されている処理手続(プログラム)を起動させ、
データ処理ブロック204における処理内容をプログラ
ム制御する。データ書き込みブロック205は、データ
処理ブロック204において処理されたデータをI/O
102に書き込み、転送先装置に転送する。
The data reading block 202 reads the information stored in the memory 101 and supplies it to the data monitoring block 203 and the data processing block 204.
If the information read by the data reading block 202 is information relating to data, the data monitoring block 203 provides this for processing in the data processing block 204, and if it is information indicating the processing content, Program memory 206 using information as commands
Start the processing procedure (program) stored in
Program contents of the data processing block 204 are controlled. The data write block 205 I / Os the data processed in the data processing block 204.
Write to 102 and transfer to the transfer destination device.

【0016】また、図2に示される情報301は、デー
タの処理内容を示す情報302及びデータ303から構
成されている。また、これらの情報302及びデータ3
03の先頭ビット304は、処理方法を示す情報302
であるかデータ303であるかを示すビットであり、
“1”である場合には前者、“0”であるばあいには後
者である。データ監視ブロック203は、この先頭ビッ
ト304を監視することにより、データ読み込みブロッ
ク202により読み込まれた情報が、処理方法を示す情
報302であるかデータ303であるかを識別する。
The information 301 shown in FIG. 2 is composed of information 302 and data 303 indicating the processing contents of the data. Also, these information 302 and data 3
The first bit 304 of 03 is information 302 indicating the processing method.
Is a bit indicating whether or not
The former is "1" and the latter is "0". The data monitoring block 203 monitors the leading bit 304 to identify whether the information read by the data reading block 202 is the information 302 indicating the processing method or the data 303.

【0017】このように、本実施例によれば、DMA転
送すべきデータに応じて処理内容を切り替える必要があ
る場合に、DMA動作の一旦停止、処理方法の再設定及
びDMA201の再起動などの手間が不要となる。従っ
て、CPU103は、DMA転送指令を1回発するのみ
でそれぞれ処理内容が異なる一連のデータ303をDM
A転送することができ、処理速度が向上する。
As described above, according to this embodiment, when it is necessary to switch the processing contents according to the data to be DMA-transferred, the DMA operation is temporarily stopped, the processing method is reset, and the DMA 201 is restarted. No need for labor. Therefore, the CPU 103 DMs a series of data 303 having different processing contents by issuing only one DMA transfer command.
A transfer is possible, and the processing speed is improved.

【0018】また、本実施例によれば、処理内容を情報
302をコマンドとしてプログラムメモリ206上の処
理手順を起動させることとなっている。従って、例えば
本願出願人の先提案に係る特願平4−67108号に比
べ施す処理を比較的高度なものとすることができる。
Further, according to this embodiment, the processing procedure on the program memory 206 is started by using the information 302 as a command for the processing content. Therefore, for example, the processing to be performed can be made relatively sophisticated as compared with Japanese Patent Application No. 4-67108, which was previously proposed by the applicant of the present application.

【0019】[0019]

【発明の効果】以上説明したように、本発明によれば、
メモリからDMAに読み込まれる情報を監視し、監視結
果に応じて処理内容を切り替え、かつこの処理をプログ
ラム制御するようにしたため、DMA動作の一旦停止、
処理内容の再設定及びDMAの再起動という手間が不要
となり、処理速度が向上する。また、処理内容を比較的
高度なものとすることができる。
As described above, according to the present invention,
Since the information read from the memory into the DMA is monitored and the processing content is switched according to the monitoring result and the processing is program-controlled, the DMA operation is temporarily stopped.
The trouble of resetting the processing contents and restarting the DMA is unnecessary, and the processing speed is improved. Further, the processing content can be made relatively sophisticated.

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

【図1】本発明の一実施例に係るDMAの構成を示すブ
ロック図である。
FIG. 1 is a block diagram showing a configuration of a DMA according to an embodiment of the present invention.

【図2】本実施例において取り扱われる情報の構造を示
す図である。
FIG. 2 is a diagram showing a structure of information handled in the present embodiment.

【図3】データ処理装置の一般的な構成を示すブロック
図である。
FIG. 3 is a block diagram showing a general configuration of a data processing device.

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

101 メモリ 102 I/O 103 CPU 201 DMA 202 データ読み込みブロック 203 データ監視ブロック 204 データ処理ブロック 205 データ書き込みブロック 206 プログラムメモリ 301 情報 302 処理方法を示す情報 303 データ 304 情報302及びデータ303の先頭ビット 101 memory 102 I / O 103 CPU 201 DMA 202 data reading block 203 data monitoring block 204 data processing block 205 data writing block 206 program memory 301 information 302 processing method information 303 data 304 information 302 and the first bit of data 303

フロントページの続き (72)発明者 石川 正司 東京都三鷹市下連雀五丁目1番1号 日本 無線株式会社内 (72)発明者 須藤 雄基 東京都三鷹市下連雀五丁目1番1号 日本 無線株式会社内Front page continuation (72) Inventor Shoji Ishikawa 5-1-1, Shimorenjaku, Mitaka-shi, Tokyo Within Japan Radio Co., Ltd. (72) Inventor Yuuki Sudo 5-1-1, Shimorenjaku, Mitaka-shi, Tokyo Within Japan Radio Co., Ltd.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 プロセッサからの指令に応じメモリから
直接情報を読み込むブロックと、 読み込まれた情報のうちデータに係る情報に所定の処理
を施すブロックと、 処理が施されたデータを転送先装置に書き込むブロック
と、 読み込まれる情報を監視し、読み込まれた情報がデータ
に係る情報であった場合には前記処理に供し、処理内容
に係る情報であった場合にはこれを指令として前記処理
をプログラム制御するブロックと、 を備えることを特徴とする直接メモリアクセス装置。
1. A block for directly reading information from a memory in response to a command from a processor, a block for subjecting information relating to data in the read information to a predetermined process, and the processed data to a transfer destination device. The block to be written and the information to be read are monitored, and if the read information is information related to the data, the processing is provided, and if it is information related to the processing content, the processing is programmed using this as a command. A direct memory access device comprising: a control block.
【請求項2】 データが処理内容に係る情報と共に記憶
されるメモリと、 メモリ上のデータを転送先装置に転送させる旨の指令を
発するプロセッサと、 この指令に応じてメモリから直接情報を読み込み転送先
装置に転送する請求項1記載の直接メモリアクセス装置
と、 を備えることを特徴とするデータ処理装置。
2. A memory in which data is stored together with information relating to processing contents, a processor which issues a command to transfer the data in the memory to a transfer destination device, and information is directly read and transferred from the memory in response to the command. The direct memory access device according to claim 1, which transfers the data to a destination device, and a data processing device.
JP6881492A 1992-03-26 1992-03-26 Direct memory access device Expired - Lifetime JP2501393B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6881492A JP2501393B2 (en) 1992-03-26 1992-03-26 Direct memory access device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6881492A JP2501393B2 (en) 1992-03-26 1992-03-26 Direct memory access device

Publications (2)

Publication Number Publication Date
JPH05274248A true JPH05274248A (en) 1993-10-22
JP2501393B2 JP2501393B2 (en) 1996-05-29

Family

ID=13384567

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6881492A Expired - Lifetime JP2501393B2 (en) 1992-03-26 1992-03-26 Direct memory access device

Country Status (1)

Country Link
JP (1) JP2501393B2 (en)

Also Published As

Publication number Publication date
JP2501393B2 (en) 1996-05-29

Similar Documents

Publication Publication Date Title
JP2829091B2 (en) Data processing system
JPH01277928A (en) Printer
US5481756A (en) DMA controller mailing auto-initialize halting unit
JP2501393B2 (en) Direct memory access device
JPS63305445A (en) Data writing system at power break
JP2524673B2 (en) Direct memory access device
JPS59144955A (en) Information processor
JPH0447350A (en) Main storage read/response control
JPH05242009A (en) Direct memory access device
JP2594673B2 (en) Data processing method
JP2785855B2 (en) Information processing device
JP2793258B2 (en) Data setting method for positioning control device
JP2560312B2 (en) Information processing system
JP3127737B2 (en) Digital signal processor
JP2715933B2 (en) Direct memory access control circuit
JPH02125303A (en) Programmable controller
JPH04162135A (en) Data processor
JPH077531A (en) Communication procedure controller
JP2003186666A (en) Microcomputer and dma control circuit
JPH10177493A (en) Graphic processing system
JPH0713921A (en) Dma controller
JPH0424733B2 (en)
JPH01292451A (en) Information processor
JPH05120201A (en) Data processor
JPS62274446A (en) Loading system for transient program in computer system