JPH02110758A - Dma transfer system - Google Patents

Dma transfer system

Info

Publication number
JPH02110758A
JPH02110758A JP26480888A JP26480888A JPH02110758A JP H02110758 A JPH02110758 A JP H02110758A JP 26480888 A JP26480888 A JP 26480888A JP 26480888 A JP26480888 A JP 26480888A JP H02110758 A JPH02110758 A JP H02110758A
Authority
JP
Japan
Prior art keywords
address
transfer
dma
cpu
data
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
JP26480888A
Other languages
Japanese (ja)
Inventor
Katsuyuki Tada
多田 勝之
Koji Maki
牧 幸治
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 JP26480888A priority Critical patent/JPH02110758A/en
Publication of JPH02110758A publication Critical patent/JPH02110758A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain DMA transfer even when the address of the memory area of a transfer source is not continuous converting a pseudo address for a DMA controller to a real address for a CPU, and making access to the memory area composed of a discontinuous address. CONSTITUTION:An address converting part 4 converts the continuous pseudo address given to a direct memory access (DMA) controller 2 to a real address for plural memory areas M1 to Mn having the discontinuous address given to a CPU 1. At a elector 5, the pseudo address and the real address are respectively selected by a selecting signal SEL with the DMA controller 2 and the CPU 1 and the data transfer is carried out. Thus, even when the address of the memory areas M1 to Mn of the transfer source is discontinuous, the DMA transfer can be performed.

Description

【発明の詳細な説明】 〔概  要〕 CPUとDMAコントローラが共通バスを使用して記憶
領域間でデータをDMA転送する方式に関し、 転送元の記憶領域のアドレスが不連続であってもDMA
転送を行うことができる方式を実現することを目的とし
、 該DMAコントローラに与えられた連続した擬似アドレ
スを該CPUに与えられたアドレスが連続していない複
数の記憶領域のための実アドレスに変換するアドレス変
換部と、該擬似アドレスと実アドレスとをそれぞれ該D
MAコントローラと該CPUの選択信号により選択して
データ転送を行うセレクタとで構成する。
[Detailed Description of the Invention] [Summary] Regarding a method in which a CPU and a DMA controller use a common bus to transfer data between storage areas by DMA, even if the addresses of the transfer source storage areas are discontinuous,
The purpose is to realize a method that can perform transfer, and converts consecutive pseudo addresses given to the DMA controller into real addresses for multiple storage areas where addresses given to the CPU are not consecutive. an address conversion unit that converts the pseudo address and the real address into the D
It consists of an MA controller and a selector that selects and transfers data based on a selection signal from the CPU.

〔産業上の利用分野〕[Industrial application field]

本発明は、DMA転送方式に関し、特にCPUとDMA
 (ダイレクト・メモリ・アクセス)コントローラが共
通バスを使用して記憶領域間でデー夕をDMA転送する
方式に関するものである。
The present invention relates to a DMA transfer method, and particularly relates to a CPU and a DMA transfer method.
(Direct Memory Access) This relates to a method in which a controller uses a common bus to DMA transfer data between storage areas.

CPUは処理する情報量が増えるにつれて、その処理速
度が低下するので、これを防ぐためにDMAによるデー
タ転送を行うことによりCPUの処理負荷の軽減を図る
ことが必要になっている。
As the amount of information processed by a CPU increases, its processing speed decreases, so to prevent this, it is necessary to reduce the processing load on the CPU by transferring data using DMA.

〔従来の技術〕[Conventional technology]

従来から一般的なりMA転送方式とは、第4図に示すよ
うに、データ転送元のメモリ又はレジスタ等の記憶領域
11の先頭アドレスと、データ転送先の記憶領域12の
先頭アドレスと、転送するデータ数とを予めCPUIと
DMAコントローラ2から成るMPU (マイコン制御
部)10のプログラムに与えておくことにより、転送元
の記憶領域11のデータを共通バスBを介して上記先頭
アドレスから読み出して転送データ数分だけ転送先記憶
領域12の先頭アドレスから順に書き込んで行く方式で
ある。
As shown in FIG. 4, the traditional MA transfer method, which has been commonly used, transfers the start address of a storage area 11 such as a memory or register as a data transfer source and the start address of a storage area 12 as a data transfer destination. By giving the number of data in advance to the program of the MPU (microcomputer control unit) 10 consisting of the CPUI and the DMA controller 2, the data in the transfer source storage area 11 is read from the above-mentioned start address via the common bus B and transferred. This is a method in which data is sequentially written from the first address of the transfer destination storage area 12 by the number of data.

このようにすることにより、データ転送はDMAコント
ローラ2だけで行われることになり、その分、CPUI
の処理負荷が軽減され、CPUI自体の処理能力を向上
させることができる。
By doing this, data transfer is performed only by the DMA controller 2, and the CPU
The processing load of the CPU is reduced, and the processing capacity of the CPU itself can be improved.

[発明が解決しようとする課題] 上記のように、DMA転送を行う場合、記憶領域のアド
レスは連続している必要がある。
[Problems to be Solved by the Invention] As described above, when performing DMA transfer, addresses of storage areas need to be continuous.

このため、第5図に示すように記憶領域11が例えばL
SI中においてM1〜M、に分離されている場合、第6
図に示すように、これらの記憶領域M1〜M7の各々の
一部のデータの(斜線部)を転送先記憶領域12に順に
書き込む場合には、第7図に示すようにCPUIが各記
憶領域M1〜Mnの各データ■のアドレス発生、読出、
及び転送先への書込を行わなければならず、DMAコン
トローラ2を使用したDMA転送を行うことができない
という問題点があった。
For this reason, as shown in FIG.
If it is separated into M1 to M in SI, the sixth
As shown in the figure, when writing part of the data (hatched portion) in each of these storage areas M1 to M7 in order to the transfer destination storage area 12, the CPU writes each storage area as shown in FIG. Address generation and reading of each data M1 to Mn,
There was a problem in that DMA transfer using the DMA controller 2 could not be performed because the data had to be written to the transfer destination.

従って本発明は、転送元の記憶領域のアドレスが不連続
であってもDMA転送を行うことができる方式を実現す
ることを目的とする。
Therefore, an object of the present invention is to realize a system that allows DMA transfer even if the addresses of the transfer source storage area are discontinuous.

[課題を解決するための手段〕 本発明は上記の目的を達成するため第1図に原理的に示
す如く、DMAコントローラ2に与えられた連続した擬
似アドレスをCPUIに与えられたアドレス不連続の複
数の記憶領域M、〜M7のための実アドレスに変換する
アドレス変換部4と、該擬似アドレスと実アドレスとを
それぞれDMAコントローラ2とCPUIの選択信号S
ELにより選択してデータ転送を行うセレクタ5とを備
えている。
[Means for Solving the Problems] In order to achieve the above object, the present invention, as shown in principle in FIG. An address converter 4 converts the pseudo addresses and real addresses into real addresses for the plurality of storage areas M, to M7, and a selection signal S of the DMA controller 2 and CPUI, respectively.
It is provided with a selector 5 that selects based on EL and transfers data.

〔作   用〕[For production]

第1図において、通常、CPUIが、CPUI及びDM
Aコントローラ2の共通バスを占有して記憶領域M、〜
M7をアクセスする時は選択信号SELによりセレクタ
5が共通バスBを共通領域M1〜Mfiに接続し、正常
なアドレス空間でアクセスできるようにする。
In FIG. 1, normally the CPUI is the CPUI and the DM
The common bus of the A controller 2 is occupied to store the storage area M, ~
When accessing M7, the selector 5 connects the common bus B to the common areas M1 to Mfi in response to the selection signal SEL, so that access can be made in a normal address space.

また、DMAコントローラ2が共通バスBを占有する時
は、DMAコントローラ2に与えられた連続した擬似ア
ドレスがアドレス変換部4に入力される。アドレス変換
部4では、入力した擬似アドレスに対応した記憶領域M
1〜Mllをアクセスするための実アドレスに変換して
セレクタ5へ出力する。セレクタ5では、DMAコント
ローラ2が共通バスBを占有していることを選択信号S
ELが示しているので、アドレス変換部4からの実アド
レスを記憶領域M、〜Mfiに対して出力することによ
り、DMAコントローラ2では連続的にアドレスを出力
しているにもかかわらず、転送元の記憶領域M、〜M、
、をアクセスする場合は不連続な別アドレスとして与え
られてDMAデータ転送が実現できる。
Furthermore, when the DMA controller 2 occupies the common bus B, consecutive pseudo addresses given to the DMA controller 2 are input to the address converter 4. In the address conversion unit 4, the storage area M corresponding to the input pseudo address is
1 to Mll are converted into real addresses for access and output to the selector 5. The selector 5 outputs a selection signal S indicating that the DMA controller 2 occupies the common bus B.
Since EL indicates, by outputting the real address from the address conversion unit 4 to the storage areas M, ~Mfi, the transfer source is Storage area M, ~M,
, can be given as separate, discontinuous addresses to realize DMA data transfer.

[実 施 例] 第2図は、第1図に示した本発明のDMA転送方式に用
いられる制御アルゴリズムの一実施例を示したフローチ
ャート図で、第3図はアドレス変換部4の一実施例を示
している。
[Embodiment] FIG. 2 is a flowchart showing an embodiment of the control algorithm used in the DMA transfer method of the present invention shown in FIG. It shows.

以下、第2図及び第3図を参照して第1図に示した本発
明によるDMA転送方式の動作を説明する。
The operation of the DMA transfer system according to the present invention shown in FIG. 1 will be described below with reference to FIGS. 2 and 3.

まず、CPU 1は擬似アドレスとしての転送元アドレ
ス、転送先アドレス及び転送データ長をDMAコン1−
ローラ2にセットしく第2図のステップ5l−33)、
次いでDMAコントローラ2を起動する(同ステップS
4)。この時にMPUl0は現在DMAコントローラ2
を選択している旨の選択信号SELを発生してセレクタ
5に与え、ROMで構成されるアドレス変換部4からの
出力アドレスを選択する。
First, the CPU 1 sends the transfer source address, transfer destination address, and transfer data length as pseudo addresses to the DMA controller 1-1.
Set it on roller 2 (step 5l-33) in Figure 2.
Next, start the DMA controller 2 (step S
4). At this time, MPU10 is currently the DMA controller 2.
A selection signal SEL indicating that the address is selected is generated and applied to the selector 5, and the output address from the address conversion section 4 constituted by a ROM is selected.

この後、DMAコントローラ2は上記の転送元アドレス
AAAA、をアドレス変換部4に送る(同ステップS5
)。すると、アドレス変換部4では第3図に示すように
転送元アドレスAAAA。
After that, the DMA controller 2 sends the above transfer source address AAAA to the address converter 4 (step S5
). Then, the address converter 4 converts the transfer source address AAAA as shown in FIG.

を入力データとして該転送元アドレスAAAA。The transfer source address AAAA is input data.

に対応する記憶領域M1〜Mアの例えば記憶領域M2の
転送元アドレスBBBB□を実アドレスデータとして出
力する。
For example, the transfer source address BBBB□ of the storage area M2 of the storage areas M1 to Ma corresponding to the storage area M2 is output as real address data.

この後、DMAコントローラ2は転送先アドレスDDD
D、を出力してアドレス変換部4へ送り、アドレス変換
部4ではこれをDPRAM等の転送先記憶領域3の実ア
ドレスEEEEIIとして出力する。
After this, the DMA controller 2 transfers the transfer destination address DDD.
D, and sends it to the address converter 4, which outputs it as the real address EEEEII of the transfer destination storage area 3 such as DPRAM.

従って、転送元アドレスBBBB、によって指定された
記憶領域M2のデータが読み出されて記憶領域3の転送
先アドレスEEEE++に書き込まれる(同ステップ3
6)。
Therefore, the data in the storage area M2 specified by the transfer source address BBBB is read out and written to the transfer destination address EEEE++ in the storage area 3 (step 3).
6).

上記のステップS5、S6は上記の転送データ長0分だ
け行われ(同ステップS7)、転送が終了する前はステ
ップS5、S6を繰り返して実行する。即ち、ステップ
S5の2回目には擬似転送元アドレス(AAAA+ 1
 )□がアドレス変換部4に与えられて実転送元アドレ
スCCCC++が出力され、ステップS6の2回目では
転送先アドレス(DDDD+1)□がアドレス変換部4
に与えられて実転送先アドレスFFFF□が出力される
ことになり、これを第2図の表のようにn回実行するこ
とにより上記データ長の転送が完了する。
The above steps S5 and S6 are performed for the transfer data length 0 (step S7), and steps S5 and S6 are repeatedly performed before the transfer ends. That is, in the second step S5, the pseudo transfer source address (AAAA+1
) □ is given to the address conversion unit 4 and the actual transfer source address CCCC++ is output, and in the second step S6, the transfer destination address (DDDD+1) □ is given to the address conversion unit 4.
The actual transfer destination address FFFF□ is outputted, and by executing this process n times as shown in the table of FIG. 2, the transfer of the above data length is completed.

このようにして記憶領域M1〜M7の所望のアドレスの
データを記憶領域3にDMA転送することができる。
In this way, data at a desired address in the storage areas M1 to M7 can be DMA-transferred to the storage area 3.

尚、上記の実施例における記憶領域はメモリ又はレジス
タを用いることができる。また、転送先の記憶領域には
先頭アドレスから順に書き込んだが、その他、不連続に
書き込む方式も採ることができる。
Note that a memory or a register can be used as the storage area in the above embodiment. Further, although the data is written in the transfer destination storage area sequentially starting from the first address, other methods may also be used in which data is written discontinuously.

〔発明の効果〕〔Effect of the invention〕

このように、本発明のDMA転送方式によれば、DMA
コントローラのための擬似アドレスをCPUのための実
アドレスに変換して不連続なアドレスで構成された記憶
領域をアクセス出来るように構成したので、DMA転送
が可能となるため、データ転送速度が速くなるとともに
、データ転送はDMAコントローラのみで行われるので
、CPUの処理負荷が軽減され、CPUの処理能力が向
上する。
As described above, according to the DMA transfer method of the present invention, the DMA
Since the pseudo address for the controller is converted to a real address for the CPU and the storage area made up of discontinuous addresses can be accessed, DMA transfer is possible, resulting in faster data transfer speeds. At the same time, since data transfer is performed only by the DMA controller, the processing load on the CPU is reduced and the processing capacity of the CPU is improved.

【図面の簡単な説明】 第1図は本発明に係るDMA転送方式を原理的に示すブ
ロック図、 第2図は本発明に係るDMA転送方式の一実施例を示す
フローチャート図、 第3図は本発明に用いられるアドレス変換部の一実施例
を示す図、 第4図はDMA転送方式の一般的な従来例を説明するた
めの概略図、 第5図乃至第7図は不連続なアドレスについてのデータ
転送を説明するための図、である。 第1図において、 ■・・・CPU。 2・・・DMAコントローラ、 M、〜M、、、3・・・記憶領域、 4・・・アドレス変換部、 5・・・セレクタ。 図中、同一符号は同−又は相当部分を示す。
[Brief Description of the Drawings] Fig. 1 is a block diagram showing the principle of the DMA transfer method according to the present invention, Fig. 2 is a flowchart showing an embodiment of the DMA transfer method according to the present invention, and Fig. 3 is a block diagram showing the principle of the DMA transfer method according to the present invention. A diagram showing an embodiment of the address conversion unit used in the present invention. FIG. 4 is a schematic diagram for explaining a general conventional example of a DMA transfer method. FIGS. 5 to 7 are about discontinuous addresses. FIG. 2 is a diagram for explaining data transfer of FIG. In FIG. 1, ■...CPU. 2... DMA controller, M, ~M, , 3... Storage area, 4... Address conversion unit, 5... Selector. In the figures, the same reference numerals indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】 CPU(1)及びDMAコントローラ(2)によりアド
レスが連続していない複数の記憶領域(M_1〜M_n
)から別の記憶領域(3)へ共通バス(B)を介してD
MA転送する方式であって、 該DMAコントローラ(2)に与えられた連続した擬似
アドレスを該CPU(1)に与えられた該記憶領域(M
_1〜M_n)のための実アドレスに変換するアドレス
変換部(4)と、 該擬似アドレスと実アドレスとをそれぞれ該DMAコン
トローラ(2)と該CPU(1)の選択信号(SEL)
により選択してデータ転送を行うセレクタ(5)と、を
備えたことを特徴とするDMA転送方式。
[Claims] The CPU (1) and the DMA controller (2) store a plurality of storage areas (M_1 to M_n) whose addresses are not consecutive.
) to another storage area (3) via a common bus (B)
This is a method of MA transfer, in which continuous pseudo addresses given to the DMA controller (2) are transferred to the storage area (M
an address conversion unit (4) that converts the pseudo address and the real address into real addresses for the DMA controller (2) and the CPU (1), respectively.
A DMA transfer method comprising: a selector (5) that selects and transfers data.
JP26480888A 1988-10-20 1988-10-20 Dma transfer system Pending JPH02110758A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26480888A JPH02110758A (en) 1988-10-20 1988-10-20 Dma transfer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26480888A JPH02110758A (en) 1988-10-20 1988-10-20 Dma transfer system

Publications (1)

Publication Number Publication Date
JPH02110758A true JPH02110758A (en) 1990-04-23

Family

ID=17408503

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26480888A Pending JPH02110758A (en) 1988-10-20 1988-10-20 Dma transfer system

Country Status (1)

Country Link
JP (1) JPH02110758A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006251916A (en) * 2005-03-08 2006-09-21 Fujitsu Ltd Dma transfer system and dma transfer method
JP2007188357A (en) * 2006-01-13 2007-07-26 Fujitsu Ltd Data transfer device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006251916A (en) * 2005-03-08 2006-09-21 Fujitsu Ltd Dma transfer system and dma transfer method
JP2007188357A (en) * 2006-01-13 2007-07-26 Fujitsu Ltd Data transfer device

Similar Documents

Publication Publication Date Title
JPS6027964A (en) Memory access control circuit
JP2002055875A (en) Memory controller
JPH02110758A (en) Dma transfer system
JPH09190378A (en) Memory address control circuit
JPH05197619A (en) Memory control circuit for multi-cpu
JPS5962959A (en) Storage device
JP2527814B2 (en) Instruction processing system
JPS63100550A (en) Controlling system for bit map memory
JP2845746B2 (en) Micro program controller
KR0168973B1 (en) Rom accessing method and its apparatus
JP3429880B2 (en) Memory device and memory access method
JPS6143367A (en) Register control system
JPH03260750A (en) Dma transfer system
JPH01134544A (en) Memory access system
JPH07160575A (en) Memory system
JPS6336021B2 (en)
JPH04372039A (en) Dma transfer system
JPS6126699B2 (en)
JPS61112270A (en) Byte converter
JPS60247764A (en) Memory address control system
JPH0370052A (en) Address translation circuit, memory controller, information processor, and recorder
JPS62151028A (en) Data converting device
JPS5913766B2 (en) Address control method
JPS5856885B2 (en) Address control method
JPH04312143A (en) Memory device