JPH05324535A - Data transfer device - Google Patents

Data transfer device

Info

Publication number
JPH05324535A
JPH05324535A JP12766092A JP12766092A JPH05324535A JP H05324535 A JPH05324535 A JP H05324535A JP 12766092 A JP12766092 A JP 12766092A JP 12766092 A JP12766092 A JP 12766092A JP H05324535 A JPH05324535 A JP H05324535A
Authority
JP
Japan
Prior art keywords
dma
transfer
data
signal
bit
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
JP12766092A
Other languages
Japanese (ja)
Inventor
Masahiro Sato
藤 雅 裕 佐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP12766092A priority Critical patent/JPH05324535A/en
Publication of JPH05324535A publication Critical patent/JPH05324535A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To operate a command chain by providing a transfer mode storage means for setting of the transfer mode including a transfer form and interrupt permission, a transfer processing execution means, and an end report generating means. CONSTITUTION:A DMA 203 is provided with a control register 233, a transfer processing execution part 234, an end report generating part 235, and a queue control part 236. Permission or inhibition of end report generation can be set to the transfer mode storage means to obtain the same effect as masking so that the end report generating means 235 generates the end report in accordance with this setting. Therefore, this setting can be performed simultaneously with command setting, and operation of the command chain is possible. Especially, if the execution indication of the command chain is set by the control register 233, debugging is easier than the case that the execution indication of the command chain is set by another register, and programming is easy.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はデータ転送装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data transfer device.

【0002】[0002]

【従来の技術】従来、複数のデータ転送経路を設け、そ
の各ポート毎にDMA(Direct MemoryAccess)を配し、
各ポートにおけるデータ転送方向を、このDMAにより
制御することで、各種形態のデータ転送を達成しようと
する思想がある。
2. Description of the Related Art Conventionally, a plurality of data transfer paths are provided, and a DMA (Direct Memory Access) is arranged for each of the ports,
There is an idea to achieve various types of data transfer by controlling the data transfer direction at each port by this DMA.

【0003】例えば、CPU、主記憶メモリ、ディスク
等を持つシステムを考えたとき、主記憶メモリとCP
U、ディスク等との間を複数のデータ転送経路で結び、
その各ポートに配されたDMAによって、データの転送
方向、相手等から定義される転送形態を各種達成するこ
とができるようにするものである。
For example, when considering a system having a CPU, a main memory, a disk, etc., the main memory and the CP
Connects with U, disk, etc. by multiple data transfer paths,
The DMA arranged in each of the ports makes it possible to achieve various transfer modes defined by the data transfer direction, the other party, and the like.

【0004】図2は従来の思想でそのデータ転送システ
ムを組んだ場合の構成を示すものである。
FIG. 2 shows the configuration of the data transfer system assembled according to the conventional idea.

【0005】この図において、101,131はI/O
ポートであり、これらI/Oポート101,131は、
CPU、ディスクコントローラ等に接続されたものであ
る。以下、説明の便宜上、I/Oポート101がCPU
に、I/Oポート131がディスクコントローラに接続
されているものとする。102〜104はDMA、10
7はメモリであり、ここでは、I/Oポート101とD
MA102との間、I/Oポート131とDMA104
との間、DMA102とDMA104との間、DMA1
02とDMA103との間、DMA104とDMA10
3との間、DMA103とメモリ107との間にデータ
転送経路を有するシステム構成となっている。
In this figure, 101 and 131 are I / Os.
These I / O ports 101 and 131 are
It is connected to a CPU, a disk controller, or the like. Hereinafter, for convenience of explanation, the I / O port 101 is a CPU.
In addition, the I / O port 131 is assumed to be connected to the disk controller. 102 to 104 are DMAs, 10
7 is a memory, and here, I / O ports 101 and D
Between MA 102, I / O port 131 and DMA 104
, DMA 102 and DMA 104, DMA 1
02 and DMA103, DMA104 and DMA10
3 and a system configuration having a data transfer path between the DMA 103 and the memory 107.

【0006】I/Oポート101は、メモリ107へデ
ータをライトする場合、及びI/Oポート131へデー
タを転送する場合に、データ取引き要求を示すDReq
信号(DMAリクエスト信号)を信号線109上に出
し、その後、信号線110にDAck信号(DMA許可
信号)が出るのを待って、データバス108上にライト
あるいは転送データを出力する。
[0006] The I / O port 101, when writing data to the memory 107 and when transferring data to the I / O port 131, has a DReq indicating a data transaction request.
A signal (DMA request signal) is output on the signal line 109, and then, a DAck signal (DMA permission signal) is output on the signal line 110, and then write or transfer data is output on the data bus 108.

【0007】また、このI/Oポート101は、メモリ
107からデータをリードする場合、及びI/Oポート
131からデータをリードする場合に、データ要求を示
すDReq信号を信号線109上に出し、その後、信号
線110にDAck信号が出ると、データバス108上
のデータを取込むものである。その後、I/Oポート1
01は、取込んだデータをCPUへ送出することとな
る。
When reading data from the memory 107 and when reading data from the I / O port 131, the I / O port 101 outputs a DReq signal indicating a data request onto the signal line 109, After that, when the DAck signal is output to the signal line 110, the data on the data bus 108 is taken in. Then I / O port 1
01 will send the fetched data to the CPU.

【0008】I/Oポート131は、メモリ107へデ
ータをライトする場合、及びI/Oポート101へデー
タを転送する場合に、データ取引き要求を示すDReq
信号を信号線133上に出し、その後、信号線134に
DAck信号(DMA許可信号)が出るのを待って、デ
ータバス132上にライトあるいは転送データを出力す
る。
[0008] The I / O port 131, when writing data to the memory 107 and transferring data to the I / O port 101, has a DReq indicating a data transaction request.
The signal is output onto the signal line 133, and thereafter, the DAck signal (DMA permission signal) is output onto the signal line 134, and then the write or transfer data is output onto the data bus 132.

【0009】また、このI/Oポート131は、メモリ
107からデータをリードする場合、及びI/Oポート
101からデータをリードする場合に、データ要求を示
すDReq信号を信号線131上に出し、その後、信号
線133にDAck信号が出ると、データバス132上
のデータを取込むものである。その後、I/Oポート1
31は、取込んだデータをディスクコントローラへ送出
することとなる。
Further, the I / O port 131 outputs a DReq signal indicating a data request onto the signal line 131 when reading data from the memory 107 and when reading data from the I / O port 101. After that, when the DAck signal is output to the signal line 133, the data on the data bus 132 is taken in. Then I / O port 1
The reference numeral 31 sends the fetched data to the disk controller.

【0010】DMA102〜104はコントロールレジ
スタを備え、それらのレジスタの中身はCPUによりプ
ログラミングされ、DMA102〜104はその設定コ
マンドの内容に従って動作するようになっている。
The DMAs 102 to 104 have control registers, the contents of these registers are programmed by the CPU, and the DMAs 102 to 104 operate according to the contents of the setting command.

【0011】図2(b)〜(d)はコントロールレジス
タの一例としてDMA103のものを示すものである。
前述したように、DMA103はDMA102とDMA
104とメモリ107とを転送相手とするもので、コン
トロールレジスタはそれに応じた構造を備えている。
2B to 2D show the DMA 103 as an example of the control register.
As described above, the DMA 103 is the DMA 102 and the DMA
The control register 104 has a structure corresponding to the transfer destinations of 104 and the memory 107.

【0012】このコントロールレジスタは、転送コマン
ドの内容を示す図2(b)に示すようなモード表示レジ
スタ(MODE)と、転送先メモリの先頭アドレスを示
す図2(c)に示すようなアドレス表示レジスタ(Ad
d)と、データ転送数を示す図2(d)に示すようなデ
ータ転送数表示レジスタ(Len)とを有している。
The control register includes a mode display register (MODE) as shown in FIG. 2 (b) showing the contents of the transfer command and an address display as shown in FIG. 2 (c) showing the start address of the transfer destination memory. Register (Ad
2d) and a data transfer number display register (Len) as shown in FIG. 2D showing the data transfer number.

【0013】モード表示レジスタは、データの転送方向
を示す転送方向表示ビット(ビット0)、相手DMAを
示す相手DMA表示ビット(ビット1,2)を備えてい
る。
The mode display register has a transfer direction display bit (bit 0) indicating the data transfer direction and a partner DMA display bit (bits 1 and 2) indicating the partner DMA.

【0014】転送方向表示ビットは、“0”のときリー
ドモードであることを示し、“1”のときライトモード
であることを示す。相手DMA表示ビットは、ビット1
がDMA102に対するビット、ビット2がDMA10
4に対するビットとされ、各ビットにおいて“1”が設
定されているとき、そのビットに対応するDMA102
あるいは104がデータ転送のやりとりを行う相手であ
ることを示すようになっている。例えば、転送相手がD
MA102のときにはこれに対応するビット1が
“1”、DMA104に対応するビット2が“0”に設
定される。
When the transfer direction indication bit is "0", it indicates the read mode, and when it is "1", it indicates the write mode. Counter DMA display bit is bit 1
Is a bit for the DMA 102, and bit 2 is the DMA 10
4 is a bit corresponding to 4, and when “1” is set in each bit, the DMA 102 corresponding to that bit
Alternatively, 104 indicates that it is a partner with which data transfer is performed. For example, the transfer partner is D
In the case of MA 102, bit 1 corresponding to this is set to "1", and bit 2 corresponding to DMA 104 is set to "0".

【0015】アドレスレジスタはメモリ107の転送対
象領域の先頭アドレスを書くもので、転送処理に伴って
カウントアップされて更新される。これにより転送処理
毎のアクセスアドレスが明示されることとなる。データ
転送数表示部は転送処理に伴ってカウントダウンされる
もので、これにより全ての転送対象データを確実に転送
することができるものである。
The address register is for writing the start address of the transfer target area of the memory 107, and is counted up and updated with the transfer processing. As a result, the access address for each transfer process is specified. The data transfer number display section counts down in accordance with the transfer processing, and thus all the transfer target data can be transferred reliably.

【0016】レングスレジスタは、転送するデータ数を
書くものであり、転送処理に伴ってカウントダウンさ
れ、これが“0”になると当該転送処理終了となる。
The length register is for writing the number of data to be transferred, and is counted down in accordance with the transfer processing, and when it becomes "0", the transfer processing is completed.

【0017】以上、DMA103のコントロールレジス
タの構造を説明したが、DMA102,104のコント
ロールレジスタも同様の構造とされるが、ただそれらの
転送相手はI/OポートかDMAであるため、それらの
コントロールレジスタには、相手にメモリが含まれると
きに必要なレジスタ、つまりアドレスレジスタは無く、
それ以外のモードレジスタ及びレングスレジスタは同様
に備える。なお、モードレジスタに関し、DMA102
の相手DMA表示ビットは、例えばビット1がDMA1
03に対するもの、ビット2がDMA104に対するも
のとされ、DMA104の相手DMA表示ビットは、例
えばビット1がDMA102に対するもの、ビット2が
DMA103に対するものとされる。
The structure of the control register of the DMA 103 has been described above. However, the control registers of the DMAs 102 and 104 have the same structure, but since their transfer partners are the I / O port or the DMA, their control is controlled. There is no register that is necessary when the other party has memory, that is, the address register,
Other mode registers and length registers are similarly provided. Regarding the mode register, the DMA 102
As for the partner DMA display bit of, for example, bit 1 is DMA1
03, bit 2 is for the DMA 104, and the partner DMA display bits of the DMA 104 are, for example, bit 1 for the DMA 102 and bit 2 for the DMA 103.

【0018】105はバスコントローラであり、DMA
118からのBRQ(Bus Request)信号に応答して内部
バスの調停を行い、バス使用権を設定したところでバス
許可信号をDMA103に与える。
Reference numeral 105 denotes a bus controller, which is a DMA
In response to a BRQ (Bus Request) signal from 118, the internal bus is arbitrated and a bus permission signal is given to the DMA 103 when the bus use right is set.

【0019】106はメモリ107のモード(ライト/
リード)制御を行うメモリコントローラであり、DMA
103からのリード/ライト指示によりメモリ107の
モードを設定する。
Reference numeral 106 denotes a mode (write / write) of the memory 107.
A memory controller that performs read) control, and DMA
A mode of the memory 107 is set according to a read / write instruction from 103.

【0020】各DMA103〜105は、その各自の転
送処理終了時に、信号線124,125,126上に終
了通知信号を発生する。127はマスク設定レジスタ、
128は各DMA103〜105に対設されたマスク用
アンドゲート、129はオアゲートであり、各DMA1
03〜105からの終了通知信号は、それぞれ対応する
アンドゲート128を介してオアゲート129に入力さ
れ、このオアゲート129から信号線130を通じてC
PUに供給される。マスク設定レジスタ127は各DM
A103〜105に対応したビットを備え、DMA10
3〜105のうち終了通知の必要なもの以外はCPUへ
伝達されないようにするためのものである。すなわち、
CPUが知りたいのは特に転送経路の最下流に位置する
DMAの終了である。よって、他のDMAからの終了通
知はマスクする必要がある。そのため、レジスタ127
の各ビットのうち、終了通知が必要なDMAに対応する
ビットのみ論理“0”、他のDMAに対応するビットは
論理“1”に設定され、その出力によりアンドゲート1
28を開閉し、終了通知を通過させたり、禁止したりす
るものである。
Each of the DMAs 103 to 105 generates an end notification signal on the signal lines 124, 125 and 126 at the end of its own transfer process. 127 is a mask setting register,
Reference numeral 128 is a masking AND gate opposite to each of the DMAs 103 to 105, and 129 is an OR gate.
The end notification signals from 03 to 105 are input to the OR gate 129 via the corresponding AND gates 128, and C from the OR gate 129 via the signal line 130.
Supplied to PU. The mask setting register 127 is for each DM
A DMA 10 is provided with bits corresponding to A103 to A105.
This is to prevent the CPUs other than the ones requiring the end notification among 3 to 105 from being transmitted. That is,
What the CPU wants to know is the termination of the DMA located at the most downstream side of the transfer path. Therefore, it is necessary to mask the end notification from another DMA. Therefore, the register 127
Of the respective bits, only the bit corresponding to the DMA requiring the end notification is set to the logical "0", and the bit corresponding to the other DMA is set to the logical "1".
28 is opened and closed to pass or prohibit the end notification.

【0021】次に、以上のように構成されたシステムの
動作について説明する。まず、当該システムにおいてデ
ータ転送を実行する場合、CPUにより各DMA102
〜104のコントロールレジスタについて全てプログラ
ミングを完了させ、その後、起動信号を各DMAに与え
ることととなる。ここでは、I/Oポート101からの
データをメモリ207にライトする場合を説明する。
Next, the operation of the system configured as above will be described. First, when executing data transfer in the system, each DMA 102 is executed by the CPU.
Programming of all the control registers of ~ 104 will be completed, and then a start signal will be given to each DMA. Here, a case of writing data from the I / O port 101 to the memory 207 will be described.

【0022】この場合、転送に関与するのはDMA10
2,103であり、それらの各コントロールレジスタは
次のように設定される。
In this case, the DMA 10 is involved in the transfer.
2, 103, and their respective control registers are set as follows.

【0023】DMA102のコントロールレジスタは、
モード表示レジスタの方向表示ビット0はライトモード
であることから“1”、転送相手DMA表示ビット1,
2は相手がDMA103であることからビット1が
“1”、ビット2が“0”となる。
The control register of the DMA 102 is
The direction display bit 0 of the mode display register is “1” because it is the write mode, and the transfer destination DMA display bit 1
For bit 2, since the other party is the DMA 103, bit 1 is "1" and bit 2 is "0".

【0024】DMA103のコントロールレジスタは、
モードレジスタの方向表示ビット0はライトモードであ
ることから“1”、転送相手DMA表示ビット1,2は
相手がDMA102であることからビット1が“1”、
ビット2が“0”が設定される。
The control register of the DMA 103 is
The direction display bit 0 of the mode register is "1" because it is the write mode, and the transfer partner DMA display bits 1 and 2 are "1" because the partner is the DMA 102.
Bit 2 is set to "0".

【0025】また、マスクレジスタ127には、その各
ビットがMSBから順にDMA102・DMA103・
DMA104に対応しているとすると、最下流のDMA
103に対応するビットのみ0とするため、“101”
が設定される。
In the mask register 127, the bits of the DMA 102, DMA 103,
If it corresponds to the DMA 104, the most downstream DMA
Since only the bit corresponding to 103 is set to 0, "101"
Is set.

【0026】そして、このような設定により、初期にお
いては、DMA102はI/Oポート101からのデー
タ取引き要求を示すDReq信号待ちの状態、DMA1
03はDMA102からのReq信号待ちの状態とな
る。
With the above settings, the DMA 102 initially waits for the DReq signal indicating the data transaction request from the I / O port 101, DMA1.
03 is waiting for the Req signal from the DMA 102.

【0027】信号線109上にそのDReq信号が発現
すると、これにより開始条件が成立するため、DMA1
02は、内部バッファの空きを確認した上で、信号線1
10にDAck信号を出し、その後、I/Oポート10
1から送られてくるデータをバス108を通じて受取
り、これを内部バッファに書込む。
When the DReq signal appears on the signal line 109, the start condition is satisfied thereby, so that the DMA1
02 confirms that the internal buffer is empty, and then confirms that signal line 1
Issue a DAck signal to 10 and then I / O port 10
The data sent from 1 is received via the bus 108 and written in the internal buffer.

【0028】DMA102は、この書込みにより内部バ
ッファにデータが存在するようになると、内部バッファ
のデータをDMA103に受取らせるべく信号線112
上にReq信号を出す。
When data is present in the internal buffer due to this writing, the DMA 102 causes the signal line 112 to cause the DMA 103 to receive the data in the internal buffer.
Issue a Req signal on top.

【0029】すると、DMA103が、これに応答して
内部バッファの空きを確認した上で、信号線113上に
Ack信号を出す。すると、DMA102が、信号線1
12上のReq信号をクリアすると共に、バス111上
に内部バッファのデータを送出する。DMA103は信
号線113上にAck信号を出すと同時にバス111上
のデータ待ち状態となっているため、そのバス111上
に送出されたDMA102からのデータを内部バッファ
に格納する。
Then, in response to this, the DMA 103 confirms that the internal buffer is empty, and then outputs an Ack signal to the signal line 113. Then, the DMA 102 changes the signal line 1
The Req signal on 12 is cleared and the data in the internal buffer is sent out on the bus 111. Since the DMA 103 outputs the Ack signal onto the signal line 113 and is in a data waiting state on the bus 111 at the same time, the data sent from the DMA 102 on the bus 111 is stored in the internal buffer.

【0030】このDMA103もその内部バッファにデ
ータが存在するようになると、信号線118にBRQ
(バスリクエスト)信号を送出する。
When data also exists in the internal buffer of the DMA 103, the BRQ is applied to the signal line 118.
Send a (bus request) signal.

【0031】すると、バスコントローラ105はそのD
MA103からのBRQ信号を調停対象にし、DMA1
03にバス使用権を設定したところで信号線119上に
BAK(バス使用許可)信号を出す。DMA103は、
このBAK信号を受けて、信号線120上にライト指令
信号を出す。これにより、メモリコントローラ106が
信号線123上をライトモードに設定する。そして、D
MA103は信号線121上にアドレス信号を出すとと
もに信号線122上にデータ信号を出し、メモリ107
にデータをライトする。
Then, the bus controller 105 determines that D
The BRQ signal from the MA 103 is set as an arbitration target, and the DMA1
When the bus use right is set in 03, a BAK (bus use permission) signal is output on the signal line 119. DMA103 is
Upon receiving this BAK signal, a write command signal is output on the signal line 120. As a result, the memory controller 106 sets the signal line 123 on the write mode. And D
The MA 103 outputs an address signal on the signal line 121 and a data signal on the signal line 122, and the memory 107
Write data to.

【0032】このようにして処理が進み、DMA10
2、DMA103がこの順で当該転送処理に係る処理を
終了して行き、その各終了時において各信号線124,
125上に終了通知信号が出力される。この終了通知信
号はDMA102から先に出るが、このDMA102の
終了通知はアンドゲート128でマスクされるためCP
Uには伝達されない。よって、DMA103の終了通知
のみCPUに通知されることとなる。
The processing proceeds in this way, and the DMA 10
2. The DMA 103 ends the processing relating to the transfer processing in this order, and at the end of each processing, the signal lines 124,
An end notification signal is output on 125. This end notification signal is output from the DMA 102 first, but since the end notification of this DMA 102 is masked by the AND gate 128, CP
Not transmitted to U. Therefore, only the end notification of the DMA 103 is notified to the CPU.

【0033】ところで、近時では、このようなシステム
でコマンドチェーンを行うことも考えられている。
By the way, recently, it is also considered to perform a command chain in such a system.

【0034】すなわち、各DMAのコントロールレジス
タへ1度に複数の転送コマンドを設定し、その複数のコ
マンドを連続的に実行しようというものである。
That is, a plurality of transfer commands are set at once in the control register of each DMA, and the plurality of commands are continuously executed.

【0035】この場合には、マスクレジスタの設定も同
時に行うこととなる。
In this case, the mask register is also set at the same time.

【0036】[0036]

【発明が解決しようとする課題】しかしながら、このマ
スクレジスタへの設定があるために、上記コマンドチェ
ーンはメリットが無いものとされている。
However, since the mask register is set, the command chain is considered to have no merit.

【0037】例えば、DMAに2つのコマンドを設定す
る場合に1つ目のものが“01”のマスク、2つ目のコ
マンドが“10”のマスクを要するとしたとき、コマン
ドの都度にマスクを設定し直すことになる。この設定の
タイミングは前のコマンドの終了通知で取ることができ
るが、この設定が済むまではDMAの処理が行えず、結
局のところ、コマンドの設定のし直しと近くなり、コマ
ンドチェーンとしての運用は実質不可能である。
For example, when two commands are set in the DMA, if the first command requires a mask of "01" and the second command requires a mask of "10", the mask is set for each command. It will be set again. The timing of this setting can be taken by the end notification of the previous command, but until this setting is completed, DMA processing cannot be performed, and in the end, it becomes close to command resetting and operation as a command chain. Is virtually impossible.

【0038】本発明は上記従来技術の有する問題点に鑑
みてなされたもので、その目的とするところはコマンド
チェーンの運用を可能としたデータ転送装置を提供する
ことにある。
The present invention has been made in view of the above problems of the prior art, and an object of the present invention is to provide a data transfer device capable of operating a command chain.

【0039】[0039]

【課題を解決するための手段】本発明のデータ転送装置
は、複数のデータ転送経路のポート毎に配置するDMA
を構成するものであって、転送形態及び割込み許可を含
む転送モードを設定するための転送モード記憶手段と、
上記転送形態記憶手段の示す転送形態でデータ転送処理
を実行する転送処理実行手段と、この転送処理実行手段
の処理が終了したときであって、かつ上記割込み許可記
憶手段に割込み許可が設定されているときCPUに対す
る終了通知を発生する終了通知発生手段とを備えている
ことを特徴とする。
In the data transfer apparatus of the present invention, a DMA is provided for each port of a plurality of data transfer paths.
And a transfer mode storage unit for setting a transfer mode including a transfer mode and interrupt permission,
Transfer processing executing means for executing the data transfer processing in the transfer mode indicated by the transfer mode storing means, and when the processing of the transfer processing executing means is completed and the interrupt permission is set in the interrupt permission storing means. And a termination notification generating means for generating a termination notification to the CPU.

【0040】上記転送モード記憶手段は複数個をキュー
構造で組合わせ、そのコマンドチェーンの実行指示を設
定可能としたコントロールレジスタにより構成すること
ができる。
The above-mentioned transfer mode storage means can be constituted by a control register in which a plurality of them are combined in a queue structure and an execution instruction of the command chain can be set.

【0041】[0041]

【作用】本発明によれば、転送モード記憶手段に終了通
知の発生についての許可・禁止を設定可能とし、終了通
知発生手段はその設定の有無に応じて終了通知を発生す
る、というマスクと同様の効果が得られるようになって
いるため、かかる設定をもコマンド設定と同時に行うこ
とができ、コマンドチェーンの運用が可能となる。
According to the present invention, it is possible to set permission / prohibition for the generation of the end notification in the transfer mode storage means, and the end notification generation means generates the end notification according to the presence or absence of the setting, similarly to the mask. Since the effect of is obtained, the setting can be performed at the same time as the command setting, and the command chain can be operated.

【0042】特に、コマンドチェーンの実行指示をコン
トロールレジスタで設定するようにすれば、コマンドチ
ェーンの実行指示を別のレジスタで行うときより、デバ
ッグを行い易い。また、プログラミングも楽になる。
In particular, if the command register execution instruction is set in the control register, debugging is easier than when the command chain execution instruction is set in another register. It also makes programming easier.

【0043】[0043]

【実施例】以下に本発明の実施例について図面を参照し
つつ説明する図1は本発明の一実施例に係るデータ転送
装置のシステム構成を示すものである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 shows a system configuration of a data transfer apparatus according to an embodiment of the present invention.

【0044】まず、図1(a)において、201,22
9はI/Oポートであり、これらI/Oポート201,
229は、CPU、ディスクコントローラ等に接続され
たものである。以下、説明の便宜上、I/Oポート20
1がCPUに、I/Oポート229がディスクコントロ
ーラに接続されているものとする。202〜204はD
MA、207はメモリであり、ここでは、I/Oポート
201とDMA202との間、I/Oポート229とD
MA204との間、DMA202とDMA204との
間、DMA202とDMA203との間、DMA204
とDMA203との間、DMA203とメモリ207と
の間、においてデータ転送が行われるシステム構成とな
っている。
First, in FIG.
9 is an I / O port, and these I / O ports 201,
Reference numeral 229 is connected to a CPU, a disk controller, and the like. Hereinafter, for convenience of description, the I / O port 20
1 is connected to the CPU and the I / O port 229 is connected to the disk controller. 202-204 is D
MA and 207 are memories, and here, between the I / O port 201 and the DMA 202, the I / O port 229 and the D are connected.
MA204, DMA202 and DMA204, DMA202 and DMA203, DMA204
And the DMA 203, and between the DMA 203 and the memory 207, data transfer is performed.

【0045】このI/Oポート201は、メモリ207
へデータをライトする場合、及びI/Oポート229へ
データを転送する場合に、データ取引き要求を示すDR
eq信号(DMAリクエスト信号)を信号線209上に
出し、その後、信号線210にDAck信号(DMA許
可信号)が出るのを待って、データバス208上にライ
トあるいは転送データを出力する。
This I / O port 201 is connected to the memory 207.
DR indicating a data transaction request when writing data to the I / O port 229 or when writing data to the I / O port 229
The eq signal (DMA request signal) is output on the signal line 209, and then the DAck signal (DMA permission signal) is output on the signal line 210, and then write or transfer data is output on the data bus 208.

【0046】また、このI/Oポート201は、メモリ
207からデータをリードする場合、及びI/Oポート
229からデータをリードする場合に、データ要求を示
すDReq信号を信号線209上に出し、その後、信号
線210にDAck信号が出ると、データバス208上
のデータを取込むものである。その後、I/Oポート2
01は、取込んだデータをCPUへ送出することとな
る。
When reading data from the memory 207 and when reading data from the I / O port 229, the I / O port 201 outputs a DReq signal indicating a data request onto the signal line 209, After that, when the DAck signal is output to the signal line 210, the data on the data bus 208 is taken in. Then I / O port 2
01 will send the fetched data to the CPU.

【0047】I/Oポート229は、メモリ207へデ
ータをライトする場合、及びI/Oポート201へデー
タを転送する場合に、データ取引き要求を示すDReq
信号(DMAリクエスト信号)を信号線231上に出
し、その後、信号線232にDAck信号(DMA許可
信号)が出るのを待って、データバス230上にライト
あるいは転送データを出力する。
The I / O port 229, when writing data to the memory 207 and when transferring data to the I / O port 201, has a DReq indicating a data transaction request.
A signal (DMA request signal) is output on the signal line 231, and then, a DAck signal (DMA permission signal) is output on the signal line 232, and then write or transfer data is output on the data bus 230.

【0048】また、このI/Oポート229は、メモリ
207からデータをリードする場合、及びI/Oポート
201からデータをリードする場合に、データ要求を示
すDReq信号を信号線231上に出し、その後、信号
線231にDAck信号が出ると、データバス230上
のデータを取込むものである。その後、I/Oポート2
29は、取込んだデータをディスクコントローラへ送出
することとなる。
When reading data from the memory 207 and when reading data from the I / O port 201, the I / O port 229 outputs a DReq signal indicating a data request onto the signal line 231. After that, when the DAck signal is output to the signal line 231, the data on the data bus 230 is taken in. Then I / O port 2
29 sends the fetched data to the disk controller.

【0049】DMA202〜204はコントロールレジ
スタを備え、それらのレジスタの中身はCPUによりプ
ログラミングされ、DMA202〜204はその設定コ
マンドの内容に従って動作するようになっている。
The DMAs 202 to 204 have control registers, the contents of these registers are programmed by the CPU, and the DMAs 202 to 204 operate according to the contents of the setting command.

【0050】図1(b)はDMAの内部構造の一例とし
てDMA203のものを示している。
FIG. 1B shows the DMA 203 as an example of the internal structure of the DMA.

【0051】この図に示すように、DMA203はコン
トロールレジスタ233と転送処理実行部234と終了
通知発生部235とキュー制御部236とを備えてい
る。
As shown in this figure, the DMA 203 comprises a control register 233, a transfer processing execution unit 234, an end notification generation unit 235, and a queue control unit 236.

【0052】コントロールレジスタ233は、前述した
ように、DMA203はDMA202とDMA204と
メモリ207とを転送相手とするもので、コントロール
レジスタはそれに応じた構造を備えている。
As described above, the control register 233 has the DMA 203, the DMA 202, the DMA 204, and the memory 207 as the transfer partners, and the control register has a structure corresponding thereto.

【0053】このコントロールレジスタは、転送コマン
ドの内容を示す図1(c)に示すようなモード表示レジ
スタ(MODE)と、転送先メモリの先頭アドレスを示
す図1(d)に示すようなアドレス表示レジスタ(Ad
d)と、データ転送数を示す図1(e)に示すようなデ
ータ転送数表示レジスタ(Len)とを有し、図1
(f)に示すようにキュー構造のFIFOからなってい
る。
This control register has a mode display register (MODE) as shown in FIG. 1C showing the contents of the transfer command and an address display as shown in FIG. 1D showing the start address of the transfer destination memory. Register (Ad
d) and a data transfer number display register (Len) as shown in FIG. 1E showing the data transfer number.
As shown in (f), it consists of a queue-structured FIFO.

【0054】モード表示レジスタは、データの転送方向
を示す転送方向表示ビット(ビット0)、相手DMAを
示す相手DMA表示ビット(ビット1,2)、割込み許
可表示ビット(ビット6)、コマンドチェーンを行うこ
とを示すコマンドチェーン表示ビット(ビット7)、そ
の他の表示ビット(ビット3〜5)を備えたコマンド表
示部を備えている。
The mode display register includes a transfer direction display bit (bit 0) indicating the data transfer direction, a partner DMA display bit (bits 1 and 2) indicating the partner DMA, an interrupt enable display bit (bit 6), and a command chain. The command display unit is provided with a command chain display bit (bit 7) indicating that the command is to be performed and other display bits (bits 3 to 5).

【0055】転送方向表示ビットは、“0”のときリー
ドモードであることを示し、“1”のときライトモード
であることを示す。相手DMA表示ビットは、ビット1
がDMA202に対するビット、ビット2がDMA20
4に対するビットとされ、各ビットにおいて“1”が設
定されているとき、そのビットに対応するDMA202
あるいは204がデータ転送のやりとりを行う相手であ
ることを示すようになっている。例えば、転送相手がD
MA202のときにはこれに対応するビット1が
“1”、DMA204に対応するビット2が“0”に設
定される。
When the transfer direction display bit is "0", it indicates the read mode, and when it is "1", it indicates the write mode. Counter DMA display bit is bit 1
Is a bit for the DMA 202, and bit 2 is the DMA 20
4 is a bit corresponding to 4, and when “1” is set in each bit, the DMA 202 corresponding to that bit
Alternatively, 204 indicates that it is a partner with which data transfer is performed. For example, the transfer partner is D
In the case of MA 202, bit 1 corresponding to this is set to “1”, and bit 2 corresponding to DMA 204 is set to “0”.

【0056】割込み許可表示ビットは、“0”のとき禁
止状態であることを示し、“1”のとき許可状態である
ことを示しており、よって、この割込み許可表示ビット
が“1”に設定されているときのみ転送処理終了時に終
了割込み信号が発生され、同ビットが“0”に設定され
ているときには転送処理が終了しても終了割込み信号が
発生されないようになっている。
The interrupt permission display bit indicates that it is in a disabled state when it is "0", and it indicates that it is in a enabled state when it is "1". Therefore, this interrupt permission display bit is set to "1". The end interrupt signal is generated at the end of the transfer process only when the transfer process is completed, and the end interrupt signal is not generated when the transfer process is completed when the bit is set to "0".

【0057】この割込み許可表示ビットは当該DMA2
03が転送経路の最下流に位置する場合にのみ“1”に
設定され、それ以外は“0”に設定される。
This interrupt permission display bit is the DMA2 concerned.
It is set to "1" only when 03 is located on the most downstream side of the transfer path, and is set to "0" otherwise.

【0058】コマンドチェーン表示ビットは、“0”の
ときコマンドチェーンを行わない、つまり、現在実行対
象となっているコマンドの後に別のコマンドが連続設定
されていないことを示しており、“1”のときにはコマ
ンドチェーンを行う、つまり現在実行対象となっている
転送コマンドの後に別のコマンドが連続して設定されて
いることを示すものである。
The command chain display bit indicates that the command chain is not executed when it is "0", that is, another command is not continuously set after the command which is currently executed, and "1". In the case of, the command chain is performed, that is, it indicates that another command is continuously set after the transfer command which is the current execution target.

【0059】アドレス表示部は転送処理に伴ってカウン
トアップされて更新されるもので、これにより転送処理
毎のアクセスアドレスが明示されることとなる。データ
転送数表示部は転送処理に伴ってカウントダウンされる
もので、これにより全ての転送対象データを確実に転送
することができるものである。
The address display section is counted up and updated in accordance with the transfer processing, whereby the access address for each transfer processing is specified. The data transfer number display section counts down in accordance with the transfer processing, and thus all the transfer target data can be transferred reliably.

【0060】次に、コントロールレジスタは前述したよ
うにFIFOにより構成され、モード表示レジスタとア
ドレス表示レジスタとデータ転送数表示レジスタとが1
セットとされて一つの転送処理の終了毎にこのセット単
位でシフトされる。
Next, the control register is constituted by the FIFO as described above, and the mode display register, the address display register and the data transfer number display register are set to 1
It is set as a set and is shifted in units of this set each time one transfer process is completed.

【0061】以上、DMA203のコントロールレジス
タの構造を説明したが、DMA202,204のコント
ロールレジスタも同様の構造とされるが、ただそれらの
転送相手はI/OポートかDMAであるため、それらの
コントロールレジスタには、相手にメモリが含まれると
きに必要なレジスタ、つまりアドレス表示レジスタは無
く、それ以外のモード表示レジスタ及びデータ転送数表
示レジスタは同様に備える。なお、モード表示レジスタ
に関し、DMA202の転送相手DMA表示ビットは、
例えばビット1がDMA203に対するもの、ビット2
がDMA204に対するものとされ、DMA204の転
送相手DMA表示ビットは、例えばビット1がDMA2
02に対するもの、ビット2がDMA203に対するも
のとされる。以降は、この設定で説明する。
The structure of the control register of the DMA 203 has been described above. However, the control registers of the DMAs 202 and 204 have the same structure, but since their transfer partners are the I / O port or the DMA, their control is controlled. The register does not have a register necessary when the other party includes a memory, that is, an address display register, and the other mode display register and data transfer number display register are similarly provided. Regarding the mode display register, the transfer partner DMA display bit of the DMA 202 is
For example, bit 1 is for DMA 203, bit 2
Is for the DMA 204, and the transfer partner DMA display bit of the DMA 204 is, for example, bit 1 is DMA2.
02, bit 2 is for DMA 203. Hereinafter, this setting will be described.

【0062】図1(b)に戻り、転送処理実行部234
はコントロールレジスタ233の設定内容に従って上記
転送処理を行う部分であり、その実行終了時には実行終
了通知信号を終了通知発生部235及びキュー制御部2
36に与える。終了通知発生部235は転送処理実行部
234からの実行終了通知信号に応答してモードレジス
タのビット6を確認し、内容が“1”のとき信号線22
5上に終了通知を発生する。キュー制御部236は転送
処理実行部234からの実行終了通知信号に応答してモ
ードレジスタのビット7を確認し、内容が“1”のとき
コントロールレジスタをコマンド1セット分だけシフト
させるものである。
Returning to FIG. 1B, the transfer processing execution unit 234.
Is a part that performs the above transfer processing according to the setting contents of the control register 233.
Give to 36. The end notification generation unit 235 confirms bit 6 of the mode register in response to the execution end notification signal from the transfer process execution unit 234, and when the content is "1", the signal line 22
5. Generate end notification on 5. The queue control unit 236 confirms bit 7 of the mode register in response to the execution end notification signal from the transfer process execution unit 234, and when the content is "1", shifts the control register by one command set.

【0063】図1(a)に戻り、205は内部バスの調
停を行うバスコントローラ、206はメモリ207のモ
ード(ライト/リード)制御を行うメモリコントローラ
である。
Returning to FIG. 1A, 205 is a bus controller that arbitrates the internal bus, and 206 is a memory controller that controls the mode (write / read) of the memory 207.

【0064】以上のように構成されたシステムの動作に
ついて説明する。まず、当該システムにおいてデータ転
送を実行する場合、CPUにより各DMA202〜20
4のコントロールレジスタについて全てプログラミング
を完了させ、その後、起動信号を各DMAに与えること
ととなる。ここでは、I/Oポート201からのデータ
をメモリ207にライトする処理()を実行し、続い
て、I/Oポート201からのデータをI/Oポート2
29へ転送する処理()を実行し、最後に、メモリ2
07からのデータをI/Oポート201へ転送する処理
()を実行する場合について説明する。このような3
つの処理を連続して実行する場合、DMA202は処理
〜の全てに関与するため、そのコントロールレジス
タには処理〜全てについてその順に実行されるよう
コマンドキュー構造でプログラミングされ、DMA20
3は処理,に関与するため、そのコントロールレジ
スタには処理,についてその順に実行されるようコ
マンドキュー構造でプログラミングされ、DMA204
については処理のみ関与することから、そのコントロ
ールレジスタには処理のみが実行されるようそれだけ
についてプログラミングされる。なお、この時、同時に
アドレス表示レジスタや転送数表示レジスタについての
設定も行われる。また、割込み許可表示ビットの設定の
仕方次第で、最後の処理が終了した時だけに終了通知
を発生するようにしたり、〜の各処理の終了毎に終
了通知を発生するようにしたり、あるいは〜のう
ち、特別な理由から必要な処理の終了時のみ、例えば処
理の終了時のみ、に終了通知を発生するようにしたり
することができるが、ここでは一例として〜の一連
の処理が終了した時だけに終了通知を発生するようにす
るケースについて説明する。
The operation of the system configured as above will be described. First, when executing data transfer in the system, each of the DMAs 202 to 20 is executed by the CPU.
Programming will be completed for all the control registers of No. 4 and then a start signal will be given to each DMA. Here, the process () of writing the data from the I / O port 201 to the memory 207 is executed, and then the data from the I / O port 201 is input to the I / O port 2
The process () for transferring to 29 is executed, and finally the memory 2
A case of executing the process () for transferring the data from 07 to the I / O port 201 will be described. Like this 3
When two processes are continuously executed, the DMA 202 is involved in all of the processes, and therefore its control register is programmed with a command queue structure so that the processes are executed in that order.
Since 3 is involved in processing, its control register is programmed with a command queue structure so that processing is executed in that order.
, The control register is programmed only for the processing so that only the processing is executed. At this time, the address display register and the transfer number display register are set at the same time. Also, depending on how the interrupt permission display bit is set, an end notification may be generated only when the last process is completed, or an end notification may be generated at each end of each process, or Of these, the end notification can be generated only at the end of the required process for a special reason, for example, only at the end of the process. The case where the end notification is generated only in this case will be described.

【0065】各処理〜に関し各DMA202〜20
4のコントロールレジスタの設定内容は次の通りであ
る。
Regarding each process, each DMA 202 to 20
The setting contents of the control register 4 are as follows.

【0066】 I/Oポート201からのデータをメ
モリ207に書込む場合。
When writing data from the I / O port 201 to the memory 207.

【0067】この場合、転送に関与するのはDMA20
2,203であり、それらの各コントロールレジスタは
次のように設定される。
In this case, the DMA 20 is involved in the transfer.
2, 203, and their respective control registers are set as follows.

【0068】DMA202のコントロールレジスタは、
モード表示レジスタの方向表示ビット0はライトモード
であることから“1”、転送相手DMA表示ビット1,
2は相手がDMA203であることからビット1が
“1”、ビット2が“0”、割込み許可ビット6は当該
転送経路の最下流ではないから“0”、コマンドチェー
ン表示ビットは、引続きの処理を行うことから“1”
が設定されている。
The control register of the DMA 202 is
The direction display bit 0 of the mode display register is “1” because it is the write mode, and the transfer destination DMA display bit 1
Bit 2 is "1" because the other party is the DMA 203, bit 2 is "0", interrupt enable bit 6 is "0" because it is not the most downstream of the transfer path, and the command chain display bit is the subsequent processing. From doing "1"
Is set.

【0069】DMA203のコントロールレジスタは、
モード表示レジスタの方向表示ビット0はライトモード
であることから“1”、転送相手DMA表示ビット1,
2は相手がDMA202であることからビット1が
“1”、ビット2が“0”、割込み許可ビット6は当該
転送経路の最下流となるが、前記したように、最後の処
理の終了時のみ割込み通知を発生させるから禁止の
“0”、コマンドチェーン表示ビットは、引続きの処
理を行うことから“1”が設定されている。
The control register of the DMA 203 is
The direction display bit 0 of the mode display register is “1” because it is the write mode, and the transfer destination DMA display bit 1
For bit 2, since the other party is the DMA 202, bit 1 is "1", bit 2 is "0", and interrupt enable bit 6 is the most downstream of the transfer path, but as described above, only at the end of the last process. The interrupt notification is set to “0”, which is prohibited because the interrupt notification is generated, and the command chain display bit is set to “1” because the subsequent processing is performed.

【0070】 I/Oポート201からのデータをI
/Oポート229へ転送する場合。
Data from the I / O port 201 is transferred to I
When transferring to the / O port 229.

【0071】この場合、転送に関与するのはDMA20
2,204であり、それらの各コントロールレジスタは
次のように設定される。
In this case, the DMA 20 is involved in the transfer.
2, 204, and their respective control registers are set as follows.

【0072】DMA202のコントロールレジスタは、
モード表示レジスタの方向表示ビット0はライトモード
であることから“1”、転送相手DMA表示ビット1,
2は相手がDMA204であることからビット1が
“0”、ビット2が“1”、割込み許可ビット6は当該
転送経路の最下流ではないから“0”、コマンドチェー
ン表示ビットは、引続きの処理を行うことから“1”
が設定されている。
The control register of the DMA 202 is
The direction display bit 0 of the mode display register is “1” because it is the write mode, and the transfer destination DMA display bit 1
Bit 2 is “0” because the other party is the DMA 204, bit 2 is “1”, the interrupt permission bit 6 is “0” because it is not the most downstream of the transfer path, and the command chain display bit is the subsequent processing. From doing "1"
Is set.

【0073】DMA204のコントロールレジスタは、
モード表示レジスタの方向表示ビット0はリードモード
であることから“0”、転送相手DMA表示ビット1,
2は相手がDMA202であることからビット1が
“1”、ビット2が“0”、割込み許可表示ビット6は
当該転送経路の最下流となるが、前記したように、最後
の処理の終了時のみ割込み通知を発生させるから禁止
の“0”、コマンドチェーン表示ビットは、続く処理が
ないため“0”が設定されていることとなる。
The control register of the DMA 204 is
The direction display bit 0 of the mode display register is "0" because it is the read mode, and the transfer partner DMA display bit 1,
Bit 2 is "1", bit 2 is "0", and interrupt permission display bit 6 is the most downstream of the transfer path because the other party is the DMA 202, but as described above, at the end of the last process. Only the interrupt notification is generated, so the prohibition "0" is set, and the command chain display bit is set to "0" because there is no subsequent processing.

【0074】 メモリ207からのデータをI/Oポ
ート201へ転送する場合。
When transferring data from the memory 207 to the I / O port 201.

【0075】この場合、転送に関与するのはDMA20
2,203であり、それらの各コントロールレジスタは
次のように設定される。
In this case, the DMA 20 is involved in the transfer.
2, 203, and their respective control registers are set as follows.

【0076】DMA202のコントロールレジスタは、
モード表示レジスタの方向表示ビット0はリードモード
であることから“0”、転送相手DMA表示ビット1,
2は相手がDMA203であることからビット1が
“1”、ビット2が“0”、割込み許可ビット6は当該
転送経路の最下流であり、かつ当該処理がコントロー
ルレジスタに設定された一連の処理の最後となるから許
可状態の“1”、コマンドチェーン表示ビットは、当然
“0”が設定されている。
The control register of the DMA 202 is
The direction display bit 0 of the mode display register is "0" because it is the read mode, and the transfer partner DMA display bit 1,
2 is a series of processes in which bit 1 is “1”, bit 2 is “0” because the other party is the DMA 203, interrupt enable bit 6 is the most downstream of the transfer path, and the process is set in the control register. Since it is the last, the permission state is set to "1" and the command chain display bit is set to "0".

【0077】DMA203のコントロールレジスタは、
モード表示レジスタの方向表示ビット0はリードモード
であることから“0”、転送相手DMA表示ビット1,
2は相手がDMA202であることからビット1が
“1”、ビット2が“0”、割込み許可ビット6は当該
転送経路の最下流とならないから禁止の“0”、コマン
ドチェーン表示ビットは、この場合も“0”が設定され
ていることとなる。
The control register of the DMA 203 is
The direction display bit 0 of the mode display register is "0" because it is the read mode, and the transfer partner DMA display bit 1,
Bit 2 is "1" because the other party is the DMA 202, bit 2 is "0", interrupt enable bit 6 is "0" which is prohibited because it is not the most downstream of the transfer path, and the command chain display bit is this Also in this case, "0" is set.

【0078】そして、上記の設定により、まず、DMA
202,203は処理、DMA204は処理のモー
ドとなる。初期において、DMA202はI/Oポート
201からのデータ取引き要求を示すDReq信号待ち
の状態、DMA203はDMA202からのReq信号
待ちの状態となる。DMA204はDMA202からの
信号線217上のReq信号待ちの状態となる。
Then, by the above setting, first, DMA
202 and 203 are processing modes, and DMA204 is a processing mode. Initially, the DMA 202 is in a state of waiting for a DReq signal indicating a data transaction request from the I / O port 201, and the DMA 203 is in a state of waiting for a Req signal from the DMA 202. The DMA 204 waits for the Req signal on the signal line 217 from the DMA 202.

【0079】信号線209上にそのDReq信号が発現
すると、これにより開始条件が成立するため、DMA2
02は、内部バッファの空きを確認した上で、信号線2
10にDAck信号を出し、その後、I/Oポート20
1から送られてくるデータをバス208を通じて受取
り、これを内部バッファに書込む。
When the DReq signal appears on the signal line 209, the start condition is satisfied by this, so that the DMA2
02 confirms that the internal buffer is empty, and then confirms that signal line 2
Send DAck signal to 10 and then I / O port 20
The data sent from 1 is received via the bus 208 and written in the internal buffer.

【0080】DMA202は、この書込みにより内部バ
ッファにデータが存在するようになると、内部バッファ
のデータをDMA203に受取らせるべく信号線212
上にReq信号を出す。
When data is present in the internal buffer due to this writing, the DMA 202 causes the signal line 212 to cause the DMA 203 to receive the data in the internal buffer.
Issue a Req signal on top.

【0081】すると、DMA203が、これに応答して
内部バッファの空きを確認した上で、信号線213上に
Ack信号を出す。すると、DMA202が、信号線2
12上のReq信号をクリアすると共に、バス211上
に内部バッファのデータを送出する。DMA203は信
号線213上にAck信号を出すと同時にバス211上
のデータ待ち状態となっているため、そのバス211上
に送出されたDMA202からのデータを内部バッファ
に格納する。
In response to this, the DMA 203 confirms that the internal buffer is empty, and then issues an Ack signal to the signal line 213. Then, the DMA 202 causes the signal line 2
The Req signal on 12 is cleared and the data in the internal buffer is sent out on the bus 211. Since the DMA 203 outputs the Ack signal on the signal line 213 and is in a data waiting state on the bus 211 at the same time, the data sent from the DMA 202 on the bus 211 is stored in the internal buffer.

【0082】このDMA203もその内部バッファにデ
ータが存在するようになると、信号線218にBRQ
(バスリクエスト)信号を送出する。
When data also exists in the internal buffer of this DMA 203, BRQ is applied to the signal line 218.
Send a (bus request) signal.

【0083】すると、バスコントローラ205はそのD
MA203からのBRQ信号を調停対象にし、DMA2
03にバス使用権を設定したところで信号線219上に
BAK(バス使用許可)信号を出す。DMA203は、
このBAK信号を受けて、信号線220上にライト指令
信号を出す。これにより、メモリコントローラ206が
信号線223上をライトモードに設定する。そして、D
MA203は信号線221上にアドレス信号を出すとと
もに信号線222上にデータ信号を出し、メモリ207
にデータをライトする。
Then, the bus controller 205 determines that D
The BRQ signal from the MA 203 is set as an arbitration target, and the DMA2
When the bus use right is set to 03, a BAK (bus use permission) signal is output on the signal line 219. DMA203
Upon receiving this BAK signal, a write command signal is output on the signal line 220. As a result, the memory controller 206 sets the signal line 223 on the write mode. And D
The MA 203 outputs an address signal on the signal line 221, a data signal on the signal line 222, and the memory 207.
Write data to.

【0084】このようにして処理が進み、DMA20
2、DMA203がこの順で当該転送処理に係る処理を
終了して行くが、DMA202,203のモードレジス
タにおける割込み許可表示ビットは“0”に設定されて
いるから、信号線224,225上に終了通知信号は出
ない。
The processing proceeds in this way, and the DMA 20
2. The DMA 203 finishes the processing relating to the transfer processing in this order, but since the interrupt permission display bit in the mode register of the DMA 202, 203 is set to "0", it ends on the signal lines 224, 225. No notification signal is issued.

【0085】そして、DMA202,203はコマンド
キュー表示ビットが“1”に設定されているため当該処
理の終了により各コントロールレジスタをシフトさせ
る。これにより、DMA202は処理、DMA203
は処理のモードになる。
Since the command queue display bit of the DMAs 202 and 203 is set to "1", each control register is shifted at the end of the processing. As a result, the DMA 202 processes and the DMA 203
Is in processing mode.

【0086】すると、DMA202はI/Oポート20
1からのデータ取引き要求を示すDReq信号待ちの状
態となる。DMA204は前述した通り既にDMA20
2からのReq信号待ちの状態となっている。また、I
/Oポート229はデータ要求を示すDReq信号を信
号線231上に出し、信号線232上のDAck信号待
ちの状態となっている。
Then, the DMA 202 has the I / O port 20
It is in a state of waiting for the DReq signal indicating the data transaction request from 1. The DMA 204 is already the DMA 20 as described above.
It is in the state of waiting for the Req signal from 2. Also, I
The / O port 229 outputs a DReq signal indicating a data request onto the signal line 231, and is in a state of waiting for a DAck signal on the signal line 232.

【0087】一方、DMA203は処理のモードにな
っており、信号線218にBRQ(バスリクエスト)信
号を送出する。すると、バスコントローラ205はDM
A203にバス使用権を設定したところで信号線219
上にBAK(バス使用許可)信号を出す。DMA203
は、このBAK信号を受けて、信号線220上にリード
指令信号を出す。これにより、メモリコントローラ20
6が信号線223上をリードモードに設定する。そし
て、DMA203は信号線221上にアドレス信号を出
し、信号線222上のデータ信号を内部バッファに格納
する。このようにして内部バッファにデータが存在する
ようになると、DMA203は内部バッファのデータを
DMA202に受取らせるべく信号線214上にReq
信号を出す。しかし、DMA202は処理のモードに
なっているため、このDMA202からは信号線215
上にAck信号が出ず、条件が成立ないため、DMA2
03の内部バッファが一杯になったところで、このDM
A203はメモリ207からのリードを中断し、その状
態でDMA202からのAck信号を待機することとな
る。
On the other hand, the DMA 203 is in the processing mode and sends a BRQ (bus request) signal to the signal line 218. Then, the bus controller 205
When the bus right is set in A203, the signal line 219
Issue a BAK (Bus Permission) signal on top. DMA203
Receives the BAK signal and outputs a read command signal on the signal line 220. As a result, the memory controller 20
6 sets the read mode on the signal line 223. Then, the DMA 203 outputs an address signal on the signal line 221, and stores the data signal on the signal line 222 in the internal buffer. When data is present in the internal buffer in this manner, the DMA 203 causes the Req on the signal line 214 to cause the DMA 202 to receive the data in the internal buffer.
Give a signal. However, since the DMA 202 is in the processing mode, the signal line 215 is transmitted from this DMA 202.
Since the Ack signal is not output above and the condition is not satisfied, DMA2
When the internal buffer of 03 is full, this DM
The A203 interrupts the read from the memory 207 and waits for the Ack signal from the DMA202 in that state.

【0088】さて、処理に関し、信号線209上にそ
のDReq信号が発現すると、これに応答して、DMA
202が、内部バッファの空きを確認した上で、信号線
210にDAck信号を出し、その後、I/Oポート2
01から送られてくるデータをバス208を通じて受取
り、これを内部バッファに書込む。
Regarding the processing, when the DReq signal appears on the signal line 209, DMA is transmitted in response to the signal.
202 confirms that the internal buffer is empty, and then issues a DAck signal to the signal line 210, and then the I / O port 2
The data sent from 01 is received via the bus 208 and written in the internal buffer.

【0089】DMA202は、この書込みにより内部バ
ッファにデータが存在するようになると、内部バッファ
のデータをDMA204に受取らせるべく信号線217
上にReq信号を出す。
When data is present in the internal buffer due to this writing, the DMA 202 causes the signal line 217 to cause the DMA 204 to receive the data in the internal buffer.
Issue a Req signal on top.

【0090】すると、DMA204が、これに応答して
内部バッファの空きを確認した上で、信号線217上に
Ack信号を出す。すると、DMA202が、信号線2
17上のReq信号をクリアすると共に、バス211上
に内部バッファのデータを送出する。DMA204は信
号線217上にAck信号を出すと同時にバス211上
のデータ待ちの状態となっているため、そのバス211
上に送出されたDMA202からのデータを内部バッフ
ァに格納する。
In response to this, the DMA 204 confirms that the internal buffer is empty, and then outputs the Ack signal to the signal line 217. Then, the DMA 202 causes the signal line 2
The Req signal on 17 is cleared and the data in the internal buffer is sent out on the bus 211. Since the DMA 204 outputs the Ack signal on the signal line 217 and is in a state of waiting for data on the bus 211 at the same time, the bus 211
The data sent out from the DMA 202 is stored in the internal buffer.

【0091】このDMA204もその内部バッファにデ
ータが存在するようになると、信号線232上にDAc
k信号を出した後、信号線230上に内部バッファのデ
ータを送出する。
When data also exists in the internal buffer of this DMA 204, DAc is placed on the signal line 232.
After outputting the k signal, the data in the internal buffer is transmitted on the signal line 230.

【0092】I/Oポート229はそのDMA204か
らのDAck信号によりDReq信号をクリアしてデー
タ受信待機状態となり、その後、信号線230上を送ら
れてくるデータを取り込むこととなる。
The I / O port 229 clears the DReq signal in response to the DAck signal from the DMA 204 to enter the data reception standby state, and then takes in the data sent on the signal line 230.

【0093】このようにして処理が進み、DMA20
2、DMA204がこの順で当該転送処理に係る処理を
終了して行くが、DMA202,204のモードレジス
タにおける割込み許可表示ビットは“0”に設定されて
いるから、信号線224,226上に終了通知信号は出
ない。
The processing proceeds in this way, and the DMA 20
2. The DMA 204 finishes the processing relating to the transfer processing in this order. However, since the interrupt permission display bit in the mode register of the DMA 202, 204 is set to "0", the processing ends on the signal lines 224, 226. No notification signal is issued.

【0094】また、DMA202はコントロールレジス
タをシフトさせ、処理のモードとする。
Further, the DMA 202 shifts the control register to enter the processing mode.

【0095】これにより、DMA203から既に出てい
るReq信号に応答してDMA202が内部バッファの
空きを確認した上で、信号線215上にAck信号を出
す。すると、DMA203が、信号線214上のReq
信号をクリアすると共に、バス211上に内部バッファ
のデータを送出する。DMA202は信号線215上に
Ack信号を出すと同時にバス211上のデータ待ち状
態となっているため、そのバス211上に送出されたD
MA203からのデータを内部バッファに格納する。こ
れにより、DMA203の内部バッファに空きが生ずる
ため、メモリ207からのデータ読出しを再開する。
As a result, in response to the Req signal already output from the DMA 203, the DMA 202 confirms that the internal buffer is empty, and then outputs the Ack signal on the signal line 215. Then, the DMA 203 causes the Req on the signal line 214 to
The signal is cleared and the data in the internal buffer is sent to the bus 211. Since the DMA 202 outputs the Ack signal on the signal line 215 and is in a data waiting state on the bus 211 at the same time, the D sent on the bus 211 is transmitted.
The data from MA 203 is stored in the internal buffer. As a result, an empty space is created in the internal buffer of the DMA 203, and data reading from the memory 207 is restarted.

【0096】このDMA202はその内部バッファにデ
ータが存在するようになると、信号線210にDAck
信号を出し、続いて内部バッファのデータをバス208
上に送り出す。
When data is present in the internal buffer of the DMA 202, DAck is applied to the signal line 210.
Signal and then the data in the internal buffer to the bus 208
Send it up.

【0097】I/Oポート201は信号線210上のD
Ack信号によりDReq信号をクリアし、バス208
上のデータを取込む。
The I / O port 201 is D on the signal line 210.
The DReq signal is cleared by the Ack signal, and the bus 208
Capture the above data.

【0098】このようにして処理が進み、DMA20
3、DMA202がこの順で当該転送処理に係る処理を
終了して行くが、DMA203のモードレジスタにおけ
る割込み許可表示ビットは“0”に設定されているか
ら、信号線225上に終了通知信号は出ない。しかし、
追って、処理が終了するDMA202のモードレジスタ
には割込み許可表示ビット“1”が設定されているか
ら、その処理終了と同時に信号線224上に終了通知信
号を出す。これにより、CPUは〜の全処理の終了
を確認することができる。
The processing proceeds in this way, and the DMA 20
3. The DMA 202 finishes the processing relating to the transfer processing in this order. However, since the interrupt permission display bit in the mode register of the DMA 203 is set to “0”, the termination notification signal is output on the signal line 225. Absent. But,
After that, since the interrupt permission display bit “1” is set in the mode register of the DMA 202 where the processing ends, the end notification signal is output to the signal line 224 at the same time as the processing ends. Thereby, the CPU can confirm the end of all the processes of.

【0099】[0099]

【発明の効果】以上説明したように本発明によれば、転
送モード記憶手段に終了通知の発生についての許可・禁
止を設定可能とし、終了通知発生手段はその設定の有無
に応じて終了通知を発生する、というマスクと同様の効
果が得られるようになっているため、かかる設定をもコ
マンド設定と同時に行うことができ、コマンドチェーン
の運用が可能となる。
As described above, according to the present invention, it is possible to set permission / prohibition for the generation of the end notification in the transfer mode storage means, and the end notification generation means sends the end notification according to the presence or absence of the setting. Since the same effect as the mask of occurrence is obtained, such setting can be performed at the same time as the command setting, and the command chain can be operated.

【0100】特に、コマンドチェーンの実行指示をコン
トロールレジスタで設定するようにすれば、コマンドチ
ェーンの実行指示を別のレジスタで行うときより、デバ
ッグを行い易い。また、プログラミングも楽になる。
Particularly, if the command chain execution instruction is set in the control register, the debugging can be performed more easily than when the command chain execution instruction is set in another register. It also makes programming easier.

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

【図1】本発明の一実施例に係るデータ転送システムの
構成を示すブロックダイアグラム。
FIG. 1 is a block diagram showing a configuration of a data transfer system according to an embodiment of the present invention.

【図2】従来の思想で複数データ転送経路を有するシス
テムを組んだ場合の構成を示すブロックダイアグラム。
FIG. 2 is a block diagram showing a configuration when a system having a plurality of data transfer paths is assembled according to a conventional idea.

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

201,229 I/Oポート 202〜204 DMA 205 バスコントローラ 206 メモリコントローラ 207 メモリ 233 コントロールレジスタ 234 転送処理実行部 235 終了通知発生部 236 キュー制御部 201, 229 I / O ports 202-204 DMA 205 bus controller 206 memory controller 207 memory 233 control register 234 transfer processing execution unit 235 end notification generation unit 236 queue control unit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】複数のデータ転送経路のポート毎に配置す
るDMAを構成するデータ転送装置であって、 転送形態及び割込み許可を含む転送モードを設定するた
めの転送モード記憶手段と、 前記転送形態記憶手段の示す転送形態でデータ転送処理
を実行する転送処理実行手段と、 該転送処理実行手段の処理が終了したときであって、か
つ前記割込み許可記憶手段に割込み許可が設定されてい
るときCPUに対する終了通知を発生する終了通知発生
手段とを備えているデータ転送装置。
1. A data transfer device constituting a DMA arranged for each port of a plurality of data transfer paths, comprising: a transfer mode storage unit for setting a transfer mode including a transfer mode and an interrupt permission; and the transfer mode. A transfer processing executing means for executing the data transfer processing in the transfer mode indicated by the storing means, and a CPU when the processing of the transfer processing executing means is completed and the interrupt permission is set in the interrupt permission storing means. And a termination notification generating means for generating a termination notification for the data transfer apparatus.
【請求項2】複数の転送モード記憶手段をキュー構造で
形成し、そのコマンドチェーンの実行指示を設定可能と
したコントロールレジスタを備えている請求項1記載の
データ転送装置。
2. The data transfer apparatus according to claim 1, further comprising a control register in which a plurality of transfer mode storage means are formed in a queue structure and an instruction to execute the command chain can be set.
JP12766092A 1992-05-20 1992-05-20 Data transfer device Pending JPH05324535A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12766092A JPH05324535A (en) 1992-05-20 1992-05-20 Data transfer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12766092A JPH05324535A (en) 1992-05-20 1992-05-20 Data transfer device

Publications (1)

Publication Number Publication Date
JPH05324535A true JPH05324535A (en) 1993-12-07

Family

ID=14965579

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12766092A Pending JPH05324535A (en) 1992-05-20 1992-05-20 Data transfer device

Country Status (1)

Country Link
JP (1) JPH05324535A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013200678A (en) * 2012-03-23 2013-10-03 Toshiba Corp Memory system and bank interleaving method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013200678A (en) * 2012-03-23 2013-10-03 Toshiba Corp Memory system and bank interleaving method

Similar Documents

Publication Publication Date Title
US4737932A (en) Processor
US5119480A (en) Bus master interface circuit with transparent preemption of a data transfer operation
JPH04290150A (en) Device and method for controlling bidirectional fifo as interface between two buses in multi-task system
JP4642531B2 (en) Arbitration of data requests
US4878173A (en) Controller burst multiplexor channel interface
US5627968A (en) Data transfer apparatus which allows data to be transferred between data devices without accessing a shared memory
US20040230717A1 (en) Processing device
KR920002830B1 (en) Direct memory access controller
JPS6242306B2 (en)
JPH05324535A (en) Data transfer device
JPH051504B2 (en)
JP2727514B2 (en) Transfer destination ID designating circuit
KR100531324B1 (en) Apparatus for memory interface and method for the same
JP2005235216A (en) Direct memory access control
JPH0962633A (en) Network control unit
JP2803616B2 (en) I / O bus interface control method
JPH05324529A (en) Method and device for data transfer
JPS6385955A (en) Transfer controller for direct memory access
JPH0318144A (en) Lan adaptor
JPS60243763A (en) Dual port memory control circuit
JPH06149703A (en) Message transfer controller
JPH0370816B2 (en)
JPS63304345A (en) Control system for memory request
JPS63282871A (en) Multi-processor system
JP2000040071A (en) Order guarantee system by multiplexed bus