JPS6361352A - Data transfer method for microprocessor system - Google Patents

Data transfer method for microprocessor system

Info

Publication number
JPS6361352A
JPS6361352A JP20660786A JP20660786A JPS6361352A JP S6361352 A JPS6361352 A JP S6361352A JP 20660786 A JP20660786 A JP 20660786A JP 20660786 A JP20660786 A JP 20660786A JP S6361352 A JPS6361352 A JP S6361352A
Authority
JP
Japan
Prior art keywords
address
memory
data
transfer
memory unit
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
JP20660786A
Other languages
Japanese (ja)
Inventor
Shigeo Takahashi
重夫 高橋
Keisuke Yamada
桂右 山田
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.)
Toyo Communication Equipment Co Ltd
Original Assignee
Toyo Communication Equipment 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 Toyo Communication Equipment Co Ltd filed Critical Toyo Communication Equipment Co Ltd
Priority to JP20660786A priority Critical patent/JPS6361352A/en
Publication of JPS6361352A publication Critical patent/JPS6361352A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To simplify the connection between memory units and to contrive to improve a data transferring speed by supplying respectively and independently the address of a transfer source and a transfer destination to a memory when transferring data between memory units. CONSTITUTION:When data are transferred from a memory 13 of a memory unit 17 to a memory 18 of a memory unit 22, the address of the transfer source is inputted to an AGC 14 and the address of the transfer destination is inputted to an AGU 19. Simultaneously, after the number of transferring data is inputted to counters 15 and 20 of a memory unit, the starting of the transfer is commanded to the memory unit. Next, the AGU 14 sends the address of the transferring data to the memory 3 and the memory 13 outputs the data designated by the address to a data line 23. On the other hand, the AGU 19 sends the accommodated address of the data to the memory 18 and the memory 18 accommodates the data on the data line 23 to the designated address.

Description

【発明の詳細な説明】 (発明の属する分野) 本発明は複数のメモリ1ユニツトを備え九マイクロプロ
セッサシステムに於けるデータ転送方法に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a method for data transfer in a nine-microprocessor system with multiple memory units.

(従来技術) 従来マイクロプロセッサに於いて複数のメモリユニット
間でデータ転送を行う場合、殊に該転送制御をプロセッ
サのプログラム実行によらず専用ハードウェアによって
高速に行う場合メモリデータ転送に係わる部は例えば第
2図に示す如く溝底するのが一般的であった。
(Prior Art) Conventionally, when data is transferred between multiple memory units in a microprocessor, especially when the transfer is controlled at high speed by dedicated hardware without relying on the processor's program execution, the parts involved in memory data transfer are For example, it was common to have a groove bottom as shown in FIG.

即ち、これは最初に転送の制御指示を与えるマイクロブ
ロセ、yす(Micro ProcessorTJni
t以下MPUと略す)1と、転送データを格納し九メモ
リユニット2と、データの転送先となるメモリユニット
3との間を夫々アドレスライy4及びデータライン5に
よりて接続するとともに、これらに転送データ数を数え
るカウンタ6と転送元のメモリアドレスを生成するアド
レス生成N (Address Generation
 Unit以下AGTJと略す)AGTJt7.転送先
のメモリアドレスを生成するAGU!8.前記AGUt
7とAGU意8のアドレス出力を切り替えるマルチプレ
クサ9、転送データを一時的に保持するレジスタ10及
びこれらのレジスタ及びカウンタ等を選択する九めのデ
コーダ11から成るDMAC(DirectMemor
y Address Controler以下DMAC
と略以下DMA材加した如く構成したものである。
That is, this is a microprocessor that first gives transfer control instructions.
(hereinafter abbreviated as MPU) 1, a memory unit 2 that stores transfer data, and a memory unit 3 to which the data is transferred are connected by address lines 4 and data lines 5, respectively, and data is transferred to these. A counter 6 that counts the number of data and an address generation N that generates the transfer source memory address.
Unit (hereinafter abbreviated as AGTJ) AGTJt7. AGU that generates the memory address of the transfer destination! 8. Said AGUt
A DMAC (Direct Memory) consists of a multiplexer 9 that switches address outputs of AGU 7 and AGU 8, a register 10 that temporarily holds transfer data, and a ninth decoder 11 that selects these registers, counters, etc.
y Address Controller below DMAC
It is constructed as if approximately the following DMA material was added.

しかしながら、上述したような従来の構成でゆ は転送元のアドレス転送先のアドレスとを同時にアドレ
スライン4に出力することができないので、1個のデー
タを転送するのに最初の転送サイクルにおいて転送元と
なるメモリ2のデータをレジスタ10に格納し9次の転
送サイクルで該レジスタ10の内容をメモリ3に転送す
るという2回の転送動作を必要とするためデータの転送
速度が遅いという欠点があった。
However, in the conventional configuration as described above, it is not possible to output the transfer source address and the transfer destination address to the address line 4 at the same time. This method has the drawback that the data transfer speed is slow because it requires two transfer operations: storing the data in memory 2 to register 10 and transferring the contents of register 10 to memory 3 in the 9th transfer cycle. Ta.

(発明の目的) 本発明は以上説明し念よつな従来のデータ転送方法にお
ける欠点を除去するためになされ九ものであって、メモ
リユニット間の接続を単純にすると共に転送速度を著し
く速め念データ転送方法を提供することを目的とする。
OBJECTS OF THE INVENTION The present invention has been devised to obviate the disadvantages of conventional data transfer methods as described above and which simplifies connections between memory units and significantly increases transfer speeds. The purpose is to provide a data transfer method.

(発明の概!’) 本発明はこの目的を達成するために次のような構成をと
る。
(Summary of the invention!') In order to achieve this object, the present invention has the following configuration.

即ち、複数のメモリユニット間のデータ転送を行うため
に該メモリユニット夫々にメモリアドレス生成部と転送
数のカウンタ又は転送終了アドレス判定部を備え、デー
タの転送元と転送先のアドレスを各々独自にメモリに与
えることKよって、転送動作に先立って前記各メモリア
ドレス生成部と転送数のカウンタにアドレスラインとデ
ータラインを介してマイクロプロセッサから初期値を入
力するのみで以後アドレスラインを使用することなくし
かも転送データ数が転送サイクル数に等しくなるような
データ転送動作をするよう構成する。
That is, in order to transfer data between a plurality of memory units, each memory unit is provided with a memory address generation unit and a transfer number counter or a transfer end address determination unit, and each memory unit independently determines the data transfer source and transfer destination addresses. Therefore, prior to a transfer operation, an initial value is input from the microprocessor to each memory address generator and transfer number counter via the address line and data line, without using the address line thereafter. Furthermore, the data transfer operation is configured such that the number of transferred data is equal to the number of transfer cycles.

(発明の実施例) 以下図示し念実施例に基づいて本発明の詳細な説明する
(Embodiments of the Invention) The present invention will be described in detail below based on illustrative embodiments.

第1図は本発明のマイクロプロセッサシステムに於ける
データ転送方法に係かるメモリデータ転送部の一実施例
を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a memory data transfer section relating to a data transfer method in a microprocessor system of the present invention.

同図に於いて13はデータを格納するメモリであって、
該メモl713に対して転送元或は転送先のアドレスを
与えるAGU14と転送数のカウンタ15及びこれらカ
ウンタ15とAGU14のいづれか一方を選択する九め
のアドレスデコーダ16とを含めて一つのメモリユニッ
ト17を構成するとともに、#メモリユニット17と、
これと同様にメモリ18 、AGU19 、カウンタ2
0及びアドレスデコーダ21により構成しtメモリユニ
ット22との間をデータライン23で接続し、更に転送
の指示を行うMPU24を設け、かつ該MPU24と前
記各メモリユニット17.22との間をアドレスライン
25とデータライン23で接続するよう構成したもので
ある。
In the figure, 13 is a memory for storing data,
One memory unit 17 including an AGU 14 that gives a transfer source or destination address to the memory 1713, a transfer number counter 15, and a ninth address decoder 16 that selects either these counters 15 or the AGU 14. #Memory unit 17 and
Similarly, memory 18, AGU 19, counter 2
0 and an address decoder 21, connected to the memory unit 22 by a data line 23, and further provided with an MPU 24 for instructing transfer, and an address line is connected between the MPU 24 and each of the memory units 17 and 22. 25 and a data line 23.

このように構成したメモリデータ転送部によって例えば
メモリユニット17内のメモリ13からメモリユニット
22内の18にデータを転送する場合、まずMPU24
がアドレスライン25とデータライン23を介して転送
元のメモリユニット17の初期アドレスをこれに属する
AGL]14に、又転送先のメモリユニット22の初期
アドレスをAGtJ19に各々入力すると共に転送デー
タ数を各メモリユニットのカウンタ15及び20に入力
してから転送動作開始を各メモリユニットに指示する。
When data is transferred from the memory 13 in the memory unit 17 to the memory 18 in the memory unit 22 using the memory data transfer section configured in this way, first, the MPU 24
inputs the initial address of the transfer source memory unit 17 to the AGL] 14 belonging to this via the address line 25 and data line 23, and inputs the initial address of the transfer destination memory unit 22 to the AGtJ19, and also inputs the number of transfer data. After inputting the data to the counters 15 and 20 of each memory unit, each memory unit is instructed to start a transfer operation.

次にメモリユニット17内のAGU14は転送すべきデ
ータのアドレスをメモリ13に送り該メモリ13はアド
レスで指定されたデータ内容をデータライン23へ出力
する一方、メモリユニット22内のAGU19はデータ
の格納アドレスをメモリ18に送り該メモリ18は前記
データライフ23上のデータを指定されたアドレス領域
へ格納する。
Next, the AGU 14 in the memory unit 17 sends the address of the data to be transferred to the memory 13, and the memory 13 outputs the data content specified by the address to the data line 23, while the AGU 19 in the memory unit 22 stores the data. The address is sent to the memory 18, and the memory 18 stores the data on the data life 23 in the designated address area.

更に、上述したメモリ間のデータ転送動作を一回終える
毎に各メモリユニット17.22内のカウンタ15,2
0の値を夫々1減すると共に各AGU  14,19の
アドレス出力も所定の値に更新して次々にデータ転送を
行い、前記カウンタ15.20の値が共に零になった時
点でデータ転送動作を終了する。
Furthermore, each time the above-described data transfer operation between memories is completed, the counters 15 and 2 in each memory unit 17.22 are
The value of 0 is decreased by 1, and the address output of each AGU 14, 19 is updated to a predetermined value, data is transferred one after another, and when the values of the counters 15 and 20 both become zero, the data transfer operation starts. end.

このようにメモリユニット毎にデータ転送に必要なアド
レス生成部及びデータ数のカラyりを設ければ転送元の
メモリアドレスと転送先のメモリアドレスを同時に指定
してメモリ同志で直接データの転送を行うことができし
かも最初の初期アドレス設定と転送敷設定時以外ではア
ドレスラインを使用する必要がないので上述し九従来方
法に比べてその2倍のスピードによって高速データ転送
が可能である。
In this way, by providing the address generator and the number of data required for data transfer for each memory unit, it is possible to specify the transfer source memory address and the transfer destination memory address at the same time, and directly transfer data between memories. Moreover, since it is not necessary to use the address line except for initial address setting and transfer setting, high-speed data transfer is possible at twice the speed of the above-mentioned nine conventional methods.

本発明は以下の如く変形してもよい。The present invention may be modified as follows.

第3図は前記第1図のメモリユニット17部分を変形し
た実施例を示すブロック図であって、この変形実施例に
於いては前記第1図に於けるメモリユニット170カウ
ンタに置換してアドレスレジスタ32を設け、かつ該ア
ドレスレジスタ32の内容とAGU28との出力とを比
較する比較器33を付加するように構成したものであっ
て、その他の構成及び接続関係は前記第1図と同様であ
る。
FIG. 3 is a block diagram showing an embodiment in which the memory unit 17 portion of FIG. 1 is modified, and in this modified embodiment, the memory unit 170 counter in FIG. A register 32 is provided, and a comparator 33 is added to compare the contents of the address register 32 and the output from the AGU 28.Other configurations and connections are the same as in FIG. be.

このように構成したメモリユニット26においては、第
1図のメモリュニツ)17について動作説明し九時のよ
うにデータ転送毎にカウンタの値を1減じ、これが零に
なるまで繰り返すのではなく、初期値として最初に最終
アドレスをレジスタ32に入力しておきデータ転送毎に
この値とAGU 28からの出力値とを比較器33で比
較し9両者が一致するまでデータ転送を繰り返す。
In the memory unit 26 configured in this way, the operation of the memory unit 17 in FIG. First, the final address is input into the register 32, and each time data is transferred, this value is compared with the output value from the AGU 28 by the comparator 33, and the data transfer is repeated until the two match.

つまりlr1図のメモリユニット17は転送データの数
によって転送終了を制御し、第3図のメモリユニット2
6は転送の最終アドレスによって転送終了の制御を行う
よう構成したものでその他の機能は同等のものである。
In other words, the memory unit 17 in figure lr1 controls the end of transfer depending on the number of transferred data, and the memory unit 2 in figure 3
No. 6 is configured to control the end of transfer based on the final address of transfer, and the other functions are the same.

第3図に示し九変形メモリユニットを前記第1図のメモ
リユニット17に置換するのみならず、他方のメモリユ
ニット22に代えて該メモリユニットを採用してもよい
こと自明であろう。
It will be obvious that not only the nine modified memory unit shown in FIG. 3 may be replaced with the memory unit 17 of FIG. 1, but also this memory unit may be used in place of the other memory unit 22.

同2以上の例では説明を簡単にするためにデータの読出
し及び書き込みに係わる制御ラインの動作説作を省い之
が、これらは82図に示した従来方法と同様に行うもの
である。
In the above two or more examples, a description of the operation of the control lines related to data reading and writing will be omitted to simplify the explanation, but these operations are performed in the same manner as the conventional method shown in FIG. 82.

(発明の効果) 本発明は以上説明し友ように構成し且つ機能せしめるも
のであるからメモリユニット間の接続を簡単にしかつデ
ータ転送速度を速める上で著効を奏する。
(Effects of the Invention) Since the present invention is configured and functions as described above, it is effective in simplifying the connection between memory units and increasing the data transfer speed.

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

第1図は本発明のマイクロプロセッサに於けるデータ転
送方法に係わるメモリデータ転送部の一実施例を示すブ
ロック図、第2図は従来のメモリデータ転送部の構成図
、第3図は本発明の変形実施例を示すブロック図である
。 24・−・・・・・・・MPU (マイクロプロセッサ
ユニツ) )、     17,22.26・・・・・
・・・・メモリユニット、    14,19.28・
・・・・・・・・AGU (アドレス生成N)、   
 15.20・・・・・・・・・カウンタ、    2
3.31・・・・・・・・・データライン。 25.30・・・・・・・・・アドレスライン。 32・・・・・・・・・最終アドレスレジスタ。 33・・・・・・・・・アドレス比較器。
FIG. 1 is a block diagram showing an embodiment of a memory data transfer section related to the data transfer method in a microprocessor of the present invention, FIG. 2 is a configuration diagram of a conventional memory data transfer section, and FIG. 3 is a block diagram of the present invention. It is a block diagram showing a modification example of. 24・-・・・・・・MPU (Microprocessor unit)), 17,22.26・・・・・・
...Memory unit, 14,19.28・
・・・・・・・・・AGU (address generation N),
15.20・・・・・・Counter, 2
3.31... Data line. 25.30・・・・・・Address line. 32...Final address register. 33... Address comparator.

Claims (1)

【特許請求の範囲】 1、マイクロプロセッサの指示に従って複数のメモリユ
ニット間のデータ転送を行う方法に於いて、前記複数の
メモリユニット夫々にメモリアドレス生成部とカウンタ
とを備えることによって前記各メモリアドレス生成部と
カウンタにアドレスラインとデータラインを介して初期
値を入力するのみで以後アドレスラインの使用を不要な
らしめたことを特徴とするプロセッサシステムに於ける
データ転送方法。 2、前記カウンタに置換してアドレスレジスタ及び該ア
ドレスレジスタの出力と前記アドレス生成部の出力とを
比較する比較器を設けるとともに前記アドレス生成部に
開始アドレス値を、又前記アドレスカウンタに最終アド
レス値を設定し前記比較器によって前記開始及び最終ア
ドレス値を比較して両者が一致するまでアドレスを生成
するようにしたことを特徴とする特許請求の範囲第1項
記載のプロセッサシステムに於けるデータ転送方法。
[Scope of Claims] 1. In a method for transferring data between a plurality of memory units according to instructions from a microprocessor, each of the plurality of memory units is provided with a memory address generation unit and a counter. 1. A data transfer method in a processor system, characterized in that by simply inputting initial values to a generator and a counter via an address line and a data line, the use of the address line is made unnecessary thereafter. 2. An address register is provided in place of the counter, and a comparator is provided to compare the output of the address register with the output of the address generator, and the start address value is input to the address generator, and the final address value is input to the address counter. Data transfer in the processor system according to claim 1, wherein the comparator compares the start and final address values and generates addresses until they match. Method.
JP20660786A 1986-09-02 1986-09-02 Data transfer method for microprocessor system Pending JPS6361352A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20660786A JPS6361352A (en) 1986-09-02 1986-09-02 Data transfer method for microprocessor system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20660786A JPS6361352A (en) 1986-09-02 1986-09-02 Data transfer method for microprocessor system

Publications (1)

Publication Number Publication Date
JPS6361352A true JPS6361352A (en) 1988-03-17

Family

ID=16526189

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20660786A Pending JPS6361352A (en) 1986-09-02 1986-09-02 Data transfer method for microprocessor system

Country Status (1)

Country Link
JP (1) JPS6361352A (en)

Similar Documents

Publication Publication Date Title
JPH08221353A (en) Method for multi-dimensional transfer of data in data-processing system
JPH0719426B2 (en) Disk controller
JP2845433B2 (en) Integrated circuit device
US7310717B2 (en) Data transfer control unit with selectable transfer unit size
JPS6361352A (en) Data transfer method for microprocessor system
JPS61175816A (en) Printing controlling system
JP2741514B2 (en) Multi CPU system
JP2919001B2 (en) Semiconductor integrated circuit device
JPH0756803A (en) High-speed dma transfer device
JPH0962610A (en) Dma controller
JP3266610B2 (en) DMA transfer method
JPH0224756A (en) Data transfer system
JP2623501B2 (en) Direct memory access control circuit
JPH0449457A (en) Direct memory access transfer control device
JPH02307149A (en) Direct memory access control system
JPH04192054A (en) Direction memory access controller
JPH081631B2 (en) DMA controller
JPS63292355A (en) Control system for dma transfer
JPH03184143A (en) Memory access system
JPH01201760A (en) Dma controller
JPH0512183A (en) Data transfer system
JPH04199449A (en) Device controller
JPH01183753A (en) Input/output controller
JPS58146921A (en) High-speed data transferring device of bus coupling system
JPH05173672A (en) Microcomputer