JPS6336465A - Dma transferring method - Google Patents

Dma transferring method

Info

Publication number
JPS6336465A
JPS6336465A JP18089186A JP18089186A JPS6336465A JP S6336465 A JPS6336465 A JP S6336465A JP 18089186 A JP18089186 A JP 18089186A JP 18089186 A JP18089186 A JP 18089186A JP S6336465 A JPS6336465 A JP S6336465A
Authority
JP
Japan
Prior art keywords
transfer
transferring
dma
flag
parameter
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
JP18089186A
Other languages
Japanese (ja)
Inventor
Kazuo Kishida
和雄 岸田
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP18089186A priority Critical patent/JPS6336465A/en
Publication of JPS6336465A publication Critical patent/JPS6336465A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/28Handling requests for interconnection or transfer for access to input/output bus using burst mode transfer, e.g. direct memory access DMA, cycle steal

Abstract

PURPOSE:To save the time to be spent for setting an unnecessary parameter and to improve a processing speed by detecting a specified transferring condition based upon a flag, and setting a necessary parameter only at the time of the next transferring. CONSTITUTION:When the transferring of DMA is the one from a pattern memory 3 to a VRAM 5, a flag 60 is hoisted, and namely, '1' is displayed. A CPU 1 outputs a starting signal to a DMA controller 4, a DMA transferring is started and thereafter, the DMA controller 4 controls a transferring action. After the transferring is completed, the CPU 1 executes the parameter counting for the next transferring based upon the request, etc., from the external part. Next, the CPU 1 checks the condition of the flag 60. When a flag is not hoisted, the transferring with the highest frequency is not obtained, therefore, all parameters are reset to a transferring mode register 50, and when the flag is hoisted, it is proved that the transferring with the highest frequency is obtained, therefore, the setting of the parameter is a source address and a destination address only. Thus, the efficiency of the setting of the parameter can be improved.

Description

【発明の詳細な説明】 〔発明の目的〕 (産業上の利用分升) 本発明はDMA転送方法に関する。[Detailed description of the invention] [Purpose of the invention] (Industrial usage volume) The present invention relates to a DMA transfer method.

(従来の技術) あるメモリの内容を他のメモリに対して転送する技術と
して[) M A (Direct Memory A
ccess)方式が知られている。これは通常行われる
ように−HCPLIにデータを読み込み、次にそのデー
タを転送先メモリへ占き込むような場合には2段階の処
理が必要となって転送時間が大きくなり、しかもCPU
が転送処理のために占有されることから、メモリ間で直
接転送を行うようにしたものである。
(Prior art) Direct Memory A (Direct Memory A) is a technology for transferring the contents of one memory to another memory.
(ccess) method is known. If this is normally done - loading data into HCPLI and then allocating that data to destination memory, it would require two stages of processing, increasing the transfer time, and requiring less CPU time.
is occupied for transfer processing, so direct transfer is performed between memories.

一般に、DMA転送においては転送すべきメモリ間に転
送制御のためのDMAコントローラを配置してアドレス
バス、データバス、制御バスの制御権をこのDMAコン
トローラに移管するようにしている。このため、DMA
転送モードに移る際には、CP Ll G、t D M
 Aコントローラに対してDMA転送のために必要な各
パラメータを設定し、その後起動をかけてDMA転送に
移行するようにする。ここで、設定すべきパラメータと
しては、例えば転送元(ソース)のアドレス、転送先(
デスティネーション)のアドレス、くり返し転送回数、
送受信倍率(送信時間と受信時間のデユーティ比)等各
種のものがある。
Generally, in DMA transfer, a DMA controller for transfer control is placed between memories to be transferred, and control of the address bus, data bus, and control bus is transferred to this DMA controller. For this reason, DMA
When moving to transfer mode, CP Ll G,t DM
Each parameter necessary for DMA transfer is set for the A controller, and then it is activated to shift to DMA transfer. Here, the parameters to be set include, for example, the address of the transfer source (source), the transfer destination (
destination) address, number of repeated transfers,
There are various types such as transmission/reception magnification (duty ratio between transmission time and reception time).

ところで、従来このようなパラメータ設定は、DMA転
送を行う都度全部を新たに設定するようにしている。こ
れは直前の転送状況をCPU側で特に監視していないこ
とによる。
By the way, conventionally, such parameter settings are all newly set each time DMA transfer is performed. This is because the CPU side does not particularly monitor the immediately preceding transfer status.

(発明が解決しようとする問題点) しかしながら、DMA転送のために設定されるパラメー
タは前回の転送時と比べてソースとデスティネーション
のみ異なり、他は同一であるような場合がしばしばある
。このような場合には、直前の転送時にセットされてい
たパラメータの大部分は同じであるにもかかわらず全部
のパラメータのセットが行われるため転送効率が低いと
いう問題がある。
(Problems to be Solved by the Invention) However, it is often the case that the parameters set for DMA transfer are different from the previous transfer only for the source and destination, and the others are the same. In such a case, there is a problem that the transfer efficiency is low because all parameters are set even though most of the parameters that were set during the previous transfer are the same.

本発明はこのようなパラメータ設定の効率の悪さを改善
し、処理系全体の速度を向上させることのできるDMA
転送方法を提供することを目的とする。
The present invention is a DMA that can improve the inefficiency of parameter settings and improve the speed of the entire processing system.
The purpose is to provide a transfer method.

〔発明の構成〕[Structure of the invention]

(問題点を解決するための手段) 本発明によるDMA転送方法においては、転送制御パラ
メータをセットするための転送モードレジスタに並設さ
れたフラグに転送状態をセットし、次の転送開始時には
フラグの内容に応じて必要なパラメータのみをセットす
るようにしたことを特徴としている。
(Means for Solving Problems) In the DMA transfer method according to the present invention, a transfer state is set in a flag arranged in parallel in a transfer mode register for setting transfer control parameters, and the flag is set at the start of the next transfer. The feature is that only necessary parameters are set according to the content.

(作 用) このようなりMA転送方法によれば直前の転送状態が確
認できるので、例えば前回の転送と今回の転送が最も使
用頻度の高いメモリ間であるような場合にはフラグがセ
ットされており、大部分のパラメータを再セットする必
要がないため処理速度の向上を図ることが可能となる。
(Function) According to this MA transfer method, the previous transfer status can be checked, so for example, if the previous transfer and the current transfer are between the most frequently used memories, a flag is set. Since it is not necessary to reset most of the parameters, it is possible to improve the processing speed.

(実施例) 第3図は本発明が適用されるDMA転送システムの構成
図である。
(Embodiment) FIG. 3 is a block diagram of a DMA transfer system to which the present invention is applied.

同図によればcpu iと主メモリ2とがデータパスコ
1、アドレスバス12、コントロールバス13により接
続されており、これらバスにはDMA−]コントローラ
が接続されている。このDMAコントローラ4にはデー
タバス21、アドレスバス22、コントロールバス23
を介して読出し専用メモリ(ROM)で成るパターンメ
モリ3およびデータバス31、アドレスバス32、コン
ト0−ルバス33を介してVRAM5が接続されている
。このVRAM5のパラレル出力はシフトレジスタ6に
よりシリアルデータに変換され、CR7表示器7に送ら
れるようになっている。ここでパターンメモリ3はCR
T7に表示すべき文字情報を格納しており、DMAコン
トローラ4がらのアドレス情報および制顛信号をバス2
2および23により受け、文字情報をバス21に出力し
、DMAコントローラ4を介してVRAM5あるいは主
メモリ2に転送する。
According to the figure, the CPU i and the main memory 2 are connected by a data passco 1, an address bus 12, and a control bus 13, and a DMA controller is connected to these buses. This DMA controller 4 includes a data bus 21, an address bus 22, and a control bus 23.
A pattern memory 3 consisting of a read-only memory (ROM) is connected to the VRAM 5 via a data bus 31, an address bus 32, and a control bus 33. The parallel output of this VRAM 5 is converted into serial data by a shift register 6 and sent to a CR7 display 7. Here, pattern memory 3 is CR
Character information to be displayed on T7 is stored, and address information and control signals from the DMA controller 4 are sent to bus 2.
2 and 23, the character information is output to the bus 21 and transferred to the VRAM 5 or main memory 2 via the DMA controller 4.

第2図は本発明において重要な役割を果すDMAコント
ローラの内部レジスタ群を示す構成図である。同図によ
れば、CPLJlにより設定される転送モードレジスタ
50が設けられており、その最上位1ビツトはフラグ6
0となっている。
FIG. 2 is a configuration diagram showing a group of internal registers of the DMA controller, which play an important role in the present invention. According to the figure, a transfer mode register 50 is provided which is set by CPLJl, and its most significant 1 bit is flag 6.
It is 0.

このフラグは例えば最も使用頻度の高いメモリ間転送の
場合に立てられるものとする。
This flag is set, for example, in the case of inter-memory transfer, which is the most frequently used transfer.

いま、パターンメモリ3からVRAM5へのDMA転送
が最も頻度の高い転送であるとして第1図を参照して本
発明にかかるDMA転送方法を説明する。なお、第1図
はCPtJ 1が単独でまたはDMAコントローラ4に
対して行う処理を表わしたフローチャートである。
The DMA transfer method according to the present invention will now be described with reference to FIG. 1, assuming that DMA transfer from the pattern memory 3 to the VRAM 5 is the most frequent transfer. Incidentally, FIG. 1 is a flowchart showing the processing performed by the CPtJ 1 alone or with respect to the DMA controller 4.

まず、CPLllはDMAコントローラ4に対してバス
11.12.13を通じて最初のDMA転送のために必
要なパラメータをすべて転送モードレジスタ50に設定
する(ステップ101)。このパラメータとしては前述
したように、ソースアドレス、デスティネーションアド
レス、くり返し転送回数、送受信倍率等である。このと
きの転送がパターンメモリ3からVRAM5への転送で
ある場合には、フラグ60を立て、すなわち1″とげる
First, CPLll sets all parameters necessary for the first DMA transfer to the DMA controller 4 through the bus 11, 12, 13 in the transfer mode register 50 (step 101). As described above, these parameters include the source address, destination address, number of repeated transfers, transmission/reception magnification, and the like. If the transfer at this time is from the pattern memory 3 to the VRAM 5, the flag 60 is set, that is, it is set to 1''.

パラメータ設定が終了した後、CPU1はDMAコント
ローラ4に対して起動信号を出力し、DMA転送が開始
され、以降はDMAコントローラ4が転送動作を制御す
る(ステップ102)。
After the parameter setting is completed, the CPU 1 outputs an activation signal to the DMA controller 4, and DMA transfer is started. From then on, the DMA controller 4 controls the transfer operation (step 102).

この転送が終了後、外部からの要求等に基づいて次の転
送のためのパラメータ算出をCPIJlが行う(ステッ
プ103)。
After this transfer is completed, CPIJl calculates parameters for the next transfer based on an external request or the like (step 103).

次にCPU 1はフラグ60の状態をチエツクする(ス
テップ104)。フラグが立っていない場合には最も頻
度の高い転送ではないため全部のパラメータを転送モー
ドレジスタ50に再セットする(ステップ106)が、
フラグが立っている場合には最も頻度の高い転送である
ことが判明するのでパラメータの設定はソースアドレス
、デスティネーションアドレスのみとする(ステップ1
05)。これにより不要なパラメータの設定をする必要
がなくなり、パラメータ設定時間は数分の1となり、C
PUの占有時間も短縮される。
Next, CPU 1 checks the state of flag 60 (step 104). If the flag is not set, this is not the most frequent transfer, so all parameters are reset in the transfer mode register 50 (step 106).
If the flag is set, it is known that the transfer is the most frequent, so set the parameters only for the source address and destination address (Step 1).
05). This eliminates the need to set unnecessary parameters, reduces parameter setting time to a fraction of the time, and
The PU occupation time is also reduced.

パラメータ設定後再び転送を開始するためにCPU1は
DMA4に対して起動をかけ(ステップ107) 、転
送が行われる。
After setting the parameters, the CPU 1 activates the DMA 4 to start the transfer again (step 107), and the transfer is performed.

以下転送終了を確認しながらくステップ108)、終了
までステップ103からステップ108をくり返すこと
になる。
After confirming the completion of the transfer (step 108), steps 103 to 108 are repeated until the transfer is completed.

以上の実施例ではフラグを1ビツトとして最も使用頻度
の高いメモリ間の転送でフラグを立てるようにしている
が、フラグのビット数を複数とすれば転送状態(種類)
としていくつかを識別することができ、パラメータ設定
をより簡略化することができる。
In the above embodiment, the flag is set as one bit and the flag is set for the most frequently used transfer between memories, but if the number of flag bits is multiple, the transfer status (type)
As a result, parameter settings can be simplified.

なお、実施例においては転送モードレジスタがDMAコ
ントローラ4内に存在していたが、必ずしもその必要は
なく、例えば主メモリ2の中に存在するようにしてもよ
い。
In the embodiment, the transfer mode register exists in the DMA controller 4, but it is not necessarily necessary, and may exist in the main memory 2, for example.

以上実施例にもとづいて詳細に説明したように、本発明
によれば特定の転送状態をフラグにもとづいて検出し、
必要なパラメータのみを次の転送時にセットするように
しているので、不要なパラメータのセットのための時間
を節約でき、処理速度の向上を図ることができる。また
、パラメータセットのためにCPLJが占有される時間
が減少するため、特にセルチタスクで動作しているシス
テム等において処理系全体の速度向上を図ることができ
る。
As described above in detail based on the embodiments, according to the present invention, a specific transfer state is detected based on a flag,
Since only necessary parameters are set during the next transfer, time for setting unnecessary parameters can be saved and processing speed can be improved. Furthermore, since the time occupied by CPLJ for parameter setting is reduced, the speed of the entire processing system can be improved, especially in systems operating on cell tasks.

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

第1図は本発明における動作を示すフローチャート、第
2図は転送モードレジスタとフラグを示す説明図、第3
図は本発明を適用すべきシステムを示す系統図である。 1・・・CPU、2・・・主メモリ、3・・・パターン
メモリ、4・・・DMAコントローラ、5・・・VRA
M。 50・・・転送モードレジスタ、60・・・フラグ。
Figure 1 is a flowchart showing the operation of the present invention, Figure 2 is an explanatory diagram showing the transfer mode register and flags, and Figure 3 is an explanatory diagram showing the transfer mode register and flags.
The figure is a system diagram showing a system to which the present invention is applied. 1... CPU, 2... Main memory, 3... Pattern memory, 4... DMA controller, 5... VRA
M. 50...Transfer mode register, 60...Flag.

Claims (1)

【特許請求の範囲】 1、メモリ間の情報転送をDMAコントローラにより直
接行うDMA転送方法において、転送制御用パラメータ
をセットするための転送モードレジスタに並設されたフ
ラグに特定の転送状態をセットし、次の転送開始時には
前記フラグの内容に応じて必要なパラメータのみをセッ
トするようにしたことを特徴とするDMA転送方法。 2、フラグにセットされる転送状態が使用頻度の高いメ
モリ間の転送を表わしていることを特徴とする特許請求
の範囲第1項記載のDMA転送方法。 3、必要なパラメータがソースアドレスおよびデスティ
ネーションアドレスである特許請求の範囲第1項記載の
DMA転送方法。 4、転送モードレジスタがDMAコントローラ内にある
ことを特徴とする特許請求の範囲第1項記載のDMA転
送方法。 5、転送モードレジスタがメインメモリ内にあることを
特徴とする特許請求の範囲第1項記載のDMA転送方法
[Claims] 1. In a DMA transfer method in which information is transferred directly between memories by a DMA controller, a specific transfer state is set in a flag arranged in parallel in a transfer mode register for setting transfer control parameters. . A DMA transfer method characterized in that only necessary parameters are set according to the contents of the flag at the start of the next transfer. 2. The DMA transfer method according to claim 1, wherein the transfer state set in the flag represents transfer between frequently used memories. 3. The DMA transfer method according to claim 1, wherein the necessary parameters are a source address and a destination address. 4. The DMA transfer method according to claim 1, wherein the transfer mode register is located within the DMA controller. 5. The DMA transfer method according to claim 1, wherein the transfer mode register is located in the main memory.
JP18089186A 1986-07-31 1986-07-31 Dma transferring method Pending JPS6336465A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18089186A JPS6336465A (en) 1986-07-31 1986-07-31 Dma transferring method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18089186A JPS6336465A (en) 1986-07-31 1986-07-31 Dma transferring method

Publications (1)

Publication Number Publication Date
JPS6336465A true JPS6336465A (en) 1988-02-17

Family

ID=16091134

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18089186A Pending JPS6336465A (en) 1986-07-31 1986-07-31 Dma transferring method

Country Status (1)

Country Link
JP (1) JPS6336465A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0332151A2 (en) * 1988-03-08 1989-09-13 Fujitsu Limited Direct memory access controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0332151A2 (en) * 1988-03-08 1989-09-13 Fujitsu Limited Direct memory access controller

Similar Documents

Publication Publication Date Title
EP0458304B1 (en) Direct memory access transfer controller and use
JPS61196326A (en) Priority processing system
JPS6336465A (en) Dma transferring method
US20050223130A1 (en) Data transfer between an external data source and a memory associated with a data processor
JPS6332298B2 (en)
JP3496294B2 (en) Serial data transfer device
JP3399776B2 (en) Computer and method for transferring peripheral device control data in computer
JP2003186666A (en) Microcomputer and dma control circuit
JPH02114294A (en) Graphic display device
JPH06110653A (en) Memory system and memory control method using the same
JPS6151258A (en) Inter-controller interface
JPS6340955A (en) Direct memory access controller
JPH03288205A (en) Programmable controller system
JPH05282243A (en) Bus master device and electronic equipment using the same
JP2003022247A (en) Semiconductor device
JPH08161253A (en) Dma control method and dma controller
JPS61107460A (en) Multiprocessor system
JPH01134653A (en) Priority control system for common bus
JPS62102331A (en) Printing control system
JPS63245549A (en) Bus controller
JPH0786828B2 (en) Remote control method
JPH0323942B2 (en)
JPH0195350A (en) System for controlling data transferring
JPH01108665A (en) Dma transfer control system
JPH03246654A (en) Method for controlling data transfer