JP2504511B2 - DMA controller - Google Patents

DMA controller

Info

Publication number
JP2504511B2
JP2504511B2 JP5589888A JP5589888A JP2504511B2 JP 2504511 B2 JP2504511 B2 JP 2504511B2 JP 5589888 A JP5589888 A JP 5589888A JP 5589888 A JP5589888 A JP 5589888A JP 2504511 B2 JP2504511 B2 JP 2504511B2
Authority
JP
Japan
Prior art keywords
bus
buffer
message
interrupt
dma controller
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.)
Expired - Lifetime
Application number
JP5589888A
Other languages
Japanese (ja)
Other versions
JPH01229355A (en
Inventor
昭博 吉竹
秀之 飯野
秀憲 飛田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Fujitsu Electronics Inc
Original Assignee
Fujitsu Ltd
Fujitsu Electronics Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd, Fujitsu Electronics Inc filed Critical Fujitsu Ltd
Priority to JP5589888A priority Critical patent/JP2504511B2/en
Priority to EP89102869A priority patent/EP0330110B1/en
Priority to KR1019890002249A priority patent/KR910010137B1/en
Publication of JPH01229355A publication Critical patent/JPH01229355A/en
Application granted granted Critical
Publication of JP2504511B2 publication Critical patent/JP2504511B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)
  • Information Transfer Systems (AREA)

Description

【発明の詳細な説明】 〔概要〕 複数バス構成のシステムで各バスのバスマスタ間のメ
ッセージ通信を行なうDMAコントローラに関し、 システム設計時のハードウエア点数が減少することを
目的とし、 複数のバス夫々にバスマスタを接続したシステムで該
複数のバス夫々に接続されて設けられる周辺コントロー
ラであって、該複数のバスマスタ夫々からのメッセージ
を格納するメッセージバッファと、該複数のバスマスタ
夫々からの要求に応じて単一のバスマスタに該メッセー
ジバッファをアクセスせしめるアクセス制御手段と、該
メッセージバッファにメッセージが格納されたことを該
メッセージの送り先であるバスマスタに通知する通知手
段とを有し、該複数のバスマスタ間のメッセージ通信を
行なうよう構成する。
DETAILED DESCRIPTION OF THE INVENTION [Outline] A DMA controller for performing message communication between bus masters of each bus in a system having a plurality of buses is provided for each of the plurality of buses in order to reduce the number of hardware when designing the system. A peripheral controller provided by being connected to each of the plurality of buses in a system to which a bus master is connected, the message controller storing a message from each of the plurality of bus masters, and a single controller in response to a request from each of the plurality of bus masters. A message between the plurality of bus masters, which has access control means for allowing one bus master to access the message buffer, and notification means for notifying the bus master that is the destination of the message that the message has been stored in the message buffer. Configure to communicate.

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

本発明はDMAコントローラに関し、複数バス構成のシ
ステムで各バスのバスマスタ間のメッセージ通信を行な
うDMAコントローラに関する。
The present invention relates to a DMA controller, and more particularly to a DMA controller that performs message communication between bus masters of each bus in a system having a plurality of buses.

複数バス構成のシステムでは複数のバス夫々にバスマ
スタを設け各バスを管理するシステムがある。この場
合、システム全体の動作を調整する等のために、各バス
マスタ間でのメッセージ通信が必要である。
In a system having a plurality of buses, there is a system that manages each bus by providing a bus master for each of the plurality of buses. In this case, message communication is required between each bus master in order to adjust the operation of the entire system.

〔従来の技術〕[Conventional technology]

従来、第7図(A)に示す如くバス10,20夫々にバス
マスタ11,21及び周辺コントローラ(即ちDMAコントロー
ラ)12,22が夫々接続されたシステムでは、先入れ先出
し回路(FIFO)15,16をバス10,20間に設け、バスマスタ
11,21夫々よりのメッセージをFIFO15,16夫々に格納し、
これをバスマスタ21,11夫々が読み出すことによりメッ
セージ通信を行なっている。
Conventionally, in a system in which bus masters 11 and 21 and peripheral controllers (that is, DMA controllers) 12 and 22 are connected to buses 10 and 20 respectively as shown in FIG. 7 (A), first-in first-out circuits (FIFO) 15 and 16 Bus master installed between 10 and 20
Store the messages from 11,21 respectively in FIFO15,16 respectively,
The bus masters 21 and 11 read out each of them to perform message communication.

また、同図(B)に示す如くFIFO15,16の代りにデュ
アルポートRAM17を設け、バスマスタ11,21夫々でこのデ
ュアルポートRAM17をアクセスしてメッセージ通信を行
なう。
Further, as shown in FIG. 9B, a dual port RAM 17 is provided instead of the FIFOs 15 and 16, and the bus masters 11 and 21 access the dual port RAM 17 to perform message communication.

〔発明が解決しようとする課題〕[Problems to be Solved by the Invention]

上記従来のシステムではFIFO15,16又はデュアルポー
トRAM17夫々メッセージが書き込まれたことをバスマス
タ11,21夫々に通知する外部回路を付加しなければなら
ず、システムのハードウエア点数が増加しシステム設計
が複雑になるという問題があった。
In the above conventional system, an external circuit for notifying the bus masters 11 and 21 that the message has been written to each of the FIFOs 15 and 16 or the dual port RAM 17 must be added, which increases the number of system hardware points and complicates the system design. There was a problem of becoming.

本発明は上記の点に鑑みなされたもので、システム設
計時のハードウエア点数が減少するDMAコントローラを
提供することを目的とする。
The present invention has been made in view of the above points, and an object of the present invention is to provide a DMA controller that reduces the number of hardware when designing a system.

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

第1図は本発明のDMAコントローラの原理ブロック図
を示す。
FIG. 1 shows a principle block diagram of the DMA controller of the present invention.

同図中、複数バス25a,25b夫々にはバスマスタ26a,26b
夫々が接続されており、また複数のバス25a,25b夫々に
周辺コントローラ27が接続されている。
In the figure, the bus masters 26a and 26b are provided for the multiple buses 25a and 25b, respectively.
The peripheral controller 27 is connected to each of the buses 25a and 25b.

周辺コントローラ27内にはメッセージバッファ27a、
アクセス制御手段27b、通知手段27cが設けられている。
In the peripheral controller 27, a message buffer 27a,
Access control means 27b and notification means 27c are provided.

メッセージバッファ27aは複数のバスマスタ26a,26b夫
々からのメッセージを格納する。
The message buffer 27a stores messages from each of the plurality of bus masters 26a and 26b.

また、アクセス制御手段27bは複数のバスマスタ26a,2
6b夫々からのアクセス要求に応じて単一のバスマスタに
該メッセージバッファ27aをアクセスせしめる。
Further, the access control means 27b includes a plurality of bus masters 26a, 2a.
A single bus master is made to access the message buffer 27a in response to access requests from the respective 6b.

通知手段27cはメッセージバッファ27aにいずれかのバ
スマスタ(例えば26a)からのメッセージが格納された
ことを該メッセージの送り先であるバスマスタ26bに通
知する。
The notification means 27c notifies the bus master 26b which is the destination of the message that the message from one of the bus masters (for example, 26a) is stored in the message buffer 27a.

〔作用〕[Action]

本発明においては、DMAコントローラ27内にメッセー
ジバッフア27aの他、アクセス制御手段27b及び通知手段
27cが設けられており、この周辺コントローラ27を複数
のバス25a,25bに接続するだけでバスマスタ26a,26b間の
メッセージ通信を行なうことができ、外部回路を付加す
る必要がない。これによってハードウエア点数の増加が
ない。
In the present invention, in addition to the message buffer 27a in the DMA controller 27, access control means 27b and notification means
27c is provided, and message communication between the bus masters 26a and 26b can be performed only by connecting the peripheral controller 27 to the plurality of buses 25a and 25b, and it is not necessary to add an external circuit. This does not increase the hardware score.

〔実施例〕〔Example〕

第2図は本発明のDMAコントローラを適用した2バス
システムの一実施例のシステム構成図を示す。
FIG. 2 shows a system configuration diagram of an embodiment of a 2-bus system to which the DMA controller of the present invention is applied.

同図中、バス30はアドレスバス30a、データバス30b、
コントロールバス30cより構成されており、バス30には
バスマスタとしてのCPU31、I/Oインターフェース32、メ
モリ33夫々が接続されている。同様にバス40はアドレス
バス40a、データバス40b,コントロールバス40cより構成
されており、バス40にはバスマスタとしてのCPU41、I/O
インターフェース42、メモリ43夫々が接続されている。
In the figure, a bus 30 is an address bus 30a, a data bus 30b,
The control bus 30c is composed of a CPU 31, a bus master CPU 31, an I / O interface 32, and a memory 33. Similarly, the bus 40 is composed of an address bus 40a, a data bus 40b, and a control bus 40c. The bus 40 includes a CPU 41 as a bus master and an I / O.
The interface 42 and the memory 43 are connected to each other.

DMAコントローラ50は直接コントローラバス30C,40cと
接続され、また双方向バッファ51a,51b夫々を介してア
ドレスバス30a,40a夫々と接続され、同様に双方向バッ
ファ52a,52b夫々を介してデータバス30b,40b夫々と接続
されている。
The DMA controller 50 is directly connected to the controller buses 30C and 40c, is also connected to the address buses 30a and 40a through the bidirectional buffers 51a and 51b, and similarly is also connected to the data bus 30b through the bidirectional buffers 52a and 52b. , 40b, respectively.

バッファ52a,52bは、端子ENにDMAコントローラ50より
バッファのオン/オフを切換えるコントロール信号DBEN
1,DBEN2,夫々を供給され,端子T/Rに信号の方向を切換
えるコントロール信号DIN1,DIN2を供給されている。こ
れによって、データバス30bとDMAコントローラ50のデー
タ入出力端子との間、又はデータバス40bとDMAコントロ
ーラ50の入出力端子との間、又はデータバス30b,40b間
を接続することができる。
The buffers 52a and 52b have a control signal DBEN for switching the buffer on / off from the DMA controller 50 to the terminal EN.
1, DBEN2, respectively, and control signals DIN1, DIN2 for switching the signal direction are supplied to the terminal T / R. Thereby, the data bus 30b and the data input / output terminal of the DMA controller 50, the data bus 40b and the input / output terminal of the DMA controller 50, or the data buses 30b and 40b can be connected.

バッファ51a,51b夫々も上記のバッファ52a,52bとまっ
たく同一の構成で、端子ENにDMAコントローラ50よりオ
ン/オフを切換えるコントロール信号ABEN1,ABEN2を供
給され、端子T/Rに信号の方向を切換えるコントロール
信号AIN1,AIN2を供給されている。
Each of the buffers 51a and 51b has exactly the same configuration as the above-mentioned buffers 52a and 52b, and the terminal EN is supplied with control signals ABEN1 and ABEN2 for switching on / off from the DMA controller 50 and the signal direction is switched to the terminal T / R. Control signals AIN1 and AIN2 are supplied.

第3図はDMAコントローラ50の一実施例のブロック図
を示す。
FIG. 3 shows a block diagram of an embodiment of the DMA controller 50.

同図中、転送要求制御部70はI/Oインターフェース32,
42、メモリ33,34夫々からコントロールバス30c,40cを経
て端子71に入来する転送要求信号REQO〜REQ3が供給され
る。転送要求制御部70は同時に複数の転送要求があって
も予め決定された優先順位に従って単一の転送要求信号
を選択して中央処理部72及び動作決定部73に報告する。
動作決定部73はこの報告に対して応答を行なう。
In the figure, the transfer request control unit 70 includes an I / O interface 32,
42, transfer request signals REQO to REQ3 coming in to the terminal 71 via the control buses 30c and 40c are supplied from the memories 33 and 34, respectively. The transfer request control unit 70 selects a single transfer request signal according to a predetermined priority order and reports it to the central processing unit 72 and the operation determining unit 73 even if there are a plurality of transfer requests at the same time.
The operation determining unit 73 responds to this report.

第1図のアクセス制御手段27bであるスレーブ制御部7
4はCPU31,41夫々よりコントロールバス30c,40cを経て端
子75,76に入来するチップセレクト信号CS1,CS2及び割込
み要求応答信号IACK1,IACK2夫々を供給される。チップ
セレクト信号はCPU31,41夫々が後述するレジスタ77又は
コミュニケーションレジスタ91をアクセス(スレーブア
クセス)するための信号であり、割込み要求応答信号は
DMAコントローラ50がCPU31,41夫々に対する割込み要求
を行なったときCPU31,41夫々がスレーブアクセスを行な
うために応答する信号である。スレーブ制御部74は同時
にこれらの信号があっても予め決定された優先順序に従
って単一の信号を選択して動作決定部73に報告する。
Slave control unit 7 which is access control means 27b in FIG.
The CPU 31 and 41 are respectively supplied with chip select signals CS1 and CS2 and interrupt request response signals IACK1 and IACK2 coming into the terminals 75 and 76 via the control buses 30c and 40c, respectively. The chip select signal is a signal for each of the CPUs 31 and 41 to access (slave access) the register 77 or the communication register 91 described later, and the interrupt request response signal is
When the DMA controller 50 makes an interrupt request to each of the CPUs 31 and 41, it is a signal that the CPUs 31 and 41 respond to for slave access. The slave controller 74 selects a single signal according to a predetermined priority order and reports it to the operation determiner 73 even if these signals are present at the same time.

動作決定部73はこの報告に対してスレーブアクセスが
可能かどうかの応答をスレーブ制御部74に行なうととも
に、スレーブ制御部74からの報告を中央処理部72に伝
え、更にバス30,40いずれからのスレープアクセスであ
るかのバス属性信号をコミュニケーションレジスタ91に
供給する。なお、動作決定部73からスレーブアクセスが
可能であるとの応答を得たスレーブ制御部74はリード要
求信号又はライト要求信号を発生して中央処理部72及び
コミュニケーションレジスタ91に供給する。
In response to this report, the operation determination unit 73 responds to the slave control unit 74 with a response indicating whether slave access is possible, transmits the report from the slave control unit 74 to the central processing unit 72, and further from any of the buses 30 and 40. A bus attribute signal indicating whether it is a slave access or not is supplied to the communication register 91. The slave control unit 74 which has received a response from the operation determination unit 73 that the slave access is possible generates a read request signal or a write request signal and supplies the read request signal or the write request signal to the central processing unit 72 and the communication register 91.

中央処理部72はDMAコントローラ50全体の動作状態を
管理しており、この動作状態及び動作要求は動作決定部
73に報告される。中央処理部72に内蔵されたレジスタ77
には転送のソースアドレス,ディスティネイションアド
レス,ブロック数等が格納される。
The central processing unit 72 manages the operation state of the entire DMA controller 50, and the operation state and the operation request are the operation determination unit.
Reported to 73. Register 77 built in the central processing unit 72
The transfer source address, destination address, number of blocks, and the like are stored in.

動作決定部73は中央処理部72よりバス権の要求がある
とバス権制御部80に指示を出す。これによってバス制御
部80は端子81よりCPU31,41夫々にバス権要求信号HREQ1,
HREQ2を供給する。これに対してCPU31,41夫々が出力す
るバス権要求応答信号HACK1,HACK2夫々が端子82より入
来し、バス権制御部80は信号HACK1,HACK2夫々の入来を
動作決定部73に報告し、この報告は中央処理部72まで伝
えられる。
When the central processing unit 72 requests the bus right, the operation determining unit 73 gives an instruction to the bus right control unit 80. As a result, the bus control unit 80 sends the bus right request signal HREQ1,
Supply HREQ2. On the other hand, the bus right request response signals HACK1 and HACK2 output by the CPUs 31 and 41 respectively come in from the terminal 82, and the bus right control unit 80 reports the arrival of the signals HACK1 and HACK2 to the operation determining unit 73. This report is transmitted to the central processing unit 72.

端子制御部83は端子84にコントロールバス30c,40c夫
々より入来するデータの書き込み/読み出しの完了を示
すデータコンプリート信号DC1,2を供給され、これを動
作決定部73に報告すると共に、動作決定部73よりの指示
で端子84からのデータコンプリート信号DCを出力する。
また、同様にして端子85より供給されるリード/ライト
信号R/W1,R/W2夫々を動作決定部73に報告すると共に、
動作決定部73の指示により信号アドレスストローブ信号
AS1,AS2、データストローブ信号DS1,DS2及びリード/ラ
イト信号R/W1,R/W2夫々を端子85より出力する。更に、
動作決定部73の指示により端子86からバッファ51a〜52b
夫々にコントロール信号AIN1,AIN2,ABEN1,ABEN2、DIN1,
DIN2,DBEN1,DBEN2を供給し、かつ端子94からデータ転送
アクノリッジ信号ACK0〜3を出力する。
The terminal control unit 83 is supplied with the data complete signals DC1 and DC2 indicating the completion of the writing / reading of the data coming from the control buses 30c and 40c, respectively, to the terminal 84, and reports this to the operation determining unit 73 and also determines the operation. The data complete signal DC from the terminal 84 is output according to an instruction from the unit 73.
Similarly, the read / write signals R / W1 and R / W2 supplied from the terminal 85 are reported to the operation determining unit 73, and
Signal address strobe signal according to the instruction from the operation decision unit 73
AS1, AS2, data strobe signals DS1, DS2 and read / write signals R / W1, R / W2 are output from terminal 85, respectively. Furthermore,
From the terminal 86 to the buffers 51a to 52b according to an instruction from the operation determining unit 73.
Control signals AIN1, AIN2, ABEN1, ABEN2, DIN1, respectively
DIN2, DBEN1 and DBEN2 are supplied, and the data transfer acknowledge signals ACK0 to ACK3 are output from the terminal 94.

入出力制御部87は動作決定部73の指示によってバッフ
ァ51a,51bから端子88に入来するアドレスを内部アドレ
スを介して中央処理部72のレジスタ77及びコミュニケー
ションレジスタ91に供給すると共に、中央処理部72から
のアドレスを端子88からバッファ51a,51b夫々に供給す
る。また、バッファ52a,52bから端子89に入来するデー
タを内部データバスを介してレジスタ77及びコミュニケ
ーションレジスタ91に供給し、レジスタ77又はコミュニ
ケーションレジスタ91からのデータを端子89からバッフ
ァ52a,52bに供給する。また、入出力制御部87に内蔵さ
れたデータホールディングレジスタ90にはデュアル転送
時の転送データが格納される。
The input / output control unit 87 supplies the address coming from the buffers 51a and 51b to the terminal 88 to the register 77 and the communication register 91 of the central processing unit 72 via the internal address according to the instruction of the operation determining unit 73, and at the same time, the central processing unit. The address from 72 is supplied from the terminal 88 to each of the buffers 51a and 51b. Further, the data coming from the buffers 52a and 52b to the terminal 89 is supplied to the register 77 and the communication register 91 via the internal data bus, and the data from the register 77 or the communication register 91 is supplied from the terminal 89 to the buffers 52a and 52b. To do. Further, the data holding register 90 built in the input / output control unit 87 stores transfer data at the time of dual transfer.

コミュニケーションレジスタ91は第4図に示す構成で
ある。デコーダ101には内部アドレスバス102よりアドレ
スが供給され、また端子103a,103bを介してスレーブ制
御部74よりのリード要求信号,ライト要求信号が供給さ
れ、また端子104を介して動作決定部73よりのバス属性
信号が供給される。デーコダ101はこれらをデコードし
て第1図のメッセージバッファ27aであるメッセージバ
ッファ105と、通知手段27cであるステータスバッファ及
び割込み発生回路106との夫々にリードイネーブル信
号,ライトイネーブル信号を供給する。
The communication register 91 has the structure shown in FIG. An address is supplied to the decoder 101 from the internal address bus 102, a read request signal and a write request signal from the slave control unit 74 are supplied via the terminals 103a and 103b, and an operation determining unit 73 is supplied via the terminal 104. Bus attribute signals are supplied. The decoder 101 decodes these and supplies a read enable signal and a write enable signal to the message buffer 105 which is the message buffer 27a in FIG. 1 and the status buffer and interrupt generation circuit 106 which is the notifying means 27c.

メッセージバッファ105は内部データバス107に接続さ
れており、上記ライトイネーブル信号,リードイネーブ
ル信号に応じてCPU31又は41からのメッセージを書き込
み、かつ読み出す。
The message buffer 105 is connected to the internal data bus 107, and writes and reads a message from the CPU 31 or 41 according to the write enable signal and the read enable signal.

ステータスバッファ及び割込み発生回路106は内部デ
ータバス107と接続されており、第5図に示す構成であ
る。同図中、LCCRバッファ110はCPU31からコントローラ
ルビットLIEN,LICN,SINT及び4ビットのステータスLPS
が書き込まれ、SCCRバッファ111はCPU41からコントロー
ルビットSIEN,SICL,LINT及び4ビットのステータスSPS
が書き込まれる。上記のコントロールビットLIEN,SIEN
は割込みイネーブルであり、LINT,SINTは割り込み要求
であり、LICL,SICLは割込み要求をクリアする割込みク
リアである。
The status buffer and interrupt generation circuit 106 is connected to the internal data bus 107 and has the configuration shown in FIG. In the figure, the LCCR buffer 110 is controlled by the CPU 31 to control bits LIEN, LICN, SINT and 4-bit status LPS.
Is written to the SCCR buffer 111 from the CPU 41 to control bits SIEN, SICL, LINT and 4-bit status SPS.
Is written. Control bits above LIEN, SIEN
Is interrupt enable, LINT and SINT are interrupt requests, and LICL and SICL are interrupt clears that clear interrupt requests.

LCSRバッファ112はCPU31から読み出され、SCSRバッフ
ァ113はCPU41から読み出される。LCSRバッフ112のコン
トロールビットSIEN、ステータスSPS夫々はSCCRバッフ
ァ111の対応する内容がセットされ、またコントロール
ビットLISTはSCCRバッファ111のコントロールビットLIN
Tでセットされ、LCCRバッファ110のコントロールビット
LICLでクリアされ、更に割込みステータスビットSISTは
SCSRバッファ113の対応する内容がセットされる。SCSR
バッファ113については逆にLCCRバッファ110及びSCCRバ
ッファ111の内容より同様の設定がなされる。
The LCSR buffer 112 is read from the CPU 31, and the SCSR buffer 113 is read from the CPU 41. The control bit SIEN and status SPS of the LCSR buffer 112 are set to the corresponding contents of the SCCR buffer 111, and the control bit LIST is the control bit LIN of the SCCR buffer 111.
Control bit of LCCR buffer 110, set by T
It is cleared by LICL, and the interrupt status bit SIST
The corresponding contents of SCSR buffer 113 are set. SCSR
On the contrary, the buffer 113 has the same settings as the contents of the LCCR buffer 110 and the SCCR buffer 111.

アンド回路114はLCCRバッファ110のコントロールビッ
トLIENとLCSRバッファ112の割込みステータスビットLIS
TとからCPU31に対する割込み要求信号を生成し、アンド
回路115はSCCRバッファ111のコントロールビットLIENと
SCSRバッファ113の割込みステータスビットSISTとからC
PU41に対する割込み要求信号を生成し、これらの割込み
要求信号は第4図の端子107から第3図に示す割込み制
御部92に供給される。
The AND circuit 114 is a control bit LIEN of the LCCR buffer 110 and an interrupt status bit LIS of the LCSR buffer 112.
An interrupt request signal for the CPU 31 is generated from T and the AND circuit 115 outputs the control bit LIEN of the SCCR buffer 111.
Interrupt status bit SIST of SCSR buffer 113 and C
The interrupt request signals for the PU 41 are generated, and these interrupt request signals are supplied from the terminal 107 in FIG. 4 to the interrupt control unit 92 shown in FIG.

また、LCVRバッファ116、SCVRバッファ117夫々にはCP
U31,41夫々に対する割込みベクタが格納されており、こ
の割込みベクタはCPU31,41夫々に読み出される。
Also, the LCVR buffer 116 and SCVR buffer 117 each have a CP.
An interrupt vector for each of U31 and 41 is stored, and this interrupt vector is read out to each of CPU31 and 41.

第3図に戻って説明するに、割込み制御部92は中央処
理部72から供給されるデータ転送用の割り込み要求信号
とコミュニケーションレジスタ91から供給されるコミュ
ニケーション用の割込み要求信号とを供給され、CPU31
に対する割込み要求信号及びCPU41に対する割込み要求
信号を生成して端子93から出力する。
Returning to FIG. 3, the interrupt control unit 92 is supplied with the interrupt request signal for data transfer supplied from the central processing unit 72 and the interrupt request signal for communication supplied from the communication register 91, and the CPU 31
And an interrupt request signal for the CPU 41 are generated and output from the terminal 93.

ここで、例えばCPU31がメッセージバッファ105にメッ
セージをセットし、かつLCCRバッファ110の割込み要求
のコントロールビットSINTをセットしてCPU41に対して
割込み要求を行なう。このときCPU41がSCCRバッファ111
の割込みイネーブルコントロールビットSIENをセットし
ていればアンド回路115より割込み要求信号が出力さ
れ、割込制御部92を介してCPU41に割込み要求が通知さ
れる。
Here, for example, the CPU 31 sets a message in the message buffer 105, sets the control bit SINT of the interrupt request of the LCCR buffer 110, and makes an interrupt request to the CPU 41. At this time, the CPU 41 causes the SCCR buffer 111
If the interrupt enable control bit SIEN is set, the AND circuit 115 outputs an interrupt request signal, and the CPU 41 is notified of the interrupt request via the interrupt control unit 92.

CPU41は割込み要求を受け付けると割込み要求応答信
号IACK2をアサートし(真にする)、割込みアクノリッ
ジサイクルを実行する。このときSCVRバッファ117の割
込みベクタがCPU41に供給される。
When the CPU 41 receives the interrupt request, it asserts (sets true) the interrupt request response signal IACK2 and executes the interrupt acknowledge cycle. At this time, the interrupt vector of the SCVR buffer 117 is supplied to the CPU 41.

これによってCPU41はSCSRバッファ113の内容を読み取
ってCPU31からの割込みがあったことを知り、かつステ
ータスLPSの内容でCPU31がメッセージの受信を要求して
いることを知る。これによりCPU41はメッセージバッフ
ァ105を読み取り、このメッセージを受信する。
As a result, the CPU 41 reads the contents of the SCSR buffer 113 to know that there is an interrupt from the CPU 31, and also knows from the contents of the status LPS that the CPU 31 requests reception of a message. As a result, the CPU 41 reads the message buffer 105 and receives this message.

この後CPU41はSCCRバッファ111の割込みクリアのコン
トロールビットSICLをセットしてLCSRバッファ112及びS
CSRバッファ113の割込みステータスビットSISTをクリア
させ、通常の処理に移行する。
After this, the CPU 41 sets the interrupt clear control bit SICL of the SCCR buffer 111 to set the LCSR buffer 112 and SCR buffer.
The interrupt status bit SIST of the CSR buffer 113 is cleared and the normal processing is started.

上記の一連の動作によりCPU31からCPU41へのメッセー
ジ通信が行なわれる。
Message communication from the CPU 31 to the CPU 41 is performed by the series of operations described above.

更に、CPU31,41夫々からDMAコントローラ50のレジス
タ77又はコミュニケーションレシスタ91をアクセスする
スレーブ動作時の各種信号について説明する。
Further, various signals during slave operation for accessing the register 77 of the DMA controller 50 or the communication register 91 from the CPUs 31 and 41 will be described.

DMAコントローラ50には第6図(A)に示すクロックC
LKが供給されている。リード時には、CPU31から同図
(J)に示すLレベルのチップセレクト信号CS1を供給
されてDMAコントローラ50はスレーブモードとなり、サ
イクルTs1で同図(B),(C)に示すコントロール信
号ABEN1,AIN1をLレベルとしてCPU31からの同図(F)
に示すアドレスを取り込む。また同図(G)に示すHレ
ベルのリード/ライト信号R/W1によってサイクルTs4
同図(D)に示すコントロール信号DBEN1をLレベルと
する(信号DIN1は同図(E)の如くHレベル)。これに
よってコミュニケーションレジスタ91から読み出された
同図(H)に示すデータが出力され、更に同図(I)に
示すデータコンプリート信号DC1が出力される。
The clock C shown in FIG. 6 (A) is supplied to the DMA controller 50.
LK is supplied. At the time of reading, the CPU 31 supplies the L-level chip select signal CS1 shown in FIG. 9 (J) to the DMA controller 50 in the slave mode, and in cycle Ts 1 , the control signal ABEN1, shown in FIGS. Same figure from CPU31 with AIN1 as L level (F)
Take in the address shown in. Further, the control signal DBEN1 shown in FIG. 6D is set to L level in cycle Ts 4 by the H level read / write signal R / W1 shown in FIG. 7G (the signal DIN1 is set to H level as shown in FIG. level). As a result, the data shown in (H) of the figure read from the communication register 91 is output, and further the data complete signal DC1 shown in (I) of the figure is output.

ライト時には同図(K)〜(S)に示す如く、Lレベ
ルのリード/ライト信号R/W1によってコントロール信号
DBEN1,DIN1夫々がLレベルとなり、レジスタ77又はコミ
ュニケーションレジスタ91のCPU31より供給されたアド
レスにCPU31より供給されたデータが書き込まれる。
At the time of writing, as shown in (K) to (S) of the figure, the control signal is generated by the read / write signal R / W1 of L level
Each of DBEN1 and DIN1 becomes L level, and the data supplied from the CPU 31 is written to the address supplied from the CPU 31 of the register 77 or the communication register 91.

このようにDMAコントローラ50にはメッセージバッフ
ァ105の他に、アクセス制御手段27bであるスレーブ制御
部74及び通知手段27cであるステータスバッファ及び割
込み発生回路106が設けられているため、DMAコントロー
ラ50だけで外部回路を付加することなくCPU31,41間のメ
ッセージ通信を行なうことができ、ハードウエア点数が
少なくシステム設計が容易となる。
As described above, since the DMA controller 50 is provided with the slave controller 74 which is the access control means 27b and the status buffer and the interrupt generation circuit 106 which is the notification means 27c in addition to the message buffer 105, only the DMA controller 50 is provided. Message communication can be performed between the CPUs 31 and 41 without adding an external circuit, the number of hardware is small, and the system design is easy.

〔発明の効果〕〔The invention's effect〕

上述の如く、本発明のDMAコントローラによれば、外
部回路を付加する必要がなくハードウエア点数が少なく
て済み、システム設計が容易となり、実用上きわめて有
用である。
As described above, according to the DMA controller of the present invention, it is not necessary to add an external circuit, the number of hardware is small, the system design becomes easy, and it is extremely useful in practice.

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

第1図は本発明のDMAコントローラの原理ブロック図、 第2図は本発明のDMAコントローラを用いたシステムの
一実施例の構成図、 第3図は第2図のDMAコントローラのブロック図、 第4図はコミュニケーションレジスタのブロック図、 第5図はステータスバッファ及び割込み発生回路の構成
図、 第6図は第2図システムのスレーブ動作時の信号波形
図、 第7図は従来システムの各例の構成図である。 図において、 25a,25b,30,40はバス、26a,26bはバスマスタ、27は周辺
コントローラ、27a,105はメッセージバッファ、27bはア
クセス制御手段、27cは通知手段、31,41はCPU、32,42は
I/Oインターフェース、33、43はメモリ、50はDMAコント
ローラ、51a,51b,52a,52bはバッファ、70は転送要求制
御部、72は中央処理部、73は動作決定部、74はスレーブ
制御部、77はレジスタ、80はバス権制御部、83は端子制
御部、87は入出力制御部、91はコミュニケーションレジ
スタ、92は割込み制御部、106はステータスバッファ及
び割込み発生回路を示す。
1 is a block diagram of the principle of the DMA controller of the present invention, FIG. 2 is a block diagram of an embodiment of a system using the DMA controller of the present invention, FIG. 3 is a block diagram of the DMA controller of FIG. FIG. 4 is a block diagram of a communication register, FIG. 5 is a configuration diagram of a status buffer and an interrupt generation circuit, FIG. 6 is a signal waveform diagram during slave operation of the system of FIG. 2, and FIG. It is a block diagram. In the figure, 25a, 25b, 30 and 40 are buses, 26a and 26b are bus masters, 27 is a peripheral controller, 27a and 105 are message buffers, 27b is access control means, 27c is notification means, 31 and 41 are CPUs, 32, 42 is
I / O interfaces, 33 and 43 are memories, 50 is a DMA controller, 51a, 51b, 52a and 52b are buffers, 70 is a transfer request control unit, 72 is a central processing unit, 73 is an operation determining unit, and 74 is a slave control unit. , 77 is a register, 80 is a bus right control unit, 83 is a terminal control unit, 87 is an input / output control unit, 91 is a communication register, 92 is an interrupt control unit, and 106 is a status buffer and an interrupt generation circuit.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】複数のバス(25a,25b)夫々にバスマスタ
(26a,26b)を接続したシステムで該複数のバス(25a,2
5b)夫々に接続されて設けられる周辺コントローラ(2
7)であって、 該複数のバスマスタ(26a,26b)夫々からのメッセージ
を格納するメッセージバッファ(27a)と、 該複数のバスマスタ(26a,26b)夫々からの要求に応じ
て単一のバスマスタに該メッセージバッファ(27a)を
アクセスせしめるアクセス制御手段(27b)と、 該メッセージバッファ(27a)にメッセージが格納され
たことを該メッセージの送り先であるバスマスタに通知
する通知手段(27c)とを有し、 該複数のバスマスタ(26a,26b)間のメッセージ通信を
行なうことを特徴とするDMAコントローラ。
1. A system in which bus masters (26a, 26b) are connected to a plurality of buses (25a, 25b), respectively.
5b) Peripheral controllers (2
7) a message buffer (27a) for storing messages from each of the plurality of bus masters (26a, 26b) and a single bus master in response to a request from each of the plurality of bus masters (26a, 26b) An access control means (27b) for accessing the message buffer (27a), and a notification means (27c) for notifying the bus master, which is the destination of the message, that the message is stored in the message buffer (27a). A DMA controller characterized by performing message communication between the plurality of bus masters (26a, 26b).
JP5589888A 1988-02-25 1988-03-09 DMA controller Expired - Lifetime JP2504511B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP5589888A JP2504511B2 (en) 1988-03-09 1988-03-09 DMA controller
EP89102869A EP0330110B1 (en) 1988-02-25 1989-02-21 Direct memory access controller
KR1019890002249A KR910010137B1 (en) 1988-02-25 1989-02-25 Direct memory access controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5589888A JP2504511B2 (en) 1988-03-09 1988-03-09 DMA controller

Publications (2)

Publication Number Publication Date
JPH01229355A JPH01229355A (en) 1989-09-13
JP2504511B2 true JP2504511B2 (en) 1996-06-05

Family

ID=13011935

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5589888A Expired - Lifetime JP2504511B2 (en) 1988-02-25 1988-03-09 DMA controller

Country Status (1)

Country Link
JP (1) JP2504511B2 (en)

Also Published As

Publication number Publication date
JPH01229355A (en) 1989-09-13

Similar Documents

Publication Publication Date Title
CN106681816A (en) PCIe interrupting method and system
US5426737A (en) Direct memory access for data transfer within an I/O device
JP2504512B2 (en) DMA controller
US5481678A (en) Data processor including selection mechanism for coupling internal and external request signals to interrupt and DMA controllers
JP4350808B2 (en) Data processing system having display controller with burst direct memory access and method for periodically supplying instructions in the system
US20050144338A1 (en) Data transfer apparatus
JPH10143466A (en) Bus communication system
US5043935A (en) Data transfer system for rearranging data units using intermediate temporary registers
JP2504511B2 (en) DMA controller
JP2000029826A (en) Three-port fifo data buffer having multilevel caching
EP0330110B1 (en) Direct memory access controller
JP4642398B2 (en) Shared bus arbitration system
JPH0756803A (en) High-speed dma transfer device
JP3201439B2 (en) Direct memory access control circuit
JP2000132527A (en) Inter-processor communication controller
JPH1011411A (en) Interruption control system
JP2820054B2 (en) Bus interface device
JPH03119484A (en) Picture processor
JP2000132451A (en) Memory control circuit
JPH0561812A (en) Information processing system
JPH06168202A (en) Bus wait device
JPH02211571A (en) Information processor
JPH0628301A (en) Direct memory access circuit
JPH04120648A (en) Common bus connecting device
JPS62131356A (en) Peripheral control circuit of microprocessor system