JPH01177661A - Data transferring device - Google Patents

Data transferring device

Info

Publication number
JPH01177661A
JPH01177661A JP120188A JP120188A JPH01177661A JP H01177661 A JPH01177661 A JP H01177661A JP 120188 A JP120188 A JP 120188A JP 120188 A JP120188 A JP 120188A JP H01177661 A JPH01177661 A JP H01177661A
Authority
JP
Japan
Prior art keywords
data
transfer
address
transferred
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.)
Pending
Application number
JP120188A
Other languages
Japanese (ja)
Inventor
Toru Komagawa
融 駒川
Hiroyuki Kida
博之 木田
Shiro Baba
馬場 志朗
Kiyoshi Matsubara
清 松原
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP120188A priority Critical patent/JPH01177661A/en
Publication of JPH01177661A publication Critical patent/JPH01177661A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To transmit data according to requests from many peripheral processing units by obtaining a means to refer to the contents of a vector table corresponding to an activation request and all pieces of information necessary for transferring the data from the contents. CONSTITUTION:When a data transfer controller (DTC) 2 recognizes a data transfer requesting signal 21, it calculates a first address (to indicate a storage place in a first memory 3) corresponding to a vector number 20 and reads a second address (to indicate the storage place in a second memory 4) corresponding to the vector number 20 from the first memory 3. Namely, at the time of obtaining a transferring source address, a transferring destination address, the number of transferred words, the word length of the data, and transfer information, first, the transfer information and the work length of the data are obtained, thereafter, the transferring source address, transferring destination address and number of transferred words are obtained, and the data are transferred. Thus, the data can be transferred according to the requests from many peripheral processing units by means of a few hardwares.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、多量のデータを転送するデータ転送装置に係
り、特に、多数の周辺処理装置からの要求に応じてデー
タ転送を行う際に様々なデータ転送形式に対応できる方
法及び手段を備えたデータ転送装置に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a data transfer device that transfers a large amount of data, and in particular, the present invention relates to a data transfer device that transfers a large amount of data. The present invention relates to a data transfer device equipped with a method and means that can support various data transfer formats.

〔従来の技術〕[Conventional technology]

多量のデータを転送できる従来のデータ転送装置として
は、例えば日立マイクロコンピュータデータブック:8
/16ビツトマイクロコンピユ一タ周辺LSI、昭和6
0年9月、389頁から442頁に示されるようなり 
M A C(DjrectMemory Access
 Control]、er)が公知である0この従来例
においては、データ転送元のアドレス情報やデータ転送
先のアドレス情報をデータ転送装置内に設けられたレジ
スタに常時格納しておかねばならない。また、データ転
送を要求する他の処理装置の数の増加に伴いデータ転送
を行えるチャネルの数を増加しなければならない。
An example of a conventional data transfer device that can transfer large amounts of data is the Hitachi Microcomputer Data Book: 8.
/16-bit microcomputer peripheral LSI, Showa 6
September 0, as shown on pages 389 to 442.
MAC (DjrectMemory Access
In this conventional example, the address information of the data transfer source and the address information of the data transfer destination must always be stored in a register provided within the data transfer device. Furthermore, as the number of other processing devices requesting data transfer increases, the number of channels capable of data transfer must be increased.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上記従来例は、多数の周辺処理装置からの要求に応じて
データ転送を行うには多くのチャネルを必要とするので
、レジスタ等のハードウェアが増大し安価なデータ転送
装置を得ることはできなり)。
The above conventional example requires many channels to transfer data in response to requests from a large number of peripheral processing devices, so hardware such as registers increases, making it impossible to obtain an inexpensive data transfer device. ).

従来例によれば、多数の周辺処理装置からの要求に応じ
てデータ転送を行うためには、少なくとも、データ転送
元のアドレスを格納する転送元アドレスレジスタ、デー
タ転送先のアドレスを格納する転送先アドレスレジスタ
、データの転送語数を格納する転送語数レジスタがデー
タ転送を要求する周辺処理装置の数だけ必要となり、ハ
ードウェアの増大を招く。
According to the conventional example, in order to transfer data in response to requests from a large number of peripheral processing units, at least a transfer source address register that stores the address of the data transfer source and a transfer destination register that stores the address of the data transfer destination are required. Address registers and transfer word number registers for storing the number of data transfer words are required for the number of peripheral processing units requesting data transfer, resulting in an increase in hardware.

本発明の目的は、少ないハードウェアで多数の周辺処理
装置からの要求に応じてデータ転送を行うことができる
データ転送装置を提供することである。
An object of the present invention is to provide a data transfer device that can transfer data in response to requests from a large number of peripheral processing devices with a small amount of hardware.

本発明の他の目的は、多数の周辺処理装置からの要求に
応じてデータ転送を行う際に様々なデータ転送形式に対
応できる方法及び手段を備えたデータ転送装置を提供す
ることである。
Another object of the present invention is to provide a data transfer device equipped with a method and means capable of supporting various data transfer formats when transferring data in response to requests from a large number of peripheral processing devices.

本発明の他の目的は、多数の周辺処理装置からの割込み
要求に応答して動作できる方法及び手段を備えたデータ
転送装置を提供することである。
Another object of the present invention is to provide a data transfer device with a method and means capable of operating in response to interrupt requests from multiple peripheral processing devices.

本発明の他の目的は、データ転送の度に割込みベクタテ
ーブルを更新することのない方法及び手段を備えたデー
タ転送装置を提供することである。
Another object of the present invention is to provide a data transfer device that includes a method and means that do not update an interrupt vector table every time data is transferred.

本発明の他の目的は、データ転送に必要なすべての情報
を格納する領域を自由に変更することができるデータ転
送装置を提供することである。
Another object of the present invention is to provide a data transfer device in which an area for storing all information necessary for data transfer can be freely changed.

〔課題を解決するための手段〕[Means to solve the problem]

上記目的は、データ転送に必要なすべての情報、即ち、
転送すべきデータが格納されているメモリの位置を示す
転送元アドレスと転送先のメモリの位置を示す転送先ア
ドレスと転送すべきデータの転送語数と転送するデータ
の語長と更に前記転送語数が複数であったときに次の転
送すべきデータの転送元アドレスおよび転送先アドレス
を得るための手段を示す転送情報を格納する記憶装置を
設けると共に、前記データ転送に必要なすべての情報が
前記記憶装置のどこに格納しであるかを示すアドレスを
格納するベクタテーブルを設け、データ転送の起動要求
があった場合に起動要求に対応してベクタテーブルの内
容を参照する手段と該内容からデータ転送に必要なすべ
ての情報を得る手段を設けることにより、達成される。
The above purpose is to collect all information necessary for data transfer, i.e.
A transfer source address indicating the memory location where the data to be transferred is stored, a transfer destination address indicating the transfer destination memory location, the number of transfer words of the transfer data, the word length of the transfer data, and the number of transfer words. A storage device is provided for storing transfer information indicating means for obtaining the transfer source address and transfer destination address of the next data to be transferred when there is a plurality of data, and all information necessary for the data transfer is stored in the memory. A vector table is provided to store an address indicating where the data is stored in the device, and when there is a request to start data transfer, a means for referring to the contents of the vector table in response to the request to start data transfer is provided, and a means for referring to the contents of the vector table in response to the request for starting data transfer, and a means for starting the data transfer from the contents. This is achieved by providing a means to obtain all the necessary information.

また、前記転送元アドレスと転送先アドレスと転送語数
と転送するデータの語長と転送情報を得る際に、まず前
記転送情報と前記データの語長を得て、その後転送元ア
ドレスと転送先アドレスと転送語数を得てデータの転送
を行うことにより。
In addition, when obtaining the transfer source address, transfer destination address, number of transfer words, word length of data to be transferred, and transfer information, first obtain the transfer information and word length of the data, and then obtain the transfer source address and transfer destination address. By obtaining the number of transferred words and transferring the data.

達成される。achieved.

更に、上記へフタテーブルに示されている内容を一時記
憶する手段を備え、前記記憶装置にデータ転送の終了後
の転送元アドレスと転送先アドレスと転送語数の状態を
記憶することで、筆記目的が達成できる。
Furthermore, it is provided with a means for temporarily storing the contents shown in the above-mentioned header table, and by storing the transfer source address, transfer destination address, and transfer word count status after the data transfer is completed in the storage device, it is possible to can be achieved.

〔作用〕[Effect]

本発明によるデータ転送装置は多数の周辺処理装置から
複数の割込み要求が発生すると、その割込み要求の中で
最も処理の優先が高い要求を予め定めた優先判断基準に
基づいて選択し、選択した割込み要求が予め定められた
割込み処理を行うプログラムを導く為の割込み要求であ
るか或いはデータ転送を行う為のデータ転送要求である
かを判断し、データ転送要求であった場合にはデータ転
送要求信号に対応したベクタ番号からベクタテーブルの
アドレスを算出し、このアドレスが示す内容を読み込む
。続いてこの読み込んだ内容をアドレスとして記憶装置
をアクセスし、先ず、転送するデータの語長および眞記
転送語数が複数であったときに次に転送すべきデータの
転送元アドレスおよび転送先アドレスを得るための手段
を示す転送情報を読み込む。次に、転送すべきデータが
格納されているメモリの位置を示す転送元アドレスを読
み込む。次に、この転送元アドレスが示すメモリをアク
セスし、転送すべきデータを得る。この際、次に転送す
べきデータの転送元アドレスを得るための手段を示す転
送情報が転送元アドレスの更新を指示していた場合には
、転送元アドレスが格納されているメモリの位置へ転送
データの語長に応じて更新した転送元アドレスを書き込
む。
When a plurality of interrupt requests are generated from a large number of peripheral processing devices, the data transfer device according to the present invention selects the request with the highest processing priority among the interrupt requests based on a predetermined priority criterion, and Determine whether the request is an interrupt request to guide a program that performs predetermined interrupt processing or a data transfer request to perform data transfer, and if it is a data transfer request, send a data transfer request signal. The address of the vector table is calculated from the vector number corresponding to , and the contents indicated by this address are read. Next, the storage device is accessed using this read content as an address, and first, when the word length of the data to be transferred and the number of words to be transferred are plural, the transfer source address and transfer destination address of the data to be transferred next are determined. Read the transfer information indicating the means to obtain the information. Next, the transfer source address indicating the memory location where the data to be transferred is stored is read. Next, the memory indicated by this transfer source address is accessed to obtain the data to be transferred. At this time, if the transfer information indicating the means to obtain the source address of the data to be transferred next instructs to update the source address, the data is transferred to the memory location where the source address is stored. Write the updated transfer source address according to the word length of the data.

次に、転送先のメモリの位置を示す転送先アドレスを読
み込む。次に、この転送先アドレスが示すメモリをアク
セスし、転送すべきデータを書き込む。この際、次に転
送すべきデータの転送先アドレスを得るための手段を示
す転送情報が転送先アドレスの更新を指示していた場合
には、転送先アドレスが格納されているメモリの位置へ
転送データの語長に応じて更新した転送先アドレスを書
き込む。最後に、転送語数を読み込み、転送語数を更新
する。更新した転送語数は転送語数が格納されていたメ
モリの位置へ書き込む。また、更新した転送語数がOで
あるか否かを判断し、0であった場合にはデータ転送装
置自身が割込み要求をすることで、一連の処理が完了す
る。
Next, the transfer destination address indicating the memory location of the transfer destination is read. Next, the memory indicated by this transfer destination address is accessed and the data to be transferred is written. At this time, if the transfer information indicating the means to obtain the transfer destination address of the next data to be transferred instructs to update the transfer destination address, the data is transferred to the memory location where the transfer destination address is stored. Write the updated transfer destination address according to the word length of the data. Finally, read the number of words to be transferred and update the number of words to be transferred. The updated number of transferred words is written to the memory location where the number of transferred words was stored. Further, it is determined whether the updated number of transferred words is O or not, and if it is 0, the data transfer device itself issues an interrupt request, thereby completing the series of processing.

〔実施例〕〔Example〕

以下、本発明の一実施例を第1図から第7図により説明
する。
An embodiment of the present invention will be described below with reference to FIGS. 1 to 7.

第1図は本発明のデータ転送装置の構成を示したもので
ある。割込みコントローラ1、データ転送コントローラ
2(以下DTCと呼ぶ)、第1のメモリ3、第2のメモ
リ4、アドレスバス5、データバス6から成る。
FIG. 1 shows the configuration of a data transfer device according to the present invention. It consists of an interrupt controller 1, a data transfer controller 2 (hereinafter referred to as DTC), a first memory 3, a second memory 4, an address bus 5, and a data bus 6.

割込みコントローラ1は、第1の割込み要求信号10、
第2の割込み要求信号11等の複数の割込み要求信号の
中から、割込みコントローラ1内の優先順位判定情報に
したがって優先順位の最も高い割込み要求に対応するベ
クタ番号20を発生すると共に、割込みコントローラ1
内の前記優先順位の最も高い割込みに対応するデータ転
送を行うか否かを示す情報にしたがいデータ要求信号2
1を発生する。DTC2は、データ転送要求信号21を
認知するとベクタ番号20に対応する第1のアドレス(
第1のメモリ3内の記憶場所を示す)を算出し、第1の
メモリ3からベクタ番号20に対応した第2のアドレス
(第2のメモリ4内の記憶場所を示す)を読み出す。第
2のメモリ4はデータ転送に必要な情報を格納しており
、前記第2のアドレスにしたがって読みだし、更新を行
いつつ、データの転送を実行する。第1のメモリ3は、
ベクタ番号に対応したアドレス(ベクタアドレス)を格
納している記憶装置でありデータ転送用のほかに中央処
理装置(図示しない、以下CPUと略す。)用の割込み
ベクタアドレス、システムベクタアドレス、その他のプ
ログラムやデータなどの情報を記憶している。第2のメ
モリ4はデータ転送情報を格納している記憶装置で、C
PU (図示しない)のデータエリアとしても使用され
る。本実施例では、第1.第2の2つのメモリを使用し
ているが、単一のメモリで共用することもできる。アド
レスバス5、データバス6は、割込みコントローラ1、
データ転送コントローラ2、第1のメモリ3、第2のメ
モリ4、CPU、各種周辺装置を接続しており、データ
転送に使用される。
The interrupt controller 1 receives a first interrupt request signal 10,
From among a plurality of interrupt request signals such as the second interrupt request signal 11, the interrupt controller 1 generates a vector number 20 corresponding to the highest priority interrupt request according to priority determination information in the interrupt controller 1.
Data request signal 2 according to information indicating whether or not to perform data transfer corresponding to the interrupt with the highest priority among
Generates 1. When the DTC 2 recognizes the data transfer request signal 21, it transfers the first address (
A second address (indicating a storage location in the second memory 4) corresponding to vector number 20 is read from the first memory 3. The second memory 4 stores information necessary for data transfer, and executes data transfer while reading and updating the information according to the second address. The first memory 3 is
A storage device that stores addresses (vector addresses) corresponding to vector numbers, and is used for data transfer as well as interrupt vector addresses for the central processing unit (not shown, hereinafter referred to as CPU), system vector addresses, and other It stores information such as programs and data. The second memory 4 is a storage device that stores data transfer information.
It is also used as a data area for the PU (not shown). In this embodiment, the first. Although two second memories are used, a single memory can also be shared. The address bus 5 and the data bus 6 are connected to the interrupt controller 1,
It is connected to a data transfer controller 2, a first memory 3, a second memory 4, a CPU, and various peripheral devices, and is used for data transfer.

次に、DTC2の内蔵するレジスタについて説明する。Next, the registers built into the DTC2 will be explained.

DTC2は、第2図に示す4本のレジスタを内蔵してお
り、これらは1チャンネル分の転送制御情報を記憶する
。メモリ4には複数チャンネル分の転送制御情報が記憶
されており、転送要求が発生すると各チャンネルに対応
するレジスタ情報をメモリ4から内蔵レジスタに転送し
、データ転送終了後メモリ4に退避する。
The DTC 2 includes four registers shown in FIG. 2, and these registers store transfer control information for one channel. Transfer control information for a plurality of channels is stored in the memory 4, and when a transfer request occurs, register information corresponding to each channel is transferred from the memory 4 to a built-in register, and is saved in the memory 4 after the data transfer is completed.

第3図(A)、第3図(B)は、各レジスタを図示して
いる。各レジスタの機能は次のとおりである。
FIG. 3(A) and FIG. 3(B) illustrate each register. The functions of each register are as follows.

(1)転送モードレジスタ(DMR)100・16ビツ
ト DTC2の動作モードを指定する。各ビットの機能は次
のとおりである。
(1) Transfer mode register (DMR) 100/16 bits Specifies the operation mode of DTC2. The function of each bit is as follows.

(a)S Z(bitl 5)  :データ転送のサイ
ズを示す。
(a) S Z (bitl 5): Indicates the size of data transfer.

SZ=O:バイ1〜転送 5Z=1:ワード(2バイ1〜)転送 (b)SI(bjt14):ソースアドレスのインクリ
メントモードを設定する。
SZ=O: Bye 1 to transfer 5Z=1: Word (2 byes 1 to) transfer (b) SI (bjt14): Sets source address increment mode.

S工=O:インクリメントしない。S = O: Do not increment.

5I=1:SZなら+1,5Z=4なら+2゜ (c)D I (bitl 3)  :デステイネーシ
ョンアドレスのインクリメンl−モードを設定する。
5I=1: +1 if SZ, +2° if 5Z=4 (c) DI (bitl 3): Sets the increment l-mode of the destination address.

DI=O:インクリメン1〜しない。DI=O: Increment 1 to no.

DI=1 : 5Z=Oなら+1,5Z=1なら+2゜
(2)転送元アドレスレジスタ(DSR)101・・1
6ビツト 転送元アドレスを指定するレジスタで、D M R10
0のSIピッl−が1のときには、1回のデータ転送後
、1 (SZ=O(7)場合)または2(SZ=1の場
合)が、自動的に加算されます。SIビットがOのとき
にはアドレスは変化しません。
DI=1: +1 if 5Z=O, +2° if 5Z=1 (2) Transfer source address register (DSR) 101...1
This is a register that specifies the 6-bit transfer source address. DMR10
When the SI pin of 0 is 1, 1 (when SZ=O(7)) or 2 (when SZ=1) is automatically added after one data transfer. When the SI bit is O, the address does not change.

(3)転送先アドレスレジスタ(DDR)102・・1
6ビツ1〜 転送先アドレスを指定するレジスタで、DMRlooの
DIピッ1〜が1のときには、1回のデータ転送後、1
 (SZ=Oの場合)または2(SZ=1の場合)が、
自動的に加算されます。
(3) Transfer destination address register (DDR) 102...1
6 bits 1~ This is a register that specifies the transfer destination address.When DMRloo's DI bits 1~ are 1, 1 bit is set after one data transfer.
(if SZ=O) or 2 (if SZ=1),
It will be added automatically.

DIピッ1−が0のときにはアドレスは変化しません。When DI pin 1- is 0, the address does not change.

(3)転送語数レジスタ(DCR)103・・・16ビ
ツト データ転送の回数を指定するレジスタである。
(3) Transfer word count register (DCR) 103: This register specifies the number of 16-bit data transfers.

1〜65536回の指定が可能である。0を指定すると
65536とみなされる。1回の転送を終了すると自動
的に−1され、指定回の転送が終了すると0になる。こ
のときDTC2はCPU(図示しない)に対して割込み
を発生する。割込みベクタ番号はDTC2を起動した要
因に対する通常割込みと同一の値(32〜63)が用い
られる。
It is possible to specify 1 to 65536 times. If 0 is specified, 65536 is assumed. When one transfer is completed, it is automatically set to -1, and when the designated transfer is completed, it becomes 0. At this time, the DTC 2 generates an interrupt to the CPU (not shown). As the interrupt vector number, the same values (32 to 63) as for the normal interrupt for the cause that activated the DTC2 are used.

本実施例では4本のレジスタを有しているが、必要に応
じてメモリ4から転送してくるようにすれば、レジスタ
の本数を減らすことができる。例えば、転送元アドレス
と転送先アドレスは同時には用いないので、更新するた
びにメモリ内容を更新するようにすれば、内部レジスタ
は共用できる。
Although this embodiment has four registers, the number of registers can be reduced by transferring data from the memory 4 as needed. For example, since the transfer source address and transfer destination address are not used at the same time, internal registers can be shared by updating the memory contents each time they are updated.

すなわち、これらのレジスタをDTC2内に内蔵するか
否かは本質的ではない。
That is, it is not essential whether or not these registers are built into the DTC2.

第4図(A)はDTC2のベクタテーブルとレジスタ情
報の関係を示す。第4図(B)はDTC2のベクタテー
ブルの詳細を示しており、64から95までのベクタ番
号がデータ転送制御に使用されている。ベクタ番号は1
0進数で、対応するアドレスは16進数で記している。
FIG. 4(A) shows the relationship between the vector table and register information of the DTC2. FIG. 4(B) shows details of the vector table of the DTC2, in which vector numbers 64 to 95 are used for data transfer control. Vector number is 1
The addresses are written in 0 base and the corresponding addresses are written in hexadecimal.

第5図(A)は動作フローチャートを示し、第5図(B
)はデータバス6上の情報の流れを示す。第5図(B)
中の破線で示した転送元及び転送先のアドレスの更新は
、転送モードによっては行わない場合もある。
FIG. 5(A) shows an operation flowchart, and FIG. 5(B) shows an operation flowchart.
) indicates the flow of information on the data bus 6. Figure 5 (B)
The transfer source and transfer destination addresses indicated by the broken lines inside may not be updated depending on the transfer mode.

以下、これらの図面を用いて動作を詳しく説明する。D
TC2の起動は、割込みリクエスト信号により行う。通
常の割込みかDTC割込みかの区別は、割込みコントロ
ーラ1内のDTCイネーブルビットにより制御される。
The operation will be explained in detail below using these drawings. D
TC2 is activated by an interrupt request signal. The distinction between a normal interrupt and a DTC interrupt is controlled by a DTC enable bit in the interrupt controller 1.

DTC割込みを受けたDTC2は割込みベクタ番号(6
4〜95)を受は取り、その番号にしたがってベクタテ
ーブルよりチャンネルごとのレジスタ情報を格納してい
るアドレスをリードし、そのアドレスに格納されている
レジスタ情報を用いてデータ転送を行う。
DTC2 receives the DTC interrupt and receives the interrupt vector number (6
4 to 95), reads the address storing register information for each channel from the vector table according to that number, and performs data transfer using the register information stored at that address.

データ転送を行うごとにレジスタ情報を更新し、転送語
数レジスタの値がOになったばあいは、CPUに対して
通常の割込み(ベクタ番号32〜63)を発生する。
Register information is updated every time data is transferred, and when the value of the transfer word count register becomes O, a normal interrupt (vector numbers 32 to 63) is generated to the CPU.

第6図は、メモリ4内でのレジスタ情報の位置を示す。FIG. 6 shows the location of register information within memory 4. FIG.

各チャンネルのレジスタ情報は、ベクタテーブルにアド
レスを設定することにより、メモリ上の任意の場所(た
だしOベージ内の偶数アドレスに限る)に配置できる。
Register information for each channel can be placed at any location on the memory (limited to even addresses within the O-base) by setting addresses in the vector table.

以上説明したデータ転送装置を使用する手順は以下のご
とくなる。
The procedure for using the data transfer device described above is as follows.

■CPUを割込み禁止状態にする。■Disable CPU interrupts.

■転送モード、転送元アドレス、転送元アドレス、転送
語数を、DTC要因に対するベクタの示すアドレスにセ
ットする。
(2) Set the transfer mode, transfer source address, transfer source address, and number of transfer words to the address indicated by the vector for the DTC factor.

■割込みコントローラの対応する割込みレベルレジスタ
をセットし、DTCイネーブルビットをDTC許可にす
る。
■Set the corresponding interrupt level register of the interrupt controller and enable the DTC enable bit.

■対応するIloのレジスタを操作し、割込み許可にす
る。
■Manipulate the corresponding Ilo register to enable interrupts.

■CPUを割込み許可状態にする。■Enable the CPU to interrupt.

■動作開始 第7図は、DTCが1回のデータ転送に要するステージ
数を示す。図のステート数は、レジスタ情報をLSIに
内蔵のRAM上に設定した場合の値である。レジスタ情
報を外部RAM上に設定した場合は、図のステート数に
20+4XSI+4XDIを加算する必要が有る。また
、図のデータは、割込みコントローラが優先順位を判断
するためのステートは含んでいない。
(2) Start of operation FIG. 7 shows the number of stages required for one data transfer by the DTC. The number of states in the figure is a value when register information is set on the built-in RAM of the LSI. When register information is set on external RAM, it is necessary to add 20+4XSI+4XDI to the number of states shown in the figure. Furthermore, the data in the figure does not include states for the interrupt controller to determine priorities.

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

本発明によれば、少ないハードウェアで多数の周辺処理
装置からの要求に応じてデータ転送を行うことができる
。更に、本発明によれば、多数の周辺処理装置からの要
求に応じて様々なデータ転送形式のデータ転送を行うこ
とができる。更に、本発明によれば、多数の周辺処理装
置からの割込み要求に応答してデータ転送を行うことが
できる。
According to the present invention, data can be transferred in response to requests from a large number of peripheral processing devices with a small amount of hardware. Further, according to the present invention, data transfer in various data transfer formats can be performed in response to requests from a large number of peripheral processing devices. Further, according to the present invention, data transfer can be performed in response to interrupt requests from a large number of peripheral processing devices.

更に、本発明によれば、データ転送に必要なすべての情
報を通常データ領域としてCPUが取り扱うことのでき
る大容量の主記憶装置に格納できるので、データ転送を
要求する周辺処理装置の数に依存することなくデータ転
送ができる。更に、本発明によれば、データ転送の度に
割込みベクタテーブルを更新することなくデータ転送を
行うことができる。更に、本発明によれば、データ転送
のために使用するベクタテーブルの内容を変更すること
で、データ転送に必要なすべての情報を格納する領域を
自由に変更することができる。
Furthermore, according to the present invention, all the information necessary for data transfer can be stored in a large-capacity main memory that can be handled by the CPU as a normal data area, so that the amount of information required for data transfer depends on the number of peripheral processing units requesting data transfer. You can transfer data without having to do anything. Further, according to the present invention, data transfer can be performed without updating the interrupt vector table every time data is transferred. Furthermore, according to the present invention, by changing the contents of the vector table used for data transfer, it is possible to freely change the area that stores all the information necessary for data transfer.

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

第1図は本発明の1実施例を示す図、第2図はレジスタ
の説明図、第3図(A)、第3図(B)はその内容を示
す図、第4図(A)はベクタテーブルとレジスタ情報の
関係図、第4図(B)はベクタテーブルの詳細図、第5
図(A)は動作フローチャートを示す図、第5図(B)
はバス上のデ−タの流れの説明図、第6図はレジスタ情
報の配置の説明図、第7図は実行に要するステート数を
示した図、をそれぞれ示す。 1・・割込みコントローラ、2・・・データ転送コント
ローラ、3・・・第1のメモリ、4・第2のメモリ、5
・・・アドレスバス、6・・・データバス、10・・・
第1の割込み要求信号、11・・・第2の割込み要求信
号、20・・・割込みベクタ番号、21・・・データ転
送要求信号。
Figure 1 is a diagram showing one embodiment of the present invention, Figure 2 is an explanatory diagram of a register, Figures 3 (A) and 3 (B) are diagrams showing its contents, and Figure 4 (A) is a diagram showing the contents. Relationship diagram between vector table and register information, Figure 4 (B) is a detailed diagram of the vector table, Figure 5
Figure (A) is a diagram showing an operation flowchart, Figure 5 (B)
6 is an explanatory diagram of the flow of data on the bus, FIG. 6 is an explanatory diagram of the arrangement of register information, and FIG. 7 is a diagram showing the number of states required for execution. 1...Interrupt controller, 2...Data transfer controller, 3...First memory, 4.Second memory, 5
...Address bus, 6...Data bus, 10...
1st interrupt request signal, 11...2nd interrupt request signal, 20...interrupt vector number, 21...data transfer request signal.

Claims (1)

【特許請求の範囲】 1、メモリに格納されたデータを転送するデータ転送装
置において、 a)転送すべきデータが格納されているメモリの位置を
示す第一のアドレス情報と b)転送先のメモリの位置を示す第二のアドレス情報と c)転送すべき転送語数と d)転送するデータの語長と e)前記転送語数が複数であつたときに次に転送すべき
データが格納されているメモリの位置を示す前記第一の
アドレス情報および転送先のメモリの位置を示す第二の
アドレス情報を得るための手段をしめす転送情報 に基づいてデータを転送するデータ転送装置であり、前
記データ転送装置の起動要求があつた場合に、起動要求
に対応した処理を行うために必要な情報を導くためのア
ドレスを格納するベクタテーブルに示されている内容に
基づいて、前記第一のアドレス情報と前記第二のアドレ
ス情報と前記転送語数と前記データの語長と前記転送情
報を得てデータの転送を行うことを特徴としたデータ転
送装置。 2、特許請求の範囲第1項記載のベクタテーブルに示さ
れている内容が前記第一のアドレス情報と前記第二のア
ドレス情報と前記転送語数と前記データの語長と前記転
送情報の格納先を示すメモリのアドレスであることを特
徴としたデータ転送装置。 3、特許請求の範囲第1項記載の第一のアドレス情報と
第二のアドレス情報と転送語数とデータの語長と転送情
報はベクタテーブルに示されている内容が導くメモリに
格納されており、前記第一のアドレス情報と前記第二の
アドレス情報と前記転送語数と前記データの語長と前記
転送情報を得る際に、まず前記転送情報と前記データの
語長を得て、その後前記第一のアドレス情報と前記第二
のアドレス情報と前記転送語数を得てデータの転送を行
うことを特徴としたデータ転送装置。 4、特許請求の範囲第1項記載の第一のアドレス情報と
第二のアドレス情報と転送語数とデータの語長と転送情
報の格納先を導くベクタテーブルに示されている内容を
記憶する手段を備えたことを特徴としたデータ転送装置
[Claims] 1. A data transfer device that transfers data stored in a memory, which includes: a) first address information indicating the memory location where the data to be transferred is stored; and b) a transfer destination memory. c) the number of words to be transferred, d) the word length of the data to be transferred, and e) the data to be transferred next when the number of words to be transferred is multiple. A data transfer device that transfers data based on transfer information indicating a means for obtaining the first address information indicating a memory location and second address information indicating a transfer destination memory location; When a device startup request is received, the first address information and the A data transfer device that transfers data by obtaining the second address information, the number of transfer words, the word length of the data, and the transfer information. 2. The contents shown in the vector table set forth in claim 1 include the first address information, the second address information, the number of transfer words, the word length of the data, and the storage location of the transfer information. A data transfer device characterized in that the data transfer device is a memory address indicating a memory address. 3. The first address information, second address information, number of transfer words, data word length, and transfer information described in claim 1 are stored in a memory guided by the contents shown in the vector table. , when obtaining the first address information, the second address information, the number of transfer words, the word length of the data, and the transfer information, first obtain the transfer information and the word length of the data, and then obtain the transfer information and the word length of the data. A data transfer device characterized in that data is transferred by obtaining one address information, the second address information, and the number of transfer words. 4. Means for storing the first address information, the second address information, the number of transfer words, the word length of the data, and the contents shown in the vector table for guiding the storage destination of the transfer information, as set forth in claim 1. A data transfer device characterized by being equipped with.
JP120188A 1988-01-08 1988-01-08 Data transferring device Pending JPH01177661A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP120188A JPH01177661A (en) 1988-01-08 1988-01-08 Data transferring device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP120188A JPH01177661A (en) 1988-01-08 1988-01-08 Data transferring device

Publications (1)

Publication Number Publication Date
JPH01177661A true JPH01177661A (en) 1989-07-13

Family

ID=11494849

Family Applications (1)

Application Number Title Priority Date Filing Date
JP120188A Pending JPH01177661A (en) 1988-01-08 1988-01-08 Data transferring device

Country Status (1)

Country Link
JP (1) JPH01177661A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004213666A (en) * 2003-01-03 2004-07-29 Micronas Gmbh Dma module and its operating method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004213666A (en) * 2003-01-03 2004-07-29 Micronas Gmbh Dma module and its operating method

Similar Documents

Publication Publication Date Title
KR100381823B1 (en) Data processing system with adjustable depth / width FIFO buffers for variable width data transfers
US5905911A (en) Data transfer system which determines a size of data being transferred between a memory and an input/output device
JP3181515B2 (en) Data transfer method and data transfer device using the method
JPH04363746A (en) Microcomputer system having dma function
JPH01125644A (en) Data transfer equipment
JPH01177661A (en) Data transferring device
US6847990B2 (en) Data transfer unit with support for multiple coherency granules
JPS6055911B2 (en) main storage
JPS592058B2 (en) Storage device
EP0787326B1 (en) System and method for processing of memory data and communication system comprising such system
JP2522412B2 (en) Communication method between programmable controller and input / output device
JPS6240736B2 (en)
JP3293838B2 (en) Data transfer method
JP3063501B2 (en) Memory access control method
JPS6019816B2 (en) microprogram control adapter
JPH10222460A (en) Data transfer controller
JPS6014435B2 (en) Storage device
JPH06214939A (en) Dma controller
JP2972568B2 (en) Bus extender
JPH0736806A (en) Dma system
JPH0261749A (en) Data transfer device
JPS6319855Y2 (en)
JPH0424733B2 (en)
JPS63245745A (en) Buffer storage controller
JPS59231665A (en) Disk controller