JPH0561813A - Data transfer system - Google Patents

Data transfer system

Info

Publication number
JPH0561813A
JPH0561813A JP22381091A JP22381091A JPH0561813A JP H0561813 A JPH0561813 A JP H0561813A JP 22381091 A JP22381091 A JP 22381091A JP 22381091 A JP22381091 A JP 22381091A JP H0561813 A JPH0561813 A JP H0561813A
Authority
JP
Japan
Prior art keywords
data
memory
control processor
dma controller
circuit
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
JP22381091A
Other languages
Japanese (ja)
Inventor
Kazuhide Hosaka
和秀 保坂
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 JP22381091A priority Critical patent/JPH0561813A/en
Publication of JPH0561813A publication Critical patent/JPH0561813A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To speed up a data transfer processing by permitting a DMA controller to search/extract all storage circuits storing input data when the DMA controller is DMA-started for once so as to transfer data in order. CONSTITUTION:An interruption signal 33 informs a control processor 1 that input data is stored in either one of the storage circuits 10-13, and the control processor 1 starts the DMA controller. The DMA controller 3 extracts (searches) all the storage circuits 10-13 storing input data. All the extracted storage circuits 10-13 sequentially transfer input data which the circuits store to a memory 2. Thus, DMA start by the control processor 1 can be reduced to one-time. Thus, the search time, the DMA start time and the transfer destination address calculation time of the storage circuits 10-13 storing effective data can be reduced.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はデータ転送方式に関し、
特に複数の外部装置に接続されて、外部装置から転送さ
れて来るデータをDMAコントローラにより制御するデ
ータ処理装置のデータ転送方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data transfer system,
In particular, the present invention relates to a data transfer system of a data processing device which is connected to a plurality of external devices and controls data transferred from the external devices by a DMA controller.

【0002】[0002]

【従来の技術】従来のデータ転送方式は、外部からのデ
ータを一時格納する記憶回路を複数個有し、その記憶回
路と内部メモリとの間でDMA転送をする場合に、デー
タ転送の順序を決めるために、制御プロセッサが有効デ
ータを格納している記憶回路をサーチし、その結果に基
づいてDMAコントローラに特定の記憶回路へのデータ
転送を指示している。したがって、1回のDMA転送
は、1つの記憶回路とメモリとの間でのデータ転送が基
本であり、複数の記憶回路からメモリにDMA転送した
い場合には、その記憶回路の数だけDMA転送を行わな
ければならず、そのときに、制御プロセッサでは、DM
Aを起動する前に転送先アドレスの計算等が必要となっ
ている。
2. Description of the Related Art A conventional data transfer system has a plurality of storage circuits for temporarily storing data from the outside, and when performing DMA transfer between the storage circuits and an internal memory, the order of data transfer is set. To determine, the control processor searches the memory circuit storing valid data and, based on the result, instructs the DMA controller to transfer the data to the specific memory circuit. Therefore, one DMA transfer is basically a data transfer between one memory circuit and a memory, and when it is desired to perform a DMA transfer from a plurality of memory circuits to the memory, the DMA transfer is performed by the number of the memory circuits. Must be done at that time, in the control processor, DM
It is necessary to calculate the transfer destination address before activating A.

【0003】[0003]

【発明が解決しようとする課題】上述した従来のデータ
転送方式は、複数の記憶回路からメモリにDMA転送し
たいときに、その記憶回路の数だけDMA転送を行わな
ければならないので、制御プロセッサによる記憶回路の
サーチ、DMAコントローラの設定、DMAの起動処理
等に時間がかかり、性能の低下を招くという欠点を有し
ている。
In the above-mentioned conventional data transfer method, when it is desired to perform a DMA transfer from a plurality of storage circuits to a memory, it is necessary to perform the DMA transfer by the number of the storage circuits. It has a drawback that it takes time to search a circuit, set a DMA controller, and perform a DMA start-up process, resulting in deterioration of performance.

【0004】[0004]

【課題を解決するための手段】第1の発明のデータ転送
方式は、制御プロセッサと、前記制御プロセッサにより
アクセス可能なメモリと、外部から入力されたデータを
一時格納する複数の記憶回路と、前記メモリおよび複数
の前記記憶回路の間で行うデータ転送を制御するDMA
コントローラとを含むデータ処理装置のデータ転送方式
において、(A)少なくとも1つの前記記憶回路に外部
からの入力データが格納されたことを前記制御プロセッ
サに認識させる第1の制御手段と、(B)入力データが
格納された前記記憶回路から前記メモリにデータ転送を
するために、前記第1の制御手段により入力データが格
納されたことを認識した前記制御プロセッサから前記D
MAコントローラを起動する第2の制御手段と、(C)
前記DMAコントローラで、外部からのデータが格納さ
れている前記記憶回路をサーチするサーチ手段と、
(D)1つの前記記憶回路から前記メモリへのデータ転
送が終了したときに、前記サーチ手段によって指定され
て、外部からのデータを格納している他の前記記憶回路
から引続き前記メモリへデータ転送を行う第3の制御手
段と、で複数の前記記憶回路に格納されているデータを
次々に前記メモリに転送することにより構成されてい
る。
A data transfer system of a first invention is a control processor, a memory accessible by the control processor, a plurality of storage circuits for temporarily storing data inputted from the outside, and DMA for controlling data transfer between a memory and a plurality of said memory circuits
In a data transfer system of a data processing device including a controller, (A) first control means for causing the control processor to recognize that externally input data is stored in at least one of the storage circuits; In order to transfer the data from the memory circuit storing the input data to the memory, the control processor recognizing that the input data has been stored by the first control means outputs the D
Second control means for activating the MA controller, and (C)
Search means for searching the memory circuit in which data from the outside is stored in the DMA controller;
(D) When the data transfer from one of the memory circuits to the memory is completed, the data is continuously transferred from the other memory circuit, which is designated by the search means and stores external data, to the memory. And a third control means for carrying out the above, and successively transferring the data stored in the plurality of storage circuits to the memory.

【0005】また、第2の発明のデータ転送方式は、制
御プロセッサと、前記制御プロセッサによりアクセス可
能なメモリと、外部から入力されたデータを一時格納す
る複数の記憶回路と、前記メモリおよび複数の前記記憶
回路の間で行うデータ転送を制御するDMAコントロー
ラとを含むデータ処理装置のデータ転送方式において、
(A)少なくとも1つの前記記憶回路に外部からの入力
データが格納されたことを前記制御プロセッサに通知
し、(B)通知された前記制御プロセッサが、入力デー
タが格納された前記記憶回路から前記メモリにデータ転
送するために、前記DMAコントローラを起動し、
(C)起動された前記DMAコントローラが、そのとき
に入力データが格納されている全ての前記記憶回路を抽
出し、(D)抽出された全ての前記記憶回路が、それぞ
れに格納している入力データを前記DMAコントローラ
の制御により順次に前記メモリへ転送する、ことにより
構成されている。
In the data transfer system of the second invention, a control processor, a memory accessible by the control processor, a plurality of memory circuits for temporarily storing data inputted from the outside, the memory and a plurality of memory circuits. In a data transfer method of a data processing device including a DMA controller for controlling data transfer between the storage circuits,
(A) Notifying the control processor that externally input data is stored in at least one of the storage circuits, and (B) notifying the control processor from the storage circuit in which the input data is stored. Activating the DMA controller to transfer data to memory,
(C) The activated DMA controller extracts all the storage circuits in which input data is stored at that time, and (D) the input stored in each of the extracted storage circuits. The data is sequentially transferred to the memory under the control of the DMA controller.

【0006】さらに、第3の発明のデータ転送方式は、
制御プロセッサと、前記制御プロセッサによりアクセス
可能なメモリと、外部から入力されたデータを一時格納
する複数の記憶回路と、前記メモリおよび複数の前記記
憶回路の間で行うデータ転送を制御するDMAコントロ
ーラとを含むデータ処理装置のデータ転送方式におい
て、(A)少なくとも1つの前記記憶回路に外部からの
入力データが格納されたことを割込み信号により前記制
御プロセッサに通知する割込み信号発生回路と、(B)
前記割込み信号発生回路からの割込み信号を検出した前
記制御プロセッサから前記DMAコントローラを起動す
るDMA起動回路と、(C)前記DMA起動回路から起
動された前記DMAコントローラで、そのときに入力デ
ータが格納されている全ての前記記憶回路を抽出するサ
ーチ回路と、(D)前記サーチ回路で抽出された全ての
前記記憶回路に対して、それぞれに格納している入力デ
ータを順次に前記メモリへ転送させる前記DMAコント
ローラの出力イネーブル信号生成回路と、を備えて構成
されている。
Further, the data transfer system of the third invention is
A control processor, a memory accessible by the control processor, a plurality of storage circuits for temporarily storing data input from the outside, and a DMA controller for controlling data transfer between the memory and the plurality of storage circuits. In a data transfer system of a data processing device including: (A) an interrupt signal generation circuit for notifying the control processor with an interrupt signal that externally input data is stored in at least one of the storage circuits;
Input data is stored at that time by a DMA activation circuit that activates the DMA controller from the control processor that has detected an interrupt signal from the interrupt signal generation circuit, and (C) the DMA controller activated from the DMA activation circuit. The input data stored in each of the search circuits for extracting all the storage circuits that are stored, and (D) all the storage circuits that are extracted by the search circuit, are sequentially transferred to the memory. And an output enable signal generation circuit of the DMA controller.

【0007】[0007]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0008】図1は、本発明のデータ転送方式の一実施
例を示すブロック図である。本実施例のデータ処理装置
は、図1に示すように、内部バスであるアドレスバス4
およびデータバス5を有して、この両バスに制御プロセ
ッサ1、メモリ2、DMAコントローラ3およびFIF
Oにより外部からのデータを一時格納する4つの記憶回
路10,11,12,13を接続している。
FIG. 1 is a block diagram showing an embodiment of the data transfer system of the present invention. As shown in FIG. 1, the data processing apparatus of this embodiment has an address bus 4 which is an internal bus.
And a data bus 5, and a control processor 1, a memory 2, a DMA controller 3 and a FIF are provided on both buses.
Four storage circuits 10, 11, 12, 13 for temporarily storing external data are connected by O.

【0009】そして、制御プロセッサ1は、アドレスバ
ス4およびデータバス5を介して、メモリ2に対するア
クセスを行うことができ、記憶回路10,11,12,
13も、DMAコントローラ3による制御によって、ア
ドレスバス4およびデータバス5を介して、メモリ2に
データ転送を行うことができる。なお、制御プロセッサ
1とDMAコントローラ3との間では、内部バスの調停
が必要になる。しかし、図1には、簡単のためにこの調
停回路は図示していない。DMAコントローラ3は、そ
の調停回路に対してバス要求信号(図示せず)を出力
し、その調停回路からバス許可信号(図示せず)を受け
取って、アドレスバス4およびデータバス5を使用す
る。
The control processor 1 can access the memory 2 via the address bus 4 and the data bus 5, and the memory circuits 10, 11, 12,
13 can also transfer data to the memory 2 via the address bus 4 and the data bus 5 under the control of the DMA controller 3. It is necessary to arbitrate the internal bus between the control processor 1 and the DMA controller 3. However, this arbitration circuit is not shown in FIG. 1 for simplicity. The DMA controller 3 outputs a bus request signal (not shown) to the arbitration circuit, receives a bus permission signal (not shown) from the arbitration circuit, and uses the address bus 4 and the data bus 5.

【0010】一方、記憶回路10,11,12,13
は、それぞれデータ有効信号100,110,120,
130を出力し、DMAコントローラ3に送っている。
データ有効信号100,110,120,130は、外
部からのデータが各々の記憶回路10,11,12,1
3に格納されたときにオンにセットされ、格納されたデ
ータがすべてメモリ2に転送されて、空になるとオフに
リセットされる。
On the other hand, the memory circuits 10, 11, 12, 13
Are data valid signals 100, 110, 120,
It outputs 130 and sends it to the DMA controller 3.
The data valid signals 100, 110, 120, 130 are data stored in the storage circuits 10, 11, 12, 1 respectively.
3 is set to ON when it is stored in the memory 3, all the stored data is transferred to the memory 2, and when it becomes empty, it is reset to OFF.

【0011】また、データ有効信号100,110,1
20,130は、4入力を持つORゲート34に入力さ
れ、割込み信号33となって、制御プロセッサ1に通知
される。つまり、4つの記憶回路10,11,12,1
3の中に、外部から転送されたデータを格納しているも
のが少なくとも1つ存在することを制御プロセッサ1
は、割り込み信号33により知ることができる。制御プ
ロセッサ1は、この割り込み信号33を契機にしてDM
Aコントローラ3に対して、転送先のメモリアドレスの
設定等を行ってDMAを起動する。
Data valid signals 100, 110, 1
20 and 130 are input to the OR gate 34 having four inputs and become the interrupt signal 33, which is notified to the control processor 1. That is, the four storage circuits 10, 11, 12, 1
The control processor 1 confirms that at least one of the data stored in 3 stores the data transferred from the outside.
Can be known by the interrupt signal 33. The control processor 1 uses this interrupt signal 33 as a trigger for DM
The transfer destination memory address is set in the A controller 3 and the DMA is activated.

【0012】他方、DMAコントローラ3は、内部に転
送先のメモリの先頭アドレスを保持するアドレスレジス
タ30、データ有効信号100,110,120,13
0により有効データを格納している記憶回路10,1
1,12,13を検索するサーチ回路31、サーチ回路
31の結果に応じて記憶回路10,11,12,13の
何れかに対する出力イネーブル信号320,321,3
22,323を生成する出力イネーブル信号生成回路3
2を含んでいる。そして、アドレスレジスタ30は、D
MA転送でデータが転送される毎に、保持するアドレス
を自動的に増加させる機能を有している。
On the other hand, the DMA controller 3 internally has an address register 30 which holds the start address of the transfer destination memory, and data valid signals 100, 110, 120 and 13.
Storage circuit 10, 1 storing valid data by 0
A search circuit 31 for searching 1, 12, 13 and output enable signals 320, 321, 3 for any of the memory circuits 10, 11, 12, 13 according to the result of the search circuit 31.
Output enable signal generation circuit 3 for generating 22, 323
Includes 2. Then, the address register 30 is
It has a function of automatically increasing the held address every time data is transferred by MA transfer.

【0013】図2は、本実施例のDMAコントローラ3
内のサーチ回路31とその周辺回路との一例を示す回路
図である。図2に示すように、サーチ回路31は、サー
チ回路31の真理値表からわかるように、イネーブル付
きのプライオリティエンコーダを実現している。そし
て、記憶回路10,11,12,13のサーチは、プラ
イオリティに従って高い方から、記憶回路10,記憶回
路11,記憶回路12,記憶回路13の順番に行われ
る。
FIG. 2 shows the DMA controller 3 of this embodiment.
3 is a circuit diagram showing an example of a search circuit 31 in FIG. As shown in FIG. 2, the search circuit 31 realizes a priority encoder with enable, as can be seen from the truth table of the search circuit 31. Then, the search of the storage circuits 10, 11, 12, and 13 is performed in the order of the storage circuit 10, the storage circuit 11, the storage circuit 12, and the storage circuit 13 from the highest one according to the priority.

【0014】すなわち、サーチ回路31の出力信号31
2は、DMAの起動中を示す信号であり、フリップフロ
ップ50の出力Qの否定値が“0”であり、データ有効
信号100,110,120,130のうち少なくとも
1つが“1”のときに“1”となり、出力イネーブル信
号生成回路32に送られて、記憶回路10,11,1
2,13に対する出力イネーブル信号の出力条件にな
る。また、サーチ回路31の出力信号310,311
は、データ有効信号100,110,120,130を
入力としたプライオリティエンコーダの出力であり、出
力イネーブル信号生成回路32に送られて、記憶回路1
0,11,12,13のセレクト信号として使用され
る。
That is, the output signal 31 of the search circuit 31.
2 is a signal indicating that the DMA is being activated, and when the negative value of the output Q of the flip-flop 50 is "0" and at least one of the data valid signals 100, 110, 120, 130 is "1". It becomes “1” and is sent to the output enable signal generation circuit 32 to be stored in the storage circuits 10, 11, 1.
It becomes the output condition of the output enable signal for 2 and 13. Further, the output signals 310 and 311 of the search circuit 31
Is the output of the priority encoder that receives the data valid signals 100, 110, 120, and 130, and is sent to the output enable signal generating circuit 32 to be stored in the storage circuit 1.
Used as 0, 11, 12, 13 select signals.

【0015】一方、フリップフロップ50は、RSタイ
プのフリップフロップであり、オンのときにDMA転送
を指示してDMAコントローラ3を起動している。な
お、RSタイプのフリップフロップ50の真理値表から
わかるように、フリップフロップ50のオンは、制御プ
ロセッサ1の指示で行われ、オフは、出力信号312の
立ち下がりによるリセット信号で行われている。また、
フリップフロップ51は、Dタイプのフリップフロップ
であり、Dタイプのフリップフロップ51の真理値表か
らわかるように、NORゲート52とともに、フリップ
フロップ50のリセット信号を生成する後縁微分回路を
構成している。
On the other hand, the flip-flop 50 is an RS type flip-flop, and when it is on, it instructs the DMA transfer and activates the DMA controller 3. As can be seen from the truth table of the RS type flip-flop 50, the flip-flop 50 is turned on by the instruction of the control processor 1, and turned off by the reset signal due to the fall of the output signal 312. .. Also,
The flip-flop 51 is a D-type flip-flop, and as can be seen from the truth table of the D-type flip-flop 51, forms a trailing edge differentiating circuit that generates a reset signal for the flip-flop 50 together with the NOR gate 52. There is.

【0016】図3は、本実施例のDMAコントローラ3
内の出力イネーブル信号生成回路32の一例を示す回路
図である。出力イネーブル信号生成回路32は、図3に
示すように、DMA転送の転送元の記憶回路10,1
1,12,13の何れかを指定する出力信号320,3
21,322,323を発生する回路であり、デコーダ
60の真理値表に従って動作することにより、サーチ回
路31からの入力信号310,311が“0”,“0”
のときには、記憶回路10を指定する出力イネーブル信
号320を“1”にし、入力信号310,311が
“0”,“1”のときには、記憶回路11を指定する出
力イネーブル信号321を“1”にし、入力信号31
0,311が“1”,“0”のときには、記憶回路12
を指定する出力イネーブル信号322を“1”にし、入
力信号310,311が“1”,“1”のときには、記
憶回路13を指定する出力イネーブル信号323を
“1”にしている。
FIG. 3 shows the DMA controller 3 of this embodiment.
3 is a circuit diagram showing an example of an output enable signal generation circuit 32 in FIG. As shown in FIG. 3, the output enable signal generation circuit 32 includes the transfer source storage circuits 10 and 1 of the DMA transfer.
Output signals 320, 3 designating any one of 1, 12, 13
21, 322, 323, which operates according to the truth table of the decoder 60, so that the input signals 310, 311 from the search circuit 31 are "0", "0".
When the input signals 310 and 311 are "0" and "1", the output enable signal 320 for designating the memory circuit 10 is set to "1", and the output enable signal 321 for designating the memory circuit 11 is set to "1". , Input signal 31
When 0 and 311 are “1” and “0”, the memory circuit 12
When the input signals 310 and 311 are "1" and "1", the output enable signal 323 designating the memory circuit 13 is set to "1".

【0017】図4は、本実施例のDMAコントローラ3
の動作の一例を示すタイムチャートである。図4によ
り、4つの記憶回路10,11,12,13のうち、記
憶回路11,13に外部から転送されたデータが格納さ
れているケースにおけるDMA転送動作について説明す
る。
FIG. 4 shows the DMA controller 3 of this embodiment.
3 is a time chart showing an example of the operation of FIG. The DMA transfer operation in the case where the data transferred from the outside is stored in the memory circuits 11 and 13 of the four memory circuits 10, 11, 12, and 13 will be described with reference to FIG.

【0018】まず、記憶回路11,13に有効データが
格納されているので、データ有効信号110,130
は、各々“1”となり、割込み信号33を通じて制御プ
ロセッサ1に通知される。そして、制御プロセッサ1
は、記憶回路10,11,12,13の何れかに有効デ
ータが格納されていることを知ると、DMAコントロー
ラ30に対してアドレスレジスタ30の設定を行った後
に、フリップフロップ50を“1”にセットしてDMA
起動をかける。そこで、サーチ回路31のEN端子に
“0”が入力されるので、サーチ回路31が活性状態に
なる。そして、サーチ回路31の出力信号312が
“1”となり、出力信号310,311は、データ有効
信号100,110,120,130のそれぞれが
“0”,“1”,“0”,“1”なので、“0”,
“1”となる。
First, since valid data is stored in the memory circuits 11 and 13, the data valid signals 110 and 130 are stored.
Respectively become "1" and are notified to the control processor 1 through the interrupt signal 33. And the control processor 1
When the valid data is stored in any of the memory circuits 10, 11, 12, and 13, the flip-flop 50 is set to “1” after setting the address register 30 to the DMA controller 30. Set to DMA
Start up. Therefore, since "0" is input to the EN terminal of the search circuit 31, the search circuit 31 is activated. Then, the output signal 312 of the search circuit 31 becomes "1", and the output signals 310, 311 are the data valid signals 100, 110, 120, 130, respectively, "0", "1", "0", "1". So, "0",
It becomes "1".

【0019】また、出力イネーブル信号生成回路32
は、入力信号310,311の“0”,“1”を受け
て、デコーダ60の出力信号D1にのみ“1”を出力
し、データ有効信号110の“1”と、入力信号312
の“1”と、記憶回路出力イネーブルのタイミング信号
と、入力信号D1とを受けて、出力イネーブル信号32
1だけが、記憶回路11のタイミング信号を供給するの
で、記憶回路11からメモリ2に対してDMA転送が行
われることとなる。
Further, the output enable signal generating circuit 32
Receives "0" and "1" of the input signals 310 and 311 and outputs "1" only to the output signal D1 of the decoder 60, and outputs "1" of the data valid signal 110 and the input signal 312.
Of "1", the memory circuit output enable timing signal, and the input signal D1.
Since only 1 supplies the timing signal of the memory circuit 11, DMA transfer is performed from the memory circuit 11 to the memory 2.

【0020】そして、記憶回路11に格納されたデータ
が全てメモリ2に転送され終わるとデータ有効信号11
0は、“1”から“0”にリセットされるが、データ有
効信号130が引き続いて“1”であるので、サーチ回
路31の出力信号312は、“1”の状態を保持して、
DMA転送を終了させず、サーチ回路31の出力信号3
10,311は、“1”,“1”に変化する。そこで、
デコーダ60の出力はD3のみが“1”となり、今度は
出力イネーブル信号323だけが、記憶回路13のタイ
ミング信号を供給するので、記憶回路13からメモリ2
に対してDMA転送が行われることとなる。
When all the data stored in the memory circuit 11 has been transferred to the memory 2, the data valid signal 11
Although 0 is reset from “1” to “0”, since the data valid signal 130 continues to be “1”, the output signal 312 of the search circuit 31 holds the state of “1”,
Output signal 3 of search circuit 31 without ending DMA transfer
10, 311 changes to "1", "1". Therefore,
The output of the decoder 60 is "1" only in D3, and only the output enable signal 323 supplies the timing signal of the memory circuit 13 this time.
A DMA transfer will be performed for.

【0021】このようにして、記憶回路13に格納され
たデータが全てメモリ2に転送され終わるとデータ有効
信号130は、“1”から“0”にリセットされるとと
もに、データ有効信号100,110,120,130
が全て“0”になるので、サーチ回路31の出力信号3
12は、“0”になり、これを受けて1クロック後に
は、フリップフロップ50がリセットされて、DMA転
送を終了する。
In this way, when all the data stored in the memory circuit 13 has been transferred to the memory 2, the data valid signal 130 is reset from "1" to "0", and the data valid signals 100 and 110 are generated. , 120, 130
Are all "0", the output signal 3 of the search circuit 31
12 becomes "0", and one clock after receiving this, the flip-flop 50 is reset and the DMA transfer is completed.

【0022】なお、本実施例では、信号312が“1”
であるDMA転送中は、データ有効信号100,11
0,120,130を無闇に変化させてはならないの
で、DMA転送中でないとき、または、記憶回路10,
11,12,13の転送が終了したタイミングで、デー
タ有効信号100,110,120,130を変化させ
ている。
In this embodiment, the signal 312 is "1".
During the DMA transfer, the data valid signals 100, 11
Since 0, 120, and 130 must not be changed indiscriminately, when DMA transfer is not in progress, or when the memory circuit 10,
The data valid signals 100, 110, 120, and 130 are changed at the timing when the transfer of 11, 12, and 13 is completed.

【0023】[0023]

【発明の効果】以上説明したように、本発明のデータ転
送方式は、外部からのデータを格納する複数の記憶回路
から、内部のメモリにDMA転送をする場合に、一度の
DMA起動で、その時点で有効なデータが格納されてい
る全ての記憶回路をサーチして、順番にデータ転送を行
うので、制御プロセッサによる複数回に分けてのDMA
起動に要する処理時間、すなわち、有効データを格納し
ている記憶回路のサーチ時間やDMA起動時間および転
送先アドレス算出時間などを削減することが出来ること
により、データ転送処理の高速化を実現することができ
るという効果を有している。
As described above, according to the data transfer method of the present invention, when DMA transfer is performed from a plurality of storage circuits for storing data from the outside to the internal memory, the DMA transfer can be performed only once by starting the DMA. At this point, all memory circuits storing valid data are searched and the data is transferred in order. Therefore, the DMA is divided into plural times by the control processor.
The processing time required for start-up, that is, the search time of the memory circuit storing valid data, the DMA start-up time, the transfer destination address calculation time, and the like can be reduced, so that the data transfer processing can be speeded up. It has the effect that

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

【図1】本発明のデータ転送方式の一実施例を示すブロ
ック図である。
FIG. 1 is a block diagram showing an embodiment of a data transfer system of the present invention.

【図2】本実施例のDMAコントローラ3内のサーチ回
路31とその周辺回路との一例を示す回路図である。
FIG. 2 is a circuit diagram showing an example of a search circuit 31 and its peripheral circuits in the DMA controller 3 of this embodiment.

【図3】本実施例のDMAコントローラ3内の出力イネ
ーブル信号生成回路32の一例を示す回路図である。
FIG. 3 is a circuit diagram showing an example of an output enable signal generation circuit 32 in the DMA controller 3 of this embodiment.

【図4】本実施例のDMAコントローラ3の動作の一例
を示すタイムチャートである。
FIG. 4 is a time chart showing an example of the operation of the DMA controller 3 of this embodiment.

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

1 制御プロセッサ 2 メモリ 3 DMAコントローラ 4 アドレスバス 5 データバス 10,11,12,13 記憶回路 30 アドレスレジスタ 31 サーチ回路 32 出力イネーブル信号生成回路 33 割込み信号 34 ORゲート 50,51 フリップフロップ 60 デコーダ 100,110,120,130,310,311,3
12,320,321,322,323 信号
1 Control Processor 2 Memory 3 DMA Controller 4 Address Bus 5 Data Bus 10, 11, 12, 13 Storage Circuit 30 Address Register 31 Search Circuit 32 Output Enable Signal Generation Circuit 33 Interrupt Signal 34 OR Gate 50, 51 Flip Flop 60 Decoder 100, 110, 120, 130, 310, 311 and 3
12,320,321,322,323 signal

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 制御プロセッサと、前記制御プロセッサ
によりアクセス可能なメモリと、外部から入力されたデ
ータを一時格納する複数の記憶回路と、前記メモリおよ
び複数の前記記憶回路の間で行うデータ転送を制御する
DMAコントローラとを含むデータ処理装置のデータ転
送方式において、 (A)少なくとも1つの前記記憶回路に外部からの入力
データが格納されたことを前記制御プロセッサに認識さ
せる第1の制御手段と、 (B)入力データが格納された前記記憶回路から前記メ
モリにデータ転送をするために、前記第1の制御手段に
より入力データが格納されたことを認識した前記制御プ
ロセッサから前記DMAコントローラを起動する第2の
制御手段と、 (C)前記DMAコントローラで、外部からのデータが
格納されている前記記憶回路をサーチするサーチ手段
と、 (D)1つの前記記憶回路から前記メモリへのデータ転
送が終了したときに、前記サーチ手段によって指定され
て、外部からのデータを格納している他の前記記憶回路
から引続き前記メモリへデータ転送を行う第3の制御手
段と、 により、複数の前記記憶回路に格納されているデータを
次々に前記メモリに転送することを特徴とするデータ転
送方式。
1. A control processor, a memory accessible by the control processor, a plurality of storage circuits for temporarily storing data input from the outside, and data transfer performed between the memory and the plurality of storage circuits. In a data transfer system of a data processing device including a DMA controller for controlling, (A) first control means for causing the control processor to recognize that externally input data is stored in at least one of the storage circuits; (B) In order to transfer data from the memory circuit storing input data to the memory, the DMA controller is activated from the control processor that has recognized that the input data is stored by the first control means. Second control means, and (C) before the DMA controller stores data from the outside (D) another search means for searching the storage circuit, and (D) storing the external data specified by the search means when the data transfer from one of the storage circuits to the memory is completed. A third control means for continuously transferring data from the storage circuit to the memory, and the data stored in the plurality of storage circuits are sequentially transferred to the memory.
【請求項2】 制御プロセッサと、前記制御プロセッサ
によりアクセス可能なメモリと、外部から入力されたデ
ータを一時格納する複数の記憶回路と、前記メモリおよ
び複数の前記記憶回路の間で行うデータ転送を制御する
DMAコントローラとを含むデータ処理装置のデータ転
送方式において、 (A)少なくとも1つの前記記憶回路に外部からの入力
データが格納されたことを前記制御プロセッサに通知
し、 (B)通知された前記制御プロセッサが、入力データが
格納された前記記憶回路から前記メモリにデータ転送す
るために、前記DMAコントローラを起動し、 (C)起動された前記DMAコントローラが、そのとき
に入力データが格納されている全ての前記記憶回路を抽
出し、 (D)抽出された全ての前記記憶回路が、それぞれに格
納している入力データを前記DMAコントローラの制御
により順次に前記メモリへ転送する、 ことを特徴とするデータ転送方式。
2. A control processor, a memory accessible by the control processor, a plurality of storage circuits for temporarily storing data input from the outside, and data transfer performed between the memory and the plurality of storage circuits. In a data transfer method of a data processing device including a controlling DMA controller, (A) notifying the control processor that externally input data is stored in at least one of the memory circuits, and (B) notifying The control processor activates the DMA controller to transfer data from the memory circuit storing input data to the memory, and (C) the activated DMA controller stores the input data at that time. All the memory circuits that are present, (D) all the memory circuits that have been extracted Transferred sequentially to the memory input data being paid by the control of the DMA controller, the data transfer method, characterized in that.
【請求項3】 制御プロセッサと、前記制御プロセッサ
によりアクセス可能なメモリと、外部から入力されたデ
ータを一時格納する複数の記憶回路と、前記メモリおよ
び複数の前記記憶回路の間で行うデータ転送を制御する
DMAコントローラとを含むデータ処理装置のデータ転
送方式において、 (A)少なくとも1つの前記記憶回路に外部からの入力
データが格納されたことを割込み信号により前記制御プ
ロセッサに通知する割込み信号発生回路と、 (B)前記割込み信号発生回路からの割込み信号を検出
した前記制御プロセッサから前記DMAコントローラを
起動するDMA起動回路と、 (C)前記DMA起動回路から起動された前記DMAコ
ントローラで、そのときに入力データが格納されている
全ての前記記憶回路を抽出するサーチ回路と、 (D)前記サーチ回路で抽出された全ての前記記憶回路
に対して、それぞれに格納している入力データを順次に
前記メモリへ転送させる前記DMAコントローラの出力
イネーブル信号生成回路と、 を備えることを特徴とするデータ転送方式。
3. A control processor, a memory accessible by the control processor, a plurality of storage circuits for temporarily storing data input from the outside, and data transfer performed between the memory and the plurality of storage circuits. In a data transfer system of a data processing device including a controlling DMA controller, (A) an interrupt signal generation circuit for notifying the control processor by an interrupt signal that externally input data is stored in at least one of the storage circuits. (B) a DMA activation circuit that activates the DMA controller from the control processor that has detected an interrupt signal from the interrupt signal generation circuit, and (C) the DMA controller activated from the DMA activation circuit, Search to extract all the memory circuits that store input data in A circuit, and (D) an output enable signal generation circuit of the DMA controller that sequentially transfers the input data stored in each of the storage circuits extracted by the search circuit to the memory. A data transfer method comprising:
JP22381091A 1991-09-04 1991-09-04 Data transfer system Pending JPH0561813A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22381091A JPH0561813A (en) 1991-09-04 1991-09-04 Data transfer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22381091A JPH0561813A (en) 1991-09-04 1991-09-04 Data transfer system

Publications (1)

Publication Number Publication Date
JPH0561813A true JPH0561813A (en) 1993-03-12

Family

ID=16804079

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22381091A Pending JPH0561813A (en) 1991-09-04 1991-09-04 Data transfer system

Country Status (1)

Country Link
JP (1) JPH0561813A (en)

Similar Documents

Publication Publication Date Title
NO321931B1 (en) Microprocessor that has programmable waiting states
JP2001209549A (en) Device for executing context switching and its method
JPH05250305A (en) Data transfer control system
US5659760A (en) Microprocessor having interrupt vector generation unit and vector fetching command unit to initiate interrupt processing prior to returning interrupt acknowledge information
US6272583B1 (en) Microprocessor having built-in DRAM and internal data transfer paths wider and faster than independent external transfer paths
JPH0561813A (en) Data transfer system
US20030177229A1 (en) Microcomputer, bus control circuit, and data access method for a microcomputer
JP3096382B2 (en) DMA circuit
JPS59146326A (en) Control system of channel device
JP2845780B2 (en) Data transfer control circuit
JPH0850567A (en) Data transfer device
JPH05151143A (en) Interruption processing system for computer containing dma controller
JPH06231032A (en) Access controller
JPS63245547A (en) Data processor
JPS61183764A (en) Direct memory access controlling system
JPS58205258A (en) Data processor
JPH07182272A (en) Dma controller circuit
JPH05173936A (en) Data transfer processing device
JPH02159170A (en) Coding device
JPH0418639A (en) Program activating system
JPH01276335A (en) Microprogram controller
JPS63174131A (en) Interruption controller
JPH05165705A (en) Memory controller
JPH10207812A (en) Input/output device
JPH09297730A (en) Method for transferring data through bus and bus master controller