JPH11143823A - Computer device and bus control method applied to the device - Google Patents
Computer device and bus control method applied to the deviceInfo
- Publication number
- JPH11143823A JPH11143823A JP30592597A JP30592597A JPH11143823A JP H11143823 A JPH11143823 A JP H11143823A JP 30592597 A JP30592597 A JP 30592597A JP 30592597 A JP30592597 A JP 30592597A JP H11143823 A JPH11143823 A JP H11143823A
- Authority
- JP
- Japan
- Prior art keywords
- bus
- cpu
- priority
- external
- master
- 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
Links
Landscapes
- Bus Control (AREA)
Abstract
(57)【要約】
【課題】CPUの動作状態に基づいて、外部バスマスタ
のバス要求を保留にすることにより、優先的な処理に必
要なCPUの動作を確実に実行できるようにすることに
ある。
【解決手段】CPU1、ローカルバス2、バス・アービ
トレーション回路3を有するマイクロコンピュータにお
いて、バス・アービトレーション回路3はCPU監視ロ
ジック回路5によるCPU1の特定動作状態時には、外
部バスマスタ7からのバス要求BREQを保留する。こ
れにより、CPU1のバス優先権を確保し、CPU1は
例えば一定時間内に処理を処理を終了すべき特定動作を
確実に実行する。
(57) Abstract: A bus request of an external bus master is put on hold based on an operating state of a CPU, so that an operation of the CPU required for a priority process can be reliably executed. . In a microcomputer having a CPU, a local bus, and a bus arbitration circuit, the bus arbitration circuit holds a bus request from an external bus master when a specific operation state of the CPU by a CPU monitoring logic circuit. I do. As a result, the bus priority of the CPU 1 is ensured, and the CPU 1 reliably executes, for example, a specific operation for which the processing should be completed within a certain time.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、1チップ内にCP
U、バス、及びバス制御回路を集積化したマイクロコン
ピュータに適用し、特に外部バスマスタ機能を有するコ
ンピュータ装置に関するBACKGROUND OF THE INVENTION The present invention relates to a CP
The present invention is applied to a microcomputer in which U, bus, and bus control circuits are integrated, and particularly relates to a computer device having an external bus master function.
【0002】[0002]
【従来の技術】従来、例えば組み込み用マイコンに使用
される1チップのマイクロコンピュータには、CPU
(CPUコア)以外に、CPUがI/Oデバイスやメモ
リをアクセスするためのバス(以下ローカルバスと呼
ぶ)及び当該ローカルバスの調停制御(バスアービトレ
ーション)を行なうためのバスアービトレーション回路
を集積化して内蔵した方式が開発されている。2. Description of the Related Art Conventionally, for example, a one-chip microcomputer used for an embedded microcomputer includes a CPU.
In addition to the (CPU core), a bus (hereinafter referred to as a local bus) for the CPU to access an I / O device and a memory and a bus arbitration circuit for performing arbitration control (bus arbitration) of the local bus are integrated. Built-in methods have been developed.
【0003】さらに、当該方式に外部バスマスタ機能を
付加したマイクロコンピュータが開発されている。外部
バスマスタ機能とは、外部のあるI/Oデバイスが、ロ
ーカルバスの使用権を得て、当該ローカルバスに接続さ
れている他のI/Oデバイスやメモリをアクセスできる
機能である。Further, microcomputers have been developed in which an external bus master function is added to this system. The external bus master function is a function in which a certain external I / O device obtains a right to use a local bus and can access another I / O device or memory connected to the local bus.
【0004】バスアービトレーション回路は、外部バス
マスタからバス要求があると、CPUのバス使用権との
調停を行なうことになる。ここで、CPUのバス使用権
が常に優先順位が高いとは限らず、外部バスマスタから
のバス要求に応じて、CPUの動作内容とは無関係に外
部バスマスタにローカルバスの使用権を与える場合があ
る。The bus arbitration circuit arbitrates the right to use the bus of the CPU when there is a bus request from an external bus master. Here, the right to use the bus of the CPU is not always high in priority, and the right to use the local bus may be given to the external bus master in response to a bus request from the external bus master regardless of the operation content of the CPU. .
【0005】[0005]
【発明が解決しようとする課題】前述したように、従来
の外部バスマスタ機能を有するマイクロコンピュータで
は、外部バスマスタが、CPUの動作内容とは無関係に
ローカルバスの使用権を得て、当該ローカルバスに接続
されている他のI/Oデバイスやメモリをアクセスする
場合がある。しかしながら、CPUの動作内容には、一
定時間内に処理を終了する必要のあるプロセスがある。
CPUが当該プロセスの実行時に、外部バスマスタのバ
ス要求に応じてローカルバスの使用権が移行すると、当
然ながら、CPUはローカルバスの使用権を失って、メ
モリアクセスなどのアクセスが不可能になり、一定時間
内に当該プロセスの処理が終了できない事態が発生す
る。このようなCPUのいわばクリティカルなプロセス
処理時には、外部バスマスタからのバス要求を保留にす
ることが望ましい。As described above, in the conventional microcomputer having the external bus master function, the external bus master obtains the right to use the local bus irrespective of the operation of the CPU, and gives the right to use the local bus. In some cases, another connected I / O device or memory is accessed. However, in the operation content of the CPU, there is a process that needs to end the processing within a certain time.
When the CPU shifts the right to use the local bus in response to a bus request from the external bus master during execution of the process, the CPU loses the right to use the local bus, so that access such as memory access becomes impossible. A situation occurs in which the processing of the process cannot be completed within a certain time. It is desirable to suspend a bus request from an external bus master during such a critical process of the CPU.
【0006】そこで、本発明の目的は、CPUの動作状
態に基づいて、外部バスマスタのバス要求を保留にする
ことにより、優先的な処理に必要なCPUの動作を確実
に実行できるようにすることにある。An object of the present invention is to suspend the bus request of an external bus master based on the operation state of the CPU so that the operation of the CPU required for priority processing can be executed reliably. It is in.
【0007】[0007]
【課題を解決するための手段】本発明は、CPU、バ
ス、及びバス・アービトレーション機能を有するバス制
御手段を1チップ内に集積化したコンピュータ装置にお
いて、当該バス制御手段が、CPUの動作状態に応じて
外部バスマスタ機能を保留する手段を備えたコンピュー
タ装置に適用する。外部バスマスタ機能とは、CPU以
外のI/Oデバイスなどが外部バスマスタ手段として、
CPUに接続したローカルバスの使用権を得て、当該ロ
ーカルバスに接続されている他のI/Oデバイスやメモ
リをアクセスできる機能である。SUMMARY OF THE INVENTION The present invention relates to a computer device in which a CPU, a bus, and a bus control means having a bus arbitration function are integrated in one chip. The present invention is applied to a computer device having means for suspending the external bus master function accordingly. The external bus master function means that an I / O device other than the CPU is used as an external bus master means.
This function obtains the right to use the local bus connected to the CPU and can access other I / O devices and memories connected to the local bus.
【0008】本発明は、CPUがローカルバスを使用し
て、例えば割り込み処理などの一定時間内に処理を終了
する必要のあるプロセスを実行しているときに、当該バ
ス制御手段は外部バスマスタ手段からのバス使用権を保
留し、当該CPUのバス優先権を確保するように制御す
る。従って、CPUはいわばクリティカルなプロセス処
理時に、確実にローカルバスの使用権を確保して、一定
時間内に当該プロセスの処理を終了することができる。According to the present invention, when the CPU is using a local bus to execute a process, such as an interrupt process, which needs to be terminated within a certain period of time, the bus control means is connected to the external bus master means. , And control is exercised to secure the bus priority of the CPU. Therefore, the CPU can secure the right to use the local bus during the processing of a critical process, so that the processing of the process can be completed within a predetermined time.
【0009】具体的には、本発明はCPUの予め設定さ
れた特定動作状態を監視する監視手段を有し、当該バス
制御手段は監視手段によりCPUの特定動作状態を認識
した場合には、当該CPUのバス優先権を確保し、当該
外部バスマスタからのバス使用権を保留する。監視手段
は、例えばCPUの特定動作状態時にフラグなどの情報
をセットするためのロジック回路を有する。More specifically, the present invention has a monitoring means for monitoring a predetermined specific operating state of the CPU, and the bus control means, when the specific operating state of the CPU is recognized by the monitoring means, the monitoring means. The bus priority of the CPU is secured, and the right to use the bus from the external bus master is suspended. The monitoring means has a logic circuit for setting information such as a flag when the CPU is in a specific operation state, for example.
【0010】本発明の別の観点として、CPUのバス優
先権を所定の時間だけ確保する優先時間の経過を監視す
るためのタイマ手段を有し、当該バス制御手段は外部バ
スマスタからのバス使用権の要求を受けたときに、当該
タイマ手段により優先時間の経過前であることを認識し
たときに当該CPUのバス優先権を確保し、外部バスマ
スタのバス使用権を保留する。このような方式において
も、CPUはいわばクリティカルなプロセス処理時に、
確実にローカルバスの使用権を確保して、一定時間内に
当該プロセスの処理を終了することができる。As another aspect of the present invention, there is provided timer means for monitoring the elapse of a priority time for securing a bus priority of a CPU for a predetermined time, and the bus control means includes a bus use right from an external bus master. When the request is received, the timer means recognizes that the priority time has not elapsed, and secures the bus priority of the CPU and suspends the bus use right of the external bus master. Even in such a method, the CPU can perform a so-called critical process.
The right to use the local bus is surely secured, and the processing of the process can be completed within a certain time.
【0011】[0011]
【発明の実施の形態】以下図面を参照して本発明の実施
の形態を説明する。図1は第1の実施形態に関係するコ
ンピュータ装置の構成を示すブロック図であり、図2は
同実施形態の動作を説明するためのフローチャートであ
る。 (第1の実施形態)本装置10は、図1に示すように、
CPUコア(以下単にCPUと称する)1、ローカルバ
ス2、およびバス・アービトレーション回路(バス制御
手段)3を1チップ内に集積化したマイクロコンピュー
タである。さらに、本装置10は、外部バスマスタ機能
を制御するための外部バスマスタ制御部4を有する。こ
の外部バスマスタ制御部4は、CPU監視ロジック回路
5およびアンドゲート回路6からなる。Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of a computer device related to the first embodiment, and FIG. 2 is a flowchart for explaining the operation of the same embodiment. (First Embodiment) As shown in FIG.
This is a microcomputer in which a CPU core (hereinafter simply referred to as a CPU) 1, a local bus 2, and a bus arbitration circuit (bus control means) 3 are integrated in one chip. Further, the device 10 has an external bus master control unit 4 for controlling an external bus master function. The external bus master control unit 4 includes a CPU monitoring logic circuit 5 and an AND gate circuit 6.
【0012】CPU監視ロジック回路5は、CPU1の
内部動作状態の中で特定の動作状態を監視するための回
路であり、具体的には例えば割り込み処理時に当該動作
状態を示す情報を保持するためのフリップフロップを有
する。アンドゲート回路6は、外部バスマスタ7からの
バス要求BREQのバス・アービトレーション回路3へ
の転送を制御するためのゲート回路であり、CPU監視
ロジック回路5に保持された情報により制御する。The CPU monitoring logic circuit 5 is a circuit for monitoring a specific operation state among the internal operation states of the CPU 1, and more specifically, for holding information indicating the operation state at the time of interrupt processing, for example. It has a flip-flop. The AND gate circuit 6 is a gate circuit for controlling the transfer of the bus request BREQ from the external bus master 7 to the bus arbitration circuit 3, and is controlled by information held in the CPU monitoring logic circuit 5.
【0013】バス・アービトレーション回路3は、CP
U1と外部バスマスタ7とのローカルバス2の使用権を
調停する機能を有する。本実施形態では、バス・アービ
トレーション回路3は、外部バスマスタ制御部4のアン
ドゲート回路6から外部バスマスタ7からのバス要求B
REQを受けたときに、外部バスマスタ7に対してロー
カルバス2の使用を認めるグラント信号BGNTを出力
する。The bus arbitration circuit 3 has a CP
It has a function of arbitrating the right to use the local bus 2 between U1 and the external bus master 7. In the present embodiment, the bus arbitration circuit 3 sends the bus request B from the external bus master 7 to the AND gate circuit 6 of the external bus master control unit 4.
When receiving the REQ, the external bus master 7 outputs a grant signal BGNT for acknowledging the use of the local bus 2.
【0014】ここで、外部バスマスタ7は、CPU1以
外に、ローカルバス2に接続されたメモリやI/Oデバ
イスなどをアクセスするために、ローカルバス2を使用
するI/Oデバイスなどを想定する。外部バスマスタ7
がローカルバス2の優先権を得ると、当該優先権の期間
ではCPU1はローカルバス2の使用が不可となる。 (第1の実施形態の動作)以下図1と共に、図2のフロ
ーチャートを参照して同実施形態の動作を説明する。Here, the external bus master 7 is assumed to be an I / O device that uses the local bus 2 in order to access a memory or an I / O device connected to the local bus 2 in addition to the CPU 1. External bus master 7
Obtains the priority of the local bus 2, the CPU 1 cannot use the local bus 2 during the period of the priority. (Operation of the First Embodiment) The operation of the first embodiment will be described below with reference to the flowchart of FIG. 2 together with FIG.
【0015】まず、CPU1からローカルバス2の使用
権を得るためのバス要求があると、バス・アービトレー
ション回路3はグラント信号BGNTを出力して、CP
U1にローカルバス2の優先権を与える(ステップS
1,S2)。CPU1は、ローカルバス2を使用して、
ローカルバス2に接続されたメモリやI/Oデバイスな
どをアクセスするデータ処理動作を実行する。First, when there is a bus request from the CPU 1 to obtain the right to use the local bus 2, the bus arbitration circuit 3 outputs a grant signal BGNT and
U1 is given priority over the local bus 2 (step S1).
1, S2). The CPU 1 uses the local bus 2 to
A data processing operation for accessing a memory or an I / O device connected to the local bus 2 is executed.
【0016】当該CPU1の動作中に、外部バスマスタ
7からローカルバス2の使用権を得るためのバス要求B
REQが出力されると、外部バスマスタ制御部4におい
てCPU1の内部動作がチェックされる(ステップS3
のYES,S4)。ここで、CPU監視ロジック回路5
は、CPU1が予め設定した特定動作(例えば割り込み
処理)を実行しているときには、当該動作状態を示す情
報を保持している。アンドゲート回路6は、CPU監視
ロジック回路5が当該情報を保持しているときには、外
部バスマスタ7からのバス要求BREQの転送を禁止す
るように機能する。A bus request B for obtaining the right to use the local bus 2 from the external bus master 7 during the operation of the CPU 1
When REQ is output, the external bus master control unit 4 checks the internal operation of the CPU 1 (step S3).
YES, S4). Here, the CPU monitoring logic circuit 5
Holds information indicating the operation state when the CPU 1 is executing a specific operation (for example, interrupt processing) set in advance. The AND gate circuit 6 functions to inhibit the transfer of the bus request BREQ from the external bus master 7 when the CPU monitoring logic circuit 5 holds the information.
【0017】即ち、CPU1が例えば割り込み処理など
の特定動作を実行中であれば、外部バスマスタ7からバ
ス要求BREQが出力されても、バス・アービトレーシ
ョン回路3はグラント信号BGNTを外部バスマスタ7
には出力せずに、CPU1のローカルバス2の優先権を
確保している(ステップS5のYES,S6)。換言す
れば、CPU1の特定動作状態の期間では、外部バスマ
スタ7のバス要求BREQは保留の状態となる。That is, if the CPU 1 is executing a specific operation such as an interrupt process, the bus arbitration circuit 3 outputs the grant signal BGNT to the external bus master 7 even if the bus request BREQ is output from the external bus master 7.
, The priority of the local bus 2 of the CPU 1 is secured (YES in step S5, S6). In other words, during the period of the specific operation state of the CPU 1, the bus request BREQ of the external bus master 7 is suspended.
【0018】一方、アンドゲート回路6は、CPU監視
ロジック回路5が当該情報を保持していないとき(CP
U1の特定動作状態の解除を含む)には、外部バスマス
タ7からのバス要求BREQをバス・アービトレーショ
ン回路3に転送する(ステップS5のNO)。バス・ア
ービトレーション回路3は、外部バスマスタ7からのバ
ス要求BREQに応じて、グラント信号BGNTを外部
バスマスタ7に出力し、ローカルバス2の使用権を与え
る(ステップS7)。これにより、外部バスマスタ7
は、ローカルバス2を使用してローカルバス2に接続さ
れたメモリやI/Oデバイスなどをアクセスすることが
可能となる。外部バスマスタ7がローカルバス2の優先
権を得ると、当該優先権の期間ではCPU1はローカル
バス2の使用が不可となる。On the other hand, when the CPU monitoring logic circuit 5 does not hold the information (CP
To release the specific operation state of U1, the bus request BREQ from the external bus master 7 is transferred to the bus arbitration circuit 3 (NO in step S5). The bus arbitration circuit 3 outputs a grant signal BGNT to the external bus master 7 in response to the bus request BREQ from the external bus master 7, and gives the right to use the local bus 2 (step S7). Thereby, the external bus master 7
Can access a memory, an I / O device, and the like connected to the local bus 2 using the local bus 2. When the external bus master 7 obtains the priority of the local bus 2, the CPU 1 cannot use the local bus 2 during the period of the priority.
【0019】以上のように本実施形態によれば、CPU
1の内部動作状態を監視して、特定動作状態時には、外
部バスマスタ7からバス要求BREQが出力されても、
当該バス要求BREQを保留にする。従って、CPU1
のローカルバス2の優先権を確保することにより、CP
U1は例えば割り込み処理などのクリティカルな特定動
作を続行し、一定時間内に処理を終了することが可能と
なる。 (第1の実施形態の変形例)図3は同実施形態の変形例
に関係するブロック図である。As described above, according to the present embodiment, the CPU
1 is monitored, and in the specific operation state, even if the bus request BREQ is output from the external bus master 7,
The bus request BREQ is put on hold. Therefore, CPU1
By securing the priority of the local bus 2 of the
U1 can continue a critical specific operation such as an interrupt process, for example, and end the process within a certain time. (Modification of First Embodiment) FIG. 3 is a block diagram related to a modification of the first embodiment.
【0020】本変形例は、CPU監視ロジック回路5お
よびアンドゲート回路6以外に、CPU1の当該特定動
作状態を示す情報を保持するためのレジスタ20及びア
ンドゲート回路21を有する外部バスマスタ制御部14
を備えている。This modified example is an external bus master control unit 14 having a register 20 for holding information indicating the specific operation state of the CPU 1 and an AND gate circuit 21 in addition to the CPU monitoring logic circuit 5 and the AND gate circuit 6.
It has.
【0021】レジスタ20は、アプリケーション・プロ
グラムにより情報がセットされて、かつ変更できるよう
に構成されている。アンドゲート回路21は、レジスタ
20にセットされた情報とCPU監視ロジック回路5に
保持された情報とが一致しているときに、アンドゲート
回路6にゲートを開く制御信号を出力する。即ち、アン
ドゲート回路6はアンドゲート回路21からの制御信号
に応じて、レジスタ20の情報とCPU監視ロジック回
路5の情報とが一致したときに、外部バスマスタ7から
のバス要求BREQをバス・アービトレーション回路3
に転送する。The register 20 is configured so that information can be set and changed by an application program. The AND gate circuit 21 outputs a control signal for opening the gate to the AND gate circuit 6 when the information set in the register 20 matches the information held in the CPU monitoring logic circuit 5. That is, the AND gate circuit 6 responds to the control signal from the AND gate circuit 21 when the information of the register 20 and the information of the CPU monitoring logic circuit 5 match, and the bus request BREQ from the external bus master 7 is bus arbitrated. Circuit 3
Transfer to
【0022】このような変形例の方式であれば、ローカ
ルバス2の優先権を確保するためのCPU1の特定動作
状態をアプリケーション・プログラムにより変更するこ
とが容易となる。前述の第1の実施形態では、CPU監
視ロジック回路5により監視される特定動作状態は予め
設定されている。これに対して、本変形例では、レジス
タ20を使用することにより、当該特定動作状態の設定
を変更することができるため、割り込み処理等の動作だ
けでなく、アプリケーション・プログラムの実行に必要
なCPU1の特定動作状態をクリティカルな動作として
任意に設定することが可能となる。 (第2の実施形態)図4と図5は第2の実施形態に関係
するブロック図およびフローチャートである。本実施形
態は、タイマ回路22およびアンドゲート回路6を有す
る外部バスマスタ制御部24を備えたコンピュータ装置
である。According to such a modified example, it is easy to change the specific operation state of the CPU 1 for securing the priority of the local bus 2 by an application program. In the above-described first embodiment, the specific operation state monitored by the CPU monitoring logic circuit 5 is set in advance. On the other hand, in the present modified example, the setting of the specific operation state can be changed by using the register 20, so that not only the operation such as the interrupt processing but also the CPU 1 necessary for executing the application program is executed. Can be arbitrarily set as the critical operation state. (Second Embodiment) FIGS. 4 and 5 are a block diagram and a flowchart relating to the second embodiment. This embodiment is a computer device including an external bus master control unit 24 having a timer circuit 22 and an AND gate circuit 6.
【0023】タイマ回路22は、アプリケーション・プ
ログラムによりセットされる時間情報に従って、CPU
1の特定動作が開始してから所定の時間経過まで、アン
ドゲート回路6から外部バスマスタ7からのバス要求B
REQの転送を禁止するための制御信号を出力する。即
ち、タイマ回路22は、CPU1が特定動作を実行する
期間にローカルバス2の優先権を確保する優先時間を保
持するためのタイマ手段である。The timer circuit 22 operates according to time information set by an application program.
1 and the bus request B from the external bus master 7 from the AND gate circuit 6 until a predetermined time elapses.
A control signal for prohibiting REQ transfer is output. That is, the timer circuit 22 is a timer means for holding a priority time for securing the priority of the local bus 2 during the period when the CPU 1 executes the specific operation.
【0024】以下、図5のフローチャートを参照して同
実施形態の動作を説明する。まず、CPU1からローカ
ルバス2の使用権を得るためのバス要求があると、バス
・アービトレーション回路3はグラント信号BGNTを
出力して、CPU1にローカルバス2の優先権を与える
(ステップS10,S11)。CPU1は、ローカルバ
ス2を使用して、ローカルバス2に接続されたメモリや
I/Oデバイスなどをアクセスするデータ処理動作を実
行する。このとき、CPU1の動作が予め設定された特
定動作であれば、タイマ回路22は、アプリケーション
・プログラムにより所定の優先時間を確保するための時
間データをセットされる(ステップS12)。タイマ回
路22は、CPU1の特定動作の開始からセットされた
時間データまで計時動作を実行する。The operation of this embodiment will be described below with reference to the flowchart of FIG. First, when there is a bus request from the CPU 1 to obtain the right to use the local bus 2, the bus arbitration circuit 3 outputs a grant signal BGNT to give the CPU 1 priority over the local bus 2 (steps S10 and S11). . The CPU 1 uses the local bus 2 to execute a data processing operation for accessing a memory, an I / O device, and the like connected to the local bus 2. At this time, if the operation of the CPU 1 is a specific operation set in advance, the timer circuit 22 sets time data for securing a predetermined priority time by the application program (step S12). The timer circuit 22 performs a time counting operation from the start of the specific operation of the CPU 1 to the set time data.
【0025】当該CPU1の動作中に、外部バスマスタ
7からローカルバス2の使用権を得るためのバス要求B
REQが出力されると、外部バスマスタ制御部24で
は、タイマ回路22により経過時間がチェックされる
(ステップS14)。即ち、CPU1の特定動作状態が
開始してから所定の時間が経過されているか否かが判定
される。During the operation of the CPU 1, a bus request B for obtaining the right to use the local bus 2 from the external bus master 7
When REQ is output, in the external bus master control unit 24, the elapsed time is checked by the timer circuit 22 (step S14). That is, it is determined whether or not a predetermined time has elapsed since the specific operation state of the CPU 1 started.
【0026】タイマ回路22により当該優先時間の経過
前であれば、アンドゲート回路6は、外部バスマスタ7
からのバス要求BREQの転送を禁止している。従っ
て、CPU1が例えば割り込み処理などの特定動作を実
行中であれば、外部バスマスタ7からバス要求BREQ
が出力されても、バス・アービトレーション回路3はグ
ラント信号BGNTを外部バスマスタ7には出力せず
に、CPU1のローカルバス2の優先権を確保している
(ステップS14のNO,S15)。換言すれば、CP
U1の特定動作状態の期間のため、外部バスマスタ7の
バス要求BREQは保留の状態となる。If the priority time has not passed by the timer circuit 22, the AND gate circuit 6 sets the external bus master 7
The transfer of the bus request BREQ is prohibited. Therefore, if the CPU 1 is executing a specific operation such as an interrupt process, the bus request BREQ
Is output, the bus arbitration circuit 3 does not output the grant signal BGNT to the external bus master 7 and secures the priority of the local bus 2 of the CPU 1 (NO in step S14, S15). In other words, CP
Due to the period of the specific operation state of U1, the bus request BREQ of the external bus master 7 is in a suspended state.
【0027】一方、タイマ回路22による当該優先時間
の経過後またはタイマ回路22が非動作(CPU1が特
定動作以外の動作状態時)の場合には、アンドゲート回
路6は、外部バスマスタ7からのバス要求BREQをバ
ス・アービトレーション回路3に転送する(ステップS
14のYES)。バス・アービトレーション回路3は、
外部バスマスタ7からのバス要求BREQに応じて、グ
ラント信号BGNTを外部バスマスタ7に出力し、ロー
カルバス2の使用権を与える(ステップS16)。これ
により、外部バスマスタ7は、ローカルバス2を使用し
てローカルバス2に接続されたメモリやI/Oデバイス
などをアクセスすることが可能となる。外部バスマスタ
7がローカルバス2の優先権を得ると、当該優先権の期
間ではCPU1はローカルバス2の使用が不可となる。On the other hand, after the elapse of the priority time by the timer circuit 22 or when the timer circuit 22 is not operating (when the CPU 1 is in an operating state other than the specific operation), the AND gate circuit 6 controls the bus from the external bus master 7. The request BREQ is transferred to the bus arbitration circuit 3 (step S
14 YES). The bus arbitration circuit 3
In response to the bus request BREQ from the external bus master 7, a grant signal BGNT is output to the external bus master 7 to grant the right to use the local bus 2 (step S16). As a result, the external bus master 7 can use the local bus 2 to access a memory, an I / O device, and the like connected to the local bus 2. When the external bus master 7 obtains the priority of the local bus 2, the CPU 1 cannot use the local bus 2 during the period of the priority.
【0028】以上のように本実施形態によれば、CPU
1が特定動作を開始してから所定の時間だけローカルバ
ス2の優先時間として確保することができる。即ち、当
該優先時間中は、外部バスマスタ7からバス要求BRE
Qが出力されても、当該バス要求BREQを保留にし
て、CPU1のローカルバス2の優先権を維持すること
ができる。従って、CPU1は例えば割り込み処理など
のクリティカルな特定動作を終了するまで続行すること
が可能となる。 (第3の実施形態)図6と図8は第3の実施形態に関係
するブロック図およびフローチャートである。本実施形
態は、割り込みコントローラ23およびアンドゲート回
路6を有する外部バスマスタ制御部34を備えたコンピ
ュータ装置である。As described above, according to the present embodiment, the CPU
1 can be secured as a priority time of the local bus 2 for a predetermined time after the start of the specific operation. That is, during the priority time, the bus request BRE is
Even when Q is output, the bus request BREQ can be put on hold and the priority of the local bus 2 of the CPU 1 can be maintained. Therefore, the CPU 1 can continue until a critical specific operation such as an interrupt process is completed. (Third Embodiment) FIGS. 6 and 8 are a block diagram and a flowchart relating to the third embodiment. The present embodiment is a computer device including an external bus master control unit 34 having an interrupt controller 23 and an AND gate circuit 6.
【0029】割り込みコントローラ23は、CPU1に
対する外部割り込み信号が発生すると、CPU1に対し
て割り込み信号を出力すると共に、当該割り込み処理時
にアンドゲート回路6から外部バスマスタ7からのバス
要求BREQの転送を禁止するための制御信号を出力す
る。When an external interrupt signal to the CPU 1 is generated, the interrupt controller 23 outputs an interrupt signal to the CPU 1 and prohibits the transfer of the bus request BREQ from the external bus master 7 from the AND gate circuit 6 during the interrupt processing. Output a control signal for
【0030】以下、図8のフローチャートを参照して同
実施形態の動作を説明する。まず、CPU1からローカ
ルバス2の使用権を得るためのバス要求があると、バス
・アービトレーション回路3はグラント信号BGNTを
出力して、CPU1にローカルバス2の優先権を与える
(ステップS20,S21)。CPU1は、ローカルバ
ス2を使用して、ローカルバス2に接続されたメモリや
I/Oデバイスなどをアクセスするデータ処理動作を実
行する。The operation of this embodiment will be described below with reference to the flowchart of FIG. First, when there is a bus request for obtaining the right to use the local bus 2 from the CPU 1, the bus arbitration circuit 3 outputs a grant signal BGNT to give the CPU 1 priority over the local bus 2 (steps S20, S21). . The CPU 1 uses the local bus 2 to execute a data processing operation for accessing a memory, an I / O device, and the like connected to the local bus 2.
【0031】当該CPU1の動作中に、外部バスマスタ
7からローカルバス2の使用権を得るためのバス要求B
REQが出力されると、外部バスマスタ制御部34にお
いてCPU1が割り込み処理を実行している否かがチェ
ックされる(ステップS22のYES,S23)。即
ち、割り込みコントローラ23から外部割り込み信号に
応じて制御信号が出力されていると、アンドゲート回路
6は、外部バスマスタ7からのバス要求BREQの転送
を禁止する。従って、CPU1は割り込み処理を実行中
であるため、外部バスマスタ7からバス要求BREQが
出力されても、バス・アービトレーション回路3はグラ
ント信号BGNTを外部バスマスタ7には出力せずに、
CPU1のローカルバス2の優先権を確保している(ス
テップS23のYES,S25)。換言すれば、CPU
1が割り込み処理の期間では、外部バスマスタ7のバス
要求BREQは保留の状態となる。ここで、ステップ2
4の処理については、変形例として後述する。During the operation of the CPU 1, a bus request B for obtaining the right to use the local bus 2 from the external bus master 7
When the REQ is output, the external bus master control unit 34 checks whether or not the CPU 1 is executing an interrupt process (YES in step S22, S23). That is, when a control signal is output from the interrupt controller 23 in response to the external interrupt signal, the AND gate circuit 6 prohibits the transfer of the bus request BREQ from the external bus master 7. Therefore, since the CPU 1 is executing the interrupt processing, even if the bus request BREQ is output from the external bus master 7, the bus arbitration circuit 3 does not output the grant signal BGNT to the external bus master 7,
The priority of the local bus 2 of the CPU 1 is secured (YES in step S23, S25). In other words, CPU
When 1 is the interrupt processing period, the bus request BREQ of the external bus master 7 is in a suspended state. Here, step 2
The processing of No. 4 will be described later as a modified example.
【0032】一方、CPU1が割り込み処理以外の動作
では、アンドゲート回路6は、外部バスマスタ7からの
バス要求BREQをバス・アービトレーション回路3に
転送する(ステップS23のNO)。バス・アービトレ
ーション回路3は、外部バスマスタ7からのバス要求B
REQに応じて、グラント信号BGNTを外部バスマス
タ7に出力し、ローカルバス2の使用権を与える(ステ
ップS26)。これにより、外部バスマスタ7は、ロー
カルバス2を使用してローカルバス2に接続されたメモ
リやI/Oデバイスなどをアクセスすることが可能とな
る。外部バスマスタ7がローカルバス2の優先権を得る
と、当該優先権の期間ではCPU1はローカルバス2の
使用が不可となる。On the other hand, when the CPU 1 operates other than the interrupt processing, the AND gate circuit 6 transfers the bus request BREQ from the external bus master 7 to the bus arbitration circuit 3 (NO in step S23). The bus arbitration circuit 3 receives a bus request B from the external bus master 7
In response to REQ, a grant signal BGNT is output to the external bus master 7 to grant the right to use the local bus 2 (step S26). As a result, the external bus master 7 can use the local bus 2 to access a memory, an I / O device, and the like connected to the local bus 2. When the external bus master 7 obtains the priority of the local bus 2, the CPU 1 cannot use the local bus 2 during the period of the priority.
【0033】以上のように本実施形態によれば、CPU
1がクリティカルな特定動作である割り込み処理時に
は、外部バスマスタ7からバス要求BREQが出力され
ても、当該バス要求BREQを保留にして、CPU1の
ローカルバス2の優先権を維持することができる。従っ
て、CPU1は処理が終了するまで、当該割り込み処理
を続行することが可能となる。なお、同実施形態では外
部割り込み処理について説明したが、内部割り込み処理
についても同様に適用することができる。 (第3の実施形態の変形例)図7は同実施形態の変形例
に関係するブロック図である。As described above, according to the present embodiment, the CPU
At the time of interrupt processing in which 1 is a critical specific operation, even when the bus request BREQ is output from the external bus master 7, the bus request BREQ can be put on hold and the priority of the local bus 2 of the CPU 1 can be maintained. Therefore, the CPU 1 can continue the interrupt processing until the processing ends. Although the external interrupt processing has been described in the embodiment, the present invention can be similarly applied to the internal interrupt processing. (Modification of Third Embodiment) FIG. 7 is a block diagram related to a modification of the third embodiment.
【0034】本変形例は、割り込みコントローラ23お
よびアンドゲート回路6以外に、外部/内部の割り込み
処理の一部または全部について、CPU1のバス優先権
を確保するための情報を保持するためのレジスタ25を
有する外部バスマスタ制御部44を備えている。レジス
タ25は、アプリケーション・プログラム(SW)によ
り情報がセットされて、かつ変更できるように構成され
ている。In this modification, in addition to the interrupt controller 23 and the AND gate circuit 6, a register 25 for holding information for securing the bus priority of the CPU 1 for a part or all of the external / internal interrupt processing. An external bus master control unit 44 having The register 25 is configured so that information can be set and changed by an application program (SW).
【0035】アンドゲート回路6は、割り込みコントロ
ーラ23からの割り込み制御信号に応じてレジスタ25
に情報がセットされている場合には、外部バスマスタ7
からのバス要求BREQを保留する。The AND gate circuit 6 has a register 25 in response to an interrupt control signal from the interrupt controller 23.
Is set in the external bus master 7
From the bus request BREQ.
【0036】本変形例の動作は、前述の図8のフローチ
ャートに示すものと同様である。但し、本変形例では、
ステップS24に示すように、外部バスマスタ制御部4
4において、レジスタ25に保持された情報に基づい
て、CPU1のバス優先権を確保するか、または外部バ
スマスタ7からのバス要求BREQを受入れるかが判定
される。The operation of this modification is the same as that shown in the flowchart of FIG. However, in this modified example,
As shown in step S24, the external bus master control unit 4
At 4, it is determined whether to secure the bus priority of the CPU 1 or to accept the bus request BREQ from the external bus master 7 based on the information held in the register 25.
【0037】即ち、割り込みコントローラ23から外部
割り込み信号に応じて制御信号が出力されていると、ア
ンドゲート回路6は、レジスタ25に情報がセットされ
ている場合に外部バスマスタ7からのバス要求BREQ
の転送を禁止する(ステップS24のYES)。従っ
て、CPU1の割り込み処理時に、外部バスマスタ7か
らバス要求BREQが出力されても、バス・アービトレ
ーション回路3はグラント信号BGNTを外部バスマス
タ7には出力せずに、CPU1のローカルバス2の優先
権を確保している(ステップS25)。換言すれば、C
PU1が割り込み処理の期間では、外部バスマスタ7の
バス要求BREQは保留の状態となる。That is, when a control signal is output from the interrupt controller 23 in response to an external interrupt signal, the AND gate circuit 6 outputs a bus request BREQ from the external bus master 7 when information is set in the register 25.
Is prohibited (YES in step S24). Therefore, even when the bus request BREQ is output from the external bus master 7 at the time of the interrupt processing of the CPU 1, the bus arbitration circuit 3 does not output the grant signal BGNT to the external bus master 7, and gives priority to the local bus 2 of the CPU 1. (Step S25). In other words, C
While PU1 is performing the interrupt processing, the bus request BREQ of the external bus master 7 is in a suspended state.
【0038】一方、CPU1が割り込み処理時でも、レ
ジスタ25に情報がセットされていない場合には、アン
ドゲート回路6は、外部バスマスタ7からのバス要求B
REQをバス・アービトレーション回路3に転送する
(ステップS24のNO)。バス・アービトレーション
回路3は、外部バスマスタ7からのバス要求BREQに
応じて、グラント信号BGNTを外部バスマスタ7に出
力し、ローカルバス2の使用権を与える(ステップS2
6)。On the other hand, even when the CPU 1 performs the interrupt processing, if the information is not set in the register 25, the AND gate circuit 6 outputs the bus request B from the external bus master 7.
REQ is transferred to the bus arbitration circuit 3 (NO in step S24). The bus arbitration circuit 3 outputs the grant signal BGNT to the external bus master 7 in response to the bus request BREQ from the external bus master 7, and gives the right to use the local bus 2 (step S2).
6).
【0039】このような変形例の方式であれば、外部/
内部の割り込み処理の一部または全部について、レジス
タ25を利用して、CPU1のバス優先権を確保するか
否かを任意に選択することができる。 (第4の実施形態)図9と図11は第4の実施形態に関
係するブロック図およびフローチャートである。本実施
形態は、CPU1の内部動作に対応する動作指示信号を
出力する内部動作監視回路30および優先順位コントロ
ーラ31を有する外部バスマスタ制御部54を備えたコ
ンピュータ装置である。In the case of such a modified example, external /
For some or all of the internal interrupt processing, the register 25 can be used to arbitrarily select whether or not to secure the bus priority of the CPU 1. (Fourth Embodiment) FIGS. 9 and 11 are a block diagram and a flowchart relating to a fourth embodiment. The present embodiment is a computer device including an external bus master control unit 54 having an internal operation monitoring circuit 30 for outputting an operation instruction signal corresponding to an internal operation of the CPU 1 and a priority controller 31.
【0040】内部動作監視回路30は、CPU1の命令
フェッチ、データライト、データリード、I/Oライ
ト、I/Oリード、割り込み処理などの内部動作に対応
する各動作指示信号を出力する。優先順位コントローラ
31は、予め設定された情報に基づいて、当該各動作指
示信号に対応するCPU1の内部動作状態及び外部バス
マスタ7からのバス要求BREQを含めた優先順位を設
定する機能を有する。The internal operation monitoring circuit 30 outputs operation instruction signals corresponding to internal operations of the CPU 1 such as instruction fetch, data write, data read, I / O write, I / O read, and interrupt processing. The priority controller 31 has a function of setting the internal operation state of the CPU 1 corresponding to each operation instruction signal and the priority including the bus request BREQ from the external bus master 7 based on the preset information.
【0041】以下、図11のフローチャートを参照して
同実施形態の動作を説明する。まず、CPU1からロー
カルバス2の使用権を得るためのバス要求があると、バ
ス・アービトレーション回路3はグラント信号BGNT
を出力して、CPU1にローカルバス2の優先権を与え
る(ステップS30,S31)。CPU1は、ローカル
バス2を使用して、ローカルバス2に接続されたメモリ
やI/Oデバイスなどをアクセスするデータ処理動作を
実行する。Hereinafter, the operation of this embodiment will be described with reference to the flowchart of FIG. First, when there is a bus request from the CPU 1 to obtain the right to use the local bus 2, the bus arbitration circuit 3 sends the grant signal BGNT
To give the CPU 1 the priority of the local bus 2 (steps S30 and S31). The CPU 1 uses the local bus 2 to execute a data processing operation for accessing a memory, an I / O device, and the like connected to the local bus 2.
【0042】当該CPU1の動作中に、外部バスマスタ
7からローカルバス2の使用権を得るためのバス要求B
REQが出力されると、外部バスマスタ制御部54にお
いてCPU1の内部動作および外部バスマスタ7からバ
ス要求BREQを含めた優先順位の設定処理を実行する
(ステップS32のYES,S34)。ここで、ステッ
プ33の処理については、変形例として後述する。A bus request B for obtaining the right to use the local bus 2 from the external bus master 7 during the operation of the CPU 1
When the REQ is output, the external bus master controller 54 executes the internal operation of the CPU 1 and the priority setting process including the bus request BREQ from the external bus master 7 (YES in step S32, S34). Here, the process of step 33 will be described later as a modified example.
【0043】優先順位コントローラ31は、CPU1の
命令フェッチ、データライト、データリード、I/Oラ
イト、I/Oリード、割り込み処理などの内部動作およ
び外部バスマスタ7からバス要求BREQを含めた優先
順位を設定し、外部バスマスタ7からバス要求BREQ
に対してCPU1の内部動作状態が相対的に高い優先順
位であるか否かを判定する。即ち、いま仮にCPU1が
相対的に高い優先順位の割り込み処理を実行していると
きに、外部バスマスタ7からバス要求BREQが出力さ
れても、バス・アービトレーション回路3はグラント信
号BGNTを外部バスマスタ7には出力せずに、CPU
1のローカルバス2の優先権を確保している(ステップ
S35のNO,S37)。換言すれば、CPU1が割り
込み処理の期間では、外部バスマスタ7のバス要求BR
EQは保留の状態となる。The priority controller 31 determines the internal operation of the CPU 1 such as instruction fetch, data write, data read, I / O write, I / O read, and interrupt processing, and the priority including the bus request BREQ from the external bus master 7. Is set and the bus request BREQ is sent from the external bus master 7.
It is determined whether the internal operation state of the CPU 1 has a relatively high priority. That is, even if the bus request BREQ is output from the external bus master 7 while the CPU 1 is executing the interrupt processing of a relatively high priority, the bus arbitration circuit 3 sends the grant signal BGNT to the external bus master 7. Is not output and the CPU
The priority of the local bus 2 is secured (NO in step S35, S37). In other words, the bus request BR of the external bus master 7 is
The EQ is put on hold.
【0044】一方、CPU1が相対的に低い優先順位の
例えばI/Oリードの動作を実行しているときには、バ
ス・アービトレーション回路3は優先順位コントローラ
31からの優先順位に従って、バス・アービトレーショ
ン回路3は、外部バスマスタ7からのバス要求BREQ
に応じて、グラント信号BGNTを外部バスマスタ7に
出力し、ローカルバス2の使用権を与える(ステップS
35のYES,S36)。これにより、外部バスマスタ
7は、ローカルバス2を使用してローカルバス2に接続
されたメモリやI/Oデバイスなどをアクセスすること
が可能となる。外部バスマスタ7がローカルバス2の優
先権を得ると、当該優先権の期間ではCPU1は相対的
に優先順位の高い動作以外では、ローカルバス2の使用
が不可となる。On the other hand, when the CPU 1 is executing a relatively low priority operation, for example, an I / O read operation, the bus arbitration circuit 3 operates in accordance with the priority order from the priority order controller 31. , Bus request BREQ from external bus master 7
, The grant signal BGNT is output to the external bus master 7 to grant the right to use the local bus 2 (step S
35, YES, S36). As a result, the external bus master 7 can use the local bus 2 to access a memory, an I / O device, and the like connected to the local bus 2. When the external bus master 7 obtains the priority of the local bus 2, during the period of the priority, the CPU 1 cannot use the local bus 2 except for an operation having a relatively high priority.
【0045】以上のように本実施形態によれば、CPU
1の内部動作と共に、外部バスマスタ7からバス要求B
REQの優先順位を設定することにより、相対的に優先
順位の高いCPU1の内部動作時には、外部バスマスタ
7からバス要求BREQが出力されても、当該バス要求
BREQを保留にして、CPU1のローカルバス2の優
先権を維持することができる。従って、CPU1のクリ
ティカルな特定動作の優先順位を相対的に高く設定する
ことにより、外部バスマスタ7からバス要求BREQが
出力された場合でも、当該動作が終了するまでバスの優
先権を確保することが可能となる。 (第4の実施形態の変形例1)図10は同実施形態の変
形例1に関係するブロック図である。As described above, according to the present embodiment, the CPU
1 together with the bus request B from the external bus master 7
By setting the priority order of the REQ, during the internal operation of the CPU 1 having a relatively high priority, even if the bus request BREQ is output from the external bus master 7, the bus request BREQ is suspended and the local bus 2 of the CPU 1 is set. Priority can be maintained. Therefore, by setting the priority of the critical specific operation of the CPU 1 relatively high, even when the bus request BREQ is output from the external bus master 7, the priority of the bus can be secured until the operation is completed. It becomes possible. (Modification 1 of Fourth Embodiment) FIG. 10 is a block diagram related to Modification 1 of the fourth embodiment.
【0046】本変形例は、内部動作監視回路30および
優先順位コントローラ31以外に、外部バスマスタ7か
らバス要求BREQに対する優先順位を設定するための
レジスタ32を有する外部バスマスタ制御部64を備え
ている。このレジスタ32は、アプリケーション・プロ
グラムにより優先順位に関する情報がセットされて、か
つ変更できるように構成されている。優先順位コントロ
ーラ31は、レジスタ32にセットされた情報に基づい
て、外部バスマスタ7からバス要求BREQに対する優
先順位を設定し、現時点で実行中のCPU1の内部動作
に対して優先するか否かを判定する。This modified example includes an external bus master control unit 64 having a register 32 for setting a priority order for the bus request BREQ from the external bus master 7 in addition to the internal operation monitoring circuit 30 and the priority order controller 31. The register 32 is configured so that information on the priority order is set by the application program and can be changed. The priority order controller 31 sets the priority order for the bus request BREQ from the external bus master 7 based on the information set in the register 32, and determines whether or not to give priority to the internal operation of the CPU 1 currently being executed. I do.
【0047】本変形例の動作は、前述の図11のフロー
チャートに示すものと同様である。但し、本変形例で
は、ステップS33に示すように、優先順位コントロー
ラ31はレジスタ32を参照して、CPU1のバス優先
権を確保するか、または外部バスマスタ7からのバス要
求BREQを受入れるかを判定する。The operation of this modification is the same as that shown in the flowchart of FIG. However, in the present modified example, as shown in step S33, the priority controller 31 refers to the register 32 and determines whether to secure the bus priority of the CPU 1 or to accept the bus request BREQ from the external bus master 7. I do.
【0048】即ち、CPU1が相対的に高い優先順位の
割り込み処理を実行しているときに、外部バスマスタ7
からバス要求BREQが出力されても、バス・アービト
レーション回路3はグラント信号BGNTを外部バスマ
スタ7には出力せずに、CPU1のローカルバス2の優
先権を確保している(ステップS35のNO,S3
7)。また、CPU1が相対的に低い優先順位の例えば
I/Oリードの動作を実行しているときには、バス・ア
ービトレーション回路3は優先順位コントローラ31か
らの優先順位に従って、バス・アービトレーション回路
3は、外部バスマスタ7からのバス要求BREQに応じ
て、グラント信号BGNTを外部バスマスタ7に出力
し、ローカルバス2の使用権を与える(ステップS35
のYES,S36)。That is, when the CPU 1 is executing the interrupt processing of a relatively high priority, the external bus master 7
, The bus arbitration circuit 3 does not output the grant signal BGNT to the external bus master 7 and secures the priority of the local bus 2 of the CPU 1 (NO in step S35, S3).
7). When the CPU 1 is executing an operation of a relatively low priority, for example, an I / O read operation, the bus arbitration circuit 3 sets the external bus master in accordance with the priority from the priority controller 31. 7 outputs a grant signal BGNT to the external bus master 7 in response to the bus request BREQ from the external bus master 7 to grant the right to use the local bus 2 (step S35).
YES, S36).
【0049】このような変形例の方式であれば、レジス
タ32により、CPU1の内部動作の優先順位に対し
て、外部バスマスタ7からバス要求BREQの相対的優
先順位を任意に設定することが可能となる。 (第4の実施形態の変形例2)図12は同実施形態の変
形例2に関係するブロック図である。According to such a modification, the relative priority of the bus request BREQ from the external bus master 7 can be arbitrarily set by the register 32 with respect to the priority of the internal operation of the CPU 1. Become. (Modification 2 of Fourth Embodiment) FIG. 12 is a block diagram related to Modification 2 of the fourth embodiment.
【0050】本変形例では、優先順位コントローラ31
は、予め設定された情報に基づいて、当該各動作指示信
号に対応するCPU1の内部動作状態及び外部バスマス
タ7からのバス要求BREQを含めた優先順位を設定す
る機能と共に、設定した優先順位を外部ピン60を介し
てローカルバス2に接続されたI/Oデバイスに通知す
る機能を有する。このような優先順位コントローラ31
からの優先順位を通知を受けることにより、I/Oデバ
イスは能動的にバス要求BREQを行なう外部バスマス
タ7として機能することが可能となる。 (第4の実施形態の変形例3)図13は同実施形態の変
形例3に関係するブロック図である。In this modification, the priority order controller 31
Based on information set in advance, a function for setting the internal operation state of the CPU 1 corresponding to each of the operation instruction signals and a priority including a bus request BREQ from the external bus master 7 and a function for setting the priority, It has a function of notifying an I / O device connected to the local bus 2 via the pin 60. Such a priority controller 31
, The I / O device can function as the external bus master 7 that actively performs the bus request BREQ. (Third Modification of the Fourth Embodiment) FIG. 13 is a block diagram related to a third modification of the fourth embodiment.
【0051】本変形例では、優先順位コントローラ31
は、外部ピン61を介して複数の外部バスマスタから複
数のバス要求BREQを受けて、当該複数のバス要求B
REQおよびCPU1の内部動作状態を含めた優先順位
を設定する機能を有する。従って、CPU1の内部動作
状態に対する優先順位と共に、本実施形態の外部バスマ
スタ7は他の外部バスマスタからのバス要求BREQに
対する優先順位が設定されることになる。 (第4の実施形態の変形例4)図14は同実施形態の変
形例4に関係するブロック図である。In this modification, the priority order controller 31
Receives a plurality of bus requests BREQ from a plurality of external bus masters via the external pins 61 and receives the plurality of bus requests BREQ.
It has a function of setting the priority order including the REQ and the internal operation state of the CPU 1. Therefore, the priority of the external bus master 7 of the present embodiment is set for the bus request BREQ from another external bus master together with the priority for the internal operation state of the CPU 1. (Modification 4 of Fourth Embodiment) FIG. 14 is a block diagram related to Modification 4 of the fourth embodiment.
【0052】本変形例は、前述の図10に示す変形例1
と図13に示す変形例3とを合わせた機能を有する優先
順位コントローラ31を備えたものである。即ち、外部
ピン61を介して複数の外部バスマスタから受けた各バ
ス要求BREQに対する優先順位を設定するためのレジ
スタ32を有する外部バスマスタ制御部64を備えてい
る。このレジスタ32は、アプリケーション・プログラ
ムにより優先順位に関する情報がセットされて、かつ変
更できるように構成されている。優先順位コントローラ
31は、レジスタ32にセットされた情報に基づいて、
複数の外部バスマスタからの各バス要求BREQに対す
る優先順位を設定する。This modification is the modification 1 shown in FIG.
And a modification 3 shown in FIG. 13. That is, an external bus master control unit 64 having a register 32 for setting a priority order for each bus request BREQ received from a plurality of external bus masters via the external pins 61 is provided. The register 32 is configured so that information on the priority order is set by the application program and can be changed. Based on the information set in the register 32, the priority controller 31
A priority is set for each bus request BREQ from a plurality of external bus masters.
【0053】[0053]
【発明の効果】以上詳述したように本発明によれば、外
部バスマスタ機能を有するマイクロコンピュータに適用
することにより、CPUの動作状態がいわばクリティカ
ルなプロセス処理時にば、外部バスマスタからのバス要
求を保留にして、CPUのバス優先権を確保することが
できる。従って、優先的な処理に必要なCPUの動作を
確実に実行することが可能となる。As described above in detail, according to the present invention, by applying the present invention to a microcomputer having an external bus master function, a bus request from an external bus master can be received when the operating state of the CPU is a so-called critical process. By suspending, the bus priority of the CPU can be secured. Therefore, it is possible to reliably execute the operation of the CPU necessary for the priority processing.
【図1】本発明の第1の実施形態に関係するコンピュー
タ装置の構成を示すブロック図。FIG. 1 is an exemplary block diagram showing a configuration of a computer device related to a first embodiment of the present invention.
【図2】同実施形態の動作を説明するためのフローチャ
ート。FIG. 2 is a flowchart for explaining the operation of the embodiment.
【図3】同実施形態の変形例に関係するコンピュータ装
置の構成を示すブロック図。FIG. 3 is an exemplary block diagram showing the configuration of a computer device according to a modification of the embodiment.
【図4】第2の実施形態に関係するコンピュータ装置の
構成を示すブロック図。FIG. 4 is an exemplary block diagram illustrating a configuration of a computer device related to the second embodiment.
【図5】第2の実施形態の動作を説明するためのフロー
チャート。FIG. 5 is a flowchart for explaining the operation of the second embodiment.
【図6】第3の実施形態に関係するコンピュータ装置の
構成を示すブロック図。FIG. 6 is an exemplary block diagram showing the configuration of a computer device related to the third embodiment.
【図7】第3の実施形態の変形例に関係するコンピュー
タ装置の構成を示すブロック図。FIG. 7 is an exemplary block diagram showing the configuration of a computer device related to a modification of the third embodiment.
【図8】第3の実施形態の動作を説明するためのフロー
チャート。FIG. 8 is a flowchart for explaining the operation of the third embodiment.
【図9】第4の実施形態に関係するコンピュータ装置の
構成を示すブロック図。FIG. 9 is a block diagram showing a configuration of a computer device related to the fourth embodiment.
【図10】第4の実施形態の変形例1に関係するコンピ
ュータ装置の構成を示すブロック図。FIG. 10 is an exemplary block diagram illustrating a configuration of a computer device related to a first modification of the fourth embodiment.
【図11】第4の実施形態の動作を説明するためのフロ
ーチャート。FIG. 11 is a flowchart for explaining the operation of the fourth embodiment.
【図12】第4の実施形態の変形例2に関係するコンピ
ュータ装置の構成を示すブロック図。FIG. 12 is a block diagram showing a configuration of a computer device related to a second modification of the fourth embodiment.
【図13】第4の実施形態の変形例3に関係するコンピ
ュータ装置の構成を示すブロック図。FIG. 13 is a block diagram showing a configuration of a computer device related to a third modification of the fourth embodiment.
【図14】第4の実施形態の変形例4に関係するコンピ
ュータ装置の構成を示すブロック図。FIG. 14 is a block diagram showing a configuration of a computer device related to a fourth modification of the fourth embodiment.
1…CPUコア 2…ローカルバス 3…バス・アービトレーション回路(バス制御手段) 4,14,24,34,44,54,64…外部バスマ
スタ制御部 5…CPU監視ロジック回路(監視手段) 6…アンドゲート回路 7…外部バスマスタ 10…コンピュータ装置 20…レジスタ 21…アンドゲート回路 22…タイマ回路 23…割り込みコントローラ 25…レジスタ 30…内部動作監視回路 31…優先順位コントローラ(優先順位設定手段) 32…レジスタDESCRIPTION OF SYMBOLS 1 ... CPU core 2 ... Local bus 3 ... Bus arbitration circuit (bus control means) 4, 14, 24, 34, 44, 54, 64 ... External bus master control unit 5 ... CPU monitoring logic circuit (monitoring means) 6 ... AND Gate circuit 7 External bus master 10 Computer device 20 Register 21 AND gate circuit 22 Timer circuit 23 Interrupt controller 25 Register 30 Internal operation monitoring circuit 31 Priority controller (priority setting means) 32 Register
Claims (16)
ション機能を有するバス制御手段を1チップ内に集積化
したコンピュータ装置であって、 当該バス制御手段は、外部バスマスタ手段からのバス使
用権の要求を受けたときに、前記CPUの動作状態に従
って当該CPUのバス優先権を確保し、当該外部バスマ
スタ手段からのバス使用権を保留する手段を有すること
を特徴とするコンピュータ装置。1. A computer device in which a CPU, a bus, and a bus control means having a bus arbitration function are integrated in one chip, wherein the bus control means receives a request for a bus use right from an external bus master means. A computer device having means for securing a bus priority of the CPU according to an operation state of the CPU when receiving the bus, and suspending a bus use right from the external bus master means.
ション機能を有するバス制御手段を1チップ内に集積化
したコンピュータ装置であって、 前記CPUの予め設定された特定動作状態を監視する監
視手段を有し、 当該バス制御手段は、外部バスマスタ手段からのバス使
用権の要求を受けたときに、前記監視手段により前記C
PUの特定動作状態を認識した場合には、当該CPUの
バス優先権を確保し、当該外部バスマスタ手段からのバ
ス使用権を保留する手段を有することを特徴とするコン
ピュータ装置。2. A computer device in which a CPU, a bus, and a bus control means having a bus arbitration function are integrated in one chip, comprising a monitoring means for monitoring a predetermined specific operation state of the CPU. When the bus control means receives a request for the right to use the bus from the external bus master means, the bus control means controls the C bus by the monitoring means.
A computer apparatus comprising: means for securing a bus priority of a CPU when recognizing a specific operation state of a PU and suspending a bus use right from the external bus master means.
処理の動作であることを特徴とする請求項2記載のコン
ピュータ装置。3. The computer device according to claim 2, wherein the specific operation state of the CPU is an operation of an interrupt process.
ション機能を有するバス制御手段を1チップ内に集積化
したコンピュータ装置に適用するバス制御方法であっ
て、 当該バス制御手段は、 前記CPUからのバス使用権の要求に応じて当該CPU
にバス優先権を与えるステップと、 外部バスマスタ手段からのバス使用権の要求を受けたと
きに、前記CPUが予め設定された特定動作時であるか
否かを判定するステップと、 前記CPUが特定動作時の場合には、当該外部バスマス
タ手段からのバス使用権を保留するステップと、 前記CPUが特定動作時ではない場合には、当該外部バ
スマスタ手段にバス優先権を与えるステップとからなる
処理を実行することを特徴とするバス制御方法。4. A bus control method applied to a computer device in which a CPU, a bus, and a bus control means having a bus arbitration function are integrated in one chip, wherein the bus control means comprises a bus from the CPU. CPU in response to a request for usage right
Giving a bus priority to the CPU; determining whether or not the CPU is in a predetermined specific operation when receiving a bus use right request from an external bus master means; In the case of an operation, a process of suspending the right to use the bus from the external bus master means, and in a case where the CPU is not in a specific operation, a step of giving a bus priority to the external bus master means. A bus control method, which is executed.
フトウェアにより前記CPUの特定動作状態の内容を設
定するためのレジスタ手段を有し、当該レジスタ手段の
設定内容に応じて当該特定動作状態の内容を変更できる
ことを特徴とする請求項2記載のコンピュータ装置。5. The monitoring means has register means for setting contents of a specific operation state of the CPU by application software, and changes the contents of the specific operation state according to the contents set in the register means. 3. The computer device according to claim 2, wherein the computer device is capable of performing.
ション機能を有するバス制御手段を1チップ内に集積化
したコンピュータ装置であって、 前記CPUのバス優先権を所定の時間だけ確保する優先
時間の経過を監視するためのタイマ手段を有し、 当該バス制御手段は、外部バスマスタ手段からのバス使
用権の要求を受けたときに、前記タイマ手段により前記
優先時間の経過前であることを認識したときには当該C
PUのバス優先権を確保し、当該外部バスマスタ手段の
バス使用権を保留する手段を有することを特徴とするコ
ンピュータ装置。6. A computer device in which a CPU, a bus, and a bus control means having a bus arbitration function are integrated in one chip, wherein a lapse of a priority time for securing a bus priority of the CPU for a predetermined time. When the bus control means receives a request for the right to use the bus from the external bus master means, when the timer means recognizes that the priority time has not passed, The C
A computer device having means for securing a bus priority of a PU and suspending a bus use right of the external bus master means.
ション機能を有するバス制御手段を1チップ内に集積化
したコンピュータ装置に適用するバス制御方法であっ
て、 当該バス制御手段は、 前記CPUからのバス使用権の要求に応じて当該CPU
にバス優先権を与えるステップと、 当該CPUのバス優先権を所定の時間だけ確保する優先
時間をタイマ手段にセットするステップと、 外部バスマスタ手段からのバス使用権の要求を受けたと
きに、前記タイマ手段により前記優先時間の経過前であ
るか否かを判定するステップと、 前記優先時間の経過前の場合には、当該外部バスマスタ
手段のバス使用権を保留するステップとからなる処理を
実行することを特徴とするバス制御方法。7. A bus control method applied to a computer device in which a CPU, a bus, and a bus control means having a bus arbitration function are integrated in one chip, wherein the bus control means comprises a bus from the CPU. CPU in response to a request for usage right
Giving a bus priority to the CPU, setting a priority time for securing the bus priority of the CPU for a predetermined time in the timer means, and receiving a bus use right request from an external bus master means, A process is executed which comprises a step of determining whether or not the priority time has elapsed before the timer means has elapsed, and a step of holding the bus use right of the external bus master means if the priority time has not elapsed. A bus control method characterized by the above-mentioned.
ション機能を有するバス制御手段を1チップ内に集積化
したコンピュータ装置であって、 外部または内部の割込み処理を制御するための割込み制
御手段を有し、 当該バス制御手段は、外部バスマスタ手段からのバス使
用権の要求を受けたときに、前記割込み制御手段からの
制御信号に応じて割込み処理時には当該CPUのバス優
先権を確保し、当該外部バスマスタ手段からのバス使用
権を保留する手段を有することを特徴とするコンピュー
タ装置。8. A computer device in which a CPU, a bus, and a bus control means having a bus arbitration function are integrated in one chip, the computer device having an interrupt control means for controlling external or internal interrupt processing. The bus control means, upon receiving a bus use right request from the external bus master means, secures the bus priority of the CPU during interrupt processing according to a control signal from the interrupt control means, and Computer means having means for reserving the right to use the bus from the means.
力されたときに、前記外部バスマスタ手段のバス使用権
を保留することを指示する情報をセットするためのレジ
スタ手段を有し、 前記バス制御手段は、外部バスマスタ手段からのバス使
用権の要求を受けたときに、前記レジスタ手段にセット
された情報に基づいて割込み処理時には当該CPUのバ
ス優先権を確保し、当該外部バスマスタ手段からのバス
使用権を保留することを特徴とする請求項8記載のコン
ピュータ装置。9. A bus control means, comprising: register means for setting, when an interrupt signal is output from the interrupt control means, information for instructing the external bus master means to reserve the right to use the bus. When receiving a request for the right to use the bus from the external bus master means, the CPU secures the bus priority of the CPU at the time of interrupt processing based on the information set in the register means, and 9. The computer device according to claim 8, wherein the right is reserved.
ョン機能を有するバス制御手段、及び割込み処理を制御
するための割込み制御手段を1チップ内に集積化したコ
ンピュータ装置に適用するバス制御方法であって、 当該バス制御手段は前記割込み制御手段から割込み信号
が出力されたときに、前記外部バスマスタ手段のバス使
用権を保留することを指示するための情報をセットする
ためのレジスタ手段を有し、 前記CPUからのバス使用権の要求に応じて当該CPU
にバス優先権を与えるステップと、 前記割込み制御手段から割込み信号が出力されたとき
に、当該CPUのバス優先権を所定の時間だけ確保する
優先時間をタイマ手段にセットするステップと、 外部バスマスタ手段からのバス使用権の要求を受けたと
きに、前記レジスタ手段にセットされた情報に基づいて
割込み処理時に当該CPUのバス優先権を確保するか否
かを判定するステップと、 当該CPUのバス優先権を確保する場合には、当該外部
バスマスタ手段からのバス使用権を保留するステップと
からなる処理を実行することを特徴とするバス制御方
法。10. A bus control method applied to a computer device in which a CPU, a bus, a bus control means having a bus arbitration function, and an interrupt control means for controlling interrupt processing are integrated in one chip. The bus control means has register means for setting information for instructing to suspend the right to use the bus of the external bus master means when an interrupt signal is output from the interrupt control means, CPU in response to a request for the right to use the bus from
Assigning a bus priority to the timer means when the interrupt signal is output from the interrupt control means, and setting a priority time for securing the bus priority of the CPU for a predetermined time in the timer means; Determining whether to secure the bus priority of the CPU at the time of interrupt processing based on the information set in the register means when receiving the request for the bus use right from the CPU; A bus control method for reserving the right to use the bus from the external bus master means.
ーション機能を有するバス制御手段を1チップ内に集積
化したコンピュータ装置であって、 前記CPUの内部動作に応じたバス優先順位の中に外部
バスマスタ手段のバス優先順位を含めたバス優先順位を
設定するための優先順位設定手段を有し、 当該バス制御手段は、外部バスマスタ手段からのバス使
用権の要求を受けたときに、前記優先順位設定手段によ
り設定されたバス優先順位に基づいて当該外部バスマス
タ手段のバス優先順位が相対的に低い場合に当該外部バ
スマスタ手段からのバス使用権を保留して、当該CPU
の内部動作に応じたバス優先権を確保する手段を有する
ことを特徴とするコンピュータ装置。11. A computer device in which a CPU, a bus, and a bus control means having a bus arbitration function are integrated in one chip, wherein an external bus master means is included in a bus priority according to an internal operation of the CPU. Priority setting means for setting a bus priority including the bus priority of the bus control means. The bus control means, when receiving a request for a bus use right from an external bus master means, When the bus priority of the external bus master means is relatively low based on the bus priority set by the
A means for securing bus priority according to the internal operation of the computer.
位を変更するためのレジスタ手段を有し、 前記優先順位設定手段は、当該レジスタ手段を参照して
前記CPUの内部動作に応じたバス優先順位の中に当該
外部バスマスタ手段のバス優先順位を設定する手段を有
することを特徴とする請求項11記載のコンピュータ装
置。12. A register unit for changing a bus priority of the external bus master unit, wherein the priority setting unit refers to the register unit and sets a bus priority according to an internal operation of the CPU. 12. The computer device according to claim 11, further comprising means for setting a bus priority of said external bus master means.
ョン機能を有するバス制御手段、及び前記CPUの内部
動作に応じたバス優先順位の中に外部バスマスタ手段の
バス優先順位を含めたバス優先順位を設定するための優
先順位設定手段を1チップ内に集積化したコンピュータ
装置に適用するバス制御方法であって、 当該バス制御手段は、 外部バスマスタ手段からのバス使用権の要求を受けたと
きに、前記優先順位設定手段から前記CPUの内部動作
に応じたバス優先順位に対する当該外部バスマスタ手段
の相対的順位を判定するステップと、 当該外部バスマスタ手段のバス優先順位が相対的に低い
場合に、当該外部バスマスタ手段からのバス使用権を保
留するステップとからなる処理を実行することを特徴と
するバス制御方法。13. A CPU, a bus, a bus control means having a bus arbitration function, and a bus priority including a bus priority of an external bus master means in a bus priority according to an internal operation of the CPU. Control method applied to a computer device in which priority order setting means is integrated in one chip, wherein the bus control means, upon receiving a bus use request from an external bus master means, Determining from the order setting means the relative priority of the external bus master means with respect to the bus priority according to the internal operation of the CPU; and, if the external bus master means has a relatively low bus priority, the external bus master means And a step of suspending the right to use the bus from the server.
ーション機能を有するバス制御手段を1チップ内に集積
化したコンピュータ装置であって、 前記CPUの内部動作に応じたバス優先順位の中に外部
デバイスのバス優先順位を含めたバス優先順位を設定す
るための優先順位設定手段と、 当該優先順位設定手段により設定されたバス優先順位を
前記外部デバイスに通知する手段とを有し、 当該バス制御手段は、前記外部デバイスからのバス使用
権の要求を受けたときに、前記優先順位設定手段により
設定されたバス優先順位に基づいて当該外部デバイスの
バス優先順位が相対的に低い場合に当該外部デバイスか
らのバス使用権を保留して、当該CPUの内部動作に応
じたバス優先権を確保する手段を有することを特徴とす
るコンピュータ装置。14. A computer device in which a CPU, a bus, and a bus control means having a bus arbitration function are integrated in a single chip, wherein a bus priority according to an internal operation of the CPU is determined by an external device. A priority setting means for setting a bus priority including a bus priority; and means for notifying the external device of the bus priority set by the priority setting means. Receiving a bus use request from the external device, when the bus priority of the external device is relatively low based on the bus priority set by the priority setting means, A means for suspending the right to use the bus and securing a bus priority according to the internal operation of the CPU. Place.
バスマスタ手段からのバス要求を受け付ける手段を有
し、前記CPUの内部動作に応じたバス優先順位の中に
当該複数の外部バスマスタ手段のバス優先順位を含めた
バス優先順位を設定することを特徴とする請求項11記
載のコンピュータ装置。15. The priority setting means has means for receiving a bus request from a plurality of external bus master means, and includes a bus priority of the plurality of external bus master means in a bus priority according to an internal operation of the CPU. The computer device according to claim 11, wherein a bus priority including the priority is set.
優先順位を変更するためのレジスタ手段を有し、 前記優先順位設定手段は、当該レジスタ手段を参照して
前記CPUの内部動作に応じたバス優先順位の中に当該
複数の外部バスマスタ手段のバス優先順位を設定するこ
とを特徴とする請求項15記載のコンピュータ装置。16. A register for changing a bus priority of the plurality of external bus masters, wherein the priority setting means refers to the register and controls a bus priority according to an internal operation of the CPU. 16. The computer device according to claim 15, wherein bus priorities of said plurality of external bus master means are set in the order.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP30592597A JPH11143823A (en) | 1997-11-07 | 1997-11-07 | Computer device and bus control method applied to the device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP30592597A JPH11143823A (en) | 1997-11-07 | 1997-11-07 | Computer device and bus control method applied to the device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH11143823A true JPH11143823A (en) | 1999-05-28 |
Family
ID=17950959
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP30592597A Pending JPH11143823A (en) | 1997-11-07 | 1997-11-07 | Computer device and bus control method applied to the device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH11143823A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2000347986A (en) * | 1999-06-03 | 2000-12-15 | Matsushita Electric Ind Co Ltd | Microcomputer, bus arbitration method, bus slave device, and bus sharing system device |
| JP2012168808A (en) * | 2011-02-15 | 2012-09-06 | Fujitsu Semiconductor Ltd | Data transfer system and data transfer scheduling program |
-
1997
- 1997-11-07 JP JP30592597A patent/JPH11143823A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2000347986A (en) * | 1999-06-03 | 2000-12-15 | Matsushita Electric Ind Co Ltd | Microcomputer, bus arbitration method, bus slave device, and bus sharing system device |
| JP2012168808A (en) * | 2011-02-15 | 2012-09-06 | Fujitsu Semiconductor Ltd | Data transfer system and data transfer scheduling program |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4602327A (en) | Bus master capable of relinquishing bus on request and retrying bus cycle | |
| JP3712842B2 (en) | Data transfer control method, data transfer control device, and information recording medium | |
| US6775727B2 (en) | System and method for controlling bus arbitration during cache memory burst cycles | |
| JPH0467224B2 (en) | ||
| JP5400443B2 (en) | Integrated circuit, debug circuit, and debug command control method | |
| KR100708096B1 (en) | How to adjust the bus system and its execution order | |
| KR20010080515A (en) | A direct memory access engine for supporting multiple virtual direct memory access channels | |
| US20030033489A1 (en) | Semaphore management circuit | |
| JP2996183B2 (en) | Data processing device with DMA function | |
| JP2000047974A (en) | Bus arbitration method for bus control controller, bus control controller, and system for electronic device | |
| JPH10320349A (en) | Processor and data transfer system using the processor | |
| JP2001056793A (en) | Information processor | |
| JPH09190407A (en) | Control device | |
| US5799160A (en) | Circuit and method for controlling bus arbitration | |
| JP3521166B2 (en) | Computer system and arbitration method thereof | |
| JPH08137785A (en) | DMA controller | |
| JPH0830549A (en) | Bus control device | |
| JP2002269033A (en) | Bus system and system LSI using arbiter having retry control function | |
| JPH0991246A (en) | Bus control device and method thereof | |
| JP4432268B2 (en) | Bus arbitration system and interrupt processing method for a device serving as a bus master in this system | |
| JP2001043333A (en) | PC Card and CIS Storage Method for PC Card | |
| JP2837893B2 (en) | Microcomputer device | |
| JP2001256205A (en) | Multiprocessor device | |
| JPH05274250A (en) | Information processor | |
| JP2000090045A (en) | Data transfer system, direct memory access controller and method and record medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A977 | Report on retrieval |
Effective date: 20060208 Free format text: JAPANESE INTERMEDIATE CODE: A971007 |
|
| A131 | Notification of reasons for refusal |
Effective date: 20060221 Free format text: JAPANESE INTERMEDIATE CODE: A131 |
|
| A02 | Decision of refusal |
Effective date: 20060627 Free format text: JAPANESE INTERMEDIATE CODE: A02 |