JPH0363748A - Bus control system - Google Patents

Bus control system

Info

Publication number
JPH0363748A
JPH0363748A JP19793389A JP19793389A JPH0363748A JP H0363748 A JPH0363748 A JP H0363748A JP 19793389 A JP19793389 A JP 19793389A JP 19793389 A JP19793389 A JP 19793389A JP H0363748 A JPH0363748 A JP H0363748A
Authority
JP
Japan
Prior art keywords
bus
signal
dma controller
dma
mpu
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
JP19793389A
Other languages
Japanese (ja)
Inventor
Kenji Yamamoto
憲治 山本
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP19793389A priority Critical patent/JPH0363748A/en
Publication of JPH0363748A publication Critical patent/JPH0363748A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To enable processing to a response signal showing the execution of DMA operation regardless of the property of an MPU by once stopping an access to a DMA controller when the signal showing the execution of the DMA operation is received and controlling the interface of a common bus so as to restart the access afterwards. CONSTITUTION:Means 12 and 13 are provided to desave a bus interface control circuit 13 of an MPU part 10 when the signal showing the execution of the DMA operation is received and to enable the bus interface control circuit 13 gain afterwards. Thus, since it is not necessary to interrupt the operation of the MPU part 10, the MPU part 10 can be also used even without function to interrupt the cycle of the MPU part 10 by an external input signal and to execute the interrupted cycle again afterwards. Further, even when a DMA controller is under the DMA operation in the access that the MPU part 10 reads the vector of the DMA controller, it is enough to output the signal showing the DMA controller under the DMA operation and a circuit for outputting the special vector is not required.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明はマイクロコンピュータ装置におけるバス制御方
式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a bus control system in a microcomputer device.

(従来の技術) 従来、この種の装置は特開昭61−170857号公報
に開示されるものがあり、以下図面に基づいて説明する
(Prior Art) Conventionally, this type of device has been disclosed in Japanese Patent Laid-Open No. 170857/1985, and will be described below with reference to the drawings.

第5図は従来のマイクロコンピュータ装置の一構成例を
示すブロック図である。従来のマイクロコンピュータ装
置には、DMAコントローラが記憶装置間で行なうデー
タ転送サイクルでのDMAコントローラのバスアイドル
時間を除去してDMAコントローラがバスを専有する時
間を短くするための回路を設けられている。この従来の
マイクロコンピュータ装置によれば、バス権制御部20
により、1)MAコントローラ2がデータ転送サイクル
を実施するために、MPUP4O10止させることがな
いため、MPUP4O10MAコントローラ2の動作と
は無関係に動作することが可能である。例えば、MPU
P4O10憶装置との間に、図示していない専用のバス
を接続すれば、DMAコントローラ2が共通バス100
を使用していても、MPUP4O10用バスを介して記
憶装置をアクセスできる。従って、DMAコントローラ
2のバスアイドル時間中に、バス権制御部20からMP
UP4O10通バスのバス使用権が与えられた場合、M
PL1部10がバスアイドルサイクルとなっているDM
Aコントローラ2をアクセスするケースが起こりうる。
FIG. 5 is a block diagram showing an example of the configuration of a conventional microcomputer device. Conventional microcomputer devices are equipped with a circuit that eliminates the bus idle time of the DMA controller during data transfer cycles between storage devices, thereby shortening the time during which the DMA controller exclusively uses the bus. . According to this conventional microcomputer device, the bus control section 20
Therefore, 1) since the MA controller 2 does not stop the MPUP4O10 to perform a data transfer cycle, it is possible to operate independently of the operation of the MPUP4O10MA controller 2. For example, MPU
If a dedicated bus (not shown) is connected to the P4O10 storage device, the DMA controller 2 can connect to the common bus 100.
Even when using MPUP4O10, the storage device can be accessed via the MPUP4O10 bus. Therefore, during the bus idle time of the DMA controller 2, the MP
If the right to use the UP4O10 bus is granted, M
DM in which PL1 section 10 is in bus idle cycle
A case may occur in which the A controller 2 is accessed.

このため、この従来の装置では、MPU部IOに対し、
DMAコントローラ2動作中を示す信号140を発し、
MPU 10部に応答することにしている。これにより
、例えば、MPo 10部を米国モトローラ製のMC6
8020’“を使用したケースにおいては信号140を
°“MC68020”のB’ETR入力に接続すること
によりMPo 10部のサイクルを中断させることかで
きる。そして、BTR”R入力を受信した”MC680
20°゛は、バスエラー処理のソフトウェアを走行し始
め、処理の最後でRTE命令を実行すると、ErETR
入力によって中断したサイクル(ここではDMAコント
ローラ2へのアクセス)を再実行する。このようにして
、DMA動作中を示す信号がなくなるまでMPU io
部はDMAコントローラ2へのアクセスを繰り返す。
Therefore, in this conventional device, for the MPU section IO,
Emit a signal 140 indicating that the DMA controller 2 is in operation,
It is decided to respond to 10 MPUs. As a result, for example, 10 parts of MPo may be added to MC6 manufactured by Motorola, USA.
In the case of using a BTR 8020', it is possible to interrupt the cycle of 10 MPo units by connecting signal 140 to the B'ETR input of the MC68020.
20° starts running the bus error handling software and executes the RTE command at the end of the process, ErETR
The cycle interrupted by the input (here, access to the DMA controller 2) is re-executed. In this way, the MPU io
The unit repeatedly accesses the DMA controller 2.

また、DMAコントローラ2からの割込み要求に対して
、MPo 10部がDMAコントローラ2のベクタな読
むアクセスにおいて、DMAコントローラ2が動作中で
あった場合には、信号140を有効にしないで、かわり
にDMAコントローラ2がDMA動作中であることを示
す割込みベクタをバスのデータにのせ、MPLI 10
部に応答する回路を設けることにより、MPo 10部
のサイクルの終結が可能となる。この場合、DMAコン
トローラ2からの割込み要求をクリアしないで、RTE
命令を実行させると、” M C68020”はベクタ
を読むアクセスを再実行する。
In addition, in response to an interrupt request from the DMA controller 2, if the DMA controller 2 is in operation when the MPo 10 performs a vector read access of the DMA controller 2, the signal 140 is not enabled, but instead The DMA controller 2 places an interrupt vector indicating that DMA operation is in progress on the data on the bus, and the MPLI 10
By providing a circuit responsive to the 10-part cycle, termination of the MPo 10-part cycle is possible. In this case, without clearing the interrupt request from DMA controller 2, the RTE
When the instruction is executed, the "MC68020" re-executes the access to read the vector.

(発明が解決しようとする課題) しかしながら、上記従来の装置では次のような問題点が
ある。
(Problems to be Solved by the Invention) However, the above conventional device has the following problems.

(1)外部入力信号によってサイクルを中断でき、その
後中断されたサイクルを再実行できる機能を持たないM
PU部(例えば、インテル社製”180386”)では
、DMA動作中を示す応答信号が返ってきても本信号に
対する処理が不可能なため、上記のような装置では使用
できない。結果、DMAコントローラ2のバスアイドル
を除去して、バス専有時間を短くすることは不可能であ
る。
(1) M does not have the function of being able to interrupt a cycle by an external input signal and then re-executing the interrupted cycle.
The PU section (for example, "180386" manufactured by Intel Corporation) cannot process this signal even if a response signal indicating that DMA operation is in progress is returned, so it cannot be used in the above-mentioned device. As a result, it is impossible to eliminate the bus idle time of the DMA controller 2 and shorten the bus exclusive time.

(2)入力装置の制御は割込み方式が一般的であるため
、DMAコントローラがDMA動作中であることを示す
割込みベクタを発する回路は必須の構成要素である。本
回路は、DMAコントローラ1個につき1回路(ドライ
バIC1個、ゲート数個)必要であり、多数のDMAコ
ントローラを持つ場合、DMAコントローラの回路量が
多くなる。
(2) Since the input device is generally controlled by an interrupt method, a circuit that issues an interrupt vector indicating that the DMA controller is in DMA operation is an essential component. This circuit requires one circuit (one driver IC, several gates) for each DMA controller, and when a large number of DMA controllers are provided, the amount of circuitry of the DMA controller increases.

(3)中断されたサイクルを再実行するには、ソフトウ
ェアの手助けが必要である。しかし、本処理はハードウ
ェア上の競合をソフトウェアでリカバリすることである
ためソフトウェアから見れば無駄な処理である。また、
B’ETR入力によるサイクルの中断はメモリエラー等
の障害発生の通知手段として使用するのが一般的であり
、信号140の発生によるBTR”R入力は、障害発生
によるものでないため、バスエラー発生に対するソフト
ウェア処理のアルゴリズムが複雑となる。
(3) Software assistance is required to restart an interrupted cycle. However, this process is a wasteful process from the software perspective since it involves recovering hardware conflicts using software. Also,
The interruption of a cycle due to the B'ETR input is generally used as a means of notifying the occurrence of a failure such as a memory error, and the BTR''R input due to the generation of signal 140 is not due to the occurrence of a failure, so it is used as a means of notifying the occurrence of a failure such as a memory error. Software processing algorithms become complex.

本発明はこれらの問題点を解決するためのもので、MP
Uの特性に関係なく、DMA動作中を示す応答信号に対
する処理を可能とすると共に、DMAコントローラがD
MA動作中であることを示す割込みベクタを発する回路
を必要としない、かつソフトウェアによりリカバリ処理
を必要としないバス制御方式を提供することを目的とす
る。
The present invention is intended to solve these problems.
Regardless of the characteristics of U, it is possible to process a response signal indicating that DMA operation is in progress, and the DMA controller
It is an object of the present invention to provide a bus control method that does not require a circuit that issues an interrupt vector indicating that an MA is in operation, and does not require recovery processing by software.

(課題を解決すための手段) 本発明は前記問題点を解決するために、マイクロプロセ
ッサと、DMAコントローラと、入出力制御装置と、記
憶装置とを少なくとも共通バスに接続して構成し、かつ
共通バスのバス使用権の状態を監視するDMACバス権
制御部と、バス使用権を決定するバス権制御部とを有す
るマイクロコンピュータ装置であって、マイクロプロセ
ッサかDMAサイクル実行中のDMAコントローラをア
クセスした場合にDMA動作中を示す信号によりマイク
ロプロセッサに応答するバス制御方式において、DMA
動作中を示す信号を受信したときはマイクロプロセッサ
の動作を継続した状態で共通バス上に送出されたDMA
コントローラへのアクセスを一度終了させた後、DMA
コントローラへのアクセスを再開するようにマイクロプ
ロセッサの共通バスのインタフェースを制御する手段を
設けたことに特徴がある。
(Means for Solving the Problems) In order to solve the above problems, the present invention is configured by connecting at least a microprocessor, a DMA controller, an input/output control device, and a storage device to a common bus, and A microcomputer device having a DMAC bus right control unit that monitors the state of the right to use the bus of a common bus and a bus right control unit that determines the right to use the bus, the microcomputer device having a DMAC bus right control unit that monitors the state of the right to use the bus of a common bus, the microcomputer device having a DMAC bus right control unit that monitors the status of the right to use the bus of a common bus, and in which a microprocessor or a DMA controller that is executing a DMA cycle is accessed. In a bus control system that responds to the microprocessor with a signal indicating that the DMA is in operation when
When a signal indicating that the microprocessor is in operation is received, the DMA is sent out onto the common bus while the microprocessor continues to operate.
After terminating access to the controller, the DMA
The present invention is characterized by providing means for controlling the common bus interface of the microprocessor so as to resume access to the controller.

(作用) このような構成を有する本発明によれば、DMA動作中
を示す信号を受信したときはマイクロプロセッサの動作
を継続した状態で共通バス上に送出されたDMAコント
ローラへのアクセスを一度終了させる。その後、DMA
コントローラへのアクセスを再開するようにマイクロプ
ロセッサの共通バスのインタフェースを制御する。よっ
て、MPUの特性に関係なく、DMA動作中を示す応答
信号に対する処理を可能とすると共に、DMAコントロ
ーラがDMA動作中であることを示す割込みへフタな発
する回路を必要としない、かつソフトウェアによりリカ
バリ処理を必要としないバス制御方式を提供できる。
(Operation) According to the present invention having such a configuration, when a signal indicating that DMA operation is in progress is received, access to the DMA controller sent out on the common bus is once terminated while the microprocessor continues to operate. let After that, DMA
Controlling the microprocessor's common bus interface to resume access to the controller. Therefore, regardless of the characteristics of the MPU, it is possible to process a response signal indicating that DMA operation is in progress, and there is no need for a circuit that generates an interrupt indicating that the DMA controller is in DMA operation, and recovery can be performed by software. A bus control method that does not require processing can be provided.

(実施例) 以下、本発明の一実施例を図面に基づいて説明する。(Example) Hereinafter, one embodiment of the present invention will be described based on the drawings.

第1図は本発明の一実施例を示すブロック図である。同
図に示す本実施例のMPUP4O10システム全体の制
御を行なうMPUIIと、このMPUIIからのアドレ
スをデコードするアドレスゴーダ12、共通バス100
へのインタフェース制御を行なうバスインタフェース制
御回路13、MPUIIのアドレスを一時格納するアド
レスバッファ14及びデータを一時格納するバッファ1
5からなるバス制御回路とから構成される。
FIG. 1 is a block diagram showing one embodiment of the present invention. An MPUII that controls the entire MPUP4O10 system of this embodiment shown in the figure, an address gouda 12 that decodes addresses from this MPUII, and a common bus 100.
A bus interface control circuit 13 that controls the interface to the MPU II, an address buffer 14 that temporarily stores the address of the MPUII, and a buffer 1 that temporarily stores the data.
and a bus control circuit consisting of 5.

次に、MPUP4O10PUIIによるDMAコントロ
ーラ2へのアクセス動作の手順を説明する。
Next, the procedure for accessing the DMA controller 2 by MPUP4O10PUII will be explained.

(1)先ず、MPU 11がDMAコントローラ2を選
択するアドレスを出力する。これによりデコーダ12は
デコードされたアドレス信号202をバスインタフェー
ス制御回路13に出力する。同時に、MPUIIからア
ドレス有効を示す信号201もバスインタフェース制御
回路13に送出する。
(1) First, the MPU 11 outputs an address for selecting the DMA controller 2. As a result, the decoder 12 outputs the decoded address signal 202 to the bus interface control circuit 13. At the same time, a signal 201 indicating address validity is also sent from the MPUII to the bus interface control circuit 13.

(2)バスインタフェース制御回路13はバス使用権を
要求するバス使用要求信号110をバス権制御部20に
出力する。
(2) The bus interface control circuit 13 outputs a bus use request signal 110 requesting the right to use the bus to the bus right control section 20.

(3)このバス使用要求信号110に対し、バス権制御
部20は他の装置が共通バス100を占有していないこ
とを示す確認信号120をバスインタフェース制御回路
13に出力する。
(3) In response to this bus use request signal 110, the bus right control section 20 outputs a confirmation signal 120 to the bus interface control circuit 13 indicating that no other device occupies the common bus 100.

(4)この確認信号120に対し、バスインタフェース
制御回路13は信号130が無効状態であることを確認
して、信号130を有効にする。同時に、信号203を
発生して、アドレスバッファ14及びデータバッファ1
5をイネーブル状態とする。これにより、MPU1.1
からのアドレスおよびデータ(たたしライトサイクル時
)を共通バス100に送出する。
(4) In response to this confirmation signal 120, the bus interface control circuit 13 confirms that the signal 130 is in an invalid state and makes the signal 130 valid. At the same time, a signal 203 is generated to output address buffer 14 and data buffer 1.
5 is set to enable state. As a result, MPU1.1
The address and data (during a write cycle) are sent to the common bus 100.

その後、バスインタフェース制御回路13はDMAコン
トローラ2からの応答信号140または141か発せら
れるのを待っている。ここで、信号140はDMA動作
中を示す信号であり、信号141は正常な応答信号(D
!IIA動作中でないため、MPUIIからのクセスを
DMAコントローラ2が正常に受付けたことを示す)で
ある。信号141を受信した場合、バスインタフェース
制御回路13は、信号130 、203を無効にする。
Thereafter, the bus interface control circuit 13 waits for a response signal 140 or 141 to be issued from the DMA controller 2. Here, signal 140 is a signal indicating that DMA operation is in progress, and signal 141 is a normal response signal (D
! Since IIA is not in operation, this indicates that the DMA controller 2 has normally accepted the access from MPU II). When receiving signal 141, bus interface control circuit 13 disables signals 130 and 203.

これにより共通バス100上から、MPU 11のアド
レス・データ情報がなくなる。同時に、MPUIIに対
し、正常応答を示す信号204を出力する。これを受け
たMPUIIはDMAコントローラ2へのアクセスを終
了する。
As a result, the address/data information of the MPU 11 disappears from the common bus 100. At the same time, a signal 204 indicating a normal response is output to the MPU II. Upon receiving this, the MPU II terminates access to the DMA controller 2.

一方、信号140を受信した場合、バスインタフェース
制御回路13は上記と同様に信号130 、203を無
効にする。しかし、正常な応答でないため、信号104
は発生しない。従って、MPUIIはまたDMAコント
ローラ2へのアクセスを実行している状態にある。よっ
て、信号201 、202がまだ有効であるため、バス
インタフェース制御回路13は、再度上記(1)〜(5
)の手順を踏んで共通バス100にアドレス・データを
再送出する。以上のことを信号141を受信するまで繰
り返す。
On the other hand, when receiving signal 140, bus interface control circuit 13 invalidates signals 130 and 203 in the same manner as described above. However, since the response is not normal, the signal 104
does not occur. Therefore, the MPU II is also performing access to the DMA controller 2. Therefore, since the signals 201 and 202 are still valid, the bus interface control circuit 13 again performs the above (1) to (5).
) to resend the address data to the common bus 100. The above steps are repeated until signal 141 is received.

これにより、信号140によってMPUIIのサイクル
を中断させる必要はない。またソフトウェアによるリカ
バリ処理も不要となる。さらに、DMAコントローラ2
からの割込み要求に対してMPtlllがDMAコント
ローラ2のベクタを読むアクセスにおいて、DMAコン
トローラ2が動作中であった場合にも、DMAコントロ
ーラ2は信号140を送出するだけでよい。なぜなら、
MPUl0は信号141を受信するまで何度もベクタを
読むアクセスを繰り返すからである。よって、DMAコ
ントローラ2内にDMAコントローラ2がDMA動作中
であることを示す割込みベクタを発するための回路を設
ける必要はない。
This eliminates the need for signal 140 to interrupt the MPU II cycle. Also, recovery processing by software is not required. Furthermore, DMA controller 2
Even if the DMA controller 2 is in operation when MPtll reads the vector of the DMA controller 2 in response to an interrupt request from the DMA controller 2, the DMA controller 2 only needs to send out the signal 140. because,
This is because MPU10 repeats access to read the vector many times until it receives the signal 141. Therefore, there is no need to provide a circuit within the DMA controller 2 for issuing an interrupt vector indicating that the DMA controller 2 is performing a DMA operation.

次に、第1図のバスインタフェース制御回路13の構成
を第2図に示す。同図において、51.65はANDゲ
ート、54.55.56.57.58.60はNAND
ゲート、61.62はNORゲート、52.53.58
.66.67、68はD型フリップフロッフ、63.6
4はJK型ラフリップフロップある。信号202は゛′
L′ルベルであり、信号120 、140 、141 
、201は“H”レベルである。
Next, FIG. 2 shows the configuration of the bus interface control circuit 13 shown in FIG. 1. In the same figure, 51.65 is an AND gate, and 54.55.56.57.58.60 is a NAND gate.
Gate, 61.62 is NOR gate, 52.53.58
.. 66.67, 68 are D-type flip-flops, 63.6
4 is a JK type rough flip-flop. The signal 202 is
L' lebel, signals 120, 140, 141
, 201 are at "H" level.

また、D型フリップ・フロップ58の出力QとJK型フ
リッフ・フロップ63.64の出力Qは“HIIレベル
、D型フリップ・フロップ68の出力QはL 11レベ
ルである。
Further, the output Q of the D-type flip-flop 58 and the output Q of the JK-type flip-flops 63 and 64 are at the "HII level," and the output Q of the D-type flip-flop 68 is at the L11 level.

まず、上記手順(1)〜(5)における本回路の動き方
について説明する。
First, the operation of this circuit in steps (1) to (5) above will be explained.

MPUIIがDMAコントローラ2へのアクセスを開始
すると、信号201がL”レベル、信号202は“Hl
jレベルとなる。これによりANDゲート51がオンし
、D型フリップ・フロップ52.53の出力Qが“H゛
°°レベルり、信号110がL 11となる。その後、
バス権制御部20が信号120を“L″゛゛レベルる。
When the MPU II starts accessing the DMA controller 2, the signal 201 goes to "L" level and the signal 202 goes to "Hl" level.
J level. This turns on the AND gate 51, the outputs Q of the D-type flip-flops 52 and 53 go to the "H゛°° level, and the signal 110 goes to L11. After that,
The bus control unit 20 sets the signal 120 to "L" level.

続いて信号130が“H11レベルとなった時点でNA
NυANDゲート65がオンし、D型フリップ・フロッ
プ58の出力Qが“′H°゛レベルとなり、信号203
 、130は°“L′”レベルとなる。それ以降、信号
140または信号141が゛L°°レベルとなるまで本
状態は続く。
Then, when the signal 130 reaches the "H11 level", the NA
The NυAND gate 65 is turned on, the output Q of the D-type flip-flop 58 becomes "'H°" level, and the signal 203
, 130 are at the "L'" level. From then on, this state continues until the signal 140 or 141 reaches the "L°° level."

次に、信号140または信号141が“L”レベルとな
った時の、本回路の動作について説明する。
Next, the operation of this circuit when the signal 140 or the signal 141 becomes "L" level will be explained.

第3図は信号141が“L′″レベルとなった時の動作
タイムチャートである。信号141がL”レベルとなる
ことにより、JK型ラフリップフロップ63のJ入力が
“H”レベルとなり、信号204を′“L ITレベル
にする。同時に、ANDゲート65.51がオフし、D
型フリップ・フロップ52の出力Qが11 L ITレ
ベルとなる。その結果、信号130 、203はHII
レベルとなる。一方、“L I+レベルとなった信号2
04をMPUIIが受信すると、DMAコントローラ2
へのアクセスを終結するため、信号201は“Hパレベ
ル、信号202は“L°°レベルとなる。これによりJ
K型ラフリップフロップ63のに入力がH°”レベルと
なり信号204はH”レベルとなる。なお、共通バスに
出力されていたDMAコントローラ2を選択するアドレ
スが、信号203が“HIIレベルとなった時点でなく
なるため、信号141は信号203が゛°H゛レベルと
なった後に“H”レベルとなる。
FIG. 3 is an operation time chart when the signal 141 becomes "L'" level. When the signal 141 goes low, the J input of the JK type rough flip-flop 63 goes high, causing the signal 204 to go to the ``LIT'' level. At the same time, AND gate 65.51 turns off and D
The output Q of the type flip-flop 52 is at the 11 L IT level. As a result, signals 130, 203 are HII
level. On the other hand, the signal 2 which has become “L I+ level”
When the MPU II receives 04, the DMA controller 2
In order to terminate the access, the signal 201 goes to the "H" level and the signal 202 goes to the "L°°" level. This allows J
The input to the K-type rough flip-flop 63 becomes H°" level, and the signal 204 becomes H" level. Note that the address for selecting the DMA controller 2 that was output to the common bus disappears when the signal 203 reaches the "HII" level, so the signal 141 goes "H" after the signal 203 reaches the "HII" level. level.

第4図は信号140が゛L°゛レベルとなった時の動作
タイムチャートである。信号140がL 11レベルと
なることにより、JK型ラフリップフロップ64のJ入
力が“H”レベルとなる。その結果、JK型ラフリップ
フロップ64の出力Qが“L゛°°レベルり、ANDゲ
ート65.51をオフし、D型フリッフ・フロップ52
の出力Qが゛L゛°レベルとなる。
FIG. 4 is an operation time chart when the signal 140 is at the "L" level. When the signal 140 goes to the L11 level, the J input of the JK type rough flip-flop 64 goes to the "H" level. As a result, the output Q of the JK-type rough flip-flop 64 goes to the "L" level, turns off the AND gate 65.51, and the D-type flip-flop 52
The output Q of becomes "L" level.

よって、信号130 、203は“H°ルベルとなる。Therefore, the signals 130 and 203 become "H° level."

その後、JK型ラフリップフロップ64のJ入力を“°
H”ルベルにした信号は、D型クリップ・フロップ66
、67、68を経由した後、JK型ラフリップフロップ
64のに入力を“Hルベルとする。このとき、信号20
3は°H“ルベルとなっているため、JK型ラフリップ
フロップ64のJ入力はL 11レベルとなっている。
After that, the J input of the JK type rough flip-flop 64 is changed to “°
The signal converted to H” level is sent to the D-type clip flop 66.
, 67, and 68, the input to the JK type rough flip-flop 64 is set to "H level. At this time, the signal 20
3 is at the °H level, so the J input of the JK type rough flip-flop 64 is at the L11 level.

よって、JK型ラフリップフロップ64の出力Qは“′
H″レベルとなる。一方、信号141が゛L゛レベルと
なるケースと異なり、信号204は゛H″ルベルのまま
である。従って、MPUIIはDMAコントローラ2の
アクセスを継続している状態にある。よって、信号20
1は“L 1%レベル、信号202は゛H゛°レベルの
状態にあるため、JK型ラフリップフロップ64の出力
Qが゛H″ルベルとなった時点で、上記手順(1)〜(
5)における動作を再度行なう。この動作は、応答信号
として信号140が“L゛ルベルなる間、繰り返される
Therefore, the output Q of the JK type rough flip-flop 64 is "'
On the other hand, unlike the case where the signal 141 becomes the "L" level, the signal 204 remains at the "H" level. Therefore, the MPU II continues to access the DMA controller 2. Therefore, signal 20
1 is at the "L 1% level" and the signal 202 is at the "H" level, so when the output Q of the JK type rough flip-flop 64 reaches the "H" level, the above steps (1) to (
Repeat the operation in 5). This operation is repeated while the signal 140 goes low as a response signal.

(発明の効果) 以上説明したように、本発明によれば、DMA動作中を
示す信号を受信するとMPU部のバスインタフェース制
御回路をデイセーブにし、その後再度バスインタフェー
ス制御回路をイネーブルにする手段を設けたので、MP
L1部の動作を中断させる必要がないため、外部入力信
号によりMPU部のサイクルを中断し、その後中断され
たサイクルを再実行できる機能を持たないMPU部も使
用できる。また、MPU部がDMAコントローラのベク
タを2売むアクセスにおいてDMAコントローラがDM
A動作中であった場合にも、DMAコントローラがDM
A動作中であることを示す信号を発するだけでよく、特
別なベクタを出力するための回路は必要としない。
(Effects of the Invention) As described above, according to the present invention, means is provided for disabling the bus interface control circuit of the MPU section when a signal indicating that DMA operation is in progress is received, and then enabling the bus interface control circuit again. Therefore, MP
Since there is no need to interrupt the operation of the L1 section, it is possible to use an MPU section that does not have a function of interrupting the cycle of the MPU section using an external input signal and then re-executing the interrupted cycle. Also, in the access where the MPU unit sells 2 vectors of the DMA controller, the DMA controller
Even if A is in operation, the DMA controller
It is only necessary to issue a signal indicating that A is in operation, and no special circuit for outputting a vector is required.

さらに、DMA動作中を示す信号が送られても、ソフト
ウェアによるリカバリ処理は必要としない。
Furthermore, even if a signal indicating that a DMA operation is in progress is sent, no recovery processing by software is required.

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

第1図は本発明の一実施例を示すブロック図、第2図は
本実施例におけるバスインタフェース制御回路の構成を
示す論理回路図、第3図及び第4図は本実施例の動作を
示すフローチャート、第5図は従来のマイクロコンピュ
ータ装置の一構成例を示すブロック図である。 10・ 11◆ 12・ 13・ 14・ 15・ 00 MPU部、 詐PU 1 アドレスデコーダ、 バスインタフェース制御回路、 アドレスバッファ、 データバッファ、 ・共通バス。 !!’!尋いノ”4ングプエ〜又4ン11乏pBりΣS
第 図 第 図
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a logic circuit diagram showing the configuration of a bus interface control circuit in this embodiment, and FIGS. 3 and 4 show the operation of this embodiment. Flowchart, FIG. 5 is a block diagram showing an example of the configuration of a conventional microcomputer device. 10・11◆ 12・13・14・15・00 MPU section, fraudulent PU 1 Address decoder, bus interface control circuit, address buffer, data buffer, ・Common bus. ! ! '! Hiroi no "4 ng pue ~ also 4 n 11 poor pBri ΣS
Figure Figure

Claims (1)

【特許請求の範囲】 マイクロプロセッサと、DMAコントローラと、入出力
制御装置と、記憶装置とを少なくとも共通バスに接続し
て構成し、かつ前記共通バスのバス使用権の状態を監視
するDMACバス権制御部と、バス使用権を決定するバ
ス権制御部とを有するマイクロコンピュータ装置であっ
て、前記マイクロプロセッサがDMAサイクル実行中の
前記DMAコントローラをアクセスした場合にDMA動
作中を示す信号により前記マイクロプロセッサに応答す
るバス制御方式において、 DMA動作中を示す信号を受信したときは前記マイクロ
プロセッサの動作を継続した状態で前記共通バス上に送
出された前記DMAコントローラへのアクセスを一度終
了させた後、前記DMAコントローラへのアクセスを再
開するように前記マイクロプロセッサの前記共通バスの
インタフェースを制御することを特徴とするバス制御方
式。
[Scope of Claims] A DMAC bus right configured by connecting at least a microprocessor, a DMA controller, an input/output control device, and a storage device to a common bus, and that monitors the state of bus usage rights of the common bus. A microcomputer device comprising a control unit and a bus right control unit that determines bus usage rights, wherein when the microprocessor accesses the DMA controller during execution of a DMA cycle, the microcomputer device In a bus control system that responds to a processor, when a signal indicating that DMA operation is in progress is received, the operation of the microprocessor is continued, and the access to the DMA controller sent out on the common bus is once terminated. . A bus control method, comprising: controlling an interface of the common bus of the microprocessor so as to resume access to the DMA controller.
JP19793389A 1989-08-01 1989-08-01 Bus control system Pending JPH0363748A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19793389A JPH0363748A (en) 1989-08-01 1989-08-01 Bus control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19793389A JPH0363748A (en) 1989-08-01 1989-08-01 Bus control system

Publications (1)

Publication Number Publication Date
JPH0363748A true JPH0363748A (en) 1991-03-19

Family

ID=16382704

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19793389A Pending JPH0363748A (en) 1989-08-01 1989-08-01 Bus control system

Country Status (1)

Country Link
JP (1) JPH0363748A (en)

Similar Documents

Publication Publication Date Title
JPH0430053B2 (en)
US4731736A (en) Method and apparatus for coordinating execution of an instruction by a selected coprocessor
JPH03109644A (en) Microcomputer
US4758950A (en) Method and apparatus for selectively delaying an interrupt of a coprocessor
US4914578A (en) Method and apparatus for interrupting a coprocessor
JPH1063610A (en) Data processor provided with dma function
JPH0363748A (en) Bus control system
US5931930A (en) Processor that indicates system bus ownership in an upgradable multiprocessor computer system
JP2584903B2 (en) External device control method
JPH03225546A (en) Method for confirming whether option board is mounted or not
JPS603049A (en) Bus interface apparatus
JPS61160144A (en) Emulation system
JPH023217B2 (en)
JPS6336543B2 (en)
JPH0229848A (en) System control device
JPH0293971A (en) Memory access circuit
JPS59133629A (en) Dma transfer control system
JPH03226882A (en) Single chip microcomputer
JPH01144151A (en) Information processor
JPH0460858A (en) Interruption address setting controlling system
JPH0619827A (en) Peripheral controller
JPH01120634A (en) Interruption controller
JPS60136853A (en) Data transfer system
JPS62269237A (en) Data processor
JPH0424733B2 (en)